• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:disable +full:- +full:tools

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])
31 # for icu-config
32 # This may be removed later - mow (June 17, 2010)
34 case `/bin/sh -c "echo -n x"` in
35 -n*)
36 case `/bin/sh -c "echo 'x\c'"` in
41 ICU_ECHO_N='-n';;
51 [sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"]
54 [sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"]
63 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please …
73 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
99 # for end-users of ICU also. uconfig.h.prepend is generated
104 # such as -std
107 # Check whether to install icu-config
108 AC_ARG_ENABLE([icu-config],
109 AS_HELP_STRING([--enable-icu-config], [install icu-config]),
113 *) AC_MSG_ERROR([bad value '${enableval}' for --enable-icu-config]) ;;
122 [ --enable-debug build debug libraries and enable the U_DEBUG define [default=no]],
124 yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
136 [ --enable-release build release libraries [default=yes]],
155 # pkg-config is needed for harfbuzz support
157 PKG_CHECK_MODULES(ICULEHB, icu-le-hb, have_icu_le_hb=true, :)
159 …S were not set when calling configure, set it correctly based on (enable/disable) debug or release…
164 CFLAGS=-g
167 CFLAGS="$CFLAGS -O2"
172 CXXFLAGS=-g
175 CXXFLAGS="$CXXFLAGS -O2"
191 # make sure install is relative to srcdir - if a script
202 # TODO(ICU-20301): Remove fallback to Python 2.
203 AC_CHECK_PROGS(PYTHON, python3 "py -3" python "py")
211 AC_ARG_WITH(cross-build,
212 …[ --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the …
218 …AC_MSG_ERROR([Error! Cross compiling but no --with-cross-build option specified - please supply th…
222 if test -f "${cross_buildroot}/config/icucross.mk"; then
225 if test -d "${cross_buildroot}"; then
228 …ROR([No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an a…
245 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;;
255 # Check if we can build and use 64-bit libraries
264 # On HP/UX, don't link to -lm from a shared lib because it isn't
267 *-*-hpux*) AC_CHECK_LIB(m, floor, LIB_M="-lm") ;;
278 [ --enable-shared build shared libraries [default=yes]],
293 [ --enable-static build static libraries [default=no]],
314 *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
316 CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"
317 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
339 AC_ARG_ENABLE(auto-cleanup,
340 [ --enable-auto-cleanup enable auto cleanup of libraries [default=no]],
343 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
352 # MSVC floating-point option
356 if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc
375 [ --enable-draft enable draft APIs (and internal APIs) [default=yes]],
378 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
386 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API"
402 [ --enable-renaming add a version suffix to symbols [default=yes]],
406 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
418 [ --enable-tracing enable function and data tracing [default=no]],
421 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
433 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
436 # Enable/disable plugins
438 [ --enable-plugins enable plugins [default=no]],
442 *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugins) ;;
448 UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
456 [ --disable-dyload disable dynamic loading [default=no]],
465 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
480 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
485 # So, use for putil / tools only.
492 [ --enable-rpath use rpath when linking [default is only if necessary]],
516 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++11,
518 if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then
520 CXXFLAGS="$CXXFLAGS -std=c++11"
525 AC_MSG_NOTICE([Adding CXXFLAGS option -std=c++11])
526 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -std=c++11"
531 *-*-solaris*)
540 # Always build ICU with multi-threading support.
579 *-pc-cygwin*|*-pc-mingw*)
580 # For gcc, the thread options are set by mh-mingw/mh-cygwin
584 *-*-hpux*)
585 # Add -mt because it does several nice things on newer compilers.
587 mh-hpux-acc)
589 CXXFLAGS="${CXXFLAGS} -mt"
593 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt"
598 *-*-solaris*)
600 mh-solaris)
601 LIBS="${LIBS} -mt"
607 AC_ARG_ENABLE(weak-threads,
608 [ --enable-weak-threads weakly reference the threading library [default=no]],
615 *) AC_MSG_ERROR(bad value ${enableval} for --enable-weak-threads) ;;
635 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
644 *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu)
646 # We're using gcc, and the simple -a gcc command line works for genccode
647 GENCCODE_ASSEMBLY="-a gcc"
649 i*86-*-solaris*)
652 # When using GNU as, the simple -a gcc command line works for genccode.
653 asv=`"${CC}" -print-prog-name=as 2>/dev/null`
654 asv=`"${asv}" --version 2>/dev/null`
656 X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
657 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
661 GENCCODE_ASSEMBLY="-a sun-x86"
663 sparc-*-solaris*)
664 GENCCODE_ASSEMBLY="-a sun"
666 ia64-*-hpux*)
670 # GENCCODE_ASSEMBLY="-a aCC-ia64"
681 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
688 alpha*-*-*) U_HAVE_INTTYPES_H=0;
689 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
698 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
718 U_NL_LANGINFO_CODESET=-1
721 if test $U_HAVE_NL_LANGINFO -eq 1; then
734 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
737 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
792 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
795 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
806 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
824 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
852 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
881 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
895 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1"
898 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=0"
901 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0"
910 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRING_VIEW=1"
925 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
929 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
933 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
937 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
941 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
945 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
949 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
953 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
962 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
972 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
995 AC_MSG_CHECKING([for UTF-16 string literal support])
1000 *-*-aix*|powerpc64-*-linux*)
1004 CFLAGS="${CFLAGS} -qutf"
1005 CXXFLAGS="${CXXFLAGS} -qutf"
1011 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf"
1012 CHECK_UTF16_STRING_RESULT="-qutf"
1016 *-*-solaris*)
1020 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
1021 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
1027 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
1028 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort"
1029 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort"
1030 # Since we can't detect the availability of this UTF-16 syntax at compile time,
1032 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
1034 # If an ICU user uses icu-config, this feature will be enabled.
1035 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
1040 *-*-hpux*)
1046 *-*-cygwin)
1065 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
1082 # Enable/disable extras
1084 [ --enable-extras build ICU extras [default=yes]],
1088 *) AC_MSG_ERROR(bad value ${enableval} for --enable-extras) ;;
1093 [ --enable-icuio build ICU's icuio library [default=yes]],
1097 *) AC_MSG_ERROR(bad value ${enableval} for --enable-icuio) ;;
1102 # Enable/disable layoutex
1104 [ --enable-layoutex build ICU's Paragraph Layout library [default=no].
1105 icu-le-hb must be installed via pkg-config. See http://harfbuzz.org],
1109 *) AC_MSG_ERROR(bad value ${enableval} for --enable-layoutex) ;;
1114 # Enable/disable layout
1124 # Enable/disable tools
1125 AC_ARG_ENABLE(tools, optenable
1126 [ --enable-tools build ICU's tools [default=yes]],
1128 yes) tools=true ;;
1129 no) tools=false ;;
1130 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tools) ;;
1132 tools=true)
1133 ICU_CONDITIONAL(TOOLS, test "$tools" = true)
1135 # Enable/disable fuzzer target tests.
1137 [ --enable-fuzzer build ICU's fuzzer test targets [default=no]],
1141 *) AC_MSG_ERROR(bad value ${enableval} for --enable-fuzzer) ;;
1146 ICU_CONDITIONAL(DATA, test "$tools" = true || test "$cross_compiling" = "yes")
1148 AC_ARG_WITH(data-packaging,
1149 [ --with-data-packaging specify how to package ICU data. Possible values:
1155 See https://unicode-org.github.io/icu/userguide/icudata for more info.],
1162 *) AC_MSG_ERROR(bad value ${withval} for --with-data-packaging) ;;
1181 if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
1231 AC_ARG_WITH(library-suffix,
1232 [ --with-library-suffix=suffix tag a suffix to the library names [default=]],
1244 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'`
1245 …UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCN…
1252 # Enable/disable tests
1254 [ --enable-tests build ICU tests [default=yes]],
1258 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
1263 # Enable/disable samples
1265 [ --enable-samples build ICU samples [default=yes]
1272 *) AC_MSG_ERROR(bad value ${enableval} for --enable-samples) ;;
1279 # Platform-specific Makefile setup
1282 *-*-solaris*) platform=U_SOLARIS ;;
1283 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;;
1284 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;;
1285 *-*-aix*) platform=U_AIX ;;
1286 *-*-hpux*) platform=U_HPUX ;;
1287 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
1288 *-*-cygwin*) platform=U_CYGWIN ;;
1289 *-*-mingw*) platform=U_MINGW ;;
1290 *-*ibm-openedition*|*-*-os390*) platform=OS390
1294 *-*-os400*) platform=OS400
1298 *-*-nto*) platform=U_QNX ;;
1299 *-dec-osf*) platform=U_OSF ;;
1300 *-*-beos) platform=U_BEOS ;;
1301 *-*-irix*) platform=U_IRIX ;;
1302 *-ncr-*) platform=U_MPRAS ;;
1321 CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality"
1327 CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality"
1328 LIBCXXFLAGS="$LIBCXXFLAGS -Wglobal-constructors"
1365 tools/Makefile \
1366 tools/ctestfw/Makefile \
1367 tools/toolutil/Makefile \
1368 tools/makeconv/Makefile \
1369 tools/genrb/Makefile \
1370 tools/genccode/Makefile \
1371 tools/gencmn/Makefile \
1372 tools/gencnval/Makefile \
1373 tools/gendict/Makefile \
1374 tools/gentest/Makefile \
1375 tools/gennorm2/Makefile \
1376 tools/genbrk/Makefile \
1377 tools/gensprep/Makefile \
1378 tools/icuinfo/Makefile \
1379 tools/icupkg/Makefile \
1380 tools/icuswap/Makefile \
1381 tools/pkgdata/Makefile \
1382 tools/tzcode/Makefile \
1383 tools/gencfu/Makefile \
1384 tools/escapesrc/Makefile \
1418 if test -z "$PYTHON";
1423 if test -f "$srcdir/data/locales/root.txt";
1427 $PYTHON -m icutools.databuilder \
1428 --mode gnumake \
1429 --seqmode parallel \
1430 --src_dir "$srcdir/data" \
1431 --filter_file "$ICU_DATA_FILTER_FILE" \
1443 $PYTHON -m icutools.databuilder \
1444 --mode gnumake \
1445 --seqmode parallel \
1446 --src_dir "$srcdir/test/testdata" \
1461 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
1473 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then
1476 AC_MSG_RESULT([too old or test failed - try upgrading GNU Make])
1480 if test -n "$UCONFIG_CPPFLAGS"; then
1489 echo '--------------- ' "${HDRFILE}"
1497 -D*=*)
1498 [ \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}" ]
1501 -D*)
1502 [ \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}" ]
1512 \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
1514 echo '--------------- end ' "${HDRFILE}"
1518 if test -n "$UCONFIG_CFLAGS"; then
1522 if test -n "$UCONFIG_CXXFLAGS"; then
1526 if test "$tools" = false;
1528 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests."
1532 if test -z "$PYTHON";