Lines Matching +full:host +full:- +full:gcc
3 # Copyright (c) 1999-2016, International Business Machines Corporation and
14 [which Makefile fragment to use for ${host}],
17 case "${host}" in
18 *-*-solaris*)
19 if test "$GCC" = yes; then
20 icu_cv_host_frag=mh-solaris-gcc
22 icu_cv_host_frag=mh-solaris
24 alpha*-*-linux-gnu)
25 if test "$GCC" = yes; then
26 icu_cv_host_frag=mh-alpha-linux-gcc
28 icu_cv_host_frag=mh-alpha-linux-cc
30 powerpc*-*-linux*)
31 if test "$GCC" = yes; then
32 icu_cv_host_frag=mh-linux
34 icu_cv_host_frag=mh-linux-va
36 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;;
37 i[[34567]]86-*-cygwin)
38 if test "$GCC" = yes; then
39 icu_cv_host_frag=mh-cygwin
41 icu_cv_host_frag=mh-cygwin-msvc
43 x86_64-*-cygwin)
44 if test "$GCC" = yes; then
45 icu_cv_host_frag=mh-cygwin64
47 icu_cv_host_frag=mh-cygwin-msvc
49 *-*-mingw*)
50 if test "$GCC" = yes; then
54 #endif]])], [icu_cv_host_frag=mh-mingw64],
55 [icu_cv_host_frag=mh-mingw])
57 case "${host}" in
58 *-*-mingw*) icu_cv_host_frag=mh-msys-msvc ;;
59 *-*-cygwin) icu_cv_host_frag=mh-cygwin-msvc ;;
62 *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;;
63 *-*-aix*)
64 if test "$GCC" = yes; then
65 icu_cv_host_frag=mh-aix-gcc
67 icu_cv_host_frag=mh-aix-va
69 *-*-hpux*)
70 if test "$GCC" = yes; then
71 icu_cv_host_frag=mh-hpux-gcc
74 *aCC) icu_cv_host_frag=mh-hpux-acc ;;
77 *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;;
78 *-*-os400*) icu_cv_host_frag=mh-os400 ;;
79 *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;;
80 *-apple-darwin*) icu_cv_host_frag=mh-darwin ;;
81 *-*-beos) icu_cv_host_frag=mh-beos ;;
82 *-*-haiku) icu_cv_host_frag=mh-haiku ;;
83 *-*-irix*) icu_cv_host_frag=mh-irix ;;
84 *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
85 *-*-nto*) icu_cv_host_frag=mh-qnx ;;
86 *-ncr-*) icu_cv_host_frag=mh-mpras ;;
87 *) icu_cv_host_frag=mh-unknown ;;
93 # ICU_PROG_LINK - Make sure that the linker is usable
96 case "${host}" in
97 *-*-cygwin*|*-*-mingw*)
98 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
105 # AC_SEARCH_LIBS_FIRST(FUNCTION, SEARCH-LIBS [, ACTION-IF-FOUND
106 # [, ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]])
115 LIBS="-l$i $5 $ac_func_search_save_LIBS"
117 [ac_cv_search_$1="-l$i"
133 # Check if we can build and use 64-bit libraries
138 ## revisit this for cross-compile.
140 AC_ARG_ENABLE(64bit-libs,
141 …[ --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries [default= …
142 [echo "note, use --with-library-bits instead of --*-64bit-libs"
147 *) AC_MSG_ERROR(bad value ${enableval} for '--*-64bit-libs') ;;
151 AC_ARG_WITH(library-bits,
152 …[ --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochan…
156 *) AC_MSG_ERROR(bad value ${withval} for --with-library-bits) ;;
160 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
243 AC_MSG_CHECKING([how to build 64-bit executables])
247 … # Note, we don't have to actually check if the options work- we'll try them before using them.
255 if test "$GCC" = yes; then
256 CFLAGS="${CFLAGS} -m64"
257 CXXFLAGS="${CXXFLAGS} -m64"
261 case "${host}" in
262 sparc*-*-solaris*)
263 # 1. try -m64
264 CFLAGS="${CFLAGS} -m64"
265 CXXFLAGS="${CXXFLAGS} -m64"
274 SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
275 SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
276 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
277 if test -z "$SOL64" && test -n "$SPARCV9"; then
278 CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9"
279 CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9"
280 LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9"
285 i386-*-solaris*)
286 # 1. try -m64
287 CFLAGS="${CFLAGS} -m64"
288 CXXFLAGS="${CXXFLAGS} -m64"
297 AMD64=`isainfo -n 2>&1 | grep amd64`
298 … SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
299 if test -z "$SOL64" && test -n "$AMD64"; then
300 CFLAGS="${CFLAGS} -xtarget=generic64"
301 CXXFLAGS="${CXXFLAGS} -xtarget=generic64"
306 ia64-*-linux*)
309 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
310 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
315 *-*-cygwin)
316 # vcvarsamd64.bat should have been used to enable 64-bit builds.
319 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
323 *-*-aix*|powerpc64-*-linux*)
324 CFLAGS="${CFLAGS} -q64"
325 CXXFLAGS="${CXXFLAGS} -q64"
326 LDFLAGS="${LDFLAGS} -q64"
330 # worked- set other options.
331 case "${host}" in
332 *-*-aix*)
334 ARFLAGS="${ARFLAGS} -X64"
338 *-*-hpux*)
357 *-*ibm-openedition*|*-*-os390*)
358 CFLAGS="${CFLAGS} -Wc,lp64"
359 CXXFLAGS="${CXXFLAGS} -Wc,lp64"
360 LDFLAGS="${LDFLAGS} -Wl,lp64"
371 AC_MSG_CHECKING([whether runnable 64-bit binaries are being built ])
389 AC_MSG_CHECKING([how to build 32-bit executables])
390 if test "$GCC" = yes; then
391 CFLAGS="${CFLAGS} -m32"
392 CXXFLAGS="${CXXFLAGS} -m32"
398 AC_MSG_CHECKING([whether runnable 32-bit binaries are being built ])
429 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
435 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
451 …AC_ARG_ENABLE(strict,[ --enable-strict compile with strict compiler options [default=yes]…
463 if test "$GCC" = yes
465 case "${host}" in
466 *-*-solaris*)
467 # Don't use -std=c11 on Solaris because of timezone check fails
470 # Do not use -ansi. It limits us to C90, and it breaks some platforms.
471 # We use -std=c11 to disable the gnu99 defaults and its associated warnings
472 CFLAGS="$CFLAGS -std=c11"
476 … CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
478 case "${host}" in
479 *-*-cygwin)
480 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
484 *-*-mingw*)
485 CFLAGS="$CFLAGS -W4" ;;
490 CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
492 case "${host}" in
493 *-*-cygwin)
494 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
498 *-*-mingw*)
499 CFLAGS="$CFLAGS -W4" ;;