summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-01-02 06:19:50 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-01-02 06:21:01 -0600
commit77b7bd9b3604970fb3ef396edd27a35f2e4690ae (patch)
treefd48e49cc2ad990944d93ed3ae7708502e262af3
parent59f3098eec1a82bf5f711bf032d5f2888e2c9d44 (diff)
ICU relying on undef is not viable in cross-compile scenario
-rw-r--r--config_host.mk.in6
-rw-r--r--configure.in5
-rwxr-xr-xicu/icuversion.mk19
3 files changed, 16 insertions, 14 deletions
diff --git a/config_host.mk.in b/config_host.mk.in
index 7c5ada77ec06..061a07d0c464 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -155,9 +155,9 @@ export HUNSPELL_CFLAGS="@HUNSPELL_CFLAGS@"
export HUNSPELL_LIBS="@HUNSPELL_LIBS@"
export HYPHEN_LIB="@HYPHEN_LIB@"
export HYPH_SYSTEM_DIR="@HYPH_SYSTEM_DIR@"
-@x_ICU@ export ICU_MAJOR="@ICU_MAJOR@"
-@x_ICU@ export ICU_MICRO="@ICU_MICRO@"
-@x_ICU@ export ICU_MINOR="@ICU_MINOR@"
+export ICU_MAJOR="@ICU_MAJOR@"
+export ICU_MICRO="@ICU_MICRO@"
+export ICU_MINOR="@ICU_MINOR@"
export ICU_RECLASSIFIED_CLOSE_PARENTHESIS="@ICU_RECLASSIFIED_CLOSE_PARENTHESIS@"
export INPATH="@INPATH@"
export INPATH_FOR_BUILD="@INPATH_FOR_BUILD@"
diff --git a/configure.in b/configure.in
index 146dc4c54b7b..ba05eaec5969 100644
--- a/configure.in
+++ b/configure.in
@@ -6598,8 +6598,7 @@ dnl ===================================================================
SYSTEM_GENBRK=
SYSTEM_GENCCODE=
SYSTEM_GENCMN=
-# x_ICU us used to comment-out ICU_MAJOR/MINOR/MICRO in config_host.mk
-x_ICU=
+
ICU_MAJOR=
ICU_MINOR=
ICU_MICRO=
@@ -6654,13 +6653,11 @@ if test "$with_system_icu" = "yes"; then
MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS icui18n$ICU_MAJOR$ICU_MINOR.dll icuuc$ICU_MAJOR$ICU_MINOR.dll icudata$ICU_MAJOR$ICU_MINOR.dll"
else
AC_MSG_RESULT([internal])
- x_ICU=[\#]
SYSTEM_ICU="NO"
ICU_RECLASSIFIED_CLOSE_PARENTHESIS="YES"
BUILD_TYPE="$BUILD_TYPE ICU"
fi
-AC_SUBST(x_ICU)
AC_SUBST(SYSTEM_ICU)
AC_SUBST(SYSTEM_GENBRK)
AC_SUBST(SYSTEM_GENCCODE)
diff --git a/icu/icuversion.mk b/icu/icuversion.mk
index b0e576988c7b..dbadbd0cd70e 100755
--- a/icu/icuversion.mk
+++ b/icu/icuversion.mk
@@ -24,10 +24,15 @@
# for a copy of the LGPLv3 License.
#
#*************************************************************************
-# major
-ICU_MAJOR*=4
-# minor
-ICU_MINOR*=4
-# micro
-ICU_MICRO*=2
-
+# major
+.IF "$(ICU_MAJOR)" = ""
+ICU_MAJOR=4
+.ENDIF
+# minor
+.IF "$(ICU_MINOR)" = ""
+ICU_MINOR=4
+.ENDIF
+# micro
+.IF "$(ICU_MICRO)" = ""
+ICU_MICRO=2
+.ENDIF