Lines Matching +full:- +full:- +full:enable +full:- +full:libraries

1 # -*-autoconf-*-
3 # AC_COPYRIGHT([ Copyright (c) 1999-2015, International Business Machines Corporation and others. A…
14 …m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/uni…
15 [http://icu-project.org/bugs],
17 [http://icu-project.org])
27 # for icu-config
28 # This may be removed later - mow (June 17, 2010)
30 case `/bin/sh -c "echo -n x"` in
31 -n*)
32 case `/bin/sh -c "echo 'x\c'"` in
37 ICU_ECHO_N='-n';;
47 [sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"]
50 [sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"]
59 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please …
69 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
95 # for end-users of ICU also. uconfig.h.prepend is generated
100 # such as -std
103 # Check whether to install icu-config
104 AC_ARG_ENABLE([icu-config],
105 AS_HELP_STRING([--enable-icu-config], [install icu-config]),
109 *) AC_MSG_ERROR([bad value '${enableval}' for --enable-icu-config]) ;;
113 # Check whether to build debug libraries
114 AC_MSG_CHECKING([whether to build debug libraries])
118 [ --enable-debug build debug libraries and enable the U_DEBUG define [default=no]],
120 yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
127 # Check whether to build release libraries
128 AC_MSG_CHECKING([whether to build release libraries])
132 [ --enable-release build release libraries [default=yes]],
151 # pkg-config is needed for harfbuzz support
153 PKG_CHECK_MODULES(ICULEHB, icu-le-hb, have_icu_le_hb=true, :)
155 …S/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or …
160 CFLAGS=-g
163 CFLAGS="$CFLAGS -O2"
168 CXXFLAGS=-g
171 CXXFLAGS="$CXXFLAGS -O2"
187 # make sure install is relative to srcdir - if a script
205 AC_ARG_WITH(cross-build,
206 …[ --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the …
212 …AC_MSG_ERROR([Error! Cross compiling but no --with-cross-build option specified - please supply th…
216 if test -f "${cross_buildroot}/config/icucross.mk"; then
219 if test -d "${cross_buildroot}"; then
222 …ROR([No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an a…
239 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;;
249 # Check if we can build and use 64-bit libraries
257 # Checks for libraries and other host specific stuff
258 # On HP/UX, don't link to -lm from a shared lib because it isn't
261 *-*-hpux*) AC_CHECK_LIB(m, floor, LIB_M="-lm") ;;
268 # Check whether to build shared libraries
269 AC_MSG_CHECKING([whether to build shared libraries])
272 [ --enable-shared build shared libraries [default=yes]],
283 # Check whether to build static libraries
284 AC_MSG_CHECKING([whether to build static libraries])
287 [ --enable-static build static libraries [default=no]],
308 *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
310 CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"
311 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
329 # Check whether to enable auto cleanup of libraries
330 AC_MSG_CHECKING([whether to enable auto cleanup of libraries])
333 AC_ARG_ENABLE(auto-cleanup,
334 [ --enable-auto-cleanup enable auto cleanup of libraries [default=no]],
337 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
346 # MSVC floating-point option
350 if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc
365 AC_MSG_CHECKING([whether to enable draft APIs])
369 [ --enable-draft enable draft APIs (and internal APIs) [default=yes]],
372 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
380 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API"
392 AC_MSG_CHECKING([whether to enable renaming of symbols])
396 [ --enable-renaming add a version suffix to symbols [default=yes]],
400 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
408 AC_MSG_CHECKING([whether to enable function and data tracing])
412 [ --enable-tracing enable function and data tracing [default=no]],
415 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
427 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
430 # Enable/disable plugins
432 [ --enable-plugins enable plugins [default=no]],
436 *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugins) ;;
442 UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
447 enable=yes
448 AC_MSG_CHECKING([whether to enable dynamic loading of plugins. Ignored if plugins disabled.])
450 [ --disable-dyload disable dynamic loading [default=no]],
454 enable=yes
458 enable=no;
459 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
464 AC_MSG_RESULT($enable)
467 if test "$enable" = "yes"; then
474 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
486 [ --enable-rpath use rpath when linking [default is only if necessary]],
510 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++11,
512 if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then
514 CXXFLAGS="$CXXFLAGS -std=c++11"
519 AC_MSG_NOTICE([Adding CXXFLAGS option -std=c++11])
520 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -std=c++11"
525 *-*-solaris*)
534 # Always build ICU with multi-threading support.
548 # symbols in the libraries first, because on Solaris libc provides
573 *-pc-cygwin*|*-pc-mingw*)
574 # For gcc, the thread options are set by mh-mingw/mh-cygwin
578 *-*-hpux*)
579 # Add -mt because it does several nice things on newer compilers.
581 mh-hpux-acc)
583 CXXFLAGS="${CXXFLAGS} -mt"
587 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt"
592 *-*-solaris*)
594 mh-solaris)
595 LIBS="${LIBS} -mt"
601 AC_ARG_ENABLE(weak-threads,
602 [ --enable-weak-threads weakly reference the threading library [default=no]],
609 *) AC_MSG_ERROR(bad value ${enableval} for --enable-weak-threads) ;;
629 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
638 *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu)
640 # We're using gcc, and the simple -a gcc command line works for genccode
641 GENCCODE_ASSEMBLY="-a gcc"
643 i*86-*-solaris*)
646 # When using GNU as, the simple -a gcc command line works for genccode.
647 asv=`"${CC}" -print-prog-name=as 2>/dev/null`
648 asv=`"${asv}" --version 2>/dev/null`
650 X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
651 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
655 GENCCODE_ASSEMBLY="-a sun-x86"
657 sparc-*-solaris*)
658 GENCCODE_ASSEMBLY="-a sun"
660 ia64-*-hpux*)
664 # GENCCODE_ASSEMBLY="-a aCC-ia64"
675 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
682 alpha*-*-*) U_HAVE_INTTYPES_H=0;
683 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
692 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
712 U_NL_LANGINFO_CODESET=-1
715 if test $U_HAVE_NL_LANGINFO -eq 1; then
728 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
731 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
786 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
789 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
800 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
818 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
846 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
875 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
889 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1"
892 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=0"
895 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0"
911 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
915 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
919 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
923 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
927 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
931 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
935 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
939 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
948 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
958 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
981 AC_MSG_CHECKING([for UTF-16 string literal support])
986 *-*-aix*|powerpc64-*-linux*)
990 CFLAGS="${CFLAGS} -qutf"
991 CXXFLAGS="${CXXFLAGS} -qutf"
997 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf"
998 CHECK_UTF16_STRING_RESULT="-qutf"
1002 *-*-solaris*)
1006 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
1007 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
1013 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
1014 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort"
1015 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort"
1016 # Since we can't detect the availability of this UTF-16 syntax at compile time,
1018 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
1020 # If an ICU user uses icu-config, this feature will be enabled.
1021 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
1026 *-*-hpux*)
1032 *-*-cygwin)
1051 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
1068 # Enable/disable extras
1070 [ --enable-extras build ICU extras [default=yes]],
1074 *) AC_MSG_ERROR(bad value ${enableval} for --enable-extras) ;;
1079 [ --enable-icuio build ICU's icuio library [default=yes]],
1083 *) AC_MSG_ERROR(bad value ${enableval} for --enable-icuio) ;;
1088 # Enable/disable layoutex
1090 [ --enable-layoutex build ICU's Paragraph Layout library [default=yes].
1091 icu-le-hb must be installed via pkg-config. See http://harfbuzz.org],
1095 *) AC_MSG_ERROR(bad value ${enableval} for --enable-layoutex) ;;
1100 # Enable/disable layout
1110 # Enable/disable tools
1112 [ --enable-tools build ICU's tools [default=yes]],
1116 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tools) ;;
1121 AC_ARG_WITH(data-packaging,
1122 [ --with-data-packaging specify how to package ICU data. Possible values:
1128 See http://userguide.icu-project.org/icudata for more info.],
1135 *) AC_MSG_ERROR(bad value ${withval} for --with-data-packaging) ;;
1146 …ion}, etc. Never use lib/icu/{version} for data files.. Actual shared libraries will go in {libd…
1154 if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
1204 AC_ARG_WITH(library-suffix,
1205 [ --with-library-suffix=suffix tag a suffix to the library names [default=]],
1217 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'`
1218 …UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCN…
1225 # Enable/disable tests
1227 [ --enable-tests build ICU tests [default=yes]],
1231 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
1236 # Enable/disable samples
1238 [ --enable-samples build ICU samples [default=yes]
1241 If set, it will REPLACE any automatic list of libraries.],
1245 *) AC_MSG_ERROR(bad value ${enableval} for --enable-samples) ;;
1252 # Platform-specific Makefile setup
1255 *-*-solaris*) platform=U_SOLARIS ;;
1256 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;;
1257 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;;
1258 *-*-aix*) platform=U_AIX ;;
1259 *-*-hpux*) platform=U_HPUX ;;
1260 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
1261 *-*-cygwin*) platform=U_CYGWIN ;;
1262 *-*-mingw*) platform=U_MINGW ;;
1263 *-*ibm-openedition*|*-*-os390*) platform=OS390
1267 *-*-os400*) platform=OS400
1271 *-*-nto*) platform=U_QNX ;;
1272 *-dec-osf*) platform=U_OSF ;;
1273 *-*-beos) platform=U_BEOS ;;
1274 *-*-irix*) platform=U_IRIX ;;
1275 *-ncr-*) platform=U_MPRAS ;;
1294 CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality"
1300 CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality"
1396 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
1408 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then
1411 AC_MSG_RESULT([too old or test failed - try upgrading GNU Make])
1415 if test -n "$UCONFIG_CPPFLAGS"; then
1424 echo '--------------- ' "${HDRFILE}"
1432 -D*=*)
1433 [ \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}" ]
1436 -D*)
1437 [ \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}" ]
1447 \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
1449 echo '--------------- end ' "${HDRFILE}"
1453 if test -n "$UCONFIG_CFLAGS"; then
1457 if test -n "$UCONFIG_CXXFLAGS"; then
1467 if test -z "$PYTHON3";
1471 echo "See ICU-10923 for more information: https://unicode-org.atlassian.net/browse/ICU-10923"
1476 …echo "For more info on Python 3 requirement, see: https://unicode-org.atlassian.net/browse/ICU-109…