From 703a9a00564763e8c6ce3f9d9b947c5c0aa4ec4a Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Fri, 19 Jul 2013 01:44:39 +0000 Subject: [PATCH] ICU-10255 set flag even on =1 case, add documentation X-SVN-Rev: 33941 --- icu4c/source/configure | 11 ++++++++++- icu4c/source/configure.in | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/icu4c/source/configure b/icu4c/source/configure index 0ea374f744e..d32ec0c9e71 100755 --- a/icu4c/source/configure +++ b/icu4c/source/configure @@ -2722,7 +2722,15 @@ _CXX_CXXSUFFIX=cpp export _CXX_CXXSUFFIX # Accumulate #defines + +# CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only. +# They are only needed for building ICU itself. Example: platform stuff CONFIG_CPPFLAGS="" +# UCONFIG_CPPFLAGS: These are defines which are set for ICU build time, +# and also a notice is output that they need to be set +# for end-users of ICU also. uconfig.h.prepend is generated +# with, for example, "#define U_DISABLE_RENAMING 1" +# Example: ICU configuration stuff UCONFIG_CPPFLAGS="" # Check whether to build debug libraries @@ -5668,8 +5676,9 @@ then U_HAVE_ATOMIC=1 else U_HAVE_ATOMIC=0 - CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=0" fi +# Make this available via CPPFLAGS +CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}" ac_ext=c diff --git a/icu4c/source/configure.in b/icu4c/source/configure.in index a52dd2c2146..1f08be9151a 100644 --- a/icu4c/source/configure.in +++ b/icu4c/source/configure.in @@ -85,7 +85,15 @@ _CXX_CXXSUFFIX=cpp export _CXX_CXXSUFFIX # Accumulate #defines + +# CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only. +# They are only needed for building ICU itself. Example: platform stuff CONFIG_CPPFLAGS="" +# UCONFIG_CPPFLAGS: These are defines which are set for ICU build time, +# and also a notice is output that they need to be set +# for end-users of ICU also. uconfig.h.prepend is generated +# with, for example, "#define U_DISABLE_RENAMING 1" +# Example: ICU configuration stuff UCONFIG_CPPFLAGS="" # Check whether to build debug libraries @@ -475,8 +483,9 @@ then U_HAVE_ATOMIC=1 else U_HAVE_ATOMIC=0 - CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=0" fi +# Make this available via CPPFLAGS +CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}" AC_SUBST(U_HAVE_ATOMIC) AC_LANG_POP([C++]) -- 2.40.0