2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='LTLIBOBJS
621 libgcc_tm_include_list
627 common_out_object_file
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
654 TM_MULTILIB_EXCEPTIONS_CONFIG
663 build_xm_include_list
665 build_install_headers_dir
667 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
732 NATIVE_SYSTEM_HEADER_DIR
765 CROSS_SYSTEM_HEADER_DIR
766 TARGET_SYSTEM_ROOT_DEFINE
768 SYSROOT_CFLAGS_FOR_TARGET
773 ENABLE_BUILD_WITH_CXX
776 valgrind_path_defines
849 program_transform_name
860 ac_subst_files='option_includes
863 enable_option_checking
868 enable_generated_files_in_srcdir
878 enable_gather_detailed_mem_stats
879 enable_build_with_cxx
890 with_native_system_header_dir
900 enable_initfini_array
901 enable_sjlj_exceptions
903 enable_leading_mingw64_underscores
906 enable_win32_registry
912 enable_gnu_indirect_function
914 enable_gnu_unique_object
915 enable_linker_build_id
919 enable_maintainer_mode
920 enable_version_specific_runtime_libs
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars='build_alias
947 # Initialize some variables set by options.
949 ac_init_version=false
950 ac_unrecognized_opts=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name=s,x,x,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1037 -datadir | --datadir | --datadi | --datad)
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval enable_$ac_useropt=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1253 -site=* | --site=* | --sit=*)
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1293 eval with_$ac_useropt=\$ac_optarg ;;
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1309 eval with_$ac_useropt=no ;;
1312 # Obsolete; use --with-x.
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error "missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1380 # Be sure to have absolute directory names.
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1393 target=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error "pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 --target=TARGET configure for building compilers for TARGET [HOST]
1555 if test -n "$ac_init_help"; then
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files in source dir intended
1565 for creating source tarballs for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST]
1570 enable expensive run-time checks. With LIST, enable
1571 only specific categories of checks. Categories are:
1572 yes,no,all,none,release. Flags are:
1573 assert,df,fold,gc,gcac,gimple,misc,
1574 rtlflag,rtl,runtime,tree,valgrind,types
1575 --enable-coverage[=LEVEL]
1576 enable compiler's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-build-with-cxx build with C++ compiler instead of C compiler
1583 --enable-multilib enable library support for multiple ABIs
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid'
1587 or 'dpd' choses which decimal floating point format
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-initfini-array use .init_array/.fini_array sections
1600 --enable-sjlj-exceptions
1601 arrange to use setjmp/longjmp exception handling
1602 --enable-secureplt enable -msecure-plt by default for PowerPC
1603 --enable-leading-mingw64-underscores
1604 enable leading underscores on 64 bit mingw targets
1605 --enable-cld enable -mcld by default for 32bit x86
1606 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1608 --disable-win32-registry
1609 disable lookup of installation paths in the Registry
1611 --enable-win32-registry enable registry lookup (default)
1612 --enable-win32-registry=KEY
1613 use KEY instead of GCC version as the last portion
1615 --enable-shared[=PKGS] build shared libraries [default=yes]
1616 --enable-static[=PKGS] build static libraries [default=yes]
1617 --enable-fast-install[=PKGS]
1618 optimize for fast installation [default=yes]
1619 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --enable-gnu-indirect-function
1621 enable the use of the @gnu_indirect_function to
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-version-specific-runtime-libs
1633 specify that runtime libraries should be installed
1634 in a compiler-specific directory
1635 --enable-plugin enable plugin support
1636 --disable-libquadmath-support
1637 disable libquadmath support for Fortran
1640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1642 --with-build-libsubdir=DIR Directory where to find libraries for build system
1643 --with-local-prefix=DIR specifies directory to put local include
1644 --with-gxx-include-dir=DIR
1645 specifies directory to put g++ header files
1646 --with-cpp-install-dir=DIR
1647 install the user visible C preprocessor in DIR
1648 (relative to PREFIX) as well as PREFIX/bin
1649 --with-gnu-ld arrange to work with GNU ld
1650 --with-ld arrange to use the specified ld (full pathname)
1651 --with-demangler-in-ld try to use demangler in GNU ld
1652 --with-gnu-as arrange to work with GNU as
1653 --with-as arrange to use the specified as (full pathname)
1654 --with-stabs arrange to use stabs instead of host debug format
1655 --with-dwarf2 force the default debug format to be DWARF 2
1656 --with-native-system-header-dir=dir
1657 use dir as the directory to look for standard
1658 system header files in. Defaults to /usr/include.
1659 --with-build-sysroot=sysroot
1660 use sysroot as the system root during the build
1661 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1662 --with-specs=SPECS add SPECS to driver command-line processing
1663 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1664 --with-bugurl=URL Direct users to URL to report a bug
1665 --with-multilib-list select multilibs (SH and x86-64 only)
1666 --with-gnu-ld assume the C compiler uses GNU ld default=no
1667 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1668 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1669 --with-pic try to use only PIC/non-PIC objects [default=use
1671 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1672 --with-plugin-ld=[ARG] specify the plugin linker
1673 --with-long-double-128 use 128-bit long double by default
1674 --with-gc={page,zone} choose the garbage collection mechanism to use with
1676 --with-system-zlib use installed libz
1677 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1678 --with-linker-hash-style={sysv,gnu,both}
1679 specify the linker hash style
1681 Some influential environment variables:
1682 CC C compiler command
1683 CFLAGS C compiler flags
1684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1685 nonstandard directory <lib dir>
1686 LIBS libraries to pass to the linker, e.g. -l<library>
1687 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1688 you have headers in a nonstandard directory <include dir>
1689 CXX C++ compiler command
1690 CXXFLAGS C++ compiler flags
1692 CXXCPP C++ preprocessor
1693 GMPLIBS How to link GMP
1694 GMPINC How to find GMP include files
1695 PPLLIBS How to link PPL
1696 PPLINC How to find PPL include files
1697 CLOOGLIBS How to link CLOOG
1698 CLOOGINC How to find CLOOG include files
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1703 Report bugs to the package provider.
1708 if test "$ac_init_help" = "recursive"; then
1709 # If there are subdirs, report their specific --help.
1710 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711 test -d "$ac_dir" ||
1712 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720 # A ".." for each directory in $ac_dir_suffix.
1721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722 case $ac_top_builddir_sub in
1723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1733 .) # We are building in place.
1735 ac_top_srcdir=$ac_top_builddir_sub
1736 ac_abs_top_srcdir=$ac_pwd ;;
1737 [\\/]* | ?:[\\/]* ) # Absolute name.
1738 ac_srcdir=$srcdir$ac_dir_suffix;
1739 ac_top_srcdir=$srcdir
1740 ac_abs_top_srcdir=$srcdir ;;
1742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743 ac_top_srcdir=$ac_top_build_prefix$srcdir
1744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1748 cd "$ac_dir" || { ac_status=$?; continue; }
1749 # Check for guested configure.
1750 if test -f "$ac_srcdir/configure.gnu"; then
1752 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753 elif test -f "$ac_srcdir/configure"; then
1755 $SHELL "$ac_srcdir/configure" --help=recursive
1757 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1759 cd "$ac_pwd" || { ac_status=$?; break; }
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1767 generated by GNU Autoconf 2.64
1769 Copyright (C) 2009 Free Software Foundation, Inc.
1770 This configure script is free software; the Free Software Foundation
1771 gives unlimited permission to copy, distribute and modify it.
1776 ## ------------------------ ##
1777 ## Autoconf initialization. ##
1778 ## ------------------------ ##
1780 # ac_fn_c_try_compile LINENO
1781 # --------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_compile ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext
1787 if { { ac_try="$ac_compile"
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_compile") 2>conftest.err
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest.$ac_objext; then :
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 } # ac_fn_c_try_compile
1818 # ac_fn_cxx_try_compile LINENO
1819 # ----------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_compile ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext
1825 if { { ac_try="$ac_compile"
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_cxx_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 } # ac_fn_cxx_try_compile
1856 # ac_fn_c_try_cpp LINENO
1857 # ----------------------
1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_cpp conftest.$ac_ext"
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } >/dev/null && {
1878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1896 # the include files in INCLUDES and setting the cache variable VAR
1898 ac_fn_c_check_header_mongrel ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1911 # Is the header compilable?
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1913 $as_echo_n "checking $2 usability... " >&6; }
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_header_compiler=yes
1922 ac_header_compiler=no
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1926 $as_echo "$ac_header_compiler" >&6; }
1928 # Is the header present?
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1930 $as_echo_n "checking $2 presence... " >&6; }
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1935 if ac_fn_c_try_cpp "$LINENO"; then :
1936 ac_header_preproc=yes
1938 ac_header_preproc=no
1940 rm -f conftest.err conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1942 $as_echo "$ac_header_preproc" >&6; }
1944 # So? What about this header?
1945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1948 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1950 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1954 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1956 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1958 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1960 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968 $as_echo_n "(cached) " >&6
1970 eval "$3=\$ac_header_compiler"
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 } # ac_fn_c_check_header_mongrel
1980 # ac_fn_c_try_run LINENO
1981 # ----------------------
1982 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1983 # that executables *can* be run.
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if { { ac_try="$ac_link"
1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990 *) ac_try_echo=$ac_try;;
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994 (eval "$ac_link") 2>&5
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1998 { { case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_try") 2>&5
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; }; }; then :
2010 $as_echo "$as_me: program exited with status $ac_status" >&5
2011 $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2014 ac_retval=$ac_status
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2023 # -------------------------------------------------------
2024 # Tests whether HEADER exists and can be compiled using the include files in
2025 # INCLUDES, setting the cache variable VAR accordingly.
2026 ac_fn_c_check_header_compile ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2039 if ac_fn_c_try_compile "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 } # ac_fn_c_check_header_compile
2053 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2054 # --------------------------------------------
2055 # Tries to find the compile-time value of EXPR in a program that includes
2056 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2058 ac_fn_c_compute_int ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if test "$cross_compiling" = yes; then
2062 # Depending upon the size, compute the lo and hi bounds.
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2069 static int test_array [1 - 2 * !(($2) >= 0)];
2076 if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_hi=$ac_mid; break
2095 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2096 if test $ac_lo -le $ac_mid; then
2100 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 static int test_array [1 - 2 * !(($2) < 0)];
2118 if ac_fn_c_try_compile "$LINENO"; then :
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_lo=$ac_mid; break
2137 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2138 if test $ac_mid -le $ac_hi; then
2142 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 # Binary search between lo and hi bounds.
2153 while test "x$ac_lo" != "x$ac_hi"; do
2154 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2161 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2168 if ac_fn_c_try_compile "$LINENO"; then :
2171 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2183 static long int longval () { return $2; }
2184 static unsigned long int ulongval () { return $2; }
2191 FILE *f = fopen ("conftest.val", "w");
2196 long int i = longval ();
2199 fprintf (f, "%ld", i);
2203 unsigned long int i = ulongval ();
2206 fprintf (f, "%lu", i);
2208 /* Do not output a trailing newline, as this causes \r\n confusion
2209 on some platforms. */
2210 return ferror (f) || fclose (f) != 0;
2216 if ac_fn_c_try_run "$LINENO"; then :
2217 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2222 conftest.$ac_objext conftest.beam conftest.$ac_ext
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 } # ac_fn_c_compute_int
2231 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2232 # -------------------------------------------
2233 # Tests whether TYPE exists after having included INCLUDES, setting cache
2234 # variable VAR accordingly.
2235 ac_fn_c_check_type ()
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2241 $as_echo_n "(cached) " >&6
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2269 if ac_fn_c_try_compile "$LINENO"; then :
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2281 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2283 } # ac_fn_c_check_type
2285 # ac_fn_c_find_intX_t LINENO BITS VAR
2286 # -----------------------------------
2287 # Finds a signed integer type with width BITS, setting cache variable VAR
2289 ac_fn_c_find_intX_t ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2293 $as_echo_n "checking for int$2_t... " >&6; }
2294 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2295 $as_echo_n "(cached) " >&6
2298 for ac_type in int$2_t 'int' 'long int' \
2299 'long long int' 'short int' 'signed char'; do
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 $ac_includes_default
2306 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2316 $ac_includes_default
2320 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2321 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2328 if ac_fn_c_try_compile "$LINENO"; then :
2335 eval "$3=\$ac_type" ;;
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 if test "x$as_val" = x""no; then :
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2354 } # ac_fn_c_find_intX_t
2356 # ac_fn_c_try_link LINENO
2357 # -----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded.
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 rm -f conftest.$ac_objext conftest$ac_exeext
2363 if { { ac_try="$ac_link"
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>conftest.err
2372 if test -s conftest.err; then
2373 grep -v '^ *+' conftest.err >conftest.er1
2374 cat conftest.er1 >&5
2375 mv -f conftest.er1 conftest.err
2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378 test $ac_status = 0; } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest$ac_exeext && {
2382 test "$cross_compiling" = yes ||
2383 $as_test_x conftest$ac_exeext
2387 $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2392 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394 # interfere with the next link command; also delete a directory that is
2395 # left behind by Apple's compiler. We do this before executing the actions.
2396 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 } # ac_fn_c_try_link
2402 # ac_fn_c_find_uintX_t LINENO BITS VAR
2403 # ------------------------------------
2404 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2406 ac_fn_c_find_uintX_t ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2410 $as_echo_n "checking for uint$2_t... " >&6; }
2411 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412 $as_echo_n "(cached) " >&6
2415 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2416 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2419 $ac_includes_default
2423 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2430 if ac_fn_c_try_compile "$LINENO"; then :
2435 eval "$3=\$ac_type" ;;
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 if test "x$as_val" = x""no; then :
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2452 } # ac_fn_c_find_uintX_t
2454 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2455 # ----------------------------------------------
2456 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2457 ac_fn_c_check_header_preproc ()
2459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2461 $as_echo_n "checking for $2... " >&6; }
2462 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2463 $as_echo_n "(cached) " >&6
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2469 if ac_fn_c_try_cpp "$LINENO"; then :
2474 rm -f conftest.err conftest.$ac_ext
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2481 } # ac_fn_c_check_header_preproc
2483 # ac_fn_cxx_try_cpp LINENO
2484 # ------------------------
2485 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2486 ac_fn_cxx_try_cpp ()
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 if { { ac_try="$ac_cpp conftest.$ac_ext"
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495 $as_echo "$ac_try_echo"; } >&5
2496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2498 if test -s conftest.err; then
2499 grep -v '^ *+' conftest.err >conftest.er1
2500 cat conftest.er1 >&5
2501 mv -f conftest.er1 conftest.err
2503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504 test $ac_status = 0; } >/dev/null && {
2505 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2506 test ! -s conftest.err
2510 $as_echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2515 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 } # ac_fn_cxx_try_cpp
2520 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2521 # ------------------------------------------------
2522 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2523 ac_fn_cxx_check_header_preproc ()
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2529 $as_echo_n "(cached) " >&6
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2535 if ac_fn_cxx_try_cpp "$LINENO"; then :
2540 rm -f conftest.err conftest.$ac_ext
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 } # ac_fn_cxx_check_header_preproc
2549 # ac_fn_c_check_func LINENO FUNC VAR
2550 # ----------------------------------
2551 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2552 ac_fn_c_check_func ()
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556 $as_echo_n "checking for $2... " >&6; }
2557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2558 $as_echo_n "(cached) " >&6
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2562 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2564 #define $2 innocuous_$2
2566 /* System header to define __stub macros and hopefully few prototypes,
2567 which can conflict with char $2 (); below.
2568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2569 <limits.h> exists even on freestanding compilers. */
2572 # include <limits.h>
2574 # include <assert.h>
2579 /* Override any GCC internal prototype to avoid an error.
2580 Use char because int might match the return type of a GCC
2581 builtin and then its argument prototype would still apply. */
2586 /* The GNU C library defines this for functions which it implements
2587 to always fail with ENOSYS. Some functions are actually named
2588 something starting with __ and the normal name is an alias. */
2589 #if defined __stub_$2 || defined __stub___$2
2601 if ac_fn_c_try_link "$LINENO"; then :
2606 rm -f core conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614 } # ac_fn_c_check_func
2616 # ac_fn_cxx_try_link LINENO
2617 # -------------------------
2618 # Try to link conftest.$ac_ext, and return whether this succeeded.
2619 ac_fn_cxx_try_link ()
2621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622 rm -f conftest.$ac_objext conftest$ac_exeext
2623 if { { ac_try="$ac_link"
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630 (eval "$ac_link") 2>conftest.err
2632 if test -s conftest.err; then
2633 grep -v '^ *+' conftest.err >conftest.er1
2634 cat conftest.er1 >&5
2635 mv -f conftest.er1 conftest.err
2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638 test $ac_status = 0; } && {
2639 test -z "$ac_cxx_werror_flag" ||
2640 test ! -s conftest.err
2641 } && test -s conftest$ac_exeext && {
2642 test "$cross_compiling" = yes ||
2643 $as_test_x conftest$ac_exeext
2647 $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2652 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2653 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2654 # interfere with the next link command; also delete a directory that is
2655 # left behind by Apple's compiler. We do this before executing the actions.
2656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660 } # ac_fn_cxx_try_link
2661 cat >config.log <<_ACEOF
2662 This file contains any messages produced by compilers while
2663 running configure, to aid debugging if configure makes a mistake.
2665 It was created by $as_me, which was
2666 generated by GNU Autoconf 2.64. Invocation command line was
2678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2685 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2687 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2688 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2690 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2691 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2692 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2693 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 $as_echo "PATH: $as_dir"
2718 # Keep a trace of the command line.
2719 # Strip out --no-create and --no-recursion so they do not pile up.
2720 # Strip out --silent because we don't want to record it for future runs.
2721 # Also quote any args containing shell meta-characters.
2722 # Make two passes to allow for proper duplicate-argument suppression.
2726 ac_must_keep_next=false
2732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2734 | -silent | --silent | --silen | --sile | --sil)
2737 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2742 as_fn_append ac_configure_args1 " '$ac_arg'"
2743 if test $ac_must_keep_next = true; then
2744 ac_must_keep_next=false # Got value, back to normal.
2747 *=* | --config-cache | -C | -disable-* | --disable-* \
2748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2750 | -with-* | --with-* | -without-* | --without-* | --x)
2751 case "$ac_configure_args0 " in
2752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2755 -* ) ac_must_keep_next=true ;;
2758 as_fn_append ac_configure_args " '$ac_arg'"
2763 { ac_configure_args0=; unset ac_configure_args0;}
2764 { ac_configure_args1=; unset ac_configure_args1;}
2766 # When interrupted or exit'd, cleanup temporary files, and complete
2767 # config.log. We remove comments because anyway the quotes in there
2768 # would cause problems or look ugly.
2769 # WARNING: Use '\'' to represent an apostrophe within the trap.
2770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2771 trap 'exit_status=$?
2772 # Save into config.log some information that might help in debugging.
2777 ## ---------------- ##
2778 ## Cache variables. ##
2779 ## ---------------- ##
2782 # The following way of writing the cache mishandles newlines in values,
2784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2785 eval ac_val=\$$ac_var
2789 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2793 _ | IFS | as_nl) ;; #(
2794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2795 *) { eval $ac_var=; unset $ac_var;} ;;
2800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2801 *${as_nl}ac_space=\ *)
2803 "s/'\''/'\''\\\\'\'''\''/g;
2804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2815 ## ----------------- ##
2816 ## Output variables. ##
2817 ## ----------------- ##
2820 for ac_var in $ac_subst_vars
2822 eval ac_val=\$$ac_var
2824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2826 $as_echo "$ac_var='\''$ac_val'\''"
2830 if test -n "$ac_subst_files"; then
2832 ## ------------------- ##
2833 ## File substitutions. ##
2834 ## ------------------- ##
2837 for ac_var in $ac_subst_files
2839 eval ac_val=\$$ac_var
2841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2843 $as_echo "$ac_var='\''$ac_val'\''"
2848 if test -s confdefs.h; then
2858 test "$ac_signal" != 0 &&
2859 $as_echo "$as_me: caught signal $ac_signal"
2860 $as_echo "$as_me: exit $exit_status"
2862 rm -f core *.core core.conftest.* &&
2863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2866 for ac_signal in 1 2 13 15; do
2867 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2872 rm -f -r conftest* confdefs.h
2874 $as_echo "/* confdefs.h */" > confdefs.h
2876 # Predefined preprocessor variables.
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_NAME "$PACKAGE_NAME"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_STRING "$PACKAGE_STRING"
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2898 cat >>confdefs.h <<_ACEOF
2899 #define PACKAGE_URL "$PACKAGE_URL"
2903 # Let the site file select an alternate cache file if it wants to.
2904 # Prefer an explicitly selected file to automatically selected ones.
2907 if test -n "$CONFIG_SITE"; then
2908 ac_site_file1=$CONFIG_SITE
2909 elif test "x$prefix" != xNONE; then
2910 ac_site_file1=$prefix/share/config.site
2911 ac_site_file2=$prefix/etc/config.site
2913 ac_site_file1=$ac_default_prefix/share/config.site
2914 ac_site_file2=$ac_default_prefix/etc/config.site
2916 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2918 test "x$ac_site_file" = xNONE && continue
2919 if test -r "$ac_site_file"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2921 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2922 sed 's/^/| /' "$ac_site_file" >&5
2927 if test -r "$cache_file"; then
2928 # Some versions of bash will fail to source /dev/null (special
2929 # files actually), so we avoid doing that.
2930 if test -f "$cache_file"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2932 $as_echo "$as_me: loading cache $cache_file" >&6;}
2934 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2935 *) . "./$cache_file";;
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2940 $as_echo "$as_me: creating cache $cache_file" >&6;}
2944 # Check that the precious variables saved in the cache have kept the same
2946 ac_cache_corrupted=false
2947 for ac_var in $ac_precious_vars; do
2948 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2949 eval ac_new_set=\$ac_env_${ac_var}_set
2950 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2951 eval ac_new_val=\$ac_env_${ac_var}_value
2952 case $ac_old_set,$ac_new_set in
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2955 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2956 ac_cache_corrupted=: ;;
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2959 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2960 ac_cache_corrupted=: ;;
2963 if test "x$ac_old_val" != "x$ac_new_val"; then
2964 # differences in whitespace do not lead to failure.
2965 ac_old_val_w=`echo x $ac_old_val`
2966 ac_new_val_w=`echo x $ac_new_val`
2967 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2969 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2970 ac_cache_corrupted=:
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2973 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2974 eval $ac_var=\$ac_old_val
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2977 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2979 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2982 # Pass precious variables to config.status.
2983 if test "$ac_new_set" = set; then
2985 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2986 *) ac_arg=$ac_var=$ac_new_val ;;
2988 case " $ac_configure_args " in
2989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2990 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2994 if $ac_cache_corrupted; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2998 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2999 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3001 ## -------------------- ##
3002 ## Main body of script. ##
3003 ## -------------------- ##
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3019 gcc_version=`cat $srcdir/BASE-VER`
3021 # Determine the host, build, and target systems
3023 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3024 for ac_t in install-sh install.sh shtool; do
3025 if test -f "$ac_dir/$ac_t"; then
3027 ac_install_sh="$ac_aux_dir/$ac_t -c"
3032 if test -z "$ac_aux_dir"; then
3033 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3036 # These three variables are undocumented and unsupported,
3037 # and are intended to be withdrawn in a future Autoconf release.
3038 # They can cause serious problems if a builder's source tree is in a directory
3039 # whose full name contains unusual characters.
3040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3045 # Make sure we can run config.sub.
3046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3047 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3050 $as_echo_n "checking build system type... " >&6; }
3051 if test "${ac_cv_build+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3054 ac_build_alias=$build_alias
3055 test "x$ac_build_alias" = x &&
3056 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3057 test "x$ac_build_alias" = x &&
3058 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3059 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3060 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3064 $as_echo "$ac_cv_build" >&6; }
3065 case $ac_cv_build in
3067 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3070 ac_save_IFS=$IFS; IFS='-'
3076 # Remember, the first character of IFS is used to create $*,
3077 # except with old shells:
3080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3084 $as_echo_n "checking host system type... " >&6; }
3085 if test "${ac_cv_host+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3088 if test "x$host_alias" = x; then
3089 ac_cv_host=$ac_cv_build
3091 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3092 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3097 $as_echo "$ac_cv_host" >&6; }
3100 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3103 ac_save_IFS=$IFS; IFS='-'
3109 # Remember, the first character of IFS is used to create $*,
3110 # except with old shells:
3113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3117 $as_echo_n "checking target system type... " >&6; }
3118 if test "${ac_cv_target+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3121 if test "x$target_alias" = x; then
3122 ac_cv_target=$ac_cv_host
3124 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3125 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3130 $as_echo "$ac_cv_target" >&6; }
3131 case $ac_cv_target in
3133 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3135 target=$ac_cv_target
3136 ac_save_IFS=$IFS; IFS='-'
3142 # Remember, the first character of IFS is used to create $*,
3143 # except with old shells:
3146 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3149 # The aliases save the names the user supplied, while $host etc.
3150 # will get canonicalized.
3151 test -n "$target_alias" &&
3152 test "$program_prefix$program_suffix$program_transform_name" = \
3154 program_prefix=${target_alias}-
3156 # Determine the noncanonical target name, for directory use.
3157 case ${build_alias} in
3158 "") build_noncanonical=${build} ;;
3159 *) build_noncanonical=${build_alias} ;;
3162 case ${host_alias} in
3163 "") host_noncanonical=${build_noncanonical} ;;
3164 *) host_noncanonical=${host_alias} ;;
3167 case ${target_alias} in
3168 "") target_noncanonical=${host_noncanonical} ;;
3169 *) target_noncanonical=${target_alias} ;;
3175 # Determine the target- and build-specific subdirectories
3177 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3178 # have matching libraries, they should use host libraries: Makefile.tpl
3179 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3180 # However, they still use the build modules, because the corresponding
3181 # host modules (e.g. bison) are only built for the host when bootstrap
3183 # - build_subdir is where we find build modules, and never changes.
3184 # - build_libsubdir is where we find build libraries, and can be overridden.
3186 # Prefix 'build-' so this never conflicts with target_subdir.
3187 build_subdir="build-${build_noncanonical}"
3189 # Check whether --with-build-libsubdir was given.
3190 if test "${with_build_libsubdir+set}" = set; then :
3191 withval=$with_build_libsubdir; build_libsubdir="$withval"
3193 build_libsubdir="$build_subdir"
3196 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3197 if ( test $srcdir = . && test -d gcc ) \
3198 || test -d $srcdir/../host-${host_noncanonical}; then
3199 host_subdir="host-${host_noncanonical}"
3204 target_subdir=${target_noncanonical}
3207 # Set program_transform_name
3208 test "$program_prefix" != NONE &&
3209 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3210 # Use a double $ so make ignores it.
3211 test "$program_suffix" != NONE &&
3212 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3213 # Double any \ or $.
3214 # By default was `s,x,x', remove it if useless.
3215 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3216 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3219 # Check for bogus environment variables.
3220 # Test if LIBRARY_PATH contains the notation for the current directory
3221 # since this would lead to problems installing/building glibc.
3222 # LIBRARY_PATH contains the current directory if one of the following
3224 # - one of the terminals (":" and ";") is the first or last sign
3225 # - two terminals occur directly after each other
3226 # - the path contains an element with a dot in it
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3228 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3229 case ${LIBRARY_PATH} in
3230 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3231 library_path_setting="contains current directory"
3234 library_path_setting="ok"
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3238 $as_echo "$library_path_setting" >&6; }
3239 if test "$library_path_setting" != "ok"; then
3241 *** LIBRARY_PATH shouldn't contain the current directory when
3242 *** building gcc. Please change the environment variable
3243 *** and run configure again." "$LINENO" 5
3246 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3247 # since this would lead to problems installing/building glibc.
3248 # GCC_EXEC_PREFIX contains the current directory if one of the following
3250 # - one of the terminals (":" and ";") is the first or last sign
3251 # - two terminals occur directly after each other
3252 # - the path contains an element with a dot in it
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3254 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3255 case ${GCC_EXEC_PREFIX} in
3256 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3257 gcc_exec_prefix_setting="contains current directory"
3260 gcc_exec_prefix_setting="ok"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3264 $as_echo "$gcc_exec_prefix_setting" >&6; }
3265 if test "$gcc_exec_prefix_setting" != "ok"; then
3267 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3268 *** building gcc. Please change the environment variable
3269 *** and run configure again." "$LINENO" 5
3276 # Specify the local prefix
3279 # Check whether --with-local-prefix was given.
3280 if test "${with_local_prefix+set}" = set; then :
3281 withval=$with_local_prefix; case "${withval}" in
3282 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3284 *) local_prefix=$with_local_prefix ;;
3289 # Default local prefix if it is empty
3290 if test x$local_prefix = x; then
3291 local_prefix=/usr/local
3294 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3295 # passed in by the toplevel make and thus we'd get different behavior
3296 # depending on where we built the sources.
3297 gcc_gxx_include_dir=
3298 # Specify the g++ header file directory
3300 # Check whether --with-gxx-include-dir was given.
3301 if test "${with_gxx_include_dir+set}" = set; then :
3302 withval=$with_gxx_include_dir; case "${withval}" in
3303 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3305 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3310 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3311 if test x${gcc_gxx_include_dir} = x; then
3312 if test x${enable_version_specific_runtime_libs} = xyes; then
3313 gcc_gxx_include_dir='${libsubdir}/include/c++'
3315 libstdcxx_incdir='include/c++/$(version)'
3316 if test x$host != x$target; then
3317 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3319 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3324 # Check whether --with-cpp_install_dir was given.
3325 if test "${with_cpp_install_dir+set}" = set; then :
3326 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3327 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3328 elif test x$withval != xno; then
3329 cpp_install_dir=$withval
3334 # We would like to our source tree to be readonly. However when releases or
3335 # pre-releases are generated, the flex/bison generated files as well as the
3336 # various formats of manuals need to be included along with the rest of the
3337 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3341 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3342 # Check whether --enable-generated-files-in-srcdir was given.
3343 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3344 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3346 generated_files_in_srcdir=no
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3351 $as_echo "$generated_files_in_srcdir" >&6; }
3353 if test "$generated_files_in_srcdir" = "yes"; then
3360 # -------------------
3361 # Find default linker
3362 # -------------------
3366 # Check whether --with-gnu-ld was given.
3367 if test "${with_gnu_ld+set}" = set; then :
3368 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3374 # With pre-defined ld
3376 # Check whether --with-ld was given.
3377 if test "${with_ld+set}" = set; then :
3378 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3381 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3382 if test ! -x "$DEFAULT_LINKER"; then
3383 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3384 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3388 cat >>confdefs.h <<_ACEOF
3389 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3394 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3396 cat >>confdefs.h <<_ACEOF
3397 #define HAVE_GNU_LD $gnu_ld
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3402 $as_echo_n "checking whether a default linker was specified... " >&6; }
3403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3404 if test x"$gnu_ld_flag" = x"no"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3416 # With demangler in GNU ld
3418 # Check whether --with-demangler-in-ld was given.
3419 if test "${with_demangler_in_ld+set}" = set; then :
3420 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3426 # ----------------------
3427 # Find default assembler
3428 # ----------------------
3432 # Check whether --with-gnu-as was given.
3433 if test "${with_gnu_as+set}" = set; then :
3434 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3441 # Check whether --with-as was given.
3442 if test "${with_as+set}" = set; then :
3443 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3446 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3447 if test ! -x "$DEFAULT_ASSEMBLER"; then
3448 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3449 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3453 cat >>confdefs.h <<_ACEOF
3454 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3459 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3461 cat >>confdefs.h <<_ACEOF
3462 #define HAVE_GNU_AS $gnu_as
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3467 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3468 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3469 if test x"$gas_flag" = x"no"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3471 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3474 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3485 # If a non-executable a.out is present (e.g. created by GNU as above even if
3486 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3487 # file, even when creating an executable, so an execution test fails.
3488 # Remove possible default executable files to avoid this.
3490 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3491 # Autoconf includes it.
3492 rm -f a.out a.exe b.out
3494 # Find the native compiler
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 if test -n "$ac_tool_prefix"; then
3501 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3502 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3539 if test -z "$ac_cv_prog_CC"; then
3541 # Extract the first word of "gcc", so it can be a program name with args.
3542 set dummy gcc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -n "$ac_ct_CC"; then
3549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3558 ac_cv_prog_ac_ct_CC="gcc"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3569 if test -n "$ac_ct_CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3571 $as_echo "$ac_ct_CC" >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3577 if test "x$ac_ct_CC" = x; then
3580 case $cross_compiling:$ac_tool_warned in
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584 ac_tool_warned=yes ;;
3592 if test -z "$CC"; then
3593 if test -n "$ac_tool_prefix"; then
3594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3595 set dummy ${ac_tool_prefix}cc; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_CC+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3601 if test -n "$CC"; then
3602 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_CC="${ac_tool_prefix}cc"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test -n "$CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3624 $as_echo "$CC" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3633 if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if test "${ac_cv_prog_CC+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 if test $ac_prog_rejected = yes; then
3665 # We found a bogon in the path, so make sure we never use it.
3666 set dummy $ac_cv_prog_CC
3668 if test $# != 0; then
3669 # We chose a different compiler from the bogus one.
3670 # However, it has the same basename, so the bogon will be chosen
3671 # first if we set CC to just the basename; use the full file name.
3673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3689 if test -z "$CC"; then
3690 if test -n "$ac_tool_prefix"; then
3691 for ac_prog in cl.exe
3693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if test "${ac_cv_prog_CC+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3700 if test -n "$CC"; then
3701 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 if test -n "$CC"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3723 $as_echo "$CC" >&6; }
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3730 test -n "$CC" && break
3733 if test -z "$CC"; then
3735 for ac_prog in cl.exe
3737 # Extract the first word of "$ac_prog", so it can be a program name with args.
3738 set dummy $ac_prog; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3744 if test -n "$ac_ct_CC"; then
3745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754 ac_cv_prog_ac_ct_CC="$ac_prog"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3774 test -n "$ac_ct_CC" && break
3777 if test "x$ac_ct_CC" = x; then
3780 case $cross_compiling:$ac_tool_warned in
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned=yes ;;
3793 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error "no acceptable C compiler found in \$PATH
3796 See \`config.log' for more details." "$LINENO" 5; }
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 for ac_option in --version -v -V -qversion; do
3803 { { ac_try="$ac_compiler $ac_option >&5"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3812 if test -s conftest.err; then
3814 ... rest of stderr output deleted ...
3815 10q' conftest.err >conftest.er1
3816 cat conftest.er1 >&5
3817 rm -f conftest.er1 conftest.err
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3834 ac_clean_files_save=$ac_clean_files
3835 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3836 # Try to create an executable without -o first, disregard a.out.
3837 # It will help us diagnose broken compilers, and finding out an intuition
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3840 $as_echo_n "checking for C compiler default output file name... " >&6; }
3841 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3843 # The possible output files:
3844 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3847 for ac_file in $ac_files
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3851 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3856 if { { ac_try="$ac_link_default"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_link_default") 2>&5
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }; then :
3867 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3868 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3869 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3870 # so that the user can short-circuit this test for compilers unknown to
3872 for ac_file in $ac_files ''
3874 test -f "$ac_file" || continue
3876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3879 # We found the default executable, but exeext='' is most
3883 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3885 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3887 # We set ac_cv_exeext here because the later test for it is not
3888 # safe: cross compilers may not add the suffix if given an `-o'
3889 # argument, so we may need to know it at that point already.
3890 # Even if this section looks crufty: it has the advantage of
3897 test "$ac_cv_exeext" = no && ac_cv_exeext=
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3903 $as_echo "$ac_file" >&6; }
3904 if test -z "$ac_file"; then :
3905 $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 { as_fn_set_status 77
3911 as_fn_error "C compiler cannot create executables
3912 See \`config.log' for more details." "$LINENO" 5; }; }
3914 ac_exeext=$ac_cv_exeext
3916 # Check that the compiler produces executables we can run. If not, either
3917 # the compiler is broken, or we cross compile.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3919 $as_echo_n "checking whether the C compiler works... " >&6; }
3920 # If not cross compiling, check that we can run a simple program.
3921 if test "$cross_compiling" != yes; then
3922 if { ac_try='./$ac_file'
3923 { { case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_try") 2>&5
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; }; then
3935 if test "$cross_compiling" = maybe; then
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot run C compiled programs.
3941 If you meant to cross compile, use \`--host'.
3942 See \`config.log' for more details." "$LINENO" 5; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3950 ac_clean_files=$ac_clean_files_save
3951 # Check that the compiler produces executables we can run. If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3954 $as_echo_n "checking whether we are cross compiling... " >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3956 $as_echo "$cross_compiling" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3959 $as_echo_n "checking for suffix of executables... " >&6; }
3960 if { { ac_try="$ac_link"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_link") 2>&5
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; then :
3971 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3972 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3973 # work properly (i.e., refer to `conftest.exe'), while it won't with
3975 for ac_file in conftest.exe conftest conftest.*; do
3976 test -f "$ac_file" || continue
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error "cannot compute suffix of executables: cannot compile and link
3988 See \`config.log' for more details." "$LINENO" 5; }
3990 rm -f conftest$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3992 $as_echo "$ac_cv_exeext" >&6; }
3994 rm -f conftest.$ac_ext
3995 EXEEXT=$ac_cv_exeext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3998 $as_echo_n "checking for suffix of object files... " >&6; }
3999 if test "${ac_cv_objext+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4013 rm -f conftest.o conftest.obj
4014 if { { ac_try="$ac_compile"
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021 (eval "$ac_compile") 2>&5
4023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024 test $ac_status = 0; }; then :
4025 for ac_file in conftest.o conftest.obj conftest.*; do
4026 test -f "$ac_file" || continue;
4028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4034 $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error "cannot compute suffix of object files: cannot compile
4040 See \`config.log' for more details." "$LINENO" 5; }
4042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4045 $as_echo "$ac_cv_objext" >&6; }
4046 OBJEXT=$ac_cv_objext
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4049 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4050 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4067 if ac_fn_c_try_compile "$LINENO"; then :
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4077 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4078 if test $ac_compiler_gnu = yes; then
4083 ac_test_CFLAGS=${CFLAGS+set}
4084 ac_save_CFLAGS=$CFLAGS
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4086 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4087 if test "${ac_cv_prog_cc_g+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4090 ac_save_c_werror_flag=$ac_c_werror_flag
4091 ac_c_werror_flag=yes
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4105 if ac_fn_c_try_compile "$LINENO"; then :
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4120 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_c_werror_flag=$ac_save_c_werror_flag
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4136 if ac_fn_c_try_compile "$LINENO"; then :
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_c_werror_flag=$ac_save_c_werror_flag
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4147 $as_echo "$ac_cv_prog_cc_g" >&6; }
4148 if test "$ac_test_CFLAGS" = set; then
4149 CFLAGS=$ac_save_CFLAGS
4150 elif test $ac_cv_prog_cc_g = yes; then
4151 if test "$GCC" = yes; then
4157 if test "$GCC" = yes; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4164 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4165 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4168 ac_cv_prog_cc_c89=no
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4174 #include <sys/types.h>
4175 #include <sys/stat.h>
4176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4177 struct buf { int x; };
4178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4179 static char *e (p, i)
4185 static char *f (char * (*g) (char **, int), char **p, ...)
4190 s = g (p, va_arg (v,int));
4195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4196 function prototypes and stuff, but not '\xHH' hex character constants.
4197 These don't provoke an error unfortunately, instead are silently treated
4198 as 'x'. The following induces an error, until -std is added to get
4199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4200 array size at least. It's necessary to write '\x00'==0 to get something
4201 that's true only with -std. */
4202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4205 inside strings and character constants. */
4207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4209 int test (int i, double x);
4210 struct s1 {int (*f) (int a);};
4211 struct s2 {int (*f) (double a);};
4212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4226 CC="$ac_save_CC $ac_arg"
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_prog_cc_c89=$ac_arg
4230 rm -f core conftest.err conftest.$ac_objext
4231 test "x$ac_cv_prog_cc_c89" != "xno" && break
4233 rm -f conftest.$ac_ext
4238 case "x$ac_cv_prog_cc_c89" in
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 $as_echo "none needed" >&6; } ;;
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4244 $as_echo "unsupported" >&6; } ;;
4246 CC="$CC $ac_cv_prog_cc_c89"
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4250 if test "x$ac_cv_prog_cc_c89" != xno; then :
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 if test "x$CC" != xcc; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4262 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4265 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4267 set dummy $CC; ac_cc=`$as_echo "$2" |
4268 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4269 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4270 $as_echo_n "(cached) " >&6
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4283 # Make sure it works both with $CC and with simple cc.
4284 # We do the test twice because some compilers refuse to overwrite an
4285 # existing .o file with -o, though they will create one.
4286 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4288 if { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; } &&
4298 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_try") 2>&5
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; };
4309 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4310 if test "x$CC" != xcc; then
4311 # Test first that cc exists at all.
4312 if { ac_try='cc -c conftest.$ac_ext >&5'
4313 { { case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_try") 2>&5
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; }; then
4323 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4325 if { { case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_try") 2>&5
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; } &&
4335 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_try") 2>&5
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; };
4349 # cc exists but doesn't like -o.
4350 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4355 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4357 rm -f core conftest*
4360 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362 $as_echo "yes" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4367 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4371 # expand $ac_aux_dir to an absolute path
4372 am_aux_dir=`cd $ac_aux_dir && pwd`
4374 # FIXME: we rely on the cache variable name because
4375 # there is no other way.
4377 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4378 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4379 if test "$am_t" != yes; then
4380 # Losing compiler, so override with the script.
4381 # FIXME: It is wrong to rewrite CC.
4382 # But if we don't then we get into trouble of one sort or another.
4383 # A longer-term fix would be to have automake use am__CC in this case,
4384 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4385 CC="$am_aux_dir/compile $CC"
4390 ac_cpp='$CXXCPP $CPPFLAGS'
4391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4394 if test -z "$CXX"; then
4395 if test -n "$CCC"; then
4398 if test -n "$ac_tool_prefix"; then
4399 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if test "${ac_cv_prog_CXX+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4408 if test -n "$CXX"; then
4409 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 if test -n "$CXX"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4431 $as_echo "$CXX" >&6; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4438 test -n "$CXX" && break
4441 if test -z "$CXX"; then
4443 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4445 # Extract the first word of "$ac_prog", so it can be a program name with args.
4446 set dummy $ac_prog; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4452 if test -n "$ac_ct_CXX"; then
4453 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_ac_ct_CXX="$ac_prog"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4473 if test -n "$ac_ct_CXX"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4475 $as_echo "$ac_ct_CXX" >&6; }
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4482 test -n "$ac_ct_CXX" && break
4485 if test "x$ac_ct_CXX" = x; then
4488 case $cross_compiling:$ac_tool_warned in
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4492 ac_tool_warned=yes ;;
4500 # Provide some information about the compiler.
4501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4504 for ac_option in --version -v -V -qversion; do
4505 { { ac_try="$ac_compiler $ac_option >&5"
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4514 if test -s conftest.err; then
4516 ... rest of stderr output deleted ...
4517 10q' conftest.err >conftest.er1
4518 cat conftest.er1 >&5
4519 rm -f conftest.er1 conftest.err
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4526 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4527 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4544 if ac_fn_cxx_try_compile "$LINENO"; then :
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4554 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4555 if test $ac_compiler_gnu = yes; then
4560 ac_test_CXXFLAGS=${CXXFLAGS+set}
4561 ac_save_CXXFLAGS=$CXXFLAGS
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4563 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4564 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4568 ac_cxx_werror_flag=yes
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4582 if ac_fn_cxx_try_compile "$LINENO"; then :
4583 ac_cv_prog_cxx_g=yes
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4597 if ac_fn_cxx_try_compile "$LINENO"; then :
4600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4613 if ac_fn_cxx_try_compile "$LINENO"; then :
4614 ac_cv_prog_cxx_g=yes
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4624 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4625 if test "$ac_test_CXXFLAGS" = set; then
4626 CXXFLAGS=$ac_save_CXXFLAGS
4627 elif test $ac_cv_prog_cxx_g = yes; then
4628 if test "$GXX" = yes; then
4634 if test "$GXX" = yes; then
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649 if test -n "$ac_tool_prefix"; then
4650 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4651 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4657 if test -n "$GNATBIND"; then
4658 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 GNATBIND=$ac_cv_prog_GNATBIND
4678 if test -n "$GNATBIND"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4680 $as_echo "$GNATBIND" >&6; }
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4688 if test -z "$ac_cv_prog_GNATBIND"; then
4689 ac_ct_GNATBIND=$GNATBIND
4690 # Extract the first word of "gnatbind", so it can be a program name with args.
4691 set dummy gnatbind; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -n "$ac_ct_GNATBIND"; then
4698 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4718 if test -n "$ac_ct_GNATBIND"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4720 $as_echo "$ac_ct_GNATBIND" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4726 if test "x$ac_ct_GNATBIND" = x; then
4729 case $cross_compiling:$ac_tool_warned in
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4735 GNATBIND=$ac_ct_GNATBIND
4738 GNATBIND="$ac_cv_prog_GNATBIND"
4741 if test -n "$ac_tool_prefix"; then
4742 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
4749 if test -n "$GNATMAKE"; then
4750 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 GNATMAKE=$ac_cv_prog_GNATMAKE
4770 if test -n "$GNATMAKE"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4772 $as_echo "$GNATMAKE" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4780 if test -z "$ac_cv_prog_GNATMAKE"; then
4781 ac_ct_GNATMAKE=$GNATMAKE
4782 # Extract the first word of "gnatmake", so it can be a program name with args.
4783 set dummy gnatmake; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$ac_ct_GNATMAKE"; then
4790 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4810 if test -n "$ac_ct_GNATMAKE"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4812 $as_echo "$ac_ct_GNATMAKE" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4818 if test "x$ac_ct_GNATMAKE" = x; then
4821 case $cross_compiling:$ac_tool_warned in
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4827 GNATMAKE=$ac_ct_GNATMAKE
4830 GNATMAKE="$ac_cv_prog_GNATMAKE"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4834 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4835 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4838 cat >conftest.adb <<EOF
4839 procedure conftest is begin null; end conftest;
4841 acx_cv_cc_gcc_supports_ada=no
4842 # There is a bug in old released versions of GCC which causes the
4843 # driver to exit successfully when the appropriate language module
4844 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4845 # Therefore we must check for the error message as well as an
4846 # unsuccessful exit.
4847 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4848 # given a .adb file, but produce no object file. So we must check
4849 # if an object file was really produced to guard against this.
4850 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4851 if test x"$errors" = x && test -f conftest.$ac_objext; then
4852 acx_cv_cc_gcc_supports_ada=yes
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4857 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4859 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4866 # autoconf is lame and doesn't give us any substitution variable for this.
4867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4868 NO_MINUS_C_MINUS_O=yes
4870 OUTPUT_OPTION='-o $@'
4875 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4876 # optimizations to be activated explicitly by the toplevel.
4878 */prev-gcc/xgcc*) ;;
4879 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4883 # Determine PICFLAG for target gnatlib.
4889 # PIC is the default on some targets or must not be used.
4891 # PIC is the default on this platform
4892 # Common symbols not allowed in MH_DYLIB files
4893 PICFLAG_FOR_TARGET=-fno-common
4896 # PIC is the default.
4899 # PIC is the default for 64-bit PA HP-UX.
4901 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4903 i[34567]86-*-interix3*)
4904 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4905 # Instead, we relocate shared libraries at runtime.
4907 i[34567]86-*-nto-qnx*)
4908 # QNX uses GNU C++, but need to define -shared option too, otherwise
4910 PICFLAG_FOR_TARGET='-fPIC -shared'
4912 i[34567]86-pc-msdosdjgpp*)
4913 # DJGPP does not support shared libraries at all.
4916 # On IA64 HP-UX, PIC is the default but the pic flag
4917 # sets the default TLS model and affects inlining.
4918 PICFLAG_FOR_TARGET=-fPIC
4921 # PIC is the default.
4923 rs6000-ibm-aix* | powerpc-ibm-aix*)
4924 # All AIX code is PIC.
4927 # Some targets support both -fPIC and -fpic, but prefer the latter.
4929 i[34567]86-*-* | x86_64-*-*)
4930 PICFLAG_FOR_TARGET=-fpic
4933 PICFLAG_FOR_TARGET=-fpic
4936 PICFLAG_FOR_TARGET=-fpic
4938 # FIXME: Override -fPIC default in libgcc only?
4939 sh-*-linux* | sh[2346lbe]*-*-linux*)
4940 PICFLAG_FOR_TARGET=-fpic
4942 # FIXME: Simplify to sh*-*-netbsd*?
4943 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4944 sh64-*-netbsd* | sh64l*-*-netbsd*)
4945 PICFLAG_FOR_TARGET=-fpic
4947 # Default to -fPIC unless specified otherwise.
4949 PICFLAG_FOR_TARGET=-fPIC
4953 # If the user explicitly uses -fpic/-fPIC, keep that.
4954 case "${CFLAGS_FOR_TARGET}" in
4956 PICFLAG_FOR_TARGET=-fpic
4959 PICFLAG_FOR_TARGET=-fPIC
4965 # -------------------------
4966 # Check C compiler features
4967 # -------------------------
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4977 # On Suns, sometimes $CPP names a directory.
4978 if test -n "$CPP" && test -d "$CPP"; then
4981 if test -z "$CPP"; then
4982 if test "${ac_cv_prog_CPP+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4985 # Double quotes because CPP needs to be expanded
4986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4989 for ac_c_preproc_warn_flag in '' yes
4991 # Use a header file that comes with gcc, so configuring glibc
4992 # with a fresh cross-compiler works.
4993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994 # <limits.h> exists even on freestanding compilers.
4995 # On the NeXT, cc -E runs the code through the compiler's parser,
4996 # not just through cpp. "Syntax error" is here to catch this case.
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5000 # include <limits.h>
5002 # include <assert.h>
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5009 # Broken: fails on valid input.
5012 rm -f conftest.err conftest.$ac_ext
5014 # OK, works on sane cases. Now check whether nonexistent headers
5015 # can be detected and how.
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #include <ac_nonexistent.h>
5020 if ac_fn_c_try_cpp "$LINENO"; then :
5021 # Broken: success on invalid input.
5024 # Passes both tests.
5028 rm -f conftest.err conftest.$ac_ext
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.$ac_ext
5033 if $ac_preproc_ok; then :
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5046 $as_echo "$CPP" >&6; }
5048 for ac_c_preproc_warn_flag in '' yes
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5059 # include <limits.h>
5061 # include <assert.h>
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5068 # Broken: fails on valid input.
5071 rm -f conftest.err conftest.$ac_ext
5073 # OK, works on sane cases. Now check whether nonexistent headers
5074 # can be detected and how.
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <ac_nonexistent.h>
5079 if ac_fn_c_try_cpp "$LINENO"; then :
5080 # Broken: success on invalid input.
5083 # Passes both tests.
5087 rm -f conftest.err conftest.$ac_ext
5090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5091 rm -f conftest.err conftest.$ac_ext
5092 if $ac_preproc_ok; then :
5095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5097 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5098 See \`config.log' for more details." "$LINENO" 5; }
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5109 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5110 if test "${ac_cv_path_GREP+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5113 if test -z "$GREP"; then
5114 ac_path_GREP_found=false
5115 # Loop through the user's path and test for each of PROGNAME-LIST
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120 test -z "$as_dir" && as_dir=.
5121 for ac_prog in grep ggrep; do
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5124 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5125 # Check for GNU ac_path_GREP and select it if it is found.
5126 # Check for GNU $ac_path_GREP
5127 case `"$ac_path_GREP" --version 2>&1` in
5129 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5132 $as_echo_n 0123456789 >"conftest.in"
5135 cat "conftest.in" "conftest.in" >"conftest.tmp"
5136 mv "conftest.tmp" "conftest.in"
5137 cp "conftest.in" "conftest.nl"
5138 $as_echo 'GREP' >> "conftest.nl"
5139 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141 as_fn_arith $ac_count + 1 && ac_count=$as_val
5142 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5143 # Best one so far, save it but keep looking for a better one
5144 ac_cv_path_GREP="$ac_path_GREP"
5145 ac_path_GREP_max=$ac_count
5147 # 10*(2^10) chars as input seems more than enough
5148 test $ac_count -gt 10 && break
5150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 $ac_path_GREP_found && break 3
5158 if test -z "$ac_cv_path_GREP"; then
5159 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 ac_cv_path_GREP=$GREP
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5167 $as_echo "$ac_cv_path_GREP" >&6; }
5168 GREP="$ac_cv_path_GREP"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5172 $as_echo_n "checking for egrep... " >&6; }
5173 if test "${ac_cv_path_EGREP+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5176 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5177 then ac_cv_path_EGREP="$GREP -E"
5179 if test -z "$EGREP"; then
5180 ac_path_EGREP_found=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186 test -z "$as_dir" && as_dir=.
5187 for ac_prog in egrep; do
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5190 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5191 # Check for GNU ac_path_EGREP and select it if it is found.
5192 # Check for GNU $ac_path_EGREP
5193 case `"$ac_path_EGREP" --version 2>&1` in
5195 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5198 $as_echo_n 0123456789 >"conftest.in"
5201 cat "conftest.in" "conftest.in" >"conftest.tmp"
5202 mv "conftest.tmp" "conftest.in"
5203 cp "conftest.in" "conftest.nl"
5204 $as_echo 'EGREP' >> "conftest.nl"
5205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207 as_fn_arith $ac_count + 1 && ac_count=$as_val
5208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209 # Best one so far, save it but keep looking for a better one
5210 ac_cv_path_EGREP="$ac_path_EGREP"
5211 ac_path_EGREP_max=$ac_count
5213 # 10*(2^10) chars as input seems more than enough
5214 test $ac_count -gt 10 && break
5216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5219 $ac_path_EGREP_found && break 3
5224 if test -z "$ac_cv_path_EGREP"; then
5225 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5228 ac_cv_path_EGREP=$EGREP
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5234 $as_echo "$ac_cv_path_EGREP" >&6; }
5235 EGREP="$ac_cv_path_EGREP"
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5239 $as_echo_n "checking for ANSI C header files... " >&6; }
5240 if test "${ac_cv_header_stdc+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_cv_header_stdc=yes
5261 ac_cv_header_stdc=no
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 if test $ac_cv_header_stdc = yes; then
5266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273 $EGREP "memchr" >/dev/null 2>&1; then :
5276 ac_cv_header_stdc=no
5282 if test $ac_cv_header_stdc = yes; then
5283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290 $EGREP "free" >/dev/null 2>&1; then :
5293 ac_cv_header_stdc=no
5299 if test $ac_cv_header_stdc = yes; then
5300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301 if test "$cross_compiling" = yes; then :
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5308 #if ((' ' & 0x0FF) == 0x020)
5309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5312 # define ISLOWER(c) \
5313 (('a' <= (c) && (c) <= 'i') \
5314 || ('j' <= (c) && (c) <= 'r') \
5315 || ('s' <= (c) && (c) <= 'z'))
5316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5324 for (i = 0; i < 256; i++)
5325 if (XOR (islower (i), ISLOWER (i))
5326 || toupper (i) != TOUPPER (i))
5331 if ac_fn_c_try_run "$LINENO"; then :
5334 ac_cv_header_stdc=no
5336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5337 conftest.$ac_objext conftest.beam conftest.$ac_ext
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5343 $as_echo "$ac_cv_header_stdc" >&6; }
5344 if test $ac_cv_header_stdc = yes; then
5346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5352 inttypes.h stdint.h unistd.h
5354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5357 eval as_val=\$$as_ac_Header
5358 if test "x$as_val" = x""yes; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5370 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5377 if test "$MINIX" = yes; then
5379 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5382 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5385 $as_echo "#define _MINIX 1" >>confdefs.h
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5391 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5392 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5398 # define __EXTENSIONS__ 1
5399 $ac_includes_default
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409 ac_cv_safe_to_define___extensions__=yes
5411 ac_cv_safe_to_define___extensions__=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5416 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5417 test $ac_cv_safe_to_define___extensions__ = yes &&
5418 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5420 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5422 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5424 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5426 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5430 ac_cpp='$CPP $CPPFLAGS'
5431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5435 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5436 # On Suns, sometimes $CPP names a directory.
5437 if test -n "$CPP" && test -d "$CPP"; then
5440 if test -z "$CPP"; then
5441 if test "${ac_cv_prog_CPP+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5444 # Double quotes because CPP needs to be expanded
5445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5448 for ac_c_preproc_warn_flag in '' yes
5450 # Use a header file that comes with gcc, so configuring glibc
5451 # with a fresh cross-compiler works.
5452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453 # <limits.h> exists even on freestanding compilers.
5454 # On the NeXT, cc -E runs the code through the compiler's parser,
5455 # not just through cpp. "Syntax error" is here to catch this case.
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5459 # include <limits.h>
5461 # include <assert.h>
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5468 # Broken: fails on valid input.
5471 rm -f conftest.err conftest.$ac_ext
5473 # OK, works on sane cases. Now check whether nonexistent headers
5474 # can be detected and how.
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 #include <ac_nonexistent.h>
5479 if ac_fn_c_try_cpp "$LINENO"; then :
5480 # Broken: success on invalid input.
5483 # Passes both tests.
5487 rm -f conftest.err conftest.$ac_ext
5490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5491 rm -f conftest.err conftest.$ac_ext
5492 if $ac_preproc_ok; then :
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5505 $as_echo "$CPP" >&6; }
5507 for ac_c_preproc_warn_flag in '' yes
5509 # Use a header file that comes with gcc, so configuring glibc
5510 # with a fresh cross-compiler works.
5511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512 # <limits.h> exists even on freestanding compilers.
5513 # On the NeXT, cc -E runs the code through the compiler's parser,
5514 # not just through cpp. "Syntax error" is here to catch this case.
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5518 # include <limits.h>
5520 # include <assert.h>
5524 if ac_fn_c_try_cpp "$LINENO"; then :
5527 # Broken: fails on valid input.
5530 rm -f conftest.err conftest.$ac_ext
5532 # OK, works on sane cases. Now check whether nonexistent headers
5533 # can be detected and how.
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <ac_nonexistent.h>
5538 if ac_fn_c_try_cpp "$LINENO"; then :
5539 # Broken: success on invalid input.
5542 # Passes both tests.
5546 rm -f conftest.err conftest.$ac_ext
5549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5550 rm -f conftest.err conftest.$ac_ext
5551 if $ac_preproc_ok; then :
5554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5556 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5557 See \`config.log' for more details." "$LINENO" 5; }
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5567 $as_echo_n "checking for inline... " >&6; }
5568 if test "${ac_cv_c_inline+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5572 for ac_kw in inline __inline__ __inline; do
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5577 static $ac_kw foo_t static_foo () {return 0; }
5578 $ac_kw foo_t foo () {return 0; }
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 ac_cv_c_inline=$ac_kw
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 test "$ac_cv_c_inline" != no && break
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5591 $as_echo "$ac_cv_c_inline" >&6; }
5593 case $ac_cv_c_inline in
5596 case $ac_cv_c_inline in
5598 *) ac_val=$ac_cv_c_inline;;
5600 cat >>confdefs.h <<_ACEOF
5602 #define inline $ac_val
5609 # Check whether --enable-largefile was given.
5610 if test "${enable_largefile+set}" = set; then :
5611 enableval=$enable_largefile;
5614 if test "$enable_largefile" != no; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5617 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5618 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 ac_cv_sys_largefile_CC=no
5622 if test "$GCC" != yes; then
5625 # IRIX 6.2 and later do not support large files by default,
5626 # so use the C compiler's -n32 option if that helps.
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #include <sys/types.h>
5630 /* Check that off_t can represent 2**63 - 1 correctly.
5631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5632 since some C++ compilers masquerading as C compilers
5633 incorrectly reject 9223372036854775807. */
5634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5636 && LARGE_OFF_T % 2147483647 == 1)
5646 if ac_fn_c_try_compile "$LINENO"; then :
5649 rm -f core conftest.err conftest.$ac_objext
5651 if ac_fn_c_try_compile "$LINENO"; then :
5652 ac_cv_sys_largefile_CC=' -n32'; break
5654 rm -f core conftest.err conftest.$ac_objext
5658 rm -f conftest.$ac_ext
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5662 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5663 if test "$ac_cv_sys_largefile_CC" != no; then
5664 CC=$CC$ac_cv_sys_largefile_CC
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5668 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5669 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <sys/types.h>
5676 /* Check that off_t can represent 2**63 - 1 correctly.
5677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5678 since some C++ compilers masquerading as C compilers
5679 incorrectly reject 9223372036854775807. */
5680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5682 && LARGE_OFF_T % 2147483647 == 1)
5692 if ac_fn_c_try_compile "$LINENO"; then :
5693 ac_cv_sys_file_offset_bits=no; break
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #define _FILE_OFFSET_BITS 64
5699 #include <sys/types.h>
5700 /* Check that off_t can represent 2**63 - 1 correctly.
5701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5702 since some C++ compilers masquerading as C compilers
5703 incorrectly reject 9223372036854775807. */
5704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5706 && LARGE_OFF_T % 2147483647 == 1)
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717 ac_cv_sys_file_offset_bits=64; break
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ac_cv_sys_file_offset_bits=unknown
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5725 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5726 case $ac_cv_sys_file_offset_bits in #(
5729 cat >>confdefs.h <<_ACEOF
5730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5735 if test $ac_cv_sys_file_offset_bits = unknown; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5737 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5738 if test "${ac_cv_sys_large_files+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 #include <sys/types.h>
5745 /* Check that off_t can represent 2**63 - 1 correctly.
5746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5747 since some C++ compilers masquerading as C compilers
5748 incorrectly reject 9223372036854775807. */
5749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5751 && LARGE_OFF_T % 2147483647 == 1)
5761 if ac_fn_c_try_compile "$LINENO"; then :
5762 ac_cv_sys_large_files=no; break
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 #define _LARGE_FILES 1
5768 #include <sys/types.h>
5769 /* Check that off_t can represent 2**63 - 1 correctly.
5770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771 since some C++ compilers masquerading as C compilers
5772 incorrectly reject 9223372036854775807. */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775 && LARGE_OFF_T % 2147483647 == 1)
5785 if ac_fn_c_try_compile "$LINENO"; then :
5786 ac_cv_sys_large_files=1; break
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 ac_cv_sys_large_files=unknown
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5794 $as_echo "$ac_cv_sys_large_files" >&6; }
5795 case $ac_cv_sys_large_files in #(
5798 cat >>confdefs.h <<_ACEOF
5799 #define _LARGE_FILES $ac_cv_sys_large_files
5808 # sizeof(char) is 1 by definition.
5809 # The cast to long int works around a bug in the HP C Compiler
5810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5812 # This bug is HP SR number 8606223364.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5814 $as_echo_n "checking size of void *... " >&6; }
5815 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5818 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5821 if test "$ac_cv_type_void_p" = yes; then
5822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5824 { as_fn_set_status 77
5825 as_fn_error "cannot compute sizeof (void *)
5826 See \`config.log' for more details." "$LINENO" 5; }; }
5828 ac_cv_sizeof_void_p=0
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5834 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5838 cat >>confdefs.h <<_ACEOF
5839 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5848 $as_echo_n "checking size of short... " >&6; }
5849 if test "${ac_cv_sizeof_short+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5855 if test "$ac_cv_type_short" = yes; then
5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 { as_fn_set_status 77
5859 as_fn_error "cannot compute sizeof (short)
5860 See \`config.log' for more details." "$LINENO" 5; }; }
5862 ac_cv_sizeof_short=0
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5868 $as_echo "$ac_cv_sizeof_short" >&6; }
5872 cat >>confdefs.h <<_ACEOF
5873 #define SIZEOF_SHORT $ac_cv_sizeof_short
5877 # The cast to long int works around a bug in the HP C Compiler
5878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5880 # This bug is HP SR number 8606223364.
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5882 $as_echo_n "checking size of int... " >&6; }
5883 if test "${ac_cv_sizeof_int+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
5886 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5889 if test "$ac_cv_type_int" = yes; then
5890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5892 { as_fn_set_status 77
5893 as_fn_error "cannot compute sizeof (int)
5894 See \`config.log' for more details." "$LINENO" 5; }; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5902 $as_echo "$ac_cv_sizeof_int" >&6; }
5906 cat >>confdefs.h <<_ACEOF
5907 #define SIZEOF_INT $ac_cv_sizeof_int
5911 # The cast to long int works around a bug in the HP C Compiler
5912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5914 # This bug is HP SR number 8606223364.
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5916 $as_echo_n "checking size of long... " >&6; }
5917 if test "${ac_cv_sizeof_long+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5923 if test "$ac_cv_type_long" = yes; then
5924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5926 { as_fn_set_status 77
5927 as_fn_error "cannot compute sizeof (long)
5928 See \`config.log' for more details." "$LINENO" 5; }; }
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5936 $as_echo "$ac_cv_sizeof_long" >&6; }
5940 cat >>confdefs.h <<_ACEOF
5941 #define SIZEOF_LONG $ac_cv_sizeof_long
5945 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5946 if test "x$ac_cv_type_long_long" = x""yes; then :
5948 cat >>confdefs.h <<_ACEOF
5949 #define HAVE_LONG_LONG 1
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5957 $as_echo_n "checking size of long long... " >&6; }
5958 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5961 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5964 if test "$ac_cv_type_long_long" = yes; then
5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status 77
5968 as_fn_error "cannot compute sizeof (long long)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5971 ac_cv_sizeof_long_long=0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5977 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5988 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5989 if test "x$ac_cv_type___int64" = x""yes; then :
5991 cat >>confdefs.h <<_ACEOF
5992 #define HAVE___INT64 1
5995 # The cast to long int works around a bug in the HP C Compiler
5996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5998 # This bug is HP SR number 8606223364.
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6000 $as_echo_n "checking size of __int64... " >&6; }
6001 if test "${ac_cv_sizeof___int64+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6004 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6007 if test "$ac_cv_type___int64" = yes; then
6008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010 { as_fn_set_status 77
6011 as_fn_error "cannot compute sizeof (__int64)
6012 See \`config.log' for more details." "$LINENO" 5; }; }
6014 ac_cv_sizeof___int64=0
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6020 $as_echo "$ac_cv_sizeof___int64" >&6; }
6024 cat >>confdefs.h <<_ACEOF
6025 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6031 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6032 case $ac_cv_c_int8_t in #(
6036 cat >>confdefs.h <<_ACEOF
6037 #define int8_t $ac_cv_c_int8_t
6042 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6043 case $ac_cv_c_int16_t in #(
6047 cat >>confdefs.h <<_ACEOF
6048 #define int16_t $ac_cv_c_int16_t
6053 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6054 case $ac_cv_c_int32_t in #(
6058 cat >>confdefs.h <<_ACEOF
6059 #define int32_t $ac_cv_c_int32_t
6064 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6065 case $ac_cv_c_int64_t in #(
6069 cat >>confdefs.h <<_ACEOF
6070 #define int64_t $ac_cv_c_int64_t
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6077 $as_echo_n "checking for long long int... " >&6; }
6078 if test "${ac_cv_type_long_long_int+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6084 /* For now, do not test the preprocessor; as of 2007 there are too many
6085 implementations with broken preprocessors. Perhaps this can
6086 be revisited in 2012. In the meantime, code should not expect
6087 #if to work with literals wider than 32 bits. */
6088 /* Test literals. */
6089 long long int ll = 9223372036854775807ll;
6090 long long int nll = -9223372036854775807LL;
6091 unsigned long long int ull = 18446744073709551615ULL;
6092 /* Test constant expressions. */
6093 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6095 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6101 /* Test availability of runtime routines for shift and division. */
6102 long long int llmax = 9223372036854775807ll;
6103 unsigned long long int ullmax = 18446744073709551615ull;
6104 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6105 | (llmax / ll) | (llmax % ll)
6106 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6107 | (ullmax / ull) | (ullmax % ull));
6113 if ac_fn_c_try_link "$LINENO"; then :
6114 if test "$cross_compiling" = yes; then :
6115 ac_cv_type_long_long_int=yes
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6122 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6123 # define LLONG_MAX (HALF - 1 + HALF)
6128 long long int n = 1;
6132 long long int m = n << i;
6135 if (LLONG_MAX / 2 < m)
6143 if ac_fn_c_try_run "$LINENO"; then :
6144 ac_cv_type_long_long_int=yes
6146 ac_cv_type_long_long_int=no
6148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6149 conftest.$ac_objext conftest.beam conftest.$ac_ext
6153 ac_cv_type_long_long_int=no
6155 rm -f core conftest.err conftest.$ac_objext \
6156 conftest$ac_exeext conftest.$ac_ext
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6159 $as_echo "$ac_cv_type_long_long_int" >&6; }
6160 if test $ac_cv_type_long_long_int = yes; then
6162 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6168 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6171 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6174 test $ac_cv_type_long_long_int = yes \
6175 && ac_type='long long int' \
6176 || ac_type='long int'
6178 cat >>confdefs.h <<_ACEOF
6179 #define intmax_t $ac_type
6186 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6189 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6192 for ac_type in 'int' 'long int' 'long long int'; do
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 $ac_includes_default
6199 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6206 if ac_fn_c_try_compile "$LINENO"; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define intptr_t $ac_type
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 test -z "$ac_type" && break
6220 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6221 case $ac_cv_c_uint8_t in #(
6225 $as_echo "#define _UINT8_T 1" >>confdefs.h
6228 cat >>confdefs.h <<_ACEOF
6229 #define uint8_t $ac_cv_c_uint8_t
6234 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6235 case $ac_cv_c_uint16_t in #(
6240 cat >>confdefs.h <<_ACEOF
6241 #define uint16_t $ac_cv_c_uint16_t
6246 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6247 case $ac_cv_c_uint32_t in #(
6251 $as_echo "#define _UINT32_T 1" >>confdefs.h
6254 cat >>confdefs.h <<_ACEOF
6255 #define uint32_t $ac_cv_c_uint32_t
6260 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6261 case $ac_cv_c_uint64_t in #(
6265 $as_echo "#define _UINT64_T 1" >>confdefs.h
6268 cat >>confdefs.h <<_ACEOF
6269 #define uint64_t $ac_cv_c_uint64_t
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6276 $as_echo_n "checking for unsigned long long int... " >&6; }
6277 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6283 /* For now, do not test the preprocessor; as of 2007 there are too many
6284 implementations with broken preprocessors. Perhaps this can
6285 be revisited in 2012. In the meantime, code should not expect
6286 #if to work with literals wider than 32 bits. */
6287 /* Test literals. */
6288 long long int ll = 9223372036854775807ll;
6289 long long int nll = -9223372036854775807LL;
6290 unsigned long long int ull = 18446744073709551615ULL;
6291 /* Test constant expressions. */
6292 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6294 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6300 /* Test availability of runtime routines for shift and division. */
6301 long long int llmax = 9223372036854775807ll;
6302 unsigned long long int ullmax = 18446744073709551615ull;
6303 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6304 | (llmax / ll) | (llmax % ll)
6305 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6306 | (ullmax / ull) | (ullmax % ull));
6312 if ac_fn_c_try_link "$LINENO"; then :
6313 ac_cv_type_unsigned_long_long_int=yes
6315 ac_cv_type_unsigned_long_long_int=no
6317 rm -f core conftest.err conftest.$ac_objext \
6318 conftest$ac_exeext conftest.$ac_ext
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6321 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6322 if test $ac_cv_type_unsigned_long_long_int = yes; then
6324 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6330 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6331 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6333 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6336 test $ac_cv_type_unsigned_long_long_int = yes \
6337 && ac_type='unsigned long long int' \
6338 || ac_type='unsigned long int'
6340 cat >>confdefs.h <<_ACEOF
6341 #define uintmax_t $ac_type
6348 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6349 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6351 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6354 for ac_type in 'unsigned int' 'unsigned long int' \
6355 'unsigned long long int'; do
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 $ac_includes_default
6362 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6369 if ac_fn_c_try_compile "$LINENO"; then :
6371 cat >>confdefs.h <<_ACEOF
6372 #define uintptr_t $ac_type
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 test -z "$ac_type" && break
6396 # ---------------------
6397 # Warnings and checking
6398 # ---------------------
6400 # Check $CC warning features (if it's GCC).
6401 # We want to use -pedantic, but we don't want warnings about
6404 # * overlong strings
6405 # So, we only use -pedantic if we can disable those warnings.
6408 save_CFLAGS="$CFLAGS"
6409 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6410 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415 $as_echo_n "(cached) " >&6
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430 eval "$as_acx_Woption=yes"
6432 eval "$as_acx_Woption=no"
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 eval ac_res=\$$as_acx_Woption
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441 loose_warn="$loose_warn${loose_warn:+ }$option"
6444 CFLAGS="$save_CFLAGS"
6447 save_CFLAGS="$CFLAGS"
6448 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6449 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6452 $as_echo_n "checking whether $CC supports $option... " >&6; }
6453 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6454 $as_echo_n "(cached) " >&6
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469 eval "$as_acx_Woption=yes"
6471 eval "$as_acx_Woption=no"
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 eval ac_res=\$$as_acx_Woption
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6478 $as_echo "$ac_res" >&6; }
6479 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6480 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6483 CFLAGS="$save_CFLAGS"
6486 save_CFLAGS="$CFLAGS"
6487 for option in -Wmissing-format-attribute; do
6488 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6491 $as_echo_n "checking whether $CC supports $option... " >&6; }
6492 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6493 $as_echo_n "(cached) " >&6
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6507 if ac_fn_c_try_compile "$LINENO"; then :
6508 eval "$as_acx_Woption=yes"
6510 eval "$as_acx_Woption=no"
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 eval ac_res=\$$as_acx_Woption
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6517 $as_echo "$ac_res" >&6; }
6518 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6519 strict_warn="$strict_warn${strict_warn:+ }$option"
6522 CFLAGS="$save_CFLAGS"
6525 save_CFLAGS="$CFLAGS"
6526 for option in -Wold-style-definition -Wc++-compat; do
6527 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6530 $as_echo_n "checking whether $CC supports $option... " >&6; }
6531 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6532 $as_echo_n "(cached) " >&6
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547 eval "$as_acx_Woption=yes"
6549 eval "$as_acx_Woption=no"
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 eval ac_res=\$$as_acx_Woption
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6556 $as_echo "$ac_res" >&6; }
6557 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6558 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6561 CFLAGS="$save_CFLAGS"
6563 if test "$GCC" = yes; then :
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6565 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6566 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6569 save_CFLAGS="$CFLAGS"
6570 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6585 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 CFLAGS="$save_CFLAGS"
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6591 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6592 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6593 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6598 # Check whether --enable-werror-always was given.
6599 if test "${enable_werror_always+set}" = set; then :
6600 enableval=$enable_werror_always;
6602 enable_werror_always=no
6605 if test $enable_werror_always = yes; then :
6606 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6611 # The above macros do nothing if the compiler is not GCC. However, the
6612 # Makefile has more goo to add other flags, so these variables are used
6613 # to enable warnings only for GCC.
6616 if test "x$GCC" = "xyes"; then
6617 warn_cflags='$(GCC_WARN_CFLAGS)'
6618 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6623 # Enable expensive internal checks
6625 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6629 # Check whether --enable-checking was given.
6630 if test "${enable_checking+set}" = set; then :
6631 enableval=$enable_checking; ac_checking_flags="${enableval}"
6634 # Determine the default checks.
6635 if test x$is_release = x ; then
6636 ac_checking_flags=yes
6638 ac_checking_flags=release
6642 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6643 for check in release $ac_checking_flags
6646 # these set all the flags to specific states
6647 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6648 ac_fold_checking= ; ac_gc_checking=1 ;
6649 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6650 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6651 ac_tree_checking=1 ; ac_valgrind_checking= ;
6652 ac_types_checking=1 ;;
6653 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6654 ac_fold_checking= ; ac_gc_checking= ;
6655 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6656 ac_rtlflag_checking= ; ac_runtime_checking= ;
6657 ac_tree_checking= ; ac_valgrind_checking= ;
6658 ac_types_checking= ;;
6659 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6660 ac_fold_checking=1 ; ac_gc_checking=1 ;
6661 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6662 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6663 ac_tree_checking=1 ; ac_valgrind_checking= ;
6664 ac_types_checking=1 ;;
6665 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6666 ac_fold_checking= ; ac_gc_checking= ;
6667 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6668 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6669 ac_tree_checking= ; ac_valgrind_checking= ;
6670 ac_types_checking= ;;
6671 # these enable particular checks
6672 assert) ac_assert_checking=1 ;;
6673 df) ac_df_checking=1 ;;
6674 fold) ac_fold_checking=1 ;;
6675 gc) ac_gc_checking=1 ;;
6676 gcac) ac_gc_always_collect=1 ;;
6677 gimple) ac_gimple_checking=1 ;;
6678 misc) ac_checking=1 ;;
6679 rtl) ac_rtl_checking=1 ;;
6680 rtlflag) ac_rtlflag_checking=1 ;;
6681 runtime) ac_runtime_checking=1 ;;
6682 tree) ac_tree_checking=1 ;;
6683 types) ac_types_checking=1 ;;
6684 valgrind) ac_valgrind_checking=1 ;;
6685 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6691 if test x$ac_checking != x ; then
6693 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6695 nocommon_flag=-fno-common
6698 if test x$ac_df_checking != x ; then
6700 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6703 if test x$ac_assert_checking != x ; then
6705 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6708 if test x$ac_gimple_checking != x ; then
6710 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6714 if test x$ac_runtime_checking != x ; then
6716 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6719 if test x$ac_tree_checking != x ; then
6721 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6723 TREEBROWSER=tree-browser.o
6725 if test x$ac_types_checking != x ; then
6727 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6731 if test x$ac_rtl_checking != x ; then
6733 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6736 if test x$ac_rtlflag_checking != x ; then
6738 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6741 if test x$ac_gc_checking != x ; then
6743 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6746 if test x$ac_gc_always_collect != x ; then
6748 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6751 if test x$ac_fold_checking != x ; then
6753 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6756 valgrind_path_defines=
6759 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6760 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6768 if test x$ac_valgrind_checking != x ; then
6769 # It is certainly possible that there's valgrind but no valgrind.h.
6770 # GCC relies on making annotations so we must have both.
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6772 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6775 #include <valgrind/memcheck.h>
6776 #ifndef VALGRIND_DISCARD
6777 #error VALGRIND_DISCARD not defined
6780 if ac_fn_c_try_cpp "$LINENO"; then :
6781 gcc_cv_header_valgrind_memcheck_h=yes
6783 gcc_cv_header_valgrind_memcheck_h=no
6785 rm -f conftest.err conftest.$ac_ext
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6787 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6789 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792 #include <memcheck.h>
6793 #ifndef VALGRIND_DISCARD
6794 #error VALGRIND_DISCARD not defined
6797 if ac_fn_c_try_cpp "$LINENO"; then :
6798 gcc_cv_header_memcheck_h=yes
6800 gcc_cv_header_memcheck_h=no
6802 rm -f conftest.err conftest.$ac_ext
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6804 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6806 # Prepare PATH_SEPARATOR.
6807 # The user is always right.
6808 if test "${PATH_SEPARATOR+set}" != set; then
6809 echo "#! /bin/sh" >conf$$.sh
6810 echo "exit 0" >>conf$$.sh
6812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6820 # Find out how to test for executable files. Don't use a zero-byte file,
6821 # as systems may use methods other than mode bits to determine executability.
6822 cat >conf$$.file <<_ASEOF
6826 chmod +x conf$$.file
6827 if test -x conf$$.file >/dev/null 2>&1; then
6828 ac_executable_p="test -x"
6830 ac_executable_p="test -f"
6834 # Extract the first word of "valgrind", so it can be a program name with args.
6835 set dummy valgrind; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6841 case "$valgrind_path" in
6843 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6847 for ac_dir in $PATH; do
6849 test -z "$ac_dir" && ac_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6852 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6853 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6863 valgrind_path="$ac_cv_path_valgrind_path"
6864 if test -n "$valgrind_path"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6866 $as_echo "$valgrind_path" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6872 if test "x$valgrind_path" = "x" \
6873 || (test $have_valgrind_h = no \
6874 && test $gcc_cv_header_memcheck_h = no \
6875 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6876 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6878 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6879 valgrind_command="$valgrind_path -q"
6881 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6883 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6885 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6888 if test $gcc_cv_header_memcheck_h = yes; then
6890 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6897 # Enable code coverage collection
6898 # Check whether --enable-coverage was given.
6899 if test "${enable_coverage+set}" = set; then :
6900 enableval=$enable_coverage; case "${enableval}" in
6902 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6905 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6908 # a.k.a. --disable-coverage
6912 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6921 # Check whether --enable-gather-detailed-mem-stats was given.
6922 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6923 enableval=$enable_gather_detailed_mem_stats;
6925 enable_gather_detailed_mem_stats=no
6928 if test x$enable_gather_detailed_mem_stats = xyes ; then
6930 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6934 # -------------------------------
6935 # Miscenalleous configure options
6936 # -------------------------------
6938 # See if we are building gcc with C++.
6939 # Check whether --enable-build-with-cxx was given.
6940 if test "${enable_build_with_cxx+set}" = set; then :
6941 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6943 ENABLE_BUILD_WITH_CXX=no
6947 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6949 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6955 # Check whether --with-stabs was given.
6956 if test "${with_stabs+set}" = set; then :
6957 withval=$with_stabs; stabs="$with_stabs"
6963 # Determine whether or not multilibs are enabled.
6964 # Check whether --enable-multilib was given.
6965 if test "${enable_multilib+set}" = set; then :
6966 enableval=$enable_multilib;
6973 # Enable __cxa_atexit for C++.
6974 # Check whether --enable-__cxa_atexit was given.
6975 if test "${enable___cxa_atexit+set}" = set; then :
6976 enableval=$enable___cxa_atexit;
6980 # Enable C extension for decimal float if target supports it.
6982 # Check whether --enable-decimal-float was given.
6983 if test "${enable_decimal_float+set}" = set; then :
6984 enableval=$enable_decimal_float;
6985 case $enable_decimal_float in
6986 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6987 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6988 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6994 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6995 i?86*-*-mingw* | x86_64*-*-mingw* | \
6997 enable_decimal_float=yes
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7001 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7002 enable_decimal_float=no
7009 # x86's use BID format instead of DPD
7010 case x$enable_decimal_float in
7013 i?86*-*-* | x86_64*-*-*)
7014 enable_decimal_float=bid
7017 enable_decimal_float=dpd
7020 default_decimal_float=$enable_decimal_float
7023 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7024 # dependency on libdecnumber.
7025 default_decimal_float=dpd
7032 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7034 cat >>confdefs.h <<_ACEOF
7035 #define ENABLE_DECIMAL_FLOAT $dfp
7039 # Use default_decimal_float for dependency.
7040 enable_decimal_float=$default_decimal_float
7042 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7044 cat >>confdefs.h <<_ACEOF
7045 #define ENABLE_DECIMAL_BID_FORMAT $bid
7049 # Enable C extension for fixed-point arithmetic.
7050 # Check whether --enable-fixed-point was given.
7051 if test "${enable_fixed_point+set}" = set; then :
7052 enableval=$enable_fixed_point;
7057 enable_fixed_point=yes
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7064 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7065 enable_fixed_point=no
7068 enable_fixed_point=yes
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7074 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7075 enable_fixed_point=no
7083 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7085 cat >>confdefs.h <<_ACEOF
7086 #define ENABLE_FIXED_POINT $fixedpoint
7091 # Pass with no value to take the default
7092 # Pass with a value to specify a thread package
7093 # Check whether --enable-threads was given.
7094 if test "${enable_threads+set}" = set; then :
7095 enableval=$enable_threads;
7101 # Check whether --enable-tls was given.
7102 if test "${enable_tls+set}" = set; then :
7103 enableval=$enable_tls;
7106 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7107 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7115 # Check whether --enable-objc-gc was given.
7116 if test "${enable_objc_gc+set}" = set; then :
7117 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7128 # Check whether --with-dwarf2 was given.
7129 if test "${with_dwarf2+set}" = set; then :
7130 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7136 # Check whether --enable-shared was given.
7137 if test "${enable_shared+set}" = set; then :
7138 enableval=$enable_shared;
7139 case $enable_shared in
7143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7144 for pkg in $enableval; do
7145 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7160 # Check whether --with-native-system-header-dir was given.
7161 if test "${with_native_system_header_dir+set}" = set; then :
7162 withval=$with_native_system_header_dir;
7163 case ${with_native_system_header_dir} in
7164 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7165 /* | [A-Za-z]:[\\/]*) ;;
7166 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7168 configured_native_system_header_dir="${withval}"
7171 configured_native_system_header_dir=
7176 # Check whether --with-build-sysroot was given.
7177 if test "${with_build_sysroot+set}" = set; then :
7178 withval=$with_build_sysroot; if test x"$withval" != x ; then
7179 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7182 SYSROOT_CFLAGS_FOR_TARGET=
7188 # Check whether --with-sysroot was given.
7189 if test "${with_sysroot+set}" = set; then :
7190 withval=$with_sysroot;
7191 case ${with_sysroot} in
7192 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7193 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7196 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7197 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7199 if test "x$prefix" = xNONE; then
7200 test_prefix=/usr/local
7204 if test "x$exec_prefix" = xNONE; then
7205 test_exec_prefix=$test_prefix
7207 test_exec_prefix=$exec_prefix
7209 case ${TARGET_SYSTEM_ROOT} in
7210 "${test_prefix}"|"${test_prefix}/"*|\
7211 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7212 '${prefix}'|'${prefix}/'*|\
7213 '${exec_prefix}'|'${exec_prefix}/'*)
7214 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7215 TARGET_SYSTEM_ROOT_DEFINE="$t"
7222 TARGET_SYSTEM_ROOT_DEFINE=
7223 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7232 # Check whether --with-specs was given.
7233 if test "${with_specs+set}" = set; then :
7234 withval=$with_specs; CONFIGURE_SPECS=$withval
7244 # Check whether --with-pkgversion was given.
7245 if test "${with_pkgversion+set}" = set; then :
7246 withval=$with_pkgversion; case "$withval" in
7247 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7249 *) PKGVERSION="($withval) " ;;
7260 # Check whether --with-bugurl was given.
7261 if test "${with_bugurl+set}" = set; then :
7262 withval=$with_bugurl; case "$withval" in
7263 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7266 *) BUGURL="$withval"
7270 BUGURL="http://gcc.gnu.org/bugs.html"
7280 REPORT_BUGS_TO="<$BUGURL>"
7281 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7288 # Sanity check enable_languages in case someone does not run the toplevel
7289 # configure # script.
7290 # Check whether --enable-languages was given.
7291 if test "${enable_languages+set}" = set; then :
7292 enableval=$enable_languages; case ,${enable_languages}, in
7294 # go safe -- we cannot be much sure without the toplevel
7296 # analysis of which target libs are present and usable
7300 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7305 enable_languages=c,${enable_languages}
7314 # Check whether --with-multilib-list was given.
7315 if test "${with_multilib_list+set}" = set; then :
7316 withval=$with_multilib_list; :
7318 with_multilib_list=default
7322 # -------------------------
7323 # Checks for other programs
7324 # -------------------------
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7329 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7331 $as_echo_n "(cached) " >&6
7333 cat >conftest.make <<\_ACEOF
7336 @echo '@@@%%%=$(MAKE)=@@@%%%'
7338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7341 eval ac_cv_prog_make_${ac_make}_set=yes;;
7343 eval ac_cv_prog_make_${ac_make}_set=no;;
7347 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 SET_MAKE="MAKE=${MAKE-make}"
7358 # Find some useful tools
7359 for ac_prog in gawk mawk nawk awk
7361 # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy $ac_prog; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_AWK+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7368 if test -n "$AWK"; then
7369 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_AWK="$ac_prog"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 if test -n "$AWK"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7391 $as_echo "$AWK" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7398 test -n "$AWK" && break
7401 # We need awk to create options.c and options.h.
7402 # Bail out if it's missing.
7404 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7408 $as_echo_n "checking whether ln -s works... " >&6; }
7409 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7412 rm -f conftestdata_t
7413 echo >conftestdata_f
7414 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7416 gcc_cv_prog_LN_S="ln -s"
7418 if ln conftestdata_f conftestdata_t 2>/dev/null
7422 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7424 gcc_cv_prog_LN_S="cp -p"
7430 rm -f conftestdata_f conftestdata_t
7433 LN_S="$gcc_cv_prog_LN_S"
7434 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436 $as_echo "yes" >&6; }
7438 if test "$gcc_cv_prog_LN_S" = "ln"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7440 $as_echo "no, using ln" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7443 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7448 $as_echo_n "checking whether ln works... " >&6; }
7449 if test "${acx_cv_prog_LN+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7452 rm -f conftestdata_t
7453 echo >conftestdata_f
7454 if ln conftestdata_f conftestdata_t 2>/dev/null
7460 rm -f conftestdata_f conftestdata_t
7463 if test $acx_cv_prog_LN = no; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7466 $as_echo "no, using $LN" >&6; }
7468 LN="$acx_cv_prog_LN"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7470 $as_echo "yes" >&6; }
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$RANLIB"; then
7482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 RANLIB=$ac_cv_prog_RANLIB
7502 if test -n "$RANLIB"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7504 $as_echo "$RANLIB" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7512 if test -z "$ac_cv_prog_RANLIB"; then
7513 ac_ct_RANLIB=$RANLIB
7514 # Extract the first word of "ranlib", so it can be a program name with args.
7515 set dummy ranlib; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$ac_ct_RANLIB"; then
7522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_ac_ct_RANLIB="ranlib"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7542 if test -n "$ac_ct_RANLIB"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7544 $as_echo "$ac_ct_RANLIB" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7550 if test "x$ac_ct_RANLIB" = x; then
7553 case $cross_compiling:$ac_tool_warned in
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7559 RANLIB=$ac_ct_RANLIB
7562 RANLIB="$ac_cv_prog_RANLIB"
7567 # By default, the Darwin ranlib will not treat common symbols as
7568 # definitions when building the archive table of contents. Other
7569 # ranlibs do that; pass an option to the Darwin ranlib that makes
7570 # it behave similarly.
7578 # Find a good install program. We prefer a C program (faster),
7579 # so one script is as good as another. But avoid the broken or
7580 # incompatible versions:
7581 # SysV /etc/install, /usr/sbin/install
7582 # SunOS /usr/etc/install
7583 # IRIX /sbin/install
7585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7587 # ./install, which can be erroneously created by make from ./install.sh.
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7589 $as_echo_n "checking for a BSD compatible install... " >&6; }
7590 if test -z "$INSTALL"; then
7591 if test "${ac_cv_path_install+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7594 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7595 for ac_dir in $PATH; do
7596 # Account for people who put trailing slashes in PATH elements.
7598 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7600 # OSF1 and SCO ODT 3.0 have their own names for install.
7601 for ac_prog in ginstall scoinst install; do
7602 if test -f $ac_dir/$ac_prog; then
7603 if test $ac_prog = install &&
7604 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7605 # AIX install. It has an incompatible calling convention.
7606 # OSF/1 installbsd also uses dspmsg, but is usable.
7609 ac_cv_path_install="$ac_dir/$ac_prog -c"
7620 if test "${ac_cv_path_install+set}" = set; then
7621 INSTALL="$ac_cv_path_install"
7623 # As a last resort, use the slow shell script. We don't cache a
7624 # path for INSTALL within a source directory, because that will
7625 # break other packages using the cache if that directory is
7626 # removed, or if the path is relative.
7627 INSTALL="$ac_install_sh"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7631 $as_echo "$INSTALL" >&6; }
7633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7634 # It thinks the first close brace ends the variable substitution.
7635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7640 # See if cmp has --ignore-initial.
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7642 $as_echo_n "checking for cmp's capabilities... " >&6; }
7643 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7648 gcc_cv_prog_cmp_skip=slowcompare
7649 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7650 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7653 gcc_cv_prog_cmp_skip=gnucompare
7656 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7657 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7658 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7661 gcc_cv_prog_cmp_skip=fastcompare
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7669 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7670 make_compare_target=$gcc_cv_prog_cmp_skip
7674 # See if we have the mktemp command.
7675 # Extract the first word of "mktemp", so it can be a program name with args.
7676 set dummy mktemp; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
7682 if test -n "$have_mktemp_command"; then
7683 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_prog_have_mktemp_command="yes"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7703 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7704 if test -n "$have_mktemp_command"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7706 $as_echo "$have_mktemp_command" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7714 # See if makeinfo has been installed and is modern enough
7715 # that we can use it.
7717 # Extract the first word of "makeinfo", so it can be a program name with args.
7718 set dummy makeinfo; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7724 if test -n "$MAKEINFO"; then
7725 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_MAKEINFO="makeinfo"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 MAKEINFO=$ac_cv_prog_MAKEINFO
7745 if test -n "$MAKEINFO"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7747 $as_echo "$MAKEINFO" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7754 if test -n "$MAKEINFO"; then
7755 # Found it, now check the version.
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7757 $as_echo_n "checking for modern makeinfo... " >&6; }
7758 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7761 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7762 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7764 case $ac_prog_version in
7765 '') gcc_cv_prog_makeinfo_modern=no;;
7766 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7767 *) gcc_cv_prog_makeinfo_modern=no;;
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7772 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7774 gcc_cv_prog_makeinfo_modern=no
7776 if test $gcc_cv_prog_makeinfo_modern = no; then
7777 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7780 if test $gcc_cv_prog_makeinfo_modern = no; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7782 *** Makeinfo is missing or too old.
7783 *** Info documentation will not be built." >&5
7784 $as_echo "$as_me: WARNING:
7785 *** Makeinfo is missing or too old.
7786 *** Info documentation will not be built." >&2;}
7793 # Is pod2man recent enough to regenerate manpages?
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7795 $as_echo_n "checking for recent Pod::Man... " >&6; }
7796 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7798 $as_echo "yes" >&6; }
7799 GENERATED_MANPAGES=generated-manpages
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7807 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_FLEX+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7819 if test -n "$FLEX"; then
7820 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829 ac_cv_prog_FLEX="$ac_prog"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 FLEX=$ac_cv_prog_FLEX
7840 if test -n "$FLEX"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7842 $as_echo "$FLEX" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7849 test -n "$FLEX" && break
7851 test -n "$FLEX" || FLEX="$MISSING flex"
7855 for ac_prog in bison
7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_BISON+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 if test -n "$BISON"; then
7865 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_BISON="$ac_prog"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 BISON=$ac_cv_prog_BISON
7885 if test -n "$BISON"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7887 $as_echo "$BISON" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7894 test -n "$BISON" && break
7896 test -n "$BISON" || BISON="$MISSING bison"
7899 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7900 # check for build == host before using them.
7903 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7904 && test -d ../binutils ; then
7905 NM='${objdir}/../binutils/nm-new'
7907 # Extract the first word of "nm", so it can be a program name with args.
7908 set dummy nm; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if test "${ac_cv_prog_NM+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7914 if test -n "$NM"; then
7915 ac_cv_prog_NM="$NM" # Let the user override the test.
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7936 if test -n "$NM"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7938 $as_echo "$NM" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7948 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7949 && test -d ../binutils ; then
7950 AR='${objdir}/../binutils/ar'
7952 # Extract the first word of "ar", so it can be a program name with args.
7953 set dummy ar; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if test "${ac_cv_prog_AR+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7959 if test -n "$AR"; then
7960 ac_cv_prog_AR="$AR" # Let the user override the test.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7981 if test -n "$AR"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7983 $as_echo "$AR" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7993 # --------------------
7994 # Checks for C headers
7995 # --------------------
7997 # Need to reject headers which give warnings, so that the -Werror bootstrap
7998 # works later. *sigh* This needs to come before all header checks.
8000 ac_c_preproc_warn_flag=yes
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8003 $as_echo_n "checking for ANSI C header files... " >&6; }
8004 if test "${ac_cv_header_stdc+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023 ac_cv_header_stdc=yes
8025 ac_cv_header_stdc=no
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 if test $ac_cv_header_stdc = yes; then
8030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8037 $EGREP "memchr" >/dev/null 2>&1; then :
8040 ac_cv_header_stdc=no
8046 if test $ac_cv_header_stdc = yes; then
8047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8054 $EGREP "free" >/dev/null 2>&1; then :
8057 ac_cv_header_stdc=no
8063 if test $ac_cv_header_stdc = yes; then
8064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8065 if test "$cross_compiling" = yes; then :
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8072 #if ((' ' & 0x0FF) == 0x020)
8073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8076 # define ISLOWER(c) \
8077 (('a' <= (c) && (c) <= 'i') \
8078 || ('j' <= (c) && (c) <= 'r') \
8079 || ('s' <= (c) && (c) <= 'z'))
8080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8088 for (i = 0; i < 256; i++)
8089 if (XOR (islower (i), ISLOWER (i))
8090 || toupper (i) != TOUPPER (i))
8095 if ac_fn_c_try_run "$LINENO"; then :
8098 ac_cv_header_stdc=no
8100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8101 conftest.$ac_objext conftest.beam conftest.$ac_ext
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8107 $as_echo "$ac_cv_header_stdc" >&6; }
8108 if test $ac_cv_header_stdc = yes; then
8110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8115 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8116 if test "${ac_cv_header_time+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 #include <sys/types.h>
8122 #include <sys/time.h>
8128 if ((struct tm *) 0)
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 ac_cv_header_time=yes
8137 ac_cv_header_time=no
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8142 $as_echo "$ac_cv_header_time" >&6; }
8143 if test $ac_cv_header_time = yes; then
8145 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8150 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8151 if test "${gcc_cv_header_string+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8157 #include <strings.h>
8166 if ac_fn_c_try_compile "$LINENO"; then :
8167 gcc_cv_header_string=yes
8169 gcc_cv_header_string=no
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8174 $as_echo "$gcc_cv_header_string" >&6; }
8175 if test $gcc_cv_header_string = yes; then
8177 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8182 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8183 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8188 #include <sys/types.h>
8189 #include <sys/wait.h>
8191 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8194 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8202 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208 ac_cv_header_sys_wait_h=yes
8210 ac_cv_header_sys_wait_h=no
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8215 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8216 if test $ac_cv_header_sys_wait_h = yes; then
8218 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8222 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8223 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8224 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8225 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8228 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8229 eval as_val=\$$as_ac_Header
8230 if test "x$as_val" = x""yes; then :
8231 cat >>confdefs.h <<_ACEOF
8232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8239 # Check for thread headers.
8240 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8241 if test "x$ac_cv_header_thread_h" = x""yes; then :
8247 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8248 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8255 # These tests can't be done till we know if we have limits.h.
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8257 $as_echo_n "checking for CHAR_BIT... " >&6; }
8258 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 #ifdef HAVE_LIMITS_H
8270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8271 $EGREP "found" >/dev/null 2>&1; then :
8272 gcc_cv_decl_char_bit=yes
8274 gcc_cv_decl_char_bit=no
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8281 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8282 if test $gcc_cv_decl_char_bit = no; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8284 $as_echo_n "checking number of bits in a byte... " >&6; }
8285 if test "${gcc_cv_c_nbby+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
8290 while test $i -lt 65; do
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8298 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8299 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8305 if ac_fn_c_try_compile "$LINENO"; then :
8306 gcc_cv_c_nbby=$i; break
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8315 $as_echo "$gcc_cv_c_nbby" >&6; }
8316 if test $gcc_cv_c_nbby = failed; then
8317 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8320 cat >>confdefs.h <<_ACEOF
8321 #define CHAR_BIT $gcc_cv_c_nbby
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8327 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8328 if test "${ac_cv_c_bigendian+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8331 ac_cv_c_bigendian=unknown
8332 # See if we're dealing with a universal compiler.
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335 #ifndef __APPLE_CC__
8336 not a universal capable compiler
8341 if ac_fn_c_try_compile "$LINENO"; then :
8343 # Check for potential -arch flags. It is not universal unless
8344 # there are at least two -arch flags with different values.
8347 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8348 if test -n "$ac_prev"; then
8350 i?86 | x86_64 | ppc | ppc64)
8351 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8354 ac_cv_c_bigendian=universal
8360 elif test "x$ac_word" = "x-arch"; then
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 if test $ac_cv_c_bigendian = unknown; then
8367 # See if sys/param.h defines the BYTE_ORDER macro.
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 #include <sys/types.h>
8371 #include <sys/param.h>
8376 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8377 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8386 if ac_fn_c_try_compile "$LINENO"; then :
8387 # It does; now see whether it defined to BIG_ENDIAN or not.
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <sys/types.h>
8391 #include <sys/param.h>
8396 #if BYTE_ORDER != BIG_ENDIAN
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405 ac_cv_c_bigendian=yes
8407 ac_cv_c_bigendian=no
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8413 if test $ac_cv_c_bigendian = unknown; then
8414 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8422 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8430 if ac_fn_c_try_compile "$LINENO"; then :
8431 # It does; now see whether it defined to _BIG_ENDIAN or not.
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8447 if ac_fn_c_try_compile "$LINENO"; then :
8448 ac_cv_c_bigendian=yes
8450 ac_cv_c_bigendian=no
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 if test $ac_cv_c_bigendian = unknown; then
8457 # Compile a test program.
8458 if test "$cross_compiling" = yes; then :
8459 # Try to guess by grepping values from an object file.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 short int ascii_mm[] =
8463 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8464 short int ascii_ii[] =
8465 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8466 int use_ascii (int i) {
8467 return ascii_mm[i] + ascii_ii[i];
8469 short int ebcdic_ii[] =
8470 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8471 short int ebcdic_mm[] =
8472 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8473 int use_ebcdic (int i) {
8474 return ebcdic_mm[i] + ebcdic_ii[i];
8481 return use_ascii (foo) == use_ebcdic (foo);
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8488 ac_cv_c_bigendian=yes
8490 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8491 if test "$ac_cv_c_bigendian" = unknown; then
8492 ac_cv_c_bigendian=no
8494 # finding both strings is unlikely to happen, but who knows?
8495 ac_cv_c_bigendian=unknown
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8503 $ac_includes_default
8508 /* Are we little or big endian? From Harbison&Steele. */
8512 char c[sizeof (long int)];
8515 return u.c[sizeof (long int) - 1] == 1;
8521 if ac_fn_c_try_run "$LINENO"; then :
8522 ac_cv_c_bigendian=no
8524 ac_cv_c_bigendian=yes
8526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8527 conftest.$ac_objext conftest.beam conftest.$ac_ext
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8533 $as_echo "$ac_cv_c_bigendian" >&6; }
8534 case $ac_cv_c_bigendian in #(
8536 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8542 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8546 as_fn_error "unknown endianness
8547 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8551 # ----------------------
8552 # Checks for C++ headers
8553 # ----------------------
8556 ac_cpp='$CXXCPP $CPPFLAGS'
8557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8561 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8562 if test -z "$CXXCPP"; then
8563 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8566 # Double quotes because CXXCPP needs to be expanded
8567 for CXXCPP in "$CXX -E" "/lib/cpp"
8570 for ac_cxx_preproc_warn_flag in '' yes
8572 # Use a header file that comes with gcc, so configuring glibc
8573 # with a fresh cross-compiler works.
8574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8575 # <limits.h> exists even on freestanding compilers.
8576 # On the NeXT, cc -E runs the code through the compiler's parser,
8577 # not just through cpp. "Syntax error" is here to catch this case.
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8581 # include <limits.h>
8583 # include <assert.h>
8587 if ac_fn_cxx_try_cpp "$LINENO"; then :
8590 # Broken: fails on valid input.
8593 rm -f conftest.err conftest.$ac_ext
8595 # OK, works on sane cases. Now check whether nonexistent headers
8596 # can be detected and how.
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 #include <ac_nonexistent.h>
8601 if ac_fn_cxx_try_cpp "$LINENO"; then :
8602 # Broken: success on invalid input.
8605 # Passes both tests.
8609 rm -f conftest.err conftest.$ac_ext
8612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8613 rm -f conftest.err conftest.$ac_ext
8614 if $ac_preproc_ok; then :
8619 ac_cv_prog_CXXCPP=$CXXCPP
8622 CXXCPP=$ac_cv_prog_CXXCPP
8624 ac_cv_prog_CXXCPP=$CXXCPP
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8627 $as_echo "$CXXCPP" >&6; }
8629 for ac_cxx_preproc_warn_flag in '' yes
8631 # Use a header file that comes with gcc, so configuring glibc
8632 # with a fresh cross-compiler works.
8633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8634 # <limits.h> exists even on freestanding compilers.
8635 # On the NeXT, cc -E runs the code through the compiler's parser,
8636 # not just through cpp. "Syntax error" is here to catch this case.
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8640 # include <limits.h>
8642 # include <assert.h>
8646 if ac_fn_cxx_try_cpp "$LINENO"; then :
8649 # Broken: fails on valid input.
8652 rm -f conftest.err conftest.$ac_ext
8654 # OK, works on sane cases. Now check whether nonexistent headers
8655 # can be detected and how.
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658 #include <ac_nonexistent.h>
8660 if ac_fn_cxx_try_cpp "$LINENO"; then :
8661 # Broken: success on invalid input.
8664 # Passes both tests.
8668 rm -f conftest.err conftest.$ac_ext
8671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8672 rm -f conftest.err conftest.$ac_ext
8673 if $ac_preproc_ok; then :
8676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8679 See \`config.log' for more details." >&5
8680 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8681 See \`config.log' for more details." >&2;}; }
8685 ac_cpp='$CPP $CPPFLAGS'
8686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8692 ac_cpp='$CXXCPP $CPPFLAGS'
8693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8700 for ac_header in unordered_map
8702 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8703 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8704 cat >>confdefs.h <<_ACEOF
8705 #define HAVE_UNORDERED_MAP 1
8711 for ac_header in tr1/unordered_map
8713 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8714 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8715 cat >>confdefs.h <<_ACEOF
8716 #define HAVE_TR1_UNORDERED_MAP 1
8722 for ac_header in ext/hash_map
8724 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8725 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_EXT_HASH_MAP 1
8735 ac_cpp='$CPP $CPPFLAGS'
8736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8746 # These libraries may be used by collect2.
8747 # We may need a special search path to get them linked.
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8749 $as_echo_n "checking for collect2 libraries... " >&6; }
8750 if test "${gcc_cv_collect2_libs+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
8754 for libs in '' -lld -lmld \
8755 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8756 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8762 /* Override any GCC internal prototype to avoid an error.
8763 Use char because int might match the return type of a GCC
8764 builtin and then its argument prototype would still apply. */
8777 if ac_fn_c_try_link "$LINENO"; then :
8778 gcc_cv_collect2_libs="$libs"; break
8780 rm -f core conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8784 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8787 $as_echo "$gcc_cv_collect2_libs" >&6; }
8788 case $gcc_cv_collect2_libs in
8790 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8794 # When building Ada code on Alpha, we need exc_resume which is usually in
8795 # -lexc. So test for it.
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8799 $as_echo_n "checking for library containing exc_resume... " >&6; }
8800 if test "${ac_cv_search_exc_resume+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8803 ac_func_search_save_LIBS=$LIBS
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8807 /* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
8817 return exc_resume ();
8822 for ac_lib in '' exc; do
8823 if test -z "$ac_lib"; then
8824 ac_res="none required"
8827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8829 if ac_fn_c_try_link "$LINENO"; then :
8830 ac_cv_search_exc_resume=$ac_res
8832 rm -f core conftest.err conftest.$ac_objext \
8834 if test "${ac_cv_search_exc_resume+set}" = set; then :
8838 if test "${ac_cv_search_exc_resume+set}" = set; then :
8841 ac_cv_search_exc_resume=no
8844 LIBS=$ac_func_search_save_LIBS
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8847 $as_echo "$ac_cv_search_exc_resume" >&6; }
8848 ac_res=$ac_cv_search_exc_resume
8849 if test "$ac_res" != no; then :
8850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8858 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8862 $as_echo_n "checking for library containing kstat_open... " >&6; }
8863 if test "${ac_cv_search_kstat_open+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8866 ac_func_search_save_LIBS=$LIBS
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8870 /* Override any GCC internal prototype to avoid an error.
8871 Use char because int might match the return type of a GCC
8872 builtin and then its argument prototype would still apply. */
8880 return kstat_open ();
8885 for ac_lib in '' kstat; do
8886 if test -z "$ac_lib"; then
8887 ac_res="none required"
8890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8892 if ac_fn_c_try_link "$LINENO"; then :
8893 ac_cv_search_kstat_open=$ac_res
8895 rm -f core conftest.err conftest.$ac_objext \
8897 if test "${ac_cv_search_kstat_open+set}" = set; then :
8901 if test "${ac_cv_search_kstat_open+set}" = set; then :
8904 ac_cv_search_kstat_open=no
8907 LIBS=$ac_func_search_save_LIBS
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8910 $as_echo "$ac_cv_search_kstat_open" >&6; }
8911 ac_res=$ac_cv_search_kstat_open
8912 if test "$ac_res" != no; then :
8913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8917 EXTRA_GCC_LIBS="$LIBS"
8921 # Some systems put ldexp and frexp in libm instead of libc; assume
8922 # they're both in the same place. jcf-dump needs them.
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8926 $as_echo_n "checking for library containing ldexp... " >&6; }
8927 if test "${ac_cv_search_ldexp+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8930 ac_func_search_save_LIBS=$LIBS
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8949 for ac_lib in '' m; do
8950 if test -z "$ac_lib"; then
8951 ac_res="none required"
8954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8956 if ac_fn_c_try_link "$LINENO"; then :
8957 ac_cv_search_ldexp=$ac_res
8959 rm -f core conftest.err conftest.$ac_objext \
8961 if test "${ac_cv_search_ldexp+set}" = set; then :
8965 if test "${ac_cv_search_ldexp+set}" = set; then :
8968 ac_cv_search_ldexp=no
8971 LIBS=$ac_func_search_save_LIBS
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8974 $as_echo "$ac_cv_search_ldexp" >&6; }
8975 ac_res=$ac_cv_search_ldexp
8976 if test "$ac_res" != no; then :
8977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985 # Use <inttypes.h> only if it exists,
8986 # doesn't clash with <sys/types.h>, and declares intmax_t.
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8988 $as_echo_n "checking for inttypes.h... " >&6; }
8989 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8990 $as_echo_n "(cached) " >&6
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 #include <sys/types.h>
8995 #include <inttypes.h>
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005 gcc_cv_header_inttypes_h=yes
9007 gcc_cv_header_inttypes_h=no
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9013 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9014 if test $gcc_cv_header_inttypes_h = yes; then
9016 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9022 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9023 sysconf strsignal getrusage nl_langinfo \
9024 gettimeofday mbstowcs wcswidth mmap setlocale \
9025 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9029 eval as_val=\$$as_ac_var
9030 if test "x$as_val" = x""yes; then :
9031 cat >>confdefs.h <<_ACEOF
9032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9039 if test x$ac_cv_func_mbstowcs = xyes; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9041 $as_echo_n "checking whether mbstowcs works... " >&6; }
9042 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9045 if test "$cross_compiling" = yes; then :
9046 gcc_cv_func_mbstowcs_works=yes
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9057 if ac_fn_c_try_run "$LINENO"; then :
9058 gcc_cv_func_mbstowcs_works=yes
9060 gcc_cv_func_mbstowcs_works=no
9062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9063 conftest.$ac_objext conftest.beam conftest.$ac_ext
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9068 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9069 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9071 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9076 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9077 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9081 cat >>confdefs.h <<_ACEOF
9087 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9088 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9092 cat >>confdefs.h <<_ACEOF
9093 #define caddr_t char *
9100 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9101 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9102 gcc_header_sys_mman_h=yes
9104 gcc_header_sys_mman_h=no
9107 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9108 if test "x$ac_cv_func_mmap" = x""yes; then :
9114 if test "$gcc_header_sys_mman_h" != yes \
9115 || test "$gcc_func_mmap" != yes; then
9116 gcc_cv_func_mmap_file=no
9117 gcc_cv_func_mmap_dev_zero=no
9118 gcc_cv_func_mmap_anon=no
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9121 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9122 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9125 # Add a system to this blacklist if
9126 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9127 # memory area containing the same data that you'd get if you applied
9128 # read() to the same fd. The only system known to have a problem here
9129 # is VMS, where text files have record structure.
9132 gcc_cv_func_mmap_file=no ;;
9134 gcc_cv_func_mmap_file=yes;;
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9138 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9140 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9141 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9144 # Add a system to this blacklist if it has mmap() but /dev/zero
9145 # does not exist, or if mmapping /dev/zero does not give anonymous
9146 # zeroed pages with both the following properties:
9147 # 1. If you map N consecutive pages in with one call, and then
9148 # unmap any subset of those pages, the pages that were not
9149 # explicitly unmapped remain accessible.
9150 # 2. If you map two adjacent blocks of memory and then unmap them
9151 # both at once, they must both go away.
9152 # Systems known to be in this category are Windows (all variants),
9155 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9156 gcc_cv_func_mmap_dev_zero=no ;;
9158 gcc_cv_func_mmap_dev_zero=yes;;
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9162 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9164 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9166 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9167 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9173 #include <sys/mman.h>
9176 #ifndef MAP_ANONYMOUS
9177 #define MAP_ANONYMOUS MAP_ANON
9183 int n = MAP_ANONYMOUS;
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189 gcc_cv_decl_map_anon=yes
9191 gcc_cv_decl_map_anon=no
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9196 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9198 if test $gcc_cv_decl_map_anon = no; then
9199 gcc_cv_func_mmap_anon=no
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9202 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9203 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9206 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9207 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9208 # doesn't give anonymous zeroed pages with the same properties listed
9209 # above for use of /dev/zero.
9210 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9212 vms* | cygwin* | pe | mingw* | sco* | udk* )
9213 gcc_cv_func_mmap_anon=no ;;
9215 gcc_cv_func_mmap_anon=yes;;
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9219 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9223 if test $gcc_cv_func_mmap_file = yes; then
9225 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9228 if test $gcc_cv_func_mmap_dev_zero = yes; then
9230 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9233 if test $gcc_cv_func_mmap_anon = yes; then
9235 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9242 # Under VMS, vfork works very differently than on Unix. The standard test
9243 # won't work, and it isn't easily adaptable. It makes more sense to
9245 ac_cv_func_vfork_works=yes
9248 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9249 if test "x$ac_cv_type_pid_t" = x""yes; then :
9253 cat >>confdefs.h <<_ACEOF
9259 for ac_header in vfork.h
9261 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9262 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9263 cat >>confdefs.h <<_ACEOF
9264 #define HAVE_VFORK_H 1
9270 for ac_func in fork vfork
9272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9274 eval as_val=\$$as_ac_var
9275 if test "x$as_val" = x""yes; then :
9276 cat >>confdefs.h <<_ACEOF
9277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9283 if test "x$ac_cv_func_fork" = xyes; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9285 $as_echo_n "checking for working fork... " >&6; }
9286 if test "${ac_cv_func_fork_works+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9289 if test "$cross_compiling" = yes; then :
9290 ac_cv_func_fork_works=cross
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 $ac_includes_default
9299 /* By Ruediger Kuhlmann. */
9306 if ac_fn_c_try_run "$LINENO"; then :
9307 ac_cv_func_fork_works=yes
9309 ac_cv_func_fork_works=no
9311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9312 conftest.$ac_objext conftest.beam conftest.$ac_ext
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9317 $as_echo "$ac_cv_func_fork_works" >&6; }
9320 ac_cv_func_fork_works=$ac_cv_func_fork
9322 if test "x$ac_cv_func_fork_works" = xcross; then
9324 *-*-amigaos* | *-*-msdosdjgpp*)
9325 # Override, as these systems have only a dummy fork() stub
9326 ac_cv_func_fork_works=no
9329 ac_cv_func_fork_works=yes
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9333 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9335 ac_cv_func_vfork_works=$ac_cv_func_vfork
9336 if test "x$ac_cv_func_vfork" = xyes; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9338 $as_echo_n "checking for working vfork... " >&6; }
9339 if test "${ac_cv_func_vfork_works+set}" = set; then :
9340 $as_echo_n "(cached) " >&6
9342 if test "$cross_compiling" = yes; then :
9343 ac_cv_func_vfork_works=cross
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 /* Thanks to Paul Eggert for this test. */
9348 $ac_includes_default
9349 #include <sys/wait.h>
9353 /* On some sparc systems, changes by the child to local and incoming
9354 argument registers are propagated back to the parent. The compiler
9355 is told about this with #include <vfork.h>, but some compilers
9356 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9357 static variable whose address is put into a register that is
9358 clobbered by the vfork. */
9361 sparc_address_test (int arg)
9363 sparc_address_test (arg) int arg;
9384 pid_t parent = getpid ();
9387 sparc_address_test (0);
9392 /* Here is another test for sparc vfork register problems. This
9393 test uses lots of local variables, at least as many local
9394 variables as main has allocated so far including compiler
9395 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9396 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9397 reuse the register of parent for one of the local variables,
9398 since it will think that parent can't possibly be used any more
9399 in this routine. Assigning to the local variable will thus
9400 munge parent in the parent process. */
9402 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9403 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9404 /* Convince the compiler that p..p7 are live; otherwise, it might
9405 use the same hardware register for all 8 local variables. */
9406 if (p != p1 || p != p2 || p != p3 || p != p4
9407 || p != p5 || p != p6 || p != p7)
9410 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9411 from child file descriptors. If the child closes a descriptor
9412 before it execs or exits, this munges the parent's descriptor
9413 as well. Test for this by closing stdout in the child. */
9414 _exit(close(fileno(stdout)) != 0);
9419 while (wait(&status) != child)
9422 /* Was there some problem with vforking? */
9425 /* Did the child fail? (This shouldn't happen.) */
9428 /* Did the vfork/compiler bug occur? */
9429 || parent != getpid()
9431 /* Did the file descriptor bug occur? */
9432 || fstat(fileno(stdout), &st) != 0
9437 if ac_fn_c_try_run "$LINENO"; then :
9438 ac_cv_func_vfork_works=yes
9440 ac_cv_func_vfork_works=no
9442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9443 conftest.$ac_objext conftest.beam conftest.$ac_ext
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9448 $as_echo "$ac_cv_func_vfork_works" >&6; }
9451 if test "x$ac_cv_func_fork_works" = xcross; then
9452 ac_cv_func_vfork_works=$ac_cv_func_vfork
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9454 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9457 if test "x$ac_cv_func_vfork_works" = xyes; then
9459 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9463 $as_echo "#define vfork fork" >>confdefs.h
9466 if test "x$ac_cv_func_fork_works" = xyes; then
9468 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9473 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9474 # iconv() prototype.
9476 if test "X$prefix" = "XNONE"; then
9477 acl_final_prefix="$ac_default_prefix"
9479 acl_final_prefix="$prefix"
9481 if test "X$exec_prefix" = "XNONE"; then
9482 acl_final_exec_prefix='${prefix}'
9484 acl_final_exec_prefix="$exec_prefix"
9486 acl_save_prefix="$prefix"
9487 prefix="$acl_final_prefix"
9488 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9489 prefix="$acl_save_prefix"
9492 # Check whether --with-gnu-ld was given.
9493 if test "${with_gnu_ld+set}" = set; then :
9494 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9499 # Prepare PATH_SEPARATOR.
9500 # The user is always right.
9501 if test "${PATH_SEPARATOR+set}" != set; then
9502 echo "#! /bin/sh" >conf$$.sh
9503 echo "exit 0" >>conf$$.sh
9505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9513 if test "$GCC" = yes; then
9514 # Check if gcc -print-prog-name=ld gives a path.
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9516 $as_echo_n "checking for ld used by GCC... " >&6; }
9519 # gcc leaves a trailing carriage return which upsets mingw
9520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9525 # Accept absolute paths.
9526 [\\/]* | [A-Za-z]:[\\/]*)
9527 re_direlt='/[^/][^/]*/\.\./'
9528 # Canonicalize the path of ld
9529 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9530 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9531 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9533 test -z "$LD" && LD="$ac_prog"
9536 # If it fails, then pretend we aren't using GCC.
9540 # If it is relative, then search for the first ld in PATH.
9544 elif test "$with_gnu_ld" = yes; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9546 $as_echo_n "checking for GNU ld... " >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9549 $as_echo_n "checking for non-GNU ld... " >&6; }
9551 if test "${acl_cv_path_LD+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9554 if test -z "$LD"; then
9555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9556 for ac_dir in $PATH; do
9557 test -z "$ac_dir" && ac_dir=.
9558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9559 acl_cv_path_LD="$ac_dir/$ac_prog"
9560 # Check to see if the program is GNU ld. I'd rather use --version,
9561 # but apparently some GNU ld's only accept -v.
9562 # Break only if it was the GNU/non-GNU ld that we prefer.
9563 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9564 test "$with_gnu_ld" != no && break
9566 test "$with_gnu_ld" != yes && break
9572 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9576 LD="$acl_cv_path_LD"
9577 if test -n "$LD"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9579 $as_echo "$LD" >&6; }
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9584 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9586 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9587 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9590 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9591 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9592 acl_cv_prog_gnu_ld=yes
9594 acl_cv_prog_gnu_ld=no
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9598 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9599 with_gnu_ld=$acl_cv_prog_gnu_ld
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9604 $as_echo_n "checking for shared library run path origin... " >&6; }
9605 if test "${acl_cv_rpath+set}" = set; then :
9606 $as_echo_n "(cached) " >&6
9609 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9610 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9617 $as_echo "$acl_cv_rpath" >&6; }
9619 libext="$acl_cv_libext"
9620 shlibext="$acl_cv_shlibext"
9621 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9622 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9623 hardcode_direct="$acl_cv_hardcode_direct"
9624 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9625 # Check whether --enable-rpath was given.
9626 if test "${enable_rpath+set}" = set; then :
9627 enableval=$enable_rpath; :
9641 acl_save_prefix="$prefix"
9642 prefix="$acl_final_prefix"
9643 acl_save_exec_prefix="$exec_prefix"
9644 exec_prefix="$acl_final_exec_prefix"
9646 eval additional_includedir=\"$includedir\"
9647 eval additional_libdir=\"$libdir\"
9649 exec_prefix="$acl_save_exec_prefix"
9650 prefix="$acl_save_prefix"
9653 # Check whether --with-libiconv-prefix was given.
9654 if test "${with_libiconv_prefix+set}" = set; then :
9655 withval=$with_libiconv_prefix;
9656 if test "X$withval" = "Xno"; then
9659 if test "X$withval" = "X"; then
9661 acl_save_prefix="$prefix"
9662 prefix="$acl_final_prefix"
9663 acl_save_exec_prefix="$exec_prefix"
9664 exec_prefix="$acl_final_exec_prefix"
9666 eval additional_includedir=\"$includedir\"
9667 eval additional_libdir=\"$libdir\"
9669 exec_prefix="$acl_save_exec_prefix"
9670 prefix="$acl_save_prefix"
9673 additional_includedir="$withval/include"
9674 additional_libdir="$withval/lib"
9685 names_already_handled=
9686 names_next_round='iconv '
9687 while test -n "$names_next_round"; do
9688 names_this_round="$names_next_round"
9690 for name in $names_this_round; do
9692 for n in $names_already_handled; do
9693 if test "$n" = "$name"; then
9698 if test -z "$already_handled"; then
9699 names_already_handled="$names_already_handled $name"
9700 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9701 eval value=\"\$HAVE_LIB$uppername\"
9702 if test -n "$value"; then
9703 if test "$value" = yes; then
9704 eval value=\"\$LIB$uppername\"
9705 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9706 eval value=\"\$LTLIB$uppername\"
9707 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9716 if test $use_additional = yes; then
9717 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9718 found_dir="$additional_libdir"
9719 found_so="$additional_libdir/lib$name.$shlibext"
9720 if test -f "$additional_libdir/lib$name.la"; then
9721 found_la="$additional_libdir/lib$name.la"
9724 if test -f "$additional_libdir/lib$name.$libext"; then
9725 found_dir="$additional_libdir"
9726 found_a="$additional_libdir/lib$name.$libext"
9727 if test -f "$additional_libdir/lib$name.la"; then
9728 found_la="$additional_libdir/lib$name.la"
9733 if test "X$found_dir" = "X"; then
9734 for x in $LDFLAGS $LTLIBICONV; do
9736 acl_save_prefix="$prefix"
9737 prefix="$acl_final_prefix"
9738 acl_save_exec_prefix="$exec_prefix"
9739 exec_prefix="$acl_final_exec_prefix"
9741 exec_prefix="$acl_save_exec_prefix"
9742 prefix="$acl_save_prefix"
9746 dir=`echo "X$x" | sed -e 's/^X-L//'`
9747 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9749 found_so="$dir/lib$name.$shlibext"
9750 if test -f "$dir/lib$name.la"; then
9751 found_la="$dir/lib$name.la"
9754 if test -f "$dir/lib$name.$libext"; then
9756 found_a="$dir/lib$name.$libext"
9757 if test -f "$dir/lib$name.la"; then
9758 found_la="$dir/lib$name.la"
9764 if test "X$found_dir" != "X"; then
9769 if test "X$found_dir" != "X"; then
9770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9771 if test "X$found_so" != "X"; then
9772 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9776 for x in $ltrpathdirs; do
9777 if test "X$x" = "X$found_dir"; then
9782 if test -z "$haveit"; then
9783 ltrpathdirs="$ltrpathdirs $found_dir"
9785 if test "$hardcode_direct" = yes; then
9786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9788 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9791 for x in $rpathdirs; do
9792 if test "X$x" = "X$found_dir"; then
9797 if test -z "$haveit"; then
9798 rpathdirs="$rpathdirs $found_dir"
9802 for x in $LDFLAGS $LIBICONV; do
9804 acl_save_prefix="$prefix"
9805 prefix="$acl_final_prefix"
9806 acl_save_exec_prefix="$exec_prefix"
9807 exec_prefix="$acl_final_exec_prefix"
9809 exec_prefix="$acl_save_exec_prefix"
9810 prefix="$acl_save_prefix"
9812 if test "X$x" = "X-L$found_dir"; then
9817 if test -z "$haveit"; then
9818 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9820 if test "$hardcode_minus_L" != no; then
9821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9829 if test "X$found_a" != "X"; then
9830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9835 additional_includedir=
9836 case "$found_dir" in
9838 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9839 additional_includedir="$basedir/include"
9842 if test "X$additional_includedir" != "X"; then
9843 if test "X$additional_includedir" != "X/usr/include"; then
9845 if test "X$additional_includedir" = "X/usr/local/include"; then
9846 if test -n "$GCC"; then
9848 linux*) haveit=yes;;
9852 if test -z "$haveit"; then
9853 for x in $CPPFLAGS $INCICONV; do
9855 acl_save_prefix="$prefix"
9856 prefix="$acl_final_prefix"
9857 acl_save_exec_prefix="$exec_prefix"
9858 exec_prefix="$acl_final_exec_prefix"
9860 exec_prefix="$acl_save_exec_prefix"
9861 prefix="$acl_save_prefix"
9863 if test "X$x" = "X-I$additional_includedir"; then
9868 if test -z "$haveit"; then
9869 if test -d "$additional_includedir"; then
9870 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9876 if test -n "$found_la"; then
9877 save_libdir="$libdir"
9879 */* | *\\*) . "$found_la" ;;
9880 *) . "./$found_la" ;;
9882 libdir="$save_libdir"
9883 for dep in $dependency_libs; do
9886 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9887 if test "X$additional_libdir" != "X/usr/lib"; then
9889 if test "X$additional_libdir" = "X/usr/local/lib"; then
9890 if test -n "$GCC"; then
9892 linux*) haveit=yes;;
9896 if test -z "$haveit"; then
9898 for x in $LDFLAGS $LIBICONV; do
9900 acl_save_prefix="$prefix"
9901 prefix="$acl_final_prefix"
9902 acl_save_exec_prefix="$exec_prefix"
9903 exec_prefix="$acl_final_exec_prefix"
9905 exec_prefix="$acl_save_exec_prefix"
9906 prefix="$acl_save_prefix"
9908 if test "X$x" = "X-L$additional_libdir"; then
9913 if test -z "$haveit"; then
9914 if test -d "$additional_libdir"; then
9915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9919 for x in $LDFLAGS $LTLIBICONV; do
9921 acl_save_prefix="$prefix"
9922 prefix="$acl_final_prefix"
9923 acl_save_exec_prefix="$exec_prefix"
9924 exec_prefix="$acl_final_exec_prefix"
9926 exec_prefix="$acl_save_exec_prefix"
9927 prefix="$acl_save_prefix"
9929 if test "X$x" = "X-L$additional_libdir"; then
9934 if test -z "$haveit"; then
9935 if test -d "$additional_libdir"; then
9936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9943 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9944 if test "$enable_rpath" != no; then
9946 for x in $rpathdirs; do
9947 if test "X$x" = "X$dir"; then
9952 if test -z "$haveit"; then
9953 rpathdirs="$rpathdirs $dir"
9956 for x in $ltrpathdirs; do
9957 if test "X$x" = "X$dir"; then
9962 if test -z "$haveit"; then
9963 ltrpathdirs="$ltrpathdirs $dir"
9968 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9971 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9974 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9981 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9988 if test "X$rpathdirs" != "X"; then
9989 if test -n "$hardcode_libdir_separator"; then
9991 for found_dir in $rpathdirs; do
9992 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9994 acl_save_libdir="$libdir"
9996 eval flag=\"$hardcode_libdir_flag_spec\"
9997 libdir="$acl_save_libdir"
9998 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10000 for found_dir in $rpathdirs; do
10001 acl_save_libdir="$libdir"
10002 libdir="$found_dir"
10003 eval flag=\"$hardcode_libdir_flag_spec\"
10004 libdir="$acl_save_libdir"
10005 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10009 if test "X$ltrpathdirs" != "X"; then
10010 for found_dir in $ltrpathdirs; do
10011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10016 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10018 ac_cpp='$CXXCPP $CPPFLAGS'
10019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10028 am_save_CPPFLAGS="$CPPFLAGS"
10030 for element in $INCICONV; do
10032 for x in $CPPFLAGS; do
10034 acl_save_prefix="$prefix"
10035 prefix="$acl_final_prefix"
10036 acl_save_exec_prefix="$exec_prefix"
10037 exec_prefix="$acl_final_exec_prefix"
10039 exec_prefix="$acl_save_exec_prefix"
10040 prefix="$acl_save_prefix"
10042 if test "X$x" = "X$element"; then
10047 if test -z "$haveit"; then
10048 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10054 $as_echo_n "checking for iconv... " >&6; }
10055 if test "${am_cv_func_iconv+set}" = set; then :
10056 $as_echo_n "(cached) " >&6
10059 am_cv_func_iconv="no, consider installing GNU libiconv"
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 #include <stdlib.h>
10068 iconv_t cd = iconv_open("","");
10069 iconv(cd,NULL,NULL,NULL,NULL);
10075 if ac_fn_cxx_try_link "$LINENO"; then :
10076 am_cv_func_iconv=yes
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 if test "$am_cv_func_iconv" != yes; then
10081 am_save_LIBS="$LIBS"
10082 LIBS="$LIBS $LIBICONV"
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 #include <stdlib.h>
10090 iconv_t cd = iconv_open("","");
10091 iconv(cd,NULL,NULL,NULL,NULL);
10097 if ac_fn_cxx_try_link "$LINENO"; then :
10098 am_cv_lib_iconv=yes
10099 am_cv_func_iconv=yes
10101 rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103 LIBS="$am_save_LIBS"
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10108 $as_echo "$am_cv_func_iconv" >&6; }
10109 if test "$am_cv_func_iconv" = yes; then
10111 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10114 if test "$am_cv_lib_iconv" = yes; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10116 $as_echo_n "checking how to link with libiconv... " >&6; }
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10118 $as_echo "$LIBICONV" >&6; }
10120 CPPFLAGS="$am_save_CPPFLAGS"
10127 if test "$am_cv_func_iconv" = yes; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10129 $as_echo_n "checking for iconv declaration... " >&6; }
10130 if test "${am_cv_proto_iconv+set}" = set; then :
10131 $as_echo_n "(cached) " >&6
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10137 #include <stdlib.h>
10143 #if defined(__STDC__) || defined(__cplusplus)
10144 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10157 if ac_fn_cxx_try_compile "$LINENO"; then :
10158 am_cv_proto_iconv_arg1=""
10160 am_cv_proto_iconv_arg1="const"
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10166 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10168 }$am_cv_proto_iconv" >&5
10170 }$am_cv_proto_iconv" >&6; }
10172 cat >>confdefs.h <<_ACEOF
10173 #define ICONV_CONST $am_cv_proto_iconv_arg1
10179 ac_cpp='$CPP $CPPFLAGS'
10180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10190 am_save_CPPFLAGS="$CPPFLAGS"
10192 for element in $INCICONV; do
10194 for x in $CPPFLAGS; do
10196 acl_save_prefix="$prefix"
10197 prefix="$acl_final_prefix"
10198 acl_save_exec_prefix="$exec_prefix"
10199 exec_prefix="$acl_final_exec_prefix"
10201 exec_prefix="$acl_save_exec_prefix"
10202 prefix="$acl_save_prefix"
10204 if test "X$x" = "X$element"; then
10209 if test -z "$haveit"; then
10210 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10216 $as_echo_n "checking for iconv... " >&6; }
10217 if test "${am_cv_func_iconv+set}" = set; then :
10218 $as_echo_n "(cached) " >&6
10221 am_cv_func_iconv="no, consider installing GNU libiconv"
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 #include <stdlib.h>
10230 iconv_t cd = iconv_open("","");
10231 iconv(cd,NULL,NULL,NULL,NULL);
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 am_cv_func_iconv=yes
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 if test "$am_cv_func_iconv" != yes; then
10243 am_save_LIBS="$LIBS"
10244 LIBS="$LIBS $LIBICONV"
10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h. */
10247 #include <stdlib.h>
10252 iconv_t cd = iconv_open("","");
10253 iconv(cd,NULL,NULL,NULL,NULL);
10259 if ac_fn_c_try_link "$LINENO"; then :
10260 am_cv_lib_iconv=yes
10261 am_cv_func_iconv=yes
10263 rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS="$am_save_LIBS"
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10270 $as_echo "$am_cv_func_iconv" >&6; }
10271 if test "$am_cv_func_iconv" = yes; then
10273 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10276 if test "$am_cv_lib_iconv" = yes; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10278 $as_echo_n "checking how to link with libiconv... " >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10280 $as_echo "$LIBICONV" >&6; }
10282 CPPFLAGS="$am_save_CPPFLAGS"
10289 if test "$am_cv_func_iconv" = yes; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10291 $as_echo_n "checking for iconv declaration... " >&6; }
10292 if test "${am_cv_proto_iconv+set}" = set; then :
10293 $as_echo_n "(cached) " >&6
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10299 #include <stdlib.h>
10305 #if defined(__STDC__) || defined(__cplusplus)
10306 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10319 if ac_fn_c_try_compile "$LINENO"; then :
10320 am_cv_proto_iconv_arg1=""
10322 am_cv_proto_iconv_arg1="const"
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10328 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10330 }$am_cv_proto_iconv" >&5
10332 }$am_cv_proto_iconv" >&6; }
10334 cat >>confdefs.h <<_ACEOF
10335 #define ICONV_CONST $am_cv_proto_iconv_arg1
10342 # Until we have in-tree GNU iconv:
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10348 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10349 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354 #include <locale.h>
10363 if ac_fn_c_try_link "$LINENO"; then :
10364 am_cv_val_LC_MESSAGES=yes
10366 am_cv_val_LC_MESSAGES=no
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10372 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10373 if test $am_cv_val_LC_MESSAGES = yes; then
10375 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10382 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10383 if test "${am_cv_langinfo_codeset+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 #include <langinfo.h>
10392 char* cs = nl_langinfo(CODESET);
10397 if ac_fn_c_try_link "$LINENO"; then :
10398 am_cv_langinfo_codeset=yes
10400 am_cv_langinfo_codeset=no
10402 rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10407 $as_echo "$am_cv_langinfo_codeset" >&6; }
10408 if test $am_cv_langinfo_codeset = yes; then
10410 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10415 # We will need to find libiberty.h and ansidecl.h
10416 saved_CFLAGS="$CFLAGS"
10417 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10418 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10419 strsignal strstr strverscmp \
10420 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10421 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10423 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10425 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10426 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10427 $as_echo_n "(cached) " >&6
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10432 #define $ac_tr_decl 1
10434 #include "ansidecl.h"
10435 #include "system.h"
10441 char *(*pfn) = (char *(*)) $ac_func ;
10447 if ac_fn_c_try_compile "$LINENO"; then :
10448 eval "gcc_cv_have_decl_$ac_func=yes"
10450 eval "gcc_cv_have_decl_$ac_func=no"
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10457 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10458 #define $ac_tr_decl 1
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10464 #define $ac_tr_decl 0
10472 for ac_func in getrlimit setrlimit getrusage
10474 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10476 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10477 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10478 $as_echo_n "(cached) " >&6
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10483 #define $ac_tr_decl 1
10485 #include "ansidecl.h"
10486 #include "system.h"
10487 #ifdef HAVE_SYS_RESOURCE_H
10488 #include <sys/resource.h>
10496 char *(*pfn) = (char *(*)) $ac_func ;
10502 if ac_fn_c_try_compile "$LINENO"; then :
10503 eval "gcc_cv_have_decl_$ac_func=yes"
10505 eval "gcc_cv_have_decl_$ac_func=no"
10507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10510 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10512 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10513 #define $ac_tr_decl 1
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10519 #define $ac_tr_decl 0
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10530 #include "ansidecl.h"
10531 #include "system.h"
10532 #ifdef HAVE_SYS_RESOURCE_H
10533 #include <sys/resource.h>
10544 if ac_fn_c_try_compile "$LINENO"; then :
10548 $as_echo "#define rlim_t long" >>confdefs.h
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10554 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10555 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10556 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10557 for ac_func in ldgetname
10559 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10561 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10562 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10563 $as_echo_n "(cached) " >&6
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10568 #define $ac_tr_decl 1
10570 #include "ansidecl.h"
10571 #include "system.h"
10572 #ifdef HAVE_LDFCN_H
10583 char *(*pfn) = (char *(*)) $ac_func ;
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590 eval "gcc_cv_have_decl_$ac_func=yes"
10592 eval "gcc_cv_have_decl_$ac_func=no"
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10599 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10600 #define $ac_tr_decl 1
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10606 #define $ac_tr_decl 0
10614 for ac_func in times
10616 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10618 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10619 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10620 $as_echo_n "(cached) " >&6
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10625 #define $ac_tr_decl 1
10627 #include "ansidecl.h"
10628 #include "system.h"
10629 #ifdef HAVE_SYS_TIMES_H
10630 #include <sys/times.h>
10638 char *(*pfn) = (char *(*)) $ac_func ;
10644 if ac_fn_c_try_compile "$LINENO"; then :
10645 eval "gcc_cv_have_decl_$ac_func=yes"
10647 eval "gcc_cv_have_decl_$ac_func=no"
10649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10654 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10655 #define $ac_tr_decl 1
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10661 #define $ac_tr_decl 0
10669 for ac_func in sigaltstack
10671 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10673 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10674 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10675 $as_echo_n "(cached) " >&6
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10680 #define $ac_tr_decl 1
10682 #include "ansidecl.h"
10683 #include "system.h"
10684 #include <signal.h>
10691 char *(*pfn) = (char *(*)) $ac_func ;
10697 if ac_fn_c_try_compile "$LINENO"; then :
10698 eval "gcc_cv_have_decl_$ac_func=yes"
10700 eval "gcc_cv_have_decl_$ac_func=no"
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10705 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10708 #define $ac_tr_decl 1
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10714 #define $ac_tr_decl 0
10722 # More time-related stuff.
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10724 $as_echo_n "checking for struct tms... " >&6; }
10725 if test "${ac_cv_struct_tms+set}" = set; then :
10726 $as_echo_n "(cached) " >&6
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10732 #include "ansidecl.h"
10733 #include "system.h"
10734 #ifdef HAVE_SYS_TIMES_H
10735 #include <sys/times.h>
10746 if ac_fn_c_try_compile "$LINENO"; then :
10747 ac_cv_struct_tms=yes
10749 ac_cv_struct_tms=no
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10754 $as_echo "$ac_cv_struct_tms" >&6; }
10755 if test $ac_cv_struct_tms = yes; then
10757 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10761 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10762 # revisit after autoconf 2.50.
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10764 $as_echo_n "checking for clock_t... " >&6; }
10765 if test "${gcc_cv_type_clock_t+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10772 #include "ansidecl.h"
10773 #include "system.h"
10783 if ac_fn_c_try_compile "$LINENO"; then :
10784 gcc_cv_type_clock_t=yes
10786 gcc_cv_type_clock_t=no
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10791 $as_echo "$gcc_cv_type_clock_t" >&6; }
10792 if test $gcc_cv_type_clock_t = yes; then
10794 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10798 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10799 CFLAGS="$saved_CFLAGS"
10801 # Check whether --enable-initfini-array was given.
10802 if test "${enable_initfini_array+set}" = set; then :
10803 enableval=$enable_initfini_array;
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10807 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10808 if test "${gcc_cv_initfini_array+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10811 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10812 if test "$cross_compiling" = yes; then :
10813 gcc_cv_initfini_array=no
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10819 #error Not an ELF OS
10822 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10823 if it can be used. */
10825 int main (void) { return x; }
10826 int foo (void) { x = 0; }
10827 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10829 extern void abort ();
10839 void (*const init_array1005) ()
10840 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10848 void (*const fini_array1005) ()
10849 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10859 void (*const ctors1007) ()
10860 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10869 void (*const dtors1007) ()
10870 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10880 void (*const init_array65530) ()
10881 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10886 if (count != 65530)
10890 void (*const fini_array65530) ()
10891 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10897 if (count != 65530)
10901 void (*const ctors65535) ()
10902 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10907 if (count != 65535)
10911 void (*const dtors65535) ()
10912 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10918 if (count != 65535)
10925 if ac_fn_c_try_run "$LINENO"; then :
10926 gcc_cv_initfini_array=yes
10928 gcc_cv_initfini_array=no
10930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10931 conftest.$ac_objext conftest.beam conftest.$ac_ext
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10936 $as_echo_n "checking cross compile... guessing... " >&6; }
10937 gcc_cv_initfini_array=no
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10941 $as_echo "$gcc_cv_initfini_array" >&6; }
10942 enable_initfini_array=$gcc_cv_initfini_array
10946 if test $enable_initfini_array = yes; then
10948 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10952 # mkdir takes a single argument on some systems.
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10954 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10955 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10961 #include <sys/types.h>
10962 #ifdef HAVE_SYS_STAT_H
10963 # include <sys/stat.h>
10965 #ifdef HAVE_UNISTD_H
10966 # include <unistd.h>
10968 #ifdef HAVE_DIRECT_H
10969 # include <direct.h>
10979 if ac_fn_c_try_compile "$LINENO"; then :
10980 gcc_cv_mkdir_takes_one_arg=no
10982 gcc_cv_mkdir_takes_one_arg=yes
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10987 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10988 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10990 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11001 # With Setjmp/Longjmp based exception handling.
11002 # Check whether --enable-sjlj-exceptions was given.
11003 if test "${enable_sjlj_exceptions+set}" = set; then :
11004 enableval=$enable_sjlj_exceptions; case $target in
11006 if test $enableval != yes; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11008 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11013 force_sjlj_exceptions=yes
11017 force_sjlj_exceptions=yes
11021 force_sjlj_exceptions=no
11026 if test $force_sjlj_exceptions = yes; then
11027 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11029 cat >>confdefs.h <<_ACEOF
11030 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11035 # --------------------------------------------------------
11036 # Build, host, and target specific configuration fragments
11037 # --------------------------------------------------------
11039 # Collect build-machine-specific information.
11040 . ${srcdir}/config.build
11042 # Collect host-machine-specific information.
11043 . ${srcdir}/config.host
11047 # Collect target-machine-specific information.
11048 . ${srcdir}/config.gcc
11050 extra_objs="${host_extra_objs} ${extra_objs}"
11051 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11053 # Default the target-machine variables that were not explicitly set.
11054 if test x"$tm_file" = x
11055 then tm_file=$cpu_type/$cpu_type.h; fi
11057 if test x"$extra_headers" = x
11058 then extra_headers=; fi
11060 if test x$md_file = x
11061 then md_file=$cpu_type/$cpu_type.md; fi
11063 if test x$out_file = x
11064 then out_file=$cpu_type/$cpu_type.c; fi
11066 if test x"$tmake_file" = x
11067 then tmake_file=$cpu_type/t-$cpu_type
11070 if test x"$dwarf2" = xyes
11071 then tm_file="$tm_file tm-dwarf2.h"
11074 # Say what files are being used for the output code and MD file.
11075 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11076 echo "Using \`$srcdir/config/$md_file' as machine description file."
11078 # If any of the xm_file variables contain nonexistent files, warn
11079 # about them and drop them.
11082 for x in $build_xm_file; do
11083 if test -f $srcdir/config/$x
11085 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11086 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11089 build_xm_file="$bx"
11092 for x in $host_xm_file; do
11093 if test -f $srcdir/config/$x
11095 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11096 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11102 for x in $xm_file; do
11103 if test -f $srcdir/config/$x
11105 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11106 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11112 for f in $tm_file; do
11115 if test $count = ax; then
11116 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11118 echo "Using the following target machine macro files:"
11119 for f in $tm_file; do
11120 echo " $srcdir/config/$f"
11124 if test x$need_64bit_hwint = xyes; then
11126 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11130 if test x$use_long_long_for_widest_fast_int = xyes; then
11132 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11137 for f in $host_xm_file; do
11140 if test $count = a; then
11142 elif test $count = ax; then
11143 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11145 echo "Using the following host machine macro files:"
11146 for f in $host_xm_file; do
11147 echo " $srcdir/config/$f"
11150 echo "Using ${out_host_hook_obj} for host machine hooks."
11152 if test "$host_xm_file" != "$build_xm_file"; then
11154 for f in $build_xm_file; do
11157 if test $count = a; then
11159 elif test $count = ax; then
11160 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11162 echo "Using the following build machine macro files:"
11163 for f in $build_xm_file; do
11164 echo " $srcdir/config/$f"
11169 if test -n "$configured_native_system_header_dir"; then
11170 native_system_header_dir=$configured_native_system_header_dir
11172 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11176 powerpc*-*-darwin*)
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11178 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11179 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11185 #include <sys/cdefs.h>
11186 #include <sys/signal.h>
11187 #include <ucontext.h>
11188 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11191 if ac_fn_c_try_compile "$LINENO"; then :
11192 gcc_cv_mcontext_underscores=no
11194 gcc_cv_mcontext_underscores=yes
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11199 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11200 if test $gcc_cv_mcontext_underscores = yes; then
11202 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11212 # Check if a valid thread package
11213 case ${enable_threads} in
11216 target_thread_file='single'
11220 target_thread_file='single'
11222 aix | dce | lynx | mipssde | posix | rtems | \
11223 single | tpf | vxworks | win32)
11224 target_thread_file=${enable_threads}
11227 echo "${enable_threads} is an unknown thread package" 1>&2
11232 if test x${thread_file} = x; then
11233 # No thread file set by target-specific clauses in config.gcc,
11234 # so use file chosen by default logic above
11235 thread_file=${target_thread_file}
11238 # Make gthr-default.h if we have a thread file.
11240 if test $thread_file != single; then
11241 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11242 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11243 rm -f gthr-default.h-t
11245 mv -f gthr-default.h-t gthr-default.h
11247 gthread_flags=-DHAVE_GTHR_DEFAULT
11256 if test x$enable___cxa_atexit = xyes || \
11257 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11258 if test x$host = x$target; then
11260 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11261 # keyed to flag_use_cxa_atexit
11266 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11267 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11270 echo "__cxa_atexit can't be enabled on this target"
11276 # We can't check for __cxa_atexit when building a cross, so assume
11280 if test x$use_cxa_atexit = xyes; then
11282 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11287 # Look for a file containing extra machine modes.
11288 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11289 extra_modes_file='$(srcdir)'/config/${extra_modes}
11292 cat >>confdefs.h <<_ACEOF
11293 #define EXTRA_MODES_FILE "config/$extra_modes"
11298 # Convert extra_options into a form suitable for Makefile use.
11301 for f in $extra_options; do
11302 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11303 all_opt_files="$all_opt_files $srcdir/config/$f"
11307 # auto-host.h is the file containing items generated by autoconf and is
11308 # the first file included by config.h.
11309 # If host=build, it is correct to have bconfig include auto-host.h
11310 # as well. If host!=build, we are in error and need to do more
11311 # work to find out the build config parameters.
11312 if test x$host = x$build
11314 build_auto=auto-host.h
11316 # We create a subdir, then run autoconf in the subdir.
11317 # To prevent recursion we set host and build for the new
11318 # invocation of configure to the build for this invocation
11325 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11326 *) realsrcdir=../${srcdir};;
11328 saved_CFLAGS="${CFLAGS}"
11329 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11330 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11331 ${realsrcdir}/configure \
11332 --enable-languages=${enable_languages-all} \
11333 --target=$target_alias --host=$build_alias --build=$build_alias
11334 CFLAGS="${saved_CFLAGS}"
11336 # We just finished tests for the build machine, so rename
11337 # the file auto-build.h in the gcc directory.
11338 mv auto-host.h ../auto-build.h
11341 build_auto=auto-build.h
11345 tm_file="${tm_file} defaults.h"
11346 tm_p_file="${tm_p_file} tm-preds.h"
11347 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11348 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11349 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11350 # put this back in temporarily.
11351 xm_file="auto-host.h ansidecl.h ${xm_file}"
11357 # Compile in configure arguments.
11358 if test -f configargs.h ; then
11359 # Being re-configured.
11360 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11361 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11363 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11366 # Double all backslashes and backslash all quotes to turn
11367 # gcc_config_arguments into a C string.
11368 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11369 $gcc_config_arguments
11371 gcc_config_arguments_str=`cat conftest.out`
11374 cat > configargs.h <<EOF
11375 /* Generated automatically. */
11376 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11377 static const char thread_model[] = "$thread_file";
11379 static const struct {
11380 const char *name, *value;
11381 } configure_default_options[] = $configure_default_options;
11384 gcc_BASEVER=`cat $srcdir/BASE-VER`
11385 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11386 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11387 if test -f $srcdir/REVISION ; then
11388 gcc_REVISION=`cat $srcdir/REVISION`
11392 cat > plugin-version.h <<EOF
11393 #include "configargs.h"
11395 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11396 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11397 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11398 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11400 static char basever[] = "$gcc_BASEVER";
11401 static char datestamp[] = "$gcc_DATESTAMP";
11402 static char devphase[] = "$gcc_DEVPHASE";
11403 static char revision[] = "$gcc_REVISION";
11405 /* FIXME plugins: We should make the version information more precise.
11406 One way to do is to add a checksum. */
11408 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11409 devphase, revision,
11410 configuration_arguments};
11413 # Internationalization
11414 # If we haven't got the data from the intl directory,
11415 # assume NLS is disabled.
11424 if test -f ../intl/config.intl; then
11425 . ../intl/config.intl
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11428 $as_echo_n "checking whether NLS is requested... " >&6; }
11429 if test x"$USE_NLS" != xyes; then
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11434 $as_echo "yes" >&6; }
11436 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11440 $as_echo_n "checking for catalogs to be installed... " >&6; }
11441 # Look for .po and .gmo files in the source directory.
11444 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11445 # If there aren't any .gmo files the shell will give us the
11446 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11448 case "$cat" in *\**)
11451 # The quadruple backslash is collapsed to a double backslash
11452 # by the backticks, then collapsed again by the double quotes,
11453 # leaving us with one backslash in the sed expression (right
11454 # before the dot that mustn't act as a wildcard).
11455 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11456 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11457 # The user is allowed to set LINGUAS to a list of languages to
11458 # install catalogs for. If it's empty that means "all of them."
11459 if test "x$LINGUAS" = x; then
11460 CATALOGS="$CATALOGS $cat"
11461 XLINGUAS="$XLINGUAS $lang"
11463 case "$LINGUAS" in *$lang*)
11464 CATALOGS="$CATALOGS $cat"
11465 XLINGUAS="$XLINGUAS $lang"
11470 LINGUAS="$XLINGUAS"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11472 $as_echo "$LINGUAS" >&6; }
11485 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11486 # -liconv on the link line twice.
11487 case "$LIBINTL" in *$LIBICONV*)
11491 # Check whether --enable-secureplt was given.
11492 if test "${enable_secureplt+set}" = set; then :
11493 enableval=$enable_secureplt;
11497 # Check whether --enable-leading-mingw64-underscores was given.
11498 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11499 enableval=$enable_leading_mingw64_underscores;
11502 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11504 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11508 # Check whether --enable-cld was given.
11509 if test "${enable_cld+set}" = set; then :
11510 enableval=$enable_cld;
11516 # Check whether --enable-frame-pointer was given.
11517 if test "${enable_frame_pointer+set}" = set; then :
11518 enableval=$enable_frame_pointer;
11522 linux* | darwin[8912]*)
11523 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11525 enable_frame_pointer=no
11528 enable_frame_pointer=yes
11535 # Windows32 Registry support for specifying GCC installation paths.
11536 # Check whether --enable-win32-registry was given.
11537 if test "${enable_win32_registry+set}" = set; then :
11538 enableval=$enable_win32_registry;
11543 win32 | pe | cygwin* | mingw32* | uwin*)
11544 if test "x$enable_win32_registry" != xno; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11546 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11547 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11550 ac_func_search_save_LIBS=$LIBS
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11554 /* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
11560 char RegOpenKeyExA ();
11564 return RegOpenKeyExA ();
11569 for ac_lib in '' advapi32; do
11570 if test -z "$ac_lib"; then
11571 ac_res="none required"
11574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 ac_cv_search_RegOpenKeyExA=$ac_res
11579 rm -f core conftest.err conftest.$ac_objext \
11581 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11585 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11588 ac_cv_search_RegOpenKeyExA=no
11590 rm conftest.$ac_ext
11591 LIBS=$ac_func_search_save_LIBS
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11594 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11595 ac_res=$ac_cv_search_RegOpenKeyExA
11596 if test "$ac_res" != no; then :
11597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11600 enable_win32_registry=no
11605 if test "x$enable_win32_registry" != xno; then
11607 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11610 if test "x$enable_win32_registry" != xyes \
11611 && test "x$enable_win32_registry" != x; then
11613 cat >>confdefs.h <<_ACEOF
11614 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11622 # Get an absolute path to the GCC top-level source directory
11623 holddir=`${PWDCMD-pwd}`
11625 topdir=`${PWDCMD-pwd}`
11628 # Conditionalize the makefile for this host machine.
11630 for f in ${host_xmake_file}
11632 if test -f ${srcdir}/config/$f
11634 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11638 # Conditionalize the makefile for this target machine.
11640 for f in ${tmake_file}
11642 if test -f ${srcdir}/config/$f
11644 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11647 tmake_file="${tmake_file_}"
11649 out_object_file=`basename $out_file .c`.o
11650 common_out_object_file=`basename $common_out_file .c`.o
11652 tm_file_list="options.h"
11653 tm_include_list="options.h insn-constants.h"
11654 for f in $tm_file; do
11657 f=`echo $f | sed 's/^..//'`
11658 tm_file_list="${tm_file_list} $f"
11659 tm_include_list="${tm_include_list} $f"
11662 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11663 tm_include_list="${tm_include_list} $f"
11666 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11667 tm_include_list="${tm_include_list} config/$f"
11672 libgcc_tm_file_list=
11673 libgcc_tm_include_list=
11674 for f in $libgcc_tm_file; do
11675 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11676 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11681 for f in $tm_p_file; do
11684 tm_p_file_list="${tm_p_file_list} $f"
11685 tm_p_include_list="${tm_p_include_list} $f"
11688 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11689 tm_p_include_list="${tm_p_include_list} config/$f"
11695 for f in $xm_file; do
11698 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11699 xm_include_list="${xm_include_list} $f"
11702 xm_file_list="${xm_file_list} $f"
11703 xm_include_list="${xm_include_list} $f"
11706 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11707 xm_include_list="${xm_include_list} config/$f"
11713 host_xm_include_list=
11714 for f in $host_xm_file; do
11717 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11718 host_xm_include_list="${host_xm_include_list} $f"
11721 host_xm_file_list="${host_xm_file_list} $f"
11722 host_xm_include_list="${host_xm_include_list} $f"
11725 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11726 host_xm_include_list="${host_xm_include_list} config/$f"
11731 build_xm_file_list=
11732 for f in $build_xm_file; do
11735 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11736 build_xm_include_list="${build_xm_include_list} $f"
11738 auto-build.h | auto-host.h )
11739 build_xm_file_list="${build_xm_file_list} $f"
11740 build_xm_include_list="${build_xm_include_list} $f"
11743 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11744 build_xm_include_list="${build_xm_include_list} config/$f"
11749 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11750 # cross-compiler which does not use the native headers and libraries.
11751 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11754 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11756 if test "x$with_build_sysroot" != x; then
11757 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11759 # This value is used, even on a native system, because
11760 # CROSS_SYSTEM_HEADER_DIR is just
11761 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11762 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11765 if test x$host != x$target
11767 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11769 SYSTEM_HEADER_DIR=$build_system_header_dir
11770 case "$host","$target" in
11771 # Darwin crosses can use the host system's libraries and headers,
11772 # because of the fat library support. Of course, it must be the
11773 # same version of Darwin on both sides. Allow the user to
11774 # just say --target=foo-darwin without a version number to mean
11775 # "the version on this system".
11776 *-*-darwin*,*-*-darwin*)
11777 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11778 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11779 if test $hostos = $targetos -o $targetos = darwin ; then
11781 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11786 i?86-*-*,x86_64-*-* \
11787 | powerpc*-*-*,powerpc64*-*-*)
11788 CROSS="$CROSS -DNATIVE_CROSS" ;;
11793 if test "x$with_headers" = x; then
11800 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11801 SYSTEM_HEADER_DIR=$build_system_header_dir
11804 # If this is a cross-compiler that does not
11805 # have its own set of headers then define
11808 # If this is using newlib, without having the headers available now,
11809 # then define inhibit_libc in LIBGCC2_CFLAGS.
11810 # This prevents libgcc2 from containing any code which requires libc
11812 : ${inhibit_libc=false}
11813 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11814 test x$with_newlib = xyes ; } &&
11815 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11820 # When building gcc with a cross-compiler, we need to adjust things so
11821 # that the generator programs are still built with the native compiler.
11822 # Also, we cannot run fixincludes.
11824 # These are the normal (build=host) settings:
11825 CC_FOR_BUILD='$(CC)'
11826 BUILD_CFLAGS='$(ALL_CFLAGS)'
11827 BUILD_LDFLAGS='$(LDFLAGS)'
11828 STMP_FIXINC=stmp-fixinc
11830 # And these apply if build != host, or we are generating coverage data
11831 if test x$build != x$host || test "x$coverage_flags" != x
11833 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11834 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11837 # Expand extra_headers to include complete path.
11838 # This substitutes for lots of t-* files.
11839 extra_headers_list=
11840 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11841 for file in ${extra_headers} ; do
11842 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11845 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11846 if test x"$use_gcc_tgmath" = xyes
11847 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11850 # Define collect2 in Makefile.
11851 case $host_can_use_collect2 in
11853 *) collect2='collect2$(exeext)' ;;
11857 # Add a definition of USE_COLLECT2 if system wants one.
11858 case $use_collect2 in
11859 no) use_collect2= ;;
11862 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11863 xm_defines="${xm_defines} USE_COLLECT2"
11864 case $host_can_use_collect2 in
11866 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11873 cat >>confdefs.h <<_ACEOF
11874 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11878 # ---------------------------
11879 # Assembler & linker features
11880 # ---------------------------
11882 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11883 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11884 # However when ld-new is first executed from the build tree, libtool will
11885 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11886 # to the build tree. While doing this we need to use the previous-stage
11887 # linker, or we have an infinite loop. The presence of a shell script as
11888 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11889 # the gcc/collect-ld script. So we need to know how libtool works, or
11890 # exec-tool will fail.
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11896 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11901 macro_version='2.2.7a'
11902 macro_revision='1.3134'
11916 ltmain="$ac_aux_dir/ltmain.sh"
11918 # Backslashify metacharacters that are still active within
11919 # double-quoted strings.
11920 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11922 # Same as above, but do not quote variable references.
11923 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11925 # Sed substitution to delay expansion of an escaped shell variable in a
11926 # double_quote_subst'ed string.
11927 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11929 # Sed substitution to delay expansion of an escaped single quote.
11930 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11932 # Sed substitution to avoid accidental globbing in evaled expressions
11933 no_glob_subst='s/\*/\\\*/g'
11935 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11936 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11937 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11940 $as_echo_n "checking how to print strings... " >&6; }
11941 # Test print first, because it will be a builtin if present.
11942 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11943 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11945 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11948 # Use this function as a fallback that always works.
11949 func_fallback_echo ()
11951 eval 'cat <<_LTECHO_EOF
11955 ECHO='func_fallback_echo'
11958 # func_echo_all arg...
11959 # Invoke $ECHO with all args, space-separated.
11966 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11967 $as_echo "printf" >&6; } ;;
11968 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11969 $as_echo "print -r" >&6; } ;;
11970 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11971 $as_echo "cat" >&6; } ;;
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11988 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11989 if test "${ac_cv_path_SED+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11992 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11993 for ac_i in 1 2 3 4 5 6 7; do
11994 ac_script="$ac_script$as_nl$ac_script"
11996 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11997 { ac_script=; unset ac_script;}
11998 if test -z "$SED"; then
11999 ac_path_SED_found=false
12000 # Loop through the user's path and test for each of PROGNAME-LIST
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12005 test -z "$as_dir" && as_dir=.
12006 for ac_prog in sed gsed; do
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12009 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12010 # Check for GNU ac_path_SED and select it if it is found.
12011 # Check for GNU $ac_path_SED
12012 case `"$ac_path_SED" --version 2>&1` in
12014 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12017 $as_echo_n 0123456789 >"conftest.in"
12020 cat "conftest.in" "conftest.in" >"conftest.tmp"
12021 mv "conftest.tmp" "conftest.in"
12022 cp "conftest.in" "conftest.nl"
12023 $as_echo '' >> "conftest.nl"
12024 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12026 as_fn_arith $ac_count + 1 && ac_count=$as_val
12027 if test $ac_count -gt ${ac_path_SED_max-0}; then
12028 # Best one so far, save it but keep looking for a better one
12029 ac_cv_path_SED="$ac_path_SED"
12030 ac_path_SED_max=$ac_count
12032 # 10*(2^10) chars as input seems more than enough
12033 test $ac_count -gt 10 && break
12035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12038 $ac_path_SED_found && break 3
12043 if test -z "$ac_cv_path_SED"; then
12044 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12047 ac_cv_path_SED=$SED
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12052 $as_echo "$ac_cv_path_SED" >&6; }
12053 SED="$ac_cv_path_SED"
12056 test -z "$SED" && SED=sed
12057 Xsed="$SED -e 1s/^X//"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12070 $as_echo_n "checking for fgrep... " >&6; }
12071 if test "${ac_cv_path_FGREP+set}" = set; then :
12072 $as_echo_n "(cached) " >&6
12074 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12075 then ac_cv_path_FGREP="$GREP -F"
12077 if test -z "$FGREP"; then
12078 ac_path_FGREP_found=false
12079 # Loop through the user's path and test for each of PROGNAME-LIST
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12084 test -z "$as_dir" && as_dir=.
12085 for ac_prog in fgrep; do
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12088 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12089 # Check for GNU ac_path_FGREP and select it if it is found.
12090 # Check for GNU $ac_path_FGREP
12091 case `"$ac_path_FGREP" --version 2>&1` in
12093 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12096 $as_echo_n 0123456789 >"conftest.in"
12099 cat "conftest.in" "conftest.in" >"conftest.tmp"
12100 mv "conftest.tmp" "conftest.in"
12101 cp "conftest.in" "conftest.nl"
12102 $as_echo 'FGREP' >> "conftest.nl"
12103 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12104 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12105 as_fn_arith $ac_count + 1 && ac_count=$as_val
12106 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12107 # Best one so far, save it but keep looking for a better one
12108 ac_cv_path_FGREP="$ac_path_FGREP"
12109 ac_path_FGREP_max=$ac_count
12111 # 10*(2^10) chars as input seems more than enough
12112 test $ac_count -gt 10 && break
12114 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12117 $ac_path_FGREP_found && break 3
12122 if test -z "$ac_cv_path_FGREP"; then
12123 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12126 ac_cv_path_FGREP=$FGREP
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12132 $as_echo "$ac_cv_path_FGREP" >&6; }
12133 FGREP="$ac_cv_path_FGREP"
12136 test -z "$GREP" && GREP=grep
12156 # Check whether --with-gnu-ld was given.
12157 if test "${with_gnu_ld+set}" = set; then :
12158 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12164 if test "$GCC" = yes; then
12165 # Check if gcc -print-prog-name=ld gives a path.
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12167 $as_echo_n "checking for ld used by $CC... " >&6; }
12170 # gcc leaves a trailing carriage return which upsets mingw
12171 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12173 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12176 # Accept absolute paths.
12178 re_direlt='/[^/][^/]*/\.\./'
12179 # Canonicalize the pathname of ld
12180 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12181 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12182 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12184 test -z "$LD" && LD="$ac_prog"
12187 # If it fails, then pretend we aren't using GCC.
12191 # If it is relative, then search for the first ld in PATH.
12192 with_gnu_ld=unknown
12195 elif test "$with_gnu_ld" = yes; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12197 $as_echo_n "checking for GNU ld... " >&6; }
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12200 $as_echo_n "checking for non-GNU ld... " >&6; }
12202 if test "${lt_cv_path_LD+set}" = set; then :
12203 $as_echo_n "(cached) " >&6
12205 if test -z "$LD"; then
12206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12207 for ac_dir in $PATH; do
12209 test -z "$ac_dir" && ac_dir=.
12210 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12211 lt_cv_path_LD="$ac_dir/$ac_prog"
12212 # Check to see if the program is GNU ld. I'd rather use --version,
12213 # but apparently some variants of GNU ld only accept -v.
12214 # Break only if it was the GNU/non-GNU ld that we prefer.
12215 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12216 *GNU* | *'with BFD'*)
12217 test "$with_gnu_ld" != no && break
12220 test "$with_gnu_ld" != yes && break
12227 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12231 LD="$lt_cv_path_LD"
12232 if test -n "$LD"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12234 $as_echo "$LD" >&6; }
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237 $as_echo "no" >&6; }
12239 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12241 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12242 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12245 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12246 case `$LD -v 2>&1 </dev/null` in
12247 *GNU* | *'with BFD'*)
12248 lt_cv_prog_gnu_ld=yes
12251 lt_cv_prog_gnu_ld=no
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12256 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12257 with_gnu_ld=$lt_cv_prog_gnu_ld
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12268 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12269 if test "${lt_cv_path_NM+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12272 if test -n "$NM"; then
12273 # Let the user override the test.
12274 lt_cv_path_NM="$NM"
12276 lt_nm_to_check="${ac_tool_prefix}nm"
12277 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12278 lt_nm_to_check="$lt_nm_to_check nm"
12280 for lt_tmp_nm in $lt_nm_to_check; do
12281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12282 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12284 test -z "$ac_dir" && ac_dir=.
12285 tmp_nm="$ac_dir/$lt_tmp_nm"
12286 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12287 # Check to see if the nm accepts a BSD-compat flag.
12288 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12289 # nm: unknown option "B" ignored
12290 # Tru64's nm complains that /dev/null is an invalid object file
12291 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12292 */dev/null* | *'Invalid file or object type'*)
12293 lt_cv_path_NM="$tmp_nm -B"
12297 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12299 lt_cv_path_NM="$tmp_nm -p"
12303 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12304 continue # so that we can try to find one that supports BSD flags
12313 : ${lt_cv_path_NM=no}
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12317 $as_echo "$lt_cv_path_NM" >&6; }
12318 if test "$lt_cv_path_NM" != "no"; then
12319 NM="$lt_cv_path_NM"
12321 # Didn't find any BSD compatible name lister, look for dumpbin.
12322 if test -n "$DUMPBIN"; then :
12323 # Let the user override the test.
12325 if test -n "$ac_tool_prefix"; then
12326 for ac_prog in dumpbin "link -dump"
12328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12333 $as_echo_n "(cached) " >&6
12335 if test -n "$DUMPBIN"; then
12336 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12342 test -z "$as_dir" && as_dir=.
12343 for ac_exec_ext in '' $ac_executable_extensions; do
12344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12345 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 DUMPBIN=$ac_cv_prog_DUMPBIN
12356 if test -n "$DUMPBIN"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12358 $as_echo "$DUMPBIN" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12365 test -n "$DUMPBIN" && break
12368 if test -z "$DUMPBIN"; then
12369 ac_ct_DUMPBIN=$DUMPBIN
12370 for ac_prog in dumpbin "link -dump"
12372 # Extract the first word of "$ac_prog", so it can be a program name with args.
12373 set dummy $ac_prog; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12379 if test -n "$ac_ct_DUMPBIN"; then
12380 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12386 test -z "$as_dir" && as_dir=.
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12389 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12400 if test -n "$ac_ct_DUMPBIN"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12402 $as_echo "$ac_ct_DUMPBIN" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12409 test -n "$ac_ct_DUMPBIN" && break
12412 if test "x$ac_ct_DUMPBIN" = x; then
12415 case $cross_compiling:$ac_tool_warned in
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12419 ac_tool_warned=yes ;;
12421 DUMPBIN=$ac_ct_DUMPBIN
12425 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12427 DUMPBIN="$DUMPBIN -symbols"
12435 if test "$DUMPBIN" != ":"; then
12439 test -z "$NM" && NM=nm
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12447 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12448 if test "${lt_cv_nm_interface+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12451 lt_cv_nm_interface="BSD nm"
12452 echo "int some_variable = 0;" > conftest.$ac_ext
12453 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12454 (eval "$ac_compile" 2>conftest.err)
12455 cat conftest.err >&5
12456 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12457 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12458 cat conftest.err >&5
12459 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12460 cat conftest.out >&5
12461 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12462 lt_cv_nm_interface="MS dumpbin"
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12467 $as_echo "$lt_cv_nm_interface" >&6; }
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12470 $as_echo_n "checking whether ln -s works... " >&6; }
12472 if test "$LN_S" = "ln -s"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12474 $as_echo "yes" >&6; }
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12477 $as_echo "no, using $LN_S" >&6; }
12480 # find the maximum length of command line arguments
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12482 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12483 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12491 # On DJGPP, this test can blow up pretty badly due to problems in libc
12492 # (any single argument exceeding 2000 bytes causes a buffer overrun
12493 # during glob expansion). Even if it were fixed, the result of this
12494 # check would be larger than it should be.
12495 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12499 # Under GNU Hurd, this test is not required because there is
12500 # no limit to the length of command line arguments.
12501 # Libtool will interpret -1 as no limit whatsoever
12502 lt_cv_sys_max_cmd_len=-1;
12505 cygwin* | mingw* | cegcc*)
12506 # On Win9x/ME, this test blows up -- it succeeds, but takes
12507 # about 5 minutes as the teststring grows exponentially.
12508 # Worse, since 9x/ME are not pre-emptively multitasking,
12509 # you end up with a "frozen" computer, even though with patience
12510 # the test eventually succeeds (with a max line length of 256k).
12511 # Instead, let's just punt: use the minimum linelength reported by
12512 # all of the supported platforms: 8192 (on NT/2K/XP).
12513 lt_cv_sys_max_cmd_len=8192;
12517 # On MiNT this can take a long time and run out of memory.
12518 lt_cv_sys_max_cmd_len=8192;
12522 # On AmigaOS with pdksh, this test takes hours, literally.
12523 # So we just punt and use a minimum line length of 8192.
12524 lt_cv_sys_max_cmd_len=8192;
12527 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12528 # This has been around since 386BSD, at least. Likely further.
12529 if test -x /sbin/sysctl; then
12530 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12531 elif test -x /usr/sbin/sysctl; then
12532 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12534 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12536 # And add a safety zone
12537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12542 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12543 lt_cv_sys_max_cmd_len=196608
12547 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12548 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12549 # nice to cause kernel panics so lets avoid the loop below.
12550 # First set a reasonable default.
12551 lt_cv_sys_max_cmd_len=16384
12553 if test -x /sbin/sysconfig; then
12554 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12555 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12560 lt_cv_sys_max_cmd_len=102400
12562 sysv5* | sco5v6* | sysv4.2uw2*)
12563 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12564 if test -n "$kargmax"; then
12565 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12567 lt_cv_sys_max_cmd_len=32768
12571 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12572 if test -n "$lt_cv_sys_max_cmd_len"; then
12573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12576 # Make teststring a little bigger before we do anything with it.
12577 # a 1K string should be a reasonable start.
12578 for i in 1 2 3 4 5 6 7 8 ; do
12579 teststring=$teststring$teststring
12581 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12582 # If test is not a shell built-in, we'll probably end up computing a
12583 # maximum length that is only half of the actual maximum length, but
12585 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12586 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12587 test $i != 17 # 1/2 MB should be enough
12590 teststring=$teststring$teststring
12592 # Only check the string length outside the loop.
12593 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12595 # Add a significant safety factor because C++ compilers can tack on
12596 # massive amounts of additional arguments before passing them to the
12597 # linker. It appears as though 1/2 is a usable value.
12598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12605 if test -n $lt_cv_sys_max_cmd_len ; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12607 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12610 $as_echo "none" >&6; }
12612 max_cmd_len=$lt_cv_sys_max_cmd_len
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12624 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12625 # Try some XSI features
12627 ( _lt_dummy="a/b/c"
12628 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12630 && eval 'test $(( 1 + 1 )) -eq 2 \
12631 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12634 $as_echo "$xsi_shell" >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12638 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12640 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12642 && lt_shell_append=yes
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12644 $as_echo "$lt_shell_append" >&6; }
12647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12657 # test EBCDIC or ASCII
12658 case `echo X|tr X '\101'` in
12659 A) # ASCII based system
12660 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12661 lt_SP2NL='tr \040 \012'
12662 lt_NL2SP='tr \015\012 \040\040'
12664 *) # EBCDIC based system
12665 lt_SP2NL='tr \100 \n'
12666 lt_NL2SP='tr \r\n \100\100'
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12679 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12680 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12681 $as_echo_n "(cached) " >&6
12683 lt_cv_ld_reload_flag='-r'
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12686 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12687 reload_flag=$lt_cv_ld_reload_flag
12688 case $reload_flag in
12690 *) reload_flag=" $reload_flag" ;;
12692 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12695 if test "$GCC" = yes; then
12696 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12698 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12711 if test -n "$ac_tool_prefix"; then
12712 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12713 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12719 if test -n "$OBJDUMP"; then
12720 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12739 OBJDUMP=$ac_cv_prog_OBJDUMP
12740 if test -n "$OBJDUMP"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12742 $as_echo "$OBJDUMP" >&6; }
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12750 if test -z "$ac_cv_prog_OBJDUMP"; then
12751 ac_ct_OBJDUMP=$OBJDUMP
12752 # Extract the first word of "objdump", so it can be a program name with args.
12753 set dummy objdump; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12759 if test -n "$ac_ct_OBJDUMP"; then
12760 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12769 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12780 if test -n "$ac_ct_OBJDUMP"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12782 $as_echo "$ac_ct_OBJDUMP" >&6; }
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12788 if test "x$ac_ct_OBJDUMP" = x; then
12791 case $cross_compiling:$ac_tool_warned in
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12795 ac_tool_warned=yes ;;
12797 OBJDUMP=$ac_ct_OBJDUMP
12800 OBJDUMP="$ac_cv_prog_OBJDUMP"
12803 test -z "$OBJDUMP" && OBJDUMP=objdump
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12814 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12815 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12818 lt_cv_file_magic_cmd='$MAGIC_CMD'
12819 lt_cv_file_magic_test_file=
12820 lt_cv_deplibs_check_method='unknown'
12821 # Need to set the preceding variable on all platforms that support
12822 # interlibrary dependencies.
12823 # 'none' -- dependencies not supported.
12824 # `unknown' -- same as none, but documents that we really don't know.
12825 # 'pass_all' -- all dependencies passed with no checks.
12826 # 'test_compile' -- check by making test program.
12827 # 'file_magic [[regex]]' -- check by looking for files in library path
12828 # which responds to the $file_magic_cmd with a given extended regex.
12829 # If you have `file' or equivalent on your system and you're not sure
12830 # whether `pass_all' will *always* work, you probably want this one.
12834 lt_cv_deplibs_check_method=pass_all
12838 lt_cv_deplibs_check_method=pass_all
12842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12843 lt_cv_file_magic_cmd='/usr/bin/file -L'
12844 lt_cv_file_magic_test_file=/shlib/libc.so
12848 # func_win32_libid is a shell function defined in ltmain.sh
12849 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12850 lt_cv_file_magic_cmd='func_win32_libid'
12854 # Base MSYS/MinGW do not provide the 'file' command needed by
12855 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12856 # unless we find 'file', for example because we are cross-compiling.
12857 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12858 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12859 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12860 lt_cv_file_magic_cmd='func_win32_libid'
12862 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12863 lt_cv_file_magic_cmd='$OBJDUMP -f'
12868 # use the weaker test based on 'objdump'. See mingw*.
12869 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12870 lt_cv_file_magic_cmd='$OBJDUMP -f'
12873 darwin* | rhapsody*)
12874 lt_cv_deplibs_check_method=pass_all
12877 freebsd* | dragonfly*)
12878 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12881 # Not sure whether the presence of OpenBSD here was a mistake.
12882 # Let's accept both of them until this is cleared up.
12883 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12884 lt_cv_file_magic_cmd=/usr/bin/file
12885 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12889 lt_cv_deplibs_check_method=pass_all
12894 lt_cv_deplibs_check_method=pass_all
12898 lt_cv_deplibs_check_method=pass_all
12901 hpux10.20* | hpux11*)
12902 lt_cv_file_magic_cmd=/usr/bin/file
12905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12906 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12909 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
12910 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12914 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12920 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12924 irix5* | irix6* | nonstopux*)
12926 *-32|*"-32 ") libmagic=32-bit;;
12927 *-n32|*"-n32 ") libmagic=N32;;
12928 *-64|*"-64 ") libmagic=64-bit;;
12929 *) libmagic=never-match;;
12931 lt_cv_deplibs_check_method=pass_all
12934 # This must be Linux ELF.
12935 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12936 lt_cv_deplibs_check_method=pass_all
12940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12949 lt_cv_file_magic_cmd=/usr/bin/file
12950 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12954 lt_cv_deplibs_check_method=pass_all
12958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12965 osf3* | osf4* | osf5*)
12966 lt_cv_deplibs_check_method=pass_all
12970 lt_cv_deplibs_check_method=pass_all
12974 lt_cv_deplibs_check_method=pass_all
12977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12978 lt_cv_deplibs_check_method=pass_all
12982 case $host_vendor in
12984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
12985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12988 lt_cv_deplibs_check_method=pass_all
12991 lt_cv_file_magic_cmd='/bin/file'
12992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12995 lt_cv_file_magic_cmd='/bin/file'
12996 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12997 lt_cv_file_magic_test_file=/lib/libc.so
13000 lt_cv_deplibs_check_method=pass_all
13003 lt_cv_deplibs_check_method=pass_all
13009 lt_cv_deplibs_check_method=pass_all
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13015 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13016 file_magic_cmd=$lt_cv_file_magic_cmd
13017 deplibs_check_method=$lt_cv_deplibs_check_method
13018 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13031 if test -n "$ac_tool_prefix"; then
13032 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13033 set dummy ${ac_tool_prefix}ar; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_prog_AR+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13039 if test -n "$AR"; then
13040 ac_cv_prog_AR="$AR" # Let the user override the test.
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13049 ac_cv_prog_AR="${ac_tool_prefix}ar"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 if test -n "$AR"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13062 $as_echo "$AR" >&6; }
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13070 if test -z "$ac_cv_prog_AR"; then
13072 # Extract the first word of "ar", so it can be a program name with args.
13073 set dummy ar; ac_word=$2
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13075 $as_echo_n "checking for $ac_word... " >&6; }
13076 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
13079 if test -n "$ac_ct_AR"; then
13080 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089 ac_cv_prog_ac_ct_AR="ar"
13090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13099 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13100 if test -n "$ac_ct_AR"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13102 $as_echo "$ac_ct_AR" >&6; }
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13108 if test "x$ac_ct_AR" = x; then
13111 case $cross_compiling:$ac_tool_warned in
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13115 ac_tool_warned=yes ;;
13120 AR="$ac_cv_prog_AR"
13123 test -z "$AR" && AR=ar
13124 test -z "$AR_FLAGS" && AR_FLAGS=cru
13136 if test -n "$ac_tool_prefix"; then
13137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13138 set dummy ${ac_tool_prefix}strip; ac_word=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if test "${ac_cv_prog_STRIP+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13144 if test -n "$STRIP"; then
13145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 STRIP=$ac_cv_prog_STRIP
13165 if test -n "$STRIP"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13167 $as_echo "$STRIP" >&6; }
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13175 if test -z "$ac_cv_prog_STRIP"; then
13177 # Extract the first word of "strip", so it can be a program name with args.
13178 set dummy strip; ac_word=$2
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180 $as_echo_n "checking for $ac_word... " >&6; }
13181 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13182 $as_echo_n "(cached) " >&6
13184 if test -n "$ac_ct_STRIP"; then
13185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13194 ac_cv_prog_ac_ct_STRIP="strip"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13205 if test -n "$ac_ct_STRIP"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13207 $as_echo "$ac_ct_STRIP" >&6; }
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13213 if test "x$ac_ct_STRIP" = x; then
13216 case $cross_compiling:$ac_tool_warned in
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13220 ac_tool_warned=yes ;;
13225 STRIP="$ac_cv_prog_STRIP"
13228 test -z "$STRIP" && STRIP=:
13235 if test -n "$ac_tool_prefix"; then
13236 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13237 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13241 $as_echo_n "(cached) " >&6
13243 if test -n "$RANLIB"; then
13244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13253 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 RANLIB=$ac_cv_prog_RANLIB
13264 if test -n "$RANLIB"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13266 $as_echo "$RANLIB" >&6; }
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13274 if test -z "$ac_cv_prog_RANLIB"; then
13275 ac_ct_RANLIB=$RANLIB
13276 # Extract the first word of "ranlib", so it can be a program name with args.
13277 set dummy ranlib; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 $as_echo_n "checking for $ac_word... " >&6; }
13280 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13281 $as_echo_n "(cached) " >&6
13283 if test -n "$ac_ct_RANLIB"; then
13284 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293 ac_cv_prog_ac_ct_RANLIB="ranlib"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13303 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13304 if test -n "$ac_ct_RANLIB"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13306 $as_echo "$ac_ct_RANLIB" >&6; }
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13312 if test "x$ac_ct_RANLIB" = x; then
13315 case $cross_compiling:$ac_tool_warned in
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13319 ac_tool_warned=yes ;;
13321 RANLIB=$ac_ct_RANLIB
13324 RANLIB="$ac_cv_prog_RANLIB"
13327 test -z "$RANLIB" && RANLIB=:
13334 # Determine commands to create old-style static archives.
13335 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13336 old_postinstall_cmds='chmod 644 $oldlib'
13337 old_postuninstall_cmds=
13339 if test -n "$RANLIB"; then
13342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13345 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13348 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13353 lock_old_archive_extraction=yes ;;
13355 lock_old_archive_extraction=no ;;
13396 # If no C compiler was specified, use CC.
13399 # If no C compiler flags were specified, use CFLAGS.
13400 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13402 # Allow CC to be a program name with arguments.
13406 # Check for command to grab the raw symbol name followed by C symbol from nm.
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13408 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13409 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13413 # These are sane defaults that work on at least a few old systems.
13414 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13416 # Character class describing NM global symbol codes.
13417 symcode='[BCDEGRST]'
13419 # Regexp to match symbols that can be accessed directly from C.
13420 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13422 # Define system-specific variables.
13427 cygwin* | mingw* | pw32* | cegcc*)
13428 symcode='[ABCDGISTW]'
13431 if test "$host_cpu" = ia64; then
13432 symcode='[ABCDEGRST]'
13435 irix* | nonstopux*)
13436 symcode='[BCDEGRST]'
13439 symcode='[BCDEGQRST]'
13450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13458 # If we're using GNU nm, then use its standard symbol codes.
13459 case `$NM -V 2>&1` in
13460 *GNU* | *'with BFD'*)
13461 symcode='[ABCDGIRSTW]' ;;
13464 # Transform an extracted symbol line into a proper C declaration.
13465 # Some systems (esp. on ia64) link data and code symbols differently,
13466 # so use this general approach.
13467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13469 # Transform an extracted symbol line into symbol name and symbol address
13470 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13471 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
13473 # Handle CRLF in mingw tool chain
13477 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13481 # Try without a prefix underscore, then with it.
13482 for ac_symprfx in "" "_"; do
13484 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13485 symxfrm="\\1 $ac_symprfx\\2 \\2"
13487 # Write the raw and C identifiers.
13488 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13489 # Fake it for dumpbin and say T for any non-static function
13490 # and D for any global variable.
13491 # Also find C++ and __fastcall symbols from MSVC++,
13492 # which start with @ or ?.
13493 lt_cv_sys_global_symbol_pipe="$AWK '"\
13494 " {last_section=section; section=\$ 3};"\
13495 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13496 " \$ 0!~/External *\|/{next};"\
13497 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13498 " {if(hide[section]) next};"\
13499 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13500 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13501 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13502 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13503 " ' prfx=^$ac_symprfx"
13505 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13508 # Check to see that the pipe works correctly.
13512 cat > conftest.$ac_ext <<_LT_EOF
13517 void nm_test_func(void);
13518 void nm_test_func(void){}
13522 int main(){nm_test_var='a';nm_test_func();return(0);}
13525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13526 (eval $ac_compile) 2>&5
13528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13529 test $ac_status = 0; }; then
13530 # Now try to grab the symbols.
13532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13533 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13536 test $ac_status = 0; } && test -s "$nlist"; then
13537 # Try sorting and uniquifying the output.
13538 if sort "$nlist" | uniq > "$nlist"T; then
13539 mv -f "$nlist"T "$nlist"
13544 # Make sure that we snagged all the symbols we need.
13545 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13546 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13547 cat <<_LT_EOF > conftest.$ac_ext
13553 # Now generate the symbol file.
13554 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13556 cat <<_LT_EOF >> conftest.$ac_ext
13558 /* The mapping between symbol names and symbols. */
13563 lt__PROGRAM__LTX_preloaded_symbols[] =
13565 { "@PROGRAM@", (void *) 0 },
13567 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13568 cat <<\_LT_EOF >> conftest.$ac_ext
13572 /* This works around a problem in FreeBSD linker */
13573 #ifdef FREEBSD_WORKAROUND
13574 static const void *lt_preloaded_setup() {
13575 return lt__PROGRAM__LTX_preloaded_symbols;
13583 # Now try linking the two files.
13584 mv conftest.$ac_objext conftstm.$ac_objext
13585 lt_save_LIBS="$LIBS"
13586 lt_save_CFLAGS="$CFLAGS"
13587 LIBS="conftstm.$ac_objext"
13588 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13590 (eval $ac_link) 2>&5
13592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13593 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13596 LIBS="$lt_save_LIBS"
13597 CFLAGS="$lt_save_CFLAGS"
13599 echo "cannot find nm_test_func in $nlist" >&5
13602 echo "cannot find nm_test_var in $nlist" >&5
13605 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13608 echo "$progname: failed program was:" >&5
13609 cat conftest.$ac_ext >&5
13611 rm -rf conftest* conftst*
13613 # Do not use the global_symbol_pipe unless it works.
13614 if test "$pipe_works" = yes; then
13617 lt_cv_sys_global_symbol_pipe=
13623 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13624 lt_cv_sys_global_symbol_to_cdecl=
13626 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13628 $as_echo "failed" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13631 $as_echo "ok" >&6; }
13655 # Check whether --enable-libtool-lock was given.
13656 if test "${enable_libtool_lock+set}" = set; then :
13657 enableval=$enable_libtool_lock;
13660 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13662 # Some flags need to be propagated to the compiler or linker for good
13666 # Find out which ABI we are using.
13667 echo 'int i;' > conftest.$ac_ext
13668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13669 (eval $ac_compile) 2>&5
13671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13672 test $ac_status = 0; }; then
13673 case `/usr/bin/file conftest.$ac_objext` in
13675 HPUX_IA64_MODE="32"
13678 HPUX_IA64_MODE="64"
13685 # Find out which ABI we are using.
13686 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13688 (eval $ac_compile) 2>&5
13690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13691 test $ac_status = 0; }; then
13692 if test "$lt_cv_prog_gnu_ld" = yes; then
13693 case `/usr/bin/file conftest.$ac_objext` in
13695 LD="${LD-ld} -melf32bsmip"
13698 LD="${LD-ld} -melf32bmipn32"
13701 LD="${LD-ld} -melf64bmip"
13705 case `/usr/bin/file conftest.$ac_objext` in
13721 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13722 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13723 # Find out which ABI we are using.
13724 echo 'int i;' > conftest.$ac_ext
13725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13726 (eval $ac_compile) 2>&5
13728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13729 test $ac_status = 0; }; then
13730 case `/usr/bin/file conftest.o` in
13733 x86_64-*kfreebsd*-gnu)
13734 LD="${LD-ld} -m elf_i386_fbsd"
13737 LD="${LD-ld} -m elf_i386"
13739 ppc64-*linux*|powerpc64-*linux*)
13740 LD="${LD-ld} -m elf32ppclinux"
13743 LD="${LD-ld} -m elf_s390"
13746 LD="${LD-ld} -m elf32_sparc"
13752 x86_64-*kfreebsd*-gnu)
13753 LD="${LD-ld} -m elf_x86_64_fbsd"
13756 LD="${LD-ld} -m elf_x86_64"
13758 ppc*-*linux*|powerpc*-*linux*)
13759 LD="${LD-ld} -m elf64ppc"
13761 s390*-*linux*|s390*-*tpf*)
13762 LD="${LD-ld} -m elf64_s390"
13765 LD="${LD-ld} -m elf64_sparc"
13775 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13776 SAVE_CFLAGS="$CFLAGS"
13777 CFLAGS="$CFLAGS -belf"
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13779 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13780 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
13784 ac_cpp='$CPP $CPPFLAGS'
13785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13800 if ac_fn_c_try_link "$LINENO"; then :
13801 lt_cv_cc_needs_belf=yes
13803 lt_cv_cc_needs_belf=no
13805 rm -f core conftest.err conftest.$ac_objext \
13806 conftest$ac_exeext conftest.$ac_ext
13808 ac_cpp='$CPP $CPPFLAGS'
13809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13815 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13816 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13817 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13818 CFLAGS="$SAVE_CFLAGS"
13822 # Find out which ABI we are using.
13823 echo 'int i;' > conftest.$ac_ext
13824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13825 (eval $ac_compile) 2>&5
13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828 test $ac_status = 0; }; then
13829 case `/usr/bin/file conftest.o` in
13831 case $lt_cv_prog_gnu_ld in
13832 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13834 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13846 need_locks="$enable_libtool_lock"
13850 rhapsody* | darwin*)
13851 if test -n "$ac_tool_prefix"; then
13852 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13853 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855 $as_echo_n "checking for $ac_word... " >&6; }
13856 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13857 $as_echo_n "(cached) " >&6
13859 if test -n "$DSYMUTIL"; then
13860 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
13868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13869 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13879 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13880 if test -n "$DSYMUTIL"; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13882 $as_echo "$DSYMUTIL" >&6; }
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885 $as_echo "no" >&6; }
13890 if test -z "$ac_cv_prog_DSYMUTIL"; then
13891 ac_ct_DSYMUTIL=$DSYMUTIL
13892 # Extract the first word of "dsymutil", so it can be a program name with args.
13893 set dummy dsymutil; ac_word=$2
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13895 $as_echo_n "checking for $ac_word... " >&6; }
13896 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13897 $as_echo_n "(cached) " >&6
13899 if test -n "$ac_ct_DSYMUTIL"; then
13900 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13906 test -z "$as_dir" && as_dir=.
13907 for ac_exec_ext in '' $ac_executable_extensions; do
13908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13909 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13919 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13920 if test -n "$ac_ct_DSYMUTIL"; then
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13922 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13925 $as_echo "no" >&6; }
13928 if test "x$ac_ct_DSYMUTIL" = x; then
13931 case $cross_compiling:$ac_tool_warned in
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13935 ac_tool_warned=yes ;;
13937 DSYMUTIL=$ac_ct_DSYMUTIL
13940 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13943 if test -n "$ac_tool_prefix"; then
13944 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13945 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13947 $as_echo_n "checking for $ac_word... " >&6; }
13948 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13949 $as_echo_n "(cached) " >&6
13951 if test -n "$NMEDIT"; then
13952 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13955 for as_dir in $PATH
13958 test -z "$as_dir" && as_dir=.
13959 for ac_exec_ext in '' $ac_executable_extensions; do
13960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13961 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13971 NMEDIT=$ac_cv_prog_NMEDIT
13972 if test -n "$NMEDIT"; then
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13974 $as_echo "$NMEDIT" >&6; }
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977 $as_echo "no" >&6; }
13982 if test -z "$ac_cv_prog_NMEDIT"; then
13983 ac_ct_NMEDIT=$NMEDIT
13984 # Extract the first word of "nmedit", so it can be a program name with args.
13985 set dummy nmedit; ac_word=$2
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13987 $as_echo_n "checking for $ac_word... " >&6; }
13988 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13989 $as_echo_n "(cached) " >&6
13991 if test -n "$ac_ct_NMEDIT"; then
13992 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13995 for as_dir in $PATH
13998 test -z "$as_dir" && as_dir=.
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14001 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14011 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14012 if test -n "$ac_ct_NMEDIT"; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14014 $as_echo "$ac_ct_NMEDIT" >&6; }
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14020 if test "x$ac_ct_NMEDIT" = x; then
14023 case $cross_compiling:$ac_tool_warned in
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14027 ac_tool_warned=yes ;;
14029 NMEDIT=$ac_ct_NMEDIT
14032 NMEDIT="$ac_cv_prog_NMEDIT"
14035 if test -n "$ac_tool_prefix"; then
14036 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14037 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14039 $as_echo_n "checking for $ac_word... " >&6; }
14040 if test "${ac_cv_prog_LIPO+set}" = set; then :
14041 $as_echo_n "(cached) " >&6
14043 if test -n "$LIPO"; then
14044 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047 for as_dir in $PATH
14050 test -z "$as_dir" && as_dir=.
14051 for ac_exec_ext in '' $ac_executable_extensions; do
14052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14053 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14063 LIPO=$ac_cv_prog_LIPO
14064 if test -n "$LIPO"; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14066 $as_echo "$LIPO" >&6; }
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14074 if test -z "$ac_cv_prog_LIPO"; then
14076 # Extract the first word of "lipo", so it can be a program name with args.
14077 set dummy lipo; ac_word=$2
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14079 $as_echo_n "checking for $ac_word... " >&6; }
14080 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14081 $as_echo_n "(cached) " >&6
14083 if test -n "$ac_ct_LIPO"; then
14084 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14093 ac_cv_prog_ac_ct_LIPO="lipo"
14094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14104 if test -n "$ac_ct_LIPO"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14106 $as_echo "$ac_ct_LIPO" >&6; }
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14112 if test "x$ac_ct_LIPO" = x; then
14115 case $cross_compiling:$ac_tool_warned in
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14119 ac_tool_warned=yes ;;
14124 LIPO="$ac_cv_prog_LIPO"
14127 if test -n "$ac_tool_prefix"; then
14128 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14129 set dummy ${ac_tool_prefix}otool; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131 $as_echo_n "checking for $ac_word... " >&6; }
14132 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14133 $as_echo_n "(cached) " >&6
14135 if test -n "$OTOOL"; then
14136 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14145 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14155 OTOOL=$ac_cv_prog_OTOOL
14156 if test -n "$OTOOL"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14158 $as_echo "$OTOOL" >&6; }
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14166 if test -z "$ac_cv_prog_OTOOL"; then
14168 # Extract the first word of "otool", so it can be a program name with args.
14169 set dummy otool; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14175 if test -n "$ac_ct_OTOOL"; then
14176 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14185 ac_cv_prog_ac_ct_OTOOL="otool"
14186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14195 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14196 if test -n "$ac_ct_OTOOL"; then
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14198 $as_echo "$ac_ct_OTOOL" >&6; }
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 $as_echo "no" >&6; }
14204 if test "x$ac_ct_OTOOL" = x; then
14207 case $cross_compiling:$ac_tool_warned in
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14211 ac_tool_warned=yes ;;
14216 OTOOL="$ac_cv_prog_OTOOL"
14219 if test -n "$ac_tool_prefix"; then
14220 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14221 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14225 $as_echo_n "(cached) " >&6
14227 if test -n "$OTOOL64"; then
14228 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
14236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14237 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14247 OTOOL64=$ac_cv_prog_OTOOL64
14248 if test -n "$OTOOL64"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14250 $as_echo "$OTOOL64" >&6; }
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14258 if test -z "$ac_cv_prog_OTOOL64"; then
14259 ac_ct_OTOOL64=$OTOOL64
14260 # Extract the first word of "otool64", so it can be a program name with args.
14261 set dummy otool64; ac_word=$2
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263 $as_echo_n "checking for $ac_word... " >&6; }
14264 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14265 $as_echo_n "(cached) " >&6
14267 if test -n "$ac_ct_OTOOL64"; then
14268 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271 for as_dir in $PATH
14274 test -z "$as_dir" && as_dir=.
14275 for ac_exec_ext in '' $ac_executable_extensions; do
14276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14277 ac_cv_prog_ac_ct_OTOOL64="otool64"
14278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14288 if test -n "$ac_ct_OTOOL64"; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14290 $as_echo "$ac_ct_OTOOL64" >&6; }
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293 $as_echo "no" >&6; }
14296 if test "x$ac_ct_OTOOL64" = x; then
14299 case $cross_compiling:$ac_tool_warned in
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14303 ac_tool_warned=yes ;;
14305 OTOOL64=$ac_ct_OTOOL64
14308 OTOOL64="$ac_cv_prog_OTOOL64"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14338 $as_echo_n "checking for -single_module linker flag... " >&6; }
14339 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14340 $as_echo_n "(cached) " >&6
14342 lt_cv_apple_cc_single_mod=no
14343 if test -z "${LT_MULTI_MODULE}"; then
14344 # By default we will add the -single_module flag. You can override
14345 # by either setting the environment variable LT_MULTI_MODULE
14346 # non-empty at configure time, or by adding -multi_module to the
14348 rm -rf libconftest.dylib*
14349 echo "int foo(void){return 1;}" > conftest.c
14350 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14351 -dynamiclib -Wl,-single_module conftest.c" >&5
14352 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14353 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14355 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14356 lt_cv_apple_cc_single_mod=yes
14358 cat conftest.err >&5
14360 rm -rf libconftest.dylib*
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14365 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14367 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14368 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14371 lt_cv_ld_exported_symbols_list=no
14372 save_LDFLAGS=$LDFLAGS
14373 echo "_main" > conftest.sym
14374 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14386 if ac_fn_c_try_link "$LINENO"; then :
14387 lt_cv_ld_exported_symbols_list=yes
14389 lt_cv_ld_exported_symbols_list=no
14391 rm -f core conftest.err conftest.$ac_objext \
14392 conftest$ac_exeext conftest.$ac_ext
14393 LDFLAGS="$save_LDFLAGS"
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14397 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14399 $as_echo_n "checking for -force_load linker flag... " >&6; }
14400 if test "${lt_cv_ld_force_load+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14403 lt_cv_ld_force_load=no
14404 cat > conftest.c << _LT_EOF
14405 int forced_loaded() { return 2;}
14407 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14408 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14409 echo "$AR cru libconftest.a conftest.o" >&5
14410 $AR cru libconftest.a conftest.o 2>&5
14411 cat > conftest.c << _LT_EOF
14412 int main() { return 0;}
14414 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14415 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14417 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14418 lt_cv_ld_force_load=yes
14420 cat conftest.err >&5
14422 rm -f conftest.err libconftest.a conftest conftest.c
14423 rm -rf conftest.dSYM
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14427 $as_echo "$lt_cv_ld_force_load" >&6; }
14429 rhapsody* | darwin1.[012])
14430 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14432 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14433 darwin*) # darwin 5.x on
14434 # if running on 10.5 or later, the deployment target defaults
14435 # to the OS version, if on x86, and 10.4, the deployment
14436 # target defaults to 10.4. Don't you love it?
14437 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14438 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14439 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14441 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14443 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14447 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14448 _lt_dar_single_mod='$single_module'
14450 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14451 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14453 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14455 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14456 _lt_dsymutil='~$DSYMUTIL $lib || :'
14463 for ac_header in dlfcn.h
14465 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14466 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_DLFCN_H 1
14485 enable_win32_dll=no
14488 # Check whether --enable-shared was given.
14489 if test "${enable_shared+set}" = set; then :
14490 enableval=$enable_shared; p=${PACKAGE-default}
14492 yes) enable_shared=yes ;;
14493 no) enable_shared=no ;;
14496 # Look at the argument we got. We use all the common list separators.
14497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14498 for pkg in $enableval; do
14500 if test "X$pkg" = "X$p"; then
14519 # Check whether --enable-static was given.
14520 if test "${enable_static+set}" = set; then :
14521 enableval=$enable_static; p=${PACKAGE-default}
14523 yes) enable_static=yes ;;
14524 no) enable_static=no ;;
14527 # Look at the argument we got. We use all the common list separators.
14528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14529 for pkg in $enableval; do
14531 if test "X$pkg" = "X$p"; then
14551 # Check whether --with-pic was given.
14552 if test "${with_pic+set}" = set; then :
14553 withval=$with_pic; pic_mode="$withval"
14559 test -z "$pic_mode" && pic_mode=default
14567 # Check whether --enable-fast-install was given.
14568 if test "${enable_fast_install+set}" = set; then :
14569 enableval=$enable_fast_install; p=${PACKAGE-default}
14571 yes) enable_fast_install=yes ;;
14572 no) enable_fast_install=no ;;
14574 enable_fast_install=no
14575 # Look at the argument we got. We use all the common list separators.
14576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14577 for pkg in $enableval; do
14579 if test "X$pkg" = "X$p"; then
14580 enable_fast_install=yes
14587 enable_fast_install=yes
14600 # This can be used to rebuild libtool when needed
14601 LIBTOOL_DEPS="$ltmain"
14603 # Always use our own libtool.
14604 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14631 test -z "$LN_S" && LN_S="ln -s"
14646 if test -n "${ZSH_VERSION+set}" ; then
14647 setopt NO_GLOB_SUBST
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14651 $as_echo_n "checking for objdir... " >&6; }
14652 if test "${lt_cv_objdir+set}" = set; then :
14653 $as_echo_n "(cached) " >&6
14655 rm -f .libs 2>/dev/null
14656 mkdir .libs 2>/dev/null
14657 if test -d .libs; then
14660 # MS-DOS does not allow filenames that begin with a dot.
14663 rmdir .libs 2>/dev/null
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14666 $as_echo "$lt_cv_objdir" >&6; }
14667 objdir=$lt_cv_objdir
14673 cat >>confdefs.h <<_ACEOF
14674 #define LT_OBJDIR "$lt_cv_objdir/"
14682 # AIX sometimes has problems with the GCC collect2 program. For some
14683 # reason, if we set the COLLECT_NAMES environment variable, the problems
14684 # vanish in a puff of smoke.
14685 if test "X${COLLECT_NAMES+set}" != Xset; then
14687 export COLLECT_NAMES
14692 # Global variables:
14694 can_build_shared=yes
14696 # All known linkers require a `.a' archive for static linking (except MSVC,
14697 # which needs '.lib').
14700 with_gnu_ld="$lt_cv_prog_gnu_ld"
14703 old_CFLAGS="$CFLAGS"
14705 # Set sane defaults for various variables
14706 test -z "$CC" && CC=cc
14707 test -z "$LTCC" && LTCC=$CC
14708 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14709 test -z "$LD" && LD=ld
14710 test -z "$ac_objext" && ac_objext=o
14712 for cc_temp in $compiler""; do
14714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14720 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14723 # Only perform the check for file, if the check method requires it
14724 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14725 case $deplibs_check_method in
14727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14729 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14730 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14731 $as_echo_n "(cached) " >&6
14735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14738 lt_save_MAGIC_CMD="$MAGIC_CMD"
14739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14741 for ac_dir in $ac_dummy; do
14743 test -z "$ac_dir" && ac_dir=.
14744 if test -f $ac_dir/${ac_tool_prefix}file; then
14745 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14746 if test -n "$file_magic_test_file"; then
14747 case $deplibs_check_method in
14749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14752 $EGREP "$file_magic_regex" > /dev/null; then
14757 *** Warning: the command libtool uses to detect shared libraries,
14758 *** $file_magic_cmd, produces output that libtool cannot recognize.
14759 *** The result is that libtool may fail to recognize shared libraries
14760 *** as such. This will affect the creation of libtool libraries that
14761 *** depend on shared libraries, but programs linked with such libtool
14762 *** libraries will work regardless of this problem. Nevertheless, you
14763 *** may want to report the problem to your system manager and/or to
14764 *** bug-libtool@gnu.org
14774 MAGIC_CMD="$lt_save_MAGIC_CMD"
14779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14780 if test -n "$MAGIC_CMD"; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14782 $as_echo "$MAGIC_CMD" >&6; }
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785 $as_echo "no" >&6; }
14792 if test -z "$lt_cv_path_MAGIC_CMD"; then
14793 if test -n "$ac_tool_prefix"; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14795 $as_echo_n "checking for file... " >&6; }
14796 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14797 $as_echo_n "(cached) " >&6
14801 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14804 lt_save_MAGIC_CMD="$MAGIC_CMD"
14805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14807 for ac_dir in $ac_dummy; do
14809 test -z "$ac_dir" && ac_dir=.
14810 if test -f $ac_dir/file; then
14811 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14812 if test -n "$file_magic_test_file"; then
14813 case $deplibs_check_method in
14815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14818 $EGREP "$file_magic_regex" > /dev/null; then
14823 *** Warning: the command libtool uses to detect shared libraries,
14824 *** $file_magic_cmd, produces output that libtool cannot recognize.
14825 *** The result is that libtool may fail to recognize shared libraries
14826 *** as such. This will affect the creation of libtool libraries that
14827 *** depend on shared libraries, but programs linked with such libtool
14828 *** libraries will work regardless of this problem. Nevertheless, you
14829 *** may want to report the problem to your system manager and/or to
14830 *** bug-libtool@gnu.org
14840 MAGIC_CMD="$lt_save_MAGIC_CMD"
14845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14846 if test -n "$MAGIC_CMD"; then
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14848 $as_echo "$MAGIC_CMD" >&6; }
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14851 $as_echo "no" >&6; }
14864 # Use C for the default configuration in the libtool script
14868 ac_cpp='$CPP $CPPFLAGS'
14869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14874 # Source file extension for C test sources.
14877 # Object file extension for compiled C test sources.
14881 # Code to be used in simple compile tests
14882 lt_simple_compile_test_code="int some_variable = 0;"
14884 # Code to be used in simple link tests
14885 lt_simple_link_test_code='int main(){return(0);}'
14893 # If no C compiler was specified, use CC.
14896 # If no C compiler flags were specified, use CFLAGS.
14897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14899 # Allow CC to be a program name with arguments.
14902 # Save the default compiler, since it gets overwritten when the other
14903 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14904 compiler_DEFAULT=$CC
14906 # save warnings/boilerplate of simple test code
14907 ac_outfile=conftest.$ac_objext
14908 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14910 _lt_compiler_boilerplate=`cat conftest.err`
14913 ac_outfile=conftest.$ac_objext
14914 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14916 _lt_linker_boilerplate=`cat conftest.err`
14921 ## There is no encapsulation within the following macros, do not change
14922 ## the running order or otherwise move them around unless you know exactly
14923 ## what you are doing...
14924 if test -n "$compiler"; then
14926 lt_prog_compiler_no_builtin_flag=
14928 if test "$GCC" = yes; then
14929 case $cc_basename in
14931 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14933 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14937 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14938 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14939 $as_echo_n "(cached) " >&6
14941 lt_cv_prog_compiler_rtti_exceptions=no
14942 ac_outfile=conftest.$ac_objext
14943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14944 lt_compiler_flag="-fno-rtti -fno-exceptions"
14945 # Insert the option either (1) after the last *FLAGS variable, or
14946 # (2) before a word containing "conftest.", or (3) at the end.
14947 # Note that $ac_compile itself does not contain backslashes and begins
14948 # with a dollar sign (not a hyphen), so the echo should work correctly.
14949 # The option is referenced via a variable to avoid confusing sed.
14950 lt_compile=`echo "$ac_compile" | $SED \
14951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14953 -e 's:$: $lt_compiler_flag:'`
14954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14955 (eval "$lt_compile" 2>conftest.err)
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 if (exit $ac_status) && test -s "$ac_outfile"; then
14960 # The compiler can only warn and ignore the option if not recognized
14961 # So say no if there are warnings other than the usual output.
14962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14965 lt_cv_prog_compiler_rtti_exceptions=yes
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14972 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14975 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14987 lt_prog_compiler_wl=
14988 lt_prog_compiler_pic=
14989 lt_prog_compiler_static=
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14992 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14994 if test "$GCC" = yes; then
14995 lt_prog_compiler_wl='-Wl,'
14996 lt_prog_compiler_static='-static'
15000 # All AIX code is PIC.
15001 if test "$host_cpu" = ia64; then
15002 # AIX 5 now supports IA64 processor
15003 lt_prog_compiler_static='-Bstatic'
15010 # see comment about AmigaOS4 .so support
15011 lt_prog_compiler_pic='-fPIC'
15014 # FIXME: we need at least 68020 code to build shared libraries, but
15015 # adding the `-m68020' flag to GCC prevents building anything better,
15017 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15022 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15023 # PIC is the default for these OSes.
15026 mingw* | cygwin* | pw32* | os2* | cegcc*)
15027 # This hack is so that the source file can tell whether it is being
15028 # built for inclusion in a dll (and should export symbols for example).
15029 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15030 # (--disable-auto-import) libraries
15031 lt_prog_compiler_pic='-DDLL_EXPORT'
15034 darwin* | rhapsody*)
15035 # PIC is the default on this platform
15036 # Common symbols not allowed in MH_DYLIB files
15037 lt_prog_compiler_pic='-fno-common'
15041 # PIC is the default for Haiku.
15042 # The "-static" flag exists, but is broken.
15043 lt_prog_compiler_static=
15047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15049 # sets the default TLS model and affects inlining.
15055 lt_prog_compiler_pic='-fPIC'
15061 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15062 # Instead, we relocate shared libraries at runtime.
15066 # Just because we use GCC doesn't mean we suddenly get shared libraries
15067 # on systems that don't support them.
15068 lt_prog_compiler_can_build_shared=no
15073 # QNX uses GNU C++, but need to define -shared option too, otherwise
15074 # it will coredump.
15075 lt_prog_compiler_pic='-fPIC -shared'
15079 if test -d /usr/nec; then
15080 lt_prog_compiler_pic=-Kconform_pic
15085 lt_prog_compiler_pic='-fPIC'
15089 case $cc_basename in
15090 nvcc*) # Cuda Compiler Driver 2.2
15091 lt_prog_compiler_wl='-Xlinker '
15092 lt_prog_compiler_pic='-Xcompiler -fPIC'
15096 # PORTME Check for flag to pass linker flags through the system compiler.
15099 lt_prog_compiler_wl='-Wl,'
15100 if test "$host_cpu" = ia64; then
15101 # AIX 5 now supports IA64 processor
15102 lt_prog_compiler_static='-Bstatic'
15104 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15108 mingw* | cygwin* | pw32* | os2* | cegcc*)
15109 # This hack is so that the source file can tell whether it is being
15110 # built for inclusion in a dll (and should export symbols for example).
15111 lt_prog_compiler_pic='-DDLL_EXPORT'
15114 hpux9* | hpux10* | hpux11*)
15115 lt_prog_compiler_wl='-Wl,'
15116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15117 # not for PA HP-UX.
15123 lt_prog_compiler_pic='+Z'
15126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15127 lt_prog_compiler_static='${wl}-a ${wl}archive'
15130 irix5* | irix6* | nonstopux*)
15131 lt_prog_compiler_wl='-Wl,'
15132 # PIC (with -KPIC) is the default.
15133 lt_prog_compiler_static='-non_shared'
15136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15137 case $cc_basename in
15138 # old Intel for x86_64 which still supported -KPIC.
15140 lt_prog_compiler_wl='-Wl,'
15141 lt_prog_compiler_pic='-KPIC'
15142 lt_prog_compiler_static='-static'
15144 # icc used to be incompatible with GCC.
15145 # ICC 10 doesn't accept -KPIC any more.
15147 lt_prog_compiler_wl='-Wl,'
15148 lt_prog_compiler_pic='-fPIC'
15149 lt_prog_compiler_static='-static'
15151 # Lahey Fortran 8.1.
15153 lt_prog_compiler_wl='-Wl,'
15154 lt_prog_compiler_pic='--shared'
15155 lt_prog_compiler_static='--static'
15157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15158 # Portland Group compilers (*not* the Pentium gcc compiler,
15159 # which looks to be a dead project)
15160 lt_prog_compiler_wl='-Wl,'
15161 lt_prog_compiler_pic='-fpic'
15162 lt_prog_compiler_static='-Bstatic'
15165 lt_prog_compiler_wl='-Wl,'
15166 # All Alpha code is PIC.
15167 lt_prog_compiler_static='-non_shared'
15169 xl* | bgxl* | bgf* | mpixl*)
15170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15171 lt_prog_compiler_wl='-Wl,'
15172 lt_prog_compiler_pic='-qpic'
15173 lt_prog_compiler_static='-qstaticlink'
15176 case `$CC -V 2>&1 | sed 5q` in
15177 *Sun\ F* | *Sun*Fortran*)
15178 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15179 lt_prog_compiler_pic='-KPIC'
15180 lt_prog_compiler_static='-Bstatic'
15181 lt_prog_compiler_wl=''
15185 lt_prog_compiler_pic='-KPIC'
15186 lt_prog_compiler_static='-Bstatic'
15187 lt_prog_compiler_wl='-Wl,'
15195 lt_prog_compiler_pic='-KPIC'
15196 lt_prog_compiler_static='-Bstatic'
15200 # QNX uses GNU C++, but need to define -shared option too, otherwise
15201 # it will coredump.
15202 lt_prog_compiler_pic='-fPIC -shared'
15205 osf3* | osf4* | osf5*)
15206 lt_prog_compiler_wl='-Wl,'
15207 # All OSF/1 code is PIC.
15208 lt_prog_compiler_static='-non_shared'
15212 lt_prog_compiler_static='-non_shared'
15216 lt_prog_compiler_pic='-KPIC'
15217 lt_prog_compiler_static='-Bstatic'
15218 case $cc_basename in
15219 f77* | f90* | f95*)
15220 lt_prog_compiler_wl='-Qoption ld ';;
15222 lt_prog_compiler_wl='-Wl,';;
15227 lt_prog_compiler_wl='-Qoption ld '
15228 lt_prog_compiler_pic='-PIC'
15229 lt_prog_compiler_static='-Bstatic'
15232 sysv4 | sysv4.2uw2* | sysv4.3*)
15233 lt_prog_compiler_wl='-Wl,'
15234 lt_prog_compiler_pic='-KPIC'
15235 lt_prog_compiler_static='-Bstatic'
15239 if test -d /usr/nec ;then
15240 lt_prog_compiler_pic='-Kconform_pic'
15241 lt_prog_compiler_static='-Bstatic'
15245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15246 lt_prog_compiler_wl='-Wl,'
15247 lt_prog_compiler_pic='-KPIC'
15248 lt_prog_compiler_static='-Bstatic'
15252 lt_prog_compiler_wl='-Wl,'
15253 lt_prog_compiler_can_build_shared=no
15257 lt_prog_compiler_pic='-pic'
15258 lt_prog_compiler_static='-Bstatic'
15262 lt_prog_compiler_can_build_shared=no
15268 # For platforms which do not support PIC, -DPIC is meaningless:
15270 lt_prog_compiler_pic=
15273 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15277 $as_echo "$lt_prog_compiler_pic" >&6; }
15285 # Check to make sure the PIC flag actually works.
15287 if test -n "$lt_prog_compiler_pic"; then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15289 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15290 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15291 $as_echo_n "(cached) " >&6
15293 lt_cv_prog_compiler_pic_works=no
15294 ac_outfile=conftest.$ac_objext
15295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15296 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15297 # Insert the option either (1) after the last *FLAGS variable, or
15298 # (2) before a word containing "conftest.", or (3) at the end.
15299 # Note that $ac_compile itself does not contain backslashes and begins
15300 # with a dollar sign (not a hyphen), so the echo should work correctly.
15301 # The option is referenced via a variable to avoid confusing sed.
15302 lt_compile=`echo "$ac_compile" | $SED \
15303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15305 -e 's:$: $lt_compiler_flag:'`
15306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15307 (eval "$lt_compile" 2>conftest.err)
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 if (exit $ac_status) && test -s "$ac_outfile"; then
15312 # The compiler can only warn and ignore the option if not recognized
15313 # So say no if there are warnings other than the usual output.
15314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15317 lt_cv_prog_compiler_pic_works=yes
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15324 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15326 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15327 case $lt_prog_compiler_pic in
15329 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15332 lt_prog_compiler_pic=
15333 lt_prog_compiler_can_build_shared=no
15344 # Check to make sure the static flag actually works.
15346 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15348 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15349 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15350 $as_echo_n "(cached) " >&6
15352 lt_cv_prog_compiler_static_works=no
15353 save_LDFLAGS="$LDFLAGS"
15354 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15355 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15357 # The linker can only warn and ignore the option if not recognized
15358 # So say no if there are warnings
15359 if test -s conftest.err; then
15360 # Append any errors to the config.log.
15361 cat conftest.err 1>&5
15362 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15364 if diff conftest.exp conftest.er2 >/dev/null; then
15365 lt_cv_prog_compiler_static_works=yes
15368 lt_cv_prog_compiler_static_works=yes
15372 LDFLAGS="$save_LDFLAGS"
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15376 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15378 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15381 lt_prog_compiler_static=
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15393 $as_echo_n "(cached) " >&6
15395 lt_cv_prog_compiler_c_o=no
15396 $RM -r conftest 2>/dev/null
15400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15402 lt_compiler_flag="-o out/conftest2.$ac_objext"
15403 # Insert the option either (1) after the last *FLAGS variable, or
15404 # (2) before a word containing "conftest.", or (3) at the end.
15405 # Note that $ac_compile itself does not contain backslashes and begins
15406 # with a dollar sign (not a hyphen), so the echo should work correctly.
15407 lt_compile=`echo "$ac_compile" | $SED \
15408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15410 -e 's:$: $lt_compiler_flag:'`
15411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15412 (eval "$lt_compile" 2>out/conftest.err)
15414 cat out/conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15418 # The compiler can only warn and ignore the option if not recognized
15419 # So say no if there are warnings
15420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15423 lt_cv_prog_compiler_c_o=yes
15428 # SGI C++ compiler will create directory out/ii_files/ for
15429 # template instantiation
15430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15431 $RM out/* && rmdir out
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15446 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15447 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15448 $as_echo_n "(cached) " >&6
15450 lt_cv_prog_compiler_c_o=no
15451 $RM -r conftest 2>/dev/null
15455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15457 lt_compiler_flag="-o out/conftest2.$ac_objext"
15458 # Insert the option either (1) after the last *FLAGS variable, or
15459 # (2) before a word containing "conftest.", or (3) at the end.
15460 # Note that $ac_compile itself does not contain backslashes and begins
15461 # with a dollar sign (not a hyphen), so the echo should work correctly.
15462 lt_compile=`echo "$ac_compile" | $SED \
15463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15465 -e 's:$: $lt_compiler_flag:'`
15466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15467 (eval "$lt_compile" 2>out/conftest.err)
15469 cat out/conftest.err >&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15473 # The compiler can only warn and ignore the option if not recognized
15474 # So say no if there are warnings
15475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15478 lt_cv_prog_compiler_c_o=yes
15483 # SGI C++ compiler will create directory out/ii_files/ for
15484 # template instantiation
15485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15486 $RM out/* && rmdir out
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15493 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15498 hard_links="nottested"
15499 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15500 # do not overwrite the value of need_locks provided by the user
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15502 $as_echo_n "checking if we can lock with hard links... " >&6; }
15505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15507 ln conftest.a conftest.b 2>&5 || hard_links=no
15508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15510 $as_echo "$hard_links" >&6; }
15511 if test "$hard_links" = no; then
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15513 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15529 allow_undefined_flag=
15530 always_export_symbols=no
15532 archive_expsym_cmds=
15533 compiler_needs_object=no
15534 enable_shared_with_static_runtimes=no
15535 export_dynamic_flag_spec=
15536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15537 hardcode_automatic=no
15539 hardcode_direct_absolute=no
15540 hardcode_libdir_flag_spec=
15541 hardcode_libdir_flag_spec_ld=
15542 hardcode_libdir_separator=
15543 hardcode_minus_L=no
15544 hardcode_shlibpath_var=unsupported
15546 link_all_deplibs=unknown
15548 module_expsym_cmds=
15549 old_archive_from_new_cmds=
15550 old_archive_from_expsyms_cmds=
15551 thread_safe_flag_spec=
15552 whole_archive_flag_spec=
15553 # include_expsyms should be a list of space-separated symbols to be *always*
15554 # included in the symbol list
15556 # exclude_expsyms can be an extended regexp of symbols to exclude
15557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15559 # as well as any symbol that contains `d'.
15560 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15562 # platforms (ab)use it in PIC code, but their linkers get confused if
15563 # the symbol is explicitly referenced. Since portable code cannot
15564 # rely on this symbol name, it's probably fine to never include it in
15565 # preloaded symbol tables.
15566 # Exclude shared library initialization/finalization symbols.
15567 extract_expsyms_cmds=
15570 cygwin* | mingw* | pw32* | cegcc*)
15571 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15572 # When not using gcc, we currently assume that we are using
15573 # Microsoft Visual C++.
15574 if test "$GCC" != yes; then
15579 # we just hope/assume this is gcc and not c89 (= MSVC++)
15589 # On some targets, GNU ld is compatible enough with the native linker
15590 # that we're better off using the native interface for both.
15591 lt_use_gnu_ld_interface=no
15592 if test "$with_gnu_ld" = yes; then
15595 # The AIX port of GNU ld has always aspired to compatibility
15596 # with the native linker. However, as the warning in the GNU ld
15597 # block says, versions before 2.19.5* couldn't really create working
15598 # shared libraries, regardless of the interface used.
15599 case `$LD -v 2>&1` in
15600 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15601 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15602 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15604 lt_use_gnu_ld_interface=yes
15609 lt_use_gnu_ld_interface=yes
15614 if test "$lt_use_gnu_ld_interface" = yes; then
15615 # If archive_cmds runs LD, not CC, wlarc should be empty
15618 # Set some defaults for GNU ld with shared library support. These
15619 # are reset later if shared libraries are not supported. Putting them
15620 # here allows them to be overridden if necessary.
15621 runpath_var=LD_RUN_PATH
15622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15623 export_dynamic_flag_spec='${wl}--export-dynamic'
15624 # ancient GNU ld didn't support --whole-archive et. al.
15625 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15628 whole_archive_flag_spec=
15630 supports_anon_versioning=no
15631 case `$LD -v 2>&1` in
15632 *GNU\ gold*) supports_anon_versioning=yes ;;
15633 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15634 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15635 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15636 *\ 2.11.*) ;; # other 2.11 versions
15637 *) supports_anon_versioning=yes ;;
15640 # See if GNU ld supports shared libraries.
15643 # On AIX/PPC, the GNU linker is very broken
15644 if test "$host_cpu" != ia64; then
15648 *** Warning: the GNU linker, at least up to release 2.19, is reported
15649 *** to be unable to reliably create shared libraries on AIX.
15650 *** Therefore, libtool is disabling shared libraries support. If you
15651 *** really care for shared libraries, you may want to install binutils
15652 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15653 *** You will then need to restart the configuration process.
15662 # see comment about AmigaOS4 .so support
15663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15664 archive_expsym_cmds=''
15667 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15668 hardcode_libdir_flag_spec='-L$libdir'
15669 hardcode_minus_L=yes
15675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15676 allow_undefined_flag=unsupported
15677 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15678 # support --undefined. This deserves some investigation. FIXME
15679 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 cygwin* | mingw* | pw32* | cegcc*)
15686 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15687 # as there is no search path for DLLs.
15688 hardcode_libdir_flag_spec='-L$libdir'
15689 export_dynamic_flag_spec='${wl}--export-all-symbols'
15690 allow_undefined_flag=unsupported
15691 always_export_symbols=no
15692 enable_shared_with_static_runtimes=yes
15693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15697 # If the export-symbols file already is a .def file (1st line
15698 # is EXPORTS), use it as is; otherwise, prepend...
15699 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15700 cp $export_symbols $output_objdir/$soname.def;
15702 echo EXPORTS > $output_objdir/$soname.def;
15703 cat $export_symbols >> $output_objdir/$soname.def;
15705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15713 link_all_deplibs=yes
15718 hardcode_shlibpath_var=no
15719 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15720 export_dynamic_flag_spec='${wl}-E'
15721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15722 # Instead, shared libraries are loaded at an image base (0x10000000 by
15723 # default) and relocated if they conflict, which is a slow very memory
15724 # consuming and fragmenting process. To avoid this, we pick a random,
15725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15728 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15731 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15733 if test "$host_os" = linux-dietlibc; then
15734 case $cc_basename in
15735 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15738 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15739 && test "$tmp_diet" = no
15742 tmp_sharedflag='-shared'
15743 case $cc_basename,$host_cpu in
15744 pgcc*) # Portland Group C compiler
15745 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15746 tmp_addflag=' $pic_flag'
15748 pgf77* | pgf90* | pgf95* | pgfortran*)
15749 # Portland Group f77 and f90 compilers
15750 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15751 tmp_addflag=' $pic_flag -Mnomain' ;;
15752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15753 tmp_addflag=' -i_dynamic' ;;
15754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15755 tmp_addflag=' -i_dynamic -nofor_main' ;;
15756 ifc* | ifort*) # Intel Fortran compiler
15757 tmp_addflag=' -nofor_main' ;;
15758 lf95*) # Lahey Fortran 8.1
15759 whole_archive_flag_spec=
15760 tmp_sharedflag='--shared' ;;
15761 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15762 tmp_sharedflag='-qmkshrobj'
15764 nvcc*) # Cuda Compiler Driver 2.2
15765 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15766 compiler_needs_object=yes
15769 case `$CC -V 2>&1 | sed 5q` in
15770 *Sun\ C*) # Sun C 5.9
15771 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15772 compiler_needs_object=yes
15773 tmp_sharedflag='-G' ;;
15774 *Sun\ F*) # Sun Fortran 8.3
15775 tmp_sharedflag='-G' ;;
15777 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779 if test "x$supports_anon_versioning" = xyes; then
15780 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15782 echo "local: *; };" >> $output_objdir/$libname.ver~
15783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15786 case $cc_basename in
15787 xlf* | bgf* | bgxlf* | mpixlf*)
15788 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15789 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15790 hardcode_libdir_flag_spec=
15791 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15792 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15793 if test "x$supports_anon_versioning" = xyes; then
15794 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15796 echo "local: *; };" >> $output_objdir/$libname.ver~
15797 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15808 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15817 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15821 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15822 *** create shared libraries on Solaris systems. Therefore, libtool
15823 *** is disabling shared libraries support. We urge you to upgrade GNU
15824 *** binutils to release 2.9.1 or newer. Another option is to modify
15825 *** your PATH or compiler configuration so that the native linker is
15826 *** used, and then restart.
15829 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15838 case `$LD -v 2>&1` in
15839 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15843 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15844 *** reliably create shared libraries on SCO systems. Therefore, libtool
15845 *** is disabling shared libraries support. We urge you to upgrade GNU
15846 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15847 *** your PATH or compiler configuration so that the native linker is
15848 *** used, and then restart.
15853 # For security reasons, it is highly recommended that you always
15854 # use absolute paths for naming shared libraries, and exclude the
15855 # DT_RUNPATH tag from executables and libraries. But doing so
15856 # requires that you compile everything twice, which is a pain.
15857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15860 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15869 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15871 hardcode_direct=yes
15872 hardcode_shlibpath_var=no
15876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15885 if test "$ld_shlibs" = no; then
15887 hardcode_libdir_flag_spec=
15888 export_dynamic_flag_spec=
15889 whole_archive_flag_spec=
15892 # PORTME fill in a description of your system's linker (not GNU ld)
15895 allow_undefined_flag=unsupported
15896 always_export_symbols=yes
15897 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15898 # Note: this linker hardcodes the directories in LIBPATH if there
15899 # are no directories specified by -L.
15900 hardcode_minus_L=yes
15901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15902 # Neither direct hardcoding nor static linking is supported with a
15904 hardcode_direct=unsupported
15909 if test "$host_cpu" = ia64; then
15910 # On IA64, the linker does run time linking by default, so we don't
15911 # have to do anything special.
15912 aix_use_runtimelinking=no
15913 exp_sym_flag='-Bexport'
15916 # If we're using GNU nm, then we don't want the "-C" option.
15917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15918 # Also, AIX nm treats weak defined symbols like other global
15919 # defined symbols, whereas GNU nm marks them as "W".
15920 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15921 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15923 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15925 aix_use_runtimelinking=no
15927 # Test if we are trying to use run time linking or normal
15928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15929 # need to do runtime linking.
15930 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15931 for ld_flag in $LDFLAGS; do
15932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15933 aix_use_runtimelinking=yes
15940 exp_sym_flag='-bexport'
15941 no_entry_flag='-bnoentry'
15944 # When large executables or shared objects are built, AIX ld can
15945 # have problems creating the table of contents. If linking a library
15946 # or program results in "error TOC overflow" add -mminimal-toc to
15947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15951 hardcode_direct=yes
15952 hardcode_direct_absolute=yes
15953 hardcode_libdir_separator=':'
15954 link_all_deplibs=yes
15955 file_list_spec='${wl}-f,'
15957 if test "$GCC" = yes; then
15958 case $host_os in aix4.[012]|aix4.[012].*)
15959 # We only want to do this on AIX 4.2 and lower, the check
15960 # below for broken collect2 doesn't work under 4.3+
15961 collect2name=`${CC} -print-prog-name=collect2`
15962 if test -f "$collect2name" &&
15963 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15965 # We have reworked collect2
15968 # We have old collect2
15969 hardcode_direct=unsupported
15970 # It fails to find uninstalled libraries when the uninstalled
15971 # path is not listed in the libpath. Setting hardcode_minus_L
15972 # to unsupported forces relinking
15973 hardcode_minus_L=yes
15974 hardcode_libdir_flag_spec='-L$libdir'
15975 hardcode_libdir_separator=
15979 shared_flag='-shared'
15980 if test "$aix_use_runtimelinking" = yes; then
15981 shared_flag="$shared_flag "'${wl}-G'
15985 if test "$host_cpu" = ia64; then
15986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15987 # chokes on -Wl,-G. The following line is correct:
15990 if test "$aix_use_runtimelinking" = yes; then
15991 shared_flag='${wl}-G'
15993 shared_flag='${wl}-bM:SRE'
15998 export_dynamic_flag_spec='${wl}-bexpall'
15999 # It seems that -bexpall does not export symbols beginning with
16000 # underscore (_), so it is better to generate a list of symbols to export.
16001 always_export_symbols=yes
16002 if test "$aix_use_runtimelinking" = yes; then
16003 # Warning - without using the other runtime loading flags (-brtl),
16004 # -berok will link without error, but may produce a broken library.
16005 allow_undefined_flag='-berok'
16006 # Determine the default libpath from the value encoded in an
16007 # empty executable.
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16019 if ac_fn_c_try_link "$LINENO"; then :
16021 lt_aix_libpath_sed='
16022 /Import File Strings/,/^$/ {
16028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16029 # Check for a 64-bit object if we didn't find anything.
16030 if test -z "$aix_libpath"; then
16031 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16034 rm -f core conftest.err conftest.$ac_objext \
16035 conftest$ac_exeext conftest.$ac_ext
16036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16038 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16039 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16041 if test "$host_cpu" = ia64; then
16042 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16043 allow_undefined_flag="-z nodefs"
16044 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16046 # Determine the default libpath from the value encoded in an
16047 # empty executable.
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16059 if ac_fn_c_try_link "$LINENO"; then :
16061 lt_aix_libpath_sed='
16062 /Import File Strings/,/^$/ {
16068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16069 # Check for a 64-bit object if we didn't find anything.
16070 if test -z "$aix_libpath"; then
16071 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16074 rm -f core conftest.err conftest.$ac_objext \
16075 conftest$ac_exeext conftest.$ac_ext
16076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16078 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16079 # Warning - without using the other run time loading flags,
16080 # -berok will link without error, but may produce a broken library.
16081 no_undefined_flag=' ${wl}-bernotok'
16082 allow_undefined_flag=' ${wl}-berok'
16083 if test "$with_gnu_ld" = yes; then
16084 # We only use this code for GNU lds that support --whole-archive.
16085 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16087 # Exported symbols can be pulled into shared objects from archives
16088 whole_archive_flag_spec='$convenience'
16090 archive_cmds_need_lc=yes
16091 # This is similar to how AIX traditionally builds its shared libraries.
16092 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16100 # see comment about AmigaOS4 .so support
16101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16102 archive_expsym_cmds=''
16105 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16106 hardcode_libdir_flag_spec='-L$libdir'
16107 hardcode_minus_L=yes
16113 export_dynamic_flag_spec=-rdynamic
16116 cygwin* | mingw* | pw32* | cegcc*)
16117 # When not using gcc, we currently assume that we are using
16118 # Microsoft Visual C++.
16119 # hardcode_libdir_flag_spec is actually meaningless, as there is
16120 # no search path for DLLs.
16121 hardcode_libdir_flag_spec=' '
16122 allow_undefined_flag=unsupported
16123 # Tell ltmain to make .lib files, not .a files.
16125 # Tell ltmain to make .dll files, not .so files.
16127 # FIXME: Setting linknames here is a bad hack.
16128 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16129 # The linker will automatically build a .lib file if we build a DLL.
16130 old_archive_from_new_cmds='true'
16131 # FIXME: Should let the user specify the lib program.
16132 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16133 fix_srcfile_path='`cygpath -w "$srcfile"`'
16134 enable_shared_with_static_runtimes=yes
16137 darwin* | rhapsody*)
16140 archive_cmds_need_lc=no
16142 hardcode_automatic=yes
16143 hardcode_shlibpath_var=unsupported
16144 if test "$lt_cv_ld_force_load" = "yes"; then
16145 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16147 whole_archive_flag_spec=''
16149 link_all_deplibs=yes
16150 allow_undefined_flag="$_lt_dar_allow_undefined"
16151 case $cc_basename in
16152 ifort*) _lt_dar_can_shared=yes ;;
16153 *) _lt_dar_can_shared=$GCC ;;
16155 if test "$_lt_dar_can_shared" = "yes"; then
16156 output_verbose_link_cmd=func_echo_all
16157 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16158 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16159 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16160 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170 hardcode_libdir_flag_spec='-L$libdir'
16171 hardcode_shlibpath_var=no
16174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16175 # support. Future versions do this automatically, but an explicit c++rt0.o
16176 # does not break anything, and helps significantly (at the cost of a little
16179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16180 hardcode_libdir_flag_spec='-R$libdir'
16181 hardcode_direct=yes
16182 hardcode_shlibpath_var=no
16185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16188 hardcode_direct=yes
16189 hardcode_minus_L=yes
16190 hardcode_shlibpath_var=no
16193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16194 freebsd* | dragonfly*)
16195 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16196 hardcode_libdir_flag_spec='-R$libdir'
16197 hardcode_direct=yes
16198 hardcode_shlibpath_var=no
16202 if test "$GCC" = yes; then
16203 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16205 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16208 hardcode_libdir_separator=:
16209 hardcode_direct=yes
16211 # hardcode_minus_L: Not really in the search PATH,
16212 # but as the default location of the library.
16213 hardcode_minus_L=yes
16214 export_dynamic_flag_spec='${wl}-E'
16218 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16219 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16223 if test "$with_gnu_ld" = no; then
16224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16225 hardcode_libdir_flag_spec_ld='+b $libdir'
16226 hardcode_libdir_separator=:
16227 hardcode_direct=yes
16228 hardcode_direct_absolute=yes
16229 export_dynamic_flag_spec='${wl}-E'
16230 # hardcode_minus_L: Not really in the search PATH,
16231 # but as the default location of the library.
16232 hardcode_minus_L=yes
16237 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16240 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16243 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16252 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16255 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16259 # Older versions of the 11.00 compiler do not understand -b yet
16260 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16262 $as_echo_n "checking if $CC understands -b... " >&6; }
16263 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16264 $as_echo_n "(cached) " >&6
16266 lt_cv_prog_compiler__b=no
16267 save_LDFLAGS="$LDFLAGS"
16268 LDFLAGS="$LDFLAGS -b"
16269 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16271 # The linker can only warn and ignore the option if not recognized
16272 # So say no if there are warnings
16273 if test -s conftest.err; then
16274 # Append any errors to the config.log.
16275 cat conftest.err 1>&5
16276 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16278 if diff conftest.exp conftest.er2 >/dev/null; then
16279 lt_cv_prog_compiler__b=yes
16282 lt_cv_prog_compiler__b=yes
16286 LDFLAGS="$save_LDFLAGS"
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16290 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16292 if test x"$lt_cv_prog_compiler__b" = xyes; then
16293 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16295 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16301 if test "$with_gnu_ld" = no; then
16302 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16303 hardcode_libdir_separator=:
16308 hardcode_shlibpath_var=no
16311 hardcode_direct=yes
16312 hardcode_direct_absolute=yes
16313 export_dynamic_flag_spec='${wl}-E'
16315 # hardcode_minus_L: Not really in the search PATH,
16316 # but as the default location of the library.
16317 hardcode_minus_L=yes
16323 irix5* | irix6* | nonstopux*)
16324 if test "$GCC" = yes; then
16325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16326 # Try to use the -exported_symbol ld option, if it does not
16327 # work, assume that -exports_file does not work either and
16328 # implicitly export all symbols.
16329 save_LDFLAGS="$LDFLAGS"
16330 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h. */
16335 if ac_fn_c_try_link "$LINENO"; then :
16336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16339 rm -f core conftest.err conftest.$ac_objext \
16340 conftest$ac_exeext conftest.$ac_ext
16341 LDFLAGS="$save_LDFLAGS"
16343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
16346 archive_cmds_need_lc='no'
16347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16348 hardcode_libdir_separator=:
16350 link_all_deplibs=yes
16354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16357 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16359 hardcode_libdir_flag_spec='-R$libdir'
16360 hardcode_direct=yes
16361 hardcode_shlibpath_var=no
16365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16366 hardcode_direct=yes
16367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16368 hardcode_libdir_separator=:
16369 hardcode_shlibpath_var=no
16376 if test -f /usr/libexec/ld.so; then
16377 hardcode_direct=yes
16378 hardcode_shlibpath_var=no
16379 hardcode_direct_absolute=yes
16380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16384 export_dynamic_flag_spec='${wl}-E'
16387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_libdir_flag_spec='-R$libdir'
16392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16403 hardcode_libdir_flag_spec='-L$libdir'
16404 hardcode_minus_L=yes
16405 allow_undefined_flag=unsupported
16406 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16407 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16411 if test "$GCC" = yes; then
16412 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16413 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16415 allow_undefined_flag=' -expect_unresolved \*'
16416 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16418 archive_cmds_need_lc='no'
16419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16420 hardcode_libdir_separator=:
16423 osf4* | osf5*) # as osf3* with the addition of -msym flag
16424 if test "$GCC" = yes; then
16425 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16426 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16429 allow_undefined_flag=' -expect_unresolved \*'
16430 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16431 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
16432 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
16434 # Both c and cxx compiler support -rpath directly
16435 hardcode_libdir_flag_spec='-rpath $libdir'
16437 archive_cmds_need_lc='no'
16438 hardcode_libdir_separator=:
16442 no_undefined_flag=' -z defs'
16443 if test "$GCC" = yes; then
16445 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16447 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16449 case `$CC -V 2>&1` in
16452 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16458 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16460 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16464 hardcode_libdir_flag_spec='-R$libdir'
16465 hardcode_shlibpath_var=no
16467 solaris2.[0-5] | solaris2.[0-5].*) ;;
16469 # The compiler driver will combine and reorder linker options,
16470 # but understands `-z linker_flag'. GCC discards it without `$wl',
16471 # but is careful enough not to reorder.
16472 # Supported since Solaris 2.6 (maybe 2.5.1?)
16473 if test "$GCC" = yes; then
16474 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16476 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16480 link_all_deplibs=yes
16484 if test "x$host_vendor" = xsequent; then
16485 # Use $CC to link under sequent, because it throws in some extra .o
16486 # files that make .init and .fini sections work.
16487 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16489 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16491 hardcode_libdir_flag_spec='-L$libdir'
16492 hardcode_direct=yes
16493 hardcode_minus_L=yes
16494 hardcode_shlibpath_var=no
16498 case $host_vendor in
16500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_direct=yes # is this really true???
16504 ## LD is ld it makes a PLAMLIB
16505 ## CC just makes a GrossModule.
16506 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16507 reload_cmds='$CC -r -o $output$reload_objs'
16511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16515 runpath_var='LD_RUN_PATH'
16516 hardcode_shlibpath_var=no
16520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_shlibpath_var=no
16522 export_dynamic_flag_spec='-Bexport'
16526 if test -d /usr/nec; then
16527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16528 hardcode_shlibpath_var=no
16529 runpath_var=LD_RUN_PATH
16530 hardcode_runpath_var=yes
16535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16536 no_undefined_flag='${wl}-z,text'
16537 archive_cmds_need_lc=no
16538 hardcode_shlibpath_var=no
16539 runpath_var='LD_RUN_PATH'
16541 if test "$GCC" = yes; then
16542 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16550 sysv5* | sco3.2v5* | sco5v6*)
16551 # Note: We can NOT use -z defs as we might desire, because we do not
16552 # link with -lc, and that would cause any symbols used from libc to
16553 # always be unresolved, which means just about no library would
16554 # ever link correctly. If we're not using GNU ld we use -z text
16555 # though, which does catch some bad symbols but isn't as heavy-handed
16557 no_undefined_flag='${wl}-z,text'
16558 allow_undefined_flag='${wl}-z,nodefs'
16559 archive_cmds_need_lc=no
16560 hardcode_shlibpath_var=no
16561 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16562 hardcode_libdir_separator=':'
16563 link_all_deplibs=yes
16564 export_dynamic_flag_spec='${wl}-Bexport'
16565 runpath_var='LD_RUN_PATH'
16567 if test "$GCC" = yes; then
16568 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16572 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_libdir_flag_spec='-L$libdir'
16579 hardcode_shlibpath_var=no
16587 if test x$host_vendor = xsni; then
16589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16590 export_dynamic_flag_spec='${wl}-Blargedynsym'
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16597 $as_echo "$ld_shlibs" >&6; }
16598 test "$ld_shlibs" = no && can_build_shared=no
16600 with_gnu_ld=$with_gnu_ld
16617 # Do we need to explicitly link libc?
16619 case "x$archive_cmds_need_lc" in
16621 # Assume -lc should be added
16622 archive_cmds_need_lc=yes
16624 if test "$enable_shared" = yes && test "$GCC" = yes; then
16625 case $archive_cmds in
16627 # FIXME: we may have to deal with multi-command sequences.
16630 # Test whether the compiler implicitly links with -lc since on some
16631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16632 # to ld, don't add -lc before -lgcc.
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16635 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16636 $as_echo_n "(cached) " >&6
16639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16642 (eval $ac_compile) 2>&5
16644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16645 test $ac_status = 0; } 2>conftest.err; then
16648 libobjs=conftest.$ac_objext
16650 wl=$lt_prog_compiler_wl
16651 pic_flag=$lt_prog_compiler_pic
16657 lt_save_allow_undefined_flag=$allow_undefined_flag
16658 allow_undefined_flag=
16659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16660 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16663 test $ac_status = 0; }
16665 lt_cv_archive_cmds_need_lc=no
16667 lt_cv_archive_cmds_need_lc=yes
16669 allow_undefined_flag=$lt_save_allow_undefined_flag
16671 cat conftest.err 1>&5
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16677 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16678 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16842 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16844 if test "$GCC" = yes; then
16846 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16847 *) lt_awk_arg="/^libraries:/" ;;
16850 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16851 *) lt_sed_strip_eq="s,=/,/,g" ;;
16853 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16854 case $lt_search_path_spec in
16856 # if the path contains ";" then we assume it to be the separator
16857 # otherwise default to the standard path separator (i.e. ":") - it is
16858 # assumed that no part of a normal pathname contains ";" but that should
16859 # okay in the real world where ";" in dirpaths is itself problematic.
16860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16863 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16866 # Ok, now we have the path, separated by spaces, we can step through it
16867 # and add multilib dir if necessary.
16868 lt_tmp_lt_search_path_spec=
16869 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16870 for lt_sys_path in $lt_search_path_spec; do
16871 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16872 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16874 test -d "$lt_sys_path" && \
16875 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16878 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16879 BEGIN {RS=" "; FS="/|\n";} {
16882 for (lt_i = NF; lt_i > 0; lt_i--) {
16883 if ($lt_i != "" && $lt_i != ".") {
16884 if ($lt_i == "..") {
16887 if (lt_count == 0) {
16888 lt_foo="/" $lt_i lt_foo;
16895 if (lt_foo != "") { lt_freq[lt_foo]++; }
16896 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16898 # AWK program above erroneously prepends '/' to C:/dos/paths
16901 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16902 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16904 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16908 library_names_spec=
16909 libname_spec='lib$name'
16913 postuninstall_cmds=
16917 shlibpath_overrides_runpath=unknown
16919 dynamic_linker="$host_os ld.so"
16920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16921 need_lib_prefix=unknown
16922 hardcode_into_libs=no
16924 # when you set need_version to no, make sure it does not cause -set_version
16925 # flags to be left without arguments
16926 need_version=unknown
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16932 shlibpath_var=LIBPATH
16934 # AIX 3 has no versioning support, so we append a major version to the name.
16935 soname_spec='${libname}${release}${shared_ext}$major'
16942 hardcode_into_libs=yes
16943 if test "$host_cpu" = ia64; then
16944 # AIX 5 supports IA64
16945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16946 shlibpath_var=LD_LIBRARY_PATH
16948 # With GCC up to 2.95.x, collect2 would create an import file
16949 # for dependence libraries. The import file would start with
16950 # the line `#! .'. This would cause the generated library to
16951 # depend on `.', always an invalid library. This was fixed in
16952 # development snapshots of GCC prior to 3.0.
16954 aix4 | aix4.[01] | aix4.[01].*)
16955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16957 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16960 can_build_shared=no
16964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16965 # soname into executable. Probably we can add versioning support to
16966 # collect2, so additional links can be useful in future.
16967 if test "$aix_use_runtimelinking" = yes; then
16968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16969 # instead of lib<name>.a to let people know that these are not
16970 # typical AIX shared libraries.
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973 # We preserve .a as extension for shared libraries through AIX4.2
16974 # and later when we are not doing run time linking.
16975 library_names_spec='${libname}${release}.a $libname.a'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16978 shlibpath_var=LIBPATH
16985 # Since July 2007 AmigaOS4 officially supports .so libraries.
16986 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16990 library_names_spec='$libname.ixlibrary $libname.a'
16991 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16992 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16998 library_names_spec='${libname}${shared_ext}'
16999 dynamic_linker="$host_os ld.so"
17000 shlibpath_var=LIBRARY_PATH
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17009 shlibpath_var=LD_LIBRARY_PATH
17010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17012 # the default ld.so.conf also contains /usr/contrib/lib and
17013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17014 # libtool to hard-code these into programs
17017 cygwin* | mingw* | pw32* | cegcc*)
17018 version_type=windows
17023 case $GCC,$host_os in
17024 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17025 library_names_spec='$libname.dll.a'
17026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17027 postinstall_cmds='base_file=`basename \${file}`~
17028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17029 dldir=$destdir/`dirname \$dlpath`~
17030 test -d \$dldir || mkdir -p \$dldir~
17031 $install_prog $dir/$dlname \$dldir/$dlname~
17032 chmod a+x \$dldir/$dlname~
17033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17037 dlpath=$dir/\$dldll~
17039 shlibpath_overrides_runpath=yes
17043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17049 # MinGW DLLs use traditional 'lib' prefix
17050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17053 # pw32 DLLs use 'pw' prefix rather than 'lib'
17054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17060 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17063 dynamic_linker='Win32 ld.exe'
17064 # FIXME: first we should search . and the directory the executable is in
17068 darwin* | rhapsody*)
17069 dynamic_linker="$host_os dyld"
17070 version_type=darwin
17073 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17074 soname_spec='${libname}${release}${major}$shared_ext'
17075 shlibpath_overrides_runpath=yes
17076 shlibpath_var=DYLD_LIBRARY_PATH
17077 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17079 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17080 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LD_LIBRARY_PATH
17092 freebsd* | dragonfly*)
17093 # DragonFly does not have aout. When/if they implement a new
17094 # versioning mechanism, adjust this.
17095 if test -x /usr/bin/objformat; then
17096 objformat=`/usr/bin/objformat`
17099 freebsd[123]*) objformat=aout ;;
17100 *) objformat=elf ;;
17103 version_type=freebsd-$objformat
17104 case $version_type in
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17115 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=yes
17120 freebsd3.[01]* | freebsdelf3.[01]*)
17121 shlibpath_overrides_runpath=yes
17122 hardcode_into_libs=yes
17124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17126 shlibpath_overrides_runpath=no
17127 hardcode_into_libs=yes
17129 *) # from 4.6 on, and DragonFly
17130 shlibpath_overrides_runpath=yes
17131 hardcode_into_libs=yes
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 shlibpath_var=LD_LIBRARY_PATH
17143 hardcode_into_libs=yes
17150 dynamic_linker="$host_os runtime_loader"
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17152 soname_spec='${libname}${release}${shared_ext}$major'
17153 shlibpath_var=LIBRARY_PATH
17154 shlibpath_overrides_runpath=yes
17155 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17156 hardcode_into_libs=yes
17159 hpux9* | hpux10* | hpux11*)
17160 # Give a soname corresponding to the major version so that dld.sl refuses to
17161 # link against other versions.
17168 hardcode_into_libs=yes
17169 dynamic_linker="$host_os dld.so"
17170 shlibpath_var=LD_LIBRARY_PATH
17171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 if test "X$HPUX_IA64_MODE" = X32; then
17175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17183 hardcode_into_libs=yes
17184 dynamic_linker="$host_os dld.sl"
17185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 soname_spec='${libname}${release}${shared_ext}$major'
17189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17194 dynamic_linker="$host_os dld.sl"
17195 shlibpath_var=SHLIB_PATH
17196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17201 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17202 postinstall_cmds='chmod 555 $lib'
17203 # or fails outright, so override atomically:
17204 install_override_mode=555
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 shlibpath_overrides_runpath=no
17216 hardcode_into_libs=yes
17219 irix5* | irix6* | nonstopux*)
17221 nonstopux*) version_type=nonstopux ;;
17223 if test "$lt_cv_prog_gnu_ld" = yes; then
17231 soname_spec='${libname}${release}${shared_ext}$major'
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17234 irix5* | nonstopux*)
17235 libsuff= shlibsuff=
17238 case $LD in # libtool.m4 will add one of these switches to LD
17239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17240 libsuff= shlibsuff= libmagic=32-bit;;
17241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17242 libsuff=32 shlibsuff=N32 libmagic=N32;;
17243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17245 *) libsuff= shlibsuff= libmagic=never-match;;
17249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17250 shlibpath_overrides_runpath=no
17251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17253 hardcode_into_libs=yes
17256 # No shared lib support for Linux oldld, aout, or coff.
17257 linux*oldld* | linux*aout* | linux*coff*)
17261 # This must be Linux ELF.
17262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17267 soname_spec='${libname}${release}${shared_ext}$major'
17268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17269 shlibpath_var=LD_LIBRARY_PATH
17270 shlibpath_overrides_runpath=no
17272 # Some binutils ld are patched to set DT_RUNPATH
17273 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17274 $as_echo_n "(cached) " >&6
17276 lt_cv_shlibpath_overrides_runpath=no
17277 save_LDFLAGS=$LDFLAGS
17278 save_libdir=$libdir
17279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17292 if ac_fn_c_try_link "$LINENO"; then :
17293 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17294 lt_cv_shlibpath_overrides_runpath=yes
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17299 LDFLAGS=$save_LDFLAGS
17300 libdir=$save_libdir
17304 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17306 # This implies no fast_install, which is unacceptable.
17307 # Some rework will be needed to allow for fast_install
17308 # before this can be enabled.
17309 hardcode_into_libs=yes
17311 # Append ld.so.conf contents to the search path
17312 if test -f /etc/ld.so.conf; then
17313 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17314 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17317 # We used to test for /lib/ld.so.1 and disable shared libraries on
17318 # powerpc, because MkLinux only supported shared libraries with the
17319 # GNU dynamic linker. Since this was broken with cross compilers,
17320 # most powerpc-linux boxes support dynamic linking these days and
17321 # people can always --disable-shared, the test was removed, and we
17322 # assume the GNU/Linux dynamic linker is in use.
17323 dynamic_linker='GNU/Linux ld.so'
17330 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17333 dynamic_linker='NetBSD (a.out) ld.so'
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 dynamic_linker='NetBSD ld.elf_so'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 shlibpath_overrides_runpath=yes
17341 hardcode_into_libs=yes
17346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 shlibpath_overrides_runpath=yes
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 soname_spec='${libname}${release}${shared_ext}$major'
17357 shlibpath_var=LD_LIBRARY_PATH
17358 shlibpath_overrides_runpath=no
17359 hardcode_into_libs=yes
17360 dynamic_linker='ldqnx.so'
17365 sys_lib_dlsearch_path_spec="/usr/lib"
17367 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17369 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17370 *) need_version=no ;;
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17377 openbsd2.[89] | openbsd2.[89].*)
17378 shlibpath_overrides_runpath=no
17381 shlibpath_overrides_runpath=yes
17385 shlibpath_overrides_runpath=yes
17390 libname_spec='$name'
17393 library_names_spec='$libname${shared_ext} $libname.a'
17394 dynamic_linker='OS/2 ld.exe'
17395 shlibpath_var=LIBPATH
17398 osf3* | osf4* | osf5*)
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17406 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath=yes
17421 hardcode_into_libs=yes
17422 # ldd complains unless libraries are executable
17423 postinstall_cmds='chmod +x $lib'
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17429 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath=yes
17432 if test "$with_gnu_ld" = yes; then
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec='${libname}${release}${shared_ext}$major'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 case $host_vendor in
17445 shlibpath_overrides_runpath=no
17447 runpath_var=LD_RUN_PATH
17455 shlibpath_overrides_runpath=no
17456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17462 if test -d /usr/nec ;then
17464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17465 soname_spec='$libname${shared_ext}.$major'
17466 shlibpath_var=LD_LIBRARY_PATH
17470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17471 version_type=freebsd-elf
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17475 soname_spec='${libname}${release}${shared_ext}$major'
17476 shlibpath_var=LD_LIBRARY_PATH
17477 shlibpath_overrides_runpath=yes
17478 hardcode_into_libs=yes
17479 if test "$with_gnu_ld" = yes; then
17480 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17485 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17489 sys_lib_dlsearch_path_spec='/usr/lib'
17493 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498 shlibpath_var=LD_LIBRARY_PATH
17499 shlibpath_overrides_runpath=no
17500 hardcode_into_libs=yes
17505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506 soname_spec='${libname}${release}${shared_ext}$major'
17507 shlibpath_var=LD_LIBRARY_PATH
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17515 $as_echo "$dynamic_linker" >&6; }
17516 test "$dynamic_linker" = no && can_build_shared=no
17518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17519 if test "$GCC" = yes; then
17520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17523 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17524 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17526 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17527 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17622 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17624 if test -n "$hardcode_libdir_flag_spec" ||
17625 test -n "$runpath_var" ||
17626 test "X$hardcode_automatic" = "Xyes" ; then
17628 # We can hardcode non-existent directories.
17629 if test "$hardcode_direct" != no &&
17630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17631 # have to relink, otherwise we might link with an installed library
17632 # when we should be linking with a yet-to-be-installed one
17633 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17634 test "$hardcode_minus_L" != no; then
17635 # Linking always hardcodes the temporary library directory.
17636 hardcode_action=relink
17638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17639 hardcode_action=immediate
17642 # We cannot hardcode anything, or else we can only hardcode existing
17644 hardcode_action=unsupported
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17647 $as_echo "$hardcode_action" >&6; }
17649 if test "$hardcode_action" = relink ||
17650 test "$inherit_rpath" = yes; then
17651 # Fast installation is not supported
17652 enable_fast_install=no
17653 elif test "$shlibpath_overrides_runpath" = yes ||
17654 test "$enable_shared" = no; then
17655 # Fast installation is not necessary
17656 enable_fast_install=needless
17664 if test "x$enable_dlopen" != xyes; then
17665 enable_dlopen=unknown
17666 enable_dlopen_self=unknown
17667 enable_dlopen_self_static=unknown
17674 lt_cv_dlopen="load_add_on"
17676 lt_cv_dlopen_self=yes
17679 mingw* | pw32* | cegcc*)
17680 lt_cv_dlopen="LoadLibrary"
17685 lt_cv_dlopen="dlopen"
17690 # if libdl is installed we need to link against it
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17694 $as_echo_n "(cached) " >&6
17696 ac_check_lib_save_LIBS=$LIBS
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17701 /* Override any GCC internal prototype to avoid an error.
17702 Use char because int might match the return type of a GCC
17703 builtin and then its argument prototype would still apply. */
17716 if ac_fn_c_try_link "$LINENO"; then :
17717 ac_cv_lib_dl_dlopen=yes
17719 ac_cv_lib_dl_dlopen=no
17721 rm -f core conftest.err conftest.$ac_objext \
17722 conftest$ac_exeext conftest.$ac_ext
17723 LIBS=$ac_check_lib_save_LIBS
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17727 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17731 lt_cv_dlopen="dyld"
17733 lt_cv_dlopen_self=yes
17740 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17741 if test "x$ac_cv_func_shl_load" = x""yes; then :
17742 lt_cv_dlopen="shl_load"
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17745 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17746 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17749 ac_check_lib_save_LIBS=$LIBS
17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17754 /* Override any GCC internal prototype to avoid an error.
17755 Use char because int might match the return type of a GCC
17756 builtin and then its argument prototype would still apply. */
17764 return shl_load ();
17769 if ac_fn_c_try_link "$LINENO"; then :
17770 ac_cv_lib_dld_shl_load=yes
17772 ac_cv_lib_dld_shl_load=no
17774 rm -f core conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17776 LIBS=$ac_check_lib_save_LIBS
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17780 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17781 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17783 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17784 if test "x$ac_cv_func_dlopen" = x""yes; then :
17785 lt_cv_dlopen="dlopen"
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17789 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17790 $as_echo_n "(cached) " >&6
17792 ac_check_lib_save_LIBS=$LIBS
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17797 /* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17812 if ac_fn_c_try_link "$LINENO"; then :
17813 ac_cv_lib_dl_dlopen=yes
17815 ac_cv_lib_dl_dlopen=no
17817 rm -f core conftest.err conftest.$ac_objext \
17818 conftest$ac_exeext conftest.$ac_ext
17819 LIBS=$ac_check_lib_save_LIBS
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17823 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17829 $as_echo_n "(cached) " >&6
17831 ac_check_lib_save_LIBS=$LIBS
17832 LIBS="-lsvld $LIBS"
17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17836 /* Override any GCC internal prototype to avoid an error.
17837 Use char because int might match the return type of a GCC
17838 builtin and then its argument prototype would still apply. */
17851 if ac_fn_c_try_link "$LINENO"; then :
17852 ac_cv_lib_svld_dlopen=yes
17854 ac_cv_lib_svld_dlopen=no
17856 rm -f core conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17858 LIBS=$ac_check_lib_save_LIBS
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17861 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17862 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17866 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17867 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17868 $as_echo_n "(cached) " >&6
17870 ac_check_lib_save_LIBS=$LIBS
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17875 /* Override any GCC internal prototype to avoid an error.
17876 Use char because int might match the return type of a GCC
17877 builtin and then its argument prototype would still apply. */
17885 return dld_link ();
17890 if ac_fn_c_try_link "$LINENO"; then :
17891 ac_cv_lib_dld_dld_link=yes
17893 ac_cv_lib_dld_dld_link=no
17895 rm -f core conftest.err conftest.$ac_objext \
17896 conftest$ac_exeext conftest.$ac_ext
17897 LIBS=$ac_check_lib_save_LIBS
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17900 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17901 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17923 if test "x$lt_cv_dlopen" != xno; then
17929 case $lt_cv_dlopen in
17931 save_CPPFLAGS="$CPPFLAGS"
17932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17934 save_LDFLAGS="$LDFLAGS"
17935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17938 LIBS="$lt_cv_dlopen_libs $LIBS"
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17942 if test "${lt_cv_dlopen_self+set}" = set; then :
17943 $as_echo_n "(cached) " >&6
17945 if test "$cross_compiling" = yes; then :
17946 lt_cv_dlopen_self=cross
17948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17949 lt_status=$lt_dlunknown
17950 cat > conftest.$ac_ext <<_LT_EOF
17951 #line 17951 "configure"
17952 #include "confdefs.h"
17961 # define LT_DLGLOBAL RTLD_GLOBAL
17964 # define LT_DLGLOBAL DL_GLOBAL
17966 # define LT_DLGLOBAL 0
17970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17971 find out it does not work in some platform. */
17972 #ifndef LT_DLLAZY_OR_NOW
17974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17977 # define LT_DLLAZY_OR_NOW DL_LAZY
17980 # define LT_DLLAZY_OR_NOW RTLD_NOW
17983 # define LT_DLLAZY_OR_NOW DL_NOW
17985 # define LT_DLLAZY_OR_NOW 0
17992 /* When -fvisbility=hidden is used, assume the code has been annotated
17993 correspondingly for the symbols needed. */
17994 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17995 void fnord () __attribute__((visibility("default")));
17998 void fnord () { int i=42; }
18001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18002 int status = $lt_dlunknown;
18006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18009 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18010 else puts (dlerror ());
18012 /* dlclose (self); */
18020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18021 (eval $ac_link) 2>&5
18023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18024 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18025 (./conftest; exit; ) >&5 2>/dev/null
18027 case x$lt_status in
18028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18033 # compilation failed
18034 lt_cv_dlopen_self=no
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18042 $as_echo "$lt_cv_dlopen_self" >&6; }
18044 if test "x$lt_cv_dlopen_self" = xyes; then
18045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18048 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18049 $as_echo_n "(cached) " >&6
18051 if test "$cross_compiling" = yes; then :
18052 lt_cv_dlopen_self_static=cross
18054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18055 lt_status=$lt_dlunknown
18056 cat > conftest.$ac_ext <<_LT_EOF
18057 #line 18057 "configure"
18058 #include "confdefs.h"
18067 # define LT_DLGLOBAL RTLD_GLOBAL
18070 # define LT_DLGLOBAL DL_GLOBAL
18072 # define LT_DLGLOBAL 0
18076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18077 find out it does not work in some platform. */
18078 #ifndef LT_DLLAZY_OR_NOW
18080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18083 # define LT_DLLAZY_OR_NOW DL_LAZY
18086 # define LT_DLLAZY_OR_NOW RTLD_NOW
18089 # define LT_DLLAZY_OR_NOW DL_NOW
18091 # define LT_DLLAZY_OR_NOW 0
18098 /* When -fvisbility=hidden is used, assume the code has been annotated
18099 correspondingly for the symbols needed. */
18100 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18101 void fnord () __attribute__((visibility("default")));
18104 void fnord () { int i=42; }
18107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18108 int status = $lt_dlunknown;
18112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18116 else puts (dlerror ());
18118 /* dlclose (self); */
18126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18127 (eval $ac_link) 2>&5
18129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18130 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18131 (./conftest; exit; ) >&5 2>/dev/null
18133 case x$lt_status in
18134 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18135 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18136 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18139 # compilation failed
18140 lt_cv_dlopen_self_static=no
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18148 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18151 CPPFLAGS="$save_CPPFLAGS"
18152 LDFLAGS="$save_LDFLAGS"
18157 case $lt_cv_dlopen_self in
18158 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18159 *) enable_dlopen_self=unknown ;;
18162 case $lt_cv_dlopen_self_static in
18163 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18164 *) enable_dlopen_self_static=unknown ;;
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18187 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18188 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18190 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192 $as_echo "yes" >&6; }
18194 # FIXME - insert some real tests, host_os isn't really good enough
18197 if test -n "$STRIP" ; then
18198 striplib="$STRIP -x"
18199 old_striplib="$STRIP -S"
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18201 $as_echo "yes" >&6; }
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204 $as_echo "no" >&6; }
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18209 $as_echo "no" >&6; }
18225 # Report which library types will actually be built
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18227 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18229 $as_echo "$can_build_shared" >&6; }
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18232 $as_echo_n "checking whether to build shared libraries... " >&6; }
18233 test "$can_build_shared" = "no" && enable_shared=no
18235 # On AIX, shared libraries and static libraries use the same namespace, and
18236 # are all built from PIC.
18239 test "$enable_shared" = yes && enable_static=no
18240 if test -n "$RANLIB"; then
18241 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18242 postinstall_cmds='$RANLIB $lib'
18247 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18248 test "$enable_shared" = yes && enable_static=no
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18253 $as_echo "$enable_shared" >&6; }
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18256 $as_echo_n "checking whether to build static libraries... " >&6; }
18257 # Make sure either enable_shared or enable_static is yes.
18258 test "$enable_shared" = yes || enable_static=yes
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18260 $as_echo "$enable_static" >&6; }
18267 ac_cpp='$CPP $CPPFLAGS'
18268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18274 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18275 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18276 (test "X$CXX" != "Xg++"))) ; then
18278 ac_cpp='$CXXCPP $CPPFLAGS'
18279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18283 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18284 if test -z "$CXXCPP"; then
18285 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18286 $as_echo_n "(cached) " >&6
18288 # Double quotes because CXXCPP needs to be expanded
18289 for CXXCPP in "$CXX -E" "/lib/cpp"
18291 ac_preproc_ok=false
18292 for ac_cxx_preproc_warn_flag in '' yes
18294 # Use a header file that comes with gcc, so configuring glibc
18295 # with a fresh cross-compiler works.
18296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18297 # <limits.h> exists even on freestanding compilers.
18298 # On the NeXT, cc -E runs the code through the compiler's parser,
18299 # not just through cpp. "Syntax error" is here to catch this case.
18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18303 # include <limits.h>
18305 # include <assert.h>
18309 if ac_fn_cxx_try_cpp "$LINENO"; then :
18312 # Broken: fails on valid input.
18315 rm -f conftest.err conftest.$ac_ext
18317 # OK, works on sane cases. Now check whether nonexistent headers
18318 # can be detected and how.
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18321 #include <ac_nonexistent.h>
18323 if ac_fn_cxx_try_cpp "$LINENO"; then :
18324 # Broken: success on invalid input.
18327 # Passes both tests.
18331 rm -f conftest.err conftest.$ac_ext
18334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18335 rm -f conftest.err conftest.$ac_ext
18336 if $ac_preproc_ok; then :
18341 ac_cv_prog_CXXCPP=$CXXCPP
18344 CXXCPP=$ac_cv_prog_CXXCPP
18346 ac_cv_prog_CXXCPP=$CXXCPP
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18349 $as_echo "$CXXCPP" >&6; }
18350 ac_preproc_ok=false
18351 for ac_cxx_preproc_warn_flag in '' yes
18353 # Use a header file that comes with gcc, so configuring glibc
18354 # with a fresh cross-compiler works.
18355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18356 # <limits.h> exists even on freestanding compilers.
18357 # On the NeXT, cc -E runs the code through the compiler's parser,
18358 # not just through cpp. "Syntax error" is here to catch this case.
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18362 # include <limits.h>
18364 # include <assert.h>
18368 if ac_fn_cxx_try_cpp "$LINENO"; then :
18371 # Broken: fails on valid input.
18374 rm -f conftest.err conftest.$ac_ext
18376 # OK, works on sane cases. Now check whether nonexistent headers
18377 # can be detected and how.
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18380 #include <ac_nonexistent.h>
18382 if ac_fn_cxx_try_cpp "$LINENO"; then :
18383 # Broken: success on invalid input.
18386 # Passes both tests.
18390 rm -f conftest.err conftest.$ac_ext
18393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18394 rm -f conftest.err conftest.$ac_ext
18395 if $ac_preproc_ok; then :
18398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18400 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18401 See \`config.log' for more details." "$LINENO" 5; }
18405 ac_cpp='$CPP $CPPFLAGS'
18406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18411 _lt_caught_CXX_error=yes
18415 ac_cpp='$CXXCPP $CPPFLAGS'
18416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18420 archive_cmds_need_lc_CXX=no
18421 allow_undefined_flag_CXX=
18422 always_export_symbols_CXX=no
18423 archive_expsym_cmds_CXX=
18424 compiler_needs_object_CXX=no
18425 export_dynamic_flag_spec_CXX=
18426 hardcode_direct_CXX=no
18427 hardcode_direct_absolute_CXX=no
18428 hardcode_libdir_flag_spec_CXX=
18429 hardcode_libdir_flag_spec_ld_CXX=
18430 hardcode_libdir_separator_CXX=
18431 hardcode_minus_L_CXX=no
18432 hardcode_shlibpath_var_CXX=unsupported
18433 hardcode_automatic_CXX=no
18434 inherit_rpath_CXX=no
18436 module_expsym_cmds_CXX=
18437 link_all_deplibs_CXX=unknown
18438 old_archive_cmds_CXX=$old_archive_cmds
18439 reload_flag_CXX=$reload_flag
18440 reload_cmds_CXX=$reload_cmds
18441 no_undefined_flag_CXX=
18442 whole_archive_flag_spec_CXX=
18443 enable_shared_with_static_runtimes_CXX=no
18445 # Source file extension for C++ test sources.
18448 # Object file extension for compiled C++ test sources.
18452 # No sense in running all these tests if we already determined that
18453 # the CXX compiler isn't working. Some variables (like enable_shared)
18454 # are currently assumed to apply to all compilers on this platform,
18455 # and will be corrupted by setting them based on a non-working compiler.
18456 if test "$_lt_caught_CXX_error" != yes; then
18457 # Code to be used in simple compile tests
18458 lt_simple_compile_test_code="int some_variable = 0;"
18460 # Code to be used in simple link tests
18461 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18470 # If no C compiler was specified, use CC.
18473 # If no C compiler flags were specified, use CFLAGS.
18474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18476 # Allow CC to be a program name with arguments.
18480 # save warnings/boilerplate of simple test code
18481 ac_outfile=conftest.$ac_objext
18482 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18483 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18484 _lt_compiler_boilerplate=`cat conftest.err`
18487 ac_outfile=conftest.$ac_objext
18488 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18489 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18490 _lt_linker_boilerplate=`cat conftest.err`
18494 # Allow CC to be a program name with arguments.
18499 lt_save_with_gnu_ld=$with_gnu_ld
18500 lt_save_path_LD=$lt_cv_path_LD
18501 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18502 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18504 $as_unset lt_cv_prog_gnu_ld
18506 if test -n "${lt_cv_path_LDCXX+set}"; then
18507 lt_cv_path_LD=$lt_cv_path_LDCXX
18509 $as_unset lt_cv_path_LD
18511 test -z "${LDCXX+set}" || LD=$LDCXX
18515 for cc_temp in $compiler""; do
18517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18523 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18526 if test -n "$compiler"; then
18527 # We don't want -fno-exception when compiling C++ code, so set the
18528 # no_builtin_flag separately
18529 if test "$GXX" = yes; then
18530 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18532 lt_prog_compiler_no_builtin_flag_CXX=
18535 if test "$GXX" = yes; then
18536 # Set up default GNU C++ configuration
18540 # Check whether --with-gnu-ld was given.
18541 if test "${with_gnu_ld+set}" = set; then :
18542 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18548 if test "$GCC" = yes; then
18549 # Check if gcc -print-prog-name=ld gives a path.
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18551 $as_echo_n "checking for ld used by $CC... " >&6; }
18554 # gcc leaves a trailing carriage return which upsets mingw
18555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18560 # Accept absolute paths.
18562 re_direlt='/[^/][^/]*/\.\./'
18563 # Canonicalize the pathname of ld
18564 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18565 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18566 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18568 test -z "$LD" && LD="$ac_prog"
18571 # If it fails, then pretend we aren't using GCC.
18575 # If it is relative, then search for the first ld in PATH.
18576 with_gnu_ld=unknown
18579 elif test "$with_gnu_ld" = yes; then
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18581 $as_echo_n "checking for GNU ld... " >&6; }
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18584 $as_echo_n "checking for non-GNU ld... " >&6; }
18586 if test "${lt_cv_path_LD+set}" = set; then :
18587 $as_echo_n "(cached) " >&6
18589 if test -z "$LD"; then
18590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18591 for ac_dir in $PATH; do
18593 test -z "$ac_dir" && ac_dir=.
18594 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18595 lt_cv_path_LD="$ac_dir/$ac_prog"
18596 # Check to see if the program is GNU ld. I'd rather use --version,
18597 # but apparently some variants of GNU ld only accept -v.
18598 # Break only if it was the GNU/non-GNU ld that we prefer.
18599 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18600 *GNU* | *'with BFD'*)
18601 test "$with_gnu_ld" != no && break
18604 test "$with_gnu_ld" != yes && break
18611 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18615 LD="$lt_cv_path_LD"
18616 if test -n "$LD"; then
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18618 $as_echo "$LD" >&6; }
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18621 $as_echo "no" >&6; }
18623 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18625 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18626 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18627 $as_echo_n "(cached) " >&6
18629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18630 case `$LD -v 2>&1 </dev/null` in
18631 *GNU* | *'with BFD'*)
18632 lt_cv_prog_gnu_ld=yes
18635 lt_cv_prog_gnu_ld=no
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18640 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18641 with_gnu_ld=$lt_cv_prog_gnu_ld
18649 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18650 # archiving commands below assume that GNU ld is being used.
18651 if test "$with_gnu_ld" = yes; then
18652 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18653 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18655 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18658 # If archive_cmds runs LD, not CC, wlarc should be empty
18659 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18660 # investigate it a little bit more. (MM)
18663 # ancient GNU ld didn't support --whole-archive et. al.
18664 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18665 $GREP 'no-whole-archive' > /dev/null; then
18666 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18668 whole_archive_flag_spec_CXX=
18674 # A generic and very simple default shared library creation
18675 # command for GNU C++ for the case where it uses the native
18676 # linker, instead of GNU ld. If possible, this setting should
18677 # overridden to take advantage of the native linker features on
18678 # the platform it is being used on.
18679 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18682 # Commands to make compiler produce verbose output that lists
18683 # what "hidden" libraries, object files and flags are used when
18684 # linking a shared library.
18685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18693 # PORTME: fill in a description of your system's C++ link characteristics
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18695 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18699 # FIXME: insert proper C++ library support
18703 if test "$host_cpu" = ia64; then
18704 # On IA64, the linker does run time linking by default, so we don't
18705 # have to do anything special.
18706 aix_use_runtimelinking=no
18707 exp_sym_flag='-Bexport'
18710 aix_use_runtimelinking=no
18712 # Test if we are trying to use run time linking or normal
18713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18714 # need to do runtime linking.
18715 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18716 for ld_flag in $LDFLAGS; do
18719 aix_use_runtimelinking=yes
18727 exp_sym_flag='-bexport'
18728 no_entry_flag='-bnoentry'
18731 # When large executables or shared objects are built, AIX ld can
18732 # have problems creating the table of contents. If linking a library
18733 # or program results in "error TOC overflow" add -mminimal-toc to
18734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18737 archive_cmds_CXX=''
18738 hardcode_direct_CXX=yes
18739 hardcode_direct_absolute_CXX=yes
18740 hardcode_libdir_separator_CXX=':'
18741 link_all_deplibs_CXX=yes
18742 file_list_spec_CXX='${wl}-f,'
18744 if test "$GXX" = yes; then
18745 case $host_os in aix4.[012]|aix4.[012].*)
18746 # We only want to do this on AIX 4.2 and lower, the check
18747 # below for broken collect2 doesn't work under 4.3+
18748 collect2name=`${CC} -print-prog-name=collect2`
18749 if test -f "$collect2name" &&
18750 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18752 # We have reworked collect2
18755 # We have old collect2
18756 hardcode_direct_CXX=unsupported
18757 # It fails to find uninstalled libraries when the uninstalled
18758 # path is not listed in the libpath. Setting hardcode_minus_L
18759 # to unsupported forces relinking
18760 hardcode_minus_L_CXX=yes
18761 hardcode_libdir_flag_spec_CXX='-L$libdir'
18762 hardcode_libdir_separator_CXX=
18765 shared_flag='-shared'
18766 if test "$aix_use_runtimelinking" = yes; then
18767 shared_flag="$shared_flag "'${wl}-G'
18771 if test "$host_cpu" = ia64; then
18772 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18773 # chokes on -Wl,-G. The following line is correct:
18776 if test "$aix_use_runtimelinking" = yes; then
18777 shared_flag='${wl}-G'
18779 shared_flag='${wl}-bM:SRE'
18784 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18785 # It seems that -bexpall does not export symbols beginning with
18786 # underscore (_), so it is better to generate a list of symbols to
18788 always_export_symbols_CXX=yes
18789 if test "$aix_use_runtimelinking" = yes; then
18790 # Warning - without using the other runtime loading flags (-brtl),
18791 # -berok will link without error, but may produce a broken library.
18792 allow_undefined_flag_CXX='-berok'
18793 # Determine the default libpath from the value encoded in an empty
18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18806 if ac_fn_cxx_try_link "$LINENO"; then :
18808 lt_aix_libpath_sed='
18809 /Import File Strings/,/^$/ {
18815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18816 # Check for a 64-bit object if we didn't find anything.
18817 if test -z "$aix_libpath"; then
18818 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18821 rm -f core conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18825 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18827 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18829 if test "$host_cpu" = ia64; then
18830 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18831 allow_undefined_flag_CXX="-z nodefs"
18832 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18834 # Determine the default libpath from the value encoded in an
18835 # empty executable.
18836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18837 /* end confdefs.h. */
18847 if ac_fn_cxx_try_link "$LINENO"; then :
18849 lt_aix_libpath_sed='
18850 /Import File Strings/,/^$/ {
18856 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18857 # Check for a 64-bit object if we didn't find anything.
18858 if test -z "$aix_libpath"; then
18859 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18862 rm -f core conftest.err conftest.$ac_objext \
18863 conftest$ac_exeext conftest.$ac_ext
18864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18866 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18867 # Warning - without using the other run time loading flags,
18868 # -berok will link without error, but may produce a broken library.
18869 no_undefined_flag_CXX=' ${wl}-bernotok'
18870 allow_undefined_flag_CXX=' ${wl}-berok'
18871 if test "$with_gnu_ld" = yes; then
18872 # We only use this code for GNU lds that support --whole-archive.
18873 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18875 # Exported symbols can be pulled into shared objects from archives
18876 whole_archive_flag_spec_CXX='$convenience'
18878 archive_cmds_need_lc_CXX=yes
18879 # This is similar to how AIX traditionally builds its shared
18881 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18888 allow_undefined_flag_CXX=unsupported
18889 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18890 # support --undefined. This deserves some investigation. FIXME
18891 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18898 case $cc_basename in
18900 # FIXME: insert proper C++ library support
18906 cygwin* | mingw* | pw32* | cegcc*)
18907 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18908 # as there is no search path for DLLs.
18909 hardcode_libdir_flag_spec_CXX='-L$libdir'
18910 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18911 allow_undefined_flag_CXX=unsupported
18912 always_export_symbols_CXX=no
18913 enable_shared_with_static_runtimes_CXX=yes
18915 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18916 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18917 # If the export-symbols file already is a .def file (1st line
18918 # is EXPORTS), use it as is; otherwise, prepend...
18919 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18920 cp $export_symbols $output_objdir/$soname.def;
18922 echo EXPORTS > $output_objdir/$soname.def;
18923 cat $export_symbols >> $output_objdir/$soname.def;
18925 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18930 darwin* | rhapsody*)
18933 archive_cmds_need_lc_CXX=no
18934 hardcode_direct_CXX=no
18935 hardcode_automatic_CXX=yes
18936 hardcode_shlibpath_var_CXX=unsupported
18937 if test "$lt_cv_ld_force_load" = "yes"; then
18938 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18940 whole_archive_flag_spec_CXX=''
18942 link_all_deplibs_CXX=yes
18943 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18944 case $cc_basename in
18945 ifort*) _lt_dar_can_shared=yes ;;
18946 *) _lt_dar_can_shared=$GCC ;;
18948 if test "$_lt_dar_can_shared" = "yes"; then
18949 output_verbose_link_cmd=func_echo_all
18950 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18951 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18952 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18953 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18954 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18955 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
18956 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
18966 case $cc_basename in
18968 # FIXME: insert proper C++ library support
18972 # Green Hills C++ Compiler
18973 # FIXME: insert proper C++ library support
18977 # FIXME: insert proper C++ library support
18984 # C++ shared libraries reported to be fairly broken before
18990 archive_cmds_need_lc_CXX=no
18993 freebsd* | dragonfly*)
18994 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19003 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004 link_all_deplibs_CXX=yes
19008 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19009 hardcode_libdir_separator_CXX=:
19010 export_dynamic_flag_spec_CXX='${wl}-E'
19011 hardcode_direct_CXX=yes
19012 hardcode_minus_L_CXX=yes # Not in the search PATH,
19013 # but as the default
19014 # location of the library.
19016 case $cc_basename in
19018 # FIXME: insert proper C++ library support
19022 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19023 # Commands to make compiler produce verbose output that lists
19024 # what "hidden" libraries, object files and flags are used when
19025 # linking a shared library.
19027 # There doesn't appear to be a way to prevent this compiler from
19028 # explicitly linking system object files so we need to strip them
19029 # from the output so that they don't get included in the library
19031 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19034 if test "$GXX" = yes; then
19035 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19037 # FIXME: insert proper C++ library support
19045 if test $with_gnu_ld = no; then
19046 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19047 hardcode_libdir_separator_CXX=:
19053 export_dynamic_flag_spec_CXX='${wl}-E'
19059 hardcode_direct_CXX=no
19060 hardcode_shlibpath_var_CXX=no
19063 hardcode_direct_CXX=yes
19064 hardcode_direct_absolute_CXX=yes
19065 hardcode_minus_L_CXX=yes # Not in the search PATH,
19066 # but as the default
19067 # location of the library.
19071 case $cc_basename in
19073 # FIXME: insert proper C++ library support
19079 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19082 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19085 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19088 # Commands to make compiler produce verbose output that lists
19089 # what "hidden" libraries, object files and flags are used when
19090 # linking a shared library.
19092 # There doesn't appear to be a way to prevent this compiler from
19093 # explicitly linking system object files so we need to strip them
19094 # from the output so that they don't get included in the library
19096 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19099 if test "$GXX" = yes; then
19100 if test $with_gnu_ld = no; then
19103 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19106 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19109 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19114 # FIXME: insert proper C++ library support
19122 hardcode_direct_CXX=no
19123 hardcode_shlibpath_var_CXX=no
19124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19125 export_dynamic_flag_spec_CXX='${wl}-E'
19126 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19127 # Instead, shared libraries are loaded at an image base (0x10000000 by
19128 # default) and relocated if they conflict, which is a slow very memory
19129 # consuming and fragmenting process. To avoid this, we pick a random,
19130 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19131 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19132 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19133 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19136 case $cc_basename in
19139 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19141 # Archives containing C++ object files must be created using
19142 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19143 # necessary to make sure instantiated templates are included
19145 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19148 if test "$GXX" = yes; then
19149 if test "$with_gnu_ld" = no; then
19150 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19152 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19155 link_all_deplibs_CXX=yes
19158 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19159 hardcode_libdir_separator_CXX=:
19160 inherit_rpath_CXX=yes
19163 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19164 case $cc_basename in
19166 # Kuck and Associates, Inc. (KAI) C++ Compiler
19168 # KCC will only create a shared library if the output file
19169 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19170 # to its proper name (with version) after linking.
19171 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19172 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19173 # Commands to make compiler produce verbose output that lists
19174 # what "hidden" libraries, object files and flags are used when
19175 # linking a shared library.
19177 # There doesn't appear to be a way to prevent this compiler from
19178 # explicitly linking system object files so we need to strip them
19179 # from the output so that they don't get included in the library
19181 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19183 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19184 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19186 # Archives containing C++ object files must be created using
19187 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19188 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19193 # version 8.0 and above of icpc choke on multiply defined symbols
19194 # if we add $predep_objects and $postdep_objects, however 7.1 and
19195 # earlier do not add the objects themselves.
19196 case `$CC -V 2>&1` in
19198 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19201 *) # Version 8.0 or newer
19204 ia64*) tmp_idyn=' -i_dynamic';;
19206 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19207 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19210 archive_cmds_need_lc_CXX=no
19211 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19213 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19216 # Portland Group C++ compiler
19218 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19219 prelink_cmds_CXX='tpldir=Template.dir~
19221 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19222 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19223 old_archive_cmds_CXX='tpldir=Template.dir~
19225 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19226 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19228 archive_cmds_CXX='tpldir=Template.dir~
19230 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19231 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19232 archive_expsym_cmds_CXX='tpldir=Template.dir~
19234 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19235 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19237 *) # Version 6 and above use weak symbols
19238 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19239 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19243 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19245 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19249 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19250 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19252 runpath_var=LD_RUN_PATH
19253 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19254 hardcode_libdir_separator_CXX=:
19256 # Commands to make compiler produce verbose output that lists
19257 # what "hidden" libraries, object files and flags are used when
19258 # linking a shared library.
19260 # There doesn't appear to be a way to prevent this compiler from
19261 # explicitly linking system object files so we need to strip them
19262 # from the output so that they don't get included in the library
19264 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19266 xl* | mpixl* | bgxl*)
19267 # IBM XL 8.0 on PPC, with GNU ld
19268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19270 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19271 if test "x$supports_anon_versioning" = xyes; then
19272 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19274 echo "local: *; };" >> $output_objdir/$libname.ver~
19275 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19279 case `$CC -V 2>&1 | sed 5q` in
19282 no_undefined_flag_CXX=' -zdefs'
19283 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19284 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19285 hardcode_libdir_flag_spec_CXX='-R$libdir'
19286 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19287 compiler_needs_object_CXX=yes
19289 # Not sure whether something based on
19290 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19292 output_verbose_link_cmd='func_echo_all'
19294 # Archives containing C++ object files must be created using
19295 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19296 # necessary to make sure instantiated templates are included
19298 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19306 # FIXME: insert proper C++ library support
19311 # FIXME: insert proper C++ library support
19316 case $cc_basename in
19318 # FIXME: insert proper C++ library support
19322 # FIXME: insert proper C++ library support
19329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19330 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19332 hardcode_libdir_flag_spec_CXX='-R$libdir'
19333 hardcode_direct_CXX=yes
19334 hardcode_shlibpath_var_CXX=no
19336 # Workaround some broken pre-1.5 toolchains
19337 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19345 # C++ shared libraries are fairly broken
19350 if test -f /usr/libexec/ld.so; then
19351 hardcode_direct_CXX=yes
19352 hardcode_shlibpath_var_CXX=no
19353 hardcode_direct_absolute_CXX=yes
19354 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19357 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19358 export_dynamic_flag_spec_CXX='${wl}-E'
19359 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19361 output_verbose_link_cmd=func_echo_all
19367 osf3* | osf4* | osf5*)
19368 case $cc_basename in
19370 # Kuck and Associates, Inc. (KAI) C++ Compiler
19372 # KCC will only create a shared library if the output file
19373 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19374 # to its proper name (with version) after linking.
19375 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19378 hardcode_libdir_separator_CXX=:
19380 # Archives containing C++ object files must be created using
19381 # the KAI C++ compiler.
19383 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19384 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19388 # Rational C++ 2.4.1
19389 # FIXME: insert proper C++ library support
19395 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19396 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19397 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19400 allow_undefined_flag_CXX=' -expect_unresolved \*'
19401 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19402 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19403 echo "-hidden">> $lib.exp~
19404 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19406 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19410 hardcode_libdir_separator_CXX=:
19412 # Commands to make compiler produce verbose output that lists
19413 # what "hidden" libraries, object files and flags are used when
19414 # linking a shared library.
19416 # There doesn't appear to be a way to prevent this compiler from
19417 # explicitly linking system object files so we need to strip them
19418 # from the output so that they don't get included in the library
19420 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19423 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19424 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19427 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19430 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19435 hardcode_libdir_separator_CXX=:
19437 # Commands to make compiler produce verbose output that lists
19438 # what "hidden" libraries, object files and flags are used when
19439 # linking a shared library.
19440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19443 # FIXME: insert proper C++ library support
19451 # FIXME: insert proper C++ library support
19456 case $cc_basename in
19459 # FIXME: insert proper C++ library support
19464 # FIXME: insert proper C++ library support
19468 # FIXME: insert proper C++ library support
19475 case $cc_basename in
19477 # Sun C++ 4.2, 5.x and Centerline C++
19478 archive_cmds_need_lc_CXX=yes
19479 no_undefined_flag_CXX=' -zdefs'
19480 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19481 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19482 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19484 hardcode_libdir_flag_spec_CXX='-R$libdir'
19485 hardcode_shlibpath_var_CXX=no
19487 solaris2.[0-5] | solaris2.[0-5].*) ;;
19489 # The compiler driver will combine and reorder linker options,
19490 # but understands `-z linker_flag'.
19491 # Supported since Solaris 2.6 (maybe 2.5.1?)
19492 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19495 link_all_deplibs_CXX=yes
19497 output_verbose_link_cmd='func_echo_all'
19499 # Archives containing C++ object files must be created using
19500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19501 # necessary to make sure instantiated templates are included
19503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19506 # Green Hills C++ Compiler
19507 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19509 # The C++ compiler must be used to create the archive.
19510 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19513 # GNU C++ compiler with Solaris linker
19514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19515 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19516 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19517 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19518 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19519 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19526 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19528 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19529 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19530 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
19535 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19538 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19540 solaris2.[0-5] | solaris2.[0-5].*) ;;
19542 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19550 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19551 no_undefined_flag_CXX='${wl}-z,text'
19552 archive_cmds_need_lc_CXX=no
19553 hardcode_shlibpath_var_CXX=no
19554 runpath_var='LD_RUN_PATH'
19556 case $cc_basename in
19558 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19559 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19568 sysv5* | sco3.2v5* | sco5v6*)
19569 # Note: We can NOT use -z defs as we might desire, because we do not
19570 # link with -lc, and that would cause any symbols used from libc to
19571 # always be unresolved, which means just about no library would
19572 # ever link correctly. If we're not using GNU ld we use -z text
19573 # though, which does catch some bad symbols but isn't as heavy-handed
19575 no_undefined_flag_CXX='${wl}-z,text'
19576 allow_undefined_flag_CXX='${wl}-z,nodefs'
19577 archive_cmds_need_lc_CXX=no
19578 hardcode_shlibpath_var_CXX=no
19579 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19580 hardcode_libdir_separator_CXX=':'
19581 link_all_deplibs_CXX=yes
19582 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19583 runpath_var='LD_RUN_PATH'
19585 case $cc_basename in
19587 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19588 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19590 '"$old_archive_cmds_CXX"
19591 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19592 '"$reload_cmds_CXX"
19595 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19596 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19602 case $cc_basename in
19604 # NonStop-UX NCC 3.20
19605 # FIXME: insert proper C++ library support
19609 # FIXME: insert proper C++ library support
19616 # FIXME: insert proper C++ library support
19621 # FIXME: insert proper C++ library support
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19627 $as_echo "$ld_shlibs_CXX" >&6; }
19628 test "$ld_shlibs_CXX" = no && can_build_shared=no
19634 ## There is no encapsulation within the following macros, do not change
19635 ## the running order or otherwise move them around unless you know exactly
19636 ## what you are doing...
19637 # Dependencies to place before and after the object being linked:
19638 predep_objects_CXX=
19639 postdep_objects_CXX=
19642 compiler_lib_search_path_CXX=
19644 cat > conftest.$ac_ext <<_LT_EOF
19648 Foo (void) { a = 0; }
19654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19655 (eval $ac_compile) 2>&5
19657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19658 test $ac_status = 0; }; then
19659 # Parse the compiler output and extract the necessary
19660 # objects, libraries and library flags.
19662 # Sentinel used to keep track of whether or not we are before
19663 # the conftest object file.
19664 pre_test_object_deps_done=no
19666 for p in `eval "$output_verbose_link_cmd"`; do
19670 # Some compilers place space between "-{L,R}" and the path.
19671 # Remove the space.
19672 if test $p = "-L" ||
19673 test $p = "-R"; then
19680 if test "$pre_test_object_deps_done" = no; then
19683 # Internal compiler library paths should come after those
19684 # provided the user. The postdeps already come after the
19685 # user supplied libs so there is no need to process them.
19686 if test -z "$compiler_lib_search_path_CXX"; then
19687 compiler_lib_search_path_CXX="${prev}${p}"
19689 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19692 # The "-l" case would never come before the object being
19693 # linked, so don't bother handling this case.
19696 if test -z "$postdeps_CXX"; then
19697 postdeps_CXX="${prev}${p}"
19699 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19705 # This assumes that the test object file only shows up
19706 # once in the compiler output.
19707 if test "$p" = "conftest.$objext"; then
19708 pre_test_object_deps_done=yes
19712 if test "$pre_test_object_deps_done" = no; then
19713 if test -z "$predep_objects_CXX"; then
19714 predep_objects_CXX="$p"
19716 predep_objects_CXX="$predep_objects_CXX $p"
19719 if test -z "$postdep_objects_CXX"; then
19720 postdep_objects_CXX="$p"
19722 postdep_objects_CXX="$postdep_objects_CXX $p"
19727 *) ;; # Ignore the rest.
19735 echo "libtool.m4: error: problem compiling CXX test program"
19738 $RM -f confest.$objext
19740 # PORTME: override above test on systems where it is broken
19743 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19744 # hack all around it, let's just trust "g++" to DTRT.
19745 predep_objects_CXX=
19746 postdep_objects_CXX=
19751 case `$CC -V 2>&1 | sed 5q` in
19755 # The more standards-conforming stlport4 library is
19756 # incompatible with the Cstd library. Avoid specifying
19757 # it if it's in CXXFLAGS. Ignore libCrun as
19758 # -library=stlport4 depends on it.
19759 case " $CXX $CXXFLAGS " in
19760 *" -library=stlport4 "*)
19761 solaris_use_stlport4=yes
19765 if test "$solaris_use_stlport4" != yes; then
19766 postdeps_CXX='-library=Cstd -library=Crun'
19773 case $cc_basename in
19775 # The more standards-conforming stlport4 library is
19776 # incompatible with the Cstd library. Avoid specifying
19777 # it if it's in CXXFLAGS. Ignore libCrun as
19778 # -library=stlport4 depends on it.
19779 case " $CXX $CXXFLAGS " in
19780 *" -library=stlport4 "*)
19781 solaris_use_stlport4=yes
19785 # Adding this requires a known-good setup of shared libraries for
19786 # Sun compiler versions before 5.6, else PIC objects from an old
19787 # archive will be linked into the output, leading to subtle bugs.
19788 if test "$solaris_use_stlport4" != yes; then
19789 postdeps_CXX='-library=Cstd -library=Crun'
19797 case " $postdeps_CXX " in
19798 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19800 compiler_lib_search_dirs_CXX=
19801 if test -n "${compiler_lib_search_path_CXX}"; then
19802 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19835 lt_prog_compiler_wl_CXX=
19836 lt_prog_compiler_pic_CXX=
19837 lt_prog_compiler_static_CXX=
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19840 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19842 # C++ specific cases for pic, static, wl, etc.
19843 if test "$GXX" = yes; then
19844 lt_prog_compiler_wl_CXX='-Wl,'
19845 lt_prog_compiler_static_CXX='-static'
19849 # All AIX code is PIC.
19850 if test "$host_cpu" = ia64; then
19851 # AIX 5 now supports IA64 processor
19852 lt_prog_compiler_static_CXX='-Bstatic'
19859 # see comment about AmigaOS4 .so support
19860 lt_prog_compiler_pic_CXX='-fPIC'
19863 # FIXME: we need at least 68020 code to build shared libraries, but
19864 # adding the `-m68020' flag to GCC prevents building anything better,
19866 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19871 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19872 # PIC is the default for these OSes.
19874 mingw* | cygwin* | os2* | pw32* | cegcc*)
19875 # This hack is so that the source file can tell whether it is being
19876 # built for inclusion in a dll (and should export symbols for example).
19877 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19878 # (--disable-auto-import) libraries
19879 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19881 darwin* | rhapsody*)
19882 # PIC is the default on this platform
19883 # Common symbols not allowed in MH_DYLIB files
19884 lt_prog_compiler_pic_CXX='-fno-common'
19887 # DJGPP does not support shared libraries at all
19888 lt_prog_compiler_pic_CXX=
19891 # PIC is the default for Haiku.
19892 # The "-static" flag exists, but is broken.
19893 lt_prog_compiler_static_CXX=
19896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19897 # Instead, we relocate shared libraries at runtime.
19900 if test -d /usr/nec; then
19901 lt_prog_compiler_pic_CXX=-Kconform_pic
19905 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19906 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19907 # sets the default TLS model and affects inlining.
19912 lt_prog_compiler_pic_CXX='-fPIC'
19917 # QNX uses GNU C++, but need to define -shared option too, otherwise
19918 # it will coredump.
19919 lt_prog_compiler_pic_CXX='-fPIC -shared'
19922 lt_prog_compiler_pic_CXX='-fPIC'
19928 # All AIX code is PIC.
19929 if test "$host_cpu" = ia64; then
19930 # AIX 5 now supports IA64 processor
19931 lt_prog_compiler_static_CXX='-Bstatic'
19933 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19937 case $cc_basename in
19939 # Green Hills C++ Compiler
19940 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19945 case $cc_basename in
19947 lt_prog_compiler_pic_CXX='-KPIC'
19950 # Green Hills C++ Compiler
19951 lt_prog_compiler_pic_CXX='-pic'
19957 freebsd* | dragonfly*)
19958 # FreeBSD uses GNU C++
19960 hpux9* | hpux10* | hpux11*)
19961 case $cc_basename in
19963 lt_prog_compiler_wl_CXX='-Wl,'
19964 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19965 if test "$host_cpu" != ia64; then
19966 lt_prog_compiler_pic_CXX='+Z'
19970 lt_prog_compiler_wl_CXX='-Wl,'
19971 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19977 lt_prog_compiler_pic_CXX='+Z'
19986 # This is c89, which is MS Visual C++ (no shared libs)
19987 # Anyone wants to do a port?
19989 irix5* | irix6* | nonstopux*)
19990 case $cc_basename in
19992 lt_prog_compiler_wl_CXX='-Wl,'
19993 lt_prog_compiler_static_CXX='-non_shared'
19994 # CC pic flag -KPIC is the default.
20000 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20001 case $cc_basename in
20004 lt_prog_compiler_wl_CXX='--backend -Wl,'
20005 lt_prog_compiler_pic_CXX='-fPIC'
20008 # old Intel C++ for x86_64 which still supported -KPIC.
20009 lt_prog_compiler_wl_CXX='-Wl,'
20010 lt_prog_compiler_pic_CXX='-KPIC'
20011 lt_prog_compiler_static_CXX='-static'
20014 # Intel C++, used to be incompatible with GCC.
20015 # ICC 10 doesn't accept -KPIC any more.
20016 lt_prog_compiler_wl_CXX='-Wl,'
20017 lt_prog_compiler_pic_CXX='-fPIC'
20018 lt_prog_compiler_static_CXX='-static'
20021 # Portland Group C++ compiler
20022 lt_prog_compiler_wl_CXX='-Wl,'
20023 lt_prog_compiler_pic_CXX='-fpic'
20024 lt_prog_compiler_static_CXX='-Bstatic'
20028 # Make sure the PIC flag is empty. It appears that all Alpha
20029 # Linux and Compaq Tru64 Unix objects are PIC.
20030 lt_prog_compiler_pic_CXX=
20031 lt_prog_compiler_static_CXX='-non_shared'
20033 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20034 # IBM XL 8.0, 9.0 on PPC and BlueGene
20035 lt_prog_compiler_wl_CXX='-Wl,'
20036 lt_prog_compiler_pic_CXX='-qpic'
20037 lt_prog_compiler_static_CXX='-qstaticlink'
20040 case `$CC -V 2>&1 | sed 5q` in
20043 lt_prog_compiler_pic_CXX='-KPIC'
20044 lt_prog_compiler_static_CXX='-Bstatic'
20045 lt_prog_compiler_wl_CXX='-Qoption ld '
20056 case $cc_basename in
20058 lt_prog_compiler_pic_CXX='-W c,exportall'
20067 # QNX uses GNU C++, but need to define -shared option too, otherwise
20068 # it will coredump.
20069 lt_prog_compiler_pic_CXX='-fPIC -shared'
20071 osf3* | osf4* | osf5*)
20072 case $cc_basename in
20074 lt_prog_compiler_wl_CXX='--backend -Wl,'
20077 # Rational C++ 2.4.1
20078 lt_prog_compiler_pic_CXX='-pic'
20081 # Digital/Compaq C++
20082 lt_prog_compiler_wl_CXX='-Wl,'
20083 # Make sure the PIC flag is empty. It appears that all Alpha
20084 # Linux and Compaq Tru64 Unix objects are PIC.
20085 lt_prog_compiler_pic_CXX=
20086 lt_prog_compiler_static_CXX='-non_shared'
20095 case $cc_basename in
20097 # Sun C++ 4.2, 5.x and Centerline C++
20098 lt_prog_compiler_pic_CXX='-KPIC'
20099 lt_prog_compiler_static_CXX='-Bstatic'
20100 lt_prog_compiler_wl_CXX='-Qoption ld '
20103 # Green Hills C++ Compiler
20104 lt_prog_compiler_pic_CXX='-PIC'
20111 case $cc_basename in
20114 lt_prog_compiler_pic_CXX='-pic'
20115 lt_prog_compiler_static_CXX='-Bstatic'
20119 lt_prog_compiler_pic_CXX='-pic'
20125 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20126 case $cc_basename in
20128 lt_prog_compiler_wl_CXX='-Wl,'
20129 lt_prog_compiler_pic_CXX='-KPIC'
20130 lt_prog_compiler_static_CXX='-Bstatic'
20135 case $cc_basename in
20137 # NonStop-UX NCC 3.20
20138 lt_prog_compiler_pic_CXX='-KPIC'
20147 lt_prog_compiler_can_build_shared_CXX=no
20153 # For platforms which do not support PIC, -DPIC is meaningless:
20155 lt_prog_compiler_pic_CXX=
20158 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20162 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20167 # Check to make sure the PIC flag actually works.
20169 if test -n "$lt_prog_compiler_pic_CXX"; then
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20171 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20172 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20173 $as_echo_n "(cached) " >&6
20175 lt_cv_prog_compiler_pic_works_CXX=no
20176 ac_outfile=conftest.$ac_objext
20177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20178 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20179 # Insert the option either (1) after the last *FLAGS variable, or
20180 # (2) before a word containing "conftest.", or (3) at the end.
20181 # Note that $ac_compile itself does not contain backslashes and begins
20182 # with a dollar sign (not a hyphen), so the echo should work correctly.
20183 # The option is referenced via a variable to avoid confusing sed.
20184 lt_compile=`echo "$ac_compile" | $SED \
20185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20187 -e 's:$: $lt_compiler_flag:'`
20188 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20189 (eval "$lt_compile" 2>conftest.err)
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 if (exit $ac_status) && test -s "$ac_outfile"; then
20194 # The compiler can only warn and ignore the option if not recognized
20195 # So say no if there are warnings other than the usual output.
20196 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20199 lt_cv_prog_compiler_pic_works_CXX=yes
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20206 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20208 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20209 case $lt_prog_compiler_pic_CXX in
20211 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20214 lt_prog_compiler_pic_CXX=
20215 lt_prog_compiler_can_build_shared_CXX=no
20223 # Check to make sure the static flag actually works.
20225 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20227 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20228 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20229 $as_echo_n "(cached) " >&6
20231 lt_cv_prog_compiler_static_works_CXX=no
20232 save_LDFLAGS="$LDFLAGS"
20233 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20236 # The linker can only warn and ignore the option if not recognized
20237 # So say no if there are warnings
20238 if test -s conftest.err; then
20239 # Append any errors to the config.log.
20240 cat conftest.err 1>&5
20241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20243 if diff conftest.exp conftest.er2 >/dev/null; then
20244 lt_cv_prog_compiler_static_works_CXX=yes
20247 lt_cv_prog_compiler_static_works_CXX=yes
20251 LDFLAGS="$save_LDFLAGS"
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20255 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20257 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20260 lt_prog_compiler_static_CXX=
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20268 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20269 $as_echo_n "(cached) " >&6
20271 lt_cv_prog_compiler_c_o_CXX=no
20272 $RM -r conftest 2>/dev/null
20276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20278 lt_compiler_flag="-o out/conftest2.$ac_objext"
20279 # Insert the option either (1) after the last *FLAGS variable, or
20280 # (2) before a word containing "conftest.", or (3) at the end.
20281 # Note that $ac_compile itself does not contain backslashes and begins
20282 # with a dollar sign (not a hyphen), so the echo should work correctly.
20283 lt_compile=`echo "$ac_compile" | $SED \
20284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20286 -e 's:$: $lt_compiler_flag:'`
20287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20288 (eval "$lt_compile" 2>out/conftest.err)
20290 cat out/conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20294 # The compiler can only warn and ignore the option if not recognized
20295 # So say no if there are warnings
20296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20299 lt_cv_prog_compiler_c_o_CXX=yes
20304 # SGI C++ compiler will create directory out/ii_files/ for
20305 # template instantiation
20306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20307 $RM out/* && rmdir out
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20314 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20319 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20320 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20321 $as_echo_n "(cached) " >&6
20323 lt_cv_prog_compiler_c_o_CXX=no
20324 $RM -r conftest 2>/dev/null
20328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20330 lt_compiler_flag="-o out/conftest2.$ac_objext"
20331 # Insert the option either (1) after the last *FLAGS variable, or
20332 # (2) before a word containing "conftest.", or (3) at the end.
20333 # Note that $ac_compile itself does not contain backslashes and begins
20334 # with a dollar sign (not a hyphen), so the echo should work correctly.
20335 lt_compile=`echo "$ac_compile" | $SED \
20336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20338 -e 's:$: $lt_compiler_flag:'`
20339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20340 (eval "$lt_compile" 2>out/conftest.err)
20342 cat out/conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20346 # The compiler can only warn and ignore the option if not recognized
20347 # So say no if there are warnings
20348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20349 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20350 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20351 lt_cv_prog_compiler_c_o_CXX=yes
20356 # SGI C++ compiler will create directory out/ii_files/ for
20357 # template instantiation
20358 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20359 $RM out/* && rmdir out
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20366 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20371 hard_links="nottested"
20372 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20373 # do not overwrite the value of need_locks provided by the user
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20375 $as_echo_n "checking if we can lock with hard links... " >&6; }
20378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20380 ln conftest.a conftest.b 2>&5 || hard_links=no
20381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20383 $as_echo "$hard_links" >&6; }
20384 if test "$hard_links" = no; then
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20386 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20396 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20398 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20401 # If we're using GNU nm, then we don't want the "-C" option.
20402 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20403 # Also, AIX nm treats weak defined symbols like other global defined
20404 # symbols, whereas GNU nm marks them as "W".
20405 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20406 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20408 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20412 export_symbols_cmds_CXX="$ltdll_cmds"
20414 cygwin* | mingw* | cegcc*)
20415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20418 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20421 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20424 $as_echo "$ld_shlibs_CXX" >&6; }
20425 test "$ld_shlibs_CXX" = no && can_build_shared=no
20427 with_gnu_ld_CXX=$with_gnu_ld
20435 # Do we need to explicitly link libc?
20437 case "x$archive_cmds_need_lc_CXX" in
20439 # Assume -lc should be added
20440 archive_cmds_need_lc_CXX=yes
20442 if test "$enable_shared" = yes && test "$GCC" = yes; then
20443 case $archive_cmds_CXX in
20445 # FIXME: we may have to deal with multi-command sequences.
20448 # Test whether the compiler implicitly links with -lc since on some
20449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20450 # to ld, don't add -lc before -lgcc.
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20452 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20453 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20454 $as_echo_n "(cached) " >&6
20457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20460 (eval $ac_compile) 2>&5
20462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20463 test $ac_status = 0; } 2>conftest.err; then
20466 libobjs=conftest.$ac_objext
20468 wl=$lt_prog_compiler_wl_CXX
20469 pic_flag=$lt_prog_compiler_pic_CXX
20475 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20476 allow_undefined_flag_CXX=
20477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20478 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20481 test $ac_status = 0; }
20483 lt_cv_archive_cmds_need_lc_CXX=no
20485 lt_cv_archive_cmds_need_lc_CXX=yes
20487 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20489 cat conftest.err 1>&5
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20495 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20496 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20567 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20569 library_names_spec=
20570 libname_spec='lib$name'
20574 postuninstall_cmds=
20578 shlibpath_overrides_runpath=unknown
20580 dynamic_linker="$host_os ld.so"
20581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20582 need_lib_prefix=unknown
20583 hardcode_into_libs=no
20585 # when you set need_version to no, make sure it does not cause -set_version
20586 # flags to be left without arguments
20587 need_version=unknown
20592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20593 shlibpath_var=LIBPATH
20595 # AIX 3 has no versioning support, so we append a major version to the name.
20596 soname_spec='${libname}${release}${shared_ext}$major'
20603 hardcode_into_libs=yes
20604 if test "$host_cpu" = ia64; then
20605 # AIX 5 supports IA64
20606 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20607 shlibpath_var=LD_LIBRARY_PATH
20609 # With GCC up to 2.95.x, collect2 would create an import file
20610 # for dependence libraries. The import file would start with
20611 # the line `#! .'. This would cause the generated library to
20612 # depend on `.', always an invalid library. This was fixed in
20613 # development snapshots of GCC prior to 3.0.
20615 aix4 | aix4.[01] | aix4.[01].*)
20616 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20618 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20621 can_build_shared=no
20625 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20626 # soname into executable. Probably we can add versioning support to
20627 # collect2, so additional links can be useful in future.
20628 if test "$aix_use_runtimelinking" = yes; then
20629 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20630 # instead of lib<name>.a to let people know that these are not
20631 # typical AIX shared libraries.
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20634 # We preserve .a as extension for shared libraries through AIX4.2
20635 # and later when we are not doing run time linking.
20636 library_names_spec='${libname}${release}.a $libname.a'
20637 soname_spec='${libname}${release}${shared_ext}$major'
20639 shlibpath_var=LIBPATH
20646 # Since July 2007 AmigaOS4 officially supports .so libraries.
20647 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20651 library_names_spec='$libname.ixlibrary $libname.a'
20652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20653 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20659 library_names_spec='${libname}${shared_ext}'
20660 dynamic_linker="$host_os ld.so"
20661 shlibpath_var=LIBRARY_PATH
20667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 soname_spec='${libname}${release}${shared_ext}$major'
20669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20670 shlibpath_var=LD_LIBRARY_PATH
20671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20673 # the default ld.so.conf also contains /usr/contrib/lib and
20674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20675 # libtool to hard-code these into programs
20678 cygwin* | mingw* | pw32* | cegcc*)
20679 version_type=windows
20684 case $GCC,$host_os in
20685 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20686 library_names_spec='$libname.dll.a'
20687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20688 postinstall_cmds='base_file=`basename \${file}`~
20689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20690 dldir=$destdir/`dirname \$dlpath`~
20691 test -d \$dldir || mkdir -p \$dldir~
20692 $install_prog $dir/$dlname \$dldir/$dlname~
20693 chmod a+x \$dldir/$dlname~
20694 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20695 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20698 dlpath=$dir/\$dldll~
20700 shlibpath_overrides_runpath=yes
20704 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20705 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20709 # MinGW DLLs use traditional 'lib' prefix
20710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20713 # pw32 DLLs use 'pw' prefix rather than 'lib'
20714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20723 dynamic_linker='Win32 ld.exe'
20724 # FIXME: first we should search . and the directory the executable is in
20728 darwin* | rhapsody*)
20729 dynamic_linker="$host_os dyld"
20730 version_type=darwin
20733 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20734 soname_spec='${libname}${release}${major}$shared_ext'
20735 shlibpath_overrides_runpath=yes
20736 shlibpath_var=DYLD_LIBRARY_PATH
20737 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20747 soname_spec='${libname}${release}${shared_ext}$major'
20748 shlibpath_var=LD_LIBRARY_PATH
20751 freebsd* | dragonfly*)
20752 # DragonFly does not have aout. When/if they implement a new
20753 # versioning mechanism, adjust this.
20754 if test -x /usr/bin/objformat; then
20755 objformat=`/usr/bin/objformat`
20758 freebsd[123]*) objformat=aout ;;
20759 *) objformat=elf ;;
20762 version_type=freebsd-$objformat
20763 case $version_type in
20765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20774 shlibpath_var=LD_LIBRARY_PATH
20777 shlibpath_overrides_runpath=yes
20779 freebsd3.[01]* | freebsdelf3.[01]*)
20780 shlibpath_overrides_runpath=yes
20781 hardcode_into_libs=yes
20783 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20784 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20785 shlibpath_overrides_runpath=no
20786 hardcode_into_libs=yes
20788 *) # from 4.6 on, and DragonFly
20789 shlibpath_overrides_runpath=yes
20790 hardcode_into_libs=yes
20799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20800 soname_spec='${libname}${release}${shared_ext}$major'
20801 shlibpath_var=LD_LIBRARY_PATH
20802 hardcode_into_libs=yes
20809 dynamic_linker="$host_os runtime_loader"
20810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20811 soname_spec='${libname}${release}${shared_ext}$major'
20812 shlibpath_var=LIBRARY_PATH
20813 shlibpath_overrides_runpath=yes
20814 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20815 hardcode_into_libs=yes
20818 hpux9* | hpux10* | hpux11*)
20819 # Give a soname corresponding to the major version so that dld.sl refuses to
20820 # link against other versions.
20827 hardcode_into_libs=yes
20828 dynamic_linker="$host_os dld.so"
20829 shlibpath_var=LD_LIBRARY_PATH
20830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20832 soname_spec='${libname}${release}${shared_ext}$major'
20833 if test "X$HPUX_IA64_MODE" = X32; then
20834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20842 hardcode_into_libs=yes
20843 dynamic_linker="$host_os dld.sl"
20844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20853 dynamic_linker="$host_os dld.sl"
20854 shlibpath_var=SHLIB_PATH
20855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20857 soname_spec='${libname}${release}${shared_ext}$major'
20860 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20861 postinstall_cmds='chmod 555 $lib'
20862 # or fails outright, so override atomically:
20863 install_override_mode=555
20870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20871 soname_spec='${libname}${release}${shared_ext}$major'
20872 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20873 shlibpath_var=LD_LIBRARY_PATH
20874 shlibpath_overrides_runpath=no
20875 hardcode_into_libs=yes
20878 irix5* | irix6* | nonstopux*)
20880 nonstopux*) version_type=nonstopux ;;
20882 if test "$lt_cv_prog_gnu_ld" = yes; then
20890 soname_spec='${libname}${release}${shared_ext}$major'
20891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20893 irix5* | nonstopux*)
20894 libsuff= shlibsuff=
20897 case $LD in # libtool.m4 will add one of these switches to LD
20898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20899 libsuff= shlibsuff= libmagic=32-bit;;
20900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20901 libsuff=32 shlibsuff=N32 libmagic=N32;;
20902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20903 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20904 *) libsuff= shlibsuff= libmagic=never-match;;
20908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20909 shlibpath_overrides_runpath=no
20910 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20911 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20912 hardcode_into_libs=yes
20915 # No shared lib support for Linux oldld, aout, or coff.
20916 linux*oldld* | linux*aout* | linux*coff*)
20920 # This must be Linux ELF.
20921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20926 soname_spec='${libname}${release}${shared_ext}$major'
20927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20928 shlibpath_var=LD_LIBRARY_PATH
20929 shlibpath_overrides_runpath=no
20931 # Some binutils ld are patched to set DT_RUNPATH
20932 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20933 $as_echo_n "(cached) " >&6
20935 lt_cv_shlibpath_overrides_runpath=no
20936 save_LDFLAGS=$LDFLAGS
20937 save_libdir=$libdir
20938 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20939 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20941 /* end confdefs.h. */
20951 if ac_fn_cxx_try_link "$LINENO"; then :
20952 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20953 lt_cv_shlibpath_overrides_runpath=yes
20956 rm -f core conftest.err conftest.$ac_objext \
20957 conftest$ac_exeext conftest.$ac_ext
20958 LDFLAGS=$save_LDFLAGS
20959 libdir=$save_libdir
20963 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20965 # This implies no fast_install, which is unacceptable.
20966 # Some rework will be needed to allow for fast_install
20967 # before this can be enabled.
20968 hardcode_into_libs=yes
20970 # Append ld.so.conf contents to the search path
20971 if test -f /etc/ld.so.conf; then
20972 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
20973 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20976 # We used to test for /lib/ld.so.1 and disable shared libraries on
20977 # powerpc, because MkLinux only supported shared libraries with the
20978 # GNU dynamic linker. Since this was broken with cross compilers,
20979 # most powerpc-linux boxes support dynamic linking these days and
20980 # people can always --disable-shared, the test was removed, and we
20981 # assume the GNU/Linux dynamic linker is in use.
20982 dynamic_linker='GNU/Linux ld.so'
20989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20992 dynamic_linker='NetBSD (a.out) ld.so'
20994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20995 soname_spec='${libname}${release}${shared_ext}$major'
20996 dynamic_linker='NetBSD ld.elf_so'
20998 shlibpath_var=LD_LIBRARY_PATH
20999 shlibpath_overrides_runpath=yes
21000 hardcode_into_libs=yes
21005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21006 shlibpath_var=LD_LIBRARY_PATH
21007 shlibpath_overrides_runpath=yes
21014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21015 soname_spec='${libname}${release}${shared_ext}$major'
21016 shlibpath_var=LD_LIBRARY_PATH
21017 shlibpath_overrides_runpath=no
21018 hardcode_into_libs=yes
21019 dynamic_linker='ldqnx.so'
21024 sys_lib_dlsearch_path_spec="/usr/lib"
21026 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21028 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21029 *) need_version=no ;;
21031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21033 shlibpath_var=LD_LIBRARY_PATH
21034 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21036 openbsd2.[89] | openbsd2.[89].*)
21037 shlibpath_overrides_runpath=no
21040 shlibpath_overrides_runpath=yes
21044 shlibpath_overrides_runpath=yes
21049 libname_spec='$name'
21052 library_names_spec='$libname${shared_ext} $libname.a'
21053 dynamic_linker='OS/2 ld.exe'
21054 shlibpath_var=LIBPATH
21057 osf3* | osf4* | osf5*)
21061 soname_spec='${libname}${release}${shared_ext}$major'
21062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21063 shlibpath_var=LD_LIBRARY_PATH
21064 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21065 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21077 soname_spec='${libname}${release}${shared_ext}$major'
21078 shlibpath_var=LD_LIBRARY_PATH
21079 shlibpath_overrides_runpath=yes
21080 hardcode_into_libs=yes
21081 # ldd complains unless libraries are executable
21082 postinstall_cmds='chmod +x $lib'
21087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21088 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21089 shlibpath_var=LD_LIBRARY_PATH
21090 shlibpath_overrides_runpath=yes
21091 if test "$with_gnu_ld" = yes; then
21099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21100 soname_spec='${libname}${release}${shared_ext}$major'
21101 shlibpath_var=LD_LIBRARY_PATH
21102 case $host_vendor in
21104 shlibpath_overrides_runpath=no
21106 runpath_var=LD_RUN_PATH
21114 shlibpath_overrides_runpath=no
21115 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21121 if test -d /usr/nec ;then
21123 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21124 soname_spec='$libname${shared_ext}.$major'
21125 shlibpath_var=LD_LIBRARY_PATH
21129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21130 version_type=freebsd-elf
21133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21134 soname_spec='${libname}${release}${shared_ext}$major'
21135 shlibpath_var=LD_LIBRARY_PATH
21136 shlibpath_overrides_runpath=yes
21137 hardcode_into_libs=yes
21138 if test "$with_gnu_ld" = yes; then
21139 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21141 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21144 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21148 sys_lib_dlsearch_path_spec='/usr/lib'
21152 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21157 shlibpath_var=LD_LIBRARY_PATH
21158 shlibpath_overrides_runpath=no
21159 hardcode_into_libs=yes
21164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21165 soname_spec='${libname}${release}${shared_ext}$major'
21166 shlibpath_var=LD_LIBRARY_PATH
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21174 $as_echo "$dynamic_linker" >&6; }
21175 test "$dynamic_linker" = no && can_build_shared=no
21177 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21178 if test "$GCC" = yes; then
21179 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21182 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21183 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21185 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21186 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21228 hardcode_action_CXX=
21229 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21230 test -n "$runpath_var_CXX" ||
21231 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21233 # We can hardcode non-existent directories.
21234 if test "$hardcode_direct_CXX" != no &&
21235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21236 # have to relink, otherwise we might link with an installed library
21237 # when we should be linking with a yet-to-be-installed one
21238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21239 test "$hardcode_minus_L_CXX" != no; then
21240 # Linking always hardcodes the temporary library directory.
21241 hardcode_action_CXX=relink
21243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21244 hardcode_action_CXX=immediate
21247 # We cannot hardcode anything, or else we can only hardcode existing
21249 hardcode_action_CXX=unsupported
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21252 $as_echo "$hardcode_action_CXX" >&6; }
21254 if test "$hardcode_action_CXX" = relink ||
21255 test "$inherit_rpath_CXX" = yes; then
21256 # Fast installation is not supported
21257 enable_fast_install=no
21258 elif test "$shlibpath_overrides_runpath" = yes ||
21259 test "$enable_shared" = no; then
21260 # Fast installation is not necessary
21261 enable_fast_install=needless
21270 fi # test -n "$compiler"
21276 with_gnu_ld=$lt_save_with_gnu_ld
21277 lt_cv_path_LDCXX=$lt_cv_path_LD
21278 lt_cv_path_LD=$lt_save_path_LD
21279 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21280 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21281 fi # test "$_lt_caught_CXX_error" != yes
21284 ac_cpp='$CPP $CPPFLAGS'
21285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21304 # Only expand once:
21310 # Identify the assembler which will work hand-in-glove with the newly
21311 # built GCC, so that we can examine its features. This is the assembler
21312 # which will be driven by the driver program.
21314 # If build != host, and we aren't building gas in-tree, we identify a
21315 # build->target assembler and hope that it will have the same features
21316 # as the host->target assembler we'll be using.
21317 gcc_cv_gas_major_version=
21318 gcc_cv_gas_minor_version=
21319 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21321 if test "${gcc_cv_as+set}" = set; then :
21325 if test -x "$DEFAULT_ASSEMBLER"; then
21326 gcc_cv_as="$DEFAULT_ASSEMBLER"
21327 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21328 && test -f ../gas/Makefile \
21329 && test x$build = x$host; then
21330 gcc_cv_as=../gas/as-new$build_exeext
21331 elif test -x as$build_exeext; then
21332 # Build using assembler in the current directory.
21333 gcc_cv_as=./as$build_exeext
21334 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21335 gcc_cv_as="$AS_FOR_TARGET"
21337 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21338 set dummy $AS_FOR_TARGET; ac_word=$2
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21340 $as_echo_n "checking for $ac_word... " >&6; }
21341 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21342 $as_echo_n "(cached) " >&6
21346 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21350 for as_dir in $PATH
21353 test -z "$as_dir" && as_dir=.
21354 for ac_exec_ext in '' $ac_executable_extensions; do
21355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21356 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21367 gcc_cv_as=$ac_cv_path_gcc_cv_as
21368 if test -n "$gcc_cv_as"; then
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21370 $as_echo "$gcc_cv_as" >&6; }
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21373 $as_echo "no" >&6; }
21380 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21382 case "$ORIGINAL_AS_FOR_TARGET" in
21383 ./as | ./as$build_exeext) ;;
21384 *) ac_config_files="$ac_config_files as:exec-tool.in"
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21389 $as_echo_n "checking what assembler to use... " >&6; }
21390 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21391 # Single tree build which includes gas. We want to prefer it
21392 # over whatever linker top-level may have detected, since
21393 # we'll use what we're building after installation anyway.
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21395 $as_echo "newly built gas" >&6; }
21397 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21398 for f in $gcc_cv_as_bfd_srcdir/configure \
21399 $gcc_cv_as_gas_srcdir/configure \
21400 $gcc_cv_as_gas_srcdir/configure.in \
21401 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21402 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21403 if test x$gcc_cv_gas_version != x; then
21407 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21408 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21409 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21410 case $gcc_cv_gas_patch_version in
21411 "") gcc_cv_gas_patch_version="0" ;;
21413 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21414 + $gcc_cv_gas_minor_version \) \* 1000 \
21415 + $gcc_cv_gas_patch_version`
21417 in_tree_gas_is_elf=no
21418 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21419 || (grep 'obj_format = multi' ../gas/Makefile \
21420 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21422 in_tree_gas_is_elf=yes
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21426 $as_echo "$gcc_cv_as" >&6; }
21430 # Identify the linker which will work hand-in-glove with the newly
21431 # built GCC, so that we can examine its features. This is the linker
21432 # which will be driven by the driver program.
21434 # If build != host, and we aren't building gas in-tree, we identify a
21435 # build->target linker and hope that it will have the same features
21436 # as the host->target linker we'll be using.
21437 gcc_cv_gld_major_version=
21438 gcc_cv_gld_minor_version=
21439 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21440 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21442 if test "${gcc_cv_ld+set}" = set; then :
21446 if test -x "$DEFAULT_LINKER"; then
21447 gcc_cv_ld="$DEFAULT_LINKER"
21448 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21449 && test -f ../ld/Makefile \
21450 && test x$build = x$host; then
21451 gcc_cv_ld=../ld/ld-new$build_exeext
21452 elif test -x collect-ld$build_exeext; then
21453 # Build using linker in the current directory.
21454 gcc_cv_ld=./collect-ld$build_exeext
21455 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21456 gcc_cv_ld="$LD_FOR_TARGET"
21458 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21459 set dummy $LD_FOR_TARGET; ac_word=$2
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21461 $as_echo_n "checking for $ac_word... " >&6; }
21462 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21463 $as_echo_n "(cached) " >&6
21467 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21471 for as_dir in $PATH
21474 test -z "$as_dir" && as_dir=.
21475 for ac_exec_ext in '' $ac_executable_extensions; do
21476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21477 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21488 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21489 if test -n "$gcc_cv_ld"; then
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21491 $as_echo "$gcc_cv_ld" >&6; }
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21494 $as_echo "no" >&6; }
21501 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21502 PLUGIN_LD=`basename $gcc_cv_ld`
21504 # Check whether --with-plugin-ld was given.
21505 if test "${with_plugin_ld+set}" = set; then :
21506 withval=$with_plugin_ld; if test x"$withval" != x; then
21507 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21508 PLUGIN_LD="$withval"
21514 cat >>confdefs.h <<_ACEOF
21515 #define PLUGIN_LD "$PLUGIN_LD"
21519 # Check to see if we are using gold instead of ld
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21521 $as_echo_n "checking whether we are using gold... " >&6; }
21523 if test x$gcc_cv_ld != x; then
21524 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21525 | grep "GNU gold" > /dev/null; then
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21530 $as_echo "$ld_is_gold" >&6; }
21532 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21534 case "$ORIGINAL_LD_FOR_TARGET" in
21535 ./collect-ld | ./collect-ld$build_exeext) ;;
21536 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21541 $as_echo_n "checking what linker to use... " >&6; }
21542 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21543 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21544 # Single tree build which includes ld. We want to prefer it
21545 # over whatever linker top-level may have detected, since
21546 # we'll use what we're building after installation anyway.
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21548 $as_echo "newly built ld" >&6; }
21550 in_tree_ld_is_elf=no
21551 if (grep 'EMUL = .*elf' ../ld/Makefile \
21552 || grep 'EMUL = .*linux' ../ld/Makefile \
21553 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21554 in_tree_ld_is_elf=yes
21555 elif test "$ld_is_gold" = yes; then
21556 in_tree_ld_is_elf=yes
21558 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21560 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21561 if test x$gcc_cv_gld_version != x; then
21565 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21566 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21569 $as_echo "$gcc_cv_ld" >&6; }
21573 # Figure out what nm we will be using.
21574 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21575 if test "${gcc_cv_nm+set}" = set; then :
21579 if test -f $gcc_cv_binutils_srcdir/configure.in \
21580 && test -f ../binutils/Makefile \
21581 && test x$build = x$host; then
21582 gcc_cv_nm=../binutils/nm-new$build_exeext
21583 elif test -x nm$build_exeext; then
21584 gcc_cv_nm=./nm$build_exeext
21585 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21586 gcc_cv_nm="$NM_FOR_TARGET"
21588 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21589 set dummy $NM_FOR_TARGET; ac_word=$2
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21591 $as_echo_n "checking for $ac_word... " >&6; }
21592 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21593 $as_echo_n "(cached) " >&6
21597 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21601 for as_dir in $PATH
21604 test -z "$as_dir" && as_dir=.
21605 for ac_exec_ext in '' $ac_executable_extensions; do
21606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21607 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21618 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21619 if test -n "$gcc_cv_nm"; then
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21621 $as_echo "$gcc_cv_nm" >&6; }
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21624 $as_echo "no" >&6; }
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21632 $as_echo_n "checking what nm to use... " >&6; }
21633 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21634 # Single tree build which includes binutils.
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21636 $as_echo "newly built nm" >&6; }
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21640 $as_echo "$gcc_cv_nm" >&6; }
21644 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21646 case "$ORIGINAL_NM_FOR_TARGET" in
21647 ./nm | ./nm$build_exeext) ;;
21648 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21653 # Figure out what objdump we will be using.
21654 if test "${gcc_cv_objdump+set}" = set; then :
21658 if test -f $gcc_cv_binutils_srcdir/configure.in \
21659 && test -f ../binutils/Makefile \
21660 && test x$build = x$host; then
21661 # Single tree build which includes binutils.
21662 gcc_cv_objdump=../binutils/objdump$build_exeext
21663 elif test -x objdump$build_exeext; then
21664 gcc_cv_objdump=./objdump$build_exeext
21665 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21666 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21668 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21669 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21671 $as_echo_n "checking for $ac_word... " >&6; }
21672 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21673 $as_echo_n "(cached) " >&6
21675 case $gcc_cv_objdump in
21677 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21681 for as_dir in $PATH
21684 test -z "$as_dir" && as_dir=.
21685 for ac_exec_ext in '' $ac_executable_extensions; do
21686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21687 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21698 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21699 if test -n "$gcc_cv_objdump"; then
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21701 $as_echo "$gcc_cv_objdump" >&6; }
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21704 $as_echo "no" >&6; }
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21712 $as_echo_n "checking what objdump to use... " >&6; }
21713 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21714 # Single tree build which includes binutils.
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21716 $as_echo "newly built objdump" >&6; }
21717 elif test x$gcc_cv_objdump = x; then
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21719 $as_echo "not found" >&6; }
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21722 $as_echo "$gcc_cv_objdump" >&6; }
21725 # Figure out what readelf we will be using.
21726 if test "${gcc_cv_readelf+set}" = set; then :
21730 if test -f $gcc_cv_binutils_srcdir/configure.in \
21731 && test -f ../binutils/Makefile \
21732 && test x$build = x$host; then
21733 # Single tree build which includes binutils.
21734 gcc_cv_readelf=../binutils/readelf$build_exeext
21735 elif test -x readelf$build_exeext; then
21736 gcc_cv_readelf=./readelf$build_exeext
21738 # Extract the first word of "readelf", so it can be a program name with args.
21739 set dummy readelf; ac_word=$2
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21741 $as_echo_n "checking for $ac_word... " >&6; }
21742 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21743 $as_echo_n "(cached) " >&6
21745 case $gcc_cv_readelf in
21747 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 for as_dir in $PATH
21754 test -z "$as_dir" && as_dir=.
21755 for ac_exec_ext in '' $ac_executable_extensions; do
21756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21757 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21768 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21769 if test -n "$gcc_cv_readelf"; then
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21771 $as_echo "$gcc_cv_readelf" >&6; }
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21774 $as_echo "no" >&6; }
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21782 $as_echo_n "checking what readelf to use... " >&6; }
21783 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21784 # Single tree build which includes binutils.
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21786 $as_echo "newly built readelf" >&6; }
21787 elif test x$gcc_cv_readelf = x; then
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21789 $as_echo "not found" >&6; }
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21792 $as_echo "$gcc_cv_readelf" >&6; }
21795 # Figure out what assembler alignment features are present.
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21797 $as_echo_n "checking assembler flags... " >&6; }
21798 if test "${gcc_cv_as_flags+set}" = set; then :
21799 $as_echo_n "(cached) " >&6
21802 i[34567]86-*-linux*)
21803 gcc_cv_as_flags="--32"
21805 powerpc*-*-darwin*)
21806 gcc_cv_as_flags="-arch ppc"
21809 gcc_cv_as_flags=" "
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21814 $as_echo "$gcc_cv_as_flags" >&6; }
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21817 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21818 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21819 $as_echo_n "(cached) " >&6
21821 gcc_cv_as_balign_and_p2align=no
21822 if test $in_tree_gas = yes; then
21823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21824 then gcc_cv_as_balign_and_p2align=yes
21826 elif test x$gcc_cv_as != x; then
21827 $as_echo '.balign 4
21828 .p2align 2' > conftest.s
21829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21831 (eval $ac_try) 2>&5
21833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21834 test $ac_status = 0; }; }
21836 gcc_cv_as_balign_and_p2align=yes
21838 echo "configure: failed program was" >&5
21841 rm -f conftest.o conftest.s
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21845 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21846 if test $gcc_cv_as_balign_and_p2align = yes; then
21848 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21853 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21854 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21857 gcc_cv_as_max_skip_p2align=no
21858 if test $in_tree_gas = yes; then
21859 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21860 then gcc_cv_as_max_skip_p2align=yes
21862 elif test x$gcc_cv_as != x; then
21863 $as_echo '.p2align 4,,7' > conftest.s
21864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21866 (eval $ac_try) 2>&5
21868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21869 test $ac_status = 0; }; }
21871 gcc_cv_as_max_skip_p2align=yes
21873 echo "configure: failed program was" >&5
21876 rm -f conftest.o conftest.s
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21880 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21881 if test $gcc_cv_as_max_skip_p2align = yes; then
21883 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21888 $as_echo_n "checking assembler for .literal16... " >&6; }
21889 if test "${gcc_cv_as_literal16+set}" = set; then :
21890 $as_echo_n "(cached) " >&6
21892 gcc_cv_as_literal16=no
21893 if test $in_tree_gas = yes; then
21894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21895 then gcc_cv_as_literal16=yes
21897 elif test x$gcc_cv_as != x; then
21898 $as_echo '.literal16' > conftest.s
21899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21901 (eval $ac_try) 2>&5
21903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21904 test $ac_status = 0; }; }
21906 gcc_cv_as_literal16=yes
21908 echo "configure: failed program was" >&5
21911 rm -f conftest.o conftest.s
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21915 $as_echo "$gcc_cv_as_literal16" >&6; }
21916 if test $gcc_cv_as_literal16 = yes; then
21918 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21923 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21924 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21925 $as_echo_n "(cached) " >&6
21927 gcc_cv_as_subsection_m1=no
21928 if test $in_tree_gas = yes; then
21929 if test $in_tree_gas_is_elf = yes \
21930 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21931 then gcc_cv_as_subsection_m1=yes
21933 elif test x$gcc_cv_as != x; then
21934 $as_echo 'conftest_label1: .word 0
21936 conftest_label2: .word 0
21937 .previous' > conftest.s
21938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21940 (eval $ac_try) 2>&5
21942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21943 test $ac_status = 0; }; }
21945 if test x$gcc_cv_nm != x; then
21946 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21947 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21948 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21950 else gcc_cv_as_subsection_m1=yes
21952 rm -f conftest.nm1 conftest.nm2
21955 echo "configure: failed program was" >&5
21958 rm -f conftest.o conftest.s
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21962 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21963 if test $gcc_cv_as_subsection_m1 = yes; then
21965 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21970 $as_echo_n "checking assembler for .weak... " >&6; }
21971 if test "${gcc_cv_as_weak+set}" = set; then :
21972 $as_echo_n "(cached) " >&6
21975 if test $in_tree_gas = yes; then
21976 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21977 then gcc_cv_as_weak=yes
21979 elif test x$gcc_cv_as != x; then
21980 $as_echo ' .weak foobar' > conftest.s
21981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21983 (eval $ac_try) 2>&5
21985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986 test $ac_status = 0; }; }
21990 echo "configure: failed program was" >&5
21993 rm -f conftest.o conftest.s
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21997 $as_echo "$gcc_cv_as_weak" >&6; }
21998 if test $gcc_cv_as_weak = yes; then
22000 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22005 $as_echo_n "checking assembler for .weakref... " >&6; }
22006 if test "${gcc_cv_as_weakref+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22009 gcc_cv_as_weakref=no
22010 if test $in_tree_gas = yes; then
22011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22012 then gcc_cv_as_weakref=yes
22014 elif test x$gcc_cv_as != x; then
22015 $as_echo ' .weakref foobar, barfnot' > conftest.s
22016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22018 (eval $ac_try) 2>&5
22020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22021 test $ac_status = 0; }; }
22023 gcc_cv_as_weakref=yes
22025 echo "configure: failed program was" >&5
22028 rm -f conftest.o conftest.s
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22032 $as_echo "$gcc_cv_as_weakref" >&6; }
22033 if test $gcc_cv_as_weakref = yes; then
22035 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22040 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22041 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22042 $as_echo_n "(cached) " >&6
22044 gcc_cv_as_nsubspa_comdat=no
22045 if test $in_tree_gas = yes; then
22046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22047 then gcc_cv_as_nsubspa_comdat=yes
22049 elif test x$gcc_cv_as != x; then
22050 $as_echo ' .SPACE $TEXT$
22051 .NSUBSPA $CODE$,COMDAT' > conftest.s
22052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22054 (eval $ac_try) 2>&5
22056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22057 test $ac_status = 0; }; }
22059 gcc_cv_as_nsubspa_comdat=yes
22061 echo "configure: failed program was" >&5
22064 rm -f conftest.o conftest.s
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22068 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22069 if test $gcc_cv_as_nsubspa_comdat = yes; then
22071 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22075 # .hidden needs to be supported in both the assembler and the linker,
22076 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22077 # This is irritatingly difficult to feature test for; we have to check the
22078 # date string after the version number. If we've got an in-tree
22079 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22081 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22083 $as_echo_n "checking assembler for .hidden... " >&6; }
22084 if test "${gcc_cv_as_hidden+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22087 gcc_cv_as_hidden=no
22088 if test $in_tree_gas = yes; then
22089 if test $in_tree_gas_is_elf = yes \
22090 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22091 then gcc_cv_as_hidden=yes
22093 elif test x$gcc_cv_as != x; then
22094 $as_echo ' .hidden foobar
22095 foobar:' > conftest.s
22096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22098 (eval $ac_try) 2>&5
22100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22101 test $ac_status = 0; }; }
22104 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22105 # STV_HIDDEN, so disable .hidden support if so.
22106 case "${target}" in
22107 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22108 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22109 cat > conftest.s <<EOF
22114 .set default,hidden
22116 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22117 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22118 grep '\.hidden default' > /dev/null; then
22119 gcc_cv_as_hidden=no
22121 gcc_cv_as_hidden=yes
22124 # Assume bug is present if objdump is missing.
22125 gcc_cv_as_hidden=no
22129 gcc_cv_as_hidden=yes
22133 echo "configure: failed program was" >&5
22136 rm -f conftest.o conftest.s
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22140 $as_echo "$gcc_cv_as_hidden" >&6; }
22142 case "${target}" in
22144 # Darwin as has some visibility support, though with a different syntax.
22145 gcc_cv_as_hidden=yes
22149 # gnu_indirect_function type is an extension proposed at
22150 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22151 # selection of function implementation
22152 # Check whether --enable-gnu-indirect-function was given.
22153 if test "${enable_gnu_indirect_function+set}" = set; then :
22154 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22156 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22157 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22160 enable_gnu_indirect_function="$default_gnu_indirect_function"
22163 if test x$enable_gnu_indirect_function = xyes; then
22165 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22169 if test $in_tree_ld != yes ; then
22170 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22171 if echo "$ld_ver" | grep GNU > /dev/null; then
22172 if test x"$ld_is_gold" = xyes; then
22173 # GNU gold --version looks like this:
22175 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22177 # We extract the binutils version which is more familiar and specific
22178 # than the gold version.
22179 ld_vers=`echo $ld_ver | sed -n \
22180 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22182 # GNU ld --version looks like this:
22184 # GNU ld (GNU Binutils) 2.21.51.20110225
22185 ld_vers=`echo $ld_ver | sed -n \
22186 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22188 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
22189 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22190 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22191 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22193 case "${target}" in
22196 # Solaris 2 ld -V output looks like this for a regular version:
22198 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22200 # but test versions add stuff at the end:
22202 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22204 ld_ver=`$gcc_cv_ld -V 2>&1`
22205 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22206 ld_vers=`echo $ld_ver | sed -n \
22207 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22208 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22209 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22217 $as_echo_n "checking linker for .hidden support... " >&6; }
22218 if test "${gcc_cv_ld_hidden+set}" = set; then :
22219 $as_echo_n "(cached) " >&6
22221 if test $in_tree_ld = yes ; then
22222 gcc_cv_ld_hidden=no
22223 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
22224 && test $in_tree_ld_is_elf = yes; then
22225 gcc_cv_ld_hidden=yes
22228 gcc_cv_ld_hidden=yes
22229 if test x"$ld_is_gold" = xyes; then
22231 elif echo "$ld_ver" | grep GNU > /dev/null; then
22232 if test 0"$ld_date" -lt 20020404; then
22233 if test -n "$ld_date"; then
22234 # If there was date string, but was earlier than 2002-04-04, fail
22235 gcc_cv_ld_hidden=no
22236 elif test -z "$ld_vers"; then
22237 # If there was no date string nor ld version number, something is wrong
22238 gcc_cv_ld_hidden=no
22240 test -z "$ld_vers_patch" && ld_vers_patch=0
22241 if test "$ld_vers_major" -lt 2; then
22242 gcc_cv_ld_hidden=no
22243 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22244 gcc_cv_ld_hidden="no"
22245 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22246 gcc_cv_ld_hidden=no
22251 case "${target}" in
22253 # Darwin ld has some visibility support.
22254 gcc_cv_ld_hidden=yes
22256 hppa64*-*-hpux* | ia64*-*-hpux*)
22257 gcc_cv_ld_hidden=yes
22260 # .hidden support was backported to Solaris 8, starting with ld
22262 if test "$ld_vers_minor" -ge 276; then
22263 gcc_cv_ld_hidden=yes
22265 gcc_cv_ld_hidden=no
22268 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22269 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22270 # .symbolic was only added in Solaris 9 12/02.
22271 gcc_cv_ld_hidden=yes
22274 gcc_cv_ld_hidden=no
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22281 $as_echo "$gcc_cv_ld_hidden" >&6; }
22282 libgcc_visibility=no
22285 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22286 libgcc_visibility=yes
22288 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22293 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22294 gcc_cv_ld_ro_rw_mix=unknown
22295 if test $in_tree_ld = yes ; then
22296 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
22297 && test $in_tree_ld_is_elf = yes; then
22298 gcc_cv_ld_ro_rw_mix=read-write
22300 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22301 echo '.section myfoosect, "a"' > conftest1.s
22302 echo '.section myfoosect, "aw"' > conftest2.s
22303 echo '.byte 1' >> conftest2.s
22304 echo '.section myfoosect, "a"' > conftest3.s
22305 echo '.byte 0' >> conftest3.s
22306 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22307 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22308 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22309 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22310 conftest2.o conftest3.o > /dev/null 2>&1; then
22311 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22312 | sed -e '/myfoosect/!d' -e N`
22313 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22314 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22315 gcc_cv_ld_ro_rw_mix=read-only
22317 gcc_cv_ld_ro_rw_mix=read-write
22321 rm -f conftest.* conftest[123].*
22323 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22325 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22329 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22331 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22333 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22334 if test "${gcc_cv_as_leb128+set}" = set; then :
22335 $as_echo_n "(cached) " >&6
22337 gcc_cv_as_leb128=no
22338 if test $in_tree_gas = yes; then
22339 if test $in_tree_gas_is_elf = yes \
22340 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22341 then gcc_cv_as_leb128=yes
22343 elif test x$gcc_cv_as != x; then
22350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22352 (eval $ac_try) 2>&5
22354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22355 test $ac_status = 0; }; }
22357 # GAS versions before 2.11 do not support uleb128,
22358 # despite appearing to.
22359 # ??? There exists an elf-specific test that will crash
22360 # the assembler. Perhaps it's better to figure out whether
22361 # arbitrary sections are supported and try the test.
22362 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22363 if echo "$as_ver" | grep GNU > /dev/null; then
22364 as_vers=`echo $as_ver | sed -n \
22365 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22366 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22367 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22368 if test $as_major -eq 2 && test $as_minor -lt 11
22370 else gcc_cv_as_leb128=yes
22374 echo "configure: failed program was" >&5
22377 rm -f conftest.o conftest.s
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22381 $as_echo "$gcc_cv_as_leb128" >&6; }
22382 if test $gcc_cv_as_leb128 = yes; then
22384 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22388 # Check if we have assembler support for unwind directives.
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22390 $as_echo_n "checking assembler for cfi directives... " >&6; }
22391 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22392 $as_echo_n "(cached) " >&6
22394 gcc_cv_as_cfi_directive=no
22395 if test x$gcc_cv_as != x; then
22401 .cfi_escape 1, 2, 3, 4, 5
22402 .cfi_endproc' > conftest.s
22403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22405 (eval $ac_try) 2>&5
22407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22408 test $ac_status = 0; }; }
22412 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22413 # read-only and read-write sections, we need to make sure that the
22414 # assembler used emits read-write .eh_frame sections.
22415 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22416 if test "x$gcc_cv_objdump" != x; then
22417 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22418 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22419 gcc_cv_as_cfi_directive=no
22422 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22423 # On Solaris/x86, make sure that GCC and gas agree on using
22424 # read-only .eh_frame sections for 64-bit.
22425 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22426 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22427 sed -e /.eh_frame/!d -e N | \
22428 grep READONLY > /dev/null; then
22429 gcc_cv_as_cfi_directive=yes
22431 gcc_cv_as_cfi_directive=no
22435 gcc_cv_as_cfi_directive=yes
22440 # no objdump, err on the side of caution
22441 gcc_cv_as_cfi_directive=no
22444 gcc_cv_as_cfi_directive=yes
22448 gcc_cv_as_cfi_directive=yes
22452 echo "configure: failed program was" >&5
22455 rm -f conftest.o conftest.s
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22459 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22461 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22463 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22464 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22465 $as_echo_n "(cached) " >&6
22467 gcc_cv_as_cfi_advance_working=no
22468 if test x$gcc_cv_as != x; then
22471 .cfi_adjust_cfa_offset 64
22473 .cfi_adjust_cfa_offset 128
22474 .cfi_endproc' > conftest.s
22475 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22477 (eval $ac_try) 2>&5
22479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22480 test $ac_status = 0; }; }
22483 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22484 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22485 gcc_cv_as_cfi_advance_working=yes
22489 echo "configure: failed program was" >&5
22492 rm -f conftest.o conftest.s
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22496 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22499 # no objdump, err on the side of caution
22500 gcc_cv_as_cfi_advance_working=no
22504 cat >>confdefs.h <<_ACEOF
22505 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22506 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22512 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22513 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22514 $as_echo_n "(cached) " >&6
22516 gcc_cv_as_cfi_personality_directive=no
22517 if test x$gcc_cv_as != x; then
22520 .cfi_personality 0, symbol
22521 .cfi_endproc' > conftest.s
22522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22524 (eval $ac_try) 2>&5
22526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22527 test $ac_status = 0; }; }
22529 gcc_cv_as_cfi_personality_directive=yes
22531 echo "configure: failed program was" >&5
22534 rm -f conftest.o conftest.s
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22538 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22541 cat >>confdefs.h <<_ACEOF
22542 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22543 then echo 1; else echo 0; fi`
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22548 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22549 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22550 $as_echo_n "(cached) " >&6
22552 gcc_cv_as_cfi_sections_directive=no
22553 if test x$gcc_cv_as != x; then
22555 .cfi_sections .debug_frame, .eh_frame
22557 .cfi_endproc' > conftest.s
22558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22560 (eval $ac_try) 2>&5
22562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22563 test $ac_status = 0; }; }
22566 win32 | pe | cygwin* | mingw32* | uwin*)
22567 # Need to check that we generated the correct relocation for the
22568 # .debug_frame section. This was fixed for binutils 2.21.
22569 gcc_cv_as_cfi_sections_directive=no
22570 if test "x$gcc_cv_objdump" != x; then
22571 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22572 grep secrel > /dev/null; then
22573 gcc_cv_as_cfi_sections_directive=yes
22578 gcc_cv_as_cfi_sections_directive=yes
22582 echo "configure: failed program was" >&5
22585 rm -f conftest.o conftest.s
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22589 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22593 cat >>confdefs.h <<_ACEOF
22594 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22595 then echo 1; else echo 0; fi`
22599 # GAS versions up to and including 2.11.0 may mis-optimize
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22602 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22603 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22606 gcc_cv_as_eh_frame=no
22607 if test $in_tree_gas = yes; then
22608 if test $in_tree_gas_is_elf = yes \
22609 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22610 then gcc_cv_as_eh_frame=yes
22612 elif test x$gcc_cv_as != x; then
22619 .section .eh_frame,"aw",@progbits
22621 .4byte .LECIE1-.LSCIE1
22635 .4byte .LEFDE1-.LASFDE1
22637 .4byte .LASFDE1-__FRAME_BEGIN__
22644 .LEFDE1:' > conftest.s
22645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22647 (eval $ac_try) 2>&5
22649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22650 test $ac_status = 0; }; }
22652 cat > conftest.lit <<EOF
22653 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22654 0010 01000000 12000000 18000000 00000000 ................
22655 0020 08000000 04080000 0044 .........D
22657 cat > conftest.big <<EOF
22658 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22659 0010 00000001 00000012 00000018 00000000 ................
22660 0020 00000008 04000000 0844 .........D
22662 # If the assembler didn't choke, and we can objdump,
22663 # and we got the correct data, then succeed.
22664 # The text in the here-document typically retains its unix-style line
22665 # endings, while the output of objdump will use host line endings.
22666 # Therefore, use diff -b for the comparisons.
22667 if test x$gcc_cv_objdump != x \
22668 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22669 | tail -3 > conftest.got \
22670 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22671 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22673 gcc_cv_as_eh_frame=yes
22674 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22676 (eval $ac_try) 2>&5
22678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22679 test $ac_status = 0; }; }; then
22680 gcc_cv_as_eh_frame=buggy
22682 # Uh oh, what do we do now?
22683 gcc_cv_as_eh_frame=no
22686 echo "configure: failed program was" >&5
22689 rm -f conftest.o conftest.s
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22693 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22696 if test $gcc_cv_as_eh_frame = buggy; then
22698 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22703 $as_echo_n "checking assembler for section merging support... " >&6; }
22704 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22705 $as_echo_n "(cached) " >&6
22707 gcc_cv_as_shf_merge=no
22708 if test $in_tree_gas = yes; then
22709 if test $in_tree_gas_is_elf = yes \
22710 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22711 then gcc_cv_as_shf_merge=yes
22713 elif test x$gcc_cv_as != x; then
22714 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22717 (eval $ac_try) 2>&5
22719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22720 test $ac_status = 0; }; }
22722 gcc_cv_as_shf_merge=yes
22724 echo "configure: failed program was" >&5
22727 rm -f conftest.o conftest.s
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22731 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22733 if test $gcc_cv_as_shf_merge = no; then
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22735 $as_echo_n "checking assembler for section merging support... " >&6; }
22736 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22737 $as_echo_n "(cached) " >&6
22739 gcc_cv_as_shf_merge=no
22740 if test $in_tree_gas = yes; then
22741 if test $in_tree_gas_is_elf = yes \
22742 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22743 then gcc_cv_as_shf_merge=yes
22745 elif test x$gcc_cv_as != x; then
22746 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }
22754 gcc_cv_as_shf_merge=yes
22756 echo "configure: failed program was" >&5
22759 rm -f conftest.o conftest.s
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22763 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22767 cat >>confdefs.h <<_ACEOF
22768 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22773 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22774 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22775 $as_echo_n "(cached) " >&6
22777 gcc_cv_as_comdat_group=no
22778 if test $in_tree_gas = yes; then
22779 if test $in_tree_gas_is_elf = yes \
22780 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22781 then gcc_cv_as_comdat_group=yes
22783 elif test x$gcc_cv_as != x; then
22784 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22787 (eval $ac_try) 2>&5
22789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790 test $ac_status = 0; }; }
22792 gcc_cv_as_comdat_group=yes
22794 echo "configure: failed program was" >&5
22797 rm -f conftest.o conftest.s
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22801 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22803 if test $gcc_cv_as_comdat_group = yes; then
22804 gcc_cv_as_comdat_group_percent=no
22805 gcc_cv_as_comdat_group_group=no
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22808 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22809 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22810 $as_echo_n "(cached) " >&6
22812 gcc_cv_as_comdat_group_percent=no
22813 if test $in_tree_gas = yes; then
22814 if test $in_tree_gas_is_elf = yes \
22815 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22816 then gcc_cv_as_comdat_group_percent=yes
22818 elif test x$gcc_cv_as != x; then
22819 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22822 (eval $ac_try) 2>&5
22824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22825 test $ac_status = 0; }; }
22827 gcc_cv_as_comdat_group_percent=yes
22829 echo "configure: failed program was" >&5
22832 rm -f conftest.o conftest.s
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22836 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22838 if test $gcc_cv_as_comdat_group_percent = yes; then
22839 gcc_cv_as_comdat_group_group=no
22841 case "${target}" in
22842 # Sun as uses a completely different syntax.
22844 case "${target}" in
22845 sparc*-*-solaris2*)
22847 .group foo,".text%foo",#comdat
22848 .section ".text%foo", #alloc,#execinstr,#progbits
22853 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22855 .group foo,.text%foo,#comdat
22856 .section .text%foo, "ax", @progbits
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22863 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22864 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22865 $as_echo_n "(cached) " >&6
22867 gcc_cv_as_comdat_group_group=no
22868 if test x$gcc_cv_as != x; then
22869 $as_echo "$conftest_s" > conftest.s
22870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22872 (eval $ac_try) 2>&5
22874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22875 test $ac_status = 0; }; }
22877 gcc_cv_as_comdat_group_group=yes
22879 echo "configure: failed program was" >&5
22882 rm -f conftest.o conftest.s
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22886 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22892 if test x"$ld_is_gold" = xyes; then
22894 elif test $in_tree_ld = yes ; then
22896 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
22897 && test $in_tree_ld_is_elf = yes; then
22900 elif echo "$ld_ver" | grep GNU > /dev/null; then
22902 if test 0"$ld_date" -lt 20050308; then
22903 if test -n "$ld_date"; then
22904 # If there was date string, but was earlier than 2005-03-08, fail
22906 elif test "$ld_vers_major" -lt 2; then
22908 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22913 case "${target}" in
22914 *-*-solaris2.1[1-9]*)
22916 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22917 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22920 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22921 # least ld version 1.2267.
22922 if test "$ld_vers_major" -gt 1; then
22924 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22926 elif test "$ld_vers_minor" -ge 2267; then
22931 # Assume linkers other than GNU ld don't support COMDAT group.
22936 # Allow overriding the automatic COMDAT group tests above.
22937 # Check whether --enable-comdat was given.
22938 if test "${enable_comdat+set}" = set; then :
22939 enableval=$enable_comdat; comdat_group="$enable_comdat"
22942 if test $comdat_group = no; then
22943 gcc_cv_as_comdat_group=no
22944 gcc_cv_as_comdat_group_percent=no
22945 gcc_cv_as_comdat_group_group=no
22948 cat >>confdefs.h <<_ACEOF
22949 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22950 || test $gcc_cv_as_comdat_group_percent = yes \
22951 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22956 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22957 if test "${gcc_cv_as_discriminator+set}" = set; then :
22958 $as_echo_n "(cached) " >&6
22960 gcc_cv_as_discriminator=no
22961 if test $in_tree_gas = yes; then
22962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22963 then gcc_cv_as_discriminator=yes
22965 elif test x$gcc_cv_as != x; then
22968 .loc 1 1 0 discriminator 1' > conftest.s
22969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22971 (eval $ac_try) 2>&5
22973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22974 test $ac_status = 0; }; }
22976 gcc_cv_as_discriminator=yes
22978 echo "configure: failed program was" >&5
22981 rm -f conftest.o conftest.s
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22985 $as_echo "$gcc_cv_as_discriminator" >&6; }
22986 if test $gcc_cv_as_discriminator = yes; then
22988 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22992 # Thread-local storage - the check is heavily parameterized.
23000 .section ".tdata","awT",@progbits
23003 ldq $27,__tls_get_addr($29) !literal!1
23004 lda $16,foo($29) !tlsgd!1
23005 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23006 ldq $27,__tls_get_addr($29) !literal!2
23007 lda $16,foo($29) !tlsldm!2
23008 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23009 ldq $1,foo($29) !gotdtprel
23010 ldah $2,foo($29) !dtprelhi
23011 lda $3,foo($2) !dtprello
23012 lda $4,foo($29) !dtprel
23013 ldq $1,foo($29) !gottprel
23014 ldah $2,foo($29) !tprelhi
23015 lda $3,foo($2) !tprello
23016 lda $4,foo($29) !tprel'
23019 tls_as_opt=--fatal-warnings
23021 cris-*-*|crisv32-*-*)
23023 .section ".tdata","awT",@progbits
23030 tls_as_opt=--fatal-warnings
23034 .section ".tdata","awT",@progbits
23037 call #gettlsoff(x)'
23046 .section ".tdata","awT",@progbits
23050 addil LT%foo-$tls_gdidx$,gp
23051 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23054 addil LT%foo-$tls_ldidx$,gp
23056 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23057 addil LR%foo-$tls_dtpoff$,%ret0
23058 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23060 addil LT%foo-$tls_ieoff$,gp
23061 ldw RT%foo-$tls_ieoff$(%r1),%t2
23064 addil LR%foo-$tls_leoff$,%t1
23065 ldo RR%foo-$tls_leoff$(%r1),%t2'
23068 tls_as_opt=--fatal-warnings
23072 .section ".tdata","awT",%progbits
23075 .word foo(gottpoff)
23083 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23085 i[34567]86-*-solaris2.*)
23087 tga_func=___tls_get_addr
23089 x86_64-*-solaris2.1[0-9]*)
23091 tga_func=__tls_get_addr
23097 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23099 .section .tdata,"awt",@progbits'
23103 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23107 .section ".tdata","awT",@progbits'
23110 tls_as_opt="--fatal-warnings"
23112 conftest_s="$conftest_s
23116 leal foo@tlsgd(,%ebx,1), %eax
23117 leal foo@tlsldm(%ebx), %eax
23118 leal foo@dtpoff(%eax), %edx
23119 movl foo@gottpoff(%ebx), %eax
23120 subl foo@gottpoff(%ebx), %eax
23121 addl foo@gotntpoff(%ebx), %eax
23122 movl foo@indntpoff, %eax
23123 movl \$foo@tpoff, %eax
23124 subl \$foo@tpoff, %eax
23125 leal foo@ntpoff(%ecx), %eax"
23129 .section ".tdata","awT",@progbits
23133 leaq foo@TLSGD(%rip), %rdi
23134 leaq foo@TLSLD(%rip), %rdi
23135 leaq foo@DTPOFF(%rax), %rdx
23136 movq foo@GOTTPOFF(%rip), %rax
23137 movq $foo@TPOFF, %rax'
23140 tls_as_opt=--fatal-warnings
23144 .section ".tdata","awT",@progbits
23147 addl r16 = @ltoff(@dtpmod(foo#)), gp
23148 addl r17 = @ltoff(@dtprel(foo#)), gp
23149 addl r18 = @ltoff(@tprel(foo#)), gp
23150 addl r19 = @dtprel(foo#), gp
23151 adds r21 = @dtprel(foo#), r13
23152 movl r23 = @dtprel(foo#)
23153 addl r20 = @tprel(foo#), gp
23154 adds r22 = @tprel(foo#), r13
23155 movl r24 = @tprel(foo#)'
23158 tls_as_opt=--fatal-warnings
23162 .section .tdata,"awT",@progbits
23166 addiu $4, $28, %tlsgd(x)
23167 addiu $4, $28, %tlsldm(x)
23168 lui $4, %dtprel_hi(x)
23169 addiu $4, $4, %dtprel_lo(x)
23170 lw $4, %gottprel(x)($28)
23171 lui $4, %tprel_hi(x)
23172 addiu $4, $4, %tprel_lo(x)'
23175 tls_as_opt='-32 --fatal-warnings'
23179 .section .tdata,"awT",@progbits
23184 move.l x@TLSGD(%a5),%a0
23185 move.l x@TLSLDM(%a5),%a0
23186 move.l x@TLSLDO(%a5),%a0
23187 move.l x@TLSIE(%a5),%a0
23188 move.l x@TLSLE(%a5),%a0'
23191 tls_as_opt='--fatal-warnings'
23195 .section ".tdata","awT",@progbits
23203 addi 3,31,ld0@got@tlsgd
23205 addi 3,31,x1@got@tlsld
23208 addis 9,3,x2@dtprel@ha
23209 addi 9,9,x2@dtprel@l
23210 lwz 9,x3@got@tprel(31)
23213 addis 9,2,x2@tprel@ha
23214 addi 9,9,x2@tprel@l'
23217 tls_as_opt="-a32 --fatal-warnings"
23221 .section ".tdata","awT",@progbits
23229 addi 3,2,ld0@got@tlsgd
23235 addi 3,2,x1@got@tlsld
23241 addis 9,3,x2@dtprel@ha
23242 addi 9,9,x2@dtprel@l
23245 ld 9,x3@got@dtprel(2)
23251 tls_as_opt="-a64 --fatal-warnings"
23255 .section ".tdata","awT",@progbits
23262 .long foo@GOTNTPOFF
23263 .long foo@INDNTPOFF
23264 l %r1,foo@GOTNTPOFF(%r12)
23265 l %r1,0(%r1):tls_load:foo
23266 bas %r14,0(%r1,%r13):tls_gdcall:foo
23267 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23270 tls_as_opt="-m31 --fatal-warnings"
23274 .section ".tdata","awT",@progbits
23281 .quad foo@GOTNTPOFF
23282 lg %r1,foo@GOTNTPOFF(%r12)
23283 larl %r1,foo@INDNTPOFF
23284 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23285 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23288 tls_as_opt="-m64 -Aesame --fatal-warnings"
23290 sh-*-* | sh[34]-*-*)
23292 .section ".tdata","awT",@progbits
23302 tls_as_opt=--fatal-warnings
23306 sparc*-sun-solaris2.*)
23308 tga_func=__tls_get_addr
23314 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23316 .section ".tdata",#alloc,#write,#tls'
23321 .section ".tdata","awT",@progbits'
23324 tls_as_opt="-32 --fatal-warnings"
23326 conftest_s="$conftest_s
23329 sethi %tgd_hi22(foo), %o0
23330 add %o0, %tgd_lo10(foo), %o1
23331 add %l7, %o1, %o0, %tgd_add(foo)
23332 call __tls_get_addr, %tgd_call(foo)
23333 sethi %tldm_hi22(foo), %l1
23334 add %l1, %tldm_lo10(foo), %l2
23335 add %l7, %l2, %o0, %tldm_add(foo)
23336 call __tls_get_addr, %tldm_call(foo)
23337 sethi %tldo_hix22(foo), %l3
23338 xor %l3, %tldo_lox10(foo), %l4
23339 add %o0, %l4, %l5, %tldo_add(foo)
23340 sethi %tie_hi22(foo), %o3
23341 add %o3, %tie_lo10(foo), %o3
23342 ld [%l7 + %o3], %o2, %tie_ld(foo)
23343 add %g7, %o2, %o4, %tie_add(foo)
23344 sethi %tle_hix22(foo), %l1
23345 xor %l1, %tle_lox10(foo), %o5
23346 ld [%g7 + %o5], %o1"
23350 .section ".tdata","awT",@progbits
23353 movi a8, foo@TLSFUNC
23354 movi a10, foo@TLSARG
23355 callx8.tls a8, foo@TLSCALL'
23361 if test "x$enable_tls" = xno ; then
23362 : # TLS explicitly disabled.
23363 elif test "x$enable_tls" = xyes ; then
23364 set_have_as_tls=yes # TLS explicitly enabled.
23365 elif test -z "$tls_first_major"; then
23366 : # If we don't have a check, assume no support.
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23369 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23370 if test "${gcc_cv_as_tls+set}" = set; then :
23371 $as_echo_n "(cached) " >&6
23374 if test $in_tree_gas = yes; then
23375 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23376 then gcc_cv_as_tls=yes
23378 elif test x$gcc_cv_as != x; then
23379 $as_echo "$conftest_s" > conftest.s
23380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23382 (eval $ac_try) 2>&5
23384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23385 test $ac_status = 0; }; }
23389 echo "configure: failed program was" >&5
23392 rm -f conftest.o conftest.s
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23396 $as_echo "$gcc_cv_as_tls" >&6; }
23397 if test $gcc_cv_as_tls = yes; then
23398 set_have_as_tls=yes
23403 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23404 # with TLS support are in use, native TLS cannot work.
23408 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23409 # gld with TLS support are in use, native TLS cannot work.
23412 # TLS was introduced in the Solaris 9 FCS release and backported to
23413 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23414 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23415 # ld and GCC don't support any longer.
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23418 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23420 # Check ld and ld.so.1 TLS support.
23421 if echo "$ld_ver" | grep GNU > /dev/null; then
23422 # Assume all interesting versions of GNU ld have TLS support.
23423 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23427 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23429 min_tls_ld_vers_minor=280
23431 # Solaris 8/SPARC ld has TLS support since version 1.272.
23432 sparc*-*-solaris2.8)
23433 min_tls_ld_vers_minor=272
23435 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23437 min_tls_ld_vers_minor=374
23439 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23440 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23441 min_tls_ld_vers_minor=343
23444 if test "$ld_vers_major" -gt 1 || \
23445 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23452 $as_echo "$ld_tls_support" >&6; }
23455 save_LDFLAGS="$LDFLAGS"
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23460 $as_echo_n "checking alternate thread library... " >&6; }
23462 # TLS support was backported to Solaris 8 patches, but only lives in
23463 # the alternate thread library which became the default in Solaris 9.
23464 # We want to always use that, irrespective of TLS support.
23466 # Take multilib subdir into account. There's no spec to handle
23467 # this. The 64 symlink exists since Solaris 8.
23468 lwp_dir=/usr/lib/lwp
23469 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23470 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23477 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23479 cat >>confdefs.h <<_ACEOF
23480 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23484 $as_echo "$lwp_dir" >&6; }
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23487 $as_echo_n "checking library containing $tga_func... " >&6; }
23488 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23489 # (32-bit x86) only lived in libthread, so check for that. Keep
23490 # set_have_as_tls if found, disable if not.
23491 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23493 $as_echo_n "checking for library containing $tga_func... " >&6; }
23494 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23495 $as_echo_n "(cached) " >&6
23497 ac_func_search_save_LIBS=$LIBS
23498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23499 /* end confdefs.h. */
23501 /* Override any GCC internal prototype to avoid an error.
23502 Use char because int might match the return type of a GCC
23503 builtin and then its argument prototype would still apply. */
23511 return $tga_func ();
23516 for ac_lib in '' thread; do
23517 if test -z "$ac_lib"; then
23518 ac_res="none required"
23521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23523 if ac_fn_c_try_link "$LINENO"; then :
23524 eval "$as_ac_Search=\$ac_res"
23526 rm -f core conftest.err conftest.$ac_objext \
23528 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23532 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23535 eval "$as_ac_Search=no"
23537 rm conftest.$ac_ext
23538 LIBS=$ac_func_search_save_LIBS
23540 eval ac_res=\$$as_ac_Search
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23542 $as_echo "$ac_res" >&6; }
23543 eval ac_res=\$$as_ac_Search
23544 if test "$ac_res" != no; then :
23545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23551 # Clear LIBS if we cannot support TLS.
23552 if test $set_have_as_tls = no; then
23555 # Always define LIB_TLS_SPEC, even without TLS support.
23557 cat >>confdefs.h <<_ACEOF
23558 #define LIB_TLS_SPEC "$LIBS"
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23562 $as_echo "$LIBS" >&6; }
23565 LDFLAGS="$save_LDFLAGS"
23568 if test $set_have_as_tls = yes ; then
23570 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23574 # Target-specific assembler checks.
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23577 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23578 gcc_cv_ld_static_dynamic=no
23579 gcc_cv_ld_static_option='-Bstatic'
23580 gcc_cv_ld_dynamic_option='-Bdynamic'
23581 if test $in_tree_ld = yes ; then
23582 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
23583 gcc_cv_ld_static_dynamic=yes
23585 elif test x$gcc_cv_ld != x; then
23586 # Check if linker supports -Bstatic/-Bdynamic option
23587 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23588 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23589 gcc_cv_ld_static_dynamic=yes
23592 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23594 gcc_cv_ld_static_dynamic=yes
23595 gcc_cv_ld_static_option="-noso"
23596 gcc_cv_ld_dynamic_option="-so_archive"
23598 # HP-UX ld uses -a flags to select between shared and archive.
23600 if test x"$gnu_ld" = xno; then
23601 gcc_cv_ld_static_dynamic=yes
23602 gcc_cv_ld_static_option="-aarchive_shared"
23603 gcc_cv_ld_dynamic_option="-adefault"
23606 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23608 gcc_cv_ld_static_dynamic=yes
23610 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23612 gcc_cv_ld_static_dynamic=yes
23617 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23619 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23622 cat >>confdefs.h <<_ACEOF
23623 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23627 cat >>confdefs.h <<_ACEOF
23628 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23633 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23635 if test x"$demangler_in_ld" = xyes; then
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23637 $as_echo_n "checking linker --demangle support... " >&6; }
23638 gcc_cv_ld_demangle=no
23639 if test $in_tree_ld = yes; then
23640 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
23641 gcc_cv_ld_demangle=yes
23643 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23644 # Check if the GNU linker supports --demangle option
23645 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23646 gcc_cv_ld_demangle=yes
23649 if test x"$gcc_cv_ld_demangle" = xyes; then
23651 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23655 $as_echo "$gcc_cv_ld_demangle" >&6; }
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23659 $as_echo_n "checking linker plugin support... " >&6; }
23660 gcc_cv_lto_plugin=0
23661 if test -f liblto_plugin.la; then
23662 save_ld_ver="$ld_ver"
23663 save_ld_vers_major="$ld_vers_major"
23664 save_ld_vers_minor="$ld_vers_minor"
23665 save_ld_is_gold="$ld_is_gold"
23669 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23671 # FIXME: ld_is_gold?
23672 ld_vers_major="$gcc_cv_gld_major_version"
23673 ld_vers_minor="$gcc_cv_gld_minor_version"
23675 # Determine plugin linker version.
23676 # FIXME: Partial duplicate from above, generalize.
23677 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23678 if echo "$ld_ver" | grep GNU > /dev/null; then
23679 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23681 ld_vers=`echo $ld_ver | sed -n \
23682 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23684 ld_vers=`echo $ld_ver | sed -n \
23685 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23687 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23688 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23692 # Determine plugin support.
23693 if echo "$ld_ver" | grep GNU > /dev/null; then
23694 # Require GNU ld or gold 2.21+ for plugin support by default.
23695 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23696 gcc_cv_lto_plugin=2
23697 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23698 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23699 gcc_cv_lto_plugin=1
23703 ld_ver="$save_ld_ver"
23704 ld_vers_major="$save_ld_vers_major"
23705 ld_vers_minor="$save_ld_vers_minor"
23706 ld_is_gold="$save_ld_is_gold"
23709 cat >>confdefs.h <<_ACEOF
23710 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23714 $as_echo "$gcc_cv_lto_plugin" >&6; }
23717 # All TARGET_ABI_OSF targets.
23718 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23720 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23721 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23722 $as_echo_n "(cached) " >&6
23724 gcc_cv_as_alpha_explicit_relocs=no
23725 if test $in_tree_gas = yes; then
23726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23727 then gcc_cv_as_alpha_explicit_relocs=yes
23729 elif test x$gcc_cv_as != x; then
23730 $as_echo ' .set nomacro
23732 extbl $3, $2, $3 !lituse_bytoff!1
23733 ldq $2, a($29) !literal!1
23734 ldq $4, b($29) !literal!2
23735 ldq_u $3, 0($2) !lituse_base!1
23736 ldq $27, f($29) !literal!5
23737 jsr $26, ($27), f !lituse_jsr!5
23738 ldah $29, 0($26) !gpdisp!3
23739 lda $0, c($29) !gprel
23740 ldah $1, d($29) !gprelhigh
23741 lda $1, d($1) !gprellow
23742 lda $29, 0($29) !gpdisp!3' > conftest.s
23743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23745 (eval $ac_try) 2>&5
23747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23748 test $ac_status = 0; }; }
23750 gcc_cv_as_alpha_explicit_relocs=yes
23752 echo "configure: failed program was" >&5
23755 rm -f conftest.o conftest.s
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23759 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23760 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23762 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23766 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23767 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23768 $as_echo_n "(cached) " >&6
23770 gcc_cv_as_alpha_jsrdirect_relocs=no
23771 if test $in_tree_gas = yes; then
23772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23773 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23775 elif test x$gcc_cv_as != x; then
23776 $as_echo ' .set nomacro
23778 ldq $27, a($29) !literal!1
23779 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23782 (eval $ac_try) 2>&5
23784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23785 test $ac_status = 0; }; }
23787 gcc_cv_as_alpha_jsrdirect_relocs=yes
23789 echo "configure: failed program was" >&5
23792 rm -f conftest.o conftest.s
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23796 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23797 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23799 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23806 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23807 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23808 $as_echo_n "(cached) " >&6
23810 gcc_cv_as_cris_no_mul_bug=no
23811 if test $in_tree_gas = yes; then
23812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23813 then gcc_cv_as_cris_no_mul_bug=yes
23815 elif test x$gcc_cv_as != x; then
23816 $as_echo '.text' > conftest.s
23817 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23819 (eval $ac_try) 2>&5
23821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23822 test $ac_status = 0; }; }
23824 gcc_cv_as_cris_no_mul_bug=yes
23826 echo "configure: failed program was" >&5
23829 rm -f conftest.o conftest.s
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23833 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23834 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23836 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23843 $as_echo_n "checking assembler for .register... " >&6; }
23844 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23845 $as_echo_n "(cached) " >&6
23847 gcc_cv_as_sparc_register_op=no
23848 if test x$gcc_cv_as != x; then
23849 $as_echo '.register %g2, #scratch' > conftest.s
23850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23852 (eval $ac_try) 2>&5
23854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23855 test $ac_status = 0; }; }
23857 gcc_cv_as_sparc_register_op=yes
23859 echo "configure: failed program was" >&5
23862 rm -f conftest.o conftest.s
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23866 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23867 if test $gcc_cv_as_sparc_register_op = yes; then
23869 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23874 $as_echo_n "checking assembler for -relax option... " >&6; }
23875 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23876 $as_echo_n "(cached) " >&6
23878 gcc_cv_as_sparc_relax=no
23879 if test x$gcc_cv_as != x; then
23880 $as_echo '.text' > conftest.s
23881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23883 (eval $ac_try) 2>&5
23885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23886 test $ac_status = 0; }; }
23888 gcc_cv_as_sparc_relax=yes
23890 echo "configure: failed program was" >&5
23893 rm -f conftest.o conftest.s
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23897 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23898 if test $gcc_cv_as_sparc_relax = yes; then
23900 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23905 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23906 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23907 $as_echo_n "(cached) " >&6
23909 gcc_cv_as_sparc_gotdata_op=no
23910 if test x$gcc_cv_as != x; then
23916 sethi %gdop_hix22(foo), %g1
23917 xor %g1, %gdop_lox10(foo), %g1
23918 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23921 (eval $ac_try) 2>&5
23923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23924 test $ac_status = 0; }; }
23926 if test x$gcc_cv_ld != x \
23927 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23928 if test x$gcc_cv_objdump != x; then
23929 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23930 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23931 gcc_cv_as_sparc_gotdata_op=no
23933 gcc_cv_as_sparc_gotdata_op=yes
23939 echo "configure: failed program was" >&5
23942 rm -f conftest.o conftest.s
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23946 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23947 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23949 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23954 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23955 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23956 $as_echo_n "(cached) " >&6
23958 gcc_cv_as_sparc_ua_pcrel=no
23959 if test x$gcc_cv_as != x; then
23966 .uaword %r_disp32(foo)' > conftest.s
23967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23969 (eval $ac_try) 2>&5
23971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23972 test $ac_status = 0; }; }
23974 if test x$gcc_cv_ld != x \
23975 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23976 gcc_cv_as_sparc_ua_pcrel=yes
23980 echo "configure: failed program was" >&5
23983 rm -f conftest.o conftest.s
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23987 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23988 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23990 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23994 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23995 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23996 $as_echo_n "(cached) " >&6
23998 gcc_cv_as_sparc_ua_pcrel_hidden=no
23999 if test x$gcc_cv_as != x; then
24003 .uaword %r_disp32(foo)
24004 .byte 0x32, 0x33, 0x34
24008 .skip 4' > conftest.s
24009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24011 (eval $ac_try) 2>&5
24013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24014 test $ac_status = 0; }; }
24016 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24017 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24018 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24019 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24020 if $gcc_cv_objdump -R conftest 2> /dev/null \
24021 | grep 'DISP32' > /dev/null 2>&1; then
24024 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24029 echo "configure: failed program was" >&5
24032 rm -f conftest.o conftest.s
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24036 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24037 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24039 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24043 fi # unaligned pcrel relocs
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24046 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24047 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24048 $as_echo_n "(cached) " >&6
24050 gcc_cv_as_sparc_offsetable_lo10=no
24051 if test x$gcc_cv_as != x; then
24053 or %g1, %lo(ab) + 12, %g1
24054 or %g1, %lo(ab + 12), %g1' > conftest.s
24055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24057 (eval $ac_try) 2>&5
24059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24060 test $ac_status = 0; }; }
24062 if test x$gcc_cv_objdump != x \
24063 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24064 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24065 gcc_cv_as_sparc_offsetable_lo10=yes
24068 echo "configure: failed program was" >&5
24071 rm -f conftest.o conftest.s
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24075 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24076 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24078 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24083 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24084 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24085 $as_echo_n "(cached) " >&6
24087 gcc_cv_as_sparc_fmaf=no
24088 if test x$gcc_cv_as != x; then
24090 .register %g2, #scratch
24091 .register %g3, #scratch
24093 fmaddd %f0, %f2, %f4, %f6
24094 addxccc %g1, %g2, %g3
24095 fsrl32 %f2, %f4, %f8
24096 fnaddd %f10, %f12, %f14' > conftest.s
24097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24099 (eval $ac_try) 2>&5
24101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24102 test $ac_status = 0; }; }
24104 gcc_cv_as_sparc_fmaf=yes
24106 echo "configure: failed program was" >&5
24109 rm -f conftest.o conftest.s
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24113 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24114 if test $gcc_cv_as_sparc_fmaf = yes; then
24116 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24121 i[34567]86-*-* | x86_64-*-*)
24124 # Full C++ conformance when using a shared libstdc++-v3 requires some
24125 # support from the Cygwin DLL, which in more recent versions exports
24126 # wrappers to aid in interposing and redirecting operators new, delete,
24127 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24128 # are configuring for a version of Cygwin that exports the wrappers.
24129 if test x$host = x$target; then
24130 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24131 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24132 gcc_ac_cygwin_dll_wrappers=yes
24134 gcc_ac_cygwin_dll_wrappers=no
24138 # Can't check presence of libc functions during cross-compile, so
24139 # we just have to assume we're building for an up-to-date target.
24140 gcc_ac_cygwin_dll_wrappers=yes
24143 cat >>confdefs.h <<_ACEOF
24144 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24149 cygwin* | pe | mingw32*)
24150 # Recent binutils allows the three-operand form of ".comm" on PE. This
24151 # definition is used unconditionally to initialise the default state of
24152 # the target option variable that governs usage of the feature.
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24154 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24155 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24156 $as_echo_n "(cached) " >&6
24158 gcc_cv_as_comm_has_align=no
24159 if test $in_tree_gas = yes; then
24160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24161 then gcc_cv_as_comm_has_align=yes
24163 elif test x$gcc_cv_as != x; then
24164 $as_echo '.comm foo,1,32' > conftest.s
24165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24172 gcc_cv_as_comm_has_align=yes
24174 echo "configure: failed program was" >&5
24177 rm -f conftest.o conftest.s
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24181 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24184 cat >>confdefs.h <<_ACEOF
24185 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24188 # Used for DWARF 2 in PE
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24190 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24191 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24194 gcc_cv_as_ix86_pe_secrel32=no
24195 if test $in_tree_gas = yes; then
24196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24197 then gcc_cv_as_ix86_pe_secrel32=yes
24199 elif test x$gcc_cv_as != x; then
24203 .secrel32 foo' > conftest.s
24204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24206 (eval $ac_try) 2>&5
24208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209 test $ac_status = 0; }; }
24211 if test x$gcc_cv_ld != x \
24212 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24213 gcc_cv_as_ix86_pe_secrel32=yes
24217 echo "configure: failed program was" >&5
24220 rm -f conftest.o conftest.s
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24224 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24225 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24227 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24230 # Test if the assembler supports the extended form of the .section
24231 # directive that specifies section alignment. LTO support uses this,
24232 # but normally only after installation, so we warn but don't fail the
24233 # configure if LTO is enabled but the assembler does not support it.
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24235 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24236 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24237 $as_echo_n "(cached) " >&6
24239 gcc_cv_as_section_has_align=no
24240 if test $in_tree_gas = yes; then
24241 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24242 then gcc_cv_as_section_has_align=yes
24244 elif test x$gcc_cv_as != x; then
24245 $as_echo '.section lto_test,"dr0"' > conftest.s
24246 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24248 (eval $ac_try) 2>&5
24250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24251 test $ac_status = 0; }; }
24253 gcc_cv_as_section_has_align=yes
24255 echo "configure: failed program was" >&5
24258 rm -f conftest.o conftest.s
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24262 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24264 if test x$gcc_cv_as_section_has_align != xyes; then
24265 case ",$enable_languages," in
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
24268 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
24272 # Test if the assembler supports the section flag 'e' for specifying
24273 # an excluded section.
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24275 $as_echo_n "checking assembler for .section with e... " >&6; }
24276 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24277 $as_echo_n "(cached) " >&6
24279 gcc_cv_as_section_has_e=no
24280 if test $in_tree_gas = yes; then
24281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24282 then gcc_cv_as_section_has_e=yes
24284 elif test x$gcc_cv_as != x; then
24285 $as_echo '.section foo1,"e"
24286 .byte 0,0,0,0' > conftest.s
24287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24289 (eval $ac_try) 2>&5
24291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24292 test $ac_status = 0; }; }
24294 gcc_cv_as_section_has_e=yes
24296 echo "configure: failed program was" >&5
24299 rm -f conftest.o conftest.s
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24303 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24306 cat >>confdefs.h <<_ACEOF
24307 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24314 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24315 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24316 $as_echo_n "(cached) " >&6
24318 gcc_cv_as_ix86_filds=no
24319 if test x$gcc_cv_as != x; then
24320 $as_echo 'filds mem; fists mem' > conftest.s
24321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24323 (eval $ac_try) 2>&5
24325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24326 test $ac_status = 0; }; }
24328 gcc_cv_as_ix86_filds=yes
24330 echo "configure: failed program was" >&5
24333 rm -f conftest.o conftest.s
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24337 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24338 if test $gcc_cv_as_ix86_filds = yes; then
24340 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24345 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24346 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24347 $as_echo_n "(cached) " >&6
24349 gcc_cv_as_ix86_fildq=no
24350 if test x$gcc_cv_as != x; then
24351 $as_echo 'fildq mem; fistpq mem' > conftest.s
24352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24354 (eval $ac_try) 2>&5
24356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24357 test $ac_status = 0; }; }
24359 gcc_cv_as_ix86_fildq=yes
24361 echo "configure: failed program was" >&5
24364 rm -f conftest.o conftest.s
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24368 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24369 if test $gcc_cv_as_ix86_fildq = yes; then
24371 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24376 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24377 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24378 $as_echo_n "(cached) " >&6
24380 gcc_cv_as_ix86_cmov_sun_syntax=no
24381 if test x$gcc_cv_as != x; then
24382 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24390 gcc_cv_as_ix86_cmov_sun_syntax=yes
24392 echo "configure: failed program was" >&5
24395 rm -f conftest.o conftest.s
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24399 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24400 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24402 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24407 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24408 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24409 $as_echo_n "(cached) " >&6
24411 gcc_cv_as_ix86_ffreep=no
24412 if test x$gcc_cv_as != x; then
24413 $as_echo 'ffreep %st(1)' > conftest.s
24414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416 (eval $ac_try) 2>&5
24418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419 test $ac_status = 0; }; }
24421 gcc_cv_as_ix86_ffreep=yes
24423 echo "configure: failed program was" >&5
24426 rm -f conftest.o conftest.s
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24430 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24431 if test $gcc_cv_as_ix86_ffreep = yes; then
24433 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24438 $as_echo_n "checking assembler for .quad directive... " >&6; }
24439 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24440 $as_echo_n "(cached) " >&6
24442 gcc_cv_as_ix86_quad=no
24443 if test x$gcc_cv_as != x; then
24444 $as_echo '.quad 0' > conftest.s
24445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447 (eval $ac_try) 2>&5
24449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; }
24452 gcc_cv_as_ix86_quad=yes
24454 echo "configure: failed program was" >&5
24457 rm -f conftest.o conftest.s
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24461 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24462 if test $gcc_cv_as_ix86_quad = yes; then
24464 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24469 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24470 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24473 gcc_cv_as_ix86_sahf=no
24474 if test x$gcc_cv_as != x; then
24477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24479 (eval $ac_try) 2>&5
24481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24482 test $ac_status = 0; }; }
24484 gcc_cv_as_ix86_sahf=yes
24486 echo "configure: failed program was" >&5
24489 rm -f conftest.o conftest.s
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24493 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24494 if test $gcc_cv_as_ix86_sahf = yes; then
24496 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24501 $as_echo_n "checking assembler for swap suffix... " >&6; }
24502 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24505 gcc_cv_as_ix86_swap=no
24506 if test x$gcc_cv_as != x; then
24507 $as_echo 'movl.s %esp, %ebp' > conftest.s
24508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; }
24515 gcc_cv_as_ix86_swap=yes
24517 echo "configure: failed program was" >&5
24520 rm -f conftest.o conftest.s
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24524 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24525 if test $gcc_cv_as_ix86_swap = yes; then
24527 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24532 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24533 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24534 $as_echo_n "(cached) " >&6
24536 gcc_cv_as_ix86_diff_sect_delta=no
24537 if test x$gcc_cv_as != x; then
24538 $as_echo '.section .rodata
24544 .L2: nop' > conftest.s
24545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547 (eval $ac_try) 2>&5
24549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; }
24552 gcc_cv_as_ix86_diff_sect_delta=yes
24554 echo "configure: failed program was" >&5
24557 rm -f conftest.o conftest.s
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24561 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24562 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24564 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24568 # These two are used unconditionally by i386.[ch]; it is to be defined
24569 # to 1 if the feature is present, 0 otherwise.
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24571 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24572 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24573 $as_echo_n "(cached) " >&6
24575 gcc_cv_as_ix86_gotoff_in_data=no
24576 if test $in_tree_gas = yes; then
24577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24578 then gcc_cv_as_ix86_gotoff_in_data=yes
24580 elif test x$gcc_cv_as != x; then
24585 .long .L0@GOTOFF' > conftest.s
24586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24588 (eval $ac_try) 2>&5
24590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24591 test $ac_status = 0; }; }
24593 gcc_cv_as_ix86_gotoff_in_data=yes
24595 echo "configure: failed program was" >&5
24598 rm -f conftest.o conftest.s
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24602 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24605 cat >>confdefs.h <<_ACEOF
24606 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24611 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24612 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24613 $as_echo_n "(cached) " >&6
24615 gcc_cv_as_ix86_rep_lock_prefix=no
24616 if test x$gcc_cv_as != x; then
24617 $as_echo 'rep movsl
24618 lock addl %edi, (%eax,%esi)
24619 lock orl $0, (%esp)' > conftest.s
24620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24622 (eval $ac_try) 2>&5
24624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24625 test $ac_status = 0; }; }
24627 gcc_cv_as_ix86_rep_lock_prefix=yes
24629 echo "configure: failed program was" >&5
24632 rm -f conftest.o conftest.s
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24636 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24637 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24639 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24644 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24645 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24646 $as_echo_n "(cached) " >&6
24648 gcc_cv_as_ix86_tlsgdplt=no
24649 if test x$gcc_cv_as != x; then
24650 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24653 (eval $ac_try) 2>&5
24655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24656 test $ac_status = 0; }; }
24658 gcc_cv_as_ix86_tlsgdplt=yes
24660 echo "configure: failed program was" >&5
24663 rm -f conftest.o conftest.s
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24667 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24668 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24670 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24675 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24676 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24677 $as_echo_n "(cached) " >&6
24679 gcc_cv_as_ix86_tlsldmplt=no
24680 if test x$gcc_cv_as != x; then
24681 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; }
24689 gcc_cv_as_ix86_tlsldmplt=yes
24691 echo "configure: failed program was" >&5
24694 rm -f conftest.o conftest.s
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24698 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24699 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24701 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24709 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24710 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24711 $as_echo_n "(cached) " >&6
24713 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24714 if test $in_tree_gas = yes; then
24715 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24716 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24718 elif test x$gcc_cv_as != x; then
24720 addl r15 = @ltoffx(x#), gp
24722 ld8.mov r16 = [r15], x#' > conftest.s
24723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24725 (eval $ac_try) 2>&5
24727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24728 test $ac_status = 0; }; }
24730 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24732 echo "configure: failed program was" >&5
24735 rm -f conftest.o conftest.s
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24739 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24740 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24742 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24750 *-*-aix*) conftest_s=' .machine "pwr5"
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24755 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24756 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24757 $as_echo_n "(cached) " >&6
24759 gcc_cv_as_machine_directive=no
24760 if test x$gcc_cv_as != x; then
24761 $as_echo ' .machine ppc7400' > conftest.s
24762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24769 gcc_cv_as_machine_directive=yes
24771 echo "configure: failed program was" >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24778 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24780 if test x$gcc_cv_as_machine_directive != xyes; then
24781 echo "*** This target requires an assembler supporting \".machine\"" >&2
24782 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24783 test x$build = x$target && exit 1
24787 *) conftest_s=' .machine power4
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24793 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24794 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24795 $as_echo_n "(cached) " >&6
24797 gcc_cv_as_powerpc_mfcrf=no
24798 if test $in_tree_gas = yes; then
24799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24800 then gcc_cv_as_powerpc_mfcrf=yes
24802 elif test x$gcc_cv_as != x; then
24803 $as_echo "$conftest_s" > conftest.s
24804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24806 (eval $ac_try) 2>&5
24808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24809 test $ac_status = 0; }; }
24811 gcc_cv_as_powerpc_mfcrf=yes
24813 echo "configure: failed program was" >&5
24816 rm -f conftest.o conftest.s
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24820 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24821 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24823 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24828 *-*-aix*) conftest_s=' .machine "pwr5"
24831 *) conftest_s=' .machine power5
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24837 $as_echo_n "checking assembler for popcntb support... " >&6; }
24838 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24839 $as_echo_n "(cached) " >&6
24841 gcc_cv_as_powerpc_popcntb=no
24842 if test $in_tree_gas = yes; then
24843 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24844 then gcc_cv_as_powerpc_popcntb=yes
24846 elif test x$gcc_cv_as != x; then
24847 $as_echo "$conftest_s" > conftest.s
24848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24850 (eval $ac_try) 2>&5
24852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24853 test $ac_status = 0; }; }
24855 gcc_cv_as_powerpc_popcntb=yes
24857 echo "configure: failed program was" >&5
24860 rm -f conftest.o conftest.s
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24864 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24865 if test $gcc_cv_as_powerpc_popcntb = yes; then
24867 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24872 *-*-aix*) conftest_s=' .machine "pwr5x"
24875 *) conftest_s=' .machine power5
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24881 $as_echo_n "checking assembler for fp round support... " >&6; }
24882 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24883 $as_echo_n "(cached) " >&6
24885 gcc_cv_as_powerpc_fprnd=no
24886 if test $in_tree_gas = yes; then
24887 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24888 then gcc_cv_as_powerpc_fprnd=yes
24890 elif test x$gcc_cv_as != x; then
24891 $as_echo "$conftest_s" > conftest.s
24892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24894 (eval $ac_try) 2>&5
24896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24897 test $ac_status = 0; }; }
24899 gcc_cv_as_powerpc_fprnd=yes
24901 echo "configure: failed program was" >&5
24904 rm -f conftest.o conftest.s
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24908 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24909 if test $gcc_cv_as_powerpc_fprnd = yes; then
24911 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24916 *-*-aix*) conftest_s=' .machine "pwr6"
24919 *) conftest_s=' .machine power6
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24925 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24926 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24927 $as_echo_n "(cached) " >&6
24929 gcc_cv_as_powerpc_mfpgpr=no
24930 if test $in_tree_gas = yes; then
24931 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24932 then gcc_cv_as_powerpc_mfpgpr=yes
24934 elif test x$gcc_cv_as != x; then
24935 $as_echo "$conftest_s" > conftest.s
24936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24938 (eval $ac_try) 2>&5
24940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24941 test $ac_status = 0; }; }
24943 gcc_cv_as_powerpc_mfpgpr=yes
24945 echo "configure: failed program was" >&5
24948 rm -f conftest.o conftest.s
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24952 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24953 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24955 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24960 *-*-aix*) conftest_s=' .csect .text[PR]
24962 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24966 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24967 *) conftest_s=' .text
24969 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24973 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24974 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24977 gcc_cv_as_powerpc_rel16=no
24978 if test $in_tree_gas = yes; then
24979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24980 then gcc_cv_as_powerpc_rel16=yes
24982 elif test x$gcc_cv_as != x; then
24983 $as_echo "$conftest_s" > conftest.s
24984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986 (eval $ac_try) 2>&5
24988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989 test $ac_status = 0; }; }
24991 gcc_cv_as_powerpc_rel16=yes
24993 echo "configure: failed program was" >&5
24996 rm -f conftest.o conftest.s
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25000 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25001 if test $gcc_cv_as_powerpc_rel16 = yes; then
25003 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25008 *-*-aix*) conftest_s=' .machine "pwr6"
25011 *) conftest_s=' .machine power6
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25017 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25018 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25019 $as_echo_n "(cached) " >&6
25021 gcc_cv_as_powerpc_cmpb=no
25022 if test $in_tree_gas = yes; then
25023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25024 then gcc_cv_as_powerpc_cmpb=yes
25026 elif test x$gcc_cv_as != x; then
25027 $as_echo "$conftest_s" > conftest.s
25028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; }
25035 gcc_cv_as_powerpc_cmpb=yes
25037 echo "configure: failed program was" >&5
25040 rm -f conftest.o conftest.s
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25044 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25045 if test $gcc_cv_as_powerpc_cmpb = yes; then
25047 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25052 *-*-aix*) conftest_s=' .machine "pwr6"
25055 *) conftest_s=' .machine power6
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25061 $as_echo_n "checking assembler for decimal float support... " >&6; }
25062 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25063 $as_echo_n "(cached) " >&6
25065 gcc_cv_as_powerpc_dfp=no
25066 if test $in_tree_gas = yes; then
25067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25068 then gcc_cv_as_powerpc_dfp=yes
25070 elif test x$gcc_cv_as != x; then
25071 $as_echo "$conftest_s" > conftest.s
25072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074 (eval $ac_try) 2>&5
25076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077 test $ac_status = 0; }; }
25079 gcc_cv_as_powerpc_dfp=yes
25081 echo "configure: failed program was" >&5
25084 rm -f conftest.o conftest.s
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25088 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25089 if test $gcc_cv_as_powerpc_dfp = yes; then
25091 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25096 *-*-aix*) conftest_s=' .machine "pwr7"
25099 *) conftest_s=' .machine power7
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25105 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25106 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25107 $as_echo_n "(cached) " >&6
25109 gcc_cv_as_powerpc_vsx=no
25110 if test $in_tree_gas = yes; then
25111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25112 then gcc_cv_as_powerpc_vsx=yes
25114 elif test x$gcc_cv_as != x; then
25115 $as_echo "$conftest_s" > conftest.s
25116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25118 (eval $ac_try) 2>&5
25120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25121 test $ac_status = 0; }; }
25123 gcc_cv_as_powerpc_vsx=yes
25125 echo "configure: failed program was" >&5
25128 rm -f conftest.o conftest.s
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25132 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25133 if test $gcc_cv_as_powerpc_vsx = yes; then
25135 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25140 *-*-aix*) conftest_s=' .machine "pwr7"
25143 *) conftest_s=' .machine power7
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25149 $as_echo_n "checking assembler for popcntd support... " >&6; }
25150 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25151 $as_echo_n "(cached) " >&6
25153 gcc_cv_as_powerpc_popcntd=no
25154 if test $in_tree_gas = yes; then
25155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25156 then gcc_cv_as_powerpc_popcntd=yes
25158 elif test x$gcc_cv_as != x; then
25159 $as_echo "$conftest_s" > conftest.s
25160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162 (eval $ac_try) 2>&5
25164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165 test $ac_status = 0; }; }
25167 gcc_cv_as_powerpc_popcntd=yes
25169 echo "configure: failed program was" >&5
25172 rm -f conftest.o conftest.s
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25176 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25177 if test $gcc_cv_as_powerpc_popcntd = yes; then
25179 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25184 *-*-aix*) conftest_s=' .csect .text[PR]
25186 *) conftest_s=' .text
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25191 $as_echo_n "checking assembler for lwsync support... " >&6; }
25192 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25193 $as_echo_n "(cached) " >&6
25195 gcc_cv_as_powerpc_lwsync=no
25196 if test $in_tree_gas = yes; then
25197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25198 then gcc_cv_as_powerpc_lwsync=yes
25200 elif test x$gcc_cv_as != x; then
25201 $as_echo "$conftest_s" > conftest.s
25202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25204 (eval $ac_try) 2>&5
25206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25207 test $ac_status = 0; }; }
25209 gcc_cv_as_powerpc_lwsync=yes
25211 echo "configure: failed program was" >&5
25214 rm -f conftest.o conftest.s
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25218 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25219 if test $gcc_cv_as_powerpc_lwsync = yes; then
25221 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25226 *-*-aix*) conftest_s=' .machine "476"
25229 *) conftest_s=' .machine "476"
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25235 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25236 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25237 $as_echo_n "(cached) " >&6
25239 gcc_cv_as_powerpc_dci=no
25240 if test $in_tree_gas = yes; then
25241 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25242 then gcc_cv_as_powerpc_dci=yes
25244 elif test x$gcc_cv_as != x; then
25245 $as_echo "$conftest_s" > conftest.s
25246 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25248 (eval $ac_try) 2>&5
25250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25251 test $ac_status = 0; }; }
25253 gcc_cv_as_powerpc_dci=yes
25255 echo "configure: failed program was" >&5
25258 rm -f conftest.o conftest.s
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25262 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25263 if test $gcc_cv_as_powerpc_dci = yes; then
25265 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25270 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25271 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25272 $as_echo_n "(cached) " >&6
25274 gcc_cv_as_powerpc_gnu_attribute=no
25275 if test $in_tree_gas = yes; then
25276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25277 then gcc_cv_as_powerpc_gnu_attribute=yes
25279 elif test x$gcc_cv_as != x; then
25280 $as_echo '.gnu_attribute 4,1' > conftest.s
25281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25283 (eval $ac_try) 2>&5
25285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286 test $ac_status = 0; }; }
25288 gcc_cv_as_powerpc_gnu_attribute=yes
25290 echo "configure: failed program was" >&5
25293 rm -f conftest.o conftest.s
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25297 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25298 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25300 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25305 $as_echo_n "checking assembler for tls marker support... " >&6; }
25306 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25307 $as_echo_n "(cached) " >&6
25309 gcc_cv_as_powerpc_tls_markers=no
25310 if test $in_tree_gas = yes; then
25311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25312 then gcc_cv_as_powerpc_tls_markers=yes
25314 elif test x$gcc_cv_as != x; then
25315 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25318 (eval $ac_try) 2>&5
25320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25321 test $ac_status = 0; }; }
25323 gcc_cv_as_powerpc_tls_markers=yes
25325 echo "configure: failed program was" >&5
25328 rm -f conftest.o conftest.s
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25332 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25333 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25335 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25342 $as_echo_n "checking assembler for .ref support... " >&6; }
25343 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25344 $as_echo_n "(cached) " >&6
25346 gcc_cv_as_aix_ref=no
25347 if test $in_tree_gas = yes; then
25348 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25351 elif test x$gcc_cv_as != x; then
25352 $as_echo ' .csect stuff[rw]
25358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25360 (eval $ac_try) 2>&5
25362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25363 test $ac_status = 0; }; }
25365 gcc_cv_as_aix_ref=yes
25367 echo "configure: failed program was" >&5
25370 rm -f conftest.o conftest.s
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25374 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25375 if test $gcc_cv_as_aix_ref = yes; then
25377 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25386 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25387 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25388 $as_echo_n "(cached) " >&6
25390 gcc_cv_as_mips_explicit_relocs=no
25391 if test $in_tree_gas = yes; then
25392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25393 then gcc_cv_as_mips_explicit_relocs=yes
25395 elif test x$gcc_cv_as != x; then
25396 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25399 (eval $ac_try) 2>&5
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; }
25404 gcc_cv_as_mips_explicit_relocs=yes
25406 echo "configure: failed program was" >&5
25409 rm -f conftest.o conftest.s
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25413 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25414 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25415 if test x$target_cpu_default = x
25416 then target_cpu_default=MASK_EXPLICIT_RELOCS
25417 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25421 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25422 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25423 $as_echo_n "(cached) " >&6
25425 gcc_cv_as_mips_no_shared=no
25426 if test $in_tree_gas = yes; then
25427 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25428 then gcc_cv_as_mips_no_shared=yes
25430 elif test x$gcc_cv_as != x; then
25431 $as_echo 'nop' > conftest.s
25432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25434 (eval $ac_try) 2>&5
25436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25437 test $ac_status = 0; }; }
25439 gcc_cv_as_mips_no_shared=yes
25441 echo "configure: failed program was" >&5
25444 rm -f conftest.o conftest.s
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25448 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25449 if test $gcc_cv_as_mips_no_shared = yes; then
25451 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25456 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25457 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25458 $as_echo_n "(cached) " >&6
25460 gcc_cv_as_mips_gnu_attribute=no
25461 if test $in_tree_gas = yes; then
25462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25463 then gcc_cv_as_mips_gnu_attribute=yes
25465 elif test x$gcc_cv_as != x; then
25466 $as_echo '.gnu_attribute 4,1' > conftest.s
25467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25469 (eval $ac_try) 2>&5
25471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25472 test $ac_status = 0; }; }
25474 gcc_cv_as_mips_gnu_attribute=yes
25476 echo "configure: failed program was" >&5
25479 rm -f conftest.o conftest.s
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25483 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25484 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25486 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25491 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25492 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25493 $as_echo_n "(cached) " >&6
25495 gcc_cv_as_mips_dtprelword=no
25496 if test $in_tree_gas = yes; then
25497 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25498 then gcc_cv_as_mips_dtprelword=yes
25500 elif test x$gcc_cv_as != x; then
25501 $as_echo '.section .tdata,"awT",@progbits
25505 .dtprelword x+0x8000' > conftest.s
25506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25508 (eval $ac_try) 2>&5
25510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511 test $ac_status = 0; }; }
25513 gcc_cv_as_mips_dtprelword=yes
25515 echo "configure: failed program was" >&5
25518 rm -f conftest.o conftest.s
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25522 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25523 if test $gcc_cv_as_mips_dtprelword = yes; then
25525 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25530 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25531 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25532 $as_echo_n "(cached) " >&6
25534 gcc_cv_as_mips_dspr1_mult=no
25535 if test x$gcc_cv_as != x; then
25536 $as_echo ' .set mips32r2
25544 multu $ac3,$4,$5' > conftest.s
25545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25547 (eval $ac_try) 2>&5
25549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550 test $ac_status = 0; }; }
25552 gcc_cv_as_mips_dspr1_mult=yes
25554 echo "configure: failed program was" >&5
25557 rm -f conftest.o conftest.s
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25561 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25562 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25564 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25569 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25570 gcc_cv_as_ld_jalr_reloc=no
25571 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25572 if test $in_tree_ld = yes ; then
25573 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
25574 && test $in_tree_ld_is_elf = yes; then
25575 gcc_cv_as_ld_jalr_reloc=yes
25577 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25578 echo ' .ent x' > conftest.s
25579 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25580 echo ' ld $25,%call16(y)($28)' >> conftest.s
25581 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25582 echo '1: jalr $25' >> conftest.s
25583 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25584 echo '1: jalr $25' >> conftest.s
25585 echo ' .end x' >> conftest.s
25586 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25587 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25588 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25589 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25590 gcc_cv_as_ld_jalr_reloc=yes
25596 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25597 if test x$target_cpu_default = x; then
25598 target_cpu_default=MASK_RELAX_PIC_CALLS
25600 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25604 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25607 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25608 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25609 $as_echo_n "(cached) " >&6
25611 gcc_cv_ld_mips_personality_relaxation=no
25612 if test $in_tree_ld = yes ; then
25613 if test "$gcc_cv_gld_major_version" -eq 2 \
25614 -a "$gcc_cv_gld_minor_version" -ge 21 \
25615 -o "$gcc_cv_gld_major_version" -gt 2; then
25616 gcc_cv_ld_mips_personality_relaxation=yes
25618 elif test x$gcc_cv_as != x \
25619 -a x$gcc_cv_ld != x \
25620 -a x$gcc_cv_readelf != x ; then
25621 cat > conftest.s <<EOF
25623 .cfi_personality 0x80,indirect_ptr
25630 .section .data,"aw",@progbits
25634 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25635 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25636 if $gcc_cv_readelf -d conftest 2>&1 \
25637 | grep TEXTREL > /dev/null 2>&1; then
25639 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25640 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25643 gcc_cv_ld_mips_personality_relaxation=yes
25647 rm -f conftest.s conftest.o conftest
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25650 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25651 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25653 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25659 # Mips and HP-UX need the GNU assembler.
25660 # Linux on IA64 might be able to use the Intel assembler.
25663 mips*-*-* | *-*-hpux* )
25664 if test x$gas_flag = xyes \
25665 || test x"$host" != x"$build" \
25666 || test ! -x "$gcc_cv_as" \
25667 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25670 echo "*** This configuration requires the GNU assembler" >&2
25676 # ??? Not all targets support dwarf2 debug_line, even within a version
25677 # of gas. Moreover, we need to emit a valid instruction to trigger any
25678 # info to the output file. So, as supported targets are added to gas 2.11,
25679 # add some instruction here to (also) show we expect this might work.
25680 # ??? Once 2.11 is released, probably need to add first known working
25681 # version to the per-target configury.
25682 case "$cpu_type" in
25683 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25684 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25694 if test x"$insn" != x; then
25696 .file 1 \"conftest.s\"
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25700 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25701 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25702 $as_echo_n "(cached) " >&6
25704 gcc_cv_as_dwarf2_debug_line=no
25705 if test $in_tree_gas = yes; then
25706 if test $in_tree_gas_is_elf = yes \
25707 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25708 then gcc_cv_as_dwarf2_debug_line=yes
25710 elif test x$gcc_cv_as != x; then
25711 $as_echo "$conftest_s" > conftest.s
25712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25714 (eval $ac_try) 2>&5
25716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25717 test $ac_status = 0; }; }
25719 if test x$gcc_cv_objdump != x \
25720 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25721 | grep debug_line > /dev/null 2>&1; then
25722 gcc_cv_as_dwarf2_debug_line=yes
25725 echo "configure: failed program was" >&5
25728 rm -f conftest.o conftest.s
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25732 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25735 # The .debug_line file table must be in the exact order that
25736 # we specified the files, since these indices are also used
25737 # by DW_AT_decl_file. Approximate this test by testing if
25738 # the assembler bitches if the same index is assigned twice.
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25740 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25741 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25744 gcc_cv_as_dwarf2_file_buggy=no
25745 if test x$gcc_cv_as != x; then
25746 $as_echo ' .file 1 "foo.s"
25747 .file 1 "bar.s"' > conftest.s
25748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25750 (eval $ac_try) 2>&5
25752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25753 test $ac_status = 0; }; }
25755 gcc_cv_as_dwarf2_file_buggy=yes
25757 echo "configure: failed program was" >&5
25760 rm -f conftest.o conftest.s
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25764 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25767 if test $gcc_cv_as_dwarf2_debug_line = yes \
25768 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25770 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25775 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25776 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25777 $as_echo_n "(cached) " >&6
25779 gcc_cv_as_gdwarf2_flag=no
25780 if test $in_tree_gas = yes; then
25781 if test $in_tree_gas_is_elf = yes \
25782 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25783 then gcc_cv_as_gdwarf2_flag=yes
25785 elif test x$gcc_cv_as != x; then
25786 $as_echo "$insn" > conftest.s
25787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25789 (eval $ac_try) 2>&5
25791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25792 test $ac_status = 0; }; }
25794 gcc_cv_as_gdwarf2_flag=yes
25796 echo "configure: failed program was" >&5
25799 rm -f conftest.o conftest.s
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25803 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25804 if test $gcc_cv_as_gdwarf2_flag = yes; then
25806 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25811 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25812 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25813 $as_echo_n "(cached) " >&6
25815 gcc_cv_as_gstabs_flag=no
25816 if test $in_tree_gas = yes; then
25817 if test $in_tree_gas_is_elf = yes \
25818 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25819 then gcc_cv_as_gstabs_flag=yes
25821 elif test x$gcc_cv_as != x; then
25822 $as_echo "$insn" > conftest.s
25823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25825 (eval $ac_try) 2>&5
25827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25828 test $ac_status = 0; }; }
25830 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25831 # and warns about it, but still exits successfully. So check for
25833 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25840 else gcc_cv_as_gstabs_flag=yes
25843 echo "configure: failed program was" >&5
25846 rm -f conftest.o conftest.s
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25850 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25851 if test $gcc_cv_as_gstabs_flag = yes; then
25853 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25858 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25859 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25860 $as_echo_n "(cached) " >&6
25862 gcc_cv_as_debug_prefix_map_flag=no
25863 if test $in_tree_gas = yes; then
25864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25865 then gcc_cv_as_debug_prefix_map_flag=yes
25867 elif test x$gcc_cv_as != x; then
25868 $as_echo "$insn" > conftest.s
25869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }
25876 gcc_cv_as_debug_prefix_map_flag=yes
25878 echo "configure: failed program was" >&5
25881 rm -f conftest.o conftest.s
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25885 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25886 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25888 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25894 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25895 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25896 $as_echo_n "(cached) " >&6
25898 gcc_cv_as_lcomm_with_alignment=no
25899 if test x$gcc_cv_as != x; then
25900 $as_echo '.lcomm bar,4,16' > conftest.s
25901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25903 (eval $ac_try) 2>&5
25905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25906 test $ac_status = 0; }; }
25908 gcc_cv_as_lcomm_with_alignment=yes
25910 echo "configure: failed program was" >&5
25913 rm -f conftest.o conftest.s
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25917 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25918 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25920 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25924 # Check whether --enable-gnu-unique-object was given.
25925 if test "${enable_gnu_unique_object+set}" = set; then :
25926 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25928 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25929 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25933 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25934 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25935 $as_echo_n "(cached) " >&6
25937 gcc_cv_as_gnu_unique_object=no
25938 if test $in_tree_gas = yes; then
25939 if test $in_tree_gas_is_elf = yes \
25940 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25941 then gcc_cv_as_gnu_unique_object=yes
25943 elif test x$gcc_cv_as != x; then
25944 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947 (eval $ac_try) 2>&5
25949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950 test $ac_status = 0; }; }
25952 gcc_cv_as_gnu_unique_object=yes
25954 echo "configure: failed program was" >&5
25957 rm -f conftest.o conftest.s
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25961 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25962 if test $gcc_cv_as_gnu_unique_object = yes; then
25963 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25964 if test x$host = x$build -a x$host = x$target &&
25965 ldd --version 2>/dev/null &&
25966 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25967 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25968 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25969 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25970 if test "$glibcnum" -ge 2011 ; then
25971 enable_gnu_unique_object=yes
25977 if test x$enable_gnu_unique_object = xyes; then
25979 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25984 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25985 if test "${gcc_cv_as_line_zero+set}" = set; then :
25986 $as_echo_n "(cached) " >&6
25988 gcc_cv_as_line_zero=no
25989 if test $in_tree_gas = yes; then
25990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25991 then gcc_cv_as_line_zero=yes
25993 elif test "x$gcc_cv_as" != x; then
25994 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25995 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25997 (eval $ac_try) 2>&5
25999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26000 test $ac_status = 0; }; } &&
26001 test "x`cat conftest.out`" = x
26003 gcc_cv_as_line_zero=yes
26005 echo "configure: failed program was" >&5
26007 echo "configure: error output was" >&5
26008 cat conftest.out >&5
26010 rm -f conftest.o conftest.s conftest.out
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26014 $as_echo "$gcc_cv_as_line_zero" >&6; }
26015 if test "x$gcc_cv_as_line_zero" = xyes; then
26017 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26022 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26023 gcc_cv_ld_eh_frame_hdr=no
26024 if test $in_tree_ld = yes ; then
26025 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
26026 && test $in_tree_ld_is_elf = yes; then
26027 gcc_cv_ld_eh_frame_hdr=yes
26029 elif test x$gcc_cv_ld != x; then
26030 if echo "$ld_ver" | grep GNU > /dev/null; then
26031 # Check if linker supports --eh-frame-hdr option
26032 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26033 gcc_cv_ld_eh_frame_hdr=yes
26038 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26039 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26040 gcc_cv_ld_eh_frame_hdr=yes
26047 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26049 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26053 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26056 $as_echo_n "checking linker position independent executable support... " >&6; }
26058 if test $in_tree_ld = yes ; then
26059 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26060 && test $in_tree_ld_is_elf = yes; then
26063 elif test x$gcc_cv_ld != x; then
26064 # Check if linker supports -pie option
26065 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26069 if test x"$gcc_cv_ld_pie" = xyes; then
26071 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26075 $as_echo "$gcc_cv_ld_pie" >&6; }
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26078 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26079 gcc_cv_ld_eh_gc_sections=no
26080 if test $in_tree_ld = yes ; then
26081 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
26082 && test $in_tree_ld_is_elf = yes; then
26083 gcc_cv_ld_eh_gc_sections=yes
26085 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26086 cat > conftest.s <<EOF
26089 .type _start, @function
26092 .size _start, .-_start
26093 .section .text.foo,"ax",@progbits
26094 .type foo, @function
26098 .section .gcc_except_table.foo,"a",@progbits
26101 .section .eh_frame,"a",@progbits
26104 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26105 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26106 | grep "gc-sections option ignored" > /dev/null; then
26107 gcc_cv_ld_eh_gc_sections=no
26108 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26109 | grep gcc_except_table > /dev/null; then
26110 gcc_cv_ld_eh_gc_sections=yes
26111 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26112 if test x$gcc_cv_as_comdat_group != xyes; then
26113 gcc_cv_ld_eh_gc_sections=no
26114 cat > conftest.s <<EOF
26117 .type _start, @function
26120 .size _start, .-_start
26121 .section .gnu.linkonce.t.foo,"ax",@progbits
26122 .type foo, @function
26126 .section .gcc_except_table.foo,"a",@progbits
26129 .section .eh_frame,"a",@progbits
26132 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26133 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26134 | grep "gc-sections option ignored" > /dev/null; then
26135 gcc_cv_ld_eh_gc_sections=no
26136 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26137 | grep gcc_except_table > /dev/null; then
26138 gcc_cv_ld_eh_gc_sections=yes
26144 rm -f conftest.s conftest.o conftest
26148 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26149 gcc_cv_ld_eh_gc_sections=no
26152 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26154 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26158 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26161 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26162 gcc_cv_ld_eh_gc_sections_bug=no
26163 if test $in_tree_ld = yes ; then
26164 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26165 && test $in_tree_ld_is_elf = yes; then
26166 gcc_cv_ld_eh_gc_sections_bug=yes
26168 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
26169 gcc_cv_ld_eh_gc_sections_bug=yes
26170 cat > conftest.s <<EOF
26173 .type _start, @function
26176 .size _start, .-_start
26177 .section .text.startup.foo,"ax",@progbits
26178 .type foo, @function
26182 .section .gcc_except_table.foo,"a",@progbits
26185 .section .eh_frame,"a",@progbits
26188 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26189 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26190 | grep "gc-sections option ignored" > /dev/null; then
26192 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26193 | grep gcc_except_table > /dev/null; then
26194 gcc_cv_ld_eh_gc_sections_bug=no
26197 rm -f conftest.s conftest.o conftest
26199 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26201 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26205 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26212 $as_echo_n "checking linker --as-needed support... " >&6; }
26213 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26214 $as_echo_n "(cached) " >&6
26216 gcc_cv_ld_as_needed=no
26217 if test $in_tree_ld = yes ; then
26218 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
26219 && test $in_tree_ld_is_elf = yes; then
26220 gcc_cv_ld_as_needed=yes
26222 elif test x$gcc_cv_ld != x; then
26223 # Check if linker supports --as-needed and --no-as-needed options
26224 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26225 gcc_cv_ld_as_needed=yes
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26231 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26232 if test x"$gcc_cv_ld_as_needed" = xyes; then
26234 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26238 case "$target:$tm_file" in
26239 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26241 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26242 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26243 $as_echo_n "(cached) " >&6
26245 gcc_cv_ld_no_dot_syms=no
26246 if test $in_tree_ld = yes ; then
26247 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
26248 gcc_cv_ld_no_dot_syms=yes
26250 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26251 cat > conftest1.s <<EOF
26255 cat > conftest2.s <<EOF
26256 .section ".opd","aw"
26259 .type foo,@function
26261 .quad .LEfoo,.TOC.@tocbase,0
26267 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26268 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26269 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26270 gcc_cv_ld_no_dot_syms=yes
26272 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26277 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26278 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26280 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26285 $as_echo_n "checking linker large toc support... " >&6; }
26286 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26287 $as_echo_n "(cached) " >&6
26289 gcc_cv_ld_large_toc=no
26290 if test $in_tree_ld = yes ; then
26291 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
26292 gcc_cv_ld_large_toc=yes
26294 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26295 cat > conftest.s <<EOF
26296 .section ".tbss","awT",@nobits
26302 addis 9,13,ie0@got@tprel@ha
26303 ld 9,ie0@got@tprel@l(9)
26305 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26306 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26307 gcc_cv_ld_large_toc=yes
26309 rm -f conftest conftest.o conftest.s
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26314 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26315 if test x"$gcc_cv_ld_large_toc" = xyes; then
26317 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26324 $as_echo_n "checking linker --build-id support... " >&6; }
26325 if test "${gcc_cv_ld_buildid+set}" = set; then :
26326 $as_echo_n "(cached) " >&6
26328 gcc_cv_ld_buildid=no
26329 if test $in_tree_ld = yes ; then
26330 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26331 "$gcc_cv_gld_minor_version" -ge 18 -o \
26332 "$gcc_cv_gld_major_version" -gt 2 \
26333 && test $in_tree_ld_is_elf = yes; then
26334 gcc_cv_ld_buildid=yes
26336 elif test x$gcc_cv_ld != x; then
26337 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26338 gcc_cv_ld_buildid=yes
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26343 $as_echo "$gcc_cv_ld_buildid" >&6; }
26344 if test x"$gcc_cv_ld_buildid" = xyes; then
26346 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26350 # Check whether --enable-linker-build-id was given.
26351 if test "${enable_linker_build_id+set}" = set; then :
26352 enableval=$enable_linker_build_id;
26354 enable_linker_build_id=no
26358 if test x"$enable_linker_build_id" = xyes; then
26359 if test x"$gcc_cv_ld_buildid" = xyes; then
26361 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26365 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26369 # In binutils 2.21, GNU ld gained support for new emulations fully
26370 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26372 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26373 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26374 $as_echo_n "(cached) " >&6
26376 gcc_cv_ld_sol2_emulation=no
26377 if test $in_tree_ld = yes ; then
26378 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26379 "$gcc_cv_gld_minor_version" -ge 21 -o \
26380 "$gcc_cv_gld_major_version" -gt 2 \
26381 && test $in_tree_ld_is_elf = yes; then
26382 gcc_cv_ld_sol2_emulation=yes
26384 elif test x$gcc_cv_ld != x; then
26385 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26386 grep _sol2 > /dev/null; then
26387 gcc_cv_ld_sol2_emulation=yes
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26392 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26393 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26395 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26400 $as_echo_n "checking linker --sysroot support... " >&6; }
26401 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26402 $as_echo_n "(cached) " >&6
26404 gcc_cv_ld_sysroot=no
26405 if test $in_tree_ld = yes ; then
26406 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
26407 gcc_cv_ld_sysroot=yes
26409 elif test x$gcc_cv_ld != x; then
26410 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26411 gcc_cv_ld_sysroot=yes
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26416 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26417 if test x"$gcc_cv_ld_sysroot" = xyes; then
26419 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26423 if test x$with_sysroot = x && test x$host = x$target \
26424 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26425 && test "$prefix" != "NONE"; then
26427 cat >>confdefs.h <<_ACEOF
26428 #define PREFIX_INCLUDE_DIR "$prefix/include"
26433 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26434 if test "x$with_headers" != x; then
26435 target_header_dir=$with_headers
26436 elif test "x$with_sysroot" = x; then
26437 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26438 elif test "x$with_build_sysroot" != "x"; then
26439 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26440 elif test "x$with_sysroot" = xyes; then
26441 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26443 target_header_dir="${with_sysroot}${native_system_header_dir}"
26446 target_header_dir=${native_system_header_dir}
26449 # Test for stack protector support in target C library.
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26451 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26452 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26453 $as_echo_n "(cached) " >&6
26455 gcc_cv_libc_provides_ssp=no
26457 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26458 # glibc 2.4 and later provides __stack_chk_fail and
26459 # either __stack_chk_guard, or TLS access to stack guard canary.
26460 if test -f $target_header_dir/features.h \
26461 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26462 $target_header_dir/features.h > /dev/null; then
26463 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26464 $target_header_dir/features.h > /dev/null; then
26465 gcc_cv_libc_provides_ssp=yes
26466 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26467 $target_header_dir/features.h > /dev/null \
26468 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26469 $target_header_dir/features.h > /dev/null; then
26470 gcc_cv_libc_provides_ssp=yes
26471 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26472 $target_header_dir/features.h > /dev/null && \
26473 test -f $target_header_dir/bits/uClibc_config.h && \
26474 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26475 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26476 gcc_cv_libc_provides_ssp=yes
26481 # Avoid complicated tests (see
26482 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26483 # simply assert that glibc does provide this, which is true for all
26484 # realistically usable GNU/Hurd configurations.
26485 gcc_cv_libc_provides_ssp=yes;;
26486 *-*-darwin* | *-*-freebsd*)
26487 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26488 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26489 gcc_cv_libc_provides_ssp=yes
26491 echo "no __stack_chk_fail on this target"
26495 *) gcc_cv_libc_provides_ssp=no ;;
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26499 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26501 if test x$gcc_cv_libc_provides_ssp = xyes; then
26503 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26507 # Test for <sys/sdt.h> on the target.
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26510 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26512 if test -f $target_header_dir/sys/sdt.h; then
26515 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26519 $as_echo "$have_sys_sdt_h" >&6; }
26521 # Check if TFmode long double should be used by default or not.
26522 # Some glibc targets used DFmode long double, but with glibc 2.4
26523 # and later they can use TFmode.
26525 powerpc*-*-linux* | \
26526 sparc*-*-linux* | \
26530 # Check whether --with-long-double-128 was given.
26531 if test "${with_long_double_128+set}" = set; then :
26532 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26534 gcc_cv_target_ldbl128=no
26535 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26536 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26537 && gcc_cv_target_ldbl128=yes
26543 if test x$gcc_cv_target_ldbl128 = xyes; then
26545 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26550 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26551 gcc_cv_target_dl_iterate_phdr=unknown
26554 # <link.h> needs both a dl_iterate_phdr declaration and support for
26555 # compilation with largefile support.
26556 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26557 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26558 gcc_cv_target_dl_iterate_phdr=yes
26560 gcc_cv_target_dl_iterate_phdr=no
26565 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26567 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26571 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26573 # Find out what GC implementation we want, or may, use.
26575 # Check whether --with-gc was given.
26576 if test "${with_gc+set}" = set; then :
26577 withval=$with_gc; case "$withval" in
26584 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26588 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26596 echo "Using $GGC for garbage collection."
26598 # Libraries to use on the host. This will normally be set by the top
26599 # level Makefile. Here we simply capture the value for our Makefile.
26600 if test -z "${HOST_LIBS+set}"; then
26605 # Use the system's zlib library.
26607 zlibinc="-I\$(srcdir)/../zlib"
26609 # Check whether --with-system-zlib was given.
26610 if test "${with_system_zlib+set}" = set; then :
26611 withval=$with_system_zlib; zlibdir=
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26621 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26622 # Check whether --enable-maintainer-mode was given.
26623 if test "${enable_maintainer_mode+set}" = set; then :
26624 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26631 $as_echo "$maintainer_mode" >&6; }
26633 if test "$maintainer_mode" = "yes"; then
26643 # Make empty files to contain the specs and options for each language.
26644 # Then add #include lines to for a compiler that has specs and/or options.
26650 # These (without "all_") are set in each config-lang.in.
26651 # `language' must be a single word so is spelled singularly.
26654 all_outputs='Makefile'
26655 # List of language makefile fragments.
26656 all_lang_makefrags=
26657 # Additional files for gengtype
26658 all_gtfiles="$target_gtfiles"
26660 # These are the languages that are set in --enable-languages,
26661 # and are available in the GCC tree.
26662 all_selected_languages=
26664 # Add the language fragments.
26665 # Languages are added via two mechanisms. Some information must be
26666 # recorded in makefile variables, these are defined in config-lang.in.
26667 # We accumulate them and plug them into the main Makefile.
26668 # The other mechanism is a set of hooks for each of the main targets
26669 # like `clean', `install', etc.
26671 language_hooks="Make-hooks"
26673 for lang in ${srcdir}/*/config-lang.in
26675 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26677 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26678 if test "x$lang_alias" = x
26680 echo "$lang doesn't set \$language." 1>&2
26683 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26684 subdirs="$subdirs $subdir"
26686 # $gcc_subdir is where the gcc integration files are to be found
26687 # for a language, both for internal compiler purposes (compiler
26688 # sources implementing front-end to GCC tree converters), and for
26689 # build infrastructure purposes (Make-lang.in, etc.)
26691 # This will be <subdir> (relative to $srcdir) if a line like
26692 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26693 # is found in <langdir>/config-lang.in, and will remain <langdir>
26696 # Except for the language alias (fetched above), the regular
26697 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26698 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26699 # only this and the language alias.
26701 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26702 if [ "$gcc_subdir" = "" ]; then
26703 gcc_subdir="$subdir"
26706 case ",$enable_languages," in
26708 all_selected_languages="$all_selected_languages $lang_alias"
26709 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26710 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26721 . ${srcdir}/$gcc_subdir/config-lang.in
26722 if test "x$language" = x
26724 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26729 case ",$enable_languages," in
26730 *,$lang_alias,*) ;;
26732 for i in $subdir_requires; do
26733 test -f "${srcdir}/$i/config-lang.in" && continue
26741 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26742 if test -f $srcdir/$gcc_subdir/lang.opt; then
26743 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26744 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26746 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26747 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26749 all_languages="$all_languages $language"
26750 all_compilers="$all_compilers $compilers"
26751 all_outputs="$all_outputs $outputs"
26752 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26753 case ",$enable_languages," in
26756 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26765 # Pick up gtfiles for c
26767 . ${srcdir}/c-config-lang.in
26768 all_gtfiles="$all_gtfiles [c] $gtfiles"
26771 for language in $all_selected_languages
26773 check_languages="$check_languages check-$language"
26776 # We link each language in with a set of hooks, reached indirectly via
26777 # lang.${target}. Only do so for selected languages.
26781 target_list="all.cross start.encap rest.encap tags \
26782 install-common install-man install-info install-pdf install-html dvi \
26783 pdf html uninstall info man srcextra srcman srcinfo \
26784 mostlyclean clean distclean maintainer-clean install-plugin"
26786 for t in $target_list
26789 for lang in $all_selected_languages
26793 echo "lang.$t: $x" >> Make-hooks
26797 # Option include files
26800 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26801 option_includes="option-includes.mk"
26810 echo "dir ." > .gdbinit
26811 echo "dir ${srcdir}" >> .gdbinit
26812 if test x$gdb_needs_out_file_path = xyes
26814 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26816 if test "x$subdirs" != x; then
26819 echo "dir ${srcdir}/$s" >> .gdbinit
26822 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26824 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26828 # Find a directory in which to install a shared libgcc.
26830 # Check whether --enable-version-specific-runtime-libs was given.
26831 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26832 enableval=$enable_version_specific_runtime_libs;
26837 # Check whether --with-slibdir was given.
26838 if test "${with_slibdir+set}" = set; then :
26839 withval=$with_slibdir; slibdir="$with_slibdir"
26841 if test "${enable_version_specific_runtime_libs+set}" = set; then
26842 slibdir='$(libsubdir)'
26843 elif test "$host" != "$target"; then
26844 slibdir='$(build_tooldir)/lib'
26846 slibdir='$(libdir)'
26852 # Substitute configuration variables
26920 if test x${build} = x${host} ; then
26921 if test x${host} = x${target} ; then
26922 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26924 echo "Links are now set up to build a cross-compiler" 1>&2
26925 echo " from ${host} to ${target}." 1>&2
26928 if test x${host} = x${target} ; then
26929 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26930 echo " for ${target}." 1>&2
26932 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26933 echo " from ${host} to ${target}." 1>&2
26945 if test "x${CLOOGLIBS}" != "x" ; then
26947 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26951 # Check for plugin support
26952 # Check whether --enable-plugin was given.
26953 if test "${enable_plugin+set}" = set; then :
26954 enableval=$enable_plugin; enable_plugin=$enableval
26956 enable_plugin=yes; default_plugin=yes
26964 if test x$build = x$host; then
26965 export_sym_check="nm${exeext} -g"
26966 elif test x$host = x$target; then
26967 export_sym_check="$gcc_cv_nm -g"
26973 if test x$build = x$host; then
26974 export_sym_check="objdump${exeext} -T"
26975 elif test x$host = x$target; then
26976 export_sym_check="$gcc_cv_objdump -T"
26983 if test x"$enable_plugin" = x"yes"; then
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26986 $as_echo_n "checking for exported symbols... " >&6; }
26987 if test "x$export_sym_check" != x; then
26988 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26989 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26990 if $export_sym_check conftest | grep foobar > /dev/null; then
26991 : # No need to use a flag
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26993 $as_echo "yes" >&6; }
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26996 $as_echo "yes" >&6; }
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26998 $as_echo_n "checking for -rdynamic... " >&6; }
26999 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27000 if $export_sym_check conftest | grep foobar > /dev/null; then
27001 plugin_rdynamic=yes
27002 pluginlibs="-rdynamic"
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27008 $as_echo "$plugin_rdynamic" >&6; }
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27012 $as_echo "unable to check" >&6; }
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27018 $as_echo_n "checking for library containing dlopen... " >&6; }
27019 if test "${ac_cv_search_dlopen+set}" = set; then :
27020 $as_echo_n "(cached) " >&6
27022 ac_func_search_save_LIBS=$LIBS
27023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27024 /* end confdefs.h. */
27026 /* Override any GCC internal prototype to avoid an error.
27027 Use char because int might match the return type of a GCC
27028 builtin and then its argument prototype would still apply. */
27041 for ac_lib in '' dl; do
27042 if test -z "$ac_lib"; then
27043 ac_res="none required"
27046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27048 if ac_fn_c_try_link "$LINENO"; then :
27049 ac_cv_search_dlopen=$ac_res
27051 rm -f core conftest.err conftest.$ac_objext \
27053 if test "${ac_cv_search_dlopen+set}" = set; then :
27057 if test "${ac_cv_search_dlopen+set}" = set; then :
27060 ac_cv_search_dlopen=no
27062 rm conftest.$ac_ext
27063 LIBS=$ac_func_search_save_LIBS
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27066 $as_echo "$ac_cv_search_dlopen" >&6; }
27067 ac_res=$ac_cv_search_dlopen
27068 if test "$ac_res" != no; then :
27069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27073 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27074 pluginlibs="$pluginlibs -ldl"
27078 # Check that we can build shared objects with -fPIC -shared
27079 saved_LDFLAGS="$LDFLAGS"
27080 saved_CFLAGS="$CFLAGS"
27083 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27084 CFLAGS="$CFLAGS -fPIC"
27085 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27088 CFLAGS="$CFLAGS -fPIC"
27089 LDFLAGS="$LDFLAGS -fPIC -shared"
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27093 $as_echo_n "checking for -fPIC -shared... " >&6; }
27094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27095 /* end confdefs.h. */
27105 if ac_fn_c_try_link "$LINENO"; then :
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27107 $as_echo "yes" >&6; }; have_pic_shared=yes
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27110 $as_echo "no" >&6; }; have_pic_shared=no
27112 rm -f core conftest.err conftest.$ac_objext \
27113 conftest$ac_exeext conftest.$ac_ext
27114 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27118 LDFLAGS="$saved_LDFLAGS"
27119 CFLAGS="$saved_CFLAGS"
27121 # If plugin support had been requested but not available, fail.
27122 if test x"$enable_plugin" = x"no" ; then
27123 if test x"$default_plugin" != x"yes"; then
27125 Building GCC with plugin support requires a host that supports
27126 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27133 if test x"$enable_plugin" = x"yes"; then
27135 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27140 # Check whether --enable-libquadmath-support was given.
27141 if test "${enable_libquadmath_support+set}" = set; then :
27142 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27144 ENABLE_LIBQUADMATH_SUPPORT=yes
27147 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27149 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27154 # Specify what hash style to use by default.
27156 # Check whether --with-linker-hash-style was given.
27157 if test "${with_linker_hash_style+set}" = set; then :
27158 withval=$with_linker_hash_style; case x"$withval" in
27160 LINKER_HASH_STYLE=sysv
27163 LINKER_HASH_STYLE=gnu
27166 LINKER_HASH_STYLE=both
27169 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27173 LINKER_HASH_STYLE=''
27176 if test x"${LINKER_HASH_STYLE}" != x; then
27178 cat >>confdefs.h <<_ACEOF
27179 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27184 # Configure the subdirectories
27185 # AC_CONFIG_SUBDIRS($subdirs)
27187 # Create the Makefile
27188 # and configure language subdirectories
27189 ac_config_files="$ac_config_files $all_outputs"
27192 ac_config_commands="$ac_config_commands default"
27194 cat >confcache <<\_ACEOF
27195 # This file is a shell script that caches the results of configure
27196 # tests run on this system so they can be shared between configure
27197 # scripts and configure runs, see configure's option --config-cache.
27198 # It is not useful on other systems. If it contains results you don't
27199 # want to keep, you may remove or edit it.
27201 # config.status only pays attention to the cache file if you give it
27202 # the --recheck option to rerun configure.
27204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27206 # following values.
27210 # The following way of writing the cache mishandles newlines in values,
27211 # but we know of no workaround that is simple, portable, and efficient.
27212 # So, we kill variables containing newlines.
27213 # Ultrix sh set writes to stderr and can't be redirected directly,
27214 # and sets the high bit in the cache file unless we assign to the vars.
27216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27217 eval ac_val=\$$ac_var
27221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27225 _ | IFS | as_nl) ;; #(
27226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27227 *) { eval $ac_var=; unset $ac_var;} ;;
27233 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27234 *${as_nl}ac_space=\ *)
27235 # `set' does not quote correctly, so add quotes: double-quote
27236 # substitution turns \\\\ into \\, and sed turns \\ into \.
27239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27242 # `set' quotes correctly as required by POSIX, so do not add quotes.
27243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27257 if test -w "$cache_file"; then
27258 test "x$cache_file" != "x/dev/null" &&
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27260 $as_echo "$as_me: updating cache $cache_file" >&6;}
27261 cat confcache >$cache_file
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27270 # Let make expand exec_prefix.
27271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27273 DEFS=-DHAVE_CONFIG_H
27277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27278 # 1. Remove the extension, and $U if already installed.
27279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27282 # will be set to the directory where LIBOBJS objects are built.
27283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27286 LIBOBJS=$ac_libobjs
27288 LTLIBOBJS=$ac_ltlibobjs
27293 : ${CONFIG_STATUS=./config.status}
27295 ac_clean_files_save=$ac_clean_files
27296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27298 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27300 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27302 # Generated by $as_me.
27303 # Run this file to recreate the current configuration.
27304 # Compiler output produced by configure, useful for debugging
27305 # configure, is in config.log if it exists.
27308 ac_cs_recheck=false
27311 SHELL=\${CONFIG_SHELL-$SHELL}
27314 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27315 ## -------------------- ##
27316 ## M4sh Initialization. ##
27317 ## -------------------- ##
27319 # Be more Bourne compatible
27320 DUALCASE=1; export DUALCASE # for MKS sh
27321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27325 # is contrary to our usage. Disable this feature.
27326 alias -g '${1+"$@"}'='"$@"'
27327 setopt NO_GLOB_SUBST
27329 case `(set -o) 2>/dev/null` in #(
27341 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27342 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27345 # Prefer a ksh shell builtin over an external printf program on Solaris,
27346 # but without wasting forks for bash or zsh.
27347 if test -z "$BASH_VERSION$ZSH_VERSION" \
27348 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27349 as_echo='print -r --'
27350 as_echo_n='print -rn --'
27351 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27352 as_echo='printf %s\n'
27353 as_echo_n='printf %s'
27355 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27356 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27357 as_echo_n='/usr/ucb/echo -n'
27359 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27360 as_echo_n_body='eval
27364 expr "X$arg" : "X\\(.*\\)$as_nl";
27365 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27367 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27369 export as_echo_n_body
27370 as_echo_n='sh -c $as_echo_n_body as_echo'
27372 export as_echo_body
27373 as_echo='sh -c $as_echo_body as_echo'
27376 # The user is always right.
27377 if test "${PATH_SEPARATOR+set}" != set; then
27379 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27380 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27387 # We need space, tab and new line, in precisely that order. Quoting is
27388 # there to prevent editors from complaining about space-tab.
27389 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27390 # splitting by setting IFS to empty value.)
27393 # Find who we are. Look in the path if we contain no directory separator.
27395 *[\\/]* ) as_myself=$0 ;;
27396 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27397 for as_dir in $PATH
27400 test -z "$as_dir" && as_dir=.
27401 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27407 # We did not find ourselves, most probably we were run as `sh COMMAND'
27408 # in which case we are not to be found in the path.
27409 if test "x$as_myself" = x; then
27412 if test ! -f "$as_myself"; then
27413 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27417 # Unset variables that we do not need and which cause bugs (e.g. in
27418 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27419 # suppresses any "Segmentation fault" message there. '((' could
27420 # trigger a bug in pdksh 5.2.14.
27421 for as_var in BASH_ENV ENV MAIL MAILPATH
27422 do eval test x\${$as_var+set} = xset \
27423 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27436 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27439 # as_fn_error ERROR [LINENO LOG_FD]
27440 # ---------------------------------
27441 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27442 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27443 # script with status $?, using 1 if that was 0.
27446 as_status=$?; test $as_status -eq 0 && as_status=1
27448 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27449 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27451 $as_echo "$as_me: error: $1" >&2
27452 as_fn_exit $as_status
27456 # as_fn_set_status STATUS
27457 # -----------------------
27458 # Set $? to STATUS, without forking.
27459 as_fn_set_status ()
27462 } # as_fn_set_status
27464 # as_fn_exit STATUS
27465 # -----------------
27466 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27470 as_fn_set_status $1
27476 # Portably unset VAR.
27479 { eval $1=; unset $1;}
27481 as_unset=as_fn_unset
27482 # as_fn_append VAR VALUE
27483 # ----------------------
27484 # Append the text in VALUE to the end of the definition contained in VAR. Take
27485 # advantage of any shell optimizations that allow amortized linear growth over
27486 # repeated appends, instead of the typical quadratic growth present in naive
27488 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27489 eval 'as_fn_append ()
27500 # as_fn_arith ARG...
27501 # ------------------
27502 # Perform arithmetic evaluation on the ARGs, and store the result in the
27503 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27504 # must be portable across $(()) and expr.
27505 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27506 eval 'as_fn_arith ()
27513 as_val=`expr "$@" || test $? -eq 1`
27518 if expr a : '\(a\)' >/dev/null 2>&1 &&
27519 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27525 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27526 as_basename=basename
27531 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27537 as_me=`$as_basename -- "$0" ||
27538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27539 X"$0" : 'X\(//\)$' \| \
27540 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27542 sed '/^.*\/\([^/][^/]*\)\/*$/{
27556 # Avoid depending upon Character Ranges.
27557 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27558 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27559 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27560 as_cr_digits='0123456789'
27561 as_cr_alnum=$as_cr_Letters$as_cr_digits
27563 ECHO_C= ECHO_N= ECHO_T=
27564 case `echo -n x` in #(((((
27566 case `echo 'xy\c'` in
27567 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27569 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27576 rm -f conf$$ conf$$.exe conf$$.file
27577 if test -d conf$$.dir; then
27578 rm -f conf$$.dir/conf$$.file
27581 mkdir conf$$.dir 2>/dev/null
27583 if (echo >conf$$.file) 2>/dev/null; then
27584 if ln -s conf$$.file conf$$ 2>/dev/null; then
27586 # ... but there are two gotchas:
27587 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27588 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27589 # In both cases, we have to default to `cp -p'.
27590 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27592 elif ln conf$$.file conf$$ 2>/dev/null; then
27600 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27601 rmdir conf$$.dir 2>/dev/null
27606 # Create "$as_dir" as a directory, including parents if necessary.
27611 -*) as_dir=./$as_dir;;
27613 test -d "$as_dir" || eval $as_mkdir_p || {
27617 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27618 *) as_qdir=$as_dir;;
27620 as_dirs="'$as_qdir' $as_dirs"
27621 as_dir=`$as_dirname -- "$as_dir" ||
27622 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27623 X"$as_dir" : 'X\(//\)[^/]' \| \
27624 X"$as_dir" : 'X\(//\)$' \| \
27625 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27626 $as_echo X"$as_dir" |
27627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27631 /^X\(\/\/\)[^/].*/{
27644 test -d "$as_dir" && break
27646 test -z "$as_dirs" || eval "mkdir $as_dirs"
27647 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27651 if mkdir -p . 2>/dev/null; then
27652 as_mkdir_p='mkdir -p "$as_dir"'
27654 test -d ./-p && rmdir ./-p
27658 if test -x / >/dev/null 2>&1; then
27659 as_test_x='test -x'
27661 if ls -dL / >/dev/null 2>&1; then
27668 if test -d "$1"; then
27674 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27675 ???[sx]*):;;*)false;;esac;fi
27679 as_executable_p=$as_test_x
27681 # Sed expression to map a string onto a valid CPP name.
27682 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27684 # Sed expression to map a string onto a valid variable name.
27685 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27689 ## ----------------------------------- ##
27690 ## Main body of $CONFIG_STATUS script. ##
27691 ## ----------------------------------- ##
27693 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27696 # Save the log message, to keep $0 and so on meaningful, and to
27697 # report actual input values of CONFIG_FILES etc. instead of their
27698 # values after options handling.
27700 This file was extended by $as_me, which was
27701 generated by GNU Autoconf 2.64. Invocation command line was
27703 CONFIG_FILES = $CONFIG_FILES
27704 CONFIG_HEADERS = $CONFIG_HEADERS
27705 CONFIG_LINKS = $CONFIG_LINKS
27706 CONFIG_COMMANDS = $CONFIG_COMMANDS
27709 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27714 case $ac_config_files in *"
27715 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27718 case $ac_config_headers in *"
27719 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27724 # Files that config.status was made for.
27725 config_files="$ac_config_files"
27726 config_headers="$ac_config_headers"
27727 config_commands="$ac_config_commands"
27731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27733 \`$as_me' instantiates files and other configuration actions
27734 from templates according to the current configuration. Unless the files
27735 and actions are specified as TAGs, all are instantiated by default.
27737 Usage: $0 [OPTION]... [TAG]...
27739 -h, --help print this help, then exit
27740 -V, --version print version number and configuration settings, then exit
27741 -q, --quiet, --silent
27742 do not print progress messages
27743 -d, --debug don't remove temporary files
27744 --recheck update $as_me by reconfiguring in the same conditions
27745 --file=FILE[:TEMPLATE]
27746 instantiate the configuration file FILE
27747 --header=FILE[:TEMPLATE]
27748 instantiate the configuration header FILE
27750 Configuration files:
27753 Configuration headers:
27756 Configuration commands:
27759 Report bugs to the package provider."
27762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27765 configured by $0, generated by GNU Autoconf 2.64,
27766 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27768 Copyright (C) 2009 Free Software Foundation, Inc.
27769 This config.status script is free software; the Free Software Foundation
27770 gives unlimited permission to copy, distribute and modify it."
27775 test -n "\$AWK" || AWK=awk
27778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27779 # The default lists apply if the user does not specify any file.
27785 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27786 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27797 # Handling of the options.
27798 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27800 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27801 $as_echo "$ac_cs_version"; exit ;;
27802 --debug | --debu | --deb | --de | --d | -d )
27804 --file | --fil | --fi | --f )
27807 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27809 as_fn_append CONFIG_FILES " '$ac_optarg'"
27810 ac_need_defaults=false;;
27811 --header | --heade | --head | --hea )
27814 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27816 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27817 ac_need_defaults=false;;
27819 # Conflict between --help and --header
27820 as_fn_error "ambiguous option: \`$1'
27821 Try \`$0 --help' for more information.";;
27822 --help | --hel | -h )
27823 $as_echo "$ac_cs_usage"; exit ;;
27824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27825 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27828 # This is an error.
27829 -*) as_fn_error "unrecognized option: \`$1'
27830 Try \`$0 --help' for more information." ;;
27832 *) as_fn_append ac_config_targets " $1"
27833 ac_need_defaults=false ;;
27839 ac_configure_extra_args=
27841 if $ac_cs_silent; then
27843 ac_configure_extra_args="$ac_configure_extra_args --silent"
27847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27848 if \$ac_cs_recheck; then
27849 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27851 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27852 CONFIG_SHELL='$SHELL'
27853 export CONFIG_SHELL
27858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27862 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27863 ## Running $as_me. ##
27869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27879 # Handling of arguments.
27880 for ac_config_target in $ac_config_targets
27882 case $ac_config_target in
27883 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27884 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27885 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27886 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27887 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27888 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27890 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27895 # If the user did not use the arguments to specify the items to instantiate,
27896 # then the envvar interface is used. Set only those that are not.
27897 # We use the long form for the default assignment because of an extremely
27898 # bizarre bug on SunOS 4.1.3.
27899 if $ac_need_defaults; then
27900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27901 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27902 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27905 # Have a temporary directory for convenience. Make it in the build tree
27906 # simply because there is no reason against having it here, and in addition,
27907 # creating and moving files from /tmp can sometimes cause problems.
27908 # Hook for its removal unless debugging.
27909 # Note that there is a small window in which the directory will not be cleaned:
27910 # after its creation but before its name has been assigned to `$tmp'.
27914 trap 'exit_status=$?
27915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27917 trap 'as_fn_exit 1' 1 2 13 15
27919 # Create a (secure) tmp directory for tmp files.
27922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27923 test -n "$tmp" && test -d "$tmp"
27926 tmp=./conf$$-$RANDOM
27927 (umask 077 && mkdir "$tmp")
27928 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27930 # Set up the scripts for CONFIG_FILES section.
27931 # No need to generate them if there are no CONFIG_FILES.
27932 # This happens for instance with `./config.status config.h'.
27933 if test -n "$CONFIG_FILES"; then
27935 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27936 ac_cs_awk_getline=:
27937 ac_cs_awk_pipe_init=
27938 ac_cs_awk_read_file='
27939 while ((getline aline < (F[key])) > 0)
27942 ac_cs_awk_pipe_fini=
27944 ac_cs_awk_getline=false
27945 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27946 ac_cs_awk_read_file='
27948 print "cat " F[key] " &&"
27949 '$ac_cs_awk_pipe_init
27950 # The final `:' finishes the AND list.
27951 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27953 ac_cr=`echo X | tr X '\015'`
27954 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27955 # But we know of no other shell where ac_cr would be empty at this
27956 # point, so we can use a bashism as a fallback.
27957 if test "x$ac_cr" = x; then
27958 eval ac_cr=\$\'\\r\'
27960 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27961 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27964 ac_cs_awk_cr=$ac_cr
27967 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27970 # Create commands to substitute file output variables.
27972 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27973 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27974 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27977 } >conf$$files.sh &&
27978 . ./conf$$files.sh ||
27979 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27980 rm -f conf$$files.sh
27983 echo "cat >conf$$subs.awk <<_ACEOF" &&
27984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27986 } >conf$$subs.sh ||
27987 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27988 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27990 for ac_last_try in false false false false false :; do
27991 . ./conf$$subs.sh ||
27992 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27994 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27995 if test $ac_delim_n = $ac_delim_num; then
27997 elif $ac_last_try; then
27998 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28003 rm -f conf$$subs.sh
28005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28006 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28010 s/^/S["/; s/!.*/"]=/
28020 s/\(.\{148\}\).*/\1/
28022 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28034 s/\(.\{148\}\).*/\1/
28036 s/["\\]/\\&/g; s/^/"/; s/$/"/
28040 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28045 ' <conf$$subs.awk | sed '
28050 ' >>$CONFIG_STATUS || ac_write_fail=1
28051 rm -f conf$$subs.awk
28052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28054 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28055 for (key in S) S_is_set[key] = 1
28057 \$ac_cs_awk_pipe_init
28061 nfields = split(line, field, "@")
28063 len = length(field[1])
28064 for (i = 2; i < nfields; i++) {
28066 keylen = length(key)
28067 if (S_is_set[key]) {
28069 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28070 len += length(value) + length(field[++i])
28075 if (nfields == 3 && !substed) {
28077 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28078 \$ac_cs_awk_read_file
28084 \$ac_cs_awk_pipe_fini
28087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28088 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28089 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28092 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28093 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28098 # trailing colons and then remove the whole line if VPATH becomes empty
28099 # (actually we leave an empty line to preserve line numbers).
28100 if test "x$srcdir" = x.; then
28101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28102 s/:*\$(srcdir):*/:/
28103 s/:*\${srcdir}:*/:/
28105 s/^\([^=]*=[ ]*\):*/\1/
28111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28112 fi # test -n "$CONFIG_FILES"
28114 # Set up the scripts for CONFIG_HEADERS section.
28115 # No need to generate them if there are no CONFIG_HEADERS.
28116 # This happens for instance with `./config.status Makefile'.
28117 if test -n "$CONFIG_HEADERS"; then
28118 cat >"$tmp/defines.awk" <<\_ACAWK ||
28122 # Transform confdefs.h into an awk script `defines.awk', embedded as
28123 # here-document in config.status, that substitutes the proper values into
28124 # config.h.in to produce config.h.
28126 # Create a delimiter string that does not exist in confdefs.h, to ease
28127 # handling of long lines.
28129 for ac_last_try in false false :; do
28130 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28131 if test -z "$ac_t"; then
28133 elif $ac_last_try; then
28134 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28140 # For the awk script, D is an array of macro values keyed by name,
28141 # likewise P contains macro parameters if any. Preserve backslash
28142 # newline sequences.
28144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28146 s/.\{148\}/&'"$ac_delim"'/g
28149 s/^[ ]*#[ ]*define[ ][ ]*/ /
28156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28163 D["\1"]=" \3\\\\\\n"\\/p
28165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28170 s/.\{148\}/&'"$ac_delim"'/g
28175 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28178 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28180 ' <confdefs.h | sed '
28181 s/'"$ac_delim"'/"\\\
28182 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28185 for (key in D) D_is_set[key] = 1
28188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28190 split(line, arg, " ")
28191 if (arg[1] == "#") {
28195 defundef = substr(arg[1], 2)
28198 split(mac1, mac2, "(") #)
28200 prefix = substr(line, 1, index(line, defundef) - 1)
28201 if (D_is_set[macro]) {
28202 # Preserve the white space surrounding the "#".
28203 print prefix "define", macro P[macro] D[macro]
28206 # Replace #undef with comments. This is necessary, for example,
28207 # in the case of _POSIX_SOURCE, which is predefined and required
28208 # on some systems where configure will not decide to define it.
28209 if (defundef == "undef") {
28210 print "/*", prefix defundef, macro, "*/"
28218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28219 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28220 fi # test -n "$CONFIG_HEADERS"
28223 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28228 :[FHLC]) ac_mode=$ac_tag; continue;;
28230 case $ac_mode$ac_tag in
28232 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28233 :[FH]-) ac_tag=-:-;;
28234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28251 -) ac_f="$tmp/stdin";;
28252 *) # Look for the file first in the build tree, then in the source tree
28253 # (if the path is not absolute). The absolute path cannot be DOS-style,
28254 # because $ac_f cannot contain `:'.
28258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28260 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28262 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28263 as_fn_append ac_file_inputs " '$ac_f'"
28266 # Let's still pretend it is `configure' which instantiates (i.e., don't
28267 # use $as_me), people would be surprised to read:
28268 # /* config.h. Generated by config.status. */
28269 configure_input='Generated from '`
28270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28272 if test x"$ac_file" != x-; then
28273 configure_input="$ac_file. $configure_input"
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28275 $as_echo "$as_me: creating $ac_file" >&6;}
28277 # Neutralize special characters interpreted by sed in replacement strings.
28278 case $configure_input in #(
28279 *\&* | *\|* | *\\* )
28280 ac_sed_conf_input=`$as_echo "$configure_input" |
28281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28282 *) ac_sed_conf_input=$configure_input;;
28286 *:-:* | *:-) cat >"$tmp/stdin" \
28287 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28292 ac_dir=`$as_dirname -- "$ac_file" ||
28293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28294 X"$ac_file" : 'X\(//\)[^/]' \| \
28295 X"$ac_file" : 'X\(//\)$' \| \
28296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28297 $as_echo X"$ac_file" |
28298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28302 /^X\(\/\/\)[^/].*/{
28315 as_dir="$ac_dir"; as_fn_mkdir_p
28319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28322 # A ".." for each directory in $ac_dir_suffix.
28323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28324 case $ac_top_builddir_sub in
28325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28329 ac_abs_top_builddir=$ac_pwd
28330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28331 # for backward compatibility:
28332 ac_top_builddir=$ac_top_build_prefix
28335 .) # We are building in place.
28337 ac_top_srcdir=$ac_top_builddir_sub
28338 ac_abs_top_srcdir=$ac_pwd ;;
28339 [\\/]* | ?:[\\/]* ) # Absolute name.
28340 ac_srcdir=$srcdir$ac_dir_suffix;
28341 ac_top_srcdir=$srcdir
28342 ac_abs_top_srcdir=$srcdir ;;
28343 *) # Relative name.
28344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28345 ac_top_srcdir=$ac_top_build_prefix$srcdir
28346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28360 # If the template does not know about datarootdir, expand it.
28361 # FIXME: This hack should be removed a few years after 2.60.
28362 ac_datarootdir_hack=; ac_datarootdir_seen=
28373 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28374 *datarootdir*) ac_datarootdir_seen=yes;;
28375 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28377 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28380 ac_datarootdir_hack='
28381 s&@datadir@&$datadir&g
28382 s&@docdir@&$docdir&g
28383 s&@infodir@&$infodir&g
28384 s&@localedir@&$localedir&g
28385 s&@mandir@&$mandir&g
28386 s&\\\${datarootdir}&$datarootdir&g' ;;
28390 # Neutralize VPATH when `$srcdir' = `.'.
28391 # Shell code in configure.ac might set extrasub.
28392 # FIXME: do we really want to maintain this feature?
28393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28394 ac_sed_extra="$ac_vpsub
28397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28400 s|@configure_input@|$ac_sed_conf_input|;t t
28401 s&@top_builddir@&$ac_top_builddir_sub&;t t
28402 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28403 s&@srcdir@&$ac_srcdir&;t t
28404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28405 s&@top_srcdir@&$ac_top_srcdir&;t t
28406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28407 s&@builddir@&$ac_builddir&;t t
28408 s&@abs_builddir@&$ac_abs_builddir&;t t
28409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28410 $ac_datarootdir_hack
28412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28413 if $ac_cs_awk_getline; then
28414 $AWK -f "$tmp/subs.awk"
28416 $AWK -f "$tmp/subs.awk" | $SHELL
28418 || as_fn_error "could not create $ac_file" "$LINENO" 5
28420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28421 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28422 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28424 which seems to be undefined. Please make sure it is defined." >&5
28425 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28426 which seems to be undefined. Please make sure it is defined." >&2;}
28430 -) cat "$tmp/out" && rm -f "$tmp/out";;
28431 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28433 || as_fn_error "could not create $ac_file" "$LINENO" 5
28439 if test x"$ac_file" != x-; then
28441 $as_echo "/* $configure_input */" \
28442 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28443 } >"$tmp/config.h" \
28444 || as_fn_error "could not create $ac_file" "$LINENO" 5
28445 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28447 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28450 mv "$tmp/config.h" "$ac_file" \
28451 || as_fn_error "could not create $ac_file" "$LINENO" 5
28454 $as_echo "/* $configure_input */" \
28455 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28456 || as_fn_error "could not create -" "$LINENO" 5
28460 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28461 $as_echo "$as_me: executing $ac_file commands" >&6;}
28466 case $ac_file$ac_mode in
28467 "as":F) chmod +x as ;;
28468 "collect-ld":F) chmod +x collect-ld ;;
28469 "nm":F) chmod +x nm ;;
28471 case ${CONFIG_HEADERS} in
28472 *auto-host.h:config.in*)
28475 # Make sure all the subdirs exist.
28476 for d in $subdirs doc build common c-family
28478 test -d $d || mkdir $d
28488 ac_clean_files=$ac_clean_files_save
28490 test $ac_write_fail = 0 ||
28491 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28494 # configure is writing to config.log, and then calls config.status.
28495 # config.status does its own redirection, appending to config.log.
28496 # Unfortunately, on DOS this fails, as config.log is still kept open
28497 # by configure, so config.status won't be able to write to it; its
28498 # output is simply discarded. So we exec the FD to /dev/null,
28499 # effectively closing config.log, so it can be properly (re)opened and
28500 # appended to by config.status. When coming back to configure, we
28501 # need to make the FD available again.
28502 if test "$no_create" != yes; then
28504 ac_config_status_args=
28505 test "$silent" = yes &&
28506 ac_config_status_args="$ac_config_status_args --quiet"
28508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28511 # would make configure fail if this is the last instruction.
28512 $ac_cs_success || as_fn_exit $?
28514 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28516 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}