[Libreoffice-commits] .: 4 commits - configure.in lcms2/makefile.mk lcms2/prj

Tor Lillqvist tml at kemper.freedesktop.org
Tue Mar 13 03:56:00 PDT 2012


 configure.in      |  528 +++++++++++++++++++++++++++---------------------------
 lcms2/makefile.mk |    6 
 lcms2/prj/d.lst   |    1 
 3 files changed, 271 insertions(+), 264 deletions(-)

New commits:
commit 41b52a106f84dd61d8d7bdc785d0a7402a584a8c
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Mar 13 12:21:06 2012 +0200

    No need to be afraid of empty quoted strings as test arguments

diff --git a/configure.in b/configure.in
index 4b82050..8ccb1e7 100644
--- a/configure.in
+++ b/configure.in
@@ -79,7 +79,7 @@ AC_SUBST(x_Cygwin)
 
 cat /dev/null > warn
 
-if test "z$EUID" = "z0" -a "z`uname -o 2>/dev/null`" = "zCygwin"; then
+if test "$EUID" = "0" -a "`uname -o 2>/dev/null`" = "Cygwin"; then
     AC_MSG_ERROR([You must build LibreOffice as a normal user - not using an administrative account])
 fi
 
@@ -2399,7 +2399,7 @@ if test "$_os" = "WINNT"; then
 
     dnl Set the CL_X64 variable if we are building a 64-bit LibreOffice.
     AC_MSG_CHECKING([whether to build a 64-bit LibreOffice])
-    if test "z$enable_cl_x64" = "z" -o "$enable_cl_x64" = "no"; then
+    if test "$enable_cl_x64" = "" -o "$enable_cl_x64" = "no"; then
         CL_X64=""
         AC_MSG_RESULT([no])
     else
@@ -2528,7 +2528,7 @@ if test "$GCC" = "yes"; then
         ],[
 printf ("hello world\n");
         ])], HAVE_LD_BSYMBOLIC_FUNCTIONS=TRUE, [])
-    if test "z$HAVE_LD_BSYMBOLIC_FUNCTIONS" = "zTRUE"; then
+    if test "$HAVE_LD_BSYMBOLIC_FUNCTIONS" = "TRUE"; then
         AC_MSG_RESULT( found )
     else
         AC_MSG_RESULT( not found )
@@ -3419,7 +3419,7 @@ AC_SUBST(ENABLE_SYMBOLS)
 dnl Determine if the solver is to be stripped or not.
 dnl ===================================================================
 AC_MSG_CHECKING([whether to strip the solver or not.])
-if test "z$enable_strip_solver" = "zno"; then
+if test "$enable_strip_solver" = "no"; then
     DISABLE_STRIP="TRUE"
     AC_MSG_RESULT([no])
 else
@@ -3459,7 +3459,7 @@ fi
 
 
 # fontconfig checks
-if test "z$test_fontconfig" = "zyes"; then
+if test "$test_fontconfig" = "yes"; then
     PKG_CHECK_MODULES([FONTCONFIG], [fontconfig >= 2.2.0])
 else
     case "$BUILD_TYPE" in
@@ -3479,7 +3479,7 @@ fi
 AC_SUBST(TARFILE_LOCATION)
 
 AC_MSG_CHECKING([whether we want to fetch tarballs])
-if test "z$enable_fetch_external" != "zno"; then
+if test "$enable_fetch_external" != "no"; then
     AC_MSG_RESULT([yes])
     DO_FETCH_TARBALLS="YES"
 else
@@ -3642,7 +3642,7 @@ AC_SUBST(GNUMAKE)
 _make_ver_check=`$GNUMAKE --version | grep LibreOffice`;
 STALE_MAKE=
 make_warning=
-if test "z$_make_ver_check" = "z"; then
+if test "$_make_ver_check" = ""; then
    STALE_MAKE=TRUE
 fi
 
@@ -4603,7 +4603,7 @@ dnl Custom build version
 dnl ===================================================================
 
 AC_MSG_CHECKING([whether to add custom build version])
-if test "z$with_build_version" != "z"; then
+if test "$with_build_version" != ""; then
     BUILD_VER_STRING=$with_build_version
     AC_MSG_RESULT([yes, $BUILD_VER_STRING])
 else
@@ -5627,16 +5627,16 @@ dnl ===================================================================
 dnl Check for building ODK
 dnl ===================================================================
 AC_MSG_CHECKING([whether to build the ODK])
-if test "z$enable_odk" = "z" -o "$enable_odk" != "no"; then
+if test "$enable_odk" = "" -o "$enable_odk" != "no"; then
     AC_MSG_RESULT([yes])
 
     if test "$with_java" != "no"; then
         AC_MSG_CHECKING([whether to build unowinreg.dll])
-        if test "$_os" = "WINNT" -a "z$enable_build_unowinreg" = "z"; then
+        if test "$_os" = "WINNT" -a "$enable_build_unowinreg" = ""; then
             # build on Win by default
             enable_build_unowinreg=yes
         fi
-        if test "z$enable_build_unowinreg" = "z" -o "$enable_build_unowinreg" = "no"; then
+        if test "$enable_build_unowinreg" = "" -o "$enable_build_unowinreg" = "no"; then
             AC_MSG_RESULT([no])
             BUILD_UNOWINREG=NO
         else
@@ -6198,7 +6198,7 @@ internal)
     SYSTEM_PYTHON=NO
     BUILD_TYPE="$BUILD_TYPE PYTHON"
     # Embedded Python dies without Home set
-    if test "z$HOME" = "z"; then
+    if test "$HOME" = ""; then
         export HOME="";
     fi
     # bz2 tarball and bzip2 is not standard
@@ -7400,7 +7400,7 @@ dnl Graphite
 dnl ===================================================================
 
 AC_MSG_CHECKING([whether to enable graphite support])
-if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "z$enable_graphite" = "z" -o "$enable_graphite" != "no"; then
+if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "$enable_graphite" = "" -o "$enable_graphite" != "no"; then
     AC_MSG_RESULT([yes])
     ENABLE_GRAPHITE="TRUE"
     AC_MSG_CHECKING([which graphite to use])
@@ -9227,7 +9227,7 @@ dnl ===================================================================
 dnl Test whether to integrate helppacks into the product's installer
 dnl ===================================================================
 AC_MSG_CHECKING([for helppack integration])
-if test "z$with_helppack_integration" = "zno"; then
+if test "$with_helppack_integration" = "no"; then
     WITH_HELPPACK_INTEGRATION=NO
     AC_MSG_RESULT([no integration])
 else
@@ -9424,12 +9424,12 @@ dnl ===================================================================
 dnl Test whether to include Sun Professional Template Pack
 dnl ===================================================================
 AC_MSG_CHECKING([for Sun Professional Template Pack integration (only supported languages displayed)])
-if test "z$with_sun_templates" = "z" -o "z$with_sun_templates" = "zno"; then
+if test "$with_sun_templates" = "" -o "$with_sun_templates" = "no"; then
     AC_MSG_RESULT([no integration])
 else
     SCPDEFS="$SCPDEFS -DWITH_EXTENSION_SUN_TEMPLATE_PACK"
     sun_supported_langs="en-US de it fr es hu"
-    if test "z$with_sun_templates" = "zyes"; then
+    if test "$with_sun_templates" = "yes"; then
         wanted_sun_templates="$sun_supported_langs"
     else
         # check whether the langs are supported by Sun
@@ -9528,7 +9528,7 @@ dnl ===================================================================
 dnl Test whether to include extra galleries
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include extra galleries])
-if test "z$enable_extra_gallery" = "z" -o "z$enable_extra_gallery" = "zno"; then
+if test "$enable_extra_gallery" = "" -o "$enable_extra_gallery" = "no"; then
     AC_MSG_RESULT([no])
     WITH_EXTRA_GALLERY=NO
     OOOP_GALLERY_PACK=""
@@ -9546,7 +9546,7 @@ dnl ===================================================================
 dnl Test whether to include extra templates
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include extra templates])
-if test "z$enable_extra_template" = "z" -o "z$enable_extra_template" = "zno"; then
+if test "$enable_extra_template" = "" -o "$enable_extra_template" = "no"; then
     AC_MSG_RESULT([no])
     WITH_EXTRA_TEMPLATE=NO
     OOOP_TEMPLATES_PACK=""
@@ -9564,7 +9564,7 @@ dnl ===================================================================
 dnl Test whether to include extra samples
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include extra samples])
-if test "z$enable_extra_sample" = "z" -o "z$enable_extra_sample" = "zno"; then
+if test "$enable_extra_sample" = "" -o "$enable_extra_sample" = "no"; then
     AC_MSG_RESULT([no])
     WITH_EXTRA_SAMPLE=NO
     OOOP_SAMPLES_PACK=""
@@ -9582,7 +9582,7 @@ dnl ===================================================================
 dnl Test whether to include extra fonts
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include extra fonts])
-if test "z$enable_extra_font" = "z" -o "z$enable_extra_font" = "zno"; then
+if test "$enable_extra_font" = "" -o "$enable_extra_font" = "no"; then
     AC_MSG_RESULT([no])
     WITH_EXTRA_FONT=NO
     OOOP_FONTS_PACK=""
@@ -9600,7 +9600,7 @@ dnl ===================================================================
 dnl Test whether to download OxygenOffice branding and set custom settings
 dnl ===================================================================
 AC_MSG_CHECKING([whether to download OxygenOffice branding and set custom settings])
-if test "z$enable_oxygenoffice" = "z" -o "z$enable_oxygenoffice" = "zno"; then
+if test "$enable_oxygenoffice" = "" -o "$enable_oxygenoffice" = "no"; then
     AC_MSG_RESULT([no])
     ENABLE_OXYGENOFFICE=NO
 else
@@ -9616,7 +9616,7 @@ dnl ===================================================================
 dnl Test whether to build global menu support
 dnl ===================================================================
 AC_MSG_CHECKING([whether to build global menu support])
-if test "z$enable_lomenubar" = "z" -o "z$enable_lomenubar" = "zno"; then
+if test "$enable_lomenubar" = "" -o "$enable_lomenubar" = "no"; then
     AC_MSG_RESULT([no])
     ENABLE_LOMENUBAR="FALSE"
 else
@@ -9631,7 +9631,7 @@ dnl Test whether to enable online update service
 dnl ===================================================================
 AC_MSG_CHECKING([whether to enable online update])
 ENABLE_ONLINE_UPDATE=
-if test "z$enable_online_update" = "z"; then
+if test "$enable_online_update" = ""; then
     if test "$_os" = "WINNT" -o "$_os" = "Darwin"; then
         AC_MSG_RESULT([yes])
         ENABLE_ONLINE_UPDATE="TRUE"
@@ -9639,7 +9639,7 @@ if test "z$enable_online_update" = "z"; then
         AC_MSG_RESULT([no])
     fi
 else
-    if test "z$enable_online_update" = "zyes"; then
+    if test "$enable_online_update" = "yes"; then
         AC_MSG_RESULT([yes])
         ENABLE_ONLINE_UPDATE="TRUE"
     else
@@ -9652,7 +9652,7 @@ dnl ===================================================================
 dnl Test whether build target is Release Build
 dnl ===================================================================
 AC_MSG_CHECKING([whether build target is Release Build])
-if test "z$enable_release_build" = "z" -o "z$enable_release_build" = "zno"; then
+if test "$enable_release_build" = "" -o "$enable_release_build" = "no"; then
     AC_MSG_RESULT([no])
     ENABLE_RELEASE_BUILD="FALSE"
 else
@@ -9665,7 +9665,7 @@ dnl ===================================================================
 dnl Test whether to create MSI with LIMITUI=1 (silent install)
 dnl ===================================================================
 AC_MSG_CHECKING([whether to create MSI with LIMITUI=1 (silent install)])
-if test "z$enable_silent_msi" = "z" -o "z$enable_silent_msi" = "zno"; then
+if test "$enable_silent_msi" = "" -o "$enable_silent_msi" = "no"; then
     AC_MSG_RESULT([no])
     ENABLE_SILENT_MSI="FALSE"
 else
@@ -10883,7 +10883,7 @@ dnl Number of parallel jobs to be executed by dmake
 dnl ===================================================================
 AC_MSG_CHECKING([for maximum of jobs per processor])
 BUILD_MAX_JOBS="1"
-if test "z$with_max_jobs" != "z"; then
+if test "$with_max_jobs" != ""; then
     BUILD_MAX_JOBS="$with_max_jobs"
 else
     if test "$enable_icecream" = "yes"; then
commit 4e384372a234d2cecd8dc702e39fb0e51f8725ac
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Mar 13 12:16:07 2012 +0200

    Be consistent in spacing before the ';' terminating a test or while expression

diff --git a/configure.in b/configure.in
index e1bbde4..4b82050 100644
--- a/configure.in
+++ b/configure.in
@@ -17,23 +17,23 @@ LO_PATH= # used by path_munge to construct a PATH variable
 PathFormat()
 {
     formatted_path="$1"
-    if test "$build_os" = "cygwin" ; then
+    if test "$build_os" = "cygwin"; then
         pf_part1=
         pf_conv_to_dos=
-        for pf_part in $formatted_path ; do
-            if test -z "$pf_part1" ; then
+        for pf_part in $formatted_path; do
+            if test -z "$pf_part1"; then
                 pf_part1="$pf_part"
             else
                 pf_conv_to_dos="yes"
             fi
         done
-        if test "$pf_conv_to_dos" = "yes" ; then
+        if test "$pf_conv_to_dos" = "yes"; then
             formatted_path=`cygpath -d "$formatted_path"`
         fi
         fp_count_colon=`echo "$formatted_path" | grep -c "[:]"`
         fp_count_slash=`echo "$formatted_path" | grep -c "[/]"`
-        if test "$fp_count_slash$fp_count_colon" != "00" ; then
-            if test "$fp_count_colon" = "0" ; then
+        if test "$fp_count_slash$fp_count_colon" != "00"; then
+            if test "$fp_count_colon" = "0"; then
                 formatted_path=`realpath "$formatted_path"`
             fi
             formatted_path=`cygpath -m "$formatted_path"`
@@ -216,10 +216,10 @@ cygwin*|interix*|mingw32*)
     case "$host_os" in
     mingw32*)
         WITH_MINGW=yes
-        if test -z "$CC" ; then
+        if test -z "$CC"; then
             CC="$host_cpu-$host_vendor-$host_os-gcc"
         fi
-        if test -z "$CXX" ; then
+        if test -z "$CXX"; then
             CXX="$host_cpu-$host_vendor-$host_os-g++"
         fi
         ;;
@@ -1981,15 +1981,15 @@ AC_PROG_EGREP
 
 pathmunge ()
 {
-    if test -n "$1" ; then
-        if test "$build_os" = "cygwin" ; then
+    if test -n "$1"; then
+        if test "$build_os" = "cygwin"; then
             PathFormat "$1"
             new_path=`cygpath -u "$formatted_path"`
         else
             new_path="$1"
         fi
-        if ! echo "$LO_PATH" | $EGREP -q "(^|:)$1($|:)" ; then
-            if test "$2" = "after" ; then
+        if ! echo "$LO_PATH" | $EGREP -q "(^|:)$1($|:)"; then
+            if test "$2" = "after"; then
                 LO_PATH="$LO_PATH:$new_path"
             else
                 LO_PATH="$new_path:$LO_PATH"
@@ -2098,9 +2098,9 @@ dnl Extra check for Windows. Cygwin builds need gcc to build dmake
 dnl although MSVC is used to build other build-time tools and
 dnl LibreOffice itself.
 dnl ===================================================================
-if test "$build_os" = "cygwin" ; then
+if test "$build_os" = "cygwin"; then
     AC_MSG_CHECKING([for Cygwin gcc/g++])
-    if which gcc > /dev/null && which g++ > /dev/null ; then
+    if which gcc > /dev/null && which g++ > /dev/null; then
         AC_MSG_RESULT([found])
     else
         AC_MSG_ERROR([Cygwin gcc and g++ are needed, please install them.])
@@ -2113,7 +2113,7 @@ AC_SUBST(SYSBASE)
 dnl ===================================================================
 dnl  Checks if ccache is available
 dnl ===================================================================
-if test "$enable_ccache" = "yes" -o \( "$enable_ccache" = "" -a "$enable_icecream" != "yes" \) ; then
+if test "$enable_ccache" = "yes" -o \( "$enable_ccache" = "" -a "$enable_icecream" != "yes" \); then
     case "%$CC%$CXX%" in
     # If $CC and/or $CXX already contain "ccache" (possibly suffixed with some verison number etc),
     # assume that's good then
@@ -2122,7 +2122,7 @@ if test "$enable_ccache" = "yes" -o \( "$enable_ccache" = "" -a "$enable_icecrea
         ;;
     *)
         AC_PATH_PROG([CCACHE],[ccache],[not found])
-        if test "$CCACHE" = "not found" ; then
+        if test "$CCACHE" = "not found"; then
             CCACHE=""
         else
             # Need to check for ccache version: otherwise prevents
@@ -2146,16 +2146,16 @@ else
     CCACHE=""
 fi
 
-if test "$CCACHE" != "" ; then
+if test "$CCACHE" != ""; then
     ccache_size_msg=$([ccache -s | tail -n 1 | sed 's/^[^0-9]*//' | sed -e 's/\.[0-9]*//'])
     ccache_size=$(echo "$ccache_size_msg" | grep "G" | sed -e 's/G.*$//')
-    if test "$ccache_size" = "" ; then
+    if test "$ccache_size" = ""; then
         ccache_size=$(echo "$ccache_size_msg" | grep "M" | sed -e 's/\ M.*$//')
-        if test "$ccache_size" = "" ; then
+        if test "$ccache_size" = ""; then
             ccache_size=0
         fi
         # we could not determine the size or it was less than 1GB -> disable auto-ccache
-        if test $ccache_size -lt 1024 ; then
+        if test $ccache_size -lt 1024; then
             CCACHE=""
             AC_MSG_WARN([ccache's cache size is less than 1GB using it is counter-producive: Disabling auto-ccache detection])
             echo "ccache's cache size is less than 1GB using it is counter-producive: auto-ccache detection disabled" >> warn
@@ -2165,7 +2165,7 @@ if test "$CCACHE" != "" ; then
             echo "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >> warn
         fi
     else
-        if test $ccache_size -lt 5  ; then
+        if test $ccache_size -lt 5; then
             #warn that ccache may be too small for debug build
             AC_MSG_WARN([ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build])
             echo "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >> warn
@@ -2180,8 +2180,8 @@ dnl ===================================================================
 GCC_HOME_SET="true"
 AC_MSG_CHECKING([gcc home])
 if test -z "$with_gcc_home"; then
-    if test "$enable_icecream" = "yes" ; then
-        if test -d "/usr/lib/icecc/bin" ; then
+    if test "$enable_icecream" = "yes"; then
+        if test -d "/usr/lib/icecc/bin"; then
             GCC_HOME="/usr/lib/icecc/"
         else
             GCC_HOME="/opt/icecream/"
@@ -2196,7 +2196,7 @@ fi
 AC_MSG_RESULT($GCC_HOME)
 AC_SUBST(GCC_HOME)
 
-if test "$GCC_HOME_SET" = "true" ; then
+if test "$GCC_HOME_SET" = "true"; then
     if test -z "$CC"; then
         CC="$GCC_HOME/bin/gcc"
     fi
@@ -2211,7 +2211,7 @@ if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
 fi
 
 COMPATH=`dirname "$CC"`
-if test "$COMPATH" = "." ; then
+if test "$COMPATH" = "."; then
     AC_PATH_PROGS(COMPATH, $CC)
     dnl double square bracket to get single because of M4 quote...
     COMPATH=`echo $COMPATH | $SED "s@/[[^/:]]*\\\$@@"`;
@@ -2248,17 +2248,17 @@ fi
 dnl ===================================================================
 dnl  Test MacOSX sdk and version requirement
 dnl ===================================================================
-if test "$_os" = "Darwin" ; then
+if test "$_os" = "Darwin"; then
 
-    if test "$with_macosx_version_min_required" = "" ; then
+    if test "$with_macosx_version_min_required" = ""; then
         with_macosx_version_min_required="10.4"
     fi
 
-    if test "$with_macosx_version_max_allowed" = "" ; then
+    if test "$with_macosx_version_max_allowed" = ""; then
         with_macosx_version_max_allowed="$with_macosx_version_min_required"
     fi
 
-    if test "$with_macosx_sdk" = "" ; then
+    if test "$with_macosx_sdk" = ""; then
         with_macosx_sdk="$with_macosx_version_max_allowed"
     fi
 
@@ -2303,7 +2303,7 @@ if test "$_os" = "Darwin" ; then
         ;;
     esac
     AC_MSG_CHECKING([the presence of the SDK $with_macosx_sdk])
-    if test -d "$MACOSX_SDK_PATH" ; then
+    if test -d "$MACOSX_SDK_PATH"; then
         AC_MSG_RESULT([$MACOSX_SDK_PATH ok])
     else
         AC_MSG_ERROR([$MACOSX_SDK_PATH not found])
@@ -2320,7 +2320,7 @@ if test "$_os" = "Darwin" ; then
         MAC_OS_X_VERSION_MIN_REQUIRED="1050"
         AC_MSG_WARN([Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build])
         echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
-        if test -z "$save_CC" ; then
+        if test -z "$save_CC"; then
             CC="gcc-4.2 -m32"
             CXX="g++-4.2 -m32"
         fi
@@ -2329,7 +2329,7 @@ if test "$_os" = "Darwin" ; then
         MAC_OS_X_VERSION_MIN_REQUIRED="1060"
         AC_MSG_WARN([Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build])
         echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
-        if test -z "$save_CC" ; then
+        if test -z "$save_CC"; then
             CC="gcc-4.2 -m32"
             CXX="g++-4.2 -m32"
         fi
@@ -2338,7 +2338,7 @@ if test "$_os" = "Darwin" ; then
         MAC_OS_X_VERSION_MIN_REQUIRED="1070"
         AC_MSG_WARN([Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build])
         echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
-        if test -z "$save_CC" ; then
+        if test -z "$save_CC"; then
             CC="gcc-4.2 -m32"
             CXX="g++-4.2 -m32"
         fi
@@ -2368,14 +2368,14 @@ if test "$_os" = "Darwin" ; then
     esac
 
     AC_MSG_CHECKING([that macosx-version-min-required is coherent with macosx-version-max-allowed])
-    if test $MAC_OS_X_VERSION_MIN_REQUIRED -gt $MAC_OS_X_VERSION_MAX_ALLOWED ; then
+    if test $MAC_OS_X_VERSION_MIN_REQUIRED -gt $MAC_OS_X_VERSION_MAX_ALLOWED; then
         AC_MSG_ERROR([the version minimumn required must be inferior or equal to the version maximum allowed])
     else
         AC_MSG_RESULT([ok])
     fi
 
     AC_MSG_CHECKING([that macosx-version-max-allowed is coherent macos-with-sdk])
-    if test $MAC_OS_X_VERSION_MAX_ALLOWED -gt $macosx_sdk_value ; then
+    if test $MAC_OS_X_VERSION_MAX_ALLOWED -gt $macosx_sdk_value; then
         AC_MSG_ERROR([the version maximum allowed cannot be greater thatn the sdk level])
     else
         AC_MSG_RESULT([ok])
@@ -2456,16 +2456,16 @@ if test "$GCC" = "yes"; then
     _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
     GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
 
-    if test "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$GCCVER" -ge "040100" ; then
-        if test -z "$save_CC" -a -x "$GCC_HOME/bin/gcc-4.0" ; then
+    if test "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$GCCVER" -ge "040100"; then
+        if test -z "$save_CC" -a -x "$GCC_HOME/bin/gcc-4.0"; then
             export CC="$GCC_HOME/bin/gcc-4.0"
             #  export CC to have it available in set_soenv -> config.guess
             GCCVER2=`$CC -dumpversion | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
-            if test "$GCCVER2" -ge "040000" -a "$GCCVER2" -lt "040100" ; then
+            if test "$GCCVER2" -ge "040000" -a "$GCCVER2" -lt "040100"; then
                 GCCVER=$GCCVER2
             fi
         fi
-        if test "$GCCVER" -ge "040100" ; then
+        if test "$GCCVER" -ge "040100"; then
             AC_MSG_ERROR([You need to use the gcc-4.0 compiler (gcc $_gcc_version won't work with the MacOSX10.4u.sdk) - set CC accordingly])
         else
             AC_MSG_RESULT([implicitly using CC=$CC])
@@ -2496,8 +2496,8 @@ AC_SUBST(COM_GCC_IS_CLANG)
 #
 # prefix C with ccache if needed
 #
-if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" ; then
-    if test "$CCACHE" != "" ; then
+if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
+    if test "$CCACHE" != ""; then
         AC_MSG_CHECKING([whether $CC is already ccached])
 
         AC_LANG_PUSH([C])
@@ -2506,7 +2506,7 @@ if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" ; then
         dnl an empty program will do, we're checking the compiler flags
         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
                           [use_ccache=yes], [use_ccache=no])
-        if test $use_ccache = yes ; then
+        if test $use_ccache = yes; then
             AC_MSG_RESULT([yes])
         else
             CC="$CCACHE $CC"
@@ -2706,7 +2706,7 @@ if test "$_os" = "WINNT"; then
         SHOWINCLUDES_PREFIX=`$CC -c -showIncludes conftest.c 2>/dev/null | \
             grep 'stdlib\.h' | head -n1 | sed 's/ [[[:alpha:]]]:.*//'`
         rm -f conftest.c conftest.obj
-        if test -z "$SHOWINCLUDES_PREFIX" ; then
+        if test -z "$SHOWINCLUDES_PREFIX"; then
             AC_MSG_ERROR([cannot determine the -showIncludes prefix])
         else
             AC_MSG_RESULT(["$SHOWINCLUDES_PREFIX"])
@@ -3479,7 +3479,7 @@ fi
 AC_SUBST(TARFILE_LOCATION)
 
 AC_MSG_CHECKING([whether we want to fetch tarballs])
-if test "z$enable_fetch_external" != "zno" ; then
+if test "z$enable_fetch_external" != "zno"; then
     AC_MSG_RESULT([yes])
     DO_FETCH_TARBALLS="YES"
 else
@@ -3594,10 +3594,10 @@ fi
 AC_MSG_CHECKING([the GNU make version])
 _make_version=`$GNUMAKE --version | grep GNU | grep -v GPL | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
 _make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
-if test "$_make_longver" -ge "038200" ; then
+if test "$_make_longver" -ge "038200"; then
     AC_MSG_RESULT([$GNUMAKE $_make_version])
 
-elif test "$_make_longver" -ge "038100" ; then
+elif test "$_make_longver" -ge "038100"; then
     AC_MSG_RESULT([$GNUMAKE $_make_version])
     AC_MSG_CHECKING([for GNU make bug 20033])
     TESTGMAKEBUG20033=`mktemp -d`
@@ -3649,16 +3649,16 @@ fi
 HAVE_LD_HASH_STYLE=FALSE
 WITH_LINKER_HASH_STYLE=
 AC_MSG_CHECKING( for --hash-style gcc linker support )
-if test "$GCC" = "yes" ; then
-    if test -z "$with_linker_hash_style" -o "$with_linker_hash_style" = "yes" ; then
+if test "$GCC" = "yes"; then
+    if test -z "$with_linker_hash_style" -o "$with_linker_hash_style" = "yes"; then
         hash_styles="gnu sysv"
-    elif test "$with_linker_hash_style" = "no" ; then
+    elif test "$with_linker_hash_style" = "no"; then
         hash_styles=
     else
         hash_styles="$with_linker_hash_style"
     fi
 
-    for hash_style in $hash_styles ; do
+    for hash_style in $hash_styles; do
         test "$HAVE_LD_HASH_STYLE" = "TRUE" && continue
         hash_style_ldflags_save=$LDFLAGS
         LDFLAGS="$LDFLAGS -Wl,--hash-style=$hash_style"
@@ -3805,15 +3805,15 @@ if test "$build_os" = "cygwin"; then
     if test -z "$MIDL_PATH" -a -e "$with_cl_home/../Common7/Tools/Bin/midl.exe"; then
         MIDL_PATH="$with_cl_home/../Common7/Tools/Bin"
     fi
-    if test -z "$MIDL_PATH" ; then
+    if test -z "$MIDL_PATH"; then
         vstest=`./oowintool --msvs-productdir`;
-        if test -x "$vstest/Common7/Tools/Bin/midl.exe" ; then
+        if test -x "$vstest/Common7/Tools/Bin/midl.exe"; then
             MIDL_PATH="$vstest/Common7/Tools/Bin"
         fi
     fi
-    if test -z "$MIDL_PATH" ; then
+    if test -z "$MIDL_PATH"; then
         winsdktest=`./oowintool --windows-sdk-home`
-        if test -x "$winsdktest/Bin/midl.exe" ; then
+        if test -x "$winsdktest/Bin/midl.exe"; then
             MIDL_PATH="$winsdktest/Bin"
         fi
     fi
@@ -3855,7 +3855,7 @@ if test "$build_os" = "cygwin"; then
     if test -f "$with_dotnet_framework_home/lib/mscoree.lib"; then
         DOTNET_FRAMEWORK_HOME="$with_dotnet_framework_home"
     fi
-    if test -z "$DOTNET_FRAMEWORK_HOME" ; then
+    if test -z "$DOTNET_FRAMEWORK_HOME"; then
         frametest=`./oowintool --dotnetsdk-dir`
         if test -f "$frametest/lib/mscoree.lib"; then
             DOTNET_FRAMEWORK_HOME="$frametest"
@@ -3908,15 +3908,15 @@ if test "$GXX" = "yes"; then
     _gpp_version=`$CXX -dumpversion`
     _gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'`
 
-    if test "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$_gpp_majmin" -ge "401" ; then
-        if test -z "$save_CXX" -a -x "$GCC_HOME/bin/g++-4.0" ; then
+    if test "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$_gpp_majmin" -ge "401"; then
+        if test -z "$save_CXX" -a -x "$GCC_HOME/bin/g++-4.0"; then
             export CXX="$GCC_HOME/bin/g++-4.0"
             _gpp_majmin_2=`$CXX -dumpversion | $AWK -F. '{ print \$1*100+\$2 }'`
-            if test "$_gpp_majmin_2" -ge "400" -a "$_gpp_majmin_2" -lt "401" ; then
+            if test "$_gpp_majmin_2" -ge "400" -a "$_gpp_majmin_2" -lt "401"; then
                 _gpp_majmin=$_gpp_majmin_2
             fi
         fi
-        if test "$_gpp_majmin" -ge "401" ; then
+        if test "$_gpp_majmin" -ge "401"; then
             AC_MSG_ERROR([You need to use the g++-4.0 compiler (g++ $_gpp_version won't work with the MacOSX10.4u.sdk) - set CXX accordingly])
         else
             AC_MSG_RESULT([implicitly using CXX=$CXX])
@@ -3954,7 +3954,7 @@ fi
 # prefx CXX with ccache if needed
 #
 if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
-    if test "$CCACHE" != "" ; then
+    if test "$CCACHE" != ""; then
         AC_MSG_CHECKING([whether $CXX is already ccached])
         AC_LANG_PUSH([C++])
         save_CXXFLAGS=$CXXFLAGS
@@ -3962,7 +3962,7 @@ if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
         dnl an empty program will do, we're checking the compiler flags
         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
                           [use_ccache=yes], [use_ccache=no])
-        if test $use_ccache = yes ; then
+        if test $use_ccache = yes; then
             AC_MSG_RESULT([yes])
         else
             CXX="$CCACHE $CXX"
@@ -4280,7 +4280,7 @@ elif test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
 elif test "$_os" = "FreeBSD"; then
     BUILD_STLPORT="yes"
 fi
-if test "$BUILD_STLPORT" = "yes" ; then
+if test "$BUILD_STLPORT" = "yes"; then
     AC_MSG_RESULT([yes])
 else
     AC_MSG_RESULT([no])
@@ -4290,7 +4290,7 @@ AC_MSG_CHECKING([Whether STLPort library will be actually built])
 if test "$with_stlport" = "auto" -o "$BUILD_STLPORT" = "no"; then
     with_stlport=$BUILD_STLPORT
 fi
-if test "$with_stlport" = "yes" ; then
+if test "$with_stlport" = "yes"; then
     AC_MSG_RESULT([yes])
     WITH_STLPORT=YES
     SCPDEFS="$SCPDEFS -DWITH_STLPORT"
@@ -4444,7 +4444,7 @@ dnl ===================================================================
 dnl system stl sanity tests
 dnl ===================================================================
 HAVE_GCC_VISIBILITY_BROKEN=
-if test \( "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" \) ; then
+if test \( "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" \); then
 
     AC_LANG_PUSH([C++])
 
@@ -4498,7 +4498,7 @@ _ACEOF
         if ! $CXX $CXXFLAGS $CPPFLAGS -shared -fPIC -fvisibility-inlines-hidden conftestlib1.cc -o lib1.so >/dev/null 2>/dev/null; then
             gccvisinlineshiddenok=no
         else
-            if ! $CXX $CXXFLAGS $CPPFLAGS -shared -fPIC -fvisibility-inlines-hidden conftestlib2.cc -L. -l1 -Wl,-z,defs -o lib2.so >/dev/null 2>/dev/null ; then
+            if ! $CXX $CXXFLAGS $CPPFLAGS -shared -fPIC -fvisibility-inlines-hidden conftestlib2.cc -L. -l1 -Wl,-z,defs -o lib2.so >/dev/null 2>/dev/null; then
                 gccvisinlineshiddenok=no
             fi
         fi
@@ -4809,14 +4809,14 @@ if test "$SOLAR_JAVA" != ""; then
     AC_MSG_CHECKING([for target Java bytecode version])
     if test "$JDK" = "gcj" -o "$JDK" = "kaffe"; then
     AC_MSG_RESULT([default by $JDK])
-    if test -n "$with_java_target_version" -a "$with_java_target_version" != "no" ; then
+    if test -n "$with_java_target_version" -a "$with_java_target_version" != "no"; then
         AC_MSG_WARN([Value defined by --with-java-target-version is ignored!])
     fi
     else
-    if test -n "$with_java_target_version" -a "$with_java_target_version" != "no" ; then
+    if test -n "$with_java_target_version" -a "$with_java_target_version" != "no"; then
         _java_target_ver="$with_java_target_version"
         AC_MSG_RESULT([$_java_target_ver])
-    elif test $_jdk_ver -gt 10000 ; then
+    elif test $_jdk_ver -gt 10000; then
         _java_target_ver=`echo "$_jdk_ver" | $AWK '{ maj=substr($0,1,1); min=substr($0,2,2); print int(maj)"."int(min) }'`
         AC_MSG_RESULT([$_java_target_ver])
     else
@@ -4972,7 +4972,7 @@ _ACEOF
             AC_MSG_CHECKING([if javac works])
             javac_cmd="$JAVACOMPILER findhome.java 1>&2"
             AC_TRY_EVAL(javac_cmd)
-            if test $? = 0 -a -f ./findhome.class ; then
+            if test $? = 0 -a -f ./findhome.class; then
                 AC_MSG_RESULT([javac works])
             else
                 echo "configure: javac test failed" >&5
@@ -4981,7 +4981,7 @@ _ACEOF
             fi
             AC_MSG_CHECKING([if gij knows its java.home])
             JAVA_HOME=`$JAVAINTERPRETER findhome`
-            if test $? = 0 -a "$JAVA_HOME" != "" ; then
+            if test $? = 0 -a "$JAVA_HOME" != ""; then
                 AC_MSG_RESULT([$JAVA_HOME])
             else
                 echo "configure: java test failed" >&5
@@ -5037,7 +5037,7 @@ if test "$SOLAR_JAVA" != ""; then
     fi
     # IBM SDK 1.5.0-sr5 includes libjawt.so with unresolved symbols.
     # A workaround is to link also against libpmawt.so
-    if test "$JDK" = "ibm" ; then
+    if test "$JDK" = "ibm"; then
         save_CFLAGS=$CFLAGS
         save_LDFLAGS=$LDFLAGS
         save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
@@ -5066,7 +5066,7 @@ if test "$SOLAR_JAVA" != ""; then
 fi
 
 
-if test "$SOLAR_JAVA" != "" ; then
+if test "$SOLAR_JAVA" != ""; then
 #
 # Determine JAVALIB
 # If your platform follow the common pattern
@@ -5124,7 +5124,7 @@ if test "$SOLAR_JAVA" != "" ; then
             JAVA_TOOLKIT="client"
             ;;
         x86_64)
-            if test "`echo $JAVA_HOME | sed -e 's,.*/,,'`" = "linux" ; then
+            if test "`echo $JAVA_HOME | sed -e 's,.*/,,'`" = "linux"; then
                 JAVA_ARCH="i386"
                 JAVA_TOOLKIT="client"
             else
@@ -5219,7 +5219,7 @@ if test "$SOLAR_JAVA" != "" ; then
             ;;
         powerpc64)
             JAVA_ARCH="ppc64"
-            if test "$JDK" = "gcj" ; then
+            if test "$JDK" = "gcj"; then
                 JAVA_TOOLKIT="client"
             else
                 JAVA_TOOLKIT="server"
@@ -5324,7 +5324,7 @@ if test "$SOLAR_JAVA" != "" ; then
         ;;
     esac
 
-    if test -n "$JAVA_ARCH" ; then
+    if test -n "$JAVA_ARCH"; then
         JRE_BASE_DIR="$JAVA_HOME/jre/lib/$JAVA_ARCH"
         JAVALIB="-L$JAVA_HOME/$LIB64"
         test -d "$JRE_BASE_DIR" && JAVALIB="$JAVALIB -L$JRE_BASE_DIR"
@@ -5333,8 +5333,8 @@ if test "$SOLAR_JAVA" != "" ; then
     fi
 
     CLASSPATH=
-    if test "$JDK"!="gcj" ; then
-        if test -f "$JAVA_HOME/jre/lib/rt.jar" ; then
+    if test "$JDK"!="gcj"; then
+        if test -f "$JAVA_HOME/jre/lib/rt.jar"; then
             CLASSPATH="${JAVA_HOME}/jre/lib/rt.jar${P_SEP}."
         fi
     fi
@@ -5537,7 +5537,7 @@ msi - Windows .msi
                 fi
             fi
         done
-        if test -z "$RPM" ; then
+        if test -z "$RPM"; then
             AC_MSG_ERROR([not found])
         elif "$RPM" --help 2>&1 | $EGREP buildroot >/dev/null; then
             RPM_PATH=`which $RPM`
@@ -5632,7 +5632,7 @@ if test "z$enable_odk" = "z" -o "$enable_odk" != "no"; then
 
     if test "$with_java" != "no"; then
         AC_MSG_CHECKING([whether to build unowinreg.dll])
-        if test "$_os" = "WINNT" -a "z$enable_build_unowinreg" = "z" ; then
+        if test "$_os" = "WINNT" -a "z$enable_build_unowinreg" = "z"; then
             # build on Win by default
             enable_build_unowinreg=yes
         fi
@@ -5999,7 +5999,7 @@ else
     fi
 fi
 AC_SUBST(SYSTEM_LIBXSLT)
-if test -z "$SYSTEM_LIBXSLT_FOR_BUILD" ; then
+if test -z "$SYSTEM_LIBXSLT_FOR_BUILD"; then
     SYSTEM_LIBXSLT_FOR_BUILD="$SYSTEM_LIBXSLT"
 fi
 AC_SUBST(SYSTEM_LIBXSLT_FOR_BUILD)
@@ -6165,8 +6165,8 @@ if test $enable_python = system; then
         dnl How to find out the cross-compilation Python installation path?
         dnl Let's hardocode what we know for different distributions for now...
 
-        for python_sysroot in /usr/i686-w64-mingw32/sys-root/mingw ; do
-            for python_version in 2.6 ; do
+        for python_sysroot in /usr/i686-w64-mingw32/sys-root/mingw; do
+            for python_version in 2.6; do
                 if test -f ${python_sysroot}/include/python${python_version}/Python.h; then
                     PYTHON_CFLAGS="-I${python_sysroot}/include/python$python_version"
                     PYTHON_LIBS="-L${python_sysroot}lib -lpython$python_version $python_libs"
@@ -6266,7 +6266,7 @@ if test "$with_system_db" = "yes"; then
             [ DB_LIB="db$dash$dbver"; DB_CPPLIB="db_cxx$dash$dbver"; break ])
     done
 
-    if test -z "$DB_LIB" ; then
+    if test -z "$DB_LIB"; then
         AC_MSG_ERROR([db library not found. Use the correct -L flag,
 or install the Berkeley db development package.])
     fi
@@ -6678,7 +6678,7 @@ _ACEOF
 
     javac_cmd="$JAVACOMPILER -cp $SAXON_JAR saxontest.java 1>&2"
     AC_TRY_EVAL(javac_cmd)
-    if test $? = 0 -a -f ./saxontest.class ; then
+    if test $? = 0 -a -f ./saxontest.class; then
         java_cmd="$JAVAINTERPRETER -cp $SAXON_JAR:. saxontest saxontest.xsl 1>&2"
         AC_TRY_EVAL(java_cmd)
         if test $? = 0; then
@@ -7057,8 +7057,8 @@ else
 
     AC_MSG_CHECKING([for toolkit Mozilla should use])
     if test -z "$with_mozilla_toolkit"; then
-        if test "$_os" != "WINNT" ; then
-            if test "$_os" = "Darwin" ; then
+        if test "$_os" != "WINNT"; then
+            if test "$_os" = "Darwin"; then
                 MOZILLA_TOOLKIT=mac
                 AC_MSG_RESULT([mac])
             else
@@ -7133,7 +7133,7 @@ Use "./download" to download.])
         fi
         if test "$_os" = "WINNT"; then
             AC_MSG_CHECKING([for moztools binaries])
-            if test ! -e "$TARFILE_LOCATION/vc8-moztools.zip" ; then
+            if test ! -e "$TARFILE_LOCATION/vc8-moztools.zip"; then
                 AC_MSG_ERROR([The following file is missing in $TARFILE_LOCATION: vc8-moztools.zip
 (from ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc8/)])
             else
@@ -7170,14 +7170,14 @@ Use "./download" to download.])
         AC_MSG_CHECKING([which pre-built Mozilla module in moz/zipped])
         if test -e "$SRC_ROOT/moz/zipped/${OS}${COM}${CPU}inc.zip" -a \
                 -e "$SRC_ROOT/moz/zipped/${OS}${COM}${CPU}lib.zip" -a \
-                -e "$SRC_ROOT/moz/zipped/${OS}${COM}${CPU}runtime.zip" ; then
+                -e "$SRC_ROOT/moz/zipped/${OS}${COM}${CPU}runtime.zip"; then
             AC_MSG_RESULT([Found])
             PREBUILD_MOZAB="YES"
-            if test "$_os" = "WINNT" ; then
+            if test "$_os" = "WINNT"; then
                 AC_MSG_CHECKING([for MSVC 2005 runtime needed for prebuilt Mozilla])
                 if test -e "$SRC_ROOT/external/msvcp80/Microsoft.VC80.CRT.manifest" -a \
                         -e "$SRC_ROOT/external/msvcp80/msvcp80.dll" -a \
-                        -e "$SRC_ROOT/external/msvcp80/msvcr80.dll" ; then
+                        -e "$SRC_ROOT/external/msvcp80/msvcr80.dll"; then
                     AC_MSG_RESULT([Found])
                 else
                     AC_MSG_RESULT([Not Found])
@@ -7204,7 +7204,7 @@ These files can be found at <http://dev-www.libreoffice.org/mozilla/>
     fi
 fi
 
-if test "$SYSTEM_MOZILLA" = "YES" ; then
+if test "$SYSTEM_MOZILLA" = "YES"; then
     SOLARLIB="$SOLARLIB -L$MOZ_LIB"
 fi
 
@@ -7233,20 +7233,20 @@ else
     AC_MSG_RESULT([internal])
     if test "$build_os" = "cygwin"; then
         AC_MSG_CHECKING([for Mozilla build tooling. Required for nss and/or mozilla])
-        if test -z "$MOZILLABUILD" ; then
+        if test -z "$MOZILLABUILD"; then
             AC_MSG_ERROR([Mozilla build tooling not found.
 Use the --with-mozilla-build option after installing the tools obtained
 from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32])
         else
-            if test \( "$WITH_MINGW" = "yes" \) ; then
-                if test ! -d "$MOZILLABUILD" ; then
+            if test \( "$WITH_MINGW" = "yes" \); then
+                if test ! -d "$MOZILLABUILD"; then
                     AC_MSG_ERROR([Mozilla build tooling incomplete!])
                 else
                     AC_MSG_RESULT([ok])
                 fi
             else
                 if test ! -d "$MOZILLABUILD/moztools" \
-                        -o ! -d "$MOZILLABUILD/msys" ; then
+                        -o ! -d "$MOZILLABUILD/msys"; then
                     AC_MSG_ERROR([Mozilla build tooling incomplete!])
                 else
                     AC_MSG_RESULT([ok])
@@ -7341,7 +7341,7 @@ if test "$with_system_icu" = "yes"; then
     AC_LANG_POP([C++])
 
     ICUPATH="$PATH"
-    if test "$WITH_MINGW" = "yes" ; then
+    if test "$WITH_MINGW" = "yes"; then
         ICUPATH=`$CC -print-sysroot`/mingw/bin:"$ICUPATH"
     fi
     AC_PATH_PROG(ICUCONFIG,icu-config,,[$ICUPATH])
@@ -7400,7 +7400,7 @@ dnl Graphite
 dnl ===================================================================
 
 AC_MSG_CHECKING([whether to enable graphite support])
-if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "z$enable_graphite" = "z" -o "$enable_graphite" != "no" ; then
+if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "z$enable_graphite" = "z" -o "$enable_graphite" != "no"; then
     AC_MSG_RESULT([yes])
     ENABLE_GRAPHITE="TRUE"
     AC_MSG_CHECKING([which graphite to use])
@@ -7514,10 +7514,10 @@ if test "$x_libraries" = "default_x_libraries"; then
 else
     XLIB="$x_libraries"
 fi
-if test "$XLIB" != "no_x_libraries" -a "$XLIB" != "/usr/lib" -a "$XLIB" != "/usr/lib64" ; then
+if test "$XLIB" != "no_x_libraries" -a "$XLIB" != "/usr/lib" -a "$XLIB" != "/usr/lib64"; then
     SOLARLIB="$SOLARLIB -L$XLIB"
 fi
-if test "$XINC" != "no_x_includes" -a "$XINC" != "/usr/include" ; then
+if test "$XINC" != "no_x_includes" -a "$XINC" != "/usr/include"; then
     SOLARINC="$SOLARINC -I$XINC"
 fi
 AC_SUBST(XLIB)
@@ -7560,7 +7560,7 @@ dnl ===================================================================
 dnl Check for XRandr
 dnl ===================================================================
 AC_MSG_CHECKING([whether to enable RandR support])
-if test "$WANT_X11" = "yes" -a "$test_randr" = "yes" -a \( "$enable_randr" = "yes" -o "$enable_randr" = "TRUE" \) ; then
+if test "$WANT_X11" = "yes" -a "$test_randr" = "yes" -a \( "$enable_randr" = "yes" -o "$enable_randr" = "TRUE" \); then
     if test -z "$enable_randr_link" -o "$enable_randr_link" = "no"; then
         XRANDR_DLOPEN="TRUE"
         AC_MSG_RESULT([configured to dlopen libXrandr at runtime])
@@ -7906,7 +7906,7 @@ the  Windows SDK are installed.])
         if test ! -x "$WINDOWS_SDK_HOME/bin/msiinfo.exe" \
              -o ! -x "$WINDOWS_SDK_HOME/bin/msidb.exe" \
              -o ! -x "$WINDOWS_SDK_HOME/bin/uuidgen.exe" \
-             -o ! -x "$WINDOWS_SDK_HOME/bin/msitran.exe" ; then
+             -o ! -x "$WINDOWS_SDK_HOME/bin/msitran.exe"; then
             AC_MSG_ERROR([Some (all) files of the Windows Installer SDK are missing, please install.])
         fi
     fi
@@ -7953,14 +7953,14 @@ if test -n "$ENABLE_DIRECTX" -a "$_os" = "WINNT"; then
         DIRECTXSDK_HOME="$with_directx_home"
     fi
 
-    if test -f "$DIRECTXSDK_HOME/Include/ddraw.h" -o -f "$DIRECTXSDK_HOME/Include/d3d9.h" ; then
+    if test -f "$DIRECTXSDK_HOME/Include/ddraw.h" -o -f "$DIRECTXSDK_HOME/Include/d3d9.h"; then
         HAVE_DIRECTXSDK_H="yes"
     else
         HAVE_DIRECTXSDK_H="no"
     fi
 
     # MS changed the location of the libraries with Dec 2004 DirectX SDK
-    if test -d "$DIRECTXSDK_HOME/lib/x86" ; then
+    if test -d "$DIRECTXSDK_HOME/lib/x86"; then
         DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib/x86"
     else
         DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib"
@@ -7968,7 +7968,7 @@ if test -n "$ENABLE_DIRECTX" -a "$_os" = "WINNT"; then
     PathFormat "$DIRECTXSDK_LIB"
     DIRECTXSDK_LIB="$formatted_path"
 
-    if test -f "$DIRECTXSDK_LIB/ddraw.lib" -o -f "$DIRECTXSDK_LIB/d3d9.lib" ; then
+    if test -f "$DIRECTXSDK_LIB/ddraw.lib" -o -f "$DIRECTXSDK_LIB/d3d9.lib"; then
         HAVE_DIRECTXSDK_LIB="yes"
     else
         HAVE_DIRECTXSDK_LIB="no"
@@ -7999,7 +7999,7 @@ else
     _bison_longver=`echo $_bison_version | $AWK -F. '{ print \$1*1000+\$2}'`
     # Accept newer than 1.875 or older(equal) than 1.75
     if test "$_bison_longver" -ge 1875 -o "$_bison_longver" -le 1075; then
-        if test "$_bison_version" = "1.875" ; then
+        if test "$_bison_version" = "1.875"; then
             AC_MSG_WARN([suspect ($BISON $_bison_version)])
             echo "Suspect ($BISON $_bison_version) suggest upgrade" >> warn
         else
@@ -8149,7 +8149,7 @@ dnl ===================================================================
 dnl Zip must be a specific type for different build types.
 dnl ===================================================================
 if test $build_os = cygwin; then
-    if test -n "`$ZIP -h | grep -i WinNT`" ; then
+    if test -n "`$ZIP -h | grep -i WinNT`"; then
         AC_MSG_ERROR([$ZIP is not the required Cygwin version of Info-ZIP's zip.exe.])
     fi
 fi
@@ -8258,7 +8258,7 @@ DBUS_CFLAGS=""
 DBUS_LIBS=""
 if test  "$test_gtk" = "yes"; then
 
-    if test "$ENABLE_GTK" = "TRUE" ; then
+    if test "$ENABLE_GTK" = "TRUE"; then
         PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ,,AC_MSG_ERROR([requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages]))
         PKG_CHECK_MODULES(GTHREAD, gthread-2.0,,AC_MSG_ERROR([requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages]))
         BUILD_TYPE="$BUILD_TYPE GTK"
@@ -8285,7 +8285,7 @@ if test  "$test_gtk" = "yes"; then
 
         AC_MSG_CHECKING([whether to enable GIO support])
         if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gio" = "yes"; then
-            if test "$ENABLE_GNOMEVFS" = "TRUE" ; then
+            if test "$ENABLE_GNOMEVFS" = "TRUE"; then
                 AC_MSG_ERROR([please use --enable-gio only together with --disable-gnome-vfs.])
             fi
             ENABLE_GIO="TRUE"
@@ -8337,7 +8337,7 @@ fi
 AC_SUBST(SPLIT_OPT_FEATURES)
 
 ENABLE_CAIRO_CANVAS="FALSE"
-if test "$enable_cairo_canvas" = "yes" ; then
+if test "$enable_cairo_canvas" = "yes"; then
    ENABLE_CAIRO_CANVAS="TRUE"
 fi
 AC_SUBST(ENABLE_CAIRO_CANVAS)
@@ -8351,7 +8351,7 @@ ENABLE_GSTREAMER=""
 if test  "$build_gstreamer" = "yes"; then
 
     AC_MSG_CHECKING([whether to enable the GStreamer avmedia backend])
-    if test "x$enable_gstreamer" != "xno" ; then
+    if test "x$enable_gstreamer" != "xno"; then
         ENABLE_GSTREAMER="TRUE"
         AC_MSG_RESULT([yes])
         PKG_CHECK_MODULES( GSTREAMER, gstreamer-0.10 gstreamer-plugins-base-0.10 )
@@ -8369,13 +8369,13 @@ dnl ===================================================================
 AC_MSG_CHECKING([whether to build the OpenGL Transitions component])
 ENABLE_OPENGL=
 
-if test "$_os" = "Darwin" ; then
+if test "$_os" = "Darwin"; then
     # We use frameworks on Mac OS X, no need for detail checks
     ENABLE_OPENGL=TRUE
     SYSTEM_MESA_HEADERS=YES
     AC_MSG_RESULT([yes])
 else
-    if test "x$enable_opengl" != "xno" ; then
+    if test "x$enable_opengl" != "xno"; then
         if test "$_os" != "WINNT"; then
             save_LDFLAGS=$LDFLAGS
             LDFLAGS="$LDFLAGS -lm"
@@ -8847,33 +8847,33 @@ KDE_LIBS=""
 if test "$_os" != "OpenBSD"; then
     MOC="moc"
 fi
-if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE" ; then
+if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE"; then
     dnl Search paths for Qt3 and KDE3
-    if test -z "$supports_multilib" ; then
+    if test -z "$supports_multilib"; then
         qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib/qt3/include /usr/lib/qt/include /usr/share/qt3/include /usr/local/include/X11/qt3 $x_includes"
         qt_libdirs="$QTLIB /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib /usr/local/lib/qt3 $x_libraries"
     else
         qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib64/qt3/include /usr/lib64/qt/include /usr/share/qt3/include /usr/lib/qt3/include /usr/lib/qt/include /usr/local/include/X11/qt3 $x_includes"
         qt_libdirs="$QTLIB /usr/local/qt/lib64 /usr/lib64/qt /usr/lib64 /usr/X11R6/lib64/X11/qt /usr/X11R6/lib64/qt /usr/lib64/qt3/lib64 /usr/lib64/qt/lib64 /usr/share/qt3/lib64 /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib /usr/local/lib/qt3 $x_libraries"
     fi
-    if test -n "$QTDIR" ; then
+    if test -n "$QTDIR"; then
         qt_incdirs="$QTDIR/include $qt_incdirs"
-        if test -z "$supports_multilib" ; then
+        if test -z "$supports_multilib"; then
             qt_libdirs="$QTDIR/lib $qt_libdirs"
         else
             qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
         fi
     fi
-    if test -z "$supports_multilib" ; then
+    if test -z "$supports_multilib"; then
         kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
         kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib $x_libraries"
     else
         kde_incdirs="/usr/lib64/kde/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
         kde_libdirs="/usr/lib64/kde/lib64 /usr/local/kde/lib64 /usr/kde/lib64 /usr/lib64/kde /usr/lib64/kde3 /usr/X11R6/lib64 /usr/local/lib64 /opt/kde3/lib64 /opt/kde/lib64 /usr/X11R6/kde/lib64 /usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/lib /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib64 $x_libraries"
     fi
-    if test -n "$KDEDIR" ; then
+    if test -n "$KDEDIR"; then
         kde_incdirs="$KDEDIR/include $kde_incdirs"
-        if test -z "$supports_multilib" ; then
+        if test -z "$supports_multilib"; then
             kde_libdirs="$KDEDIR/lib $kde_libdirs"
         else
             kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
@@ -8895,14 +8895,14 @@ if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE" ; then
     dnl Check for Qt3 headers
     AC_MSG_CHECKING([for Qt3 headers])
     qt_incdir="no"
-    for kde_check in $qt_incdirs ; do
-        if test -r "$kde_check/$qt_test_include" ; then
+    for kde_check in $qt_incdirs; do
+        if test -r "$kde_check/$qt_test_include"; then
             qt_incdir="$kde_check"
             break
         fi
     done
     AC_MSG_RESULT([$qt_incdir])
-    if test "x$qt_incdir" = "xno" ; then
+    if test "x$qt_incdir" = "xno"; then
         AC_MSG_ERROR([Qt3 headers not found.  Please specify the root of
 your Qt3 installation by exporting QTDIR before running "configure".])
     fi
@@ -8910,21 +8910,21 @@ your Qt3 installation by exporting QTDIR before running "configure".])
     dnl Check for Qt3 libraries
     AC_MSG_CHECKING([for Qt3 libraries])
     qt_libdir="no"
-    for qt_check in $qt_libdirs ; do
-        if test -r "`ls $qt_check/$qt_test_library 2>/dev/null | head -1`" ; then
+    for qt_check in $qt_libdirs; do
+        if test -r "`ls $qt_check/$qt_test_library 2>/dev/null | head -1`"; then
             qt_libdir="$qt_check"
             break
         fi
     done
     AC_MSG_RESULT([$qt_libdir])
-    if test "x$qt_libdir" = "xno" ; then
+    if test "x$qt_libdir" = "xno"; then
         AC_MSG_ERROR([Qt3 libraries not found.  Please specify the root of
 your Qt3 installation by exporting QTDIR before running "configure".])
     fi
 
     dnl Check for Meta Object Compiler
     AC_PATH_PROG( MOC, moc, no, [`dirname $qt_libdir`/bin:$QTDIR/bin:$PATH] )
-    if test "$MOC" = "no" ; then
+    if test "$MOC" = "no"; then
         AC_MSG_ERROR([Qt3 Meta Object Compiler not found.  Please specify
 the root of your Qt3 installation by exporting QTDIR before running "configure".])
     fi
@@ -8932,14 +8932,14 @@ the root of your Qt3 installation by exporting QTDIR before running "configure".
     dnl Check for KDE3 headers
     AC_MSG_CHECKING([for KDE3 headers])
     kde_incdir="no"
-    for kde_check in $kde_incdirs ; do
-        if test -r "$kde_check/$kde_test_include" ; then
+    for kde_check in $kde_incdirs; do
+        if test -r "$kde_check/$kde_test_include"; then
             kde_incdir="$kde_check"
             break
         fi
     done
     AC_MSG_RESULT([$kde_incdir])
-    if test "x$kde_incdir" = "xno" ; then
+    if test "x$kde_incdir" = "xno"; then
         AC_MSG_ERROR([KDE3 headers not found.  Please specify the root of
 your KDE3 installation by exporting KDEDIR before running "configure".])
     fi
@@ -8947,14 +8947,14 @@ your KDE3 installation by exporting KDEDIR before running "configure".])
     dnl Check for KDE3 libraries
     AC_MSG_CHECKING([for KDE3 libraries])
     kde_libdir="no"
-    for kde_check in $kde_libdirs ; do
-        if test -r "`ls $kde_check/$kde_test_library 2>/dev/null | head -1`" ; then
+    for kde_check in $kde_libdirs; do
+        if test -r "`ls $kde_check/$kde_test_library 2>/dev/null | head -1`"; then
             kde_libdir="$kde_check"
             break
         fi
     done
     AC_MSG_RESULT([$kde_libdir])
-    if test "x$kde_libdir" = "xno" ; then
+    if test "x$kde_libdir" = "xno"; then
         AC_MSG_ERROR([KDE3 libraries not found.  Please specify the root of
 your KDE3 installation by exporting KDEDIR before running "configure".])
     fi
@@ -8977,46 +8977,46 @@ MOC4="moc"
 KDE_GLIB_CFLAGS=""
 KDE_GLIB_LIBS=""
 KDE_HAVE_GLIB=""
-if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
+if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE"; then
     qt_incdirs="$QT4INC /usr/include/qt4 /usr/include $x_includes"
     qt_libdirs="$QT4LIB /usr/lib/qt4 /usr/lib $x_libraries"
 
     kde_incdirs="/usr/include /usr/include/kde4 $x_includes"
     kde_libdirs="/usr/lib /usr/lib/kde4 /usr/lib/kde4/devel $x_libraries"
 
-    if test -n "$supports_multilib" ; then
+    if test -n "$supports_multilib"; then
         qt_libdirs="$qt_libdirs /usr/lib64/qt4 /usr/lib64/qt /usr/lib64"
         kde_libdirs="$kde_libdirs /usr/lib64 /usr/lib64/kde4 /usr/lib64/kde4/devel"
     fi
 
-    if test -n "$QTDIR" ; then
+    if test -n "$QTDIR"; then
         qt_incdirs="$QTDIR/include $qt_incdirs"
-        if test -z "$supports_multilib" ; then
+        if test -z "$supports_multilib"; then
             qt_libdirs="$QTDIR/lib $qt_libdirs"
         else
             qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
         fi
     fi
-    if test -n "$QT4DIR" ; then
+    if test -n "$QT4DIR"; then
         qt_incdirs="$QT4DIR/include $qt_incdirs"
-        if test -z "$supports_multilib" ; then
+        if test -z "$supports_multilib"; then
             qt_libdirs="$QT4DIR/lib $qt_libdirs"
         else
             qt_libdirs="$QT4DIR/lib64 $QT4DIR/lib $qt_libdirs"
         fi
     fi
 
-    if test -n "$KDEDIR" ; then
+    if test -n "$KDEDIR"; then
         kde_incdirs="$KDEDIR/include $kde_incdirs"
-        if test -z "$supports_multilib" ; then
+        if test -z "$supports_multilib"; then
             kde_libdirs="$KDEDIR/lib $kde_libdirs"
         else
             kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
         fi
     fi
-    if test -n "$KDE4DIR" ; then
+    if test -n "$KDE4DIR"; then
         kde_incdirs="$KDE4DIR/include $KDE4DIR/include/kde4 $kde_incdirs"
-        if test -z "$supports_multilib" ; then
+        if test -z "$supports_multilib"; then
             kde_libdirs="$KDE4DIR/lib $kde_libdirs"
         else
             kde_libdirs="$KDE4DIR/lib64 $KDE4DIR/lib $kde_libdirs"
@@ -9030,22 +9030,22 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
 
     AC_MSG_CHECKING([for Qt4 headers])
     qt_header_dir="no"
-    for inc_dir in $qt_incdirs ; do
-        if test -r "$inc_dir/$qt_test_include" ; then
+    for inc_dir in $qt_incdirs; do
+        if test -r "$inc_dir/$qt_test_include"; then
             qt_header_dir="$inc_dir"
             break
         fi
     done
 
     AC_MSG_RESULT([$qt_header_dir])
-    if test "x$qt_header_dir" = "xno" ; then
+    if test "x$qt_header_dir" = "xno"; then
         AC_MSG_ERROR([Qt4 headers not found.  Please specify the root of your Qt4 installation by exporting QT4DIR before running "configure".])
     fi
 
     AC_MSG_CHECKING([for Qt4 libraries])
     qt_lib_dir="no"
-    for lib_dir in $qt_libdirs ; do
-        if test -r "$lib_dir/$qt_test_library" ; then
+    for lib_dir in $qt_libdirs; do
+        if test -r "$lib_dir/$qt_test_library"; then
             qt_lib_dir="$lib_dir"
             PKG_CONFIG_PATH="$qt_lib_dir"/pkgconfig:$PKG_CONFIG_PATH
             break
@@ -9054,7 +9054,7 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
 
     AC_MSG_RESULT([$qt_lib_dir])
 
-    if test "x$qt_lib_dir" = "xno" ; then
+    if test "x$qt_lib_dir" = "xno"; then
         AC_MSG_ERROR([Qt4 libraries not found.  Please specify the root of your Qt4 installation by exporting QT4DIR before running "configure".])
     fi
 
@@ -9062,9 +9062,9 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
 
     AC_PATH_PROG( MOCQT4, moc-qt4, no, [`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH] )
     MOC4="$MOCQT4"
-    if test "$MOC4" = "no" ; then
+    if test "$MOC4" = "no"; then
         AC_PATH_PROG( MOC4, moc, no, [`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH] )
-        if test "$MOC4" = "no" ; then
+        if test "$MOC4" = "no"; then
             AC_MSG_ERROR([Qt Meta Object Compiler not found.  Please specify
 the root of your Qt installation by exporting QT4DIR before running "configure".])
         fi
@@ -9073,29 +9073,29 @@ the root of your Qt installation by exporting QT4DIR before running "configure".
     dnl Check for KDE4 headers
     AC_MSG_CHECKING([for KDE4 headers])
     kde_incdir="no"
-    for kde_check in $kde_incdirs ; do
-        if test -r "$kde_check/$kde_test_include" ; then
+    for kde_check in $kde_incdirs; do
+        if test -r "$kde_check/$kde_test_include"; then
             kde_incdir="$kde_check"
             break
         fi
     done
     AC_MSG_RESULT([$kde_incdir])
-    if test "x$kde_incdir" = "xno" ; then
+    if test "x$kde_incdir" = "xno"; then
         AC_MSG_ERROR([KDE4 headers not found.  Please specify the root of your KDE4 installation by exporting KDE4DIR before running "configure".])
     fi
 
     dnl Check for KDE4 libraries
     AC_MSG_CHECKING([for KDE4 libraries])
     kde_libdir="no"
-    for kde_check in $kde_libdirs ; do
-        if test -r "$kde_check/$kde_test_library" ; then
+    for kde_check in $kde_libdirs; do
+        if test -r "$kde_check/$kde_test_library"; then
             kde_libdir="$kde_check"
             break
         fi
     done
 
     AC_MSG_RESULT([$kde_libdir])
-    if test "x$kde_libdir" = "xno" ; then
+    if test "x$kde_libdir" = "xno"; then
         AC_MSG_ERROR([KDE4 libraries not found.  Please specify the root of your KDE4 installation by exporting KDE4DIR before running "configure".])
     fi
 
@@ -9227,7 +9227,7 @@ dnl ===================================================================
 dnl Test whether to integrate helppacks into the product's installer
 dnl ===================================================================
 AC_MSG_CHECKING([for helppack integration])
-if test "z$with_helppack_integration" = "zno" ; then
+if test "z$with_helppack_integration" = "zno"; then
     WITH_HELPPACK_INTEGRATION=NO
     AC_MSG_RESULT([no integration])
 else
@@ -9424,18 +9424,18 @@ dnl ===================================================================
 dnl Test whether to include Sun Professional Template Pack
 dnl ===================================================================
 AC_MSG_CHECKING([for Sun Professional Template Pack integration (only supported languages displayed)])
-if test "z$with_sun_templates" = "z" -o "z$with_sun_templates" = "zno" ; then
+if test "z$with_sun_templates" = "z" -o "z$with_sun_templates" = "zno"; then
     AC_MSG_RESULT([no integration])
 else
     SCPDEFS="$SCPDEFS -DWITH_EXTENSION_SUN_TEMPLATE_PACK"
     sun_supported_langs="en-US de it fr es hu"
-    if test "z$with_sun_templates" = "zyes" ; then
+    if test "z$with_sun_templates" = "zyes"; then
         wanted_sun_templates="$sun_supported_langs"
     else
         # check whether the langs are supported by Sun
         wanted_sun_templates=
-        for lang in $with_sun_templates ; do
-            if test -n "`echo $sun_supported_langs | grep "$lang"`" ; then
+        for lang in $with_sun_templates; do
+            if test -n "`echo $sun_supported_langs | grep "$lang"`"; then
                 wanted_sun_templates="$wanted_sun_templates $lang"
             fi
         done
@@ -9448,8 +9448,8 @@ else
     SUNTEMPLATES_HU_PACK=
     SUNTEMPLATES_IT_PACK=
     # check whether the langs are requested at all
-    for lang in $wanted_sun_templates ; do
-    if test "$with_lang" = "ALL" -o -n "`echo $with_lang | grep "$lang"`" ; then
+    for lang in $wanted_sun_templates; do
+    if test "$with_lang" = "ALL" -o -n "`echo $with_lang | grep "$lang"`"; then
         SUNTEMPLATES_LANG="$SUNTEMPLATES_LANG $lang"
         case $lang in
         "de") SUNTEMPLATES_DE_PACK="53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt";;
@@ -9474,7 +9474,7 @@ dnl ===================================================================
 dnl Test whether to include fonts
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include third-party fonts])
-if test "$with_fonts" != "no" ; then
+if test "$with_fonts" != "no"; then
     AC_MSG_RESULT([yes])
     WITH_FONTS=YES
     BUILD_TYPE="$BUILD_TYPE MORE_FONTS"
@@ -9486,7 +9486,7 @@ fi
 AC_SUBST(WITH_FONTS)
 
 AC_MSG_CHECKING([whether to include Agfa Monotype fonts])
-if test "$with_agfa_monotype_fonts" = "yes" ; then
+if test "$with_agfa_monotype_fonts" = "yes"; then
     AC_MSG_RESULT([yes])
     WITH_AGFA_MONOTYPE_FONTS=YES
     SCPDEFS="$SCPDEFS -DWITH_AGFA_MONOTYPE_FONTS"
@@ -9528,7 +9528,7 @@ dnl ===================================================================
 dnl Test whether to include extra galleries
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include extra galleries])
-if test "z$enable_extra_gallery" = "z" -o "z$enable_extra_gallery" = "zno" ; then
+if test "z$enable_extra_gallery" = "z" -o "z$enable_extra_gallery" = "zno"; then
     AC_MSG_RESULT([no])
     WITH_EXTRA_GALLERY=NO
     OOOP_GALLERY_PACK=""
@@ -9546,7 +9546,7 @@ dnl ===================================================================
 dnl Test whether to include extra templates
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include extra templates])
-if test "z$enable_extra_template" = "z" -o "z$enable_extra_template" = "zno" ; then
+if test "z$enable_extra_template" = "z" -o "z$enable_extra_template" = "zno"; then
     AC_MSG_RESULT([no])
     WITH_EXTRA_TEMPLATE=NO
     OOOP_TEMPLATES_PACK=""
@@ -9564,7 +9564,7 @@ dnl ===================================================================
 dnl Test whether to include extra samples
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include extra samples])
-if test "z$enable_extra_sample" = "z" -o "z$enable_extra_sample" = "zno" ; then
+if test "z$enable_extra_sample" = "z" -o "z$enable_extra_sample" = "zno"; then
     AC_MSG_RESULT([no])
     WITH_EXTRA_SAMPLE=NO
     OOOP_SAMPLES_PACK=""
@@ -9582,7 +9582,7 @@ dnl ===================================================================
 dnl Test whether to include extra fonts
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include extra fonts])
-if test "z$enable_extra_font" = "z" -o "z$enable_extra_font" = "zno" ; then
+if test "z$enable_extra_font" = "z" -o "z$enable_extra_font" = "zno"; then
     AC_MSG_RESULT([no])
     WITH_EXTRA_FONT=NO
     OOOP_FONTS_PACK=""
@@ -9600,7 +9600,7 @@ dnl ===================================================================
 dnl Test whether to download OxygenOffice branding and set custom settings
 dnl ===================================================================
 AC_MSG_CHECKING([whether to download OxygenOffice branding and set custom settings])
-if test "z$enable_oxygenoffice" = "z" -o "z$enable_oxygenoffice" = "zno" ; then
+if test "z$enable_oxygenoffice" = "z" -o "z$enable_oxygenoffice" = "zno"; then
     AC_MSG_RESULT([no])
     ENABLE_OXYGENOFFICE=NO
 else
@@ -9616,7 +9616,7 @@ dnl ===================================================================
 dnl Test whether to build global menu support
 dnl ===================================================================
 AC_MSG_CHECKING([whether to build global menu support])
-if test "z$enable_lomenubar" = "z" -o "z$enable_lomenubar" = "zno" ; then
+if test "z$enable_lomenubar" = "z" -o "z$enable_lomenubar" = "zno"; then
     AC_MSG_RESULT([no])
     ENABLE_LOMENUBAR="FALSE"
 else
@@ -9631,15 +9631,15 @@ dnl Test whether to enable online update service
 dnl ===================================================================
 AC_MSG_CHECKING([whether to enable online update])
 ENABLE_ONLINE_UPDATE=
-if test "z$enable_online_update" = "z" ; then
-    if test "$_os" = "WINNT" -o "$_os" = "Darwin" ; then
+if test "z$enable_online_update" = "z"; then
+    if test "$_os" = "WINNT" -o "$_os" = "Darwin"; then
         AC_MSG_RESULT([yes])
         ENABLE_ONLINE_UPDATE="TRUE"
     else
         AC_MSG_RESULT([no])
     fi
 else
-    if test "z$enable_online_update" = "zyes" ; then
+    if test "z$enable_online_update" = "zyes"; then
         AC_MSG_RESULT([yes])
         ENABLE_ONLINE_UPDATE="TRUE"
     else
@@ -9652,7 +9652,7 @@ dnl ===================================================================
 dnl Test whether build target is Release Build
 dnl ===================================================================
 AC_MSG_CHECKING([whether build target is Release Build])
-if test "z$enable_release_build" = "z" -o "z$enable_release_build" = "zno" ; then
+if test "z$enable_release_build" = "z" -o "z$enable_release_build" = "zno"; then
     AC_MSG_RESULT([no])
     ENABLE_RELEASE_BUILD="FALSE"
 else
@@ -9665,7 +9665,7 @@ dnl ===================================================================
 dnl Test whether to create MSI with LIMITUI=1 (silent install)
 dnl ===================================================================
 AC_MSG_CHECKING([whether to create MSI with LIMITUI=1 (silent install)])
-if test "z$enable_silent_msi" = "z" -o "z$enable_silent_msi" = "zno" ; then
+if test "z$enable_silent_msi" = "z" -o "z$enable_silent_msi" = "zno"; then
     AC_MSG_RESULT([no])
     ENABLE_SILENT_MSI="FALSE"
 else
@@ -9903,8 +9903,8 @@ else
         if test "$enable_cairo_canvas" = "yes"; then
             BUILD_TYPE="$BUILD_TYPE CAIRO"
         else
-            if test "$with_system_cairo" != "yes" ; then
-                if test "$ENABLE_LIBRSVG" != NO ; then
+            if test "$with_system_cairo" != "yes"; then
+                if test "$ENABLE_LIBRSVG" != NO; then
                     BUILD_TYPE="$BUILD_TYPE CAIRO"
                 fi
             fi
@@ -10226,7 +10226,7 @@ EOF
             ant_cmd="$ANT -buildfile conftest.xml 1>&2"
         fi
         AC_TRY_EVAL(ant_cmd)
-        if test $? = 0 -a -f ./conftest.class ; then
+        if test $? = 0 -a -f ./conftest.class; then
             AC_MSG_RESULT([Ant works])
             if test -z "$WITH_ANT_HOME"; then
                 ANT_HOME=`$ANT -diagnostics | $EGREP "ant.home :" | $SED -e "s#ant.home : ##g"`
@@ -10345,7 +10345,7 @@ EOF
             ant_cmd="$ANT -buildfile conftest.xml 1>&2"
         fi
         AC_TRY_EVAL(ant_cmd)
-        if test $? = 0 -a -f ./conftest.class ; then
+        if test $? = 0 -a -f ./conftest.class; then
             AC_MSG_RESULT([yes])
             rm -rf confdir
         else
@@ -10456,15 +10456,15 @@ else
     GIT_REPO_NAMES="$GIT_REPO_NAMES translations"
 fi
 # check that the list is valid
-for lang in $WITH_LANG ; do
+for lang in $WITH_LANG; do
     test "$lang" = "ALL" && continue;
     # need to check for the exact string, so add space before and after the list of all languages
-    for vl in $ALL_LANGS ; do
-        if test "$vl" = "$lang" ; then
+    for vl in $ALL_LANGS; do
+        if test "$vl" = "$lang"; then
            break;
         fi
     done
-    if test "$vl" != "$lang" ; then
+    if test "$vl" != "$lang"; then
         AC_MSG_ERROR([invalid language: $lang; supported languages are: $ALL_LANGS])
     fi
 done
@@ -10483,9 +10483,9 @@ AC_SUBST(GIT_REPO_NAMES)
 PathFormat "$SRC_ROOT/translations"
 L10N_MODULE="$formatted_path"
 WITH_POOR_HELP_LOCALIZATIONS=
-if test -d "./translations" ; then
-    for l in `ls -1 translations/source` ; do
-        if test ! -d translations/source/$l/helpcontent2 ; then
+if test -d "./translations"; then
+    for l in `ls -1 translations/source`; do
+        if test ! -d translations/source/$l/helpcontent2; then
             WITH_POOR_HELP_LOCALIZATIONS="$WITH_POOR_HELP_LOCALIZATIONS $l"
         fi
     done
@@ -10506,7 +10506,7 @@ AC_SUBST(GIT_LINK_SRC)
 
 AC_MSG_CHECKING([for custom 'intro' progress bar color])
 PROGRESSBARCOLOR=
-if test -z "$with_intro_progressbar_color" ; then
+if test -z "$with_intro_progressbar_color"; then
    PROGRESSBARCOLOR="126,170,23"
    AC_MSG_RESULT([none])
 else
@@ -10517,7 +10517,7 @@ AC_SUBST(PROGRESSBARCOLOR)
 
 AC_MSG_CHECKING([for custom 'intro' progress bar size])
 PROGRESSSIZE=
-if test -z "$with_intro_progressbar_size" ; then
+if test -z "$with_intro_progressbar_size"; then
    PROGRESSSIZE="319,10"
    AC_MSG_RESULT([none])
 else
@@ -10528,7 +10528,7 @@ AC_SUBST(PROGRESSSIZE)
 
 AC_MSG_CHECKING([for custom 'intro' progress bar position])
 PROGRESSPOSITION=
-if test -z "$with_intro_progressbar_position" ; then
+if test -z "$with_intro_progressbar_position"; then
    PROGRESSPOSITION="164,225"
    AC_MSG_RESULT([none])
 else
@@ -10539,7 +10539,7 @@ AC_SUBST(PROGRESSPOSITION)
 
 AC_MSG_CHECKING([for custom 'intro' progress bar frame color])
 PROGRESSFRAMECOLOR=
-if test -z "$with_intro_progressbar_frame_color" ; then
+if test -z "$with_intro_progressbar_frame_color"; then
    PROGRESSFRAMECOLOR="207,208,211"
    AC_MSG_RESULT([none])
 else
@@ -10556,7 +10556,7 @@ STARTCENTER_RIGHT_BITMAP=
 STARTCENTER_RTL_LEFT_BITMAP=
 STARTCENTER_RTL_RIGHT_BITMAP=
 STARTCENTER_SPACE_BITMAP=
-if test -z "$with_branding" -o "$with_branding" = "no" ; then
+if test -z "$with_branding" -o "$with_branding" = "no"; then
     AC_MSG_RESULT([none])
 else
     INTRO_BITMAP="$with_branding/intro.png"
@@ -10581,8 +10581,8 @@ else
 fi
 
 AC_MSG_CHECKING([for yet another 'intro' bitmap])
-if test -z "$with_intro_bitmap" -o "$with_intro_bitmap" = "no" ; then
-    if test "$with_intro_bitmap" = "no" ; then
+if test -z "$with_intro_bitmap" -o "$with_intro_bitmap" = "no"; then
+    if test "$with_intro_bitmap" = "no"; then
         INTRO_BITMAP=
     fi
     AC_MSG_RESULT([none])
@@ -10596,8 +10596,8 @@ fi
 AC_SUBST(INTRO_BITMAP)
 
 AC_MSG_CHECKING([for yet another 'about' bitmap])
-if test -z "$with_about_bitmap" -o "$with_about_bitmap" = "no" ; then
-    if test "$with_about_bitmap" = "no" ; then
+if test -z "$with_about_bitmap" -o "$with_about_bitmap" = "no"; then
+    if test "$with_about_bitmap" = "no"; then
         ABOUT_BITMAP=
     fi
     AC_MSG_RESULT([none])
@@ -10611,8 +10611,8 @@ fi
 AC_SUBST(ABOUT_BITMAP)
 
 AC_MSG_CHECKING([for yet another 'start center left' bitmap])
-if test -z "$with_startcenter_left_bitmap" -o "$with_startcenter_left_bitmap" = "no" ; then
-   if test "$with_startcenter_left_bitmap" = "no" ; then
+if test -z "$with_startcenter_left_bitmap" -o "$with_startcenter_left_bitmap" = "no"; then
+   if test "$with_startcenter_left_bitmap" = "no"; then
       STARTCENTER_LEFT_BITMAP=
    fi
    AC_MSG_RESULT([none])
@@ -10626,8 +10626,8 @@ fi
 AC_SUBST(STARTCENTER_LEFT_BITMAP)
 
 AC_MSG_CHECKING([for yet another 'start center right' bitmap])
-if test -z "$with_startcenter_right_bitmap" -o "$with_startcenter_right_bitmap" = "no" ; then
-   if test "$with_startcenter_right_bitmap" = "no" ; then
+if test -z "$with_startcenter_right_bitmap" -o "$with_startcenter_right_bitmap" = "no"; then
+   if test "$with_startcenter_right_bitmap" = "no"; then
       STARTCENTER_RIGHT_BITMAP=
    fi
    AC_MSG_RESULT([none])
@@ -10641,8 +10641,8 @@ fi
 AC_SUBST(STARTCENTER_RIGHT_BITMAP)
 
 AC_MSG_CHECKING([for yet another 'start center rtl left' bitmap])
-if test -z "$with_startcenter_rtl_left_bitmap" -o "$with_startcenter_rtl_left_bitmap" = "no" ; then
-   if test "$with_startcenter_rtl_left_bitmap" = "no" ; then
+if test -z "$with_startcenter_rtl_left_bitmap" -o "$with_startcenter_rtl_left_bitmap" = "no"; then
+   if test "$with_startcenter_rtl_left_bitmap" = "no"; then
       STARTCENTER_RTL_LEFT_BITMAP=
    fi
    AC_MSG_RESULT([none])
@@ -10656,8 +10656,8 @@ fi
 AC_SUBST(STARTCENTER_RTL_LEFT_BITMAP)
 
 AC_MSG_CHECKING([for yet another 'start center rtl right' bitmap])
-if test -z "$with_startcenter_rtl_right_bitmap" -o "$with_startcenter_rtl_right_bitmap" = "no" ; then
-   if test "$with_startcenter_rtl_right_bitmap" = "no" ; then
+if test -z "$with_startcenter_rtl_right_bitmap" -o "$with_startcenter_rtl_right_bitmap" = "no"; then
+   if test "$with_startcenter_rtl_right_bitmap" = "no"; then
       STARTCENTER_RTL_RIGHT_BITMAP=
    fi
    AC_MSG_RESULT([none])
@@ -10671,8 +10671,8 @@ fi
 AC_SUBST(STARTCENTER_RTL_RIGHT_BITMAP)
 
 AC_MSG_CHECKING([for yet another 'start center space' bitmap])
-if test -z "$with_startcenter_space_bitmap" -o "$with_startcenter_space_bitmap" = "no" ; then
-   if test "$with_startcenter_space_bitmap" = "no" ; then
+if test -z "$with_startcenter_space_bitmap" -o "$with_startcenter_space_bitmap" = "no"; then
+   if test "$with_startcenter_space_bitmap" = "no"; then
       STARTCENTER_SPACE_BITMAP=
    fi
    AC_MSG_RESULT([none])
@@ -10687,7 +10687,7 @@ AC_SUBST(STARTCENTER_SPACE_BITMAP)
 
 OOO_VENDOR=
 AC_MSG_CHECKING([for vendor])
-if test -z "$with_vendor" -o "$with_vendor" = "no" ; then
+if test -z "$with_vendor" -o "$with_vendor" = "no"; then
     AC_MSG_RESULT([not set])
 else
     OOO_VENDOR="$with_vendor"
@@ -10697,7 +10697,7 @@ AC_SUBST(OOO_VENDOR)
 
 UNIXWRAPPERNAME=
 AC_MSG_CHECKING([for UNIX wrapper name])
-if test -z "$with_unix_wrapper" -o "$with_unix_wrapper" = "no"  -o "$with_unix_wrapper" = "yes" ; then
+if test -z "$with_unix_wrapper" -o "$with_unix_wrapper" = "no"  -o "$with_unix_wrapper" = "yes"; then
     AC_MSG_RESULT([not set])
 else
     UNIXWRAPPERNAME="$with_unix_wrapper"
@@ -10706,7 +10706,7 @@ fi
 AC_SUBST(UNIXWRAPPERNAME)
 
 AC_MSG_CHECKING([whether to install the compat oo* wrappers])
-if test "$with_compat_oowrappers" = "yes" ; then
+if test "$with_compat_oowrappers" = "yes"; then
     WITH_COMPAT_OOWRAPPERS=YES
     AC_MSG_RESULT(yes)
 else
@@ -10722,7 +10722,7 @@ AC_SUBST(PRODUCTNAME)
 
 INSTALLDIRNAME=`echo AC_PACKAGE_NAME | tr '[[:upper:]]' '[[:lower:]]'`
 AC_MSG_CHECKING([for install dirname])
-if test -n "$with_install_dirname" -a "$with_install_dirname" != "no" -a "$with_install_dirname" != "yes" ; then
+if test -n "$with_install_dirname" -a "$with_install_dirname" != "no" -a "$with_install_dirname" != "yes"; then
    INSTALLDIRNAME="$with_install_dirname"
 fi
 AC_MSG_RESULT([$INSTALLDIRNAME])
@@ -10846,10 +10846,10 @@ AC_SUBST(BUILD_NCPUS)
 #
 if test "$build_os" = "cygwin"; then
     ILIB=".;$SRC_ROOT/solver/$INPATH/lib"
-    if test -n "$JAVA_HOME" -a "$JAVA_HOME" != "NO_JAVA_HOME" ; then
+    if test -n "$JAVA_HOME" -a "$JAVA_HOME" != "NO_JAVA_HOME"; then
         ILIB="$ILIB;$JAVA_HOME/lib"
     fi
-    if test "$CL_X64" = "TRUE" ; then
+    if test "$CL_X64" = "TRUE"; then
         ILIB="$ILIB;$COMPATH/lib/amd64"
         ILIB="$ILIB;$WINDOWS_SDK_HOME/lib64"
     else
@@ -10858,7 +10858,7 @@ if test "$build_os" = "cygwin"; then
     fi
     ILIB="$ILIB;$DOTNET_FRAMEWORK_HOME/lib"
 
-    if test "$ENABLE_DIRECTX" = "TRUE" ; then
+    if test "$ENABLE_DIRECTX" = "TRUE"; then
         ILIB="$ILIB;$DIRECTXSDK_LIB"
     fi
     AC_SUBST(ILIB)
@@ -10886,7 +10886,7 @@ BUILD_MAX_JOBS="1"
 if test "z$with_max_jobs" != "z"; then
     BUILD_MAX_JOBS="$with_max_jobs"
 else
-    if test "$enable_icecream" = "yes" ; then
+    if test "$enable_icecream" = "yes"; then
         BUILD_MAX_JOBS="10"
     fi
 fi
@@ -10897,16 +10897,16 @@ AC_SUBST(BUILD_MAX_JOBS)
 # determine the parallelism for gnu make
 # =====================================================================
 AC_MSG_CHECKING([for maximum parallelism for gmake])
-if test $BUILD_MAX_JOBS -gt $BUILD_NCPUS ; then
+if test $BUILD_MAX_JOBS -gt $BUILD_NCPUS; then
     GMAKE_PARALLELISM="$BUILD_MAX_JOBS"
 else
     GMAKE_PARALLELISM="$BUILD_NCPUS"
 fi
 GMAKE_MODULE_PARALLELISM="$BUILD_MAX_JOBS"
-if test "$no_parallelism_make" = "YES" ; then
+if test "$no_parallelism_make" = "YES"; then
     if test -z "$with_num_cpus"; then
         GMAKE_PARALLELISM="1";
-        if test $GMAKE_MODULE_PARALLELISM -gt 1 ; then
+        if test $GMAKE_MODULE_PARALLELISM -gt 1; then
             AC_MSG_WARN([gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this.])
             if test -z "$with_num_cpus"; then
                 echo "gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this." >> warn
@@ -10935,8 +10935,8 @@ if test -z "$COMPATH"; then
 fi
 AC_SUBST(COMPATH)
 
-if test "$build_os" = "cygwin" ; then
-    if test "$DISABLE_ACTIVEX" = "YES" ; then
+if test "$build_os" = "cygwin"; then
+    if test "$DISABLE_ACTIVEX" = "YES"; then
         ATL_LIB="$WINDOWS_SDK_HOME/lib"; # Doesn't exist for VSE
         ATL_INCLUDE="$WINDOWS_SDK_HOME/include".$ds."atl";
         MFC_LIB="$WINDOWS_SDK_HOME/lib"; # Doesn't exist for VSE
@@ -10947,7 +10947,7 @@ if test "$build_os" = "cygwin" ; then
         MFC_LIB="$COMPATH/atlmfc/lib";
         MFC_INCLUDE="$WINDOWS_SDK_HOME/include/mfc";
     fi
-    if test "$CL_X64" = "YES" ; then
+    if test "$CL_X64" = "YES"; then
         ATL_LIB="$ATL_LIB/amd64"
         MFC_LIB="$MFC_LIB/amd64"
     fi
@@ -10972,13 +10972,13 @@ AC_SUBST(WIN_TOUCH)
 
 AC_SUBST(BUILD_TYPE)
 
-if test "$WITH_MINGW" != "yes" ; then
+if test "$WITH_MINGW" != "yes"; then
     MINGW_EXTERNAL_DLLS=
 else
     mingw_dlldir=`$CC -print-sysroot`/mingw/bin
-    for DLL in $MINGW_EXTERNAL_DLLS ; do
+    for DLL in $MINGW_EXTERNAL_DLLS; do
         AC_MSG_CHECKING([for $DLL])
-        if ! test -f "$mingw_dlldir/$DLL" ; then
+        if ! test -f "$mingw_dlldir/$DLL"; then
             AC_MSG_ERROR([Could not find $DLL, install the appropriate mingw32-<package>, not only mingw32-<package>-devel.])
         fi
         AC_MSG_RESULT([$mingw_dlldir/$DLL])
@@ -10989,12 +10989,12 @@ AC_SUBST(MINGW_EXTERNAL_DLLS)
 AC_SUBST(SOLARINC)
 AC_SUBST(SOLARLIB)
 
-if test -z "$SOLARINC_FOR_BUILD" ; then
+if test -z "$SOLARINC_FOR_BUILD"; then
     SOLARINC_FOR_BUILD="$SOLARINC"
 fi
 AC_SUBST(SOLARINC_FOR_BUILD)
 
-if test -z "$SOLARLIB_FOR_BUILD" ; then
+if test -z "$SOLARLIB_FOR_BUILD"; then
     SOLARLIB_FOR_BUILD="$SOLARLIB"
 fi
 AC_SUBST(SOLARLIB_FOR_BUILD)
@@ -11003,15 +11003,15 @@ PathFormat "$PERL"
 PERL="$formatted_path"
 AC_SUBST(PERL)
 
-if test "$build_os" = "cygwin" ; then
+if test "$build_os" = "cygwin"; then
     TEMP_DIRECTORY=`cygpath -m "/tmp"`
-    if test -n "$TMP" ; then
+    if test -n "$TMP"; then
         TMP_DIRECTORY="$TMP"
     else
         TMP_DIRECTORY="$TEMP_DIRECTORY"
     fi
 else
-    if test -n "$TMPDIR" ; then
+    if test -n "$TMPDIR"; then
         TEMP_DIRECTORY="$TMPDIR"
     else
         TEMP_DIRECTORY="/tmp"
@@ -11021,7 +11021,7 @@ AC_SUBST(TEMP_DIRECTORY)
 AC_SUBST(TMP_DIRECTORY)
 
 # setup the PATH for the environment
-if test -n "$LO_PATH_FOR_BUILD" ; then
+if test -n "$LO_PATH_FOR_BUILD"; then
     LO_PATH="$LO_PATH_FOR_BUILD"
 else
     LO_PATH="$PATH"
@@ -11041,16 +11041,16 @@ else
         pathmunge "$CSC_PATH" "before"
         pathmunge "$MIDL_PATH" "before"
         pathmunge "$MSPDB_PATH" "before"
-        if test "$CL_X64" = "TRUE" ; then
+        if test "$CL_X64" = "TRUE"; then
             pathmunge "$COMPATH/bin/amd64" "before"
         else
             pathmunge "$COMPATH/bin" "before"
         fi
         if test "$SOLAR_JAVA" != "" -a "$JDK"!="gcj"; then
-            if test -d "$JAVA_HOME/jre/bin/client" ; then
+            if test -d "$JAVA_HOME/jre/bin/client"; then
                 pathmunge "$JAVA_HOME/jre/bin/client" "before"
             fi
-            if test -d "$JAVA_HOME/jre/bin/hotspot" ; then
+            if test -d "$JAVA_HOME/jre/bin/hotspot"; then
                 pathmunge "$JAVA_HOME/jre/bin/hotspot" "before"
             fi
             pathmunge "$JAVA_HOME/bin" "before"
@@ -11103,7 +11103,7 @@ else
 fi
 
 
-if test "$STALE_MAKE" = "TRUE" -a "$build_os" = "cygwin" ; then
+if test "$STALE_MAKE" = "TRUE" -a "$build_os" = "cygwin"; then
 cat << _EOS
 ****************************************************************************
 WARNING:
commit 169a3f2fa5d378d08e6c072cd89f04950ae23e23
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Mar 13 11:58:38 2012 +0200

    Use test's -a and -o operators instead of shell && or || constructs

diff --git a/configure.in b/configure.in
index e4ca6a4..e1bbde4 100644
--- a/configure.in
+++ b/configure.in
@@ -2540,7 +2540,7 @@ AC_SUBST(HAVE_LD_BSYMBOLIC_FUNCTIONS)
 dnl Set the ENABLE_DBGUTIL variable
 dnl ===================================================================
 AC_MSG_CHECKING([whether to build with additional debug utilities])
-if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
+if test -n "$enable_dbgutil" -a "$enable_dbgutil" != "no"; then
     PROEXT=""
     PRODUCT=""
 
@@ -3357,7 +3357,7 @@ AC_SUBST(ENABLE_CRASHDUMP)
 dnl Set the ENABLE_WERROR variable. (Activate --enable-werror)
 dnl ===================================================================
 AC_MSG_CHECKING([whether to turn warnings to errors])
-if test -n "$enable_werror" && test "$enable_werror" != "no"; then
+if test -n "$enable_werror" -a "$enable_werror" != "no"; then
     EXTERNAL_WARNINGS_NOT_ERRORS="FALSE"
     AC_MSG_RESULT([yes])
 else
@@ -3369,7 +3369,7 @@ AC_SUBST(EXTERNAL_WARNINGS_NOT_ERRORS)
 dnl Set the ENABLE_DEBUG variable. (Activate --enable-symbols)
 dnl ===================================================================
 AC_MSG_CHECKING([whether to do a debug build])
-if test -n "$enable_debug" && test "$enable_debug" != "no"; then
+if test -n "$enable_debug" -a "$enable_debug" != "no"; then
     ENABLE_DEBUG="TRUE"
     enable_symbols="yes"
     AC_MSG_RESULT([yes])
@@ -3516,7 +3516,7 @@ fi
 dnl Test whether to include MySpell dictionaries
 dnl ===================================================================
 AC_MSG_CHECKING([whether to include MySpell dictionaries])
-if test -z "$with_myspell_dicts" || test "$with_myspell_dicts" = "yes"; then
+if test -z "$with_myspell_dicts" -o "$with_myspell_dicts" = "yes"; then
     AC_MSG_RESULT([yes])
     WITH_MYSPELL_DICTS=YES
     BUILD_TYPE="$BUILD_TYPE DICTIONARIES"
@@ -4644,7 +4644,7 @@ dnl empty or non-empty.
 dnl SOLAR_JAVA="" indicate no java support at all
 
 JITC_PROCESSOR_TYPE=""
-if test "$_os" = "Linux" && test "$host_cpu" = "powerpc"; then
+if test "$_os" = "Linux" -a "$host_cpu" = "powerpc"; then
     # IBMs JDK needs this...
     JITC_PROCESSOR_TYPE=6
     export JITC_PROCESSOR_TYPE
@@ -4972,7 +4972,7 @@ _ACEOF
             AC_MSG_CHECKING([if javac works])
             javac_cmd="$JAVACOMPILER findhome.java 1>&2"
             AC_TRY_EVAL(javac_cmd)
-            if test $? = 0 && test -f ./findhome.class ; then
+            if test $? = 0 -a -f ./findhome.class ; then
                 AC_MSG_RESULT([javac works])
             else
                 echo "configure: javac test failed" >&5
@@ -4981,7 +4981,7 @@ _ACEOF
             fi
             AC_MSG_CHECKING([if gij knows its java.home])
             JAVA_HOME=`$JAVAINTERPRETER findhome`
-            if test $? = 0 && test "$JAVA_HOME" != "" ; then
+            if test $? = 0 -a "$JAVA_HOME" != "" ; then
                 AC_MSG_RESULT([$JAVA_HOME])
             else
                 echo "configure: java test failed" >&5
@@ -5419,7 +5419,7 @@ if test "$enable_epm" = "yes"; then
         else
             AC_PATH_PROG(EPM, epm, no)
         fi
-        if test "$EPM" = "no" || test "$EPM" = "internal"; then
+        if test "$EPM" = "no" -o "$EPM" = "internal"; then
             echo "EPM will be built."
             BUILD_EPM=YES
             BUILD_TYPE="$BUILD_TYPE EPM"
@@ -5566,7 +5566,7 @@ msi - Windows .msi
     fi
     if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
        echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
-        if test "$EPM" != "no" && test "$EPM" != "internal"; then
+        if test "$EPM" != "no" -a "$EPM" != "internal"; then
             if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
                 AC_MSG_CHECKING([whether epm is patched for LibreOffice's needs])
                 if grep "Patched for LibreOffice" $EPM >/dev/null 2>/dev/null; then
@@ -6678,7 +6678,7 @@ _ACEOF
 
     javac_cmd="$JAVACOMPILER -cp $SAXON_JAR saxontest.java 1>&2"
     AC_TRY_EVAL(javac_cmd)
-    if test $? = 0 && test -f ./saxontest.class ; then
+    if test $? = 0 -a -f ./saxontest.class ; then
         java_cmd="$JAVAINTERPRETER -cp $SAXON_JAR:. saxontest saxontest.xsl 1>&2"
         AC_TRY_EVAL(java_cmd)
         if test $? = 0; then
@@ -6978,21 +6978,21 @@ dnl Check for system mozilla
 dnl ===================================================================
 
 AC_MSG_CHECKING([which Mozilla to use])
-if test -n "$with_system_mozilla" && test "$with_system_mozilla" != "no"; then
+if test -n "$with_system_mozilla" -a "$with_system_mozilla" != "no"; then
     AC_MSG_RESULT([external])
     SYSTEM_MOZILLA=YES
     AC_MSG_CHECKING([which Mozilla flavour to use])
-    if test -n "$with_system_mozilla" && test "$with_system_mozilla" = "libxul"; then
+    if test -n "$with_system_mozilla" -a "$with_system_mozilla" = "libxul"; then
         MOZ_FLAVOUR=libxul
-    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "xulrunner"; then
+    elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "xulrunner"; then
         MOZ_FLAVOUR=xulrunner
-    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "seamonkey"; then
+    elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "seamonkey"; then
         MOZ_FLAVOUR=seamonkey
-    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "iceape"; then
+    elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "iceape"; then
         MOZ_FLAVOUR=iceape
-    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "firefox"; then
+    elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "firefox"; then
         MOZ_FLAVOUR=firefox
-    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "mozilla"; then
+    elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "mozilla"; then
         MOZ_FLAVOUR=mozilla
     else
         MOZ_FLAVOUR=libxul
@@ -7019,7 +7019,7 @@ if test -n "$with_system_mozilla" && test "$with_system_mozilla" != "no"; then
     fi
 
     MOZ_LIB_XPCOM=$MOZILLAXPCOM_LIBS
-    if test "$WITH_LDAP" != "NO" && test "$WITH_OPENLDAP" != "YES"; then
+    if test "$WITH_LDAP" != "NO" -a "$WITH_OPENLDAP" != "YES"; then
         AC_MSG_CHECKING([whether $tmp was compiled with --enable-ldap])
         if test -d "$MOZ_INC/ldap"; then
             AC_MSG_RESULT([yes])
@@ -9134,7 +9134,7 @@ dnl Test for the enabling the lockdown pieces
 dnl ===================================================================
 AC_MSG_CHECKING([whether to enable the lockdown pieces])
 ENABLE_LOCKDOWN=""
-if test -n "$enable_lockdown" && test "$enable_lockdown" != "no"; then
+if test -n "$enable_lockdown" -a "$enable_lockdown" != "no"; then
     ENABLE_LOCKDOWN=YES
     AC_MSG_RESULT([yes])
 else
@@ -9162,7 +9162,7 @@ dnl ===================================================================
 dnl Test whether to include KDE AB support
 dnl ===================================================================
 AC_MSG_CHECKING([whether to enable KDE address book support])
-if test "$enable_kdeab" = "yes" && test "$enable_kde" = "yes"; then
+if test "$enable_kdeab" = "yes" -a "$enable_kde" = "yes"; then
     AC_MSG_RESULT([yes])
     AC_LANG_PUSH([C++])
     save_CXXFLAGS=$CXXFLAGS
@@ -10153,7 +10153,7 @@ dnl Check for runtime JVM search path
 dnl ===================================================================
 if test "$SOLAR_JAVA" != ""; then
     AC_MSG_CHECKING([whether to use specific JVM search path at runtime])
-    if test -n "$with_jvm_path" && test "$with_jvm_path" != "no"; then
+    if test -n "$with_jvm_path" -a "$with_jvm_path" != "no"; then
         AC_MSG_RESULT([yes])
         if ! test -d "$with_jvm_path"; then
             AC_MSG_ERROR(["$with_jvm_path" not a directory])
@@ -10226,7 +10226,7 @@ EOF
             ant_cmd="$ANT -buildfile conftest.xml 1>&2"
         fi
         AC_TRY_EVAL(ant_cmd)
-        if test $? = 0 && test -f ./conftest.class ; then
+        if test $? = 0 -a -f ./conftest.class ; then
             AC_MSG_RESULT([Ant works])
             if test -z "$WITH_ANT_HOME"; then
                 ANT_HOME=`$ANT -diagnostics | $EGREP "ant.home :" | $SED -e "s#ant.home : ##g"`
@@ -10304,7 +10304,7 @@ EOF
     echo "configure: ant_version_minor $ant_version_minor " >&5
     if test "$ant_version_major" -ge "2"; then
         AC_MSG_RESULT([yes, $ant_version])
-    elif test "$ant_version_major" = "1" && test "$ant_version_minor" -ge "$ant_minminor1"; then
+    elif test "$ant_version_major" = "1" -a "$ant_version_minor" -ge "$ant_minminor1"; then
         AC_MSG_RESULT([yes, $ant_version])
     else
         AC_MSG_ERROR([no, you need at least Ant >= $ant_minver])
@@ -10345,7 +10345,7 @@ EOF
             ant_cmd="$ANT -buildfile conftest.xml 1>&2"
         fi
         AC_TRY_EVAL(ant_cmd)
-        if test $? = 0 && test -f ./conftest.class ; then
+        if test $? = 0 -a -f ./conftest.class ; then
             AC_MSG_RESULT([yes])
             rm -rf confdir
         else
@@ -10360,7 +10360,7 @@ EOF
 fi
 
 OOO_JUNIT_JAR=
-if test "$SOLAR_JAVA" != "" && test "$with_junit" != "no"; then
+if test "$SOLAR_JAVA" != "" -a "$with_junit" != "no"; then
     AC_MSG_CHECKING([for JUnit 4])
     if test "$with_junit" = "yes"; then
         if test -e /usr/share/java/junit4.jar; then
commit 494ce8b51b89a93974390779abfb49af343041b6
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Mar 13 03:18:51 2012 +0200

    Build static liblcms2 for iOS

diff --git a/lcms2/makefile.mk b/lcms2/makefile.mk
index 7d834ac..83458ca 100644
--- a/lcms2/makefile.mk
+++ b/lcms2/makefile.mk
@@ -69,6 +69,10 @@ CONFIGURE_ACTION = CPPFLAGS="$(SOLARINC)" ./configure --without-jpeg --without-t
 CONFIGURE_ACTION += --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
 .ENDIF
 
+.IF "$(OS)" == "IOS"
+CONFIGURE_ACTION += --disable-shared
+.ENDIF
+
 BUILD_ACTION = make -j$(GMAKE_MODULE_PARALLELISM)
 
 .ENDIF # "$(GUI)$(COM)"=="WNTMSC"
@@ -78,6 +82,8 @@ OUT2INC+=include$/lcms2*.h
 .IF "$(OS)"=="MACOSX"
 EXTRPATH=LOADER
 OUT2LIB+=src$/.libs$/liblcms2.*.dylib
+.ELIF "$(OS)"=="IOS"
+OUT2LIB+=src$/.libs$/liblcms2.a
 .ELIF "$(OS)"=="WNT"
 .IF "$(COM)"=="GCC"
 OUT2LIB+=src$/.libs$/liblcms2.dll.a
diff --git a/lcms2/prj/d.lst b/lcms2/prj/d.lst
index d84eecd..b79227e 100644
--- a/lcms2/prj/d.lst
+++ b/lcms2/prj/d.lst
@@ -1,6 +1,7 @@
 mkdir: %_DEST%\inc\lcms2
 ..\%__SRC%\inc\*.h %_DEST%\inc\lcms2\*.h
 ..\%__SRC%\lib\liblcms2.so.2 %_DEST%\lib\liblcms2.so.2
+..\%__SRC%\lib\liblcms2.a %_DEST%\lib\liblcms2.a
 symlink: %_DEST%\lib\liblcms2.so.2 %_DEST%\lib\liblcms2.so
 ..\%__SRC%\lib\liblcms2.2.dylib %_DEST%\lib\liblcms2.2.dylib
 symlink: %_DEST%\lib\liblcms2.2.dylib %_DEST%\lib\liblcms2.dylib


More information about the Libreoffice-commits mailing list