diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-11-07 17:58:29 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-11-07 17:58:29 +0100 |
commit | 0814eeb546d71957acbcce56bdc235a76b93fb79 (patch) | |
tree | 1c2e1f55e28609436df8b3c01c6486871db419d2 /configure.in | |
parent | Remove obsolete IsWin95A function (diff) | |
download | core-0814eeb546d71957acbcce56bdc235a76b93fb79.tar.gz core-0814eeb546d71957acbcce56bdc235a76b93fb79.zip |
fix "whether to build stax" check
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/configure.in b/configure.in index 5288c41a20fc..e1f96e99b488 100644 --- a/configure.in +++ b/configure.in @@ -4537,21 +4537,6 @@ fi AC_SUBST(GPERF) dnl =================================================================== -dnl Check for building stax -dnl =================================================================== -AC_MSG_CHECKING([whether to build the stax]) -if test "$with_system_saxon" = "no" -a "$with_system_jars" = "no" -a "$SOLAR_JAVA" != ""; then - if test -f "./stax/download/jsr173_1.0_api.jar"; then - BUILD_STAX=NO - AC_MSG_RESULT([no, will use the prebuilt stax/download/jsr173_1.0_api.jar]) - else - BUILD_STAX=YES - AC_MSG_RESULT([yes]) - fi -fi -AC_SUBST(BUILD_STAX) - -dnl =================================================================== dnl Check for building ODK dnl =================================================================== AC_MSG_CHECKING([whether to build the ODK]) @@ -5474,6 +5459,23 @@ if test -n "$NEED_SAXON"; then BUILD_TYPE="$BUILD_TYPE SAXON" fi +# =================================================================== +# Check whether to build stax +# =================================================================== +AC_MSG_CHECKING([whether building the stax is required]) +BUILD_STAX=NO +if test -z "$SOLAR_JAVA"; then + AC_MSG_RESULT([no (java disabled)]) +elif test "$SYSTEM_SAXON" = "YES"; then + AC_MSG_RESULT([no (already provided by system saxon)]) +elif test -f "./stax/download/jsr173_1.0_api.jar"; then + AC_MSG_RESULT([no (will use the prebuilt stax/download/jsr173_1.0_api.jar)]) +else + BUILD_STAX=YES + AC_MSG_RESULT([yes (no system saxon and no prebuilt copy)]) +fi +AC_SUBST(BUILD_STAX) + dnl =================================================================== dnl Check for system curl dnl =================================================================== |