diff options
Diffstat (limited to 'Build/source/libs/icu/configure.ac')
-rw-r--r-- | Build/source/libs/icu/configure.ac | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/Build/source/libs/icu/configure.ac b/Build/source/libs/icu/configure.ac index 72de4893a75..93f7a0fd6f2 100644 --- a/Build/source/libs/icu/configure.ac +++ b/Build/source/libs/icu/configure.ac @@ -23,12 +23,44 @@ AM_CONDITIONAL([cross], [test "x$cross_compiling" = xyes]) AC_PROG_LN_S -test "x$srcdir" = x. && srcdir=../icu - ICU_TREE=[icu-]icu_version AC_SUBST([ICU_TREE]) -AC_CONFIG_SUBDIRS([dummy]) +# Prepare configure arguments for ICU. +# Can not share the cache file for various reasons. +icu_config="'\${abs_srcdir}'/$ICU_TREE/configure --enable-static --disable-shared" +icu_config="$icu_config --disable-extras --disable-samples --disable-tests" +if test "x$cache_file" != x/dev/null; then + icu_config="$icu_config -C" +fi +AC_SUBST([icu_config]) + +if test "x$cross_compiling" = xyes; then + icu_native_args="--build=$build_alias --host=$build_alias" + icu_build_args="--build=$build_alias --host=$host_alias --with-cross-build='\${abs_builddir}'/icu-native" +else + icu_build_args="--build=$kpse_build_alias" + icu_native_args= +fi +eval "set x $ac_configure_args" +shift +for icu_arg +do + case $icu_arg in + BUILD*=*) icu_arg=`echo "$icu_arg" | sed 's/^BUILD//'`; icu_list=native ;; + *) icu_list=build ;; + esac + case $icu_arg in + CC=* | CFLAGS=* | CPPFLAGS=* | CXX=* | CXXFLAGS=* | LDFLAGS=*) ;; + *) continue ;; + esac + case $icu_arg in + *\'*) icu_arg=`echo "$icu_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + eval icu_${icu_list}_args="\"\$icu_${icu_list}_args '\$icu_arg'\"" +done +AC_SUBST([icu_build_args]) +AC_SUBST([icu_native_args]) AC_CONFIG_FILES([Makefile icu-incl/Makefile icu-incl/unicode/Makefile icu-incl/layout/Makefile]) |