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
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
682 ORIGINAL_NM_FOR_TARGET
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 ORIGINAL_AS_FOR_TARGET
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
766 ENABLE_BUILD_WITH_CXX
769 valgrind_path_defines
841 program_transform_name
852 ac_subst_files='option_includes
855 enable_option_checking
860 enable_generated_files_in_srcdir
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
891 enable_initfini_array
892 enable_sjlj_exceptions
893 with_system_libunwind
895 enable_leading_mingw64_underscores
898 enable_win32_registry
904 enable_gnu_indirect_function
906 enable_gnu_unique_object
907 enable_linker_build_id
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
916 ac_precious_vars='build_alias
937 # Initialize some variables set by options.
939 ac_init_version=false
940 ac_unrecognized_opts=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name=s,x,x,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE}'
976 infodir='${datarootdir}/info'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1053 eval enable_$ac_useropt=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1243 -site=* | --site=* | --sit=*)
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1283 eval with_$ac_useropt=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1299 eval with_$ac_useropt=no ;;
1302 # Obsolete; use --with-x.
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) as_fn_error "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' | [0-9]* | *[!_$as_cr_alnum]* )
1328 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error "missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1352 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 # Check all directory arguments for consistency.
1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val=\$$ac_var
1364 # Remove trailing slashes.
1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\$ac_val;;
1370 # Be sure to have absolute directory names.
1372 [\\/$]* | ?:[\\/]* ) continue;;
1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1383 target=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399 test "$silent" = yes && exec 6>/dev/null
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 as_fn_error "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 as_fn_error "pwd does not report name of working directory"
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1442 ac_srcdir_defaulted=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 --target=TARGET configure for building compilers for TARGET [HOST]
1545 if test -n "$ac_init_help"; then
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-generated-files-in-srcdir
1554 put copies of generated files in source dir
1555 intended for creating source tarballs for users
1556 without texinfo bison or flex.
1557 --disable-largefile omit support for large files
1558 --enable-werror-always enable -Werror despite compiler version
1559 --enable-checking=LIST
1560 enable expensive run-time checks. With LIST,
1561 enable only specific categories of checks.
1562 Categories are: yes,no,all,none,release.
1563 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1564 rtlflag,rtl,runtime,tree,valgrind,types.
1565 --enable-coverage=LEVEL
1566 enable compiler's code coverage collection.
1567 Use to measure compiler performance and locate
1568 unused parts of the compiler. With LEVEL, specify
1569 optimization. Values are opt, noopt,
1571 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1572 --enable-build-with-cxx build with C++ compiler instead of C compiler
1573 --enable-multilib enable library support for multiple ABIs
1574 --enable-__cxa_atexit enable __cxa_atexit for C++
1575 --enable-decimal-float={no,yes,bid,dpd}
1576 enable decimal float extension to C. Selecting 'bid'
1577 or 'dpd' choses which decimal floating point format
1579 --enable-fixed-point enable fixed-point arithmetic extension to C
1580 --enable-threads enable thread usage for target GCC
1581 --enable-threads=LIB use LIB thread package for target GCC
1582 --enable-tls enable or disable generation of tls code
1583 overriding the assembler check for tls support
1584 --enable-objc-gc enable the use of Boehm's garbage collector with
1585 the GNU Objective-C runtime
1586 --disable-shared don't provide a shared libgcc
1587 --enable-languages=LIST specify which front-ends to build
1588 --disable-rpath do not hardcode runtime library paths
1589 --enable-initfini-array use .init_array/.fini_array sections
1590 --enable-sjlj-exceptions
1591 arrange to use setjmp/longjmp exception handling
1592 --enable-secureplt enable -msecure-plt by default for PowerPC
1593 --enable-leading-mingw64-underscores
1594 Enable leading underscores on 64 bit mingw targets
1595 --enable-cld enable -mcld by default for 32bit x86
1596 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1597 --disable-win32-registry
1598 disable lookup of installation paths in the
1599 Registry on Windows hosts
1600 --enable-win32-registry enable registry lookup (default)
1601 --enable-win32-registry=KEY
1602 use KEY instead of GCC version as the last portion
1604 --enable-shared[=PKGS] build shared libraries [default=yes]
1605 --enable-static[=PKGS] build static libraries [default=yes]
1606 --enable-fast-install[=PKGS]
1607 optimize for fast installation [default=yes]
1608 --disable-libtool-lock avoid locking (might break parallel builds)
1609 --enable-gnu-indirect-function
1610 enable the use of the @gnu_indirect_function to
1612 --enable-comdat enable COMDAT group support
1613 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1615 --enable-linker-build-id
1616 compiler will always pass --build-id to linker
1617 --enable-maintainer-mode
1618 enable make rules and dependencies not useful
1619 (and sometimes confusing) to the casual installer
1620 --enable-version-specific-runtime-libs
1621 specify that runtime libraries should be
1622 installed in a compiler-specific directory
1623 --enable-plugin enable plugin support
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628 --with-build-libsubdir=DIR Directory where to find libraries for build system
1629 --with-local-prefix=DIR specifies directory to put local include
1630 --with-gxx-include-dir=DIR
1631 specifies directory to put g++ header files
1632 --with-cpp-install-dir=DIR
1633 install the user visible C preprocessor in DIR
1634 (relative to PREFIX) as well as PREFIX/bin
1635 --with-gnu-ld arrange to work with GNU ld.
1636 --with-ld arrange to use the specified ld (full pathname)
1637 --with-demangler-in-ld try to use demangler in GNU ld.
1638 --with-gnu-as arrange to work with GNU as
1639 --with-as arrange to use the specified as (full pathname)
1640 --with-stabs arrange to use stabs instead of host debug format
1641 --with-dwarf2 force the default debug format to be DWARF 2
1642 --with-build-sysroot=sysroot
1643 use sysroot as the system root during the build
1644 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1645 --with-specs=SPECS add SPECS to driver command-line processing
1646 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1647 --with-bugurl=URL Direct users to URL to report a bug
1648 --with-multilib-list Select multilibs (SH only)
1649 --with-gnu-ld assume the C compiler uses GNU ld default=no
1650 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1651 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1652 --with-system-libunwind use installed libunwind
1653 --with-pic try to use only PIC/non-PIC objects [default=use
1655 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1656 --with-plugin-ld=[ARG] specify the plugin linker
1657 --with-long-double-128 Use 128-bit long double by default.
1658 --with-gc={page,zone} choose the garbage collection mechanism to use
1660 --with-system-zlib use installed libz
1661 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1663 Some influential environment variables:
1664 CC C compiler command
1665 CFLAGS C compiler flags
1666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667 nonstandard directory <lib dir>
1668 LIBS libraries to pass to the linker, e.g. -l<library>
1669 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1670 you have headers in a nonstandard directory <include dir>
1671 CXX C++ compiler command
1672 CXXFLAGS C++ compiler flags
1674 CXXCPP C++ preprocessor
1675 GMPLIBS How to link GMP
1676 GMPINC How to find GMP include files
1677 PPLLIBS How to link PPL
1678 PPLINC How to find PPL include files
1679 CLOOGLIBS How to link CLOOG
1680 CLOOGINC How to find CLOOG include files
1682 Use these variables to override the choices made by `configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1685 Report bugs to the package provider.
1690 if test "$ac_init_help" = "recursive"; then
1691 # If there are subdirs, report their specific --help.
1692 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693 test -d "$ac_dir" ||
1694 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702 # A ".." for each directory in $ac_dir_suffix.
1703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704 case $ac_top_builddir_sub in
1705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709 ac_abs_top_builddir=$ac_pwd
1710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711 # for backward compatibility:
1712 ac_top_builddir=$ac_top_build_prefix
1715 .) # We are building in place.
1717 ac_top_srcdir=$ac_top_builddir_sub
1718 ac_abs_top_srcdir=$ac_pwd ;;
1719 [\\/]* | ?:[\\/]* ) # Absolute name.
1720 ac_srcdir=$srcdir$ac_dir_suffix;
1721 ac_top_srcdir=$srcdir
1722 ac_abs_top_srcdir=$srcdir ;;
1724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725 ac_top_srcdir=$ac_top_build_prefix$srcdir
1726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1730 cd "$ac_dir" || { ac_status=$?; continue; }
1731 # Check for guested configure.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1739 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1749 generated by GNU Autoconf 2.64
1751 Copyright (C) 2009 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 } # ac_fn_c_try_compile
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 } # ac_fn_cxx_try_compile
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } >/dev/null && {
1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1880 ac_fn_c_check_header_mongrel ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1904 ac_header_compiler=no
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1920 ac_header_preproc=no
1922 rm -f conftest.err conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950 $as_echo_n "(cached) " >&6
1952 eval "$3=\$ac_header_compiler"
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 } # ac_fn_c_check_header_mongrel
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_link"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>&5
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980 { { case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_try") 2>&5
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; }; }; then :
1992 $as_echo "$as_me: program exited with status $ac_status" >&5
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 ac_retval=$ac_status
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2021 if ac_fn_c_try_compile "$LINENO"; then :
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036 # --------------------------------------------
2037 # Tries to find the compile-time value of EXPR in a program that includes
2038 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2040 ac_fn_c_compute_int ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if test "$cross_compiling" = yes; then
2044 # Depending upon the size, compute the lo and hi bounds.
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) >= 0)];
2058 if ac_fn_c_try_compile "$LINENO"; then :
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=$ac_mid; break
2077 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2078 if test $ac_lo -le $ac_mid; then
2082 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2093 static int test_array [1 - 2 * !(($2) < 0)];
2100 if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_lo=$ac_mid; break
2119 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120 if test $ac_mid -le $ac_hi; then
2124 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 if ac_fn_c_try_compile "$LINENO"; then :
2153 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2173 FILE *f = fopen ("conftest.val", "w");
2178 long int i = longval ();
2181 fprintf (f, "%ld", i);
2185 unsigned long int i = ulongval ();
2188 fprintf (f, "%lu", i);
2190 /* Do not output a trailing newline, as this causes \r\n confusion
2191 on some platforms. */
2192 return ferror (f) || fclose (f) != 0;
2198 if ac_fn_c_try_run "$LINENO"; then :
2199 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204 conftest.$ac_objext conftest.beam conftest.$ac_ext
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 } # ac_fn_c_compute_int
2213 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2214 # -------------------------------------------
2215 # Tests whether TYPE exists after having included INCLUDES, setting cache
2216 # variable VAR accordingly.
2217 ac_fn_c_check_type ()
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223 $as_echo_n "(cached) " >&6
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2251 if ac_fn_c_try_compile "$LINENO"; then :
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 } # ac_fn_c_check_type
2267 # ac_fn_c_find_intX_t LINENO BITS VAR
2268 # -----------------------------------
2269 # Finds a signed integer type with width BITS, setting cache variable VAR
2271 ac_fn_c_find_intX_t ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2275 $as_echo_n "checking for int$2_t... " >&6; }
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2280 for ac_type in int$2_t 'int' 'long int' \
2281 'long long int' 'short int' 'signed char'; do
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 $ac_includes_default
2288 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2302 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2303 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2310 if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$3=\$ac_type" ;;
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 if test "x$as_val" = x""no; then :
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2336 } # ac_fn_c_find_intX_t
2338 # ac_fn_c_try_link LINENO
2339 # -----------------------
2340 # Try to link conftest.$ac_ext, and return whether this succeeded.
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 rm -f conftest.$ac_objext conftest$ac_exeext
2345 if { { ac_try="$ac_link"
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link") 2>conftest.err
2354 if test -s conftest.err; then
2355 grep -v '^ *+' conftest.err >conftest.er1
2356 cat conftest.er1 >&5
2357 mv -f conftest.er1 conftest.err
2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360 test $ac_status = 0; } && {
2361 test -z "$ac_c_werror_flag" ||
2362 test ! -s conftest.err
2363 } && test -s conftest$ac_exeext && {
2364 test "$cross_compiling" = yes ||
2365 $as_test_x conftest$ac_exeext
2369 $as_echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2374 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376 # interfere with the next link command; also delete a directory that is
2377 # left behind by Apple's compiler. We do this before executing the actions.
2378 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2379 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2382 } # ac_fn_c_try_link
2384 # ac_fn_c_find_uintX_t LINENO BITS VAR
2385 # ------------------------------------
2386 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2388 ac_fn_c_find_uintX_t ()
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2392 $as_echo_n "checking for uint$2_t... " >&6; }
2393 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2394 $as_echo_n "(cached) " >&6
2397 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2398 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2401 $ac_includes_default
2405 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2412 if ac_fn_c_try_compile "$LINENO"; then :
2417 eval "$3=\$ac_type" ;;
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 if test "x$as_val" = x""no; then :
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2434 } # ac_fn_c_find_uintX_t
2436 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2437 # ----------------------------------------------
2438 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2439 ac_fn_c_check_header_preproc ()
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2451 if ac_fn_c_try_cpp "$LINENO"; then :
2456 rm -f conftest.err conftest.$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 } # ac_fn_c_check_header_preproc
2465 # ac_fn_cxx_try_cpp LINENO
2466 # ------------------------
2467 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2468 ac_fn_cxx_try_cpp ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 if { { ac_try="$ac_cpp conftest.$ac_ext"
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2477 $as_echo "$ac_try_echo"; } >&5
2478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2480 if test -s conftest.err; then
2481 grep -v '^ *+' conftest.err >conftest.er1
2482 cat conftest.er1 >&5
2483 mv -f conftest.er1 conftest.err
2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2486 test $ac_status = 0; } >/dev/null && {
2487 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2488 test ! -s conftest.err
2492 $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500 } # ac_fn_cxx_try_cpp
2502 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2503 # ------------------------------------------------
2504 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2505 ac_fn_cxx_check_header_preproc ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509 $as_echo_n "checking for $2... " >&6; }
2510 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2511 $as_echo_n "(cached) " >&6
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2517 if ac_fn_cxx_try_cpp "$LINENO"; then :
2522 rm -f conftest.err conftest.$ac_ext
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2529 } # ac_fn_cxx_check_header_preproc
2531 # ac_fn_c_check_func LINENO FUNC VAR
2532 # ----------------------------------
2533 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2534 ac_fn_c_check_func ()
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538 $as_echo_n "checking for $2... " >&6; }
2539 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2540 $as_echo_n "(cached) " >&6
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2544 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2546 #define $2 innocuous_$2
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char $2 (); below.
2550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2551 <limits.h> exists even on freestanding compilers. */
2554 # include <limits.h>
2556 # include <assert.h>
2561 /* Override any GCC internal prototype to avoid an error.
2562 Use char because int might match the return type of a GCC
2563 builtin and then its argument prototype would still apply. */
2568 /* The GNU C library defines this for functions which it implements
2569 to always fail with ENOSYS. Some functions are actually named
2570 something starting with __ and the normal name is an alias. */
2571 #if defined __stub_$2 || defined __stub___$2
2583 if ac_fn_c_try_link "$LINENO"; then :
2588 rm -f core conftest.err conftest.$ac_objext \
2589 conftest$ac_exeext conftest.$ac_ext
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593 $as_echo "$ac_res" >&6; }
2594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596 } # ac_fn_c_check_func
2598 # ac_fn_cxx_try_link LINENO
2599 # -------------------------
2600 # Try to link conftest.$ac_ext, and return whether this succeeded.
2601 ac_fn_cxx_try_link ()
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 rm -f conftest.$ac_objext conftest$ac_exeext
2605 if { { ac_try="$ac_link"
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612 (eval "$ac_link") 2>conftest.err
2614 if test -s conftest.err; then
2615 grep -v '^ *+' conftest.err >conftest.er1
2616 cat conftest.er1 >&5
2617 mv -f conftest.er1 conftest.err
2619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620 test $ac_status = 0; } && {
2621 test -z "$ac_cxx_werror_flag" ||
2622 test ! -s conftest.err
2623 } && test -s conftest$ac_exeext && {
2624 test "$cross_compiling" = yes ||
2625 $as_test_x conftest$ac_exeext
2629 $as_echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2636 # interfere with the next link command; also delete a directory that is
2637 # left behind by Apple's compiler. We do this before executing the actions.
2638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2642 } # ac_fn_cxx_try_link
2643 cat >config.log <<_ACEOF
2644 This file contains any messages produced by compilers while
2645 running configure, to aid debugging if configure makes a mistake.
2647 It was created by $as_me, which was
2648 generated by GNU Autoconf 2.64. Invocation command line was
2660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2667 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2669 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2670 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2672 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2673 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2674 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2675 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 $as_echo "PATH: $as_dir"
2700 # Keep a trace of the command line.
2701 # Strip out --no-create and --no-recursion so they do not pile up.
2702 # Strip out --silent because we don't want to record it for future runs.
2703 # Also quote any args containing shell meta-characters.
2704 # Make two passes to allow for proper duplicate-argument suppression.
2708 ac_must_keep_next=false
2714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2716 | -silent | --silent | --silen | --sile | --sil)
2719 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2722 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2724 as_fn_append ac_configure_args1 " '$ac_arg'"
2725 if test $ac_must_keep_next = true; then
2726 ac_must_keep_next=false # Got value, back to normal.
2729 *=* | --config-cache | -C | -disable-* | --disable-* \
2730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2732 | -with-* | --with-* | -without-* | --without-* | --x)
2733 case "$ac_configure_args0 " in
2734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2737 -* ) ac_must_keep_next=true ;;
2740 as_fn_append ac_configure_args " '$ac_arg'"
2745 { ac_configure_args0=; unset ac_configure_args0;}
2746 { ac_configure_args1=; unset ac_configure_args1;}
2748 # When interrupted or exit'd, cleanup temporary files, and complete
2749 # config.log. We remove comments because anyway the quotes in there
2750 # would cause problems or look ugly.
2751 # WARNING: Use '\'' to represent an apostrophe within the trap.
2752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2753 trap 'exit_status=$?
2754 # Save into config.log some information that might help in debugging.
2759 ## ---------------- ##
2760 ## Cache variables. ##
2761 ## ---------------- ##
2764 # The following way of writing the cache mishandles newlines in values,
2766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2767 eval ac_val=\$$ac_var
2771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2775 _ | IFS | as_nl) ;; #(
2776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2777 *) { eval $ac_var=; unset $ac_var;} ;;
2782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2783 *${as_nl}ac_space=\ *)
2785 "s/'\''/'\''\\\\'\'''\''/g;
2786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2797 ## ----------------- ##
2798 ## Output variables. ##
2799 ## ----------------- ##
2802 for ac_var in $ac_subst_vars
2804 eval ac_val=\$$ac_var
2806 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2808 $as_echo "$ac_var='\''$ac_val'\''"
2812 if test -n "$ac_subst_files"; then
2814 ## ------------------- ##
2815 ## File substitutions. ##
2816 ## ------------------- ##
2819 for ac_var in $ac_subst_files
2821 eval ac_val=\$$ac_var
2823 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2825 $as_echo "$ac_var='\''$ac_val'\''"
2830 if test -s confdefs.h; then
2840 test "$ac_signal" != 0 &&
2841 $as_echo "$as_me: caught signal $ac_signal"
2842 $as_echo "$as_me: exit $exit_status"
2844 rm -f core *.core core.conftest.* &&
2845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2848 for ac_signal in 1 2 13 15; do
2849 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2854 rm -f -r conftest* confdefs.h
2856 $as_echo "/* confdefs.h */" > confdefs.h
2858 # Predefined preprocessor variables.
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_NAME "$PACKAGE_NAME"
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_STRING "$PACKAGE_STRING"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_URL "$PACKAGE_URL"
2885 # Let the site file select an alternate cache file if it wants to.
2886 # Prefer an explicitly selected file to automatically selected ones.
2889 if test -n "$CONFIG_SITE"; then
2890 ac_site_file1=$CONFIG_SITE
2891 elif test "x$prefix" != xNONE; then
2892 ac_site_file1=$prefix/share/config.site
2893 ac_site_file2=$prefix/etc/config.site
2895 ac_site_file1=$ac_default_prefix/share/config.site
2896 ac_site_file2=$ac_default_prefix/etc/config.site
2898 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2900 test "x$ac_site_file" = xNONE && continue
2901 if test -r "$ac_site_file"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2903 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2904 sed 's/^/| /' "$ac_site_file" >&5
2909 if test -r "$cache_file"; then
2910 # Some versions of bash will fail to source /dev/null (special
2911 # files actually), so we avoid doing that.
2912 if test -f "$cache_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2914 $as_echo "$as_me: loading cache $cache_file" >&6;}
2916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2917 *) . "./$cache_file";;
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2922 $as_echo "$as_me: creating cache $cache_file" >&6;}
2926 # Check that the precious variables saved in the cache have kept the same
2928 ac_cache_corrupted=false
2929 for ac_var in $ac_precious_vars; do
2930 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2931 eval ac_new_set=\$ac_env_${ac_var}_set
2932 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2933 eval ac_new_val=\$ac_env_${ac_var}_value
2934 case $ac_old_set,$ac_new_set in
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2937 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2938 ac_cache_corrupted=: ;;
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2942 ac_cache_corrupted=: ;;
2945 if test "x$ac_old_val" != "x$ac_new_val"; then
2946 # differences in whitespace do not lead to failure.
2947 ac_old_val_w=`echo x $ac_old_val`
2948 ac_new_val_w=`echo x $ac_new_val`
2949 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2951 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2952 ac_cache_corrupted=:
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2955 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2956 eval $ac_var=\$ac_old_val
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2959 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2961 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2964 # Pass precious variables to config.status.
2965 if test "$ac_new_set" = set; then
2967 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2968 *) ac_arg=$ac_var=$ac_new_val ;;
2970 case " $ac_configure_args " in
2971 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2972 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2976 if $ac_cache_corrupted; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2980 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2981 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2983 ## -------------------- ##
2984 ## Main body of script. ##
2985 ## -------------------- ##
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3001 gcc_version=`cat $srcdir/BASE-VER`
3003 # Determine the host, build, and target systems
3005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3006 for ac_t in install-sh install.sh shtool; do
3007 if test -f "$ac_dir/$ac_t"; then
3009 ac_install_sh="$ac_aux_dir/$ac_t -c"
3014 if test -z "$ac_aux_dir"; then
3015 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3018 # These three variables are undocumented and unsupported,
3019 # and are intended to be withdrawn in a future Autoconf release.
3020 # They can cause serious problems if a builder's source tree is in a directory
3021 # whose full name contains unusual characters.
3022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3027 # Make sure we can run config.sub.
3028 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3029 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3032 $as_echo_n "checking build system type... " >&6; }
3033 if test "${ac_cv_build+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3036 ac_build_alias=$build_alias
3037 test "x$ac_build_alias" = x &&
3038 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3039 test "x$ac_build_alias" = x &&
3040 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3041 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3042 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3046 $as_echo "$ac_cv_build" >&6; }
3047 case $ac_cv_build in
3049 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3052 ac_save_IFS=$IFS; IFS='-'
3058 # Remember, the first character of IFS is used to create $*,
3059 # except with old shells:
3062 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3066 $as_echo_n "checking host system type... " >&6; }
3067 if test "${ac_cv_host+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3070 if test "x$host_alias" = x; then
3071 ac_cv_host=$ac_cv_build
3073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3074 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3079 $as_echo "$ac_cv_host" >&6; }
3082 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3085 ac_save_IFS=$IFS; IFS='-'
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3099 $as_echo_n "checking target system type... " >&6; }
3100 if test "${ac_cv_target+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 if test "x$target_alias" = x; then
3104 ac_cv_target=$ac_cv_host
3106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3107 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3112 $as_echo "$ac_cv_target" >&6; }
3113 case $ac_cv_target in
3115 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3117 target=$ac_cv_target
3118 ac_save_IFS=$IFS; IFS='-'
3124 # Remember, the first character of IFS is used to create $*,
3125 # except with old shells:
3128 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3131 # The aliases save the names the user supplied, while $host etc.
3132 # will get canonicalized.
3133 test -n "$target_alias" &&
3134 test "$program_prefix$program_suffix$program_transform_name" = \
3136 program_prefix=${target_alias}-
3138 # Determine the noncanonical target name, for directory use.
3139 case ${build_alias} in
3140 "") build_noncanonical=${build} ;;
3141 *) build_noncanonical=${build_alias} ;;
3144 case ${host_alias} in
3145 "") host_noncanonical=${build_noncanonical} ;;
3146 *) host_noncanonical=${host_alias} ;;
3149 case ${target_alias} in
3150 "") target_noncanonical=${host_noncanonical} ;;
3151 *) target_noncanonical=${target_alias} ;;
3157 # Determine the target- and build-specific subdirectories
3159 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3160 # have matching libraries, they should use host libraries: Makefile.tpl
3161 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3162 # However, they still use the build modules, because the corresponding
3163 # host modules (e.g. bison) are only built for the host when bootstrap
3165 # - build_subdir is where we find build modules, and never changes.
3166 # - build_libsubdir is where we find build libraries, and can be overridden.
3168 # Prefix 'build-' so this never conflicts with target_subdir.
3169 build_subdir="build-${build_noncanonical}"
3171 # Check whether --with-build-libsubdir was given.
3172 if test "${with_build_libsubdir+set}" = set; then :
3173 withval=$with_build_libsubdir; build_libsubdir="$withval"
3175 build_libsubdir="$build_subdir"
3178 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3179 if ( test $srcdir = . && test -d gcc ) \
3180 || test -d $srcdir/../host-${host_noncanonical}; then
3181 host_subdir="host-${host_noncanonical}"
3186 target_subdir=${target_noncanonical}
3189 # Set program_transform_name
3190 test "$program_prefix" != NONE &&
3191 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3192 # Use a double $ so make ignores it.
3193 test "$program_suffix" != NONE &&
3194 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3195 # Double any \ or $.
3196 # By default was `s,x,x', remove it if useless.
3197 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3198 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3201 # Check for bogus environment variables.
3202 # Test if LIBRARY_PATH contains the notation for the current directory
3203 # since this would lead to problems installing/building glibc.
3204 # LIBRARY_PATH contains the current directory if one of the following
3206 # - one of the terminals (":" and ";") is the first or last sign
3207 # - two terminals occur directly after each other
3208 # - the path contains an element with a dot in it
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3210 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3211 case ${LIBRARY_PATH} in
3212 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3213 library_path_setting="contains current directory"
3216 library_path_setting="ok"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3220 $as_echo "$library_path_setting" >&6; }
3221 if test "$library_path_setting" != "ok"; then
3223 *** LIBRARY_PATH shouldn't contain the current directory when
3224 *** building gcc. Please change the environment variable
3225 *** and run configure again." "$LINENO" 5
3228 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3229 # since this would lead to problems installing/building glibc.
3230 # GCC_EXEC_PREFIX contains the current directory if one of the following
3232 # - one of the terminals (":" and ";") is the first or last sign
3233 # - two terminals occur directly after each other
3234 # - the path contains an element with a dot in it
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3236 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3237 case ${GCC_EXEC_PREFIX} in
3238 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3239 gcc_exec_prefix_setting="contains current directory"
3242 gcc_exec_prefix_setting="ok"
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3246 $as_echo "$gcc_exec_prefix_setting" >&6; }
3247 if test "$gcc_exec_prefix_setting" != "ok"; then
3249 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3250 *** building gcc. Please change the environment variable
3251 *** and run configure again." "$LINENO" 5
3258 # Specify the local prefix
3261 # Check whether --with-local-prefix was given.
3262 if test "${with_local_prefix+set}" = set; then :
3263 withval=$with_local_prefix; case "${withval}" in
3264 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3266 *) local_prefix=$with_local_prefix ;;
3271 # Default local prefix if it is empty
3272 if test x$local_prefix = x; then
3273 local_prefix=/usr/local
3276 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3277 # passed in by the toplevel make and thus we'd get different behavior
3278 # depending on where we built the sources.
3279 gcc_gxx_include_dir=
3280 # Specify the g++ header file directory
3282 # Check whether --with-gxx-include-dir was given.
3283 if test "${with_gxx_include_dir+set}" = set; then :
3284 withval=$with_gxx_include_dir; case "${withval}" in
3285 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3287 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3292 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3293 if test x${gcc_gxx_include_dir} = x; then
3294 if test x${enable_version_specific_runtime_libs} = xyes; then
3295 gcc_gxx_include_dir='${libsubdir}/include/c++'
3297 libstdcxx_incdir='include/c++/$(version)'
3298 if test x$host != x$target; then
3299 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3301 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3306 # Check whether --with-cpp_install_dir was given.
3307 if test "${with_cpp_install_dir+set}" = set; then :
3308 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3309 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3310 elif test x$withval != xno; then
3311 cpp_install_dir=$withval
3316 # We would like to our source tree to be readonly. However when releases or
3317 # pre-releases are generated, the flex/bison generated files as well as the
3318 # various formats of manuals need to be included along with the rest of the
3319 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3323 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3324 # Check whether --enable-generated-files-in-srcdir was given.
3325 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3326 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3328 generated_files_in_srcdir=no
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3333 $as_echo "$generated_files_in_srcdir" >&6; }
3335 if test "$generated_files_in_srcdir" = "yes"; then
3342 # -------------------
3343 # Find default linker
3344 # -------------------
3348 # Check whether --with-gnu-ld was given.
3349 if test "${with_gnu_ld+set}" = set; then :
3350 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3356 # With pre-defined ld
3358 # Check whether --with-ld was given.
3359 if test "${with_ld+set}" = set; then :
3360 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3363 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3364 if test ! -x "$DEFAULT_LINKER"; then
3365 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3366 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3370 cat >>confdefs.h <<_ACEOF
3371 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3376 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3378 cat >>confdefs.h <<_ACEOF
3379 #define HAVE_GNU_LD $gnu_ld
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3384 $as_echo_n "checking whether a default linker was specified... " >&6; }
3385 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3386 if test x"$gnu_ld_flag" = x"no"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3388 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3391 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3398 # With demangler in GNU ld
3400 # Check whether --with-demangler-in-ld was given.
3401 if test "${with_demangler_in_ld+set}" = set; then :
3402 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3408 # ----------------------
3409 # Find default assembler
3410 # ----------------------
3414 # Check whether --with-gnu-as was given.
3415 if test "${with_gnu_as+set}" = set; then :
3416 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3423 # Check whether --with-as was given.
3424 if test "${with_as+set}" = set; then :
3425 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3428 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3429 if test ! -x "$DEFAULT_ASSEMBLER"; then
3430 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3431 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3435 cat >>confdefs.h <<_ACEOF
3436 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3441 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3443 cat >>confdefs.h <<_ACEOF
3444 #define HAVE_GNU_AS $gnu_as
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3449 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3450 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3451 if test x"$gas_flag" = x"no"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3453 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3456 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3467 # If a non-executable a.out is present (e.g. created by GNU as above even if
3468 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3469 # file, even when creating an executable, so an execution test fails.
3470 # Remove possible default executable files to avoid this.
3472 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3473 # Autoconf includes it.
3474 rm -f a.out a.exe b.out
3476 # Find the native compiler
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if test "${ac_cv_prog_CC+set}" = set; then :
3488 $as_echo_n "(cached) " >&6
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3521 if test -z "$ac_cv_prog_CC"; then
3523 # Extract the first word of "gcc", so it can be a program name with args.
3524 set dummy gcc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3530 if test -n "$ac_ct_CC"; then
3531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_ac_ct_CC="gcc"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551 if test -n "$ac_ct_CC"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3553 $as_echo "$ac_ct_CC" >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3559 if test "x$ac_ct_CC" = x; then
3562 case $cross_compiling:$ac_tool_warned in
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 ac_tool_warned=yes ;;
3574 if test -z "$CC"; then
3575 if test -n "$ac_tool_prefix"; then
3576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}cc; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_CC+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -n "$CC"; then
3584 ac_cv_prog_CC="$CC" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_CC="${ac_tool_prefix}cc"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3615 if test -z "$CC"; then
3616 # Extract the first word of "cc", so it can be a program name with args.
3617 set dummy cc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3635 ac_prog_rejected=yes
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 if test $ac_prog_rejected = yes; then
3647 # We found a bogon in the path, so make sure we never use it.
3648 set dummy $ac_cv_prog_CC
3650 if test $# != 0; then
3651 # We chose a different compiler from the bogus one.
3652 # However, it has the same basename, so the bogon will be chosen
3653 # first if we set CC to just the basename; use the full file name.
3655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3671 if test -z "$CC"; then
3672 if test -n "$ac_tool_prefix"; then
3673 for ac_prog in cl.exe
3675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3712 test -n "$CC" && break
3715 if test -z "$CC"; then
3717 for ac_prog in cl.exe
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$ac_ct_CC"; then
3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_CC="$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3747 if test -n "$ac_ct_CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3749 $as_echo "$ac_ct_CC" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3756 test -n "$ac_ct_CC" && break
3759 if test "x$ac_ct_CC" = x; then
3762 case $cross_compiling:$ac_tool_warned in
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766 ac_tool_warned=yes ;;
3775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error "no acceptable C compiler found in \$PATH
3778 See \`config.log' for more details." "$LINENO" 5; }
3780 # Provide some information about the compiler.
3781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3784 for ac_option in --version -v -V -qversion; do
3785 { { ac_try="$ac_compiler $ac_option >&5"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3794 if test -s conftest.err; then
3796 ... rest of stderr output deleted ...
3797 10q' conftest.err >conftest.er1
3798 cat conftest.er1 >&5
3799 rm -f conftest.er1 conftest.err
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3816 ac_clean_files_save=$ac_clean_files
3817 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3818 # Try to create an executable without -o first, disregard a.out.
3819 # It will help us diagnose broken compilers, and finding out an intuition
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3822 $as_echo_n "checking for C compiler default output file name... " >&6; }
3823 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3825 # The possible output files:
3826 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3829 for ac_file in $ac_files
3832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3833 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3838 if { { ac_try="$ac_link_default"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_link_default") 2>&5
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848 test $ac_status = 0; }; then :
3849 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3850 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3851 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3852 # so that the user can short-circuit this test for compilers unknown to
3854 for ac_file in $ac_files ''
3856 test -f "$ac_file" || continue
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3861 # We found the default executable, but exeext='' is most
3865 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3869 # We set ac_cv_exeext here because the later test for it is not
3870 # safe: cross compilers may not add the suffix if given an `-o'
3871 # argument, so we may need to know it at that point already.
3872 # Even if this section looks crufty: it has the advantage of
3879 test "$ac_cv_exeext" = no && ac_cv_exeext=
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3885 $as_echo "$ac_file" >&6; }
3886 if test -z "$ac_file"; then :
3887 $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 { as_fn_set_status 77
3893 as_fn_error "C compiler cannot create executables
3894 See \`config.log' for more details." "$LINENO" 5; }; }
3896 ac_exeext=$ac_cv_exeext
3898 # Check that the compiler produces executables we can run. If not, either
3899 # the compiler is broken, or we cross compile.
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3901 $as_echo_n "checking whether the C compiler works... " >&6; }
3902 # If not cross compiling, check that we can run a simple program.
3903 if test "$cross_compiling" != yes; then
3904 if { ac_try='./$ac_file'
3905 { { case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_try") 2>&5
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; }; then
3917 if test "$cross_compiling" = maybe; then
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error "cannot run C compiled programs.
3923 If you meant to cross compile, use \`--host'.
3924 See \`config.log' for more details." "$LINENO" 5; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3929 $as_echo "yes" >&6; }
3931 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3932 ac_clean_files=$ac_clean_files_save
3933 # Check that the compiler produces executables we can run. If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3936 $as_echo_n "checking whether we are cross compiling... " >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3938 $as_echo "$cross_compiling" >&6; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3941 $as_echo_n "checking for suffix of executables... " >&6; }
3942 if { { ac_try="$ac_link"
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948 $as_echo "$ac_try_echo"; } >&5
3949 (eval "$ac_link") 2>&5
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }; then :
3953 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3954 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3955 # work properly (i.e., refer to `conftest.exe'), while it won't with
3957 for ac_file in conftest.exe conftest conftest.*; do
3958 test -f "$ac_file" || continue
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3961 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error "cannot compute suffix of executables: cannot compile and link
3970 See \`config.log' for more details." "$LINENO" 5; }
3972 rm -f conftest$ac_cv_exeext
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3974 $as_echo "$ac_cv_exeext" >&6; }
3976 rm -f conftest.$ac_ext
3977 EXEEXT=$ac_cv_exeext
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3980 $as_echo_n "checking for suffix of object files... " >&6; }
3981 if test "${ac_cv_objext+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3995 rm -f conftest.o conftest.obj
3996 if { { ac_try="$ac_compile"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_compile") 2>&5
4005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006 test $ac_status = 0; }; then :
4007 for ac_file in conftest.o conftest.obj conftest.*; do
4008 test -f "$ac_file" || continue;
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4011 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4016 $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot compute suffix of object files: cannot compile
4022 See \`config.log' for more details." "$LINENO" 5; }
4024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4027 $as_echo "$ac_cv_objext" >&6; }
4028 OBJEXT=$ac_cv_objext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4031 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4032 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4049 if ac_fn_c_try_compile "$LINENO"; then :
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4059 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4060 if test $ac_compiler_gnu = yes; then
4065 ac_test_CFLAGS=${CFLAGS+set}
4066 ac_save_CFLAGS=$CFLAGS
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4068 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4069 if test "${ac_cv_prog_cc_g+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4072 ac_save_c_werror_flag=$ac_c_werror_flag
4073 ac_c_werror_flag=yes
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 if ac_fn_c_try_compile "$LINENO"; then :
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_c_werror_flag=$ac_save_c_werror_flag
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4118 if ac_fn_c_try_compile "$LINENO"; then :
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4129 $as_echo "$ac_cv_prog_cc_g" >&6; }
4130 if test "$ac_test_CFLAGS" = set; then
4131 CFLAGS=$ac_save_CFLAGS
4132 elif test $ac_cv_prog_cc_g = yes; then
4133 if test "$GCC" = yes; then
4139 if test "$GCC" = yes; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4146 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4147 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4150 ac_cv_prog_cc_c89=no
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4156 #include <sys/types.h>
4157 #include <sys/stat.h>
4158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4159 struct buf { int x; };
4160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161 static char *e (p, i)
4167 static char *f (char * (*g) (char **, int), char **p, ...)
4172 s = g (p, va_arg (v,int));
4177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4178 function prototypes and stuff, but not '\xHH' hex character constants.
4179 These don't provoke an error unfortunately, instead are silently treated
4180 as 'x'. The following induces an error, until -std is added to get
4181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4182 array size at least. It's necessary to write '\x00'==0 to get something
4183 that's true only with -std. */
4184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187 inside strings and character constants. */
4189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4191 int test (int i, double x);
4192 struct s1 {int (*f) (int a);};
4193 struct s2 {int (*f) (double a);};
4194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4208 CC="$ac_save_CC $ac_arg"
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_c89=$ac_arg
4212 rm -f core conftest.err conftest.$ac_objext
4213 test "x$ac_cv_prog_cc_c89" != "xno" && break
4215 rm -f conftest.$ac_ext
4220 case "x$ac_cv_prog_cc_c89" in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 $as_echo "none needed" >&6; } ;;
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 $as_echo "unsupported" >&6; } ;;
4228 CC="$CC $ac_cv_prog_cc_c89"
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4232 if test "x$ac_cv_prog_cc_c89" != xno; then :
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 if test "x$CC" != xcc; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4244 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4247 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4249 set dummy $CC; ac_cc=`$as_echo "$2" |
4250 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4251 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4252 $as_echo_n "(cached) " >&6
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4265 # Make sure it works both with $CC and with simple cc.
4266 # We do the test twice because some compilers refuse to overwrite an
4267 # existing .o file with -o, though they will create one.
4268 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4270 if { { case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276 (eval "$ac_try") 2>&5
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; } &&
4280 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_try") 2>&5
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; };
4291 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4292 if test "x$CC" != xcc; then
4293 # Test first that cc exists at all.
4294 if { ac_try='cc -c conftest.$ac_ext >&5'
4295 { { case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_try") 2>&5
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; }; }; then
4305 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4307 if { { case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; } &&
4317 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_try") 2>&5
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; };
4331 # cc exists but doesn't like -o.
4332 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4337 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4339 rm -f core conftest*
4342 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344 $as_echo "yes" >&6; }
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4349 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4353 # expand $ac_aux_dir to an absolute path
4354 am_aux_dir=`cd $ac_aux_dir && pwd`
4356 # FIXME: we rely on the cache variable name because
4357 # there is no other way.
4359 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4360 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4361 if test "$am_t" != yes; then
4362 # Losing compiler, so override with the script.
4363 # FIXME: It is wrong to rewrite CC.
4364 # But if we don't then we get into trouble of one sort or another.
4365 # A longer-term fix would be to have automake use am__CC in this case,
4366 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4367 CC="$am_aux_dir/compile $CC"
4372 ac_cpp='$CXXCPP $CPPFLAGS'
4373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4376 if test -z "$CXX"; then
4377 if test -n "$CCC"; then
4380 if test -n "$ac_tool_prefix"; then
4381 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_prog_CXX+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4390 if test -n "$CXX"; then
4391 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 if test -n "$CXX"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4413 $as_echo "$CXX" >&6; }
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4420 test -n "$CXX" && break
4423 if test -z "$CXX"; then
4425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4427 # Extract the first word of "$ac_prog", so it can be a program name with args.
4428 set dummy $ac_prog; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4434 if test -n "$ac_ct_CXX"; then
4435 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_ac_ct_CXX="$ac_prog"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4455 if test -n "$ac_ct_CXX"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4457 $as_echo "$ac_ct_CXX" >&6; }
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4464 test -n "$ac_ct_CXX" && break
4467 if test "x$ac_ct_CXX" = x; then
4470 case $cross_compiling:$ac_tool_warned in
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4474 ac_tool_warned=yes ;;
4482 # Provide some information about the compiler.
4483 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4486 for ac_option in --version -v -V -qversion; do
4487 { { ac_try="$ac_compiler $ac_option >&5"
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4496 if test -s conftest.err; then
4498 ... rest of stderr output deleted ...
4499 10q' conftest.err >conftest.er1
4500 cat conftest.er1 >&5
4501 rm -f conftest.er1 conftest.err
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4508 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4509 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4536 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4537 if test $ac_compiler_gnu = yes; then
4542 ac_test_CXXFLAGS=${CXXFLAGS+set}
4543 ac_save_CXXFLAGS=$CXXFLAGS
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4545 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4546 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4549 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4550 ac_cxx_werror_flag=yes
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4564 if ac_fn_cxx_try_compile "$LINENO"; then :
4565 ac_cv_prog_cxx_g=yes
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4579 if ac_fn_cxx_try_compile "$LINENO"; then :
4582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4595 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 ac_cv_prog_cxx_g=yes
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4606 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4607 if test "$ac_test_CXXFLAGS" = set; then
4608 CXXFLAGS=$ac_save_CXXFLAGS
4609 elif test $ac_cv_prog_cxx_g = yes; then
4610 if test "$GXX" = yes; then
4616 if test "$GXX" = yes; then
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 if test -n "$ac_tool_prefix"; then
4632 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4633 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4639 if test -n "$GNATBIND"; then
4640 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 GNATBIND=$ac_cv_prog_GNATBIND
4660 if test -n "$GNATBIND"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4662 $as_echo "$GNATBIND" >&6; }
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4670 if test -z "$ac_cv_prog_GNATBIND"; then
4671 ac_ct_GNATBIND=$GNATBIND
4672 # Extract the first word of "gnatbind", so it can be a program name with args.
4673 set dummy gnatbind; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4679 if test -n "$ac_ct_GNATBIND"; then
4680 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4700 if test -n "$ac_ct_GNATBIND"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4702 $as_echo "$ac_ct_GNATBIND" >&6; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4708 if test "x$ac_ct_GNATBIND" = x; then
4711 case $cross_compiling:$ac_tool_warned in
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715 ac_tool_warned=yes ;;
4717 GNATBIND=$ac_ct_GNATBIND
4720 GNATBIND="$ac_cv_prog_GNATBIND"
4723 if test -n "$ac_tool_prefix"; then
4724 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4725 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -n "$GNATMAKE"; then
4732 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 GNATMAKE=$ac_cv_prog_GNATMAKE
4752 if test -n "$GNATMAKE"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4754 $as_echo "$GNATMAKE" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4762 if test -z "$ac_cv_prog_GNATMAKE"; then
4763 ac_ct_GNATMAKE=$GNATMAKE
4764 # Extract the first word of "gnatmake", so it can be a program name with args.
4765 set dummy gnatmake; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$ac_ct_GNATMAKE"; then
4772 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4792 if test -n "$ac_ct_GNATMAKE"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4794 $as_echo "$ac_ct_GNATMAKE" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4800 if test "x$ac_ct_GNATMAKE" = x; then
4803 case $cross_compiling:$ac_tool_warned in
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807 ac_tool_warned=yes ;;
4809 GNATMAKE=$ac_ct_GNATMAKE
4812 GNATMAKE="$ac_cv_prog_GNATMAKE"
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4816 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4817 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4820 cat >conftest.adb <<EOF
4821 procedure conftest is begin null; end conftest;
4823 acx_cv_cc_gcc_supports_ada=no
4824 # There is a bug in old released versions of GCC which causes the
4825 # driver to exit successfully when the appropriate language module
4826 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4827 # Therefore we must check for the error message as well as an
4828 # unsuccessful exit.
4829 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4830 # given a .adb file, but produce no object file. So we must check
4831 # if an object file was really produced to guard against this.
4832 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4833 if test x"$errors" = x && test -f conftest.$ac_objext; then
4834 acx_cv_cc_gcc_supports_ada=yes
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4839 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4841 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4848 # autoconf is lame and doesn't give us any substitution variable for this.
4849 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4850 NO_MINUS_C_MINUS_O=yes
4852 OUTPUT_OPTION='-o $@'
4857 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4858 # optimizations to be activated explicitly by the toplevel.
4860 */prev-gcc/xgcc*) ;;
4861 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4865 # -------------------------
4866 # Check C compiler features
4867 # -------------------------
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4876 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4877 # On Suns, sometimes $CPP names a directory.
4878 if test -n "$CPP" && test -d "$CPP"; then
4881 if test -z "$CPP"; then
4882 if test "${ac_cv_prog_CPP+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4885 # Double quotes because CPP needs to be expanded
4886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4889 for ac_c_preproc_warn_flag in '' yes
4891 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4900 # include <limits.h>
4902 # include <assert.h>
4906 if ac_fn_c_try_cpp "$LINENO"; then :
4909 # Broken: fails on valid input.
4912 rm -f conftest.err conftest.$ac_ext
4914 # OK, works on sane cases. Now check whether nonexistent headers
4915 # can be detected and how.
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 #include <ac_nonexistent.h>
4920 if ac_fn_c_try_cpp "$LINENO"; then :
4921 # Broken: success on invalid input.
4924 # Passes both tests.
4928 rm -f conftest.err conftest.$ac_ext
4931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932 rm -f conftest.err conftest.$ac_ext
4933 if $ac_preproc_ok; then :
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4946 $as_echo "$CPP" >&6; }
4948 for ac_c_preproc_warn_flag in '' yes
4950 # Use a header file that comes with gcc, so configuring glibc
4951 # with a fresh cross-compiler works.
4952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953 # <limits.h> exists even on freestanding compilers.
4954 # On the NeXT, cc -E runs the code through the compiler's parser,
4955 # not just through cpp. "Syntax error" is here to catch this case.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4959 # include <limits.h>
4961 # include <assert.h>
4965 if ac_fn_c_try_cpp "$LINENO"; then :
4968 # Broken: fails on valid input.
4971 rm -f conftest.err conftest.$ac_ext
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #include <ac_nonexistent.h>
4979 if ac_fn_c_try_cpp "$LINENO"; then :
4980 # Broken: success on invalid input.
4983 # Passes both tests.
4987 rm -f conftest.err conftest.$ac_ext
4990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4991 rm -f conftest.err conftest.$ac_ext
4992 if $ac_preproc_ok; then :
4995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4997 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4998 See \`config.log' for more details." "$LINENO" 5; }
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5010 if test "${ac_cv_path_GREP+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5013 if test -z "$GREP"; then
5014 ac_path_GREP_found=false
5015 # Loop through the user's path and test for each of PROGNAME-LIST
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5020 test -z "$as_dir" && as_dir=.
5021 for ac_prog in grep ggrep; do
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5024 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5025 # Check for GNU ac_path_GREP and select it if it is found.
5026 # Check for GNU $ac_path_GREP
5027 case `"$ac_path_GREP" --version 2>&1` in
5029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5032 $as_echo_n 0123456789 >"conftest.in"
5035 cat "conftest.in" "conftest.in" >"conftest.tmp"
5036 mv "conftest.tmp" "conftest.in"
5037 cp "conftest.in" "conftest.nl"
5038 $as_echo 'GREP' >> "conftest.nl"
5039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5041 as_fn_arith $ac_count + 1 && ac_count=$as_val
5042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5043 # Best one so far, save it but keep looking for a better one
5044 ac_cv_path_GREP="$ac_path_GREP"
5045 ac_path_GREP_max=$ac_count
5047 # 10*(2^10) chars as input seems more than enough
5048 test $ac_count -gt 10 && break
5050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5053 $ac_path_GREP_found && break 3
5058 if test -z "$ac_cv_path_GREP"; then
5059 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5062 ac_cv_path_GREP=$GREP
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5067 $as_echo "$ac_cv_path_GREP" >&6; }
5068 GREP="$ac_cv_path_GREP"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5072 $as_echo_n "checking for egrep... " >&6; }
5073 if test "${ac_cv_path_EGREP+set}" = set; then :
5074 $as_echo_n "(cached) " >&6
5076 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5077 then ac_cv_path_EGREP="$GREP -E"
5079 if test -z "$EGREP"; then
5080 ac_path_EGREP_found=false
5081 # Loop through the user's path and test for each of PROGNAME-LIST
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5086 test -z "$as_dir" && as_dir=.
5087 for ac_prog in egrep; do
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5090 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5091 # Check for GNU ac_path_EGREP and select it if it is found.
5092 # Check for GNU $ac_path_EGREP
5093 case `"$ac_path_EGREP" --version 2>&1` in
5095 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5098 $as_echo_n 0123456789 >"conftest.in"
5101 cat "conftest.in" "conftest.in" >"conftest.tmp"
5102 mv "conftest.tmp" "conftest.in"
5103 cp "conftest.in" "conftest.nl"
5104 $as_echo 'EGREP' >> "conftest.nl"
5105 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5107 as_fn_arith $ac_count + 1 && ac_count=$as_val
5108 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5109 # Best one so far, save it but keep looking for a better one
5110 ac_cv_path_EGREP="$ac_path_EGREP"
5111 ac_path_EGREP_max=$ac_count
5113 # 10*(2^10) chars as input seems more than enough
5114 test $ac_count -gt 10 && break
5116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5119 $ac_path_EGREP_found && break 3
5124 if test -z "$ac_cv_path_EGREP"; then
5125 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5128 ac_cv_path_EGREP=$EGREP
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5134 $as_echo "$ac_cv_path_EGREP" >&6; }
5135 EGREP="$ac_cv_path_EGREP"
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5139 $as_echo_n "checking for ANSI C header files... " >&6; }
5140 if test "${ac_cv_header_stdc+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159 ac_cv_header_stdc=yes
5161 ac_cv_header_stdc=no
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 if test $ac_cv_header_stdc = yes; then
5166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173 $EGREP "memchr" >/dev/null 2>&1; then :
5176 ac_cv_header_stdc=no
5182 if test $ac_cv_header_stdc = yes; then
5183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190 $EGREP "free" >/dev/null 2>&1; then :
5193 ac_cv_header_stdc=no
5199 if test $ac_cv_header_stdc = yes; then
5200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5201 if test "$cross_compiling" = yes; then :
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5208 #if ((' ' & 0x0FF) == 0x020)
5209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5212 # define ISLOWER(c) \
5213 (('a' <= (c) && (c) <= 'i') \
5214 || ('j' <= (c) && (c) <= 'r') \
5215 || ('s' <= (c) && (c) <= 'z'))
5216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5224 for (i = 0; i < 256; i++)
5225 if (XOR (islower (i), ISLOWER (i))
5226 || toupper (i) != TOUPPER (i))
5231 if ac_fn_c_try_run "$LINENO"; then :
5234 ac_cv_header_stdc=no
5236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5237 conftest.$ac_objext conftest.beam conftest.$ac_ext
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5243 $as_echo "$ac_cv_header_stdc" >&6; }
5244 if test $ac_cv_header_stdc = yes; then
5246 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5252 inttypes.h stdint.h unistd.h
5254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5255 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5257 eval as_val=\$$as_ac_Header
5258 if test "x$as_val" = x""yes; then :
5259 cat >>confdefs.h <<_ACEOF
5260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5269 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5270 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5277 if test "$MINIX" = yes; then
5279 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5282 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5285 $as_echo "#define _MINIX 1" >>confdefs.h
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5291 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5292 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5298 # define __EXTENSIONS__ 1
5299 $ac_includes_default
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 ac_cv_safe_to_define___extensions__=yes
5311 ac_cv_safe_to_define___extensions__=no
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5316 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5317 test $ac_cv_safe_to_define___extensions__ = yes &&
5318 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5320 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5322 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5324 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5326 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5330 ac_cpp='$CPP $CPPFLAGS'
5331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5335 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5336 # On Suns, sometimes $CPP names a directory.
5337 if test -n "$CPP" && test -d "$CPP"; then
5340 if test -z "$CPP"; then
5341 if test "${ac_cv_prog_CPP+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5344 # Double quotes because CPP needs to be expanded
5345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5348 for ac_c_preproc_warn_flag in '' yes
5350 # Use a header file that comes with gcc, so configuring glibc
5351 # with a fresh cross-compiler works.
5352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353 # <limits.h> exists even on freestanding compilers.
5354 # On the NeXT, cc -E runs the code through the compiler's parser,
5355 # not just through cpp. "Syntax error" is here to catch this case.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5359 # include <limits.h>
5361 # include <assert.h>
5365 if ac_fn_c_try_cpp "$LINENO"; then :
5368 # Broken: fails on valid input.
5371 rm -f conftest.err conftest.$ac_ext
5373 # OK, works on sane cases. Now check whether nonexistent headers
5374 # can be detected and how.
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <ac_nonexistent.h>
5379 if ac_fn_c_try_cpp "$LINENO"; then :
5380 # Broken: success on invalid input.
5383 # Passes both tests.
5387 rm -f conftest.err conftest.$ac_ext
5390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5391 rm -f conftest.err conftest.$ac_ext
5392 if $ac_preproc_ok; then :
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5405 $as_echo "$CPP" >&6; }
5407 for ac_c_preproc_warn_flag in '' yes
5409 # Use a header file that comes with gcc, so configuring glibc
5410 # with a fresh cross-compiler works.
5411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5412 # <limits.h> exists even on freestanding compilers.
5413 # On the NeXT, cc -E runs the code through the compiler's parser,
5414 # not just through cpp. "Syntax error" is here to catch this case.
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5418 # include <limits.h>
5420 # include <assert.h>
5424 if ac_fn_c_try_cpp "$LINENO"; then :
5427 # Broken: fails on valid input.
5430 rm -f conftest.err conftest.$ac_ext
5432 # OK, works on sane cases. Now check whether nonexistent headers
5433 # can be detected and how.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #include <ac_nonexistent.h>
5438 if ac_fn_c_try_cpp "$LINENO"; then :
5439 # Broken: success on invalid input.
5442 # Passes both tests.
5446 rm -f conftest.err conftest.$ac_ext
5449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5450 rm -f conftest.err conftest.$ac_ext
5451 if $ac_preproc_ok; then :
5454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5456 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5457 See \`config.log' for more details." "$LINENO" 5; }
5461 ac_cpp='$CPP $CPPFLAGS'
5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5467 $as_echo_n "checking for inline... " >&6; }
5468 if test "${ac_cv_c_inline+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5472 for ac_kw in inline __inline__ __inline; do
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5477 static $ac_kw foo_t static_foo () {return 0; }
5478 $ac_kw foo_t foo () {return 0; }
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 ac_cv_c_inline=$ac_kw
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 test "$ac_cv_c_inline" != no && break
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5491 $as_echo "$ac_cv_c_inline" >&6; }
5493 case $ac_cv_c_inline in
5496 case $ac_cv_c_inline in
5498 *) ac_val=$ac_cv_c_inline;;
5500 cat >>confdefs.h <<_ACEOF
5502 #define inline $ac_val
5509 # Check whether --enable-largefile was given.
5510 if test "${enable_largefile+set}" = set; then :
5511 enableval=$enable_largefile;
5514 if test "$enable_largefile" != no; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5517 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5518 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5521 ac_cv_sys_largefile_CC=no
5522 if test "$GCC" != yes; then
5525 # IRIX 6.2 and later do not support large files by default,
5526 # so use the C compiler's -n32 option if that helps.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <sys/types.h>
5530 /* Check that off_t can represent 2**63 - 1 correctly.
5531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532 since some C++ compilers masquerading as C compilers
5533 incorrectly reject 9223372036854775807. */
5534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536 && LARGE_OFF_T % 2147483647 == 1)
5546 if ac_fn_c_try_compile "$LINENO"; then :
5549 rm -f core conftest.err conftest.$ac_objext
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 ac_cv_sys_largefile_CC=' -n32'; break
5554 rm -f core conftest.err conftest.$ac_objext
5558 rm -f conftest.$ac_ext
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5562 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5563 if test "$ac_cv_sys_largefile_CC" != no; then
5564 CC=$CC$ac_cv_sys_largefile_CC
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5568 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 ac_cv_sys_file_offset_bits=no; break
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #define _FILE_OFFSET_BITS 64
5599 #include <sys/types.h>
5600 /* Check that off_t can represent 2**63 - 1 correctly.
5601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5602 since some C++ compilers masquerading as C compilers
5603 incorrectly reject 9223372036854775807. */
5604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5606 && LARGE_OFF_T % 2147483647 == 1)
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 ac_cv_sys_file_offset_bits=64; break
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 ac_cv_sys_file_offset_bits=unknown
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5625 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5626 case $ac_cv_sys_file_offset_bits in #(
5629 cat >>confdefs.h <<_ACEOF
5630 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5635 if test $ac_cv_sys_file_offset_bits = unknown; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5637 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5638 if test "${ac_cv_sys_large_files+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 ac_cv_sys_large_files=no; break
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #define _LARGE_FILES 1
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 ac_cv_sys_large_files=1; break
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_sys_large_files=unknown
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5694 $as_echo "$ac_cv_sys_large_files" >&6; }
5695 case $ac_cv_sys_large_files in #(
5698 cat >>confdefs.h <<_ACEOF
5699 #define _LARGE_FILES $ac_cv_sys_large_files
5708 # sizeof(char) is 1 by definition.
5709 # The cast to long int works around a bug in the HP C Compiler
5710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5712 # This bug is HP SR number 8606223364.
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5714 $as_echo_n "checking size of void *... " >&6; }
5715 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5721 if test "$ac_cv_type_void_p" = yes; then
5722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5724 { as_fn_set_status 77
5725 as_fn_error "cannot compute sizeof (void *)
5726 See \`config.log' for more details." "$LINENO" 5; }; }
5728 ac_cv_sizeof_void_p=0
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5734 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5738 cat >>confdefs.h <<_ACEOF
5739 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5743 # The cast to long int works around a bug in the HP C Compiler
5744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5746 # This bug is HP SR number 8606223364.
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5748 $as_echo_n "checking size of short... " >&6; }
5749 if test "${ac_cv_sizeof_short+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5752 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5755 if test "$ac_cv_type_short" = yes; then
5756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5758 { as_fn_set_status 77
5759 as_fn_error "cannot compute sizeof (short)
5760 See \`config.log' for more details." "$LINENO" 5; }; }
5762 ac_cv_sizeof_short=0
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5768 $as_echo "$ac_cv_sizeof_short" >&6; }
5772 cat >>confdefs.h <<_ACEOF
5773 #define SIZEOF_SHORT $ac_cv_sizeof_short
5777 # The cast to long int works around a bug in the HP C Compiler
5778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5780 # This bug is HP SR number 8606223364.
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5782 $as_echo_n "checking size of int... " >&6; }
5783 if test "${ac_cv_sizeof_int+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5789 if test "$ac_cv_type_int" = yes; then
5790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5792 { as_fn_set_status 77
5793 as_fn_error "cannot compute sizeof (int)
5794 See \`config.log' for more details." "$LINENO" 5; }; }
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5802 $as_echo "$ac_cv_sizeof_int" >&6; }
5806 cat >>confdefs.h <<_ACEOF
5807 #define SIZEOF_INT $ac_cv_sizeof_int
5811 # The cast to long int works around a bug in the HP C Compiler
5812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5814 # This bug is HP SR number 8606223364.
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5816 $as_echo_n "checking size of long... " >&6; }
5817 if test "${ac_cv_sizeof_long+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5820 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5823 if test "$ac_cv_type_long" = yes; then
5824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 { as_fn_set_status 77
5827 as_fn_error "cannot compute sizeof (long)
5828 See \`config.log' for more details." "$LINENO" 5; }; }
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5836 $as_echo "$ac_cv_sizeof_long" >&6; }
5840 cat >>confdefs.h <<_ACEOF
5841 #define SIZEOF_LONG $ac_cv_sizeof_long
5845 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5846 if test "x$ac_cv_type_long_long" = x""yes; then :
5848 cat >>confdefs.h <<_ACEOF
5849 #define HAVE_LONG_LONG 1
5852 # The cast to long int works around a bug in the HP C Compiler
5853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5855 # This bug is HP SR number 8606223364.
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5857 $as_echo_n "checking size of long long... " >&6; }
5858 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5861 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5864 if test "$ac_cv_type_long_long" = yes; then
5865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5867 { as_fn_set_status 77
5868 as_fn_error "cannot compute sizeof (long long)
5869 See \`config.log' for more details." "$LINENO" 5; }; }
5871 ac_cv_sizeof_long_long=0
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5877 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5881 cat >>confdefs.h <<_ACEOF
5882 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5888 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5889 if test "x$ac_cv_type___int64" = x""yes; then :
5891 cat >>confdefs.h <<_ACEOF
5892 #define HAVE___INT64 1
5895 # The cast to long int works around a bug in the HP C Compiler
5896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5898 # This bug is HP SR number 8606223364.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5900 $as_echo_n "checking size of __int64... " >&6; }
5901 if test "${ac_cv_sizeof___int64+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5907 if test "$ac_cv_type___int64" = yes; then
5908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5910 { as_fn_set_status 77
5911 as_fn_error "cannot compute sizeof (__int64)
5912 See \`config.log' for more details." "$LINENO" 5; }; }
5914 ac_cv_sizeof___int64=0
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5920 $as_echo "$ac_cv_sizeof___int64" >&6; }
5924 cat >>confdefs.h <<_ACEOF
5925 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5931 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5932 case $ac_cv_c_int8_t in #(
5936 cat >>confdefs.h <<_ACEOF
5937 #define int8_t $ac_cv_c_int8_t
5942 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5943 case $ac_cv_c_int16_t in #(
5947 cat >>confdefs.h <<_ACEOF
5948 #define int16_t $ac_cv_c_int16_t
5953 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5954 case $ac_cv_c_int32_t in #(
5958 cat >>confdefs.h <<_ACEOF
5959 #define int32_t $ac_cv_c_int32_t
5964 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5965 case $ac_cv_c_int64_t in #(
5969 cat >>confdefs.h <<_ACEOF
5970 #define int64_t $ac_cv_c_int64_t
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5977 $as_echo_n "checking for long long int... " >&6; }
5978 if test "${ac_cv_type_long_long_int+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5984 /* For now, do not test the preprocessor; as of 2007 there are too many
5985 implementations with broken preprocessors. Perhaps this can
5986 be revisited in 2012. In the meantime, code should not expect
5987 #if to work with literals wider than 32 bits. */
5988 /* Test literals. */
5989 long long int ll = 9223372036854775807ll;
5990 long long int nll = -9223372036854775807LL;
5991 unsigned long long int ull = 18446744073709551615ULL;
5992 /* Test constant expressions. */
5993 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5995 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6001 /* Test availability of runtime routines for shift and division. */
6002 long long int llmax = 9223372036854775807ll;
6003 unsigned long long int ullmax = 18446744073709551615ull;
6004 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6005 | (llmax / ll) | (llmax % ll)
6006 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6007 | (ullmax / ull) | (ullmax % ull));
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 if test "$cross_compiling" = yes; then :
6015 ac_cv_type_long_long_int=yes
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6022 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6023 # define LLONG_MAX (HALF - 1 + HALF)
6028 long long int n = 1;
6032 long long int m = n << i;
6035 if (LLONG_MAX / 2 < m)
6043 if ac_fn_c_try_run "$LINENO"; then :
6044 ac_cv_type_long_long_int=yes
6046 ac_cv_type_long_long_int=no
6048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6049 conftest.$ac_objext conftest.beam conftest.$ac_ext
6053 ac_cv_type_long_long_int=no
6055 rm -f core conftest.err conftest.$ac_objext \
6056 conftest$ac_exeext conftest.$ac_ext
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6059 $as_echo "$ac_cv_type_long_long_int" >&6; }
6060 if test $ac_cv_type_long_long_int = yes; then
6062 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6068 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6069 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6071 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6074 test $ac_cv_type_long_long_int = yes \
6075 && ac_type='long long int' \
6076 || ac_type='long int'
6078 cat >>confdefs.h <<_ACEOF
6079 #define intmax_t $ac_type
6086 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6087 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6089 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6092 for ac_type in 'int' 'long int' 'long long int'; do
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095 $ac_includes_default
6099 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6106 if ac_fn_c_try_compile "$LINENO"; then :
6108 cat >>confdefs.h <<_ACEOF
6109 #define intptr_t $ac_type
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 test -z "$ac_type" && break
6120 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6121 case $ac_cv_c_uint8_t in #(
6125 $as_echo "#define _UINT8_T 1" >>confdefs.h
6128 cat >>confdefs.h <<_ACEOF
6129 #define uint8_t $ac_cv_c_uint8_t
6134 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6135 case $ac_cv_c_uint16_t in #(
6140 cat >>confdefs.h <<_ACEOF
6141 #define uint16_t $ac_cv_c_uint16_t
6146 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6147 case $ac_cv_c_uint32_t in #(
6151 $as_echo "#define _UINT32_T 1" >>confdefs.h
6154 cat >>confdefs.h <<_ACEOF
6155 #define uint32_t $ac_cv_c_uint32_t
6160 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6161 case $ac_cv_c_uint64_t in #(
6165 $as_echo "#define _UINT64_T 1" >>confdefs.h
6168 cat >>confdefs.h <<_ACEOF
6169 #define uint64_t $ac_cv_c_uint64_t
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6176 $as_echo_n "checking for unsigned long long int... " >&6; }
6177 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6183 /* For now, do not test the preprocessor; as of 2007 there are too many
6184 implementations with broken preprocessors. Perhaps this can
6185 be revisited in 2012. In the meantime, code should not expect
6186 #if to work with literals wider than 32 bits. */
6187 /* Test literals. */
6188 long long int ll = 9223372036854775807ll;
6189 long long int nll = -9223372036854775807LL;
6190 unsigned long long int ull = 18446744073709551615ULL;
6191 /* Test constant expressions. */
6192 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6194 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6200 /* Test availability of runtime routines for shift and division. */
6201 long long int llmax = 9223372036854775807ll;
6202 unsigned long long int ullmax = 18446744073709551615ull;
6203 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6204 | (llmax / ll) | (llmax % ll)
6205 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6206 | (ullmax / ull) | (ullmax % ull));
6212 if ac_fn_c_try_link "$LINENO"; then :
6213 ac_cv_type_unsigned_long_long_int=yes
6215 ac_cv_type_unsigned_long_long_int=no
6217 rm -f core conftest.err conftest.$ac_objext \
6218 conftest$ac_exeext conftest.$ac_ext
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6221 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6222 if test $ac_cv_type_unsigned_long_long_int = yes; then
6224 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6230 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6231 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6233 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6236 test $ac_cv_type_unsigned_long_long_int = yes \
6237 && ac_type='unsigned long long int' \
6238 || ac_type='unsigned long int'
6240 cat >>confdefs.h <<_ACEOF
6241 #define uintmax_t $ac_type
6248 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6249 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6251 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6254 for ac_type in 'unsigned int' 'unsigned long int' \
6255 'unsigned long long int'; do
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 $ac_includes_default
6262 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6269 if ac_fn_c_try_compile "$LINENO"; then :
6271 cat >>confdefs.h <<_ACEOF
6272 #define uintptr_t $ac_type
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 test -z "$ac_type" && break
6296 # ---------------------
6297 # Warnings and checking
6298 # ---------------------
6300 # Check $CC warning features (if it's GCC).
6301 # We want to use -pedantic, but we don't want warnings about
6304 # * overlong strings
6305 # So, we only use -pedantic if we can disable those warnings.
6308 save_CFLAGS="$CFLAGS"
6309 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6310 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6313 $as_echo_n "checking whether $CC supports $option... " >&6; }
6314 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6315 $as_echo_n "(cached) " >&6
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6329 if ac_fn_c_try_compile "$LINENO"; then :
6330 eval "$as_acx_Woption=yes"
6332 eval "$as_acx_Woption=no"
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 eval ac_res=\$$as_acx_Woption
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6339 $as_echo "$ac_res" >&6; }
6340 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6341 loose_warn="$loose_warn${loose_warn:+ }$option"
6344 CFLAGS="$save_CFLAGS"
6347 save_CFLAGS="$CFLAGS"
6348 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6349 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6352 $as_echo_n "checking whether $CC supports $option... " >&6; }
6353 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6354 $as_echo_n "(cached) " >&6
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6368 if ac_fn_c_try_compile "$LINENO"; then :
6369 eval "$as_acx_Woption=yes"
6371 eval "$as_acx_Woption=no"
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 eval ac_res=\$$as_acx_Woption
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6378 $as_echo "$ac_res" >&6; }
6379 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6380 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6383 CFLAGS="$save_CFLAGS"
6386 save_CFLAGS="$CFLAGS"
6387 for option in -Wmissing-format-attribute; do
6388 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6391 $as_echo_n "checking whether $CC supports $option... " >&6; }
6392 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6393 $as_echo_n "(cached) " >&6
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 eval "$as_acx_Woption=yes"
6410 eval "$as_acx_Woption=no"
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 eval ac_res=\$$as_acx_Woption
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6417 $as_echo "$ac_res" >&6; }
6418 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6419 strict_warn="$strict_warn${strict_warn:+ }$option"
6422 CFLAGS="$save_CFLAGS"
6425 save_CFLAGS="$CFLAGS"
6426 for option in -Wold-style-definition -Wc++-compat; do
6427 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6430 $as_echo_n "checking whether $CC supports $option... " >&6; }
6431 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6432 $as_echo_n "(cached) " >&6
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6446 if ac_fn_c_try_compile "$LINENO"; then :
6447 eval "$as_acx_Woption=yes"
6449 eval "$as_acx_Woption=no"
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 eval ac_res=\$$as_acx_Woption
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6456 $as_echo "$ac_res" >&6; }
6457 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6458 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6461 CFLAGS="$save_CFLAGS"
6463 if test "$GCC" = yes; then :
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6465 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6466 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6467 $as_echo_n "(cached) " >&6
6469 save_CFLAGS="$CFLAGS"
6470 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6485 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 CFLAGS="$save_CFLAGS"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6491 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6492 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6493 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6498 # Check whether --enable-werror-always was given.
6499 if test "${enable_werror_always+set}" = set; then :
6500 enableval=$enable_werror_always;
6502 enable_werror_always=no
6505 if test $enable_werror_always = yes; then :
6506 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6511 # The above macros do nothing if the compiler is not GCC. However, the
6512 # Makefile has more goo to add other flags, so these variables are used
6513 # to enable warnings only for GCC.
6516 if test "x$GCC" = "xyes"; then
6517 warn_cflags='$(GCC_WARN_CFLAGS)'
6518 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6523 # Enable expensive internal checks
6525 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6529 # Check whether --enable-checking was given.
6530 if test "${enable_checking+set}" = set; then :
6531 enableval=$enable_checking; ac_checking_flags="${enableval}"
6534 # Determine the default checks.
6535 if test x$is_release = x ; then
6536 ac_checking_flags=yes
6538 ac_checking_flags=release
6542 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6543 for check in release $ac_checking_flags
6546 # these set all the flags to specific states
6547 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6548 ac_fold_checking= ; ac_gc_checking=1 ;
6549 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6550 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6551 ac_tree_checking=1 ; ac_valgrind_checking= ;
6552 ac_types_checking=1 ;;
6553 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6554 ac_fold_checking= ; ac_gc_checking= ;
6555 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6556 ac_rtlflag_checking= ; ac_runtime_checking= ;
6557 ac_tree_checking= ; ac_valgrind_checking= ;
6558 ac_types_checking= ;;
6559 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6560 ac_fold_checking=1 ; ac_gc_checking=1 ;
6561 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6562 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6563 ac_tree_checking=1 ; ac_valgrind_checking= ;
6564 ac_types_checking=1 ;;
6565 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6566 ac_fold_checking= ; ac_gc_checking= ;
6567 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6568 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6569 ac_tree_checking= ; ac_valgrind_checking= ;
6570 ac_types_checking= ;;
6571 # these enable particular checks
6572 assert) ac_assert_checking=1 ;;
6573 df) ac_df_checking=1 ;;
6574 fold) ac_fold_checking=1 ;;
6575 gc) ac_gc_checking=1 ;;
6576 gcac) ac_gc_always_collect=1 ;;
6577 gimple) ac_gimple_checking=1 ;;
6578 misc) ac_checking=1 ;;
6579 rtl) ac_rtl_checking=1 ;;
6580 rtlflag) ac_rtlflag_checking=1 ;;
6581 runtime) ac_runtime_checking=1 ;;
6582 tree) ac_tree_checking=1 ;;
6583 types) ac_types_checking=1 ;;
6584 valgrind) ac_valgrind_checking=1 ;;
6585 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6591 if test x$ac_checking != x ; then
6593 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6595 nocommon_flag=-fno-common
6598 if test x$ac_df_checking != x ; then
6600 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6603 if test x$ac_assert_checking != x ; then
6605 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6608 if test x$ac_gimple_checking != x ; then
6610 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6614 if test x$ac_runtime_checking != x ; then
6616 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6619 if test x$ac_tree_checking != x ; then
6621 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6623 TREEBROWSER=tree-browser.o
6625 if test x$ac_types_checking != x ; then
6627 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6631 if test x$ac_rtl_checking != x ; then
6633 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6636 if test x$ac_rtlflag_checking != x ; then
6638 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6641 if test x$ac_gc_checking != x ; then
6643 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6646 if test x$ac_gc_always_collect != x ; then
6648 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6651 if test x$ac_fold_checking != x ; then
6653 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6656 valgrind_path_defines=
6659 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6660 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6668 if test x$ac_valgrind_checking != x ; then
6669 # It is certainly possible that there's valgrind but no valgrind.h.
6670 # GCC relies on making annotations so we must have both.
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6672 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6675 #include <valgrind/memcheck.h>
6676 #ifndef VALGRIND_DISCARD
6677 #error VALGRIND_DISCARD not defined
6680 if ac_fn_c_try_cpp "$LINENO"; then :
6681 gcc_cv_header_valgrind_memcheck_h=yes
6683 gcc_cv_header_valgrind_memcheck_h=no
6685 rm -f conftest.err conftest.$ac_ext
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6687 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6689 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 #include <memcheck.h>
6693 #ifndef VALGRIND_DISCARD
6694 #error VALGRIND_DISCARD not defined
6697 if ac_fn_c_try_cpp "$LINENO"; then :
6698 gcc_cv_header_memcheck_h=yes
6700 gcc_cv_header_memcheck_h=no
6702 rm -f conftest.err conftest.$ac_ext
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6704 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6706 # Prepare PATH_SEPARATOR.
6707 # The user is always right.
6708 if test "${PATH_SEPARATOR+set}" != set; then
6709 echo "#! /bin/sh" >conf$$.sh
6710 echo "exit 0" >>conf$$.sh
6712 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6720 # Find out how to test for executable files. Don't use a zero-byte file,
6721 # as systems may use methods other than mode bits to determine executability.
6722 cat >conf$$.file <<_ASEOF
6726 chmod +x conf$$.file
6727 if test -x conf$$.file >/dev/null 2>&1; then
6728 ac_executable_p="test -x"
6730 ac_executable_p="test -f"
6734 # Extract the first word of "valgrind", so it can be a program name with args.
6735 set dummy valgrind; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6741 case "$valgrind_path" in
6743 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6746 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6747 for ac_dir in $PATH; do
6749 test -z "$ac_dir" && ac_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6752 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6753 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6763 valgrind_path="$ac_cv_path_valgrind_path"
6764 if test -n "$valgrind_path"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6766 $as_echo "$valgrind_path" >&6; }
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6772 if test "x$valgrind_path" = "x" \
6773 || (test $have_valgrind_h = no \
6774 && test $gcc_cv_header_memcheck_h = no \
6775 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6776 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6778 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6779 valgrind_command="$valgrind_path -q"
6781 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6783 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6785 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6788 if test $gcc_cv_header_memcheck_h = yes; then
6790 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6797 # Enable code coverage collection
6798 # Check whether --enable-coverage was given.
6799 if test "${enable_coverage+set}" = set; then :
6800 enableval=$enable_coverage; case "${enableval}" in
6802 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6805 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6808 # a.k.a. --disable-coverage
6812 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6821 # Check whether --enable-gather-detailed-mem-stats was given.
6822 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6823 enableval=$enable_gather_detailed_mem_stats;
6825 enable_gather_detailed_mem_stats=no
6828 if test x$enable_gather_detailed_mem_stats = xyes ; then
6830 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6834 # -------------------------------
6835 # Miscenalleous configure options
6836 # -------------------------------
6838 # See if we are building gcc with C++.
6839 # Check whether --enable-build-with-cxx was given.
6840 if test "${enable_build_with_cxx+set}" = set; then :
6841 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6843 ENABLE_BUILD_WITH_CXX=no
6847 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6849 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6855 # Check whether --with-stabs was given.
6856 if test "${with_stabs+set}" = set; then :
6857 withval=$with_stabs; stabs="$with_stabs"
6863 # Determine whether or not multilibs are enabled.
6864 # Check whether --enable-multilib was given.
6865 if test "${enable_multilib+set}" = set; then :
6866 enableval=$enable_multilib;
6873 # Enable __cxa_atexit for C++.
6874 # Check whether --enable-__cxa_atexit was given.
6875 if test "${enable___cxa_atexit+set}" = set; then :
6876 enableval=$enable___cxa_atexit;
6880 # Enable C extension for decimal float if target supports it.
6882 # Check whether --enable-decimal-float was given.
6883 if test "${enable_decimal_float+set}" = set; then :
6884 enableval=$enable_decimal_float;
6885 case $enable_decimal_float in
6886 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6887 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6888 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6894 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6895 i?86*-*-mingw* | x86_64*-*-mingw* | \
6897 enable_decimal_float=yes
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6901 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6902 enable_decimal_float=no
6909 # x86's use BID format instead of DPD
6910 case x$enable_decimal_float in
6913 i?86*-*-* | x86_64*-*-*)
6914 enable_decimal_float=bid
6917 enable_decimal_float=dpd
6920 default_decimal_float=$enable_decimal_float
6923 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6924 # dependency on libdecnumber.
6925 default_decimal_float=dpd
6932 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6934 cat >>confdefs.h <<_ACEOF
6935 #define ENABLE_DECIMAL_FLOAT $dfp
6939 # Use default_decimal_float for dependency.
6940 enable_decimal_float=$default_decimal_float
6942 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6944 cat >>confdefs.h <<_ACEOF
6945 #define ENABLE_DECIMAL_BID_FORMAT $bid
6949 # Enable C extension for fixed-point arithmetic.
6950 # Check whether --enable-fixed-point was given.
6951 if test "${enable_fixed_point+set}" = set; then :
6952 enableval=$enable_fixed_point;
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6961 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6962 enable_fixed_point=no
6965 enable_fixed_point=yes
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6971 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6972 enable_fixed_point=no
6980 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6982 cat >>confdefs.h <<_ACEOF
6983 #define ENABLE_FIXED_POINT $fixedpoint
6988 # Pass with no value to take the default
6989 # Pass with a value to specify a thread package
6990 # Check whether --enable-threads was given.
6991 if test "${enable_threads+set}" = set; then :
6992 enableval=$enable_threads;
6998 # Check whether --enable-tls was given.
6999 if test "${enable_tls+set}" = set; then :
7000 enableval=$enable_tls;
7003 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7004 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7012 # Check whether --enable-objc-gc was given.
7013 if test "${enable_objc_gc+set}" = set; then :
7014 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7025 # Check whether --with-dwarf2 was given.
7026 if test "${with_dwarf2+set}" = set; then :
7027 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7033 # Check whether --enable-shared was given.
7034 if test "${enable_shared+set}" = set; then :
7035 enableval=$enable_shared;
7036 case $enable_shared in
7040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7041 for pkg in $enableval; do
7042 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7057 # Check whether --with-build-sysroot was given.
7058 if test "${with_build_sysroot+set}" = set; then :
7059 withval=$with_build_sysroot;
7064 # Check whether --with-sysroot was given.
7065 if test "${with_sysroot+set}" = set; then :
7066 withval=$with_sysroot;
7067 case ${with_sysroot} in
7068 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7069 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7072 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7073 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7075 if test "x$prefix" = xNONE; then
7076 test_prefix=/usr/local
7080 if test "x$exec_prefix" = xNONE; then
7081 test_exec_prefix=$test_prefix
7083 test_exec_prefix=$exec_prefix
7085 case ${TARGET_SYSTEM_ROOT} in
7086 "${test_prefix}"|"${test_prefix}/"*|\
7087 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7088 '${prefix}'|'${prefix}/'*|\
7089 '${exec_prefix}'|'${exec_prefix}/'*)
7090 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7091 TARGET_SYSTEM_ROOT_DEFINE="$t"
7098 TARGET_SYSTEM_ROOT_DEFINE=
7099 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7108 # Check whether --with-specs was given.
7109 if test "${with_specs+set}" = set; then :
7110 withval=$with_specs; CONFIGURE_SPECS=$withval
7120 # Check whether --with-pkgversion was given.
7121 if test "${with_pkgversion+set}" = set; then :
7122 withval=$with_pkgversion; case "$withval" in
7123 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7125 *) PKGVERSION="($withval) " ;;
7136 # Check whether --with-bugurl was given.
7137 if test "${with_bugurl+set}" = set; then :
7138 withval=$with_bugurl; case "$withval" in
7139 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7142 *) BUGURL="$withval"
7146 BUGURL="http://gcc.gnu.org/bugs.html"
7156 REPORT_BUGS_TO="<$BUGURL>"
7157 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7164 # Sanity check enable_languages in case someone does not run the toplevel
7165 # configure # script.
7166 # Check whether --enable-languages was given.
7167 if test "${enable_languages+set}" = set; then :
7168 enableval=$enable_languages; case ,${enable_languages}, in
7170 # go safe -- we cannot be much sure without the toplevel
7172 # analysis of which target libs are present and usable
7176 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7181 enable_languages=c,${enable_languages}
7190 # Check whether --with-multilib-list was given.
7191 if test "${with_multilib_list+set}" = set; then :
7192 withval=$with_multilib_list; :
7194 with_multilib_list=default
7198 # -------------------------
7199 # Checks for other programs
7200 # -------------------------
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7203 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7205 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7207 $as_echo_n "(cached) " >&6
7209 cat >conftest.make <<\_ACEOF
7212 @echo '@@@%%%=$(MAKE)=@@@%%%'
7214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7217 eval ac_cv_prog_make_${ac_make}_set=yes;;
7219 eval ac_cv_prog_make_${ac_make}_set=no;;
7223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7225 $as_echo "yes" >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7230 SET_MAKE="MAKE=${MAKE-make}"
7234 # Find some useful tools
7235 for ac_prog in gawk mawk nawk awk
7237 # Extract the first word of "$ac_prog", so it can be a program name with args.
7238 set dummy $ac_prog; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if test "${ac_cv_prog_AWK+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7244 if test -n "$AWK"; then
7245 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_AWK="$ac_prog"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 if test -n "$AWK"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7267 $as_echo "$AWK" >&6; }
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7274 test -n "$AWK" && break
7277 # We need awk to create options.c and options.h.
7278 # Bail out if it's missing.
7280 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7284 $as_echo_n "checking whether ln -s works... " >&6; }
7285 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7288 rm -f conftestdata_t
7289 echo >conftestdata_f
7290 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7292 gcc_cv_prog_LN_S="ln -s"
7294 if ln conftestdata_f conftestdata_t 2>/dev/null
7298 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7300 gcc_cv_prog_LN_S="cp -p"
7306 rm -f conftestdata_f conftestdata_t
7309 LN_S="$gcc_cv_prog_LN_S"
7310 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7312 $as_echo "yes" >&6; }
7314 if test "$gcc_cv_prog_LN_S" = "ln"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7316 $as_echo "no, using ln" >&6; }
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7319 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7324 $as_echo_n "checking whether ln works... " >&6; }
7325 if test "${acx_cv_prog_LN+set}" = set; then :
7326 $as_echo_n "(cached) " >&6
7328 rm -f conftestdata_t
7329 echo >conftestdata_f
7330 if ln conftestdata_f conftestdata_t 2>/dev/null
7336 rm -f conftestdata_f conftestdata_t
7339 if test $acx_cv_prog_LN = no; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7342 $as_echo "no, using $LN" >&6; }
7344 LN="$acx_cv_prog_LN"
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7346 $as_echo "yes" >&6; }
7349 if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$RANLIB"; then
7358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 RANLIB=$ac_cv_prog_RANLIB
7378 if test -n "$RANLIB"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7380 $as_echo "$RANLIB" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7388 if test -z "$ac_cv_prog_RANLIB"; then
7389 ac_ct_RANLIB=$RANLIB
7390 # Extract the first word of "ranlib", so it can be a program name with args.
7391 set dummy ranlib; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7397 if test -n "$ac_ct_RANLIB"; then
7398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_ac_ct_RANLIB="ranlib"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7418 if test -n "$ac_ct_RANLIB"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7420 $as_echo "$ac_ct_RANLIB" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7426 if test "x$ac_ct_RANLIB" = x; then
7429 case $cross_compiling:$ac_tool_warned in
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7435 RANLIB=$ac_ct_RANLIB
7438 RANLIB="$ac_cv_prog_RANLIB"
7443 # By default, the Darwin ranlib will not treat common symbols as
7444 # definitions when building the archive table of contents. Other
7445 # ranlibs do that; pass an option to the Darwin ranlib that makes
7446 # it behave similarly.
7454 # Find a good install program. We prefer a C program (faster),
7455 # so one script is as good as another. But avoid the broken or
7456 # incompatible versions:
7457 # SysV /etc/install, /usr/sbin/install
7458 # SunOS /usr/etc/install
7459 # IRIX /sbin/install
7461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7463 # ./install, which can be erroneously created by make from ./install.sh.
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7465 $as_echo_n "checking for a BSD compatible install... " >&6; }
7466 if test -z "$INSTALL"; then
7467 if test "${ac_cv_path_install+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7470 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7471 for ac_dir in $PATH; do
7472 # Account for people who put trailing slashes in PATH elements.
7474 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7476 # OSF1 and SCO ODT 3.0 have their own names for install.
7477 for ac_prog in ginstall scoinst install; do
7478 if test -f $ac_dir/$ac_prog; then
7479 if test $ac_prog = install &&
7480 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7481 # AIX install. It has an incompatible calling convention.
7482 # OSF/1 installbsd also uses dspmsg, but is usable.
7485 ac_cv_path_install="$ac_dir/$ac_prog -c"
7496 if test "${ac_cv_path_install+set}" = set; then
7497 INSTALL="$ac_cv_path_install"
7499 # As a last resort, use the slow shell script. We don't cache a
7500 # path for INSTALL within a source directory, because that will
7501 # break other packages using the cache if that directory is
7502 # removed, or if the path is relative.
7503 INSTALL="$ac_install_sh"
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7507 $as_echo "$INSTALL" >&6; }
7509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7510 # It thinks the first close brace ends the variable substitution.
7511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7513 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7516 # See if cmp has --ignore-initial.
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7518 $as_echo_n "checking for cmp's capabilities... " >&6; }
7519 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7524 gcc_cv_prog_cmp_skip=slowcompare
7525 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7526 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7529 gcc_cv_prog_cmp_skip=gnucompare
7532 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7533 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7534 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7537 gcc_cv_prog_cmp_skip=fastcompare
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7545 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7546 make_compare_target=$gcc_cv_prog_cmp_skip
7550 # See if we have the mktemp command.
7551 # Extract the first word of "mktemp", so it can be a program name with args.
7552 set dummy mktemp; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7558 if test -n "$have_mktemp_command"; then
7559 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_prog_have_mktemp_command="yes"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7579 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7580 if test -n "$have_mktemp_command"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7582 $as_echo "$have_mktemp_command" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7590 # See if makeinfo has been installed and is modern enough
7591 # that we can use it.
7593 # Extract the first word of "makeinfo", so it can be a program name with args.
7594 set dummy makeinfo; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$MAKEINFO"; then
7601 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_MAKEINFO="makeinfo"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 MAKEINFO=$ac_cv_prog_MAKEINFO
7621 if test -n "$MAKEINFO"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7623 $as_echo "$MAKEINFO" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7630 if test -n "$MAKEINFO"; then
7631 # Found it, now check the version.
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7633 $as_echo_n "checking for modern makeinfo... " >&6; }
7634 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7637 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7638 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7640 case $ac_prog_version in
7641 '') gcc_cv_prog_makeinfo_modern=no;;
7642 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7643 *) gcc_cv_prog_makeinfo_modern=no;;
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7648 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7650 gcc_cv_prog_makeinfo_modern=no
7652 if test $gcc_cv_prog_makeinfo_modern = no; then
7653 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7656 if test $gcc_cv_prog_makeinfo_modern = no; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7658 *** Makeinfo is missing or too old.
7659 *** Info documentation will not be built." >&5
7660 $as_echo "$as_me: WARNING:
7661 *** Makeinfo is missing or too old.
7662 *** Info documentation will not be built." >&2;}
7669 # Is pod2man recent enough to regenerate manpages?
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7671 $as_echo_n "checking for recent Pod::Man... " >&6; }
7672 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674 $as_echo "yes" >&6; }
7675 GENERATED_MANPAGES=generated-manpages
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7683 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7688 # Extract the first word of "$ac_prog", so it can be a program name with args.
7689 set dummy $ac_prog; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if test "${ac_cv_prog_FLEX+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
7695 if test -n "$FLEX"; then
7696 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_prog_FLEX="$ac_prog"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 FLEX=$ac_cv_prog_FLEX
7716 if test -n "$FLEX"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7718 $as_echo "$FLEX" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7725 test -n "$FLEX" && break
7727 test -n "$FLEX" || FLEX="$MISSING flex"
7731 for ac_prog in bison
7733 # Extract the first word of "$ac_prog", so it can be a program name with args.
7734 set dummy $ac_prog; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if test "${ac_cv_prog_BISON+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7740 if test -n "$BISON"; then
7741 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750 ac_cv_prog_BISON="$ac_prog"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 BISON=$ac_cv_prog_BISON
7761 if test -n "$BISON"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7763 $as_echo "$BISON" >&6; }
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7770 test -n "$BISON" && break
7772 test -n "$BISON" || BISON="$MISSING bison"
7775 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7776 # check for build == host before using them.
7779 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7780 && test -d ../binutils ; then
7781 NM='${objdir}/../binutils/nm-new'
7783 # Extract the first word of "nm", so it can be a program name with args.
7784 set dummy nm; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if test "${ac_cv_prog_NM+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7790 if test -n "$NM"; then
7791 ac_cv_prog_NM="$NM" # Let the user override the test.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7812 if test -n "$NM"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7814 $as_echo "$NM" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7824 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7825 && test -d ../binutils ; then
7826 AR='${objdir}/../binutils/ar'
7828 # Extract the first word of "ar", so it can be a program name with args.
7829 set dummy ar; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if test "${ac_cv_prog_AR+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7835 if test -n "$AR"; then
7836 ac_cv_prog_AR="$AR" # Let the user override the test.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7857 if test -n "$AR"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7859 $as_echo "$AR" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7869 # --------------------
7870 # Checks for C headers
7871 # --------------------
7873 # Need to reject headers which give warnings, so that the -Werror bootstrap
7874 # works later. *sigh* This needs to come before all header checks.
7876 ac_c_preproc_warn_flag=yes
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7879 $as_echo_n "checking for ANSI C header files... " >&6; }
7880 if test "${ac_cv_header_stdc+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7898 if ac_fn_c_try_compile "$LINENO"; then :
7899 ac_cv_header_stdc=yes
7901 ac_cv_header_stdc=no
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905 if test $ac_cv_header_stdc = yes; then
7906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913 $EGREP "memchr" >/dev/null 2>&1; then :
7916 ac_cv_header_stdc=no
7922 if test $ac_cv_header_stdc = yes; then
7923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 $EGREP "free" >/dev/null 2>&1; then :
7933 ac_cv_header_stdc=no
7939 if test $ac_cv_header_stdc = yes; then
7940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7941 if test "$cross_compiling" = yes; then :
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7948 #if ((' ' & 0x0FF) == 0x020)
7949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7952 # define ISLOWER(c) \
7953 (('a' <= (c) && (c) <= 'i') \
7954 || ('j' <= (c) && (c) <= 'r') \
7955 || ('s' <= (c) && (c) <= 'z'))
7956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7964 for (i = 0; i < 256; i++)
7965 if (XOR (islower (i), ISLOWER (i))
7966 || toupper (i) != TOUPPER (i))
7971 if ac_fn_c_try_run "$LINENO"; then :
7974 ac_cv_header_stdc=no
7976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7977 conftest.$ac_objext conftest.beam conftest.$ac_ext
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7983 $as_echo "$ac_cv_header_stdc" >&6; }
7984 if test $ac_cv_header_stdc = yes; then
7986 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7991 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7992 if test "${ac_cv_header_time+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 #include <sys/types.h>
7998 #include <sys/time.h>
8004 if ((struct tm *) 0)
8010 if ac_fn_c_try_compile "$LINENO"; then :
8011 ac_cv_header_time=yes
8013 ac_cv_header_time=no
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8018 $as_echo "$ac_cv_header_time" >&6; }
8019 if test $ac_cv_header_time = yes; then
8021 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8026 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8027 if test "${gcc_cv_header_string+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8033 #include <strings.h>
8042 if ac_fn_c_try_compile "$LINENO"; then :
8043 gcc_cv_header_string=yes
8045 gcc_cv_header_string=no
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8050 $as_echo "$gcc_cv_header_string" >&6; }
8051 if test $gcc_cv_header_string = yes; then
8053 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8058 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8059 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 #include <sys/types.h>
8065 #include <sys/wait.h>
8067 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8083 if ac_fn_c_try_compile "$LINENO"; then :
8084 ac_cv_header_sys_wait_h=yes
8086 ac_cv_header_sys_wait_h=no
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8091 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8092 if test $ac_cv_header_sys_wait_h = yes; then
8094 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8098 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8099 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8100 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8101 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8104 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8105 eval as_val=\$$as_ac_Header
8106 if test "x$as_val" = x""yes; then :
8107 cat >>confdefs.h <<_ACEOF
8108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8115 # Check for thread headers.
8116 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8117 if test "x$ac_cv_header_thread_h" = x""yes; then :
8123 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8124 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8131 # These tests can't be done till we know if we have limits.h.
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8133 $as_echo_n "checking for CHAR_BIT... " >&6; }
8134 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8139 #ifdef HAVE_LIMITS_H
8146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8147 $EGREP "found" >/dev/null 2>&1; then :
8148 gcc_cv_decl_char_bit=yes
8150 gcc_cv_decl_char_bit=no
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8157 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8158 if test $gcc_cv_decl_char_bit = no; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8160 $as_echo_n "checking number of bits in a byte... " >&6; }
8161 if test "${gcc_cv_c_nbby+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8166 while test $i -lt 65; do
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8174 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8175 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8181 if ac_fn_c_try_compile "$LINENO"; then :
8182 gcc_cv_c_nbby=$i; break
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8191 $as_echo "$gcc_cv_c_nbby" >&6; }
8192 if test $gcc_cv_c_nbby = failed; then
8193 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8196 cat >>confdefs.h <<_ACEOF
8197 #define CHAR_BIT $gcc_cv_c_nbby
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8203 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8204 if test "${ac_cv_c_bigendian+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8207 ac_cv_c_bigendian=unknown
8208 # See if we're dealing with a universal compiler.
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 #ifndef __APPLE_CC__
8212 not a universal capable compiler
8217 if ac_fn_c_try_compile "$LINENO"; then :
8219 # Check for potential -arch flags. It is not universal unless
8220 # there are at least two -arch flags with different values.
8223 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8224 if test -n "$ac_prev"; then
8226 i?86 | x86_64 | ppc | ppc64)
8227 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8230 ac_cv_c_bigendian=universal
8236 elif test "x$ac_word" = "x-arch"; then
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 if test $ac_cv_c_bigendian = unknown; then
8243 # See if sys/param.h defines the BYTE_ORDER macro.
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8246 #include <sys/types.h>
8247 #include <sys/param.h>
8252 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8253 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8262 if ac_fn_c_try_compile "$LINENO"; then :
8263 # It does; now see whether it defined to BIG_ENDIAN or not.
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 #include <sys/types.h>
8267 #include <sys/param.h>
8272 #if BYTE_ORDER != BIG_ENDIAN
8280 if ac_fn_c_try_compile "$LINENO"; then :
8281 ac_cv_c_bigendian=yes
8283 ac_cv_c_bigendian=no
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 if test $ac_cv_c_bigendian = unknown; then
8290 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8298 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8306 if ac_fn_c_try_compile "$LINENO"; then :
8307 # It does; now see whether it defined to _BIG_ENDIAN or not.
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8323 if ac_fn_c_try_compile "$LINENO"; then :
8324 ac_cv_c_bigendian=yes
8326 ac_cv_c_bigendian=no
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 if test $ac_cv_c_bigendian = unknown; then
8333 # Compile a test program.
8334 if test "$cross_compiling" = yes; then :
8335 # Try to guess by grepping values from an object file.
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 short int ascii_mm[] =
8339 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8340 short int ascii_ii[] =
8341 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8342 int use_ascii (int i) {
8343 return ascii_mm[i] + ascii_ii[i];
8345 short int ebcdic_ii[] =
8346 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8347 short int ebcdic_mm[] =
8348 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8349 int use_ebcdic (int i) {
8350 return ebcdic_mm[i] + ebcdic_ii[i];
8357 return use_ascii (foo) == use_ebcdic (foo);
8362 if ac_fn_c_try_compile "$LINENO"; then :
8363 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8364 ac_cv_c_bigendian=yes
8366 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8367 if test "$ac_cv_c_bigendian" = unknown; then
8368 ac_cv_c_bigendian=no
8370 # finding both strings is unlikely to happen, but who knows?
8371 ac_cv_c_bigendian=unknown
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 $ac_includes_default
8384 /* Are we little or big endian? From Harbison&Steele. */
8388 char c[sizeof (long int)];
8391 return u.c[sizeof (long int) - 1] == 1;
8397 if ac_fn_c_try_run "$LINENO"; then :
8398 ac_cv_c_bigendian=no
8400 ac_cv_c_bigendian=yes
8402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8403 conftest.$ac_objext conftest.beam conftest.$ac_ext
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8409 $as_echo "$ac_cv_c_bigendian" >&6; }
8410 case $ac_cv_c_bigendian in #(
8412 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8418 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8422 as_fn_error "unknown endianness
8423 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8427 # ----------------------
8428 # Checks for C++ headers
8429 # ----------------------
8432 ac_cpp='$CXXCPP $CPPFLAGS'
8433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8437 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8438 if test -z "$CXXCPP"; then
8439 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8442 # Double quotes because CXXCPP needs to be expanded
8443 for CXXCPP in "$CXX -E" "/lib/cpp"
8446 for ac_cxx_preproc_warn_flag in '' yes
8448 # Use a header file that comes with gcc, so configuring glibc
8449 # with a fresh cross-compiler works.
8450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8451 # <limits.h> exists even on freestanding compilers.
8452 # On the NeXT, cc -E runs the code through the compiler's parser,
8453 # not just through cpp. "Syntax error" is here to catch this case.
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8457 # include <limits.h>
8459 # include <assert.h>
8463 if ac_fn_cxx_try_cpp "$LINENO"; then :
8466 # Broken: fails on valid input.
8469 rm -f conftest.err conftest.$ac_ext
8471 # OK, works on sane cases. Now check whether nonexistent headers
8472 # can be detected and how.
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <ac_nonexistent.h>
8477 if ac_fn_cxx_try_cpp "$LINENO"; then :
8478 # Broken: success on invalid input.
8481 # Passes both tests.
8485 rm -f conftest.err conftest.$ac_ext
8488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8489 rm -f conftest.err conftest.$ac_ext
8490 if $ac_preproc_ok; then :
8495 ac_cv_prog_CXXCPP=$CXXCPP
8498 CXXCPP=$ac_cv_prog_CXXCPP
8500 ac_cv_prog_CXXCPP=$CXXCPP
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8503 $as_echo "$CXXCPP" >&6; }
8505 for ac_cxx_preproc_warn_flag in '' yes
8507 # Use a header file that comes with gcc, so configuring glibc
8508 # with a fresh cross-compiler works.
8509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8510 # <limits.h> exists even on freestanding compilers.
8511 # On the NeXT, cc -E runs the code through the compiler's parser,
8512 # not just through cpp. "Syntax error" is here to catch this case.
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8516 # include <limits.h>
8518 # include <assert.h>
8522 if ac_fn_cxx_try_cpp "$LINENO"; then :
8525 # Broken: fails on valid input.
8528 rm -f conftest.err conftest.$ac_ext
8530 # OK, works on sane cases. Now check whether nonexistent headers
8531 # can be detected and how.
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8534 #include <ac_nonexistent.h>
8536 if ac_fn_cxx_try_cpp "$LINENO"; then :
8537 # Broken: success on invalid input.
8540 # Passes both tests.
8544 rm -f conftest.err conftest.$ac_ext
8547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8548 rm -f conftest.err conftest.$ac_ext
8549 if $ac_preproc_ok; then :
8552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8555 See \`config.log' for more details." >&5
8556 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8557 See \`config.log' for more details." >&2;}; }
8561 ac_cpp='$CPP $CPPFLAGS'
8562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8568 ac_cpp='$CXXCPP $CPPFLAGS'
8569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8576 for ac_header in unordered_map
8578 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8579 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_UNORDERED_MAP 1
8587 for ac_header in tr1/unordered_map
8589 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8590 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8591 cat >>confdefs.h <<_ACEOF
8592 #define HAVE_TR1_UNORDERED_MAP 1
8598 for ac_header in ext/hash_map
8600 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8601 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8602 cat >>confdefs.h <<_ACEOF
8603 #define HAVE_EXT_HASH_MAP 1
8611 ac_cpp='$CPP $CPPFLAGS'
8612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8622 # These libraries may be used by collect2.
8623 # We may need a special search path to get them linked.
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8625 $as_echo_n "checking for collect2 libraries... " >&6; }
8626 if test "${gcc_cv_collect2_libs+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8630 for libs in '' -lld -lmld \
8631 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8632 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8638 /* Override any GCC internal prototype to avoid an error.
8639 Use char because int might match the return type of a GCC
8640 builtin and then its argument prototype would still apply. */
8653 if ac_fn_c_try_link "$LINENO"; then :
8654 gcc_cv_collect2_libs="$libs"; break
8656 rm -f core conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8660 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8663 $as_echo "$gcc_cv_collect2_libs" >&6; }
8664 case $gcc_cv_collect2_libs in
8666 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8670 # When building Ada code on Alpha, we need exc_resume which is usually in
8671 # -lexc. So test for it.
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8675 $as_echo_n "checking for library containing exc_resume... " >&6; }
8676 if test "${ac_cv_search_exc_resume+set}" = set; then :
8677 $as_echo_n "(cached) " >&6
8679 ac_func_search_save_LIBS=$LIBS
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8683 /* Override any GCC internal prototype to avoid an error.
8684 Use char because int might match the return type of a GCC
8685 builtin and then its argument prototype would still apply. */
8693 return exc_resume ();
8698 for ac_lib in '' exc; do
8699 if test -z "$ac_lib"; then
8700 ac_res="none required"
8703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8705 if ac_fn_c_try_link "$LINENO"; then :
8706 ac_cv_search_exc_resume=$ac_res
8708 rm -f core conftest.err conftest.$ac_objext \
8710 if test "${ac_cv_search_exc_resume+set}" = set; then :
8714 if test "${ac_cv_search_exc_resume+set}" = set; then :
8717 ac_cv_search_exc_resume=no
8720 LIBS=$ac_func_search_save_LIBS
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8723 $as_echo "$ac_cv_search_exc_resume" >&6; }
8724 ac_res=$ac_cv_search_exc_resume
8725 if test "$ac_res" != no; then :
8726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8734 # Some systems put ldexp and frexp in libm instead of libc; assume
8735 # they're both in the same place. jcf-dump needs them.
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8739 $as_echo_n "checking for library containing ldexp... " >&6; }
8740 if test "${ac_cv_search_ldexp+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8743 ac_func_search_save_LIBS=$LIBS
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8747 /* Override any GCC internal prototype to avoid an error.
8748 Use char because int might match the return type of a GCC
8749 builtin and then its argument prototype would still apply. */
8762 for ac_lib in '' m; do
8763 if test -z "$ac_lib"; then
8764 ac_res="none required"
8767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8769 if ac_fn_c_try_link "$LINENO"; then :
8770 ac_cv_search_ldexp=$ac_res
8772 rm -f core conftest.err conftest.$ac_objext \
8774 if test "${ac_cv_search_ldexp+set}" = set; then :
8778 if test "${ac_cv_search_ldexp+set}" = set; then :
8781 ac_cv_search_ldexp=no
8784 LIBS=$ac_func_search_save_LIBS
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8787 $as_echo "$ac_cv_search_ldexp" >&6; }
8788 ac_res=$ac_cv_search_ldexp
8789 if test "$ac_res" != no; then :
8790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8798 # Use <inttypes.h> only if it exists,
8799 # doesn't clash with <sys/types.h>, and declares intmax_t.
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8801 $as_echo_n "checking for inttypes.h... " >&6; }
8802 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <sys/types.h>
8808 #include <inttypes.h>
8817 if ac_fn_c_try_compile "$LINENO"; then :
8818 gcc_cv_header_inttypes_h=yes
8820 gcc_cv_header_inttypes_h=no
8822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8826 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8827 if test $gcc_cv_header_inttypes_h = yes; then
8829 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8835 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8836 sysconf strsignal getrusage nl_langinfo \
8837 gettimeofday mbstowcs wcswidth mmap setlocale \
8838 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
8840 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8841 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8842 eval as_val=\$$as_ac_var
8843 if test "x$as_val" = x""yes; then :
8844 cat >>confdefs.h <<_ACEOF
8845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8852 if test x$ac_cv_func_mbstowcs = xyes; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8854 $as_echo_n "checking whether mbstowcs works... " >&6; }
8855 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8856 $as_echo_n "(cached) " >&6
8858 if test "$cross_compiling" = yes; then :
8859 gcc_cv_func_mbstowcs_works=yes
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8870 if ac_fn_c_try_run "$LINENO"; then :
8871 gcc_cv_func_mbstowcs_works=yes
8873 gcc_cv_func_mbstowcs_works=no
8875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8876 conftest.$ac_objext conftest.beam conftest.$ac_ext
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8881 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8882 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8884 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8889 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8890 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8894 cat >>confdefs.h <<_ACEOF
8900 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8901 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8905 cat >>confdefs.h <<_ACEOF
8906 #define caddr_t char *
8913 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8914 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8915 gcc_header_sys_mman_h=yes
8917 gcc_header_sys_mman_h=no
8920 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8921 if test "x$ac_cv_func_mmap" = x""yes; then :
8927 if test "$gcc_header_sys_mman_h" != yes \
8928 || test "$gcc_func_mmap" != yes; then
8929 gcc_cv_func_mmap_file=no
8930 gcc_cv_func_mmap_dev_zero=no
8931 gcc_cv_func_mmap_anon=no
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8934 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8935 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8938 # Add a system to this blacklist if
8939 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8940 # memory area containing the same data that you'd get if you applied
8941 # read() to the same fd. The only system known to have a problem here
8942 # is VMS, where text files have record structure.
8945 gcc_cv_func_mmap_file=no ;;
8947 gcc_cv_func_mmap_file=yes;;
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8951 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8953 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8954 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
8957 # Add a system to this blacklist if it has mmap() but /dev/zero
8958 # does not exist, or if mmapping /dev/zero does not give anonymous
8959 # zeroed pages with both the following properties:
8960 # 1. If you map N consecutive pages in with one call, and then
8961 # unmap any subset of those pages, the pages that were not
8962 # explicitly unmapped remain accessible.
8963 # 2. If you map two adjacent blocks of memory and then unmap them
8964 # both at once, they must both go away.
8965 # Systems known to be in this category are Windows (all variants),
8968 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8969 gcc_cv_func_mmap_dev_zero=no ;;
8971 gcc_cv_func_mmap_dev_zero=yes;;
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8975 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8977 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8979 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8980 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 #include <sys/types.h>
8986 #include <sys/mman.h>
8989 #ifndef MAP_ANONYMOUS
8990 #define MAP_ANONYMOUS MAP_ANON
8996 int n = MAP_ANONYMOUS;
9001 if ac_fn_c_try_compile "$LINENO"; then :
9002 gcc_cv_decl_map_anon=yes
9004 gcc_cv_decl_map_anon=no
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9009 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9011 if test $gcc_cv_decl_map_anon = no; then
9012 gcc_cv_func_mmap_anon=no
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9015 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9016 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9019 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9020 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9021 # doesn't give anonymous zeroed pages with the same properties listed
9022 # above for use of /dev/zero.
9023 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9025 vms* | cygwin* | pe | mingw* | sco* | udk* )
9026 gcc_cv_func_mmap_anon=no ;;
9028 gcc_cv_func_mmap_anon=yes;;
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9032 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9036 if test $gcc_cv_func_mmap_file = yes; then
9038 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9041 if test $gcc_cv_func_mmap_dev_zero = yes; then
9043 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9046 if test $gcc_cv_func_mmap_anon = yes; then
9048 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9055 # Under VMS, vfork works very differently than on Unix. The standard test
9056 # won't work, and it isn't easily adaptable. It makes more sense to
9058 ac_cv_func_vfork_works=yes
9061 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9062 if test "x$ac_cv_type_pid_t" = x""yes; then :
9066 cat >>confdefs.h <<_ACEOF
9072 for ac_header in vfork.h
9074 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9075 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_VFORK_H 1
9083 for ac_func in fork vfork
9085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9087 eval as_val=\$$as_ac_var
9088 if test "x$as_val" = x""yes; then :
9089 cat >>confdefs.h <<_ACEOF
9090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9096 if test "x$ac_cv_func_fork" = xyes; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9098 $as_echo_n "checking for working fork... " >&6; }
9099 if test "${ac_cv_func_fork_works+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9102 if test "$cross_compiling" = yes; then :
9103 ac_cv_func_fork_works=cross
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9107 $ac_includes_default
9112 /* By Ruediger Kuhlmann. */
9119 if ac_fn_c_try_run "$LINENO"; then :
9120 ac_cv_func_fork_works=yes
9122 ac_cv_func_fork_works=no
9124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9125 conftest.$ac_objext conftest.beam conftest.$ac_ext
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9130 $as_echo "$ac_cv_func_fork_works" >&6; }
9133 ac_cv_func_fork_works=$ac_cv_func_fork
9135 if test "x$ac_cv_func_fork_works" = xcross; then
9137 *-*-amigaos* | *-*-msdosdjgpp*)
9138 # Override, as these systems have only a dummy fork() stub
9139 ac_cv_func_fork_works=no
9142 ac_cv_func_fork_works=yes
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9146 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9148 ac_cv_func_vfork_works=$ac_cv_func_vfork
9149 if test "x$ac_cv_func_vfork" = xyes; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9151 $as_echo_n "checking for working vfork... " >&6; }
9152 if test "${ac_cv_func_vfork_works+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9155 if test "$cross_compiling" = yes; then :
9156 ac_cv_func_vfork_works=cross
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160 /* Thanks to Paul Eggert for this test. */
9161 $ac_includes_default
9162 #include <sys/wait.h>
9166 /* On some sparc systems, changes by the child to local and incoming
9167 argument registers are propagated back to the parent. The compiler
9168 is told about this with #include <vfork.h>, but some compilers
9169 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9170 static variable whose address is put into a register that is
9171 clobbered by the vfork. */
9174 sparc_address_test (int arg)
9176 sparc_address_test (arg) int arg;
9197 pid_t parent = getpid ();
9200 sparc_address_test (0);
9205 /* Here is another test for sparc vfork register problems. This
9206 test uses lots of local variables, at least as many local
9207 variables as main has allocated so far including compiler
9208 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9209 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9210 reuse the register of parent for one of the local variables,
9211 since it will think that parent can't possibly be used any more
9212 in this routine. Assigning to the local variable will thus
9213 munge parent in the parent process. */
9215 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9216 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9217 /* Convince the compiler that p..p7 are live; otherwise, it might
9218 use the same hardware register for all 8 local variables. */
9219 if (p != p1 || p != p2 || p != p3 || p != p4
9220 || p != p5 || p != p6 || p != p7)
9223 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9224 from child file descriptors. If the child closes a descriptor
9225 before it execs or exits, this munges the parent's descriptor
9226 as well. Test for this by closing stdout in the child. */
9227 _exit(close(fileno(stdout)) != 0);
9232 while (wait(&status) != child)
9235 /* Was there some problem with vforking? */
9238 /* Did the child fail? (This shouldn't happen.) */
9241 /* Did the vfork/compiler bug occur? */
9242 || parent != getpid()
9244 /* Did the file descriptor bug occur? */
9245 || fstat(fileno(stdout), &st) != 0
9250 if ac_fn_c_try_run "$LINENO"; then :
9251 ac_cv_func_vfork_works=yes
9253 ac_cv_func_vfork_works=no
9255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9256 conftest.$ac_objext conftest.beam conftest.$ac_ext
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9261 $as_echo "$ac_cv_func_vfork_works" >&6; }
9264 if test "x$ac_cv_func_fork_works" = xcross; then
9265 ac_cv_func_vfork_works=$ac_cv_func_vfork
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9267 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9270 if test "x$ac_cv_func_vfork_works" = xyes; then
9272 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9276 $as_echo "#define vfork fork" >>confdefs.h
9279 if test "x$ac_cv_func_fork_works" = xyes; then
9281 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9287 if test "X$prefix" = "XNONE"; then
9288 acl_final_prefix="$ac_default_prefix"
9290 acl_final_prefix="$prefix"
9292 if test "X$exec_prefix" = "XNONE"; then
9293 acl_final_exec_prefix='${prefix}'
9295 acl_final_exec_prefix="$exec_prefix"
9297 acl_save_prefix="$prefix"
9298 prefix="$acl_final_prefix"
9299 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9300 prefix="$acl_save_prefix"
9303 # Check whether --with-gnu-ld was given.
9304 if test "${with_gnu_ld+set}" = set; then :
9305 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9310 # Prepare PATH_SEPARATOR.
9311 # The user is always right.
9312 if test "${PATH_SEPARATOR+set}" != set; then
9313 echo "#! /bin/sh" >conf$$.sh
9314 echo "exit 0" >>conf$$.sh
9316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9324 if test "$GCC" = yes; then
9325 # Check if gcc -print-prog-name=ld gives a path.
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9327 $as_echo_n "checking for ld used by GCC... " >&6; }
9330 # gcc leaves a trailing carriage return which upsets mingw
9331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9336 # Accept absolute paths.
9337 [\\/]* | [A-Za-z]:[\\/]*)
9338 re_direlt='/[^/][^/]*/\.\./'
9339 # Canonicalize the path of ld
9340 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9341 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9342 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9344 test -z "$LD" && LD="$ac_prog"
9347 # If it fails, then pretend we aren't using GCC.
9351 # If it is relative, then search for the first ld in PATH.
9355 elif test "$with_gnu_ld" = yes; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9357 $as_echo_n "checking for GNU ld... " >&6; }
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9360 $as_echo_n "checking for non-GNU ld... " >&6; }
9362 if test "${acl_cv_path_LD+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9365 if test -z "$LD"; then
9366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9367 for ac_dir in $PATH; do
9368 test -z "$ac_dir" && ac_dir=.
9369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9370 acl_cv_path_LD="$ac_dir/$ac_prog"
9371 # Check to see if the program is GNU ld. I'd rather use --version,
9372 # but apparently some GNU ld's only accept -v.
9373 # Break only if it was the GNU/non-GNU ld that we prefer.
9374 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9375 test "$with_gnu_ld" != no && break
9377 test "$with_gnu_ld" != yes && break
9383 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9387 LD="$acl_cv_path_LD"
9388 if test -n "$LD"; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9390 $as_echo "$LD" >&6; }
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 $as_echo "no" >&6; }
9395 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9398 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9401 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9402 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9403 acl_cv_prog_gnu_ld=yes
9405 acl_cv_prog_gnu_ld=no
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9409 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9410 with_gnu_ld=$acl_cv_prog_gnu_ld
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9415 $as_echo_n "checking for shared library run path origin... " >&6; }
9416 if test "${acl_cv_rpath+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9420 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9421 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9428 $as_echo "$acl_cv_rpath" >&6; }
9430 libext="$acl_cv_libext"
9431 shlibext="$acl_cv_shlibext"
9432 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9433 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9434 hardcode_direct="$acl_cv_hardcode_direct"
9435 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9436 # Check whether --enable-rpath was given.
9437 if test "${enable_rpath+set}" = set; then :
9438 enableval=$enable_rpath; :
9452 acl_save_prefix="$prefix"
9453 prefix="$acl_final_prefix"
9454 acl_save_exec_prefix="$exec_prefix"
9455 exec_prefix="$acl_final_exec_prefix"
9457 eval additional_includedir=\"$includedir\"
9458 eval additional_libdir=\"$libdir\"
9460 exec_prefix="$acl_save_exec_prefix"
9461 prefix="$acl_save_prefix"
9464 # Check whether --with-libiconv-prefix was given.
9465 if test "${with_libiconv_prefix+set}" = set; then :
9466 withval=$with_libiconv_prefix;
9467 if test "X$withval" = "Xno"; then
9470 if test "X$withval" = "X"; then
9472 acl_save_prefix="$prefix"
9473 prefix="$acl_final_prefix"
9474 acl_save_exec_prefix="$exec_prefix"
9475 exec_prefix="$acl_final_exec_prefix"
9477 eval additional_includedir=\"$includedir\"
9478 eval additional_libdir=\"$libdir\"
9480 exec_prefix="$acl_save_exec_prefix"
9481 prefix="$acl_save_prefix"
9484 additional_includedir="$withval/include"
9485 additional_libdir="$withval/lib"
9496 names_already_handled=
9497 names_next_round='iconv '
9498 while test -n "$names_next_round"; do
9499 names_this_round="$names_next_round"
9501 for name in $names_this_round; do
9503 for n in $names_already_handled; do
9504 if test "$n" = "$name"; then
9509 if test -z "$already_handled"; then
9510 names_already_handled="$names_already_handled $name"
9511 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9512 eval value=\"\$HAVE_LIB$uppername\"
9513 if test -n "$value"; then
9514 if test "$value" = yes; then
9515 eval value=\"\$LIB$uppername\"
9516 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9517 eval value=\"\$LTLIB$uppername\"
9518 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9527 if test $use_additional = yes; then
9528 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9529 found_dir="$additional_libdir"
9530 found_so="$additional_libdir/lib$name.$shlibext"
9531 if test -f "$additional_libdir/lib$name.la"; then
9532 found_la="$additional_libdir/lib$name.la"
9535 if test -f "$additional_libdir/lib$name.$libext"; then
9536 found_dir="$additional_libdir"
9537 found_a="$additional_libdir/lib$name.$libext"
9538 if test -f "$additional_libdir/lib$name.la"; then
9539 found_la="$additional_libdir/lib$name.la"
9544 if test "X$found_dir" = "X"; then
9545 for x in $LDFLAGS $LTLIBICONV; do
9547 acl_save_prefix="$prefix"
9548 prefix="$acl_final_prefix"
9549 acl_save_exec_prefix="$exec_prefix"
9550 exec_prefix="$acl_final_exec_prefix"
9552 exec_prefix="$acl_save_exec_prefix"
9553 prefix="$acl_save_prefix"
9557 dir=`echo "X$x" | sed -e 's/^X-L//'`
9558 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9560 found_so="$dir/lib$name.$shlibext"
9561 if test -f "$dir/lib$name.la"; then
9562 found_la="$dir/lib$name.la"
9565 if test -f "$dir/lib$name.$libext"; then
9567 found_a="$dir/lib$name.$libext"
9568 if test -f "$dir/lib$name.la"; then
9569 found_la="$dir/lib$name.la"
9575 if test "X$found_dir" != "X"; then
9580 if test "X$found_dir" != "X"; then
9581 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9582 if test "X$found_so" != "X"; then
9583 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9584 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9587 for x in $ltrpathdirs; do
9588 if test "X$x" = "X$found_dir"; then
9593 if test -z "$haveit"; then
9594 ltrpathdirs="$ltrpathdirs $found_dir"
9596 if test "$hardcode_direct" = yes; then
9597 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9599 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9600 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9602 for x in $rpathdirs; do
9603 if test "X$x" = "X$found_dir"; then
9608 if test -z "$haveit"; then
9609 rpathdirs="$rpathdirs $found_dir"
9613 for x in $LDFLAGS $LIBICONV; do
9615 acl_save_prefix="$prefix"
9616 prefix="$acl_final_prefix"
9617 acl_save_exec_prefix="$exec_prefix"
9618 exec_prefix="$acl_final_exec_prefix"
9620 exec_prefix="$acl_save_exec_prefix"
9621 prefix="$acl_save_prefix"
9623 if test "X$x" = "X-L$found_dir"; then
9628 if test -z "$haveit"; then
9629 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9631 if test "$hardcode_minus_L" != no; then
9632 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9634 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9640 if test "X$found_a" != "X"; then
9641 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9643 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9646 additional_includedir=
9647 case "$found_dir" in
9649 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9650 additional_includedir="$basedir/include"
9653 if test "X$additional_includedir" != "X"; then
9654 if test "X$additional_includedir" != "X/usr/include"; then
9656 if test "X$additional_includedir" = "X/usr/local/include"; then
9657 if test -n "$GCC"; then
9659 linux*) haveit=yes;;
9663 if test -z "$haveit"; then
9664 for x in $CPPFLAGS $INCICONV; do
9666 acl_save_prefix="$prefix"
9667 prefix="$acl_final_prefix"
9668 acl_save_exec_prefix="$exec_prefix"
9669 exec_prefix="$acl_final_exec_prefix"
9671 exec_prefix="$acl_save_exec_prefix"
9672 prefix="$acl_save_prefix"
9674 if test "X$x" = "X-I$additional_includedir"; then
9679 if test -z "$haveit"; then
9680 if test -d "$additional_includedir"; then
9681 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9687 if test -n "$found_la"; then
9688 save_libdir="$libdir"
9690 */* | *\\*) . "$found_la" ;;
9691 *) . "./$found_la" ;;
9693 libdir="$save_libdir"
9694 for dep in $dependency_libs; do
9697 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9698 if test "X$additional_libdir" != "X/usr/lib"; then
9700 if test "X$additional_libdir" = "X/usr/local/lib"; then
9701 if test -n "$GCC"; then
9703 linux*) haveit=yes;;
9707 if test -z "$haveit"; then
9709 for x in $LDFLAGS $LIBICONV; do
9711 acl_save_prefix="$prefix"
9712 prefix="$acl_final_prefix"
9713 acl_save_exec_prefix="$exec_prefix"
9714 exec_prefix="$acl_final_exec_prefix"
9716 exec_prefix="$acl_save_exec_prefix"
9717 prefix="$acl_save_prefix"
9719 if test "X$x" = "X-L$additional_libdir"; then
9724 if test -z "$haveit"; then
9725 if test -d "$additional_libdir"; then
9726 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9730 for x in $LDFLAGS $LTLIBICONV; do
9732 acl_save_prefix="$prefix"
9733 prefix="$acl_final_prefix"
9734 acl_save_exec_prefix="$exec_prefix"
9735 exec_prefix="$acl_final_exec_prefix"
9737 exec_prefix="$acl_save_exec_prefix"
9738 prefix="$acl_save_prefix"
9740 if test "X$x" = "X-L$additional_libdir"; then
9745 if test -z "$haveit"; then
9746 if test -d "$additional_libdir"; then
9747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9754 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9755 if test "$enable_rpath" != no; then
9757 for x in $rpathdirs; do
9758 if test "X$x" = "X$dir"; then
9763 if test -z "$haveit"; then
9764 rpathdirs="$rpathdirs $dir"
9767 for x in $ltrpathdirs; do
9768 if test "X$x" = "X$dir"; then
9773 if test -z "$haveit"; then
9774 ltrpathdirs="$ltrpathdirs $dir"
9779 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9782 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9785 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9786 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9792 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9793 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9799 if test "X$rpathdirs" != "X"; then
9800 if test -n "$hardcode_libdir_separator"; then
9802 for found_dir in $rpathdirs; do
9803 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9805 acl_save_libdir="$libdir"
9807 eval flag=\"$hardcode_libdir_flag_spec\"
9808 libdir="$acl_save_libdir"
9809 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9811 for found_dir in $rpathdirs; do
9812 acl_save_libdir="$libdir"
9814 eval flag=\"$hardcode_libdir_flag_spec\"
9815 libdir="$acl_save_libdir"
9816 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9820 if test "X$ltrpathdirs" != "X"; then
9821 for found_dir in $ltrpathdirs; do
9822 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9832 am_save_CPPFLAGS="$CPPFLAGS"
9834 for element in $INCICONV; do
9836 for x in $CPPFLAGS; do
9838 acl_save_prefix="$prefix"
9839 prefix="$acl_final_prefix"
9840 acl_save_exec_prefix="$exec_prefix"
9841 exec_prefix="$acl_final_exec_prefix"
9843 exec_prefix="$acl_save_exec_prefix"
9844 prefix="$acl_save_prefix"
9846 if test "X$x" = "X$element"; then
9851 if test -z "$haveit"; then
9852 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9858 $as_echo_n "checking for iconv... " >&6; }
9859 if test "${am_cv_func_iconv+set}" = set; then :
9860 $as_echo_n "(cached) " >&6
9863 am_cv_func_iconv="no, consider installing GNU libiconv"
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9872 iconv_t cd = iconv_open("","");
9873 iconv(cd,NULL,NULL,NULL,NULL);
9879 if ac_fn_c_try_link "$LINENO"; then :
9880 am_cv_func_iconv=yes
9882 rm -f core conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 if test "$am_cv_func_iconv" != yes; then
9885 am_save_LIBS="$LIBS"
9886 LIBS="$LIBS $LIBICONV"
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9894 iconv_t cd = iconv_open("","");
9895 iconv(cd,NULL,NULL,NULL,NULL);
9901 if ac_fn_c_try_link "$LINENO"; then :
9903 am_cv_func_iconv=yes
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS="$am_save_LIBS"
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9912 $as_echo "$am_cv_func_iconv" >&6; }
9913 if test "$am_cv_func_iconv" = yes; then
9915 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9918 if test "$am_cv_lib_iconv" = yes; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9920 $as_echo_n "checking how to link with libiconv... " >&6; }
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9922 $as_echo "$LIBICONV" >&6; }
9924 CPPFLAGS="$am_save_CPPFLAGS"
9931 if test "$am_cv_func_iconv" = yes; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9933 $as_echo_n "checking for iconv declaration... " >&6; }
9934 if test "${am_cv_proto_iconv+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9947 #if defined(__STDC__) || defined(__cplusplus)
9948 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9961 if ac_fn_c_try_compile "$LINENO"; then :
9962 am_cv_proto_iconv_arg1=""
9964 am_cv_proto_iconv_arg1="const"
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 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);"
9970 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9972 }$am_cv_proto_iconv" >&5
9974 }$am_cv_proto_iconv" >&6; }
9976 cat >>confdefs.h <<_ACEOF
9977 #define ICONV_CONST $am_cv_proto_iconv_arg1
9982 # Until we have in-tree GNU iconv:
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9988 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9989 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
10003 if ac_fn_c_try_link "$LINENO"; then :
10004 am_cv_val_LC_MESSAGES=yes
10006 am_cv_val_LC_MESSAGES=no
10008 rm -f core conftest.err conftest.$ac_objext \
10009 conftest$ac_exeext conftest.$ac_ext
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10012 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10013 if test $am_cv_val_LC_MESSAGES = yes; then
10015 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10022 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10023 if test "${am_cv_langinfo_codeset+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 #include <langinfo.h>
10032 char* cs = nl_langinfo(CODESET);
10037 if ac_fn_c_try_link "$LINENO"; then :
10038 am_cv_langinfo_codeset=yes
10040 am_cv_langinfo_codeset=no
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10047 $as_echo "$am_cv_langinfo_codeset" >&6; }
10048 if test $am_cv_langinfo_codeset = yes; then
10050 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10055 # We will need to find libiberty.h and ansidecl.h
10056 saved_CFLAGS="$CFLAGS"
10057 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10058 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10059 strsignal strstr strverscmp \
10060 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10061 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
10063 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10065 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10066 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10067 $as_echo_n "(cached) " >&6
10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h. */
10072 #define $ac_tr_decl 1
10074 #include "ansidecl.h"
10075 #include "system.h"
10081 char *(*pfn) = (char *(*)) $ac_func ;
10087 if ac_fn_c_try_compile "$LINENO"; then :
10088 eval "gcc_cv_have_decl_$ac_func=yes"
10090 eval "gcc_cv_have_decl_$ac_func=no"
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10097 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10098 #define $ac_tr_decl 1
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10104 #define $ac_tr_decl 0
10112 for ac_func in getrlimit setrlimit getrusage
10114 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10116 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10117 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10118 $as_echo_n "(cached) " >&6
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 #define $ac_tr_decl 1
10125 #include "ansidecl.h"
10126 #include "system.h"
10127 #ifdef HAVE_SYS_RESOURCE_H
10128 #include <sys/resource.h>
10136 char *(*pfn) = (char *(*)) $ac_func ;
10142 if ac_fn_c_try_compile "$LINENO"; then :
10143 eval "gcc_cv_have_decl_$ac_func=yes"
10145 eval "gcc_cv_have_decl_$ac_func=no"
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10153 #define $ac_tr_decl 1
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10159 #define $ac_tr_decl 0
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10170 #include "ansidecl.h"
10171 #include "system.h"
10172 #ifdef HAVE_SYS_RESOURCE_H
10173 #include <sys/resource.h>
10184 if ac_fn_c_try_compile "$LINENO"; then :
10188 $as_echo "#define rlim_t long" >>confdefs.h
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10194 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10195 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10196 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10197 for ac_func in ldgetname
10199 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10201 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10202 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10203 $as_echo_n "(cached) " >&6
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10208 #define $ac_tr_decl 1
10210 #include "ansidecl.h"
10211 #include "system.h"
10212 #ifdef HAVE_LDFCN_H
10223 char *(*pfn) = (char *(*)) $ac_func ;
10229 if ac_fn_c_try_compile "$LINENO"; then :
10230 eval "gcc_cv_have_decl_$ac_func=yes"
10232 eval "gcc_cv_have_decl_$ac_func=no"
10234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10237 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10239 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10240 #define $ac_tr_decl 1
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10246 #define $ac_tr_decl 0
10254 for ac_func in times
10256 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10258 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10259 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10260 $as_echo_n "(cached) " >&6
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10265 #define $ac_tr_decl 1
10267 #include "ansidecl.h"
10268 #include "system.h"
10269 #ifdef HAVE_SYS_TIMES_H
10270 #include <sys/times.h>
10278 char *(*pfn) = (char *(*)) $ac_func ;
10284 if ac_fn_c_try_compile "$LINENO"; then :
10285 eval "gcc_cv_have_decl_$ac_func=yes"
10287 eval "gcc_cv_have_decl_$ac_func=no"
10289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10294 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10295 #define $ac_tr_decl 1
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10301 #define $ac_tr_decl 0
10309 for ac_func in sigaltstack
10311 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10313 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10314 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10315 $as_echo_n "(cached) " >&6
10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h. */
10320 #define $ac_tr_decl 1
10322 #include "ansidecl.h"
10323 #include "system.h"
10324 #include <signal.h>
10331 char *(*pfn) = (char *(*)) $ac_func ;
10337 if ac_fn_c_try_compile "$LINENO"; then :
10338 eval "gcc_cv_have_decl_$ac_func=yes"
10340 eval "gcc_cv_have_decl_$ac_func=no"
10342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10348 #define $ac_tr_decl 1
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10354 #define $ac_tr_decl 0
10362 # More time-related stuff.
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10364 $as_echo_n "checking for struct tms... " >&6; }
10365 if test "${ac_cv_struct_tms+set}" = set; then :
10366 $as_echo_n "(cached) " >&6
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10372 #include "ansidecl.h"
10373 #include "system.h"
10374 #ifdef HAVE_SYS_TIMES_H
10375 #include <sys/times.h>
10386 if ac_fn_c_try_compile "$LINENO"; then :
10387 ac_cv_struct_tms=yes
10389 ac_cv_struct_tms=no
10391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10394 $as_echo "$ac_cv_struct_tms" >&6; }
10395 if test $ac_cv_struct_tms = yes; then
10397 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10401 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10402 # revisit after autoconf 2.50.
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10404 $as_echo_n "checking for clock_t... " >&6; }
10405 if test "${gcc_cv_type_clock_t+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10412 #include "ansidecl.h"
10413 #include "system.h"
10423 if ac_fn_c_try_compile "$LINENO"; then :
10424 gcc_cv_type_clock_t=yes
10426 gcc_cv_type_clock_t=no
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10431 $as_echo "$gcc_cv_type_clock_t" >&6; }
10432 if test $gcc_cv_type_clock_t = yes; then
10434 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10438 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10439 CFLAGS="$saved_CFLAGS"
10441 # Check whether --enable-initfini-array was given.
10442 if test "${enable_initfini_array+set}" = set; then :
10443 enableval=$enable_initfini_array;
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10447 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10448 if test "${gcc_cv_initfini_array+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10451 if test "$cross_compiling" = yes; then :
10452 gcc_cv_initfini_array=no
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10458 int main (void) { return x; }
10459 int foo (void) { x = 0; }
10460 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10462 if ac_fn_c_try_run "$LINENO"; then :
10463 gcc_cv_initfini_array=yes
10465 gcc_cv_initfini_array=no
10467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10468 conftest.$ac_objext conftest.beam conftest.$ac_ext
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10473 $as_echo "$gcc_cv_initfini_array" >&6; }
10474 enable_initfini_array=$gcc_cv_initfini_array
10478 if test $enable_initfini_array = yes; then
10480 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10484 # mkdir takes a single argument on some systems.
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10486 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10487 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10488 $as_echo_n "(cached) " >&6
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10493 #include <sys/types.h>
10494 #ifdef HAVE_SYS_STAT_H
10495 # include <sys/stat.h>
10497 #ifdef HAVE_UNISTD_H
10498 # include <unistd.h>
10500 #ifdef HAVE_DIRECT_H
10501 # include <direct.h>
10511 if ac_fn_c_try_compile "$LINENO"; then :
10512 gcc_cv_mkdir_takes_one_arg=no
10514 gcc_cv_mkdir_takes_one_arg=yes
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10519 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10520 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10522 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10533 # With Setjmp/Longjmp based exception handling.
10534 # Check whether --enable-sjlj-exceptions was given.
10535 if test "${enable_sjlj_exceptions+set}" = set; then :
10536 enableval=$enable_sjlj_exceptions; case $target in
10538 if test $enableval != yes; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10540 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10545 force_sjlj_exceptions=yes
10549 force_sjlj_exceptions=yes
10553 force_sjlj_exceptions=no
10558 if test $force_sjlj_exceptions = yes; then
10559 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10561 cat >>confdefs.h <<_ACEOF
10562 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10567 # For platforms with the unwind ABI which includes an unwind library,
10568 # libunwind, we can choose to use the system libunwind.
10569 # config.gcc also contains tests of with_system_libunwind.
10572 # Check whether --with-system-libunwind was given.
10573 if test "${with_system_libunwind+set}" = set; then :
10574 withval=$with_system_libunwind;
10577 # If system-libunwind was not specifically set, pick a default setting.
10578 if test x$with_system_libunwind = x; then
10580 ia64-*-hpux*) with_system_libunwind=yes ;;
10581 *) with_system_libunwind=no ;;
10584 # Based on system-libunwind and target, do we have ipinfo?
10585 if test x$with_system_libunwind = xyes; then
10587 ia64-*-*) have_unwind_getipinfo=no ;;
10588 *) have_unwind_getipinfo=yes ;;
10591 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10594 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10595 *) have_unwind_getipinfo=yes ;;
10600 if test x$have_unwind_getipinfo = xyes; then
10602 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10607 # --------------------------------------------------------
10608 # Build, host, and target specific configuration fragments
10609 # --------------------------------------------------------
10611 # Collect build-machine-specific information.
10612 . ${srcdir}/config.build
10614 # Collect host-machine-specific information.
10615 . ${srcdir}/config.host
10619 # Collect target-machine-specific information.
10620 . ${srcdir}/config.gcc
10622 extra_objs="${host_extra_objs} ${extra_objs}"
10623 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10625 # Default the target-machine variables that were not explicitly set.
10626 if test x"$tm_file" = x
10627 then tm_file=$cpu_type/$cpu_type.h; fi
10629 if test x"$extra_headers" = x
10630 then extra_headers=; fi
10632 if test x$md_file = x
10633 then md_file=$cpu_type/$cpu_type.md; fi
10635 if test x$out_file = x
10636 then out_file=$cpu_type/$cpu_type.c; fi
10638 if test x"$tmake_file" = x
10639 then tmake_file=$cpu_type/t-$cpu_type
10642 if test x"$dwarf2" = xyes
10643 then tm_file="$tm_file tm-dwarf2.h"
10646 # Say what files are being used for the output code and MD file.
10647 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10648 echo "Using \`$srcdir/config/$md_file' as machine description file."
10650 # If any of the xm_file variables contain nonexistent files, warn
10651 # about them and drop them.
10654 for x in $build_xm_file; do
10655 if test -f $srcdir/config/$x
10657 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10658 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10661 build_xm_file="$bx"
10664 for x in $host_xm_file; do
10665 if test -f $srcdir/config/$x
10667 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10668 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10674 for x in $xm_file; do
10675 if test -f $srcdir/config/$x
10677 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10678 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10684 for f in $tm_file; do
10687 if test $count = ax; then
10688 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10690 echo "Using the following target machine macro files:"
10691 for f in $tm_file; do
10692 echo " $srcdir/config/$f"
10696 if test x$need_64bit_hwint = xyes; then
10698 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10702 if test x$use_long_long_for_widest_fast_int = xyes; then
10704 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10709 for f in $host_xm_file; do
10712 if test $count = a; then
10714 elif test $count = ax; then
10715 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10717 echo "Using the following host machine macro files:"
10718 for f in $host_xm_file; do
10719 echo " $srcdir/config/$f"
10722 echo "Using ${out_host_hook_obj} for host machine hooks."
10724 if test "$host_xm_file" != "$build_xm_file"; then
10726 for f in $build_xm_file; do
10729 if test $count = a; then
10731 elif test $count = ax; then
10732 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10734 echo "Using the following build machine macro files:"
10735 for f in $build_xm_file; do
10736 echo " $srcdir/config/$f"
10742 powerpc*-*-darwin*)
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10744 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10745 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10751 #include <sys/cdefs.h>
10752 #include <sys/signal.h>
10753 #include <ucontext.h>
10754 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10757 if ac_fn_c_try_compile "$LINENO"; then :
10758 gcc_cv_mcontext_underscores=no
10760 gcc_cv_mcontext_underscores=yes
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10765 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10766 if test $gcc_cv_mcontext_underscores = yes; then
10768 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10778 # Check if a valid thread package
10779 case ${enable_threads} in
10782 target_thread_file='single'
10786 target_thread_file='single'
10788 aix | dce | gnat | irix | posix | posix95 | rtems | \
10789 single | solaris | vxworks | win32 | mipssde)
10790 target_thread_file=${enable_threads}
10793 echo "${enable_threads} is an unknown thread package" 1>&2
10798 if test x${thread_file} = x; then
10799 # No thread file set by target-specific clauses in config.gcc,
10800 # so use file chosen by default logic above
10801 thread_file=${target_thread_file}
10804 # Make gthr-default.h if we have a thread file.
10806 if test $thread_file != single; then
10807 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10808 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10809 rm -f gthr-default.h-t
10811 mv -f gthr-default.h-t gthr-default.h
10813 gthread_flags=-DHAVE_GTHR_DEFAULT
10822 if test x$enable___cxa_atexit = xyes || \
10823 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10824 if test x$host = x$target; then
10826 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10827 # keyed to flag_use_cxa_atexit
10832 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10833 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10836 echo "__cxa_atexit can't be enabled on this target"
10842 # We can't check for __cxa_atexit when building a cross, so assume
10846 if test x$use_cxa_atexit = xyes; then
10848 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10853 # Look for a file containing extra machine modes.
10854 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10855 extra_modes_file='$(srcdir)'/config/${extra_modes}
10858 cat >>confdefs.h <<_ACEOF
10859 #define EXTRA_MODES_FILE "config/$extra_modes"
10864 # Convert extra_options into a form suitable for Makefile use.
10867 for f in $extra_options; do
10868 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10869 all_opt_files="$all_opt_files $srcdir/config/$f"
10873 # auto-host.h is the file containing items generated by autoconf and is
10874 # the first file included by config.h.
10875 # If host=build, it is correct to have bconfig include auto-host.h
10876 # as well. If host!=build, we are in error and need to do more
10877 # work to find out the build config parameters.
10878 if test x$host = x$build
10880 build_auto=auto-host.h
10882 # We create a subdir, then run autoconf in the subdir.
10883 # To prevent recursion we set host and build for the new
10884 # invocation of configure to the build for this invocation
10891 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10892 *) realsrcdir=../${srcdir};;
10894 saved_CFLAGS="${CFLAGS}"
10895 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10896 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10897 ${realsrcdir}/configure \
10898 --enable-languages=${enable_languages-all} \
10899 --target=$target_alias --host=$build_alias --build=$build_alias
10900 CFLAGS="${saved_CFLAGS}"
10902 # We just finished tests for the build machine, so rename
10903 # the file auto-build.h in the gcc directory.
10904 mv auto-host.h ../auto-build.h
10907 build_auto=auto-build.h
10911 tm_file="${tm_file} defaults.h"
10912 tm_p_file="${tm_p_file} tm-preds.h"
10913 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10914 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10915 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10916 # put this back in temporarily.
10917 xm_file="auto-host.h ansidecl.h ${xm_file}"
10923 # Compile in configure arguments.
10924 if test -f configargs.h ; then
10925 # Being re-configured.
10926 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10927 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10929 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10932 # Double all backslashes and backslash all quotes to turn
10933 # gcc_config_arguments into a C string.
10934 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10935 $gcc_config_arguments
10937 gcc_config_arguments_str=`cat conftest.out`
10940 cat > configargs.h <<EOF
10941 /* Generated automatically. */
10942 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10943 static const char thread_model[] = "$thread_file";
10945 static const struct {
10946 const char *name, *value;
10947 } configure_default_options[] = $configure_default_options;
10950 gcc_BASEVER=`cat $srcdir/BASE-VER`
10951 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10952 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10953 if test -f $srcdir/REVISION ; then
10954 gcc_REVISION=`cat $srcdir/REVISION`
10958 cat > plugin-version.h <<EOF
10959 #include "configargs.h"
10961 static char basever[] = "$gcc_BASEVER";
10962 static char datestamp[] = "$gcc_DATESTAMP";
10963 static char devphase[] = "$gcc_DEVPHASE";
10964 static char revision[] = "$gcc_REVISION";
10966 /* FIXME plugins: We should make the version information more precise.
10967 One way to do is to add a checksum. */
10969 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10970 devphase, revision,
10971 configuration_arguments};
10974 # Internationalization
10975 # If we haven't got the data from the intl directory,
10976 # assume NLS is disabled.
10985 if test -f ../intl/config.intl; then
10986 . ../intl/config.intl
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10989 $as_echo_n "checking whether NLS is requested... " >&6; }
10990 if test x"$USE_NLS" != xyes; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10995 $as_echo "yes" >&6; }
10997 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11001 $as_echo_n "checking for catalogs to be installed... " >&6; }
11002 # Look for .po and .gmo files in the source directory.
11005 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11006 # If there aren't any .gmo files the shell will give us the
11007 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11009 case "$cat" in *\**)
11012 # The quadruple backslash is collapsed to a double backslash
11013 # by the backticks, then collapsed again by the double quotes,
11014 # leaving us with one backslash in the sed expression (right
11015 # before the dot that mustn't act as a wildcard).
11016 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11017 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11018 # The user is allowed to set LINGUAS to a list of languages to
11019 # install catalogs for. If it's empty that means "all of them."
11020 if test "x$LINGUAS" = x; then
11021 CATALOGS="$CATALOGS $cat"
11022 XLINGUAS="$XLINGUAS $lang"
11024 case "$LINGUAS" in *$lang*)
11025 CATALOGS="$CATALOGS $cat"
11026 XLINGUAS="$XLINGUAS $lang"
11031 LINGUAS="$XLINGUAS"
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11033 $as_echo "$LINGUAS" >&6; }
11046 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11047 # -liconv on the link line twice.
11048 case "$LIBINTL" in *$LIBICONV*)
11052 # Check whether --enable-secureplt was given.
11053 if test "${enable_secureplt+set}" = set; then :
11054 enableval=$enable_secureplt;
11058 # Check whether --enable-leading-mingw64-underscores was given.
11059 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11060 enableval=$enable_leading_mingw64_underscores;
11063 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11065 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11069 # Check whether --enable-cld was given.
11070 if test "${enable_cld+set}" = set; then :
11071 enableval=$enable_cld;
11077 # Check whether --enable-frame-pointer was given.
11078 if test "${enable_frame_pointer+set}" = set; then :
11079 enableval=$enable_frame_pointer;
11083 linux* | darwin[8912]*)
11084 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11086 enable_frame_pointer=no
11089 enable_frame_pointer=yes
11096 # Windows32 Registry support for specifying GCC installation paths.
11097 # Check whether --enable-win32-registry was given.
11098 if test "${enable_win32_registry+set}" = set; then :
11099 enableval=$enable_win32_registry;
11104 win32 | pe | cygwin* | mingw32* | uwin*)
11105 if test "x$enable_win32_registry" != xno; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11107 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11108 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11109 $as_echo_n "(cached) " >&6
11111 ac_func_search_save_LIBS=$LIBS
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11121 char RegOpenKeyExA ();
11125 return RegOpenKeyExA ();
11130 for ac_lib in '' advapi32; do
11131 if test -z "$ac_lib"; then
11132 ac_res="none required"
11135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11137 if ac_fn_c_try_link "$LINENO"; then :
11138 ac_cv_search_RegOpenKeyExA=$ac_res
11140 rm -f core conftest.err conftest.$ac_objext \
11142 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11146 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11149 ac_cv_search_RegOpenKeyExA=no
11151 rm conftest.$ac_ext
11152 LIBS=$ac_func_search_save_LIBS
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11155 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11156 ac_res=$ac_cv_search_RegOpenKeyExA
11157 if test "$ac_res" != no; then :
11158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11161 enable_win32_registry=no
11166 if test "x$enable_win32_registry" != xno; then
11168 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11171 if test "x$enable_win32_registry" != xyes \
11172 && test "x$enable_win32_registry" != x; then
11174 cat >>confdefs.h <<_ACEOF
11175 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11183 # Get an absolute path to the GCC top-level source directory
11184 holddir=`${PWDCMD-pwd}`
11186 topdir=`${PWDCMD-pwd}`
11189 # Conditionalize the makefile for this host machine.
11191 for f in ${host_xmake_file}
11193 if test -f ${srcdir}/config/$f
11195 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11199 # Conditionalize the makefile for this target machine.
11201 for f in ${tmake_file}
11203 if test -f ${srcdir}/config/$f
11205 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11208 tmake_file="${tmake_file_}"
11210 out_object_file=`basename $out_file .c`.o
11212 tm_file_list="options.h"
11213 tm_include_list="options.h insn-constants.h"
11214 for f in $tm_file; do
11217 f=`echo $f | sed 's/^..//'`
11218 tm_file_list="${tm_file_list} $f"
11219 tm_include_list="${tm_include_list} $f"
11222 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11223 tm_include_list="${tm_include_list} $f"
11226 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11227 tm_include_list="${tm_include_list} config/$f"
11234 for f in $tm_p_file; do
11237 tm_p_file_list="${tm_p_file_list} $f"
11238 tm_p_include_list="${tm_p_include_list} $f"
11241 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11242 tm_p_include_list="${tm_p_include_list} config/$f"
11248 for f in $xm_file; do
11251 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11252 xm_include_list="${xm_include_list} $f"
11255 xm_file_list="${xm_file_list} $f"
11256 xm_include_list="${xm_include_list} $f"
11259 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11260 xm_include_list="${xm_include_list} config/$f"
11266 host_xm_include_list=
11267 for f in $host_xm_file; do
11270 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11271 host_xm_include_list="${host_xm_include_list} $f"
11274 host_xm_file_list="${host_xm_file_list} $f"
11275 host_xm_include_list="${host_xm_include_list} $f"
11278 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11279 host_xm_include_list="${host_xm_include_list} config/$f"
11284 build_xm_file_list=
11285 for f in $build_xm_file; do
11288 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11289 build_xm_include_list="${build_xm_include_list} $f"
11291 auto-build.h | auto-host.h )
11292 build_xm_file_list="${build_xm_file_list} $f"
11293 build_xm_include_list="${build_xm_include_list} $f"
11296 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11297 build_xm_include_list="${build_xm_include_list} config/$f"
11302 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11303 # cross-compiler which does not use the native headers and libraries.
11304 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11307 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11309 if test "x$with_build_sysroot" != x; then
11310 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11312 # This value is used, even on a native system, because
11313 # CROSS_SYSTEM_HEADER_DIR is just
11314 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11315 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11318 if test x$host != x$target
11320 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11322 SYSTEM_HEADER_DIR=$build_system_header_dir
11323 case "$host","$target" in
11324 # Darwin crosses can use the host system's libraries and headers,
11325 # because of the fat library support. Of course, it must be the
11326 # same version of Darwin on both sides. Allow the user to
11327 # just say --target=foo-darwin without a version number to mean
11328 # "the version on this system".
11329 *-*-darwin*,*-*-darwin*)
11330 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11331 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11332 if test $hostos = $targetos -o $targetos = darwin ; then
11334 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11339 i?86-*-*,x86_64-*-* \
11340 | powerpc*-*-*,powerpc64*-*-*)
11341 CROSS="$CROSS -DNATIVE_CROSS" ;;
11346 if test "x$with_headers" = x; then
11353 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11354 SYSTEM_HEADER_DIR=$build_system_header_dir
11357 # If this is a cross-compiler that does not
11358 # have its own set of headers then define
11361 # If this is using newlib, without having the headers available now,
11362 # then define inhibit_libc in LIBGCC2_CFLAGS.
11363 # This prevents libgcc2 from containing any code which requires libc
11365 : ${inhibit_libc=false}
11366 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11367 test x$with_newlib = xyes ; } &&
11368 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11373 # When building gcc with a cross-compiler, we need to adjust things so
11374 # that the generator programs are still built with the native compiler.
11375 # Also, we cannot run fixincludes.
11377 # These are the normal (build=host) settings:
11378 CC_FOR_BUILD='$(CC)'
11379 BUILD_CFLAGS='$(ALL_CFLAGS)'
11380 BUILD_LDFLAGS='$(LDFLAGS)'
11381 STMP_FIXINC=stmp-fixinc
11383 # And these apply if build != host, or we are generating coverage data
11384 if test x$build != x$host || test "x$coverage_flags" != x
11386 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11387 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11390 # Expand extra_headers to include complete path.
11391 # This substitutes for lots of t-* files.
11392 extra_headers_list=
11393 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11394 for file in ${extra_headers} ; do
11395 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11398 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11399 if test x"$use_gcc_tgmath" = xyes
11400 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11403 # Define collect2 in Makefile.
11404 case $host_can_use_collect2 in
11406 *) collect2='collect2$(exeext)' ;;
11410 # Add a definition of USE_COLLECT2 if system wants one.
11411 case $use_collect2 in
11412 no) use_collect2= ;;
11415 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11416 xm_defines="${xm_defines} USE_COLLECT2"
11417 case $host_can_use_collect2 in
11419 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11426 cat >>confdefs.h <<_ACEOF
11427 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11431 # ---------------------------
11432 # Assembler & linker features
11433 # ---------------------------
11435 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11436 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11437 # However when ld-new is first executed from the build tree, libtool will
11438 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11439 # to the build tree. While doing this we need to use the previous-stage
11440 # linker, or we have an infinite loop. The presence of a shell script as
11441 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11442 # the gcc/collect-ld script. So we need to know how libtool works, or
11443 # exec-tool will fail.
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11449 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11454 macro_version='2.2.7a'
11455 macro_revision='1.3134'
11469 ltmain="$ac_aux_dir/ltmain.sh"
11471 # Backslashify metacharacters that are still active within
11472 # double-quoted strings.
11473 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11475 # Same as above, but do not quote variable references.
11476 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11478 # Sed substitution to delay expansion of an escaped shell variable in a
11479 # double_quote_subst'ed string.
11480 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11482 # Sed substitution to delay expansion of an escaped single quote.
11483 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11485 # Sed substitution to avoid accidental globbing in evaled expressions
11486 no_glob_subst='s/\*/\\\*/g'
11488 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11489 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11490 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11493 $as_echo_n "checking how to print strings... " >&6; }
11494 # Test print first, because it will be a builtin if present.
11495 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11496 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11498 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11501 # Use this function as a fallback that always works.
11502 func_fallback_echo ()
11504 eval 'cat <<_LTECHO_EOF
11508 ECHO='func_fallback_echo'
11511 # func_echo_all arg...
11512 # Invoke $ECHO with all args, space-separated.
11519 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11520 $as_echo "printf" >&6; } ;;
11521 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11522 $as_echo "print -r" >&6; } ;;
11523 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11524 $as_echo "cat" >&6; } ;;
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11541 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11542 if test "${ac_cv_path_SED+set}" = set; then :
11543 $as_echo_n "(cached) " >&6
11545 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11546 for ac_i in 1 2 3 4 5 6 7; do
11547 ac_script="$ac_script$as_nl$ac_script"
11549 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11550 { ac_script=; unset ac_script;}
11551 if test -z "$SED"; then
11552 ac_path_SED_found=false
11553 # Loop through the user's path and test for each of PROGNAME-LIST
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11558 test -z "$as_dir" && as_dir=.
11559 for ac_prog in sed gsed; do
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11562 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11563 # Check for GNU ac_path_SED and select it if it is found.
11564 # Check for GNU $ac_path_SED
11565 case `"$ac_path_SED" --version 2>&1` in
11567 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11570 $as_echo_n 0123456789 >"conftest.in"
11573 cat "conftest.in" "conftest.in" >"conftest.tmp"
11574 mv "conftest.tmp" "conftest.in"
11575 cp "conftest.in" "conftest.nl"
11576 $as_echo '' >> "conftest.nl"
11577 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11579 as_fn_arith $ac_count + 1 && ac_count=$as_val
11580 if test $ac_count -gt ${ac_path_SED_max-0}; then
11581 # Best one so far, save it but keep looking for a better one
11582 ac_cv_path_SED="$ac_path_SED"
11583 ac_path_SED_max=$ac_count
11585 # 10*(2^10) chars as input seems more than enough
11586 test $ac_count -gt 10 && break
11588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11591 $ac_path_SED_found && break 3
11596 if test -z "$ac_cv_path_SED"; then
11597 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11600 ac_cv_path_SED=$SED
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11605 $as_echo "$ac_cv_path_SED" >&6; }
11606 SED="$ac_cv_path_SED"
11609 test -z "$SED" && SED=sed
11610 Xsed="$SED -e 1s/^X//"
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11623 $as_echo_n "checking for fgrep... " >&6; }
11624 if test "${ac_cv_path_FGREP+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11627 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11628 then ac_cv_path_FGREP="$GREP -F"
11630 if test -z "$FGREP"; then
11631 ac_path_FGREP_found=false
11632 # Loop through the user's path and test for each of PROGNAME-LIST
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11637 test -z "$as_dir" && as_dir=.
11638 for ac_prog in fgrep; do
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11641 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11642 # Check for GNU ac_path_FGREP and select it if it is found.
11643 # Check for GNU $ac_path_FGREP
11644 case `"$ac_path_FGREP" --version 2>&1` in
11646 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11649 $as_echo_n 0123456789 >"conftest.in"
11652 cat "conftest.in" "conftest.in" >"conftest.tmp"
11653 mv "conftest.tmp" "conftest.in"
11654 cp "conftest.in" "conftest.nl"
11655 $as_echo 'FGREP' >> "conftest.nl"
11656 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11658 as_fn_arith $ac_count + 1 && ac_count=$as_val
11659 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11660 # Best one so far, save it but keep looking for a better one
11661 ac_cv_path_FGREP="$ac_path_FGREP"
11662 ac_path_FGREP_max=$ac_count
11664 # 10*(2^10) chars as input seems more than enough
11665 test $ac_count -gt 10 && break
11667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11670 $ac_path_FGREP_found && break 3
11675 if test -z "$ac_cv_path_FGREP"; then
11676 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11679 ac_cv_path_FGREP=$FGREP
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11685 $as_echo "$ac_cv_path_FGREP" >&6; }
11686 FGREP="$ac_cv_path_FGREP"
11689 test -z "$GREP" && GREP=grep
11709 # Check whether --with-gnu-ld was given.
11710 if test "${with_gnu_ld+set}" = set; then :
11711 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11717 if test "$GCC" = yes; then
11718 # Check if gcc -print-prog-name=ld gives a path.
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11720 $as_echo_n "checking for ld used by $CC... " >&6; }
11723 # gcc leaves a trailing carriage return which upsets mingw
11724 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11726 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11729 # Accept absolute paths.
11731 re_direlt='/[^/][^/]*/\.\./'
11732 # Canonicalize the pathname of ld
11733 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11734 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11735 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11737 test -z "$LD" && LD="$ac_prog"
11740 # If it fails, then pretend we aren't using GCC.
11744 # If it is relative, then search for the first ld in PATH.
11745 with_gnu_ld=unknown
11748 elif test "$with_gnu_ld" = yes; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11750 $as_echo_n "checking for GNU ld... " >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11753 $as_echo_n "checking for non-GNU ld... " >&6; }
11755 if test "${lt_cv_path_LD+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11758 if test -z "$LD"; then
11759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11760 for ac_dir in $PATH; do
11762 test -z "$ac_dir" && ac_dir=.
11763 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11764 lt_cv_path_LD="$ac_dir/$ac_prog"
11765 # Check to see if the program is GNU ld. I'd rather use --version,
11766 # but apparently some variants of GNU ld only accept -v.
11767 # Break only if it was the GNU/non-GNU ld that we prefer.
11768 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11769 *GNU* | *'with BFD'*)
11770 test "$with_gnu_ld" != no && break
11773 test "$with_gnu_ld" != yes && break
11780 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11784 LD="$lt_cv_path_LD"
11785 if test -n "$LD"; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11787 $as_echo "$LD" >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11792 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11794 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11795 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11798 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11799 case `$LD -v 2>&1 </dev/null` in
11800 *GNU* | *'with BFD'*)
11801 lt_cv_prog_gnu_ld=yes
11804 lt_cv_prog_gnu_ld=no
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11809 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11810 with_gnu_ld=$lt_cv_prog_gnu_ld
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11821 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11822 if test "${lt_cv_path_NM+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
11825 if test -n "$NM"; then
11826 # Let the user override the test.
11827 lt_cv_path_NM="$NM"
11829 lt_nm_to_check="${ac_tool_prefix}nm"
11830 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11831 lt_nm_to_check="$lt_nm_to_check nm"
11833 for lt_tmp_nm in $lt_nm_to_check; do
11834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11835 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11837 test -z "$ac_dir" && ac_dir=.
11838 tmp_nm="$ac_dir/$lt_tmp_nm"
11839 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11840 # Check to see if the nm accepts a BSD-compat flag.
11841 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11842 # nm: unknown option "B" ignored
11843 # Tru64's nm complains that /dev/null is an invalid object file
11844 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11845 */dev/null* | *'Invalid file or object type'*)
11846 lt_cv_path_NM="$tmp_nm -B"
11850 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11852 lt_cv_path_NM="$tmp_nm -p"
11856 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11857 continue # so that we can try to find one that supports BSD flags
11866 : ${lt_cv_path_NM=no}
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11870 $as_echo "$lt_cv_path_NM" >&6; }
11871 if test "$lt_cv_path_NM" != "no"; then
11872 NM="$lt_cv_path_NM"
11874 # Didn't find any BSD compatible name lister, look for dumpbin.
11875 if test -n "$DUMPBIN"; then :
11876 # Let the user override the test.
11878 if test -n "$ac_tool_prefix"; then
11879 for ac_prog in dumpbin "link -dump"
11881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884 $as_echo_n "checking for $ac_word... " >&6; }
11885 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11888 if test -n "$DUMPBIN"; then
11889 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 DUMPBIN=$ac_cv_prog_DUMPBIN
11909 if test -n "$DUMPBIN"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11911 $as_echo "$DUMPBIN" >&6; }
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11918 test -n "$DUMPBIN" && break
11921 if test -z "$DUMPBIN"; then
11922 ac_ct_DUMPBIN=$DUMPBIN
11923 for ac_prog in dumpbin "link -dump"
11925 # Extract the first word of "$ac_prog", so it can be a program name with args.
11926 set dummy $ac_prog; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11932 if test -n "$ac_ct_DUMPBIN"; then
11933 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936 for as_dir in $PATH
11939 test -z "$as_dir" && as_dir=.
11940 for ac_exec_ext in '' $ac_executable_extensions; do
11941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11942 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11953 if test -n "$ac_ct_DUMPBIN"; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11955 $as_echo "$ac_ct_DUMPBIN" >&6; }
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11962 test -n "$ac_ct_DUMPBIN" && break
11965 if test "x$ac_ct_DUMPBIN" = x; then
11968 case $cross_compiling:$ac_tool_warned in
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11972 ac_tool_warned=yes ;;
11974 DUMPBIN=$ac_ct_DUMPBIN
11978 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11980 DUMPBIN="$DUMPBIN -symbols"
11988 if test "$DUMPBIN" != ":"; then
11992 test -z "$NM" && NM=nm
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12000 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12001 if test "${lt_cv_nm_interface+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12004 lt_cv_nm_interface="BSD nm"
12005 echo "int some_variable = 0;" > conftest.$ac_ext
12006 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12007 (eval "$ac_compile" 2>conftest.err)
12008 cat conftest.err >&5
12009 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12010 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12011 cat conftest.err >&5
12012 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12013 cat conftest.out >&5
12014 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12015 lt_cv_nm_interface="MS dumpbin"
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12020 $as_echo "$lt_cv_nm_interface" >&6; }
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12023 $as_echo_n "checking whether ln -s works... " >&6; }
12025 if test "$LN_S" = "ln -s"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027 $as_echo "yes" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12030 $as_echo "no, using $LN_S" >&6; }
12033 # find the maximum length of command line arguments
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12035 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12036 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12044 # On DJGPP, this test can blow up pretty badly due to problems in libc
12045 # (any single argument exceeding 2000 bytes causes a buffer overrun
12046 # during glob expansion). Even if it were fixed, the result of this
12047 # check would be larger than it should be.
12048 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12052 # Under GNU Hurd, this test is not required because there is
12053 # no limit to the length of command line arguments.
12054 # Libtool will interpret -1 as no limit whatsoever
12055 lt_cv_sys_max_cmd_len=-1;
12058 cygwin* | mingw* | cegcc*)
12059 # On Win9x/ME, this test blows up -- it succeeds, but takes
12060 # about 5 minutes as the teststring grows exponentially.
12061 # Worse, since 9x/ME are not pre-emptively multitasking,
12062 # you end up with a "frozen" computer, even though with patience
12063 # the test eventually succeeds (with a max line length of 256k).
12064 # Instead, let's just punt: use the minimum linelength reported by
12065 # all of the supported platforms: 8192 (on NT/2K/XP).
12066 lt_cv_sys_max_cmd_len=8192;
12070 # On MiNT this can take a long time and run out of memory.
12071 lt_cv_sys_max_cmd_len=8192;
12075 # On AmigaOS with pdksh, this test takes hours, literally.
12076 # So we just punt and use a minimum line length of 8192.
12077 lt_cv_sys_max_cmd_len=8192;
12080 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12081 # This has been around since 386BSD, at least. Likely further.
12082 if test -x /sbin/sysctl; then
12083 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12084 elif test -x /usr/sbin/sysctl; then
12085 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12087 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12089 # And add a safety zone
12090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12095 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12096 lt_cv_sys_max_cmd_len=196608
12100 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12101 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12102 # nice to cause kernel panics so lets avoid the loop below.
12103 # First set a reasonable default.
12104 lt_cv_sys_max_cmd_len=16384
12106 if test -x /sbin/sysconfig; then
12107 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12108 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12113 lt_cv_sys_max_cmd_len=102400
12115 sysv5* | sco5v6* | sysv4.2uw2*)
12116 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12117 if test -n "$kargmax"; then
12118 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12120 lt_cv_sys_max_cmd_len=32768
12124 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12125 if test -n "$lt_cv_sys_max_cmd_len"; then
12126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12129 # Make teststring a little bigger before we do anything with it.
12130 # a 1K string should be a reasonable start.
12131 for i in 1 2 3 4 5 6 7 8 ; do
12132 teststring=$teststring$teststring
12134 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12135 # If test is not a shell built-in, we'll probably end up computing a
12136 # maximum length that is only half of the actual maximum length, but
12138 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12139 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12140 test $i != 17 # 1/2 MB should be enough
12143 teststring=$teststring$teststring
12145 # Only check the string length outside the loop.
12146 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12148 # Add a significant safety factor because C++ compilers can tack on
12149 # massive amounts of additional arguments before passing them to the
12150 # linker. It appears as though 1/2 is a usable value.
12151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12158 if test -n $lt_cv_sys_max_cmd_len ; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12160 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12163 $as_echo "none" >&6; }
12165 max_cmd_len=$lt_cv_sys_max_cmd_len
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12177 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12178 # Try some XSI features
12180 ( _lt_dummy="a/b/c"
12181 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12183 && eval 'test $(( 1 + 1 )) -eq 2 \
12184 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12187 $as_echo "$xsi_shell" >&6; }
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12191 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12193 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12195 && lt_shell_append=yes
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12197 $as_echo "$lt_shell_append" >&6; }
12200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12210 # test EBCDIC or ASCII
12211 case `echo X|tr X '\101'` in
12212 A) # ASCII based system
12213 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12214 lt_SP2NL='tr \040 \012'
12215 lt_NL2SP='tr \015\012 \040\040'
12217 *) # EBCDIC based system
12218 lt_SP2NL='tr \100 \n'
12219 lt_NL2SP='tr \r\n \100\100'
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12232 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12233 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12236 lt_cv_ld_reload_flag='-r'
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12239 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12240 reload_flag=$lt_cv_ld_reload_flag
12241 case $reload_flag in
12243 *) reload_flag=" $reload_flag" ;;
12245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12248 if test "$GCC" = yes; then
12249 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12251 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12264 if test -n "$ac_tool_prefix"; then
12265 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12266 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12268 $as_echo_n "checking for $ac_word... " >&6; }
12269 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12272 if test -n "$OBJDUMP"; then
12273 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12282 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 OBJDUMP=$ac_cv_prog_OBJDUMP
12293 if test -n "$OBJDUMP"; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12295 $as_echo "$OBJDUMP" >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12303 if test -z "$ac_cv_prog_OBJDUMP"; then
12304 ac_ct_OBJDUMP=$OBJDUMP
12305 # Extract the first word of "objdump", so it can be a program name with args.
12306 set dummy objdump; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12312 if test -n "$ac_ct_OBJDUMP"; then
12313 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12322 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12333 if test -n "$ac_ct_OBJDUMP"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12335 $as_echo "$ac_ct_OBJDUMP" >&6; }
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12341 if test "x$ac_ct_OBJDUMP" = x; then
12344 case $cross_compiling:$ac_tool_warned in
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12348 ac_tool_warned=yes ;;
12350 OBJDUMP=$ac_ct_OBJDUMP
12353 OBJDUMP="$ac_cv_prog_OBJDUMP"
12356 test -z "$OBJDUMP" && OBJDUMP=objdump
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12367 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12368 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
12371 lt_cv_file_magic_cmd='$MAGIC_CMD'
12372 lt_cv_file_magic_test_file=
12373 lt_cv_deplibs_check_method='unknown'
12374 # Need to set the preceding variable on all platforms that support
12375 # interlibrary dependencies.
12376 # 'none' -- dependencies not supported.
12377 # `unknown' -- same as none, but documents that we really don't know.
12378 # 'pass_all' -- all dependencies passed with no checks.
12379 # 'test_compile' -- check by making test program.
12380 # 'file_magic [[regex]]' -- check by looking for files in library path
12381 # which responds to the $file_magic_cmd with a given extended regex.
12382 # If you have `file' or equivalent on your system and you're not sure
12383 # whether `pass_all' will *always* work, you probably want this one.
12387 lt_cv_deplibs_check_method=pass_all
12391 lt_cv_deplibs_check_method=pass_all
12395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12396 lt_cv_file_magic_cmd='/usr/bin/file -L'
12397 lt_cv_file_magic_test_file=/shlib/libc.so
12401 # func_win32_libid is a shell function defined in ltmain.sh
12402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12403 lt_cv_file_magic_cmd='func_win32_libid'
12407 # Base MSYS/MinGW do not provide the 'file' command needed by
12408 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12409 # unless we find 'file', for example because we are cross-compiling.
12410 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12411 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12413 lt_cv_file_magic_cmd='func_win32_libid'
12415 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12416 lt_cv_file_magic_cmd='$OBJDUMP -f'
12421 # use the weaker test based on 'objdump'. See mingw*.
12422 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12423 lt_cv_file_magic_cmd='$OBJDUMP -f'
12426 darwin* | rhapsody*)
12427 lt_cv_deplibs_check_method=pass_all
12430 freebsd* | dragonfly*)
12431 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12434 # Not sure whether the presence of OpenBSD here was a mistake.
12435 # Let's accept both of them until this is cleared up.
12436 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12437 lt_cv_file_magic_cmd=/usr/bin/file
12438 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12442 lt_cv_deplibs_check_method=pass_all
12447 lt_cv_deplibs_check_method=pass_all
12451 lt_cv_deplibs_check_method=pass_all
12454 hpux10.20* | hpux11*)
12455 lt_cv_file_magic_cmd=/usr/bin/file
12458 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12459 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12462 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]'
12463 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12467 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12473 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12477 irix5* | irix6* | nonstopux*)
12479 *-32|*"-32 ") libmagic=32-bit;;
12480 *-n32|*"-n32 ") libmagic=N32;;
12481 *-64|*"-64 ") libmagic=64-bit;;
12482 *) libmagic=never-match;;
12484 lt_cv_deplibs_check_method=pass_all
12487 # This must be Linux ELF.
12488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12489 lt_cv_deplibs_check_method=pass_all
12493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12502 lt_cv_file_magic_cmd=/usr/bin/file
12503 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12507 lt_cv_deplibs_check_method=pass_all
12511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12518 osf3* | osf4* | osf5*)
12519 lt_cv_deplibs_check_method=pass_all
12523 lt_cv_deplibs_check_method=pass_all
12527 lt_cv_deplibs_check_method=pass_all
12530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12531 lt_cv_deplibs_check_method=pass_all
12535 case $host_vendor in
12537 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]'
12538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12541 lt_cv_deplibs_check_method=pass_all
12544 lt_cv_file_magic_cmd='/bin/file'
12545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12548 lt_cv_file_magic_cmd='/bin/file'
12549 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12550 lt_cv_file_magic_test_file=/lib/libc.so
12553 lt_cv_deplibs_check_method=pass_all
12556 lt_cv_deplibs_check_method=pass_all
12562 lt_cv_deplibs_check_method=pass_all
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12568 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12569 file_magic_cmd=$lt_cv_file_magic_cmd
12570 deplibs_check_method=$lt_cv_deplibs_check_method
12571 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12584 if test -n "$ac_tool_prefix"; then
12585 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12586 set dummy ${ac_tool_prefix}ar; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if test "${ac_cv_prog_AR+set}" = set; then :
12590 $as_echo_n "(cached) " >&6
12592 if test -n "$AR"; then
12593 ac_cv_prog_AR="$AR" # Let the user override the test.
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in $PATH
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12602 ac_cv_prog_AR="${ac_tool_prefix}ar"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 if test -n "$AR"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12615 $as_echo "$AR" >&6; }
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12623 if test -z "$ac_cv_prog_AR"; then
12625 # Extract the first word of "ar", so it can be a program name with args.
12626 set dummy ar; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12632 if test -n "$ac_ct_AR"; then
12633 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
12641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12642 ac_cv_prog_ac_ct_AR="ar"
12643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12653 if test -n "$ac_ct_AR"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12655 $as_echo "$ac_ct_AR" >&6; }
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12661 if test "x$ac_ct_AR" = x; then
12664 case $cross_compiling:$ac_tool_warned in
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12668 ac_tool_warned=yes ;;
12673 AR="$ac_cv_prog_AR"
12676 test -z "$AR" && AR=ar
12677 test -z "$AR_FLAGS" && AR_FLAGS=cru
12689 if test -n "$ac_tool_prefix"; then
12690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12691 set dummy ${ac_tool_prefix}strip; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if test "${ac_cv_prog_STRIP+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12697 if test -n "$STRIP"; then
12698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 STRIP=$ac_cv_prog_STRIP
12718 if test -n "$STRIP"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12720 $as_echo "$STRIP" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12728 if test -z "$ac_cv_prog_STRIP"; then
12730 # Extract the first word of "strip", so it can be a program name with args.
12731 set dummy strip; ac_word=$2
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733 $as_echo_n "checking for $ac_word... " >&6; }
12734 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
12737 if test -n "$ac_ct_STRIP"; then
12738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12747 ac_cv_prog_ac_ct_STRIP="strip"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12758 if test -n "$ac_ct_STRIP"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12760 $as_echo "$ac_ct_STRIP" >&6; }
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12766 if test "x$ac_ct_STRIP" = x; then
12769 case $cross_compiling:$ac_tool_warned in
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12773 ac_tool_warned=yes ;;
12778 STRIP="$ac_cv_prog_STRIP"
12781 test -z "$STRIP" && STRIP=:
12788 if test -n "$ac_tool_prefix"; then
12789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12794 $as_echo_n "(cached) " >&6
12796 if test -n "$RANLIB"; then
12797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 RANLIB=$ac_cv_prog_RANLIB
12817 if test -n "$RANLIB"; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12819 $as_echo "$RANLIB" >&6; }
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12827 if test -z "$ac_cv_prog_RANLIB"; then
12828 ac_ct_RANLIB=$RANLIB
12829 # Extract the first word of "ranlib", so it can be a program name with args.
12830 set dummy ranlib; ac_word=$2
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832 $as_echo_n "checking for $ac_word... " >&6; }
12833 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
12836 if test -n "$ac_ct_RANLIB"; then
12837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12846 ac_cv_prog_ac_ct_RANLIB="ranlib"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12857 if test -n "$ac_ct_RANLIB"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12859 $as_echo "$ac_ct_RANLIB" >&6; }
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12865 if test "x$ac_ct_RANLIB" = x; then
12868 case $cross_compiling:$ac_tool_warned in
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12872 ac_tool_warned=yes ;;
12874 RANLIB=$ac_ct_RANLIB
12877 RANLIB="$ac_cv_prog_RANLIB"
12880 test -z "$RANLIB" && RANLIB=:
12887 # Determine commands to create old-style static archives.
12888 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12889 old_postinstall_cmds='chmod 644 $oldlib'
12890 old_postuninstall_cmds=
12892 if test -n "$RANLIB"; then
12895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12901 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12906 lock_old_archive_extraction=yes ;;
12908 lock_old_archive_extraction=no ;;
12949 # If no C compiler was specified, use CC.
12952 # If no C compiler flags were specified, use CFLAGS.
12953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12955 # Allow CC to be a program name with arguments.
12959 # Check for command to grab the raw symbol name followed by C symbol from nm.
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12961 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12962 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12966 # These are sane defaults that work on at least a few old systems.
12967 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12969 # Character class describing NM global symbol codes.
12970 symcode='[BCDEGRST]'
12972 # Regexp to match symbols that can be accessed directly from C.
12973 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12975 # Define system-specific variables.
12980 cygwin* | mingw* | pw32* | cegcc*)
12981 symcode='[ABCDGISTW]'
12984 if test "$host_cpu" = ia64; then
12985 symcode='[ABCDEGRST]'
12988 irix* | nonstopux*)
12989 symcode='[BCDEGRST]'
12992 symcode='[BCDEGQRST]'
13003 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13011 # If we're using GNU nm, then use its standard symbol codes.
13012 case `$NM -V 2>&1` in
13013 *GNU* | *'with BFD'*)
13014 symcode='[ABCDGIRSTW]' ;;
13017 # Transform an extracted symbol line into a proper C declaration.
13018 # Some systems (esp. on ia64) link data and code symbols differently,
13019 # so use this general approach.
13020 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13022 # Transform an extracted symbol line into symbol name and symbol address
13023 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13024 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'"
13026 # Handle CRLF in mingw tool chain
13030 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13034 # Try without a prefix underscore, then with it.
13035 for ac_symprfx in "" "_"; do
13037 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13038 symxfrm="\\1 $ac_symprfx\\2 \\2"
13040 # Write the raw and C identifiers.
13041 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13042 # Fake it for dumpbin and say T for any non-static function
13043 # and D for any global variable.
13044 # Also find C++ and __fastcall symbols from MSVC++,
13045 # which start with @ or ?.
13046 lt_cv_sys_global_symbol_pipe="$AWK '"\
13047 " {last_section=section; section=\$ 3};"\
13048 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13049 " \$ 0!~/External *\|/{next};"\
13050 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13051 " {if(hide[section]) next};"\
13052 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13053 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13054 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13055 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13056 " ' prfx=^$ac_symprfx"
13058 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13061 # Check to see that the pipe works correctly.
13065 cat > conftest.$ac_ext <<_LT_EOF
13070 void nm_test_func(void);
13071 void nm_test_func(void){}
13075 int main(){nm_test_var='a';nm_test_func();return(0);}
13078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13079 (eval $ac_compile) 2>&5
13081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13082 test $ac_status = 0; }; then
13083 # Now try to grab the symbols.
13085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13086 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13089 test $ac_status = 0; } && test -s "$nlist"; then
13090 # Try sorting and uniquifying the output.
13091 if sort "$nlist" | uniq > "$nlist"T; then
13092 mv -f "$nlist"T "$nlist"
13097 # Make sure that we snagged all the symbols we need.
13098 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13099 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13100 cat <<_LT_EOF > conftest.$ac_ext
13106 # Now generate the symbol file.
13107 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13109 cat <<_LT_EOF >> conftest.$ac_ext
13111 /* The mapping between symbol names and symbols. */
13116 lt__PROGRAM__LTX_preloaded_symbols[] =
13118 { "@PROGRAM@", (void *) 0 },
13120 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13121 cat <<\_LT_EOF >> conftest.$ac_ext
13125 /* This works around a problem in FreeBSD linker */
13126 #ifdef FREEBSD_WORKAROUND
13127 static const void *lt_preloaded_setup() {
13128 return lt__PROGRAM__LTX_preloaded_symbols;
13136 # Now try linking the two files.
13137 mv conftest.$ac_objext conftstm.$ac_objext
13138 lt_save_LIBS="$LIBS"
13139 lt_save_CFLAGS="$CFLAGS"
13140 LIBS="conftstm.$ac_objext"
13141 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13143 (eval $ac_link) 2>&5
13145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13146 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13149 LIBS="$lt_save_LIBS"
13150 CFLAGS="$lt_save_CFLAGS"
13152 echo "cannot find nm_test_func in $nlist" >&5
13155 echo "cannot find nm_test_var in $nlist" >&5
13158 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13161 echo "$progname: failed program was:" >&5
13162 cat conftest.$ac_ext >&5
13164 rm -rf conftest* conftst*
13166 # Do not use the global_symbol_pipe unless it works.
13167 if test "$pipe_works" = yes; then
13170 lt_cv_sys_global_symbol_pipe=
13176 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13177 lt_cv_sys_global_symbol_to_cdecl=
13179 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13181 $as_echo "failed" >&6; }
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13184 $as_echo "ok" >&6; }
13208 # Check whether --enable-libtool-lock was given.
13209 if test "${enable_libtool_lock+set}" = set; then :
13210 enableval=$enable_libtool_lock;
13213 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13215 # Some flags need to be propagated to the compiler or linker for good
13219 # Find out which ABI we are using.
13220 echo 'int i;' > conftest.$ac_ext
13221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13222 (eval $ac_compile) 2>&5
13224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13225 test $ac_status = 0; }; then
13226 case `/usr/bin/file conftest.$ac_objext` in
13228 HPUX_IA64_MODE="32"
13231 HPUX_IA64_MODE="64"
13238 # Find out which ABI we are using.
13239 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13241 (eval $ac_compile) 2>&5
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; }; then
13245 if test "$lt_cv_prog_gnu_ld" = yes; then
13246 case `/usr/bin/file conftest.$ac_objext` in
13248 LD="${LD-ld} -melf32bsmip"
13251 LD="${LD-ld} -melf32bmipn32"
13254 LD="${LD-ld} -melf64bmip"
13258 case `/usr/bin/file conftest.$ac_objext` in
13274 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13275 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13276 # Find out which ABI we are using.
13277 echo 'int i;' > conftest.$ac_ext
13278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13279 (eval $ac_compile) 2>&5
13281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13282 test $ac_status = 0; }; then
13283 case `/usr/bin/file conftest.o` in
13286 x86_64-*kfreebsd*-gnu)
13287 LD="${LD-ld} -m elf_i386_fbsd"
13290 LD="${LD-ld} -m elf_i386"
13292 ppc64-*linux*|powerpc64-*linux*)
13293 LD="${LD-ld} -m elf32ppclinux"
13296 LD="${LD-ld} -m elf_s390"
13299 LD="${LD-ld} -m elf32_sparc"
13305 x86_64-*kfreebsd*-gnu)
13306 LD="${LD-ld} -m elf_x86_64_fbsd"
13309 LD="${LD-ld} -m elf_x86_64"
13311 ppc*-*linux*|powerpc*-*linux*)
13312 LD="${LD-ld} -m elf64ppc"
13314 s390*-*linux*|s390*-*tpf*)
13315 LD="${LD-ld} -m elf64_s390"
13318 LD="${LD-ld} -m elf64_sparc"
13328 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13329 SAVE_CFLAGS="$CFLAGS"
13330 CFLAGS="$CFLAGS -belf"
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13332 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13333 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
13337 ac_cpp='$CPP $CPPFLAGS'
13338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13353 if ac_fn_c_try_link "$LINENO"; then :
13354 lt_cv_cc_needs_belf=yes
13356 lt_cv_cc_needs_belf=no
13358 rm -f core conftest.err conftest.$ac_objext \
13359 conftest$ac_exeext conftest.$ac_ext
13361 ac_cpp='$CPP $CPPFLAGS'
13362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13368 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13369 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13370 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13371 CFLAGS="$SAVE_CFLAGS"
13375 # Find out which ABI we are using.
13376 echo 'int i;' > conftest.$ac_ext
13377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13378 (eval $ac_compile) 2>&5
13380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381 test $ac_status = 0; }; then
13382 case `/usr/bin/file conftest.o` in
13384 case $lt_cv_prog_gnu_ld in
13385 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13387 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13399 need_locks="$enable_libtool_lock"
13403 rhapsody* | darwin*)
13404 if test -n "$ac_tool_prefix"; then
13405 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13406 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13412 if test -n "$DSYMUTIL"; then
13413 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH
13419 test -z "$as_dir" && as_dir=.
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13422 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13432 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13433 if test -n "$DSYMUTIL"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13435 $as_echo "$DSYMUTIL" >&6; }
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13443 if test -z "$ac_cv_prog_DSYMUTIL"; then
13444 ac_ct_DSYMUTIL=$DSYMUTIL
13445 # Extract the first word of "dsymutil", so it can be a program name with args.
13446 set dummy dsymutil; ac_word=$2
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448 $as_echo_n "checking for $ac_word... " >&6; }
13449 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13450 $as_echo_n "(cached) " >&6
13452 if test -n "$ac_ct_DSYMUTIL"; then
13453 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456 for as_dir in $PATH
13459 test -z "$as_dir" && as_dir=.
13460 for ac_exec_ext in '' $ac_executable_extensions; do
13461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13462 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13473 if test -n "$ac_ct_DSYMUTIL"; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13475 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13481 if test "x$ac_ct_DSYMUTIL" = x; then
13484 case $cross_compiling:$ac_tool_warned in
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13488 ac_tool_warned=yes ;;
13490 DSYMUTIL=$ac_ct_DSYMUTIL
13493 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13496 if test -n "$ac_tool_prefix"; then
13497 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13498 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 $as_echo_n "checking for $ac_word... " >&6; }
13501 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
13504 if test -n "$NMEDIT"; then
13505 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13514 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 NMEDIT=$ac_cv_prog_NMEDIT
13525 if test -n "$NMEDIT"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13527 $as_echo "$NMEDIT" >&6; }
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13535 if test -z "$ac_cv_prog_NMEDIT"; then
13536 ac_ct_NMEDIT=$NMEDIT
13537 # Extract the first word of "nmedit", so it can be a program name with args.
13538 set dummy nmedit; ac_word=$2
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13540 $as_echo_n "checking for $ac_word... " >&6; }
13541 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13542 $as_echo_n "(cached) " >&6
13544 if test -n "$ac_ct_NMEDIT"; then
13545 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13548 for as_dir in $PATH
13551 test -z "$as_dir" && as_dir=.
13552 for ac_exec_ext in '' $ac_executable_extensions; do
13553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13554 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13565 if test -n "$ac_ct_NMEDIT"; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13567 $as_echo "$ac_ct_NMEDIT" >&6; }
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 $as_echo "no" >&6; }
13573 if test "x$ac_ct_NMEDIT" = x; then
13576 case $cross_compiling:$ac_tool_warned in
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13580 ac_tool_warned=yes ;;
13582 NMEDIT=$ac_ct_NMEDIT
13585 NMEDIT="$ac_cv_prog_NMEDIT"
13588 if test -n "$ac_tool_prefix"; then
13589 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13590 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if test "${ac_cv_prog_LIPO+set}" = set; then :
13594 $as_echo_n "(cached) " >&6
13596 if test -n "$LIPO"; then
13597 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $PATH
13603 test -z "$as_dir" && as_dir=.
13604 for ac_exec_ext in '' $ac_executable_extensions; do
13605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13606 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616 LIPO=$ac_cv_prog_LIPO
13617 if test -n "$LIPO"; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13619 $as_echo "$LIPO" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13627 if test -z "$ac_cv_prog_LIPO"; then
13629 # Extract the first word of "lipo", so it can be a program name with args.
13630 set dummy lipo; ac_word=$2
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13632 $as_echo_n "checking for $ac_word... " >&6; }
13633 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13634 $as_echo_n "(cached) " >&6
13636 if test -n "$ac_ct_LIPO"; then
13637 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13643 test -z "$as_dir" && as_dir=.
13644 for ac_exec_ext in '' $ac_executable_extensions; do
13645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13646 ac_cv_prog_ac_ct_LIPO="lipo"
13647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13657 if test -n "$ac_ct_LIPO"; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13659 $as_echo "$ac_ct_LIPO" >&6; }
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }
13665 if test "x$ac_ct_LIPO" = x; then
13668 case $cross_compiling:$ac_tool_warned in
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13672 ac_tool_warned=yes ;;
13677 LIPO="$ac_cv_prog_LIPO"
13680 if test -n "$ac_tool_prefix"; then
13681 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13682 set dummy ${ac_tool_prefix}otool; ac_word=$2
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13684 $as_echo_n "checking for $ac_word... " >&6; }
13685 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13686 $as_echo_n "(cached) " >&6
13688 if test -n "$OTOOL"; then
13689 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692 for as_dir in $PATH
13695 test -z "$as_dir" && as_dir=.
13696 for ac_exec_ext in '' $ac_executable_extensions; do
13697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13698 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 OTOOL=$ac_cv_prog_OTOOL
13709 if test -n "$OTOOL"; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13711 $as_echo "$OTOOL" >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714 $as_echo "no" >&6; }
13719 if test -z "$ac_cv_prog_OTOOL"; then
13721 # Extract the first word of "otool", so it can be a program name with args.
13722 set dummy otool; ac_word=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13724 $as_echo_n "checking for $ac_word... " >&6; }
13725 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13726 $as_echo_n "(cached) " >&6
13728 if test -n "$ac_ct_OTOOL"; then
13729 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH
13735 test -z "$as_dir" && as_dir=.
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13738 ac_cv_prog_ac_ct_OTOOL="otool"
13739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13748 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13749 if test -n "$ac_ct_OTOOL"; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13751 $as_echo "$ac_ct_OTOOL" >&6; }
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13754 $as_echo "no" >&6; }
13757 if test "x$ac_ct_OTOOL" = x; then
13760 case $cross_compiling:$ac_tool_warned in
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13764 ac_tool_warned=yes ;;
13769 OTOOL="$ac_cv_prog_OTOOL"
13772 if test -n "$ac_tool_prefix"; then
13773 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13774 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776 $as_echo_n "checking for $ac_word... " >&6; }
13777 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13778 $as_echo_n "(cached) " >&6
13780 if test -n "$OTOOL64"; then
13781 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13787 test -z "$as_dir" && as_dir=.
13788 for ac_exec_ext in '' $ac_executable_extensions; do
13789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13790 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 OTOOL64=$ac_cv_prog_OTOOL64
13801 if test -n "$OTOOL64"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13803 $as_echo "$OTOOL64" >&6; }
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13811 if test -z "$ac_cv_prog_OTOOL64"; then
13812 ac_ct_OTOOL64=$OTOOL64
13813 # Extract the first word of "otool64", so it can be a program name with args.
13814 set dummy otool64; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13818 $as_echo_n "(cached) " >&6
13820 if test -n "$ac_ct_OTOOL64"; then
13821 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13830 ac_cv_prog_ac_ct_OTOOL64="otool64"
13831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13841 if test -n "$ac_ct_OTOOL64"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13843 $as_echo "$ac_ct_OTOOL64" >&6; }
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13849 if test "x$ac_ct_OTOOL64" = x; then
13852 case $cross_compiling:$ac_tool_warned in
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13856 ac_tool_warned=yes ;;
13858 OTOOL64=$ac_ct_OTOOL64
13861 OTOOL64="$ac_cv_prog_OTOOL64"
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13891 $as_echo_n "checking for -single_module linker flag... " >&6; }
13892 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13895 lt_cv_apple_cc_single_mod=no
13896 if test -z "${LT_MULTI_MODULE}"; then
13897 # By default we will add the -single_module flag. You can override
13898 # by either setting the environment variable LT_MULTI_MODULE
13899 # non-empty at configure time, or by adding -multi_module to the
13901 rm -rf libconftest.dylib*
13902 echo "int foo(void){return 1;}" > conftest.c
13903 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13904 -dynamiclib -Wl,-single_module conftest.c" >&5
13905 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13906 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13908 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13909 lt_cv_apple_cc_single_mod=yes
13911 cat conftest.err >&5
13913 rm -rf libconftest.dylib*
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13918 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13920 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13921 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13924 lt_cv_ld_exported_symbols_list=no
13925 save_LDFLAGS=$LDFLAGS
13926 echo "_main" > conftest.sym
13927 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13939 if ac_fn_c_try_link "$LINENO"; then :
13940 lt_cv_ld_exported_symbols_list=yes
13942 lt_cv_ld_exported_symbols_list=no
13944 rm -f core conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13946 LDFLAGS="$save_LDFLAGS"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13950 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13952 $as_echo_n "checking for -force_load linker flag... " >&6; }
13953 if test "${lt_cv_ld_force_load+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13956 lt_cv_ld_force_load=no
13957 cat > conftest.c << _LT_EOF
13958 int forced_loaded() { return 2;}
13960 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13961 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13962 echo "$AR cru libconftest.a conftest.o" >&5
13963 $AR cru libconftest.a conftest.o 2>&5
13964 cat > conftest.c << _LT_EOF
13965 int main() { return 0;}
13967 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13968 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13970 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13971 lt_cv_ld_force_load=yes
13973 cat conftest.err >&5
13975 rm -f conftest.err libconftest.a conftest conftest.c
13976 rm -rf conftest.dSYM
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13980 $as_echo "$lt_cv_ld_force_load" >&6; }
13982 rhapsody* | darwin1.[012])
13983 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13985 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13986 darwin*) # darwin 5.x on
13987 # if running on 10.5 or later, the deployment target defaults
13988 # to the OS version, if on x86, and 10.4, the deployment
13989 # target defaults to 10.4. Don't you love it?
13990 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13991 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13994 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13996 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14000 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14001 _lt_dar_single_mod='$single_module'
14003 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14004 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14006 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14008 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14009 _lt_dsymutil='~$DSYMUTIL $lib || :'
14016 for ac_header in dlfcn.h
14018 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14019 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_DLFCN_H 1
14038 enable_win32_dll=no
14041 # Check whether --enable-shared was given.
14042 if test "${enable_shared+set}" = set; then :
14043 enableval=$enable_shared; p=${PACKAGE-default}
14045 yes) enable_shared=yes ;;
14046 no) enable_shared=no ;;
14049 # Look at the argument we got. We use all the common list separators.
14050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14051 for pkg in $enableval; do
14053 if test "X$pkg" = "X$p"; then
14072 # Check whether --enable-static was given.
14073 if test "${enable_static+set}" = set; then :
14074 enableval=$enable_static; p=${PACKAGE-default}
14076 yes) enable_static=yes ;;
14077 no) enable_static=no ;;
14080 # Look at the argument we got. We use all the common list separators.
14081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14082 for pkg in $enableval; do
14084 if test "X$pkg" = "X$p"; then
14104 # Check whether --with-pic was given.
14105 if test "${with_pic+set}" = set; then :
14106 withval=$with_pic; pic_mode="$withval"
14112 test -z "$pic_mode" && pic_mode=default
14120 # Check whether --enable-fast-install was given.
14121 if test "${enable_fast_install+set}" = set; then :
14122 enableval=$enable_fast_install; p=${PACKAGE-default}
14124 yes) enable_fast_install=yes ;;
14125 no) enable_fast_install=no ;;
14127 enable_fast_install=no
14128 # Look at the argument we got. We use all the common list separators.
14129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14130 for pkg in $enableval; do
14132 if test "X$pkg" = "X$p"; then
14133 enable_fast_install=yes
14140 enable_fast_install=yes
14153 # This can be used to rebuild libtool when needed
14154 LIBTOOL_DEPS="$ltmain"
14156 # Always use our own libtool.
14157 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14184 test -z "$LN_S" && LN_S="ln -s"
14199 if test -n "${ZSH_VERSION+set}" ; then
14200 setopt NO_GLOB_SUBST
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14204 $as_echo_n "checking for objdir... " >&6; }
14205 if test "${lt_cv_objdir+set}" = set; then :
14206 $as_echo_n "(cached) " >&6
14208 rm -f .libs 2>/dev/null
14209 mkdir .libs 2>/dev/null
14210 if test -d .libs; then
14213 # MS-DOS does not allow filenames that begin with a dot.
14216 rmdir .libs 2>/dev/null
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14219 $as_echo "$lt_cv_objdir" >&6; }
14220 objdir=$lt_cv_objdir
14226 cat >>confdefs.h <<_ACEOF
14227 #define LT_OBJDIR "$lt_cv_objdir/"
14235 # AIX sometimes has problems with the GCC collect2 program. For some
14236 # reason, if we set the COLLECT_NAMES environment variable, the problems
14237 # vanish in a puff of smoke.
14238 if test "X${COLLECT_NAMES+set}" != Xset; then
14240 export COLLECT_NAMES
14245 # Global variables:
14247 can_build_shared=yes
14249 # All known linkers require a `.a' archive for static linking (except MSVC,
14250 # which needs '.lib').
14253 with_gnu_ld="$lt_cv_prog_gnu_ld"
14256 old_CFLAGS="$CFLAGS"
14258 # Set sane defaults for various variables
14259 test -z "$CC" && CC=cc
14260 test -z "$LTCC" && LTCC=$CC
14261 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14262 test -z "$LD" && LD=ld
14263 test -z "$ac_objext" && ac_objext=o
14265 for cc_temp in $compiler""; do
14267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14273 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14276 # Only perform the check for file, if the check method requires it
14277 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14278 case $deplibs_check_method in
14280 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14282 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14291 lt_save_MAGIC_CMD="$MAGIC_CMD"
14292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14294 for ac_dir in $ac_dummy; do
14296 test -z "$ac_dir" && ac_dir=.
14297 if test -f $ac_dir/${ac_tool_prefix}file; then
14298 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14299 if test -n "$file_magic_test_file"; then
14300 case $deplibs_check_method in
14302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14305 $EGREP "$file_magic_regex" > /dev/null; then
14310 *** Warning: the command libtool uses to detect shared libraries,
14311 *** $file_magic_cmd, produces output that libtool cannot recognize.
14312 *** The result is that libtool may fail to recognize shared libraries
14313 *** as such. This will affect the creation of libtool libraries that
14314 *** depend on shared libraries, but programs linked with such libtool
14315 *** libraries will work regardless of this problem. Nevertheless, you
14316 *** may want to report the problem to your system manager and/or to
14317 *** bug-libtool@gnu.org
14327 MAGIC_CMD="$lt_save_MAGIC_CMD"
14332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14333 if test -n "$MAGIC_CMD"; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14335 $as_echo "$MAGIC_CMD" >&6; }
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14345 if test -z "$lt_cv_path_MAGIC_CMD"; then
14346 if test -n "$ac_tool_prefix"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14348 $as_echo_n "checking for file... " >&6; }
14349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14357 lt_save_MAGIC_CMD="$MAGIC_CMD"
14358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14360 for ac_dir in $ac_dummy; do
14362 test -z "$ac_dir" && ac_dir=.
14363 if test -f $ac_dir/file; then
14364 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14365 if test -n "$file_magic_test_file"; then
14366 case $deplibs_check_method in
14368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14371 $EGREP "$file_magic_regex" > /dev/null; then
14376 *** Warning: the command libtool uses to detect shared libraries,
14377 *** $file_magic_cmd, produces output that libtool cannot recognize.
14378 *** The result is that libtool may fail to recognize shared libraries
14379 *** as such. This will affect the creation of libtool libraries that
14380 *** depend on shared libraries, but programs linked with such libtool
14381 *** libraries will work regardless of this problem. Nevertheless, you
14382 *** may want to report the problem to your system manager and/or to
14383 *** bug-libtool@gnu.org
14393 MAGIC_CMD="$lt_save_MAGIC_CMD"
14398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14399 if test -n "$MAGIC_CMD"; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14401 $as_echo "$MAGIC_CMD" >&6; }
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14417 # Use C for the default configuration in the libtool script
14421 ac_cpp='$CPP $CPPFLAGS'
14422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427 # Source file extension for C test sources.
14430 # Object file extension for compiled C test sources.
14434 # Code to be used in simple compile tests
14435 lt_simple_compile_test_code="int some_variable = 0;"
14437 # Code to be used in simple link tests
14438 lt_simple_link_test_code='int main(){return(0);}'
14446 # If no C compiler was specified, use CC.
14449 # If no C compiler flags were specified, use CFLAGS.
14450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14452 # Allow CC to be a program name with arguments.
14455 # Save the default compiler, since it gets overwritten when the other
14456 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14457 compiler_DEFAULT=$CC
14459 # save warnings/boilerplate of simple test code
14460 ac_outfile=conftest.$ac_objext
14461 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14463 _lt_compiler_boilerplate=`cat conftest.err`
14466 ac_outfile=conftest.$ac_objext
14467 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469 _lt_linker_boilerplate=`cat conftest.err`
14474 ## There is no encapsulation within the following macros, do not change
14475 ## the running order or otherwise move them around unless you know exactly
14476 ## what you are doing...
14477 if test -n "$compiler"; then
14479 lt_prog_compiler_no_builtin_flag=
14481 if test "$GCC" = yes; then
14482 case $cc_basename in
14484 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14486 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14490 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14491 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14494 lt_cv_prog_compiler_rtti_exceptions=no
14495 ac_outfile=conftest.$ac_objext
14496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14497 lt_compiler_flag="-fno-rtti -fno-exceptions"
14498 # Insert the option either (1) after the last *FLAGS variable, or
14499 # (2) before a word containing "conftest.", or (3) at the end.
14500 # Note that $ac_compile itself does not contain backslashes and begins
14501 # with a dollar sign (not a hyphen), so the echo should work correctly.
14502 # The option is referenced via a variable to avoid confusing sed.
14503 lt_compile=`echo "$ac_compile" | $SED \
14504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506 -e 's:$: $lt_compiler_flag:'`
14507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14508 (eval "$lt_compile" 2>conftest.err)
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 if (exit $ac_status) && test -s "$ac_outfile"; then
14513 # The compiler can only warn and ignore the option if not recognized
14514 # So say no if there are warnings other than the usual output.
14515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14518 lt_cv_prog_compiler_rtti_exceptions=yes
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14525 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14527 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14528 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14540 lt_prog_compiler_wl=
14541 lt_prog_compiler_pic=
14542 lt_prog_compiler_static=
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14545 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14547 if test "$GCC" = yes; then
14548 lt_prog_compiler_wl='-Wl,'
14549 lt_prog_compiler_static='-static'
14553 # All AIX code is PIC.
14554 if test "$host_cpu" = ia64; then
14555 # AIX 5 now supports IA64 processor
14556 lt_prog_compiler_static='-Bstatic'
14563 # see comment about AmigaOS4 .so support
14564 lt_prog_compiler_pic='-fPIC'
14567 # FIXME: we need at least 68020 code to build shared libraries, but
14568 # adding the `-m68020' flag to GCC prevents building anything better,
14570 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14575 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14576 # PIC is the default for these OSes.
14579 mingw* | cygwin* | pw32* | os2* | cegcc*)
14580 # This hack is so that the source file can tell whether it is being
14581 # built for inclusion in a dll (and should export symbols for example).
14582 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14583 # (--disable-auto-import) libraries
14584 lt_prog_compiler_pic='-DDLL_EXPORT'
14587 darwin* | rhapsody*)
14588 # PIC is the default on this platform
14589 # Common symbols not allowed in MH_DYLIB files
14590 lt_prog_compiler_pic='-fno-common'
14594 # PIC is the default for Haiku.
14595 # The "-static" flag exists, but is broken.
14596 lt_prog_compiler_static=
14600 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14601 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14602 # sets the default TLS model and affects inlining.
14608 lt_prog_compiler_pic='-fPIC'
14614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14615 # Instead, we relocate shared libraries at runtime.
14619 # Just because we use GCC doesn't mean we suddenly get shared libraries
14620 # on systems that don't support them.
14621 lt_prog_compiler_can_build_shared=no
14626 # QNX uses GNU C++, but need to define -shared option too, otherwise
14627 # it will coredump.
14628 lt_prog_compiler_pic='-fPIC -shared'
14632 if test -d /usr/nec; then
14633 lt_prog_compiler_pic=-Kconform_pic
14638 lt_prog_compiler_pic='-fPIC'
14642 case $cc_basename in
14643 nvcc*) # Cuda Compiler Driver 2.2
14644 lt_prog_compiler_wl='-Xlinker '
14645 lt_prog_compiler_pic='-Xcompiler -fPIC'
14649 # PORTME Check for flag to pass linker flags through the system compiler.
14652 lt_prog_compiler_wl='-Wl,'
14653 if test "$host_cpu" = ia64; then
14654 # AIX 5 now supports IA64 processor
14655 lt_prog_compiler_static='-Bstatic'
14657 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14661 mingw* | cygwin* | pw32* | os2* | cegcc*)
14662 # This hack is so that the source file can tell whether it is being
14663 # built for inclusion in a dll (and should export symbols for example).
14664 lt_prog_compiler_pic='-DDLL_EXPORT'
14667 hpux9* | hpux10* | hpux11*)
14668 lt_prog_compiler_wl='-Wl,'
14669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14670 # not for PA HP-UX.
14676 lt_prog_compiler_pic='+Z'
14679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14680 lt_prog_compiler_static='${wl}-a ${wl}archive'
14683 irix5* | irix6* | nonstopux*)
14684 lt_prog_compiler_wl='-Wl,'
14685 # PIC (with -KPIC) is the default.
14686 lt_prog_compiler_static='-non_shared'
14689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14690 case $cc_basename in
14691 # old Intel for x86_64 which still supported -KPIC.
14693 lt_prog_compiler_wl='-Wl,'
14694 lt_prog_compiler_pic='-KPIC'
14695 lt_prog_compiler_static='-static'
14697 # icc used to be incompatible with GCC.
14698 # ICC 10 doesn't accept -KPIC any more.
14700 lt_prog_compiler_wl='-Wl,'
14701 lt_prog_compiler_pic='-fPIC'
14702 lt_prog_compiler_static='-static'
14704 # Lahey Fortran 8.1.
14706 lt_prog_compiler_wl='-Wl,'
14707 lt_prog_compiler_pic='--shared'
14708 lt_prog_compiler_static='--static'
14710 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14711 # Portland Group compilers (*not* the Pentium gcc compiler,
14712 # which looks to be a dead project)
14713 lt_prog_compiler_wl='-Wl,'
14714 lt_prog_compiler_pic='-fpic'
14715 lt_prog_compiler_static='-Bstatic'
14718 lt_prog_compiler_wl='-Wl,'
14719 # All Alpha code is PIC.
14720 lt_prog_compiler_static='-non_shared'
14722 xl* | bgxl* | bgf* | mpixl*)
14723 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14724 lt_prog_compiler_wl='-Wl,'
14725 lt_prog_compiler_pic='-qpic'
14726 lt_prog_compiler_static='-qstaticlink'
14729 case `$CC -V 2>&1 | sed 5q` in
14730 *Sun\ F* | *Sun*Fortran*)
14731 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14732 lt_prog_compiler_pic='-KPIC'
14733 lt_prog_compiler_static='-Bstatic'
14734 lt_prog_compiler_wl=''
14738 lt_prog_compiler_pic='-KPIC'
14739 lt_prog_compiler_static='-Bstatic'
14740 lt_prog_compiler_wl='-Wl,'
14748 lt_prog_compiler_pic='-KPIC'
14749 lt_prog_compiler_static='-Bstatic'
14753 # QNX uses GNU C++, but need to define -shared option too, otherwise
14754 # it will coredump.
14755 lt_prog_compiler_pic='-fPIC -shared'
14758 osf3* | osf4* | osf5*)
14759 lt_prog_compiler_wl='-Wl,'
14760 # All OSF/1 code is PIC.
14761 lt_prog_compiler_static='-non_shared'
14765 lt_prog_compiler_static='-non_shared'
14769 lt_prog_compiler_pic='-KPIC'
14770 lt_prog_compiler_static='-Bstatic'
14771 case $cc_basename in
14772 f77* | f90* | f95*)
14773 lt_prog_compiler_wl='-Qoption ld ';;
14775 lt_prog_compiler_wl='-Wl,';;
14780 lt_prog_compiler_wl='-Qoption ld '
14781 lt_prog_compiler_pic='-PIC'
14782 lt_prog_compiler_static='-Bstatic'
14785 sysv4 | sysv4.2uw2* | sysv4.3*)
14786 lt_prog_compiler_wl='-Wl,'
14787 lt_prog_compiler_pic='-KPIC'
14788 lt_prog_compiler_static='-Bstatic'
14792 if test -d /usr/nec ;then
14793 lt_prog_compiler_pic='-Kconform_pic'
14794 lt_prog_compiler_static='-Bstatic'
14798 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14799 lt_prog_compiler_wl='-Wl,'
14800 lt_prog_compiler_pic='-KPIC'
14801 lt_prog_compiler_static='-Bstatic'
14805 lt_prog_compiler_wl='-Wl,'
14806 lt_prog_compiler_can_build_shared=no
14810 lt_prog_compiler_pic='-pic'
14811 lt_prog_compiler_static='-Bstatic'
14815 lt_prog_compiler_can_build_shared=no
14821 # For platforms which do not support PIC, -DPIC is meaningless:
14823 lt_prog_compiler_pic=
14826 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14830 $as_echo "$lt_prog_compiler_pic" >&6; }
14838 # Check to make sure the PIC flag actually works.
14840 if test -n "$lt_prog_compiler_pic"; then
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14842 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14843 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14846 lt_cv_prog_compiler_pic_works=no
14847 ac_outfile=conftest.$ac_objext
14848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14849 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14850 # Insert the option either (1) after the last *FLAGS variable, or
14851 # (2) before a word containing "conftest.", or (3) at the end.
14852 # Note that $ac_compile itself does not contain backslashes and begins
14853 # with a dollar sign (not a hyphen), so the echo should work correctly.
14854 # The option is referenced via a variable to avoid confusing sed.
14855 lt_compile=`echo "$ac_compile" | $SED \
14856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14858 -e 's:$: $lt_compiler_flag:'`
14859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14860 (eval "$lt_compile" 2>conftest.err)
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 if (exit $ac_status) && test -s "$ac_outfile"; then
14865 # The compiler can only warn and ignore the option if not recognized
14866 # So say no if there are warnings other than the usual output.
14867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14870 lt_cv_prog_compiler_pic_works=yes
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14877 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14879 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14880 case $lt_prog_compiler_pic in
14882 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14885 lt_prog_compiler_pic=
14886 lt_prog_compiler_can_build_shared=no
14897 # Check to make sure the static flag actually works.
14899 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14901 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14902 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14903 $as_echo_n "(cached) " >&6
14905 lt_cv_prog_compiler_static_works=no
14906 save_LDFLAGS="$LDFLAGS"
14907 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14908 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14910 # The linker can only warn and ignore the option if not recognized
14911 # So say no if there are warnings
14912 if test -s conftest.err; then
14913 # Append any errors to the config.log.
14914 cat conftest.err 1>&5
14915 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14917 if diff conftest.exp conftest.er2 >/dev/null; then
14918 lt_cv_prog_compiler_static_works=yes
14921 lt_cv_prog_compiler_static_works=yes
14925 LDFLAGS="$save_LDFLAGS"
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14929 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14931 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14934 lt_prog_compiler_static=
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14945 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14946 $as_echo_n "(cached) " >&6
14948 lt_cv_prog_compiler_c_o=no
14949 $RM -r conftest 2>/dev/null
14953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14955 lt_compiler_flag="-o out/conftest2.$ac_objext"
14956 # Insert the option either (1) after the last *FLAGS variable, or
14957 # (2) before a word containing "conftest.", or (3) at the end.
14958 # Note that $ac_compile itself does not contain backslashes and begins
14959 # with a dollar sign (not a hyphen), so the echo should work correctly.
14960 lt_compile=`echo "$ac_compile" | $SED \
14961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14963 -e 's:$: $lt_compiler_flag:'`
14964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14965 (eval "$lt_compile" 2>out/conftest.err)
14967 cat out/conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14971 # The compiler can only warn and ignore the option if not recognized
14972 # So say no if there are warnings
14973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14976 lt_cv_prog_compiler_c_o=yes
14981 # SGI C++ compiler will create directory out/ii_files/ for
14982 # template instantiation
14983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14984 $RM out/* && rmdir out
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14991 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14999 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15000 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15001 $as_echo_n "(cached) " >&6
15003 lt_cv_prog_compiler_c_o=no
15004 $RM -r conftest 2>/dev/null
15008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15010 lt_compiler_flag="-o out/conftest2.$ac_objext"
15011 # Insert the option either (1) after the last *FLAGS variable, or
15012 # (2) before a word containing "conftest.", or (3) at the end.
15013 # Note that $ac_compile itself does not contain backslashes and begins
15014 # with a dollar sign (not a hyphen), so the echo should work correctly.
15015 lt_compile=`echo "$ac_compile" | $SED \
15016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15018 -e 's:$: $lt_compiler_flag:'`
15019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15020 (eval "$lt_compile" 2>out/conftest.err)
15022 cat out/conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15026 # The compiler can only warn and ignore the option if not recognized
15027 # So say no if there are warnings
15028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15031 lt_cv_prog_compiler_c_o=yes
15036 # SGI C++ compiler will create directory out/ii_files/ for
15037 # template instantiation
15038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15039 $RM out/* && rmdir out
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15046 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15051 hard_links="nottested"
15052 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15053 # do not overwrite the value of need_locks provided by the user
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15055 $as_echo_n "checking if we can lock with hard links... " >&6; }
15058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15060 ln conftest.a conftest.b 2>&5 || hard_links=no
15061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15063 $as_echo "$hard_links" >&6; }
15064 if test "$hard_links" = no; then
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15066 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15079 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15082 allow_undefined_flag=
15083 always_export_symbols=no
15085 archive_expsym_cmds=
15086 compiler_needs_object=no
15087 enable_shared_with_static_runtimes=no
15088 export_dynamic_flag_spec=
15089 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15090 hardcode_automatic=no
15092 hardcode_direct_absolute=no
15093 hardcode_libdir_flag_spec=
15094 hardcode_libdir_flag_spec_ld=
15095 hardcode_libdir_separator=
15096 hardcode_minus_L=no
15097 hardcode_shlibpath_var=unsupported
15099 link_all_deplibs=unknown
15101 module_expsym_cmds=
15102 old_archive_from_new_cmds=
15103 old_archive_from_expsyms_cmds=
15104 thread_safe_flag_spec=
15105 whole_archive_flag_spec=
15106 # include_expsyms should be a list of space-separated symbols to be *always*
15107 # included in the symbol list
15109 # exclude_expsyms can be an extended regexp of symbols to exclude
15110 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15111 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15112 # as well as any symbol that contains `d'.
15113 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15114 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15115 # platforms (ab)use it in PIC code, but their linkers get confused if
15116 # the symbol is explicitly referenced. Since portable code cannot
15117 # rely on this symbol name, it's probably fine to never include it in
15118 # preloaded symbol tables.
15119 # Exclude shared library initialization/finalization symbols.
15120 extract_expsyms_cmds=
15123 cygwin* | mingw* | pw32* | cegcc*)
15124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15125 # When not using gcc, we currently assume that we are using
15126 # Microsoft Visual C++.
15127 if test "$GCC" != yes; then
15132 # we just hope/assume this is gcc and not c89 (= MSVC++)
15142 # On some targets, GNU ld is compatible enough with the native linker
15143 # that we're better off using the native interface for both.
15144 lt_use_gnu_ld_interface=no
15145 if test "$with_gnu_ld" = yes; then
15148 # The AIX port of GNU ld has always aspired to compatibility
15149 # with the native linker. However, as the warning in the GNU ld
15150 # block says, versions before 2.19.5* couldn't really create working
15151 # shared libraries, regardless of the interface used.
15152 case `$LD -v 2>&1` in
15153 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15154 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15155 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15157 lt_use_gnu_ld_interface=yes
15162 lt_use_gnu_ld_interface=yes
15167 if test "$lt_use_gnu_ld_interface" = yes; then
15168 # If archive_cmds runs LD, not CC, wlarc should be empty
15171 # Set some defaults for GNU ld with shared library support. These
15172 # are reset later if shared libraries are not supported. Putting them
15173 # here allows them to be overridden if necessary.
15174 runpath_var=LD_RUN_PATH
15175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15176 export_dynamic_flag_spec='${wl}--export-dynamic'
15177 # ancient GNU ld didn't support --whole-archive et. al.
15178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15179 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15181 whole_archive_flag_spec=
15183 supports_anon_versioning=no
15184 case `$LD -v 2>&1` in
15185 *GNU\ gold*) supports_anon_versioning=yes ;;
15186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15189 *\ 2.11.*) ;; # other 2.11 versions
15190 *) supports_anon_versioning=yes ;;
15193 # See if GNU ld supports shared libraries.
15196 # On AIX/PPC, the GNU linker is very broken
15197 if test "$host_cpu" != ia64; then
15201 *** Warning: the GNU linker, at least up to release 2.19, is reported
15202 *** to be unable to reliably create shared libraries on AIX.
15203 *** Therefore, libtool is disabling shared libraries support. If you
15204 *** really care for shared libraries, you may want to install binutils
15205 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15206 *** You will then need to restart the configuration process.
15215 # see comment about AmigaOS4 .so support
15216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15217 archive_expsym_cmds=''
15220 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)'
15221 hardcode_libdir_flag_spec='-L$libdir'
15222 hardcode_minus_L=yes
15228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15229 allow_undefined_flag=unsupported
15230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15231 # support --undefined. This deserves some investigation. FIXME
15232 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15238 cygwin* | mingw* | pw32* | cegcc*)
15239 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15240 # as there is no search path for DLLs.
15241 hardcode_libdir_flag_spec='-L$libdir'
15242 export_dynamic_flag_spec='${wl}--export-all-symbols'
15243 allow_undefined_flag=unsupported
15244 always_export_symbols=no
15245 enable_shared_with_static_runtimes=yes
15246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15248 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15250 # If the export-symbols file already is a .def file (1st line
15251 # is EXPORTS), use it as is; otherwise, prepend...
15252 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15253 cp $export_symbols $output_objdir/$soname.def;
15255 echo EXPORTS > $output_objdir/$soname.def;
15256 cat $export_symbols >> $output_objdir/$soname.def;
15258 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15266 link_all_deplibs=yes
15271 hardcode_shlibpath_var=no
15272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15273 export_dynamic_flag_spec='${wl}-E'
15274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15275 # Instead, shared libraries are loaded at an image base (0x10000000 by
15276 # default) and relocated if they conflict, which is a slow very memory
15277 # consuming and fragmenting process. To avoid this, we pick a random,
15278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15281 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'
15284 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15286 if test "$host_os" = linux-dietlibc; then
15287 case $cc_basename in
15288 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15291 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15292 && test "$tmp_diet" = no
15295 tmp_sharedflag='-shared'
15296 case $cc_basename,$host_cpu in
15297 pgcc*) # Portland Group C compiler
15298 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'
15299 tmp_addflag=' $pic_flag'
15301 pgf77* | pgf90* | pgf95* | pgfortran*)
15302 # Portland Group f77 and f90 compilers
15303 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'
15304 tmp_addflag=' $pic_flag -Mnomain' ;;
15305 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15306 tmp_addflag=' -i_dynamic' ;;
15307 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15308 tmp_addflag=' -i_dynamic -nofor_main' ;;
15309 ifc* | ifort*) # Intel Fortran compiler
15310 tmp_addflag=' -nofor_main' ;;
15311 lf95*) # Lahey Fortran 8.1
15312 whole_archive_flag_spec=
15313 tmp_sharedflag='--shared' ;;
15314 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15315 tmp_sharedflag='-qmkshrobj'
15317 nvcc*) # Cuda Compiler Driver 2.2
15318 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'
15319 compiler_needs_object=yes
15322 case `$CC -V 2>&1 | sed 5q` in
15323 *Sun\ C*) # Sun C 5.9
15324 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'
15325 compiler_needs_object=yes
15326 tmp_sharedflag='-G' ;;
15327 *Sun\ F*) # Sun Fortran 8.3
15328 tmp_sharedflag='-G' ;;
15330 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15332 if test "x$supports_anon_versioning" = xyes; then
15333 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15334 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15335 echo "local: *; };" >> $output_objdir/$libname.ver~
15336 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15339 case $cc_basename in
15340 xlf* | bgf* | bgxlf* | mpixlf*)
15341 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15342 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15343 hardcode_libdir_flag_spec=
15344 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15345 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15346 if test "x$supports_anon_versioning" = xyes; then
15347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15349 echo "local: *; };" >> $output_objdir/$libname.ver~
15350 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15370 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15375 *** create shared libraries on Solaris systems. Therefore, libtool
15376 *** is disabling shared libraries support. We urge you to upgrade GNU
15377 *** binutils to release 2.9.1 or newer. Another option is to modify
15378 *** your PATH or compiler configuration so that the native linker is
15379 *** used, and then restart.
15382 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15391 case `$LD -v 2>&1` in
15392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15397 *** reliably create shared libraries on SCO systems. Therefore, libtool
15398 *** is disabling shared libraries support. We urge you to upgrade GNU
15399 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15400 *** your PATH or compiler configuration so that the native linker is
15401 *** used, and then restart.
15406 # For security reasons, it is highly recommended that you always
15407 # use absolute paths for naming shared libraries, and exclude the
15408 # DT_RUNPATH tag from executables and libraries. But doing so
15409 # requires that you compile everything twice, which is a pain.
15410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15422 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_direct=yes
15425 hardcode_shlibpath_var=no
15429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15438 if test "$ld_shlibs" = no; then
15440 hardcode_libdir_flag_spec=
15441 export_dynamic_flag_spec=
15442 whole_archive_flag_spec=
15445 # PORTME fill in a description of your system's linker (not GNU ld)
15448 allow_undefined_flag=unsupported
15449 always_export_symbols=yes
15450 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'
15451 # Note: this linker hardcodes the directories in LIBPATH if there
15452 # are no directories specified by -L.
15453 hardcode_minus_L=yes
15454 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15455 # Neither direct hardcoding nor static linking is supported with a
15457 hardcode_direct=unsupported
15462 if test "$host_cpu" = ia64; then
15463 # On IA64, the linker does run time linking by default, so we don't
15464 # have to do anything special.
15465 aix_use_runtimelinking=no
15466 exp_sym_flag='-Bexport'
15469 # If we're using GNU nm, then we don't want the "-C" option.
15470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15471 # Also, AIX nm treats weak defined symbols like other global
15472 # defined symbols, whereas GNU nm marks them as "W".
15473 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15474 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'
15476 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'
15478 aix_use_runtimelinking=no
15480 # Test if we are trying to use run time linking or normal
15481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15482 # need to do runtime linking.
15483 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15484 for ld_flag in $LDFLAGS; do
15485 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15486 aix_use_runtimelinking=yes
15493 exp_sym_flag='-bexport'
15494 no_entry_flag='-bnoentry'
15497 # When large executables or shared objects are built, AIX ld can
15498 # have problems creating the table of contents. If linking a library
15499 # or program results in "error TOC overflow" add -mminimal-toc to
15500 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15501 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15504 hardcode_direct=yes
15505 hardcode_direct_absolute=yes
15506 hardcode_libdir_separator=':'
15507 link_all_deplibs=yes
15508 file_list_spec='${wl}-f,'
15510 if test "$GCC" = yes; then
15511 case $host_os in aix4.[012]|aix4.[012].*)
15512 # We only want to do this on AIX 4.2 and lower, the check
15513 # below for broken collect2 doesn't work under 4.3+
15514 collect2name=`${CC} -print-prog-name=collect2`
15515 if test -f "$collect2name" &&
15516 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15518 # We have reworked collect2
15521 # We have old collect2
15522 hardcode_direct=unsupported
15523 # It fails to find uninstalled libraries when the uninstalled
15524 # path is not listed in the libpath. Setting hardcode_minus_L
15525 # to unsupported forces relinking
15526 hardcode_minus_L=yes
15527 hardcode_libdir_flag_spec='-L$libdir'
15528 hardcode_libdir_separator=
15532 shared_flag='-shared'
15533 if test "$aix_use_runtimelinking" = yes; then
15534 shared_flag="$shared_flag "'${wl}-G'
15538 if test "$host_cpu" = ia64; then
15539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15540 # chokes on -Wl,-G. The following line is correct:
15543 if test "$aix_use_runtimelinking" = yes; then
15544 shared_flag='${wl}-G'
15546 shared_flag='${wl}-bM:SRE'
15551 export_dynamic_flag_spec='${wl}-bexpall'
15552 # It seems that -bexpall does not export symbols beginning with
15553 # underscore (_), so it is better to generate a list of symbols to export.
15554 always_export_symbols=yes
15555 if test "$aix_use_runtimelinking" = yes; then
15556 # Warning - without using the other runtime loading flags (-brtl),
15557 # -berok will link without error, but may produce a broken library.
15558 allow_undefined_flag='-berok'
15559 # Determine the default libpath from the value encoded in an
15560 # empty executable.
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15572 if ac_fn_c_try_link "$LINENO"; then :
15574 lt_aix_libpath_sed='
15575 /Import File Strings/,/^$/ {
15581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15582 # Check for a 64-bit object if we didn't find anything.
15583 if test -z "$aix_libpath"; then
15584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15587 rm -f core conftest.err conftest.$ac_objext \
15588 conftest$ac_exeext conftest.$ac_ext
15589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15592 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"
15594 if test "$host_cpu" = ia64; then
15595 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15596 allow_undefined_flag="-z nodefs"
15597 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"
15599 # Determine the default libpath from the value encoded in an
15600 # empty executable.
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15612 if ac_fn_c_try_link "$LINENO"; then :
15614 lt_aix_libpath_sed='
15615 /Import File Strings/,/^$/ {
15621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15622 # Check for a 64-bit object if we didn't find anything.
15623 if test -z "$aix_libpath"; then
15624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15627 rm -f core conftest.err conftest.$ac_objext \
15628 conftest$ac_exeext conftest.$ac_ext
15629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15631 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15632 # Warning - without using the other run time loading flags,
15633 # -berok will link without error, but may produce a broken library.
15634 no_undefined_flag=' ${wl}-bernotok'
15635 allow_undefined_flag=' ${wl}-berok'
15636 if test "$with_gnu_ld" = yes; then
15637 # We only use this code for GNU lds that support --whole-archive.
15638 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15640 # Exported symbols can be pulled into shared objects from archives
15641 whole_archive_flag_spec='$convenience'
15643 archive_cmds_need_lc=yes
15644 # This is similar to how AIX traditionally builds its shared libraries.
15645 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'
15653 # see comment about AmigaOS4 .so support
15654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15655 archive_expsym_cmds=''
15658 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)'
15659 hardcode_libdir_flag_spec='-L$libdir'
15660 hardcode_minus_L=yes
15666 export_dynamic_flag_spec=-rdynamic
15669 cygwin* | mingw* | pw32* | cegcc*)
15670 # When not using gcc, we currently assume that we are using
15671 # Microsoft Visual C++.
15672 # hardcode_libdir_flag_spec is actually meaningless, as there is
15673 # no search path for DLLs.
15674 hardcode_libdir_flag_spec=' '
15675 allow_undefined_flag=unsupported
15676 # Tell ltmain to make .lib files, not .a files.
15678 # Tell ltmain to make .dll files, not .so files.
15680 # FIXME: Setting linknames here is a bad hack.
15681 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15682 # The linker will automatically build a .lib file if we build a DLL.
15683 old_archive_from_new_cmds='true'
15684 # FIXME: Should let the user specify the lib program.
15685 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15686 fix_srcfile_path='`cygpath -w "$srcfile"`'
15687 enable_shared_with_static_runtimes=yes
15690 darwin* | rhapsody*)
15693 archive_cmds_need_lc=no
15695 hardcode_automatic=yes
15696 hardcode_shlibpath_var=unsupported
15697 if test "$lt_cv_ld_force_load" = "yes"; then
15698 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\"`'
15700 whole_archive_flag_spec=''
15702 link_all_deplibs=yes
15703 allow_undefined_flag="$_lt_dar_allow_undefined"
15704 case $cc_basename in
15705 ifort*) _lt_dar_can_shared=yes ;;
15706 *) _lt_dar_can_shared=$GCC ;;
15708 if test "$_lt_dar_can_shared" = "yes"; then
15709 output_verbose_link_cmd=func_echo_all
15710 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15711 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15712 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}"
15713 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}"
15722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15723 hardcode_libdir_flag_spec='-L$libdir'
15724 hardcode_shlibpath_var=no
15731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15732 # support. Future versions do this automatically, but an explicit c++rt0.o
15733 # does not break anything, and helps significantly (at the cost of a little
15736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15737 hardcode_libdir_flag_spec='-R$libdir'
15738 hardcode_direct=yes
15739 hardcode_shlibpath_var=no
15742 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15745 hardcode_direct=yes
15746 hardcode_minus_L=yes
15747 hardcode_shlibpath_var=no
15750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15751 freebsd* | dragonfly*)
15752 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15753 hardcode_libdir_flag_spec='-R$libdir'
15754 hardcode_direct=yes
15755 hardcode_shlibpath_var=no
15759 if test "$GCC" = yes; then
15760 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'
15762 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'
15764 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15765 hardcode_libdir_separator=:
15766 hardcode_direct=yes
15768 # hardcode_minus_L: Not really in the search PATH,
15769 # but as the default location of the library.
15770 hardcode_minus_L=yes
15771 export_dynamic_flag_spec='${wl}-E'
15775 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15776 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15778 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15780 if test "$with_gnu_ld" = no; then
15781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15782 hardcode_libdir_flag_spec_ld='+b $libdir'
15783 hardcode_libdir_separator=:
15784 hardcode_direct=yes
15785 hardcode_direct_absolute=yes
15786 export_dynamic_flag_spec='${wl}-E'
15787 # hardcode_minus_L: Not really in the search PATH,
15788 # but as the default location of the library.
15789 hardcode_minus_L=yes
15794 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15797 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15803 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15809 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15812 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15816 # Older versions of the 11.00 compiler do not understand -b yet
15817 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15819 $as_echo_n "checking if $CC understands -b... " >&6; }
15820 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15821 $as_echo_n "(cached) " >&6
15823 lt_cv_prog_compiler__b=no
15824 save_LDFLAGS="$LDFLAGS"
15825 LDFLAGS="$LDFLAGS -b"
15826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15828 # The linker can only warn and ignore the option if not recognized
15829 # So say no if there are warnings
15830 if test -s conftest.err; then
15831 # Append any errors to the config.log.
15832 cat conftest.err 1>&5
15833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15835 if diff conftest.exp conftest.er2 >/dev/null; then
15836 lt_cv_prog_compiler__b=yes
15839 lt_cv_prog_compiler__b=yes
15843 LDFLAGS="$save_LDFLAGS"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15847 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15849 if test x"$lt_cv_prog_compiler__b" = xyes; then
15850 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15858 if test "$with_gnu_ld" = no; then
15859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15860 hardcode_libdir_separator=:
15865 hardcode_shlibpath_var=no
15868 hardcode_direct=yes
15869 hardcode_direct_absolute=yes
15870 export_dynamic_flag_spec='${wl}-E'
15872 # hardcode_minus_L: Not really in the search PATH,
15873 # but as the default location of the library.
15874 hardcode_minus_L=yes
15880 irix5* | irix6* | nonstopux*)
15881 if test "$GCC" = yes; then
15882 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'
15883 # Try to use the -exported_symbol ld option, if it does not
15884 # work, assume that -exports_file does not work either and
15885 # implicitly export all symbols.
15886 save_LDFLAGS="$LDFLAGS"
15887 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15892 if ac_fn_c_try_link "$LINENO"; then :
15893 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'
15896 rm -f core conftest.err conftest.$ac_objext \
15897 conftest$ac_exeext conftest.$ac_ext
15898 LDFLAGS="$save_LDFLAGS"
15900 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'
15901 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'
15903 archive_cmds_need_lc='no'
15904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15905 hardcode_libdir_separator=:
15907 link_all_deplibs=yes
15911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15914 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15916 hardcode_libdir_flag_spec='-R$libdir'
15917 hardcode_direct=yes
15918 hardcode_shlibpath_var=no
15922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_direct=yes
15924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15925 hardcode_libdir_separator=:
15926 hardcode_shlibpath_var=no
15933 if test -f /usr/libexec/ld.so; then
15934 hardcode_direct=yes
15935 hardcode_shlibpath_var=no
15936 hardcode_direct_absolute=yes
15937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15939 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15941 export_dynamic_flag_spec='${wl}-E'
15944 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15946 hardcode_libdir_flag_spec='-R$libdir'
15949 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15960 hardcode_libdir_flag_spec='-L$libdir'
15961 hardcode_minus_L=yes
15962 allow_undefined_flag=unsupported
15963 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'
15964 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15968 if test "$GCC" = yes; then
15969 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15970 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'
15972 allow_undefined_flag=' -expect_unresolved \*'
15973 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'
15975 archive_cmds_need_lc='no'
15976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15977 hardcode_libdir_separator=:
15980 osf4* | osf5*) # as osf3* with the addition of -msym flag
15981 if test "$GCC" = yes; then
15982 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15983 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'
15984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15986 allow_undefined_flag=' -expect_unresolved \*'
15987 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'
15988 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~
15989 $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'
15991 # Both c and cxx compiler support -rpath directly
15992 hardcode_libdir_flag_spec='-rpath $libdir'
15994 archive_cmds_need_lc='no'
15995 hardcode_libdir_separator=:
15999 no_undefined_flag=' -z defs'
16000 if test "$GCC" = yes; then
16002 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16004 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16006 case `$CC -V 2>&1` in
16009 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16015 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16017 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16021 hardcode_libdir_flag_spec='-R$libdir'
16022 hardcode_shlibpath_var=no
16024 solaris2.[0-5] | solaris2.[0-5].*) ;;
16026 # The compiler driver will combine and reorder linker options,
16027 # but understands `-z linker_flag'. GCC discards it without `$wl',
16028 # but is careful enough not to reorder.
16029 # Supported since Solaris 2.6 (maybe 2.5.1?)
16030 if test "$GCC" = yes; then
16031 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16033 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16037 link_all_deplibs=yes
16041 if test "x$host_vendor" = xsequent; then
16042 # Use $CC to link under sequent, because it throws in some extra .o
16043 # files that make .init and .fini sections work.
16044 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16046 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16048 hardcode_libdir_flag_spec='-L$libdir'
16049 hardcode_direct=yes
16050 hardcode_minus_L=yes
16051 hardcode_shlibpath_var=no
16055 case $host_vendor in
16057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16058 hardcode_direct=yes # is this really true???
16061 ## LD is ld it makes a PLAMLIB
16062 ## CC just makes a GrossModule.
16063 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16064 reload_cmds='$CC -r -o $output$reload_objs'
16068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16072 runpath_var='LD_RUN_PATH'
16073 hardcode_shlibpath_var=no
16077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_shlibpath_var=no
16079 export_dynamic_flag_spec='-Bexport'
16083 if test -d /usr/nec; then
16084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085 hardcode_shlibpath_var=no
16086 runpath_var=LD_RUN_PATH
16087 hardcode_runpath_var=yes
16092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16093 no_undefined_flag='${wl}-z,text'
16094 archive_cmds_need_lc=no
16095 hardcode_shlibpath_var=no
16096 runpath_var='LD_RUN_PATH'
16098 if test "$GCC" = yes; then
16099 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16100 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16102 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16103 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16107 sysv5* | sco3.2v5* | sco5v6*)
16108 # Note: We can NOT use -z defs as we might desire, because we do not
16109 # link with -lc, and that would cause any symbols used from libc to
16110 # always be unresolved, which means just about no library would
16111 # ever link correctly. If we're not using GNU ld we use -z text
16112 # though, which does catch some bad symbols but isn't as heavy-handed
16114 no_undefined_flag='${wl}-z,text'
16115 allow_undefined_flag='${wl}-z,nodefs'
16116 archive_cmds_need_lc=no
16117 hardcode_shlibpath_var=no
16118 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16119 hardcode_libdir_separator=':'
16120 link_all_deplibs=yes
16121 export_dynamic_flag_spec='${wl}-Bexport'
16122 runpath_var='LD_RUN_PATH'
16124 if test "$GCC" = yes; then
16125 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16126 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16128 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16129 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_libdir_flag_spec='-L$libdir'
16136 hardcode_shlibpath_var=no
16144 if test x$host_vendor = xsni; then
16146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16147 export_dynamic_flag_spec='${wl}-Blargedynsym'
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16154 $as_echo "$ld_shlibs" >&6; }
16155 test "$ld_shlibs" = no && can_build_shared=no
16157 with_gnu_ld=$with_gnu_ld
16174 # Do we need to explicitly link libc?
16176 case "x$archive_cmds_need_lc" in
16178 # Assume -lc should be added
16179 archive_cmds_need_lc=yes
16181 if test "$enable_shared" = yes && test "$GCC" = yes; then
16182 case $archive_cmds in
16184 # FIXME: we may have to deal with multi-command sequences.
16187 # Test whether the compiler implicitly links with -lc since on some
16188 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16189 # to ld, don't add -lc before -lgcc.
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16191 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16192 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16193 $as_echo_n "(cached) " >&6
16196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16199 (eval $ac_compile) 2>&5
16201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202 test $ac_status = 0; } 2>conftest.err; then
16205 libobjs=conftest.$ac_objext
16207 wl=$lt_prog_compiler_wl
16208 pic_flag=$lt_prog_compiler_pic
16214 lt_save_allow_undefined_flag=$allow_undefined_flag
16215 allow_undefined_flag=
16216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16217 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16220 test $ac_status = 0; }
16222 lt_cv_archive_cmds_need_lc=no
16224 lt_cv_archive_cmds_need_lc=yes
16226 allow_undefined_flag=$lt_save_allow_undefined_flag
16228 cat conftest.err 1>&5
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16234 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16235 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16399 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16401 if test "$GCC" = yes; then
16403 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16404 *) lt_awk_arg="/^libraries:/" ;;
16407 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16408 *) lt_sed_strip_eq="s,=/,/,g" ;;
16410 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16411 case $lt_search_path_spec in
16413 # if the path contains ";" then we assume it to be the separator
16414 # otherwise default to the standard path separator (i.e. ":") - it is
16415 # assumed that no part of a normal pathname contains ";" but that should
16416 # okay in the real world where ";" in dirpaths is itself problematic.
16417 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16420 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16423 # Ok, now we have the path, separated by spaces, we can step through it
16424 # and add multilib dir if necessary.
16425 lt_tmp_lt_search_path_spec=
16426 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16427 for lt_sys_path in $lt_search_path_spec; do
16428 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16431 test -d "$lt_sys_path" && \
16432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16435 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16436 BEGIN {RS=" "; FS="/|\n";} {
16439 for (lt_i = NF; lt_i > 0; lt_i--) {
16440 if ($lt_i != "" && $lt_i != ".") {
16441 if ($lt_i == "..") {
16444 if (lt_count == 0) {
16445 lt_foo="/" $lt_i lt_foo;
16452 if (lt_foo != "") { lt_freq[lt_foo]++; }
16453 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16455 # AWK program above erroneously prepends '/' to C:/dos/paths
16458 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16459 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16461 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16463 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16465 library_names_spec=
16466 libname_spec='lib$name'
16470 postuninstall_cmds=
16474 shlibpath_overrides_runpath=unknown
16476 dynamic_linker="$host_os ld.so"
16477 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16478 need_lib_prefix=unknown
16479 hardcode_into_libs=no
16481 # when you set need_version to no, make sure it does not cause -set_version
16482 # flags to be left without arguments
16483 need_version=unknown
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16489 shlibpath_var=LIBPATH
16491 # AIX 3 has no versioning support, so we append a major version to the name.
16492 soname_spec='${libname}${release}${shared_ext}$major'
16499 hardcode_into_libs=yes
16500 if test "$host_cpu" = ia64; then
16501 # AIX 5 supports IA64
16502 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16503 shlibpath_var=LD_LIBRARY_PATH
16505 # With GCC up to 2.95.x, collect2 would create an import file
16506 # for dependence libraries. The import file would start with
16507 # the line `#! .'. This would cause the generated library to
16508 # depend on `.', always an invalid library. This was fixed in
16509 # development snapshots of GCC prior to 3.0.
16511 aix4 | aix4.[01] | aix4.[01].*)
16512 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16514 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16517 can_build_shared=no
16521 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16522 # soname into executable. Probably we can add versioning support to
16523 # collect2, so additional links can be useful in future.
16524 if test "$aix_use_runtimelinking" = yes; then
16525 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16526 # instead of lib<name>.a to let people know that these are not
16527 # typical AIX shared libraries.
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530 # We preserve .a as extension for shared libraries through AIX4.2
16531 # and later when we are not doing run time linking.
16532 library_names_spec='${libname}${release}.a $libname.a'
16533 soname_spec='${libname}${release}${shared_ext}$major'
16535 shlibpath_var=LIBPATH
16542 # Since July 2007 AmigaOS4 officially supports .so libraries.
16543 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547 library_names_spec='$libname.ixlibrary $libname.a'
16548 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16549 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'
16555 library_names_spec='${libname}${shared_ext}'
16556 dynamic_linker="$host_os ld.so"
16557 shlibpath_var=LIBRARY_PATH
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16566 shlibpath_var=LD_LIBRARY_PATH
16567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16569 # the default ld.so.conf also contains /usr/contrib/lib and
16570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16571 # libtool to hard-code these into programs
16574 cygwin* | mingw* | pw32* | cegcc*)
16575 version_type=windows
16580 case $GCC,$host_os in
16581 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16582 library_names_spec='$libname.dll.a'
16583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16584 postinstall_cmds='base_file=`basename \${file}`~
16585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16586 dldir=$destdir/`dirname \$dlpath`~
16587 test -d \$dldir || mkdir -p \$dldir~
16588 $install_prog $dir/$dlname \$dldir/$dlname~
16589 chmod a+x \$dldir/$dlname~
16590 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16591 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16594 dlpath=$dir/\$dldll~
16596 shlibpath_overrides_runpath=yes
16600 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16601 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16603 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16606 # MinGW DLLs use traditional 'lib' prefix
16607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16610 # pw32 DLLs use 'pw' prefix rather than 'lib'
16611 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16617 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16620 dynamic_linker='Win32 ld.exe'
16621 # FIXME: first we should search . and the directory the executable is in
16625 darwin* | rhapsody*)
16626 dynamic_linker="$host_os dyld"
16627 version_type=darwin
16630 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16631 soname_spec='${libname}${release}${major}$shared_ext'
16632 shlibpath_overrides_runpath=yes
16633 shlibpath_var=DYLD_LIBRARY_PATH
16634 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16636 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16637 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16645 soname_spec='${libname}${release}${shared_ext}$major'
16646 shlibpath_var=LD_LIBRARY_PATH
16653 freebsd* | dragonfly*)
16654 # DragonFly does not have aout. When/if they implement a new
16655 # versioning mechanism, adjust this.
16656 if test -x /usr/bin/objformat; then
16657 objformat=`/usr/bin/objformat`
16660 freebsd[123]*) objformat=aout ;;
16661 *) objformat=elf ;;
16664 version_type=freebsd-$objformat
16665 case $version_type in
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16676 shlibpath_var=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath=yes
16681 freebsd3.[01]* | freebsdelf3.[01]*)
16682 shlibpath_overrides_runpath=yes
16683 hardcode_into_libs=yes
16685 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16686 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16687 shlibpath_overrides_runpath=no
16688 hardcode_into_libs=yes
16690 *) # from 4.6 on, and DragonFly
16691 shlibpath_overrides_runpath=yes
16692 hardcode_into_libs=yes
16701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16702 soname_spec='${libname}${release}${shared_ext}$major'
16703 shlibpath_var=LD_LIBRARY_PATH
16704 hardcode_into_libs=yes
16711 dynamic_linker="$host_os runtime_loader"
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 shlibpath_var=LIBRARY_PATH
16715 shlibpath_overrides_runpath=yes
16716 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16717 hardcode_into_libs=yes
16720 hpux9* | hpux10* | hpux11*)
16721 # Give a soname corresponding to the major version so that dld.sl refuses to
16722 # link against other versions.
16729 hardcode_into_libs=yes
16730 dynamic_linker="$host_os dld.so"
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734 soname_spec='${libname}${release}${shared_ext}$major'
16735 if test "X$HPUX_IA64_MODE" = X32; then
16736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16738 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16744 hardcode_into_libs=yes
16745 dynamic_linker="$host_os dld.sl"
16746 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16755 dynamic_linker="$host_os dld.sl"
16756 shlibpath_var=SHLIB_PATH
16757 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 soname_spec='${libname}${release}${shared_ext}$major'
16762 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16763 postinstall_cmds='chmod 555 $lib'
16764 # or fails outright, so override atomically:
16765 install_override_mode=555
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 shlibpath_overrides_runpath=no
16777 hardcode_into_libs=yes
16780 irix5* | irix6* | nonstopux*)
16782 nonstopux*) version_type=nonstopux ;;
16784 if test "$lt_cv_prog_gnu_ld" = yes; then
16792 soname_spec='${libname}${release}${shared_ext}$major'
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16795 irix5* | nonstopux*)
16796 libsuff= shlibsuff=
16799 case $LD in # libtool.m4 will add one of these switches to LD
16800 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16801 libsuff= shlibsuff= libmagic=32-bit;;
16802 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16803 libsuff=32 shlibsuff=N32 libmagic=N32;;
16804 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16805 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16806 *) libsuff= shlibsuff= libmagic=never-match;;
16810 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16811 shlibpath_overrides_runpath=no
16812 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16813 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16814 hardcode_into_libs=yes
16817 # No shared lib support for Linux oldld, aout, or coff.
16818 linux*oldld* | linux*aout* | linux*coff*)
16822 # This must be Linux ELF.
16823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16830 shlibpath_var=LD_LIBRARY_PATH
16831 shlibpath_overrides_runpath=no
16833 # Some binutils ld are patched to set DT_RUNPATH
16834 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16835 $as_echo_n "(cached) " >&6
16837 lt_cv_shlibpath_overrides_runpath=no
16838 save_LDFLAGS=$LDFLAGS
16839 save_libdir=$libdir
16840 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16841 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16853 if ac_fn_c_try_link "$LINENO"; then :
16854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16855 lt_cv_shlibpath_overrides_runpath=yes
16858 rm -f core conftest.err conftest.$ac_objext \
16859 conftest$ac_exeext conftest.$ac_ext
16860 LDFLAGS=$save_LDFLAGS
16861 libdir=$save_libdir
16865 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16867 # This implies no fast_install, which is unacceptable.
16868 # Some rework will be needed to allow for fast_install
16869 # before this can be enabled.
16870 hardcode_into_libs=yes
16872 # Append ld.so.conf contents to the search path
16873 if test -f /etc/ld.so.conf; then
16874 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' ' '`
16875 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16878 # We used to test for /lib/ld.so.1 and disable shared libraries on
16879 # powerpc, because MkLinux only supported shared libraries with the
16880 # GNU dynamic linker. Since this was broken with cross compilers,
16881 # most powerpc-linux boxes support dynamic linking these days and
16882 # people can always --disable-shared, the test was removed, and we
16883 # assume the GNU/Linux dynamic linker is in use.
16884 dynamic_linker='GNU/Linux ld.so'
16891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16894 dynamic_linker='NetBSD (a.out) ld.so'
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16897 soname_spec='${libname}${release}${shared_ext}$major'
16898 dynamic_linker='NetBSD ld.elf_so'
16900 shlibpath_var=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath=yes
16902 hardcode_into_libs=yes
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 shlibpath_overrides_runpath=yes
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 shlibpath_var=LD_LIBRARY_PATH
16919 shlibpath_overrides_runpath=no
16920 hardcode_into_libs=yes
16921 dynamic_linker='ldqnx.so'
16926 sys_lib_dlsearch_path_spec="/usr/lib"
16928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16930 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16931 *) need_version=no ;;
16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16935 shlibpath_var=LD_LIBRARY_PATH
16936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16938 openbsd2.[89] | openbsd2.[89].*)
16939 shlibpath_overrides_runpath=no
16942 shlibpath_overrides_runpath=yes
16946 shlibpath_overrides_runpath=yes
16951 libname_spec='$name'
16954 library_names_spec='$libname${shared_ext} $libname.a'
16955 dynamic_linker='OS/2 ld.exe'
16956 shlibpath_var=LIBPATH
16959 osf3* | osf4* | osf5*)
16963 soname_spec='${libname}${release}${shared_ext}$major'
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965 shlibpath_var=LD_LIBRARY_PATH
16966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=yes
16982 hardcode_into_libs=yes
16983 # ldd complains unless libraries are executable
16984 postinstall_cmds='chmod +x $lib'
16989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16990 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16991 shlibpath_var=LD_LIBRARY_PATH
16992 shlibpath_overrides_runpath=yes
16993 if test "$with_gnu_ld" = yes; then
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 case $host_vendor in
17006 shlibpath_overrides_runpath=no
17008 runpath_var=LD_RUN_PATH
17016 shlibpath_overrides_runpath=no
17017 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17023 if test -d /usr/nec ;then
17025 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17026 soname_spec='$libname${shared_ext}.$major'
17027 shlibpath_var=LD_LIBRARY_PATH
17031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17032 version_type=freebsd-elf
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=yes
17039 hardcode_into_libs=yes
17040 if test "$with_gnu_ld" = yes; then
17041 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17043 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17046 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17050 sys_lib_dlsearch_path_spec='/usr/lib'
17054 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059 shlibpath_var=LD_LIBRARY_PATH
17060 shlibpath_overrides_runpath=no
17061 hardcode_into_libs=yes
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 shlibpath_var=LD_LIBRARY_PATH
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17076 $as_echo "$dynamic_linker" >&6; }
17077 test "$dynamic_linker" = no && can_build_shared=no
17079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17080 if test "$GCC" = yes; then
17081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17084 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17085 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17087 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17088 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17183 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17185 if test -n "$hardcode_libdir_flag_spec" ||
17186 test -n "$runpath_var" ||
17187 test "X$hardcode_automatic" = "Xyes" ; then
17189 # We can hardcode non-existent directories.
17190 if test "$hardcode_direct" != no &&
17191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17192 # have to relink, otherwise we might link with an installed library
17193 # when we should be linking with a yet-to-be-installed one
17194 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17195 test "$hardcode_minus_L" != no; then
17196 # Linking always hardcodes the temporary library directory.
17197 hardcode_action=relink
17199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17200 hardcode_action=immediate
17203 # We cannot hardcode anything, or else we can only hardcode existing
17205 hardcode_action=unsupported
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17208 $as_echo "$hardcode_action" >&6; }
17210 if test "$hardcode_action" = relink ||
17211 test "$inherit_rpath" = yes; then
17212 # Fast installation is not supported
17213 enable_fast_install=no
17214 elif test "$shlibpath_overrides_runpath" = yes ||
17215 test "$enable_shared" = no; then
17216 # Fast installation is not necessary
17217 enable_fast_install=needless
17225 if test "x$enable_dlopen" != xyes; then
17226 enable_dlopen=unknown
17227 enable_dlopen_self=unknown
17228 enable_dlopen_self_static=unknown
17235 lt_cv_dlopen="load_add_on"
17237 lt_cv_dlopen_self=yes
17240 mingw* | pw32* | cegcc*)
17241 lt_cv_dlopen="LoadLibrary"
17246 lt_cv_dlopen="dlopen"
17251 # if libdl is installed we need to link against it
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17255 $as_echo_n "(cached) " >&6
17257 ac_check_lib_save_LIBS=$LIBS
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17262 /* Override any GCC internal prototype to avoid an error.
17263 Use char because int might match the return type of a GCC
17264 builtin and then its argument prototype would still apply. */
17277 if ac_fn_c_try_link "$LINENO"; then :
17278 ac_cv_lib_dl_dlopen=yes
17280 ac_cv_lib_dl_dlopen=no
17282 rm -f core conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
17284 LIBS=$ac_check_lib_save_LIBS
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17288 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17292 lt_cv_dlopen="dyld"
17294 lt_cv_dlopen_self=yes
17301 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17302 if test "x$ac_cv_func_shl_load" = x""yes; then :
17303 lt_cv_dlopen="shl_load"
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17306 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17308 $as_echo_n "(cached) " >&6
17310 ac_check_lib_save_LIBS=$LIBS
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17315 /* Override any GCC internal prototype to avoid an error.
17316 Use char because int might match the return type of a GCC
17317 builtin and then its argument prototype would still apply. */
17325 return shl_load ();
17330 if ac_fn_c_try_link "$LINENO"; then :
17331 ac_cv_lib_dld_shl_load=yes
17333 ac_cv_lib_dld_shl_load=no
17335 rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17340 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17341 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17342 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17344 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17345 if test "x$ac_cv_func_dlopen" = x""yes; then :
17346 lt_cv_dlopen="dlopen"
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17351 $as_echo_n "(cached) " >&6
17353 ac_check_lib_save_LIBS=$LIBS
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17358 /* Override any GCC internal prototype to avoid an error.
17359 Use char because int might match the return type of a GCC
17360 builtin and then its argument prototype would still apply. */
17373 if ac_fn_c_try_link "$LINENO"; then :
17374 ac_cv_lib_dl_dlopen=yes
17376 ac_cv_lib_dl_dlopen=no
17378 rm -f core conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
17380 LIBS=$ac_check_lib_save_LIBS
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17384 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17388 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17389 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17390 $as_echo_n "(cached) " >&6
17392 ac_check_lib_save_LIBS=$LIBS
17393 LIBS="-lsvld $LIBS"
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h. */
17397 /* Override any GCC internal prototype to avoid an error.
17398 Use char because int might match the return type of a GCC
17399 builtin and then its argument prototype would still apply. */
17412 if ac_fn_c_try_link "$LINENO"; then :
17413 ac_cv_lib_svld_dlopen=yes
17415 ac_cv_lib_svld_dlopen=no
17417 rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17419 LIBS=$ac_check_lib_save_LIBS
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17422 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17423 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17427 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17428 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17429 $as_echo_n "(cached) " >&6
17431 ac_check_lib_save_LIBS=$LIBS
17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17436 /* Override any GCC internal prototype to avoid an error.
17437 Use char because int might match the return type of a GCC
17438 builtin and then its argument prototype would still apply. */
17446 return dld_link ();
17451 if ac_fn_c_try_link "$LINENO"; then :
17452 ac_cv_lib_dld_dld_link=yes
17454 ac_cv_lib_dld_dld_link=no
17456 rm -f core conftest.err conftest.$ac_objext \
17457 conftest$ac_exeext conftest.$ac_ext
17458 LIBS=$ac_check_lib_save_LIBS
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17461 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17462 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17484 if test "x$lt_cv_dlopen" != xno; then
17490 case $lt_cv_dlopen in
17492 save_CPPFLAGS="$CPPFLAGS"
17493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17495 save_LDFLAGS="$LDFLAGS"
17496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17499 LIBS="$lt_cv_dlopen_libs $LIBS"
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17502 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17503 if test "${lt_cv_dlopen_self+set}" = set; then :
17504 $as_echo_n "(cached) " >&6
17506 if test "$cross_compiling" = yes; then :
17507 lt_cv_dlopen_self=cross
17509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17510 lt_status=$lt_dlunknown
17511 cat > conftest.$ac_ext <<_LT_EOF
17512 #line 17512 "configure"
17513 #include "confdefs.h"
17522 # define LT_DLGLOBAL RTLD_GLOBAL
17525 # define LT_DLGLOBAL DL_GLOBAL
17527 # define LT_DLGLOBAL 0
17531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17532 find out it does not work in some platform. */
17533 #ifndef LT_DLLAZY_OR_NOW
17535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17538 # define LT_DLLAZY_OR_NOW DL_LAZY
17541 # define LT_DLLAZY_OR_NOW RTLD_NOW
17544 # define LT_DLLAZY_OR_NOW DL_NOW
17546 # define LT_DLLAZY_OR_NOW 0
17553 /* When -fvisbility=hidden is used, assume the code has been annotated
17554 correspondingly for the symbols needed. */
17555 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17556 void fnord () __attribute__((visibility("default")));
17559 void fnord () { int i=42; }
17562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17563 int status = $lt_dlunknown;
17567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17570 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17571 else puts (dlerror ());
17573 /* dlclose (self); */
17581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17582 (eval $ac_link) 2>&5
17584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17586 (./conftest; exit; ) >&5 2>/dev/null
17588 case x$lt_status in
17589 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17590 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17591 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17594 # compilation failed
17595 lt_cv_dlopen_self=no
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17603 $as_echo "$lt_cv_dlopen_self" >&6; }
17605 if test "x$lt_cv_dlopen_self" = xyes; then
17606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17608 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17609 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17610 $as_echo_n "(cached) " >&6
17612 if test "$cross_compiling" = yes; then :
17613 lt_cv_dlopen_self_static=cross
17615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17616 lt_status=$lt_dlunknown
17617 cat > conftest.$ac_ext <<_LT_EOF
17618 #line 17618 "configure"
17619 #include "confdefs.h"
17628 # define LT_DLGLOBAL RTLD_GLOBAL
17631 # define LT_DLGLOBAL DL_GLOBAL
17633 # define LT_DLGLOBAL 0
17637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17638 find out it does not work in some platform. */
17639 #ifndef LT_DLLAZY_OR_NOW
17641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17644 # define LT_DLLAZY_OR_NOW DL_LAZY
17647 # define LT_DLLAZY_OR_NOW RTLD_NOW
17650 # define LT_DLLAZY_OR_NOW DL_NOW
17652 # define LT_DLLAZY_OR_NOW 0
17659 /* When -fvisbility=hidden is used, assume the code has been annotated
17660 correspondingly for the symbols needed. */
17661 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17662 void fnord () __attribute__((visibility("default")));
17665 void fnord () { int i=42; }
17668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17669 int status = $lt_dlunknown;
17673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17676 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17677 else puts (dlerror ());
17679 /* dlclose (self); */
17687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17688 (eval $ac_link) 2>&5
17690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17691 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17692 (./conftest; exit; ) >&5 2>/dev/null
17694 case x$lt_status in
17695 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17696 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17697 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17700 # compilation failed
17701 lt_cv_dlopen_self_static=no
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17709 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17712 CPPFLAGS="$save_CPPFLAGS"
17713 LDFLAGS="$save_LDFLAGS"
17718 case $lt_cv_dlopen_self in
17719 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17720 *) enable_dlopen_self=unknown ;;
17723 case $lt_cv_dlopen_self_static in
17724 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17725 *) enable_dlopen_self_static=unknown ;;
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17748 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17749 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17750 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17751 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17753 $as_echo "yes" >&6; }
17755 # FIXME - insert some real tests, host_os isn't really good enough
17758 if test -n "$STRIP" ; then
17759 striplib="$STRIP -x"
17760 old_striplib="$STRIP -S"
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17762 $as_echo "yes" >&6; }
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765 $as_echo "no" >&6; }
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17770 $as_echo "no" >&6; }
17786 # Report which library types will actually be built
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17788 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17790 $as_echo "$can_build_shared" >&6; }
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17793 $as_echo_n "checking whether to build shared libraries... " >&6; }
17794 test "$can_build_shared" = "no" && enable_shared=no
17796 # On AIX, shared libraries and static libraries use the same namespace, and
17797 # are all built from PIC.
17800 test "$enable_shared" = yes && enable_static=no
17801 if test -n "$RANLIB"; then
17802 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17803 postinstall_cmds='$RANLIB $lib'
17808 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17809 test "$enable_shared" = yes && enable_static=no
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17814 $as_echo "$enable_shared" >&6; }
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17817 $as_echo_n "checking whether to build static libraries... " >&6; }
17818 # Make sure either enable_shared or enable_static is yes.
17819 test "$enable_shared" = yes || enable_static=yes
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17821 $as_echo "$enable_static" >&6; }
17828 ac_cpp='$CPP $CPPFLAGS'
17829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17835 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17836 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17837 (test "X$CXX" != "Xg++"))) ; then
17839 ac_cpp='$CXXCPP $CPPFLAGS'
17840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17844 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17845 if test -z "$CXXCPP"; then
17846 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17847 $as_echo_n "(cached) " >&6
17849 # Double quotes because CXXCPP needs to be expanded
17850 for CXXCPP in "$CXX -E" "/lib/cpp"
17852 ac_preproc_ok=false
17853 for ac_cxx_preproc_warn_flag in '' yes
17855 # Use a header file that comes with gcc, so configuring glibc
17856 # with a fresh cross-compiler works.
17857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17858 # <limits.h> exists even on freestanding compilers.
17859 # On the NeXT, cc -E runs the code through the compiler's parser,
17860 # not just through cpp. "Syntax error" is here to catch this case.
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17864 # include <limits.h>
17866 # include <assert.h>
17870 if ac_fn_cxx_try_cpp "$LINENO"; then :
17873 # Broken: fails on valid input.
17876 rm -f conftest.err conftest.$ac_ext
17878 # OK, works on sane cases. Now check whether nonexistent headers
17879 # can be detected and how.
17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17882 #include <ac_nonexistent.h>
17884 if ac_fn_cxx_try_cpp "$LINENO"; then :
17885 # Broken: success on invalid input.
17888 # Passes both tests.
17892 rm -f conftest.err conftest.$ac_ext
17895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17896 rm -f conftest.err conftest.$ac_ext
17897 if $ac_preproc_ok; then :
17902 ac_cv_prog_CXXCPP=$CXXCPP
17905 CXXCPP=$ac_cv_prog_CXXCPP
17907 ac_cv_prog_CXXCPP=$CXXCPP
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17910 $as_echo "$CXXCPP" >&6; }
17911 ac_preproc_ok=false
17912 for ac_cxx_preproc_warn_flag in '' yes
17914 # Use a header file that comes with gcc, so configuring glibc
17915 # with a fresh cross-compiler works.
17916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917 # <limits.h> exists even on freestanding compilers.
17918 # On the NeXT, cc -E runs the code through the compiler's parser,
17919 # not just through cpp. "Syntax error" is here to catch this case.
17920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921 /* end confdefs.h. */
17923 # include <limits.h>
17925 # include <assert.h>
17929 if ac_fn_cxx_try_cpp "$LINENO"; then :
17932 # Broken: fails on valid input.
17935 rm -f conftest.err conftest.$ac_ext
17937 # OK, works on sane cases. Now check whether nonexistent headers
17938 # can be detected and how.
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17941 #include <ac_nonexistent.h>
17943 if ac_fn_cxx_try_cpp "$LINENO"; then :
17944 # Broken: success on invalid input.
17947 # Passes both tests.
17951 rm -f conftest.err conftest.$ac_ext
17954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17955 rm -f conftest.err conftest.$ac_ext
17956 if $ac_preproc_ok; then :
17959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17961 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17962 See \`config.log' for more details." "$LINENO" 5; }
17966 ac_cpp='$CPP $CPPFLAGS'
17967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17972 _lt_caught_CXX_error=yes
17976 ac_cpp='$CXXCPP $CPPFLAGS'
17977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17981 archive_cmds_need_lc_CXX=no
17982 allow_undefined_flag_CXX=
17983 always_export_symbols_CXX=no
17984 archive_expsym_cmds_CXX=
17985 compiler_needs_object_CXX=no
17986 export_dynamic_flag_spec_CXX=
17987 hardcode_direct_CXX=no
17988 hardcode_direct_absolute_CXX=no
17989 hardcode_libdir_flag_spec_CXX=
17990 hardcode_libdir_flag_spec_ld_CXX=
17991 hardcode_libdir_separator_CXX=
17992 hardcode_minus_L_CXX=no
17993 hardcode_shlibpath_var_CXX=unsupported
17994 hardcode_automatic_CXX=no
17995 inherit_rpath_CXX=no
17997 module_expsym_cmds_CXX=
17998 link_all_deplibs_CXX=unknown
17999 old_archive_cmds_CXX=$old_archive_cmds
18000 reload_flag_CXX=$reload_flag
18001 reload_cmds_CXX=$reload_cmds
18002 no_undefined_flag_CXX=
18003 whole_archive_flag_spec_CXX=
18004 enable_shared_with_static_runtimes_CXX=no
18006 # Source file extension for C++ test sources.
18009 # Object file extension for compiled C++ test sources.
18013 # No sense in running all these tests if we already determined that
18014 # the CXX compiler isn't working. Some variables (like enable_shared)
18015 # are currently assumed to apply to all compilers on this platform,
18016 # and will be corrupted by setting them based on a non-working compiler.
18017 if test "$_lt_caught_CXX_error" != yes; then
18018 # Code to be used in simple compile tests
18019 lt_simple_compile_test_code="int some_variable = 0;"
18021 # Code to be used in simple link tests
18022 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18024 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18031 # If no C compiler was specified, use CC.
18034 # If no C compiler flags were specified, use CFLAGS.
18035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18037 # Allow CC to be a program name with arguments.
18041 # save warnings/boilerplate of simple test code
18042 ac_outfile=conftest.$ac_objext
18043 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18045 _lt_compiler_boilerplate=`cat conftest.err`
18048 ac_outfile=conftest.$ac_objext
18049 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18051 _lt_linker_boilerplate=`cat conftest.err`
18055 # Allow CC to be a program name with arguments.
18060 lt_save_with_gnu_ld=$with_gnu_ld
18061 lt_save_path_LD=$lt_cv_path_LD
18062 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18063 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18065 $as_unset lt_cv_prog_gnu_ld
18067 if test -n "${lt_cv_path_LDCXX+set}"; then
18068 lt_cv_path_LD=$lt_cv_path_LDCXX
18070 $as_unset lt_cv_path_LD
18072 test -z "${LDCXX+set}" || LD=$LDCXX
18076 for cc_temp in $compiler""; do
18078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18084 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18087 if test -n "$compiler"; then
18088 # We don't want -fno-exception when compiling C++ code, so set the
18089 # no_builtin_flag separately
18090 if test "$GXX" = yes; then
18091 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18093 lt_prog_compiler_no_builtin_flag_CXX=
18096 if test "$GXX" = yes; then
18097 # Set up default GNU C++ configuration
18101 # Check whether --with-gnu-ld was given.
18102 if test "${with_gnu_ld+set}" = set; then :
18103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18109 if test "$GCC" = yes; then
18110 # Check if gcc -print-prog-name=ld gives a path.
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18112 $as_echo_n "checking for ld used by $CC... " >&6; }
18115 # gcc leaves a trailing carriage return which upsets mingw
18116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18121 # Accept absolute paths.
18123 re_direlt='/[^/][^/]*/\.\./'
18124 # Canonicalize the pathname of ld
18125 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18126 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18127 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18129 test -z "$LD" && LD="$ac_prog"
18132 # If it fails, then pretend we aren't using GCC.
18136 # If it is relative, then search for the first ld in PATH.
18137 with_gnu_ld=unknown
18140 elif test "$with_gnu_ld" = yes; then
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18142 $as_echo_n "checking for GNU ld... " >&6; }
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18145 $as_echo_n "checking for non-GNU ld... " >&6; }
18147 if test "${lt_cv_path_LD+set}" = set; then :
18148 $as_echo_n "(cached) " >&6
18150 if test -z "$LD"; then
18151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18152 for ac_dir in $PATH; do
18154 test -z "$ac_dir" && ac_dir=.
18155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18156 lt_cv_path_LD="$ac_dir/$ac_prog"
18157 # Check to see if the program is GNU ld. I'd rather use --version,
18158 # but apparently some variants of GNU ld only accept -v.
18159 # Break only if it was the GNU/non-GNU ld that we prefer.
18160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18161 *GNU* | *'with BFD'*)
18162 test "$with_gnu_ld" != no && break
18165 test "$with_gnu_ld" != yes && break
18172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18176 LD="$lt_cv_path_LD"
18177 if test -n "$LD"; then
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18179 $as_echo "$LD" >&6; }
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 $as_echo "no" >&6; }
18184 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18187 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18188 $as_echo_n "(cached) " >&6
18190 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18191 case `$LD -v 2>&1 </dev/null` in
18192 *GNU* | *'with BFD'*)
18193 lt_cv_prog_gnu_ld=yes
18196 lt_cv_prog_gnu_ld=no
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18201 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18202 with_gnu_ld=$lt_cv_prog_gnu_ld
18210 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18211 # archiving commands below assume that GNU ld is being used.
18212 if test "$with_gnu_ld" = yes; then
18213 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18214 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'
18216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18217 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18219 # If archive_cmds runs LD, not CC, wlarc should be empty
18220 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18221 # investigate it a little bit more. (MM)
18224 # ancient GNU ld didn't support --whole-archive et. al.
18225 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18226 $GREP 'no-whole-archive' > /dev/null; then
18227 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18229 whole_archive_flag_spec_CXX=
18235 # A generic and very simple default shared library creation
18236 # command for GNU C++ for the case where it uses the native
18237 # linker, instead of GNU ld. If possible, this setting should
18238 # overridden to take advantage of the native linker features on
18239 # the platform it is being used on.
18240 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18243 # Commands to make compiler produce verbose output that lists
18244 # what "hidden" libraries, object files and flags are used when
18245 # linking a shared library.
18246 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18254 # PORTME: fill in a description of your system's C++ link characteristics
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18256 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18260 # FIXME: insert proper C++ library support
18264 if test "$host_cpu" = ia64; then
18265 # On IA64, the linker does run time linking by default, so we don't
18266 # have to do anything special.
18267 aix_use_runtimelinking=no
18268 exp_sym_flag='-Bexport'
18271 aix_use_runtimelinking=no
18273 # Test if we are trying to use run time linking or normal
18274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18275 # need to do runtime linking.
18276 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18277 for ld_flag in $LDFLAGS; do
18280 aix_use_runtimelinking=yes
18288 exp_sym_flag='-bexport'
18289 no_entry_flag='-bnoentry'
18292 # When large executables or shared objects are built, AIX ld can
18293 # have problems creating the table of contents. If linking a library
18294 # or program results in "error TOC overflow" add -mminimal-toc to
18295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18298 archive_cmds_CXX=''
18299 hardcode_direct_CXX=yes
18300 hardcode_direct_absolute_CXX=yes
18301 hardcode_libdir_separator_CXX=':'
18302 link_all_deplibs_CXX=yes
18303 file_list_spec_CXX='${wl}-f,'
18305 if test "$GXX" = yes; then
18306 case $host_os in aix4.[012]|aix4.[012].*)
18307 # We only want to do this on AIX 4.2 and lower, the check
18308 # below for broken collect2 doesn't work under 4.3+
18309 collect2name=`${CC} -print-prog-name=collect2`
18310 if test -f "$collect2name" &&
18311 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18313 # We have reworked collect2
18316 # We have old collect2
18317 hardcode_direct_CXX=unsupported
18318 # It fails to find uninstalled libraries when the uninstalled
18319 # path is not listed in the libpath. Setting hardcode_minus_L
18320 # to unsupported forces relinking
18321 hardcode_minus_L_CXX=yes
18322 hardcode_libdir_flag_spec_CXX='-L$libdir'
18323 hardcode_libdir_separator_CXX=
18326 shared_flag='-shared'
18327 if test "$aix_use_runtimelinking" = yes; then
18328 shared_flag="$shared_flag "'${wl}-G'
18332 if test "$host_cpu" = ia64; then
18333 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18334 # chokes on -Wl,-G. The following line is correct:
18337 if test "$aix_use_runtimelinking" = yes; then
18338 shared_flag='${wl}-G'
18340 shared_flag='${wl}-bM:SRE'
18345 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18346 # It seems that -bexpall does not export symbols beginning with
18347 # underscore (_), so it is better to generate a list of symbols to
18349 always_export_symbols_CXX=yes
18350 if test "$aix_use_runtimelinking" = yes; then
18351 # Warning - without using the other runtime loading flags (-brtl),
18352 # -berok will link without error, but may produce a broken library.
18353 allow_undefined_flag_CXX='-berok'
18354 # Determine the default libpath from the value encoded in an empty
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18367 if ac_fn_cxx_try_link "$LINENO"; then :
18369 lt_aix_libpath_sed='
18370 /Import File Strings/,/^$/ {
18376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18377 # Check for a 64-bit object if we didn't find anything.
18378 if test -z "$aix_libpath"; then
18379 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18382 rm -f core conftest.err conftest.$ac_objext \
18383 conftest$ac_exeext conftest.$ac_ext
18384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18386 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18388 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"
18390 if test "$host_cpu" = ia64; then
18391 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18392 allow_undefined_flag_CXX="-z nodefs"
18393 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"
18395 # Determine the default libpath from the value encoded in an
18396 # empty executable.
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18408 if ac_fn_cxx_try_link "$LINENO"; then :
18410 lt_aix_libpath_sed='
18411 /Import File Strings/,/^$/ {
18417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18418 # Check for a 64-bit object if we didn't find anything.
18419 if test -z "$aix_libpath"; then
18420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18423 rm -f core conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
18425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18427 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18428 # Warning - without using the other run time loading flags,
18429 # -berok will link without error, but may produce a broken library.
18430 no_undefined_flag_CXX=' ${wl}-bernotok'
18431 allow_undefined_flag_CXX=' ${wl}-berok'
18432 if test "$with_gnu_ld" = yes; then
18433 # We only use this code for GNU lds that support --whole-archive.
18434 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18436 # Exported symbols can be pulled into shared objects from archives
18437 whole_archive_flag_spec_CXX='$convenience'
18439 archive_cmds_need_lc_CXX=yes
18440 # This is similar to how AIX traditionally builds its shared
18442 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'
18448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18449 allow_undefined_flag_CXX=unsupported
18450 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18451 # support --undefined. This deserves some investigation. FIXME
18452 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18459 case $cc_basename in
18461 # FIXME: insert proper C++ library support
18467 cygwin* | mingw* | pw32* | cegcc*)
18468 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18469 # as there is no search path for DLLs.
18470 hardcode_libdir_flag_spec_CXX='-L$libdir'
18471 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18472 allow_undefined_flag_CXX=unsupported
18473 always_export_symbols_CXX=no
18474 enable_shared_with_static_runtimes_CXX=yes
18476 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18477 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'
18478 # If the export-symbols file already is a .def file (1st line
18479 # is EXPORTS), use it as is; otherwise, prepend...
18480 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18481 cp $export_symbols $output_objdir/$soname.def;
18483 echo EXPORTS > $output_objdir/$soname.def;
18484 cat $export_symbols >> $output_objdir/$soname.def;
18486 $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'
18491 darwin* | rhapsody*)
18494 archive_cmds_need_lc_CXX=no
18495 hardcode_direct_CXX=no
18496 hardcode_automatic_CXX=yes
18497 hardcode_shlibpath_var_CXX=unsupported
18498 if test "$lt_cv_ld_force_load" = "yes"; then
18499 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\"`'
18501 whole_archive_flag_spec_CXX=''
18503 link_all_deplibs_CXX=yes
18504 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18505 case $cc_basename in
18506 ifort*) _lt_dar_can_shared=yes ;;
18507 *) _lt_dar_can_shared=$GCC ;;
18509 if test "$_lt_dar_can_shared" = "yes"; then
18510 output_verbose_link_cmd=func_echo_all
18511 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}"
18512 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18513 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}"
18514 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}"
18515 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18516 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}"
18517 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}"
18527 case $cc_basename in
18529 # FIXME: insert proper C++ library support
18533 # Green Hills C++ Compiler
18534 # FIXME: insert proper C++ library support
18538 # FIXME: insert proper C++ library support
18545 # C++ shared libraries reported to be fairly broken before
18551 archive_cmds_need_lc_CXX=no
18554 freebsd* | dragonfly*)
18555 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18564 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18565 link_all_deplibs_CXX=yes
18569 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18570 hardcode_libdir_separator_CXX=:
18571 export_dynamic_flag_spec_CXX='${wl}-E'
18572 hardcode_direct_CXX=yes
18573 hardcode_minus_L_CXX=yes # Not in the search PATH,
18574 # but as the default
18575 # location of the library.
18577 case $cc_basename in
18579 # FIXME: insert proper C++ library support
18583 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'
18584 # Commands to make compiler produce verbose output that lists
18585 # what "hidden" libraries, object files and flags are used when
18586 # linking a shared library.
18588 # There doesn't appear to be a way to prevent this compiler from
18589 # explicitly linking system object files so we need to strip them
18590 # from the output so that they don't get included in the library
18592 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"'
18595 if test "$GXX" = yes; then
18596 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'
18598 # FIXME: insert proper C++ library support
18606 if test $with_gnu_ld = no; then
18607 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18608 hardcode_libdir_separator_CXX=:
18614 export_dynamic_flag_spec_CXX='${wl}-E'
18620 hardcode_direct_CXX=no
18621 hardcode_shlibpath_var_CXX=no
18624 hardcode_direct_CXX=yes
18625 hardcode_direct_absolute_CXX=yes
18626 hardcode_minus_L_CXX=yes # Not in the search PATH,
18627 # but as the default
18628 # location of the library.
18632 case $cc_basename in
18634 # FIXME: insert proper C++ library support
18640 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18649 # Commands to make compiler produce verbose output that lists
18650 # what "hidden" libraries, object files and flags are used when
18651 # linking a shared library.
18653 # There doesn't appear to be a way to prevent this compiler from
18654 # explicitly linking system object files so we need to strip them
18655 # from the output so that they don't get included in the library
18657 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"'
18660 if test "$GXX" = yes; then
18661 if test $with_gnu_ld = no; then
18664 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18670 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'
18675 # FIXME: insert proper C++ library support
18683 hardcode_direct_CXX=no
18684 hardcode_shlibpath_var_CXX=no
18685 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18686 export_dynamic_flag_spec_CXX='${wl}-E'
18687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18688 # Instead, shared libraries are loaded at an image base (0x10000000 by
18689 # default) and relocated if they conflict, which is a slow very memory
18690 # consuming and fragmenting process. To avoid this, we pick a random,
18691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18693 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'
18694 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'
18697 case $cc_basename in
18700 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'
18702 # Archives containing C++ object files must be created using
18703 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18704 # necessary to make sure instantiated templates are included
18706 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18709 if test "$GXX" = yes; then
18710 if test "$with_gnu_ld" = no; then
18711 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'
18713 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'
18716 link_all_deplibs_CXX=yes
18719 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18720 hardcode_libdir_separator_CXX=:
18721 inherit_rpath_CXX=yes
18724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18725 case $cc_basename in
18727 # Kuck and Associates, Inc. (KAI) C++ Compiler
18729 # KCC will only create a shared library if the output file
18730 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18731 # to its proper name (with version) after linking.
18732 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'
18733 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'
18734 # Commands to make compiler produce verbose output that lists
18735 # what "hidden" libraries, object files and flags are used when
18736 # linking a shared library.
18738 # There doesn't appear to be a way to prevent this compiler from
18739 # explicitly linking system object files so we need to strip them
18740 # from the output so that they don't get included in the library
18742 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"'
18744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18747 # Archives containing C++ object files must be created using
18748 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18749 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18754 # version 8.0 and above of icpc choke on multiply defined symbols
18755 # if we add $predep_objects and $postdep_objects, however 7.1 and
18756 # earlier do not add the objects themselves.
18757 case `$CC -V 2>&1` in
18759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18760 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'
18762 *) # Version 8.0 or newer
18765 ia64*) tmp_idyn=' -i_dynamic';;
18767 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18768 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'
18771 archive_cmds_need_lc_CXX=no
18772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18774 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18777 # Portland Group C++ compiler
18779 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18780 prelink_cmds_CXX='tpldir=Template.dir~
18782 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18783 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18784 old_archive_cmds_CXX='tpldir=Template.dir~
18786 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18787 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18789 archive_cmds_CXX='tpldir=Template.dir~
18791 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18792 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18793 archive_expsym_cmds_CXX='tpldir=Template.dir~
18795 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18796 $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'
18798 *) # Version 6 and above use weak symbols
18799 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18800 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'
18804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18806 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'
18810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18811 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'
18813 runpath_var=LD_RUN_PATH
18814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18815 hardcode_libdir_separator_CXX=:
18817 # Commands to make compiler produce verbose output that lists
18818 # what "hidden" libraries, object files and flags are used when
18819 # linking a shared library.
18821 # There doesn't appear to be a way to prevent this compiler from
18822 # explicitly linking system object files so we need to strip them
18823 # from the output so that they don't get included in the library
18825 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'
18827 xl* | mpixl* | bgxl*)
18828 # IBM XL 8.0 on PPC, with GNU ld
18829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18831 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18832 if test "x$supports_anon_versioning" = xyes; then
18833 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18835 echo "local: *; };" >> $output_objdir/$libname.ver~
18836 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18840 case `$CC -V 2>&1 | sed 5q` in
18843 no_undefined_flag_CXX=' -zdefs'
18844 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18845 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'
18846 hardcode_libdir_flag_spec_CXX='-R$libdir'
18847 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'
18848 compiler_needs_object_CXX=yes
18850 # Not sure whether something based on
18851 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18853 output_verbose_link_cmd='func_echo_all'
18855 # Archives containing C++ object files must be created using
18856 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18857 # necessary to make sure instantiated templates are included
18859 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18867 # FIXME: insert proper C++ library support
18872 # FIXME: insert proper C++ library support
18877 case $cc_basename in
18879 # FIXME: insert proper C++ library support
18883 # FIXME: insert proper C++ library support
18890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18891 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18893 hardcode_libdir_flag_spec_CXX='-R$libdir'
18894 hardcode_direct_CXX=yes
18895 hardcode_shlibpath_var_CXX=no
18897 # Workaround some broken pre-1.5 toolchains
18898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18906 # C++ shared libraries are fairly broken
18911 if test -f /usr/libexec/ld.so; then
18912 hardcode_direct_CXX=yes
18913 hardcode_shlibpath_var_CXX=no
18914 hardcode_direct_absolute_CXX=yes
18915 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18918 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18919 export_dynamic_flag_spec_CXX='${wl}-E'
18920 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18922 output_verbose_link_cmd=func_echo_all
18928 osf3* | osf4* | osf5*)
18929 case $cc_basename in
18931 # Kuck and Associates, Inc. (KAI) C++ Compiler
18933 # KCC will only create a shared library if the output file
18934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18935 # to its proper name (with version) after linking.
18936 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'
18938 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18939 hardcode_libdir_separator_CXX=:
18941 # Archives containing C++ object files must be created using
18942 # the KAI C++ compiler.
18944 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18945 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18949 # Rational C++ 2.4.1
18950 # FIXME: insert proper C++ library support
18956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18957 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'
18958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18961 allow_undefined_flag_CXX=' -expect_unresolved \*'
18962 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'
18963 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18964 echo "-hidden">> $lib.exp~
18965 $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~
18967 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18971 hardcode_libdir_separator_CXX=:
18973 # Commands to make compiler produce verbose output that lists
18974 # what "hidden" libraries, object files and flags are used when
18975 # linking a shared library.
18977 # There doesn't appear to be a way to prevent this compiler from
18978 # explicitly linking system object files so we need to strip them
18979 # from the output so that they don't get included in the library
18981 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"'
18984 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18985 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18988 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'
18991 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'
18995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18996 hardcode_libdir_separator_CXX=:
18998 # Commands to make compiler produce verbose output that lists
18999 # what "hidden" libraries, object files and flags are used when
19000 # linking a shared library.
19001 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19004 # FIXME: insert proper C++ library support
19012 # FIXME: insert proper C++ library support
19017 case $cc_basename in
19020 # FIXME: insert proper C++ library support
19025 # FIXME: insert proper C++ library support
19029 # FIXME: insert proper C++ library support
19036 case $cc_basename in
19038 # Sun C++ 4.2, 5.x and Centerline C++
19039 archive_cmds_need_lc_CXX=yes
19040 no_undefined_flag_CXX=' -zdefs'
19041 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19042 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19043 $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'
19045 hardcode_libdir_flag_spec_CXX='-R$libdir'
19046 hardcode_shlibpath_var_CXX=no
19048 solaris2.[0-5] | solaris2.[0-5].*) ;;
19050 # The compiler driver will combine and reorder linker options,
19051 # but understands `-z linker_flag'.
19052 # Supported since Solaris 2.6 (maybe 2.5.1?)
19053 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19056 link_all_deplibs_CXX=yes
19058 output_verbose_link_cmd='func_echo_all'
19060 # Archives containing C++ object files must be created using
19061 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19062 # necessary to make sure instantiated templates are included
19064 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19067 # Green Hills C++ Compiler
19068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19070 # The C++ compiler must be used to create the archive.
19071 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19074 # GNU C++ compiler with Solaris linker
19075 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19076 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19077 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19078 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19079 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19080 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19082 # Commands to make compiler produce verbose output that lists
19083 # what "hidden" libraries, object files and flags are used when
19084 # linking a shared library.
19085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19087 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19089 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19090 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19091 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19093 # Commands to make compiler produce verbose output that lists
19094 # what "hidden" libraries, object files and flags are used when
19095 # linking a shared library.
19096 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19099 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19101 solaris2.[0-5] | solaris2.[0-5].*) ;;
19103 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19111 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19112 no_undefined_flag_CXX='${wl}-z,text'
19113 archive_cmds_need_lc_CXX=no
19114 hardcode_shlibpath_var_CXX=no
19115 runpath_var='LD_RUN_PATH'
19117 case $cc_basename in
19119 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19120 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19123 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19124 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19129 sysv5* | sco3.2v5* | sco5v6*)
19130 # Note: We can NOT use -z defs as we might desire, because we do not
19131 # link with -lc, and that would cause any symbols used from libc to
19132 # always be unresolved, which means just about no library would
19133 # ever link correctly. If we're not using GNU ld we use -z text
19134 # though, which does catch some bad symbols but isn't as heavy-handed
19136 no_undefined_flag_CXX='${wl}-z,text'
19137 allow_undefined_flag_CXX='${wl}-z,nodefs'
19138 archive_cmds_need_lc_CXX=no
19139 hardcode_shlibpath_var_CXX=no
19140 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19141 hardcode_libdir_separator_CXX=':'
19142 link_all_deplibs_CXX=yes
19143 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19144 runpath_var='LD_RUN_PATH'
19146 case $cc_basename in
19148 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19149 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19150 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19151 '"$old_archive_cmds_CXX"
19152 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19153 '"$reload_cmds_CXX"
19156 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19157 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19163 case $cc_basename in
19165 # NonStop-UX NCC 3.20
19166 # FIXME: insert proper C++ library support
19170 # FIXME: insert proper C++ library support
19177 # FIXME: insert proper C++ library support
19182 # FIXME: insert proper C++ library support
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19188 $as_echo "$ld_shlibs_CXX" >&6; }
19189 test "$ld_shlibs_CXX" = no && can_build_shared=no
19195 ## There is no encapsulation within the following macros, do not change
19196 ## the running order or otherwise move them around unless you know exactly
19197 ## what you are doing...
19198 # Dependencies to place before and after the object being linked:
19199 predep_objects_CXX=
19200 postdep_objects_CXX=
19203 compiler_lib_search_path_CXX=
19205 cat > conftest.$ac_ext <<_LT_EOF
19209 Foo (void) { a = 0; }
19215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19216 (eval $ac_compile) 2>&5
19218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19219 test $ac_status = 0; }; then
19220 # Parse the compiler output and extract the necessary
19221 # objects, libraries and library flags.
19223 # Sentinel used to keep track of whether or not we are before
19224 # the conftest object file.
19225 pre_test_object_deps_done=no
19227 for p in `eval "$output_verbose_link_cmd"`; do
19231 # Some compilers place space between "-{L,R}" and the path.
19232 # Remove the space.
19233 if test $p = "-L" ||
19234 test $p = "-R"; then
19241 if test "$pre_test_object_deps_done" = no; then
19244 # Internal compiler library paths should come after those
19245 # provided the user. The postdeps already come after the
19246 # user supplied libs so there is no need to process them.
19247 if test -z "$compiler_lib_search_path_CXX"; then
19248 compiler_lib_search_path_CXX="${prev}${p}"
19250 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19253 # The "-l" case would never come before the object being
19254 # linked, so don't bother handling this case.
19257 if test -z "$postdeps_CXX"; then
19258 postdeps_CXX="${prev}${p}"
19260 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19266 # This assumes that the test object file only shows up
19267 # once in the compiler output.
19268 if test "$p" = "conftest.$objext"; then
19269 pre_test_object_deps_done=yes
19273 if test "$pre_test_object_deps_done" = no; then
19274 if test -z "$predep_objects_CXX"; then
19275 predep_objects_CXX="$p"
19277 predep_objects_CXX="$predep_objects_CXX $p"
19280 if test -z "$postdep_objects_CXX"; then
19281 postdep_objects_CXX="$p"
19283 postdep_objects_CXX="$postdep_objects_CXX $p"
19288 *) ;; # Ignore the rest.
19296 echo "libtool.m4: error: problem compiling CXX test program"
19299 $RM -f confest.$objext
19301 # PORTME: override above test on systems where it is broken
19304 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19305 # hack all around it, let's just trust "g++" to DTRT.
19306 predep_objects_CXX=
19307 postdep_objects_CXX=
19312 case `$CC -V 2>&1 | sed 5q` in
19316 # The more standards-conforming stlport4 library is
19317 # incompatible with the Cstd library. Avoid specifying
19318 # it if it's in CXXFLAGS. Ignore libCrun as
19319 # -library=stlport4 depends on it.
19320 case " $CXX $CXXFLAGS " in
19321 *" -library=stlport4 "*)
19322 solaris_use_stlport4=yes
19326 if test "$solaris_use_stlport4" != yes; then
19327 postdeps_CXX='-library=Cstd -library=Crun'
19334 case $cc_basename in
19336 # The more standards-conforming stlport4 library is
19337 # incompatible with the Cstd library. Avoid specifying
19338 # it if it's in CXXFLAGS. Ignore libCrun as
19339 # -library=stlport4 depends on it.
19340 case " $CXX $CXXFLAGS " in
19341 *" -library=stlport4 "*)
19342 solaris_use_stlport4=yes
19346 # Adding this requires a known-good setup of shared libraries for
19347 # Sun compiler versions before 5.6, else PIC objects from an old
19348 # archive will be linked into the output, leading to subtle bugs.
19349 if test "$solaris_use_stlport4" != yes; then
19350 postdeps_CXX='-library=Cstd -library=Crun'
19358 case " $postdeps_CXX " in
19359 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19361 compiler_lib_search_dirs_CXX=
19362 if test -n "${compiler_lib_search_path_CXX}"; then
19363 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19396 lt_prog_compiler_wl_CXX=
19397 lt_prog_compiler_pic_CXX=
19398 lt_prog_compiler_static_CXX=
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19401 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19403 # C++ specific cases for pic, static, wl, etc.
19404 if test "$GXX" = yes; then
19405 lt_prog_compiler_wl_CXX='-Wl,'
19406 lt_prog_compiler_static_CXX='-static'
19410 # All AIX code is PIC.
19411 if test "$host_cpu" = ia64; then
19412 # AIX 5 now supports IA64 processor
19413 lt_prog_compiler_static_CXX='-Bstatic'
19420 # see comment about AmigaOS4 .so support
19421 lt_prog_compiler_pic_CXX='-fPIC'
19424 # FIXME: we need at least 68020 code to build shared libraries, but
19425 # adding the `-m68020' flag to GCC prevents building anything better,
19427 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19432 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19433 # PIC is the default for these OSes.
19435 mingw* | cygwin* | os2* | pw32* | cegcc*)
19436 # This hack is so that the source file can tell whether it is being
19437 # built for inclusion in a dll (and should export symbols for example).
19438 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19439 # (--disable-auto-import) libraries
19440 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19442 darwin* | rhapsody*)
19443 # PIC is the default on this platform
19444 # Common symbols not allowed in MH_DYLIB files
19445 lt_prog_compiler_pic_CXX='-fno-common'
19448 # DJGPP does not support shared libraries at all
19449 lt_prog_compiler_pic_CXX=
19452 # PIC is the default for Haiku.
19453 # The "-static" flag exists, but is broken.
19454 lt_prog_compiler_static_CXX=
19457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19458 # Instead, we relocate shared libraries at runtime.
19461 if test -d /usr/nec; then
19462 lt_prog_compiler_pic_CXX=-Kconform_pic
19466 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19467 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19468 # sets the default TLS model and affects inlining.
19473 lt_prog_compiler_pic_CXX='-fPIC'
19478 # QNX uses GNU C++, but need to define -shared option too, otherwise
19479 # it will coredump.
19480 lt_prog_compiler_pic_CXX='-fPIC -shared'
19483 lt_prog_compiler_pic_CXX='-fPIC'
19489 # All AIX code is PIC.
19490 if test "$host_cpu" = ia64; then
19491 # AIX 5 now supports IA64 processor
19492 lt_prog_compiler_static_CXX='-Bstatic'
19494 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19498 case $cc_basename in
19500 # Green Hills C++ Compiler
19501 # _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"
19506 case $cc_basename in
19508 lt_prog_compiler_pic_CXX='-KPIC'
19511 # Green Hills C++ Compiler
19512 lt_prog_compiler_pic_CXX='-pic'
19518 freebsd* | dragonfly*)
19519 # FreeBSD uses GNU C++
19521 hpux9* | hpux10* | hpux11*)
19522 case $cc_basename in
19524 lt_prog_compiler_wl_CXX='-Wl,'
19525 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19526 if test "$host_cpu" != ia64; then
19527 lt_prog_compiler_pic_CXX='+Z'
19531 lt_prog_compiler_wl_CXX='-Wl,'
19532 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19538 lt_prog_compiler_pic_CXX='+Z'
19547 # This is c89, which is MS Visual C++ (no shared libs)
19548 # Anyone wants to do a port?
19550 irix5* | irix6* | nonstopux*)
19551 case $cc_basename in
19553 lt_prog_compiler_wl_CXX='-Wl,'
19554 lt_prog_compiler_static_CXX='-non_shared'
19555 # CC pic flag -KPIC is the default.
19561 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19562 case $cc_basename in
19565 lt_prog_compiler_wl_CXX='--backend -Wl,'
19566 lt_prog_compiler_pic_CXX='-fPIC'
19569 # old Intel C++ for x86_64 which still supported -KPIC.
19570 lt_prog_compiler_wl_CXX='-Wl,'
19571 lt_prog_compiler_pic_CXX='-KPIC'
19572 lt_prog_compiler_static_CXX='-static'
19575 # Intel C++, used to be incompatible with GCC.
19576 # ICC 10 doesn't accept -KPIC any more.
19577 lt_prog_compiler_wl_CXX='-Wl,'
19578 lt_prog_compiler_pic_CXX='-fPIC'
19579 lt_prog_compiler_static_CXX='-static'
19582 # Portland Group C++ compiler
19583 lt_prog_compiler_wl_CXX='-Wl,'
19584 lt_prog_compiler_pic_CXX='-fpic'
19585 lt_prog_compiler_static_CXX='-Bstatic'
19589 # Make sure the PIC flag is empty. It appears that all Alpha
19590 # Linux and Compaq Tru64 Unix objects are PIC.
19591 lt_prog_compiler_pic_CXX=
19592 lt_prog_compiler_static_CXX='-non_shared'
19594 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19595 # IBM XL 8.0, 9.0 on PPC and BlueGene
19596 lt_prog_compiler_wl_CXX='-Wl,'
19597 lt_prog_compiler_pic_CXX='-qpic'
19598 lt_prog_compiler_static_CXX='-qstaticlink'
19601 case `$CC -V 2>&1 | sed 5q` in
19604 lt_prog_compiler_pic_CXX='-KPIC'
19605 lt_prog_compiler_static_CXX='-Bstatic'
19606 lt_prog_compiler_wl_CXX='-Qoption ld '
19617 case $cc_basename in
19619 lt_prog_compiler_pic_CXX='-W c,exportall'
19628 # QNX uses GNU C++, but need to define -shared option too, otherwise
19629 # it will coredump.
19630 lt_prog_compiler_pic_CXX='-fPIC -shared'
19632 osf3* | osf4* | osf5*)
19633 case $cc_basename in
19635 lt_prog_compiler_wl_CXX='--backend -Wl,'
19638 # Rational C++ 2.4.1
19639 lt_prog_compiler_pic_CXX='-pic'
19642 # Digital/Compaq C++
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 # Make sure the PIC flag is empty. It appears that all Alpha
19645 # Linux and Compaq Tru64 Unix objects are PIC.
19646 lt_prog_compiler_pic_CXX=
19647 lt_prog_compiler_static_CXX='-non_shared'
19656 case $cc_basename in
19658 # Sun C++ 4.2, 5.x and Centerline C++
19659 lt_prog_compiler_pic_CXX='-KPIC'
19660 lt_prog_compiler_static_CXX='-Bstatic'
19661 lt_prog_compiler_wl_CXX='-Qoption ld '
19664 # Green Hills C++ Compiler
19665 lt_prog_compiler_pic_CXX='-PIC'
19672 case $cc_basename in
19675 lt_prog_compiler_pic_CXX='-pic'
19676 lt_prog_compiler_static_CXX='-Bstatic'
19680 lt_prog_compiler_pic_CXX='-pic'
19686 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19687 case $cc_basename in
19689 lt_prog_compiler_wl_CXX='-Wl,'
19690 lt_prog_compiler_pic_CXX='-KPIC'
19691 lt_prog_compiler_static_CXX='-Bstatic'
19696 case $cc_basename in
19698 # NonStop-UX NCC 3.20
19699 lt_prog_compiler_pic_CXX='-KPIC'
19708 lt_prog_compiler_can_build_shared_CXX=no
19714 # For platforms which do not support PIC, -DPIC is meaningless:
19716 lt_prog_compiler_pic_CXX=
19719 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19723 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19728 # Check to make sure the PIC flag actually works.
19730 if test -n "$lt_prog_compiler_pic_CXX"; then
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19732 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19733 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19734 $as_echo_n "(cached) " >&6
19736 lt_cv_prog_compiler_pic_works_CXX=no
19737 ac_outfile=conftest.$ac_objext
19738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19739 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19740 # Insert the option either (1) after the last *FLAGS variable, or
19741 # (2) before a word containing "conftest.", or (3) at the end.
19742 # Note that $ac_compile itself does not contain backslashes and begins
19743 # with a dollar sign (not a hyphen), so the echo should work correctly.
19744 # The option is referenced via a variable to avoid confusing sed.
19745 lt_compile=`echo "$ac_compile" | $SED \
19746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19748 -e 's:$: $lt_compiler_flag:'`
19749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19750 (eval "$lt_compile" 2>conftest.err)
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 if (exit $ac_status) && test -s "$ac_outfile"; then
19755 # The compiler can only warn and ignore the option if not recognized
19756 # So say no if there are warnings other than the usual output.
19757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19759 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19760 lt_cv_prog_compiler_pic_works_CXX=yes
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19767 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19769 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19770 case $lt_prog_compiler_pic_CXX in
19772 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19775 lt_prog_compiler_pic_CXX=
19776 lt_prog_compiler_can_build_shared_CXX=no
19784 # Check to make sure the static flag actually works.
19786 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19788 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19789 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19790 $as_echo_n "(cached) " >&6
19792 lt_cv_prog_compiler_static_works_CXX=no
19793 save_LDFLAGS="$LDFLAGS"
19794 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19795 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19797 # The linker can only warn and ignore the option if not recognized
19798 # So say no if there are warnings
19799 if test -s conftest.err; then
19800 # Append any errors to the config.log.
19801 cat conftest.err 1>&5
19802 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19804 if diff conftest.exp conftest.er2 >/dev/null; then
19805 lt_cv_prog_compiler_static_works_CXX=yes
19808 lt_cv_prog_compiler_static_works_CXX=yes
19812 LDFLAGS="$save_LDFLAGS"
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19816 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19818 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19821 lt_prog_compiler_static_CXX=
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19829 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19830 $as_echo_n "(cached) " >&6
19832 lt_cv_prog_compiler_c_o_CXX=no
19833 $RM -r conftest 2>/dev/null
19837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19839 lt_compiler_flag="-o out/conftest2.$ac_objext"
19840 # Insert the option either (1) after the last *FLAGS variable, or
19841 # (2) before a word containing "conftest.", or (3) at the end.
19842 # Note that $ac_compile itself does not contain backslashes and begins
19843 # with a dollar sign (not a hyphen), so the echo should work correctly.
19844 lt_compile=`echo "$ac_compile" | $SED \
19845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19847 -e 's:$: $lt_compiler_flag:'`
19848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19849 (eval "$lt_compile" 2>out/conftest.err)
19851 cat out/conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19855 # The compiler can only warn and ignore the option if not recognized
19856 # So say no if there are warnings
19857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19860 lt_cv_prog_compiler_c_o_CXX=yes
19865 # SGI C++ compiler will create directory out/ii_files/ for
19866 # template instantiation
19867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19868 $RM out/* && rmdir out
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19875 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19880 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19881 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19882 $as_echo_n "(cached) " >&6
19884 lt_cv_prog_compiler_c_o_CXX=no
19885 $RM -r conftest 2>/dev/null
19889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19891 lt_compiler_flag="-o out/conftest2.$ac_objext"
19892 # Insert the option either (1) after the last *FLAGS variable, or
19893 # (2) before a word containing "conftest.", or (3) at the end.
19894 # Note that $ac_compile itself does not contain backslashes and begins
19895 # with a dollar sign (not a hyphen), so the echo should work correctly.
19896 lt_compile=`echo "$ac_compile" | $SED \
19897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19899 -e 's:$: $lt_compiler_flag:'`
19900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19901 (eval "$lt_compile" 2>out/conftest.err)
19903 cat out/conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19907 # The compiler can only warn and ignore the option if not recognized
19908 # So say no if there are warnings
19909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19912 lt_cv_prog_compiler_c_o_CXX=yes
19917 # SGI C++ compiler will create directory out/ii_files/ for
19918 # template instantiation
19919 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19920 $RM out/* && rmdir out
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19927 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19932 hard_links="nottested"
19933 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19934 # do not overwrite the value of need_locks provided by the user
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19936 $as_echo_n "checking if we can lock with hard links... " >&6; }
19939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19941 ln conftest.a conftest.b 2>&5 || hard_links=no
19942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19944 $as_echo "$hard_links" >&6; }
19945 if test "$hard_links" = no; then
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19947 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19957 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19962 # If we're using GNU nm, then we don't want the "-C" option.
19963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19964 # Also, AIX nm treats weak defined symbols like other global defined
19965 # symbols, whereas GNU nm marks them as "W".
19966 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19967 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'
19969 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'
19973 export_symbols_cmds_CXX="$ltdll_cmds"
19975 cygwin* | mingw* | cegcc*)
19976 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'
19979 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19982 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19985 $as_echo "$ld_shlibs_CXX" >&6; }
19986 test "$ld_shlibs_CXX" = no && can_build_shared=no
19988 with_gnu_ld_CXX=$with_gnu_ld
19996 # Do we need to explicitly link libc?
19998 case "x$archive_cmds_need_lc_CXX" in
20000 # Assume -lc should be added
20001 archive_cmds_need_lc_CXX=yes
20003 if test "$enable_shared" = yes && test "$GCC" = yes; then
20004 case $archive_cmds_CXX in
20006 # FIXME: we may have to deal with multi-command sequences.
20009 # Test whether the compiler implicitly links with -lc since on some
20010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20011 # to ld, don't add -lc before -lgcc.
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20013 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20014 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20015 $as_echo_n "(cached) " >&6
20018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20021 (eval $ac_compile) 2>&5
20023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20024 test $ac_status = 0; } 2>conftest.err; then
20027 libobjs=conftest.$ac_objext
20029 wl=$lt_prog_compiler_wl_CXX
20030 pic_flag=$lt_prog_compiler_pic_CXX
20036 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20037 allow_undefined_flag_CXX=
20038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20039 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20042 test $ac_status = 0; }
20044 lt_cv_archive_cmds_need_lc_CXX=no
20046 lt_cv_archive_cmds_need_lc_CXX=yes
20048 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20050 cat conftest.err 1>&5
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20056 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20057 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20128 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20130 library_names_spec=
20131 libname_spec='lib$name'
20135 postuninstall_cmds=
20139 shlibpath_overrides_runpath=unknown
20141 dynamic_linker="$host_os ld.so"
20142 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20143 need_lib_prefix=unknown
20144 hardcode_into_libs=no
20146 # when you set need_version to no, make sure it does not cause -set_version
20147 # flags to be left without arguments
20148 need_version=unknown
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20154 shlibpath_var=LIBPATH
20156 # AIX 3 has no versioning support, so we append a major version to the name.
20157 soname_spec='${libname}${release}${shared_ext}$major'
20164 hardcode_into_libs=yes
20165 if test "$host_cpu" = ia64; then
20166 # AIX 5 supports IA64
20167 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20168 shlibpath_var=LD_LIBRARY_PATH
20170 # With GCC up to 2.95.x, collect2 would create an import file
20171 # for dependence libraries. The import file would start with
20172 # the line `#! .'. This would cause the generated library to
20173 # depend on `.', always an invalid library. This was fixed in
20174 # development snapshots of GCC prior to 3.0.
20176 aix4 | aix4.[01] | aix4.[01].*)
20177 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20179 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20182 can_build_shared=no
20186 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20187 # soname into executable. Probably we can add versioning support to
20188 # collect2, so additional links can be useful in future.
20189 if test "$aix_use_runtimelinking" = yes; then
20190 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20191 # instead of lib<name>.a to let people know that these are not
20192 # typical AIX shared libraries.
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 # We preserve .a as extension for shared libraries through AIX4.2
20196 # and later when we are not doing run time linking.
20197 library_names_spec='${libname}${release}.a $libname.a'
20198 soname_spec='${libname}${release}${shared_ext}$major'
20200 shlibpath_var=LIBPATH
20207 # Since July 2007 AmigaOS4 officially supports .so libraries.
20208 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20212 library_names_spec='$libname.ixlibrary $libname.a'
20213 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20214 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'
20220 library_names_spec='${libname}${shared_ext}'
20221 dynamic_linker="$host_os ld.so"
20222 shlibpath_var=LIBRARY_PATH
20228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20231 shlibpath_var=LD_LIBRARY_PATH
20232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20234 # the default ld.so.conf also contains /usr/contrib/lib and
20235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20236 # libtool to hard-code these into programs
20239 cygwin* | mingw* | pw32* | cegcc*)
20240 version_type=windows
20245 case $GCC,$host_os in
20246 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20247 library_names_spec='$libname.dll.a'
20248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20249 postinstall_cmds='base_file=`basename \${file}`~
20250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20251 dldir=$destdir/`dirname \$dlpath`~
20252 test -d \$dldir || mkdir -p \$dldir~
20253 $install_prog $dir/$dlname \$dldir/$dlname~
20254 chmod a+x \$dldir/$dlname~
20255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20259 dlpath=$dir/\$dldll~
20261 shlibpath_overrides_runpath=yes
20265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20270 # MinGW DLLs use traditional 'lib' prefix
20271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20274 # pw32 DLLs use 'pw' prefix rather than 'lib'
20275 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20281 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20284 dynamic_linker='Win32 ld.exe'
20285 # FIXME: first we should search . and the directory the executable is in
20289 darwin* | rhapsody*)
20290 dynamic_linker="$host_os dyld"
20291 version_type=darwin
20294 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20295 soname_spec='${libname}${release}${major}$shared_ext'
20296 shlibpath_overrides_runpath=yes
20297 shlibpath_var=DYLD_LIBRARY_PATH
20298 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20300 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20308 soname_spec='${libname}${release}${shared_ext}$major'
20309 shlibpath_var=LD_LIBRARY_PATH
20316 freebsd* | dragonfly*)
20317 # DragonFly does not have aout. When/if they implement a new
20318 # versioning mechanism, adjust this.
20319 if test -x /usr/bin/objformat; then
20320 objformat=`/usr/bin/objformat`
20323 freebsd[123]*) objformat=aout ;;
20324 *) objformat=elf ;;
20327 version_type=freebsd-$objformat
20328 case $version_type in
20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20339 shlibpath_var=LD_LIBRARY_PATH
20342 shlibpath_overrides_runpath=yes
20344 freebsd3.[01]* | freebsdelf3.[01]*)
20345 shlibpath_overrides_runpath=yes
20346 hardcode_into_libs=yes
20348 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20349 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20350 shlibpath_overrides_runpath=no
20351 hardcode_into_libs=yes
20353 *) # from 4.6 on, and DragonFly
20354 shlibpath_overrides_runpath=yes
20355 hardcode_into_libs=yes
20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20365 soname_spec='${libname}${release}${shared_ext}$major'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 hardcode_into_libs=yes
20374 dynamic_linker="$host_os runtime_loader"
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 shlibpath_var=LIBRARY_PATH
20378 shlibpath_overrides_runpath=yes
20379 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20380 hardcode_into_libs=yes
20383 hpux9* | hpux10* | hpux11*)
20384 # Give a soname corresponding to the major version so that dld.sl refuses to
20385 # link against other versions.
20392 hardcode_into_libs=yes
20393 dynamic_linker="$host_os dld.so"
20394 shlibpath_var=LD_LIBRARY_PATH
20395 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20397 soname_spec='${libname}${release}${shared_ext}$major'
20398 if test "X$HPUX_IA64_MODE" = X32; then
20399 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20401 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20403 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20407 hardcode_into_libs=yes
20408 dynamic_linker="$host_os dld.sl"
20409 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20410 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412 soname_spec='${libname}${release}${shared_ext}$major'
20413 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20418 dynamic_linker="$host_os dld.sl"
20419 shlibpath_var=SHLIB_PATH
20420 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422 soname_spec='${libname}${release}${shared_ext}$major'
20425 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20426 postinstall_cmds='chmod 555 $lib'
20427 # or fails outright, so override atomically:
20428 install_override_mode=555
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20438 shlibpath_var=LD_LIBRARY_PATH
20439 shlibpath_overrides_runpath=no
20440 hardcode_into_libs=yes
20443 irix5* | irix6* | nonstopux*)
20445 nonstopux*) version_type=nonstopux ;;
20447 if test "$lt_cv_prog_gnu_ld" = yes; then
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20458 irix5* | nonstopux*)
20459 libsuff= shlibsuff=
20462 case $LD in # libtool.m4 will add one of these switches to LD
20463 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20464 libsuff= shlibsuff= libmagic=32-bit;;
20465 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20466 libsuff=32 shlibsuff=N32 libmagic=N32;;
20467 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20468 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20469 *) libsuff= shlibsuff= libmagic=never-match;;
20473 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20474 shlibpath_overrides_runpath=no
20475 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20476 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20477 hardcode_into_libs=yes
20480 # No shared lib support for Linux oldld, aout, or coff.
20481 linux*oldld* | linux*aout* | linux*coff*)
20485 # This must be Linux ELF.
20486 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20491 soname_spec='${libname}${release}${shared_ext}$major'
20492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20493 shlibpath_var=LD_LIBRARY_PATH
20494 shlibpath_overrides_runpath=no
20496 # Some binutils ld are patched to set DT_RUNPATH
20497 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20498 $as_echo_n "(cached) " >&6
20500 lt_cv_shlibpath_overrides_runpath=no
20501 save_LDFLAGS=$LDFLAGS
20502 save_libdir=$libdir
20503 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20504 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h. */
20516 if ac_fn_cxx_try_link "$LINENO"; then :
20517 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20518 lt_cv_shlibpath_overrides_runpath=yes
20521 rm -f core conftest.err conftest.$ac_objext \
20522 conftest$ac_exeext conftest.$ac_ext
20523 LDFLAGS=$save_LDFLAGS
20524 libdir=$save_libdir
20528 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20530 # This implies no fast_install, which is unacceptable.
20531 # Some rework will be needed to allow for fast_install
20532 # before this can be enabled.
20533 hardcode_into_libs=yes
20535 # Append ld.so.conf contents to the search path
20536 if test -f /etc/ld.so.conf; then
20537 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' ' '`
20538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20541 # We used to test for /lib/ld.so.1 and disable shared libraries on
20542 # powerpc, because MkLinux only supported shared libraries with the
20543 # GNU dynamic linker. Since this was broken with cross compilers,
20544 # most powerpc-linux boxes support dynamic linking these days and
20545 # people can always --disable-shared, the test was removed, and we
20546 # assume the GNU/Linux dynamic linker is in use.
20547 dynamic_linker='GNU/Linux ld.so'
20554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20557 dynamic_linker='NetBSD (a.out) ld.so'
20559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20560 soname_spec='${libname}${release}${shared_ext}$major'
20561 dynamic_linker='NetBSD ld.elf_so'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 shlibpath_overrides_runpath=yes
20565 hardcode_into_libs=yes
20570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20571 shlibpath_var=LD_LIBRARY_PATH
20572 shlibpath_overrides_runpath=yes
20579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20580 soname_spec='${libname}${release}${shared_ext}$major'
20581 shlibpath_var=LD_LIBRARY_PATH
20582 shlibpath_overrides_runpath=no
20583 hardcode_into_libs=yes
20584 dynamic_linker='ldqnx.so'
20589 sys_lib_dlsearch_path_spec="/usr/lib"
20591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20593 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20594 *) need_version=no ;;
20596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20598 shlibpath_var=LD_LIBRARY_PATH
20599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20601 openbsd2.[89] | openbsd2.[89].*)
20602 shlibpath_overrides_runpath=no
20605 shlibpath_overrides_runpath=yes
20609 shlibpath_overrides_runpath=yes
20614 libname_spec='$name'
20617 library_names_spec='$libname${shared_ext} $libname.a'
20618 dynamic_linker='OS/2 ld.exe'
20619 shlibpath_var=LIBPATH
20622 osf3* | osf4* | osf5*)
20626 soname_spec='${libname}${release}${shared_ext}$major'
20627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20628 shlibpath_var=LD_LIBRARY_PATH
20629 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20630 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20642 soname_spec='${libname}${release}${shared_ext}$major'
20643 shlibpath_var=LD_LIBRARY_PATH
20644 shlibpath_overrides_runpath=yes
20645 hardcode_into_libs=yes
20646 # ldd complains unless libraries are executable
20647 postinstall_cmds='chmod +x $lib'
20652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20654 shlibpath_var=LD_LIBRARY_PATH
20655 shlibpath_overrides_runpath=yes
20656 if test "$with_gnu_ld" = yes; then
20664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20665 soname_spec='${libname}${release}${shared_ext}$major'
20666 shlibpath_var=LD_LIBRARY_PATH
20667 case $host_vendor in
20669 shlibpath_overrides_runpath=no
20671 runpath_var=LD_RUN_PATH
20679 shlibpath_overrides_runpath=no
20680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20686 if test -d /usr/nec ;then
20688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20689 soname_spec='$libname${shared_ext}.$major'
20690 shlibpath_var=LD_LIBRARY_PATH
20694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20695 version_type=freebsd-elf
20698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20699 soname_spec='${libname}${release}${shared_ext}$major'
20700 shlibpath_var=LD_LIBRARY_PATH
20701 shlibpath_overrides_runpath=yes
20702 hardcode_into_libs=yes
20703 if test "$with_gnu_ld" = yes; then
20704 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20709 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20713 sys_lib_dlsearch_path_spec='/usr/lib'
20717 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20722 shlibpath_var=LD_LIBRARY_PATH
20723 shlibpath_overrides_runpath=no
20724 hardcode_into_libs=yes
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 shlibpath_var=LD_LIBRARY_PATH
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20739 $as_echo "$dynamic_linker" >&6; }
20740 test "$dynamic_linker" = no && can_build_shared=no
20742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20743 if test "$GCC" = yes; then
20744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20747 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20748 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20750 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20751 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20792 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20793 hardcode_action_CXX=
20794 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20795 test -n "$runpath_var_CXX" ||
20796 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20798 # We can hardcode non-existent directories.
20799 if test "$hardcode_direct_CXX" != no &&
20800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20801 # have to relink, otherwise we might link with an installed library
20802 # when we should be linking with a yet-to-be-installed one
20803 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20804 test "$hardcode_minus_L_CXX" != no; then
20805 # Linking always hardcodes the temporary library directory.
20806 hardcode_action_CXX=relink
20808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20809 hardcode_action_CXX=immediate
20812 # We cannot hardcode anything, or else we can only hardcode existing
20814 hardcode_action_CXX=unsupported
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20817 $as_echo "$hardcode_action_CXX" >&6; }
20819 if test "$hardcode_action_CXX" = relink ||
20820 test "$inherit_rpath_CXX" = yes; then
20821 # Fast installation is not supported
20822 enable_fast_install=no
20823 elif test "$shlibpath_overrides_runpath" = yes ||
20824 test "$enable_shared" = no; then
20825 # Fast installation is not necessary
20826 enable_fast_install=needless
20835 fi # test -n "$compiler"
20841 with_gnu_ld=$lt_save_with_gnu_ld
20842 lt_cv_path_LDCXX=$lt_cv_path_LD
20843 lt_cv_path_LD=$lt_save_path_LD
20844 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20845 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20846 fi # test "$_lt_caught_CXX_error" != yes
20849 ac_cpp='$CPP $CPPFLAGS'
20850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20869 # Only expand once:
20875 # Identify the assembler which will work hand-in-glove with the newly
20876 # built GCC, so that we can examine its features. This is the assembler
20877 # which will be driven by the driver program.
20879 # If build != host, and we aren't building gas in-tree, we identify a
20880 # build->target assembler and hope that it will have the same features
20881 # as the host->target assembler we'll be using.
20882 gcc_cv_gas_major_version=
20883 gcc_cv_gas_minor_version=
20884 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20886 if test "${gcc_cv_as+set}" = set; then :
20890 if test -x "$DEFAULT_ASSEMBLER"; then
20891 gcc_cv_as="$DEFAULT_ASSEMBLER"
20892 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20893 && test -f ../gas/Makefile \
20894 && test x$build = x$host; then
20895 gcc_cv_as=../gas/as-new$build_exeext
20896 elif test -x as$build_exeext; then
20897 # Build using assembler in the current directory.
20898 gcc_cv_as=./as$build_exeext
20899 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20900 gcc_cv_as="$AS_FOR_TARGET"
20902 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20903 set dummy $AS_FOR_TARGET; ac_word=$2
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20905 $as_echo_n "checking for $ac_word... " >&6; }
20906 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20907 $as_echo_n "(cached) " >&6
20911 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20915 for as_dir in $PATH
20918 test -z "$as_dir" && as_dir=.
20919 for ac_exec_ext in '' $ac_executable_extensions; do
20920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20921 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20932 gcc_cv_as=$ac_cv_path_gcc_cv_as
20933 if test -n "$gcc_cv_as"; then
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20935 $as_echo "$gcc_cv_as" >&6; }
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20938 $as_echo "no" >&6; }
20945 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20947 case "$ORIGINAL_AS_FOR_TARGET" in
20948 ./as | ./as$build_exeext) ;;
20949 *) ac_config_files="$ac_config_files as:exec-tool.in"
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20954 $as_echo_n "checking what assembler to use... " >&6; }
20955 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20956 # Single tree build which includes gas. We want to prefer it
20957 # over whatever linker top-level may have detected, since
20958 # we'll use what we're building after installation anyway.
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20960 $as_echo "newly built gas" >&6; }
20962 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20963 for f in $gcc_cv_as_bfd_srcdir/configure \
20964 $gcc_cv_as_gas_srcdir/configure \
20965 $gcc_cv_as_gas_srcdir/configure.in \
20966 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20967 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20968 if test x$gcc_cv_gas_version != x; then
20972 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20973 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20974 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20975 case $gcc_cv_gas_patch_version in
20976 "") gcc_cv_gas_patch_version="0" ;;
20978 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20979 + $gcc_cv_gas_minor_version \) \* 1000 \
20980 + $gcc_cv_gas_patch_version`
20982 in_tree_gas_is_elf=no
20983 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20984 || (grep 'obj_format = multi' ../gas/Makefile \
20985 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20987 in_tree_gas_is_elf=yes
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20991 $as_echo "$gcc_cv_as" >&6; }
20995 # Identify the linker which will work hand-in-glove with the newly
20996 # built GCC, so that we can examine its features. This is the linker
20997 # which will be driven by the driver program.
20999 # If build != host, and we aren't building gas in-tree, we identify a
21000 # build->target linker and hope that it will have the same features
21001 # as the host->target linker we'll be using.
21002 gcc_cv_gld_major_version=
21003 gcc_cv_gld_minor_version=
21004 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21005 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21007 if test "${gcc_cv_ld+set}" = set; then :
21011 if test -x "$DEFAULT_LINKER"; then
21012 gcc_cv_ld="$DEFAULT_LINKER"
21013 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21014 && test -f ../ld/Makefile \
21015 && test x$build = x$host; then
21016 gcc_cv_ld=../ld/ld-new$build_exeext
21017 elif test -x collect-ld$build_exeext; then
21018 # Build using linker in the current directory.
21019 gcc_cv_ld=./collect-ld$build_exeext
21020 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21021 gcc_cv_ld="$LD_FOR_TARGET"
21023 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21024 set dummy $LD_FOR_TARGET; ac_word=$2
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21026 $as_echo_n "checking for $ac_word... " >&6; }
21027 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21028 $as_echo_n "(cached) " >&6
21032 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21036 for as_dir in $PATH
21039 test -z "$as_dir" && as_dir=.
21040 for ac_exec_ext in '' $ac_executable_extensions; do
21041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21042 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21053 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21054 if test -n "$gcc_cv_ld"; then
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21056 $as_echo "$gcc_cv_ld" >&6; }
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21059 $as_echo "no" >&6; }
21066 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21067 PLUGIN_LD=`basename $gcc_cv_ld`
21069 # Check whether --with-plugin-ld was given.
21070 if test "${with_plugin_ld+set}" = set; then :
21071 withval=$with_plugin_ld; if test x"$withval" != x; then
21072 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21073 PLUGIN_LD="$withval"
21079 cat >>confdefs.h <<_ACEOF
21080 #define PLUGIN_LD "$PLUGIN_LD"
21084 # Check to see if we are using gold instead of ld
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21086 $as_echo_n "checking whether we are using gold... " >&6; }
21088 if test x$gcc_cv_ld != x; then
21089 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21090 | grep "GNU gold" > /dev/null; then
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21095 $as_echo "$ld_is_gold" >&6; }
21097 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21099 case "$ORIGINAL_LD_FOR_TARGET" in
21100 ./collect-ld | ./collect-ld$build_exeext) ;;
21101 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21106 $as_echo_n "checking what linker to use... " >&6; }
21107 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
21108 # Single tree build which includes ld. We want to prefer it
21109 # over whatever linker top-level may have detected, since
21110 # we'll use what we're building after installation anyway.
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21112 $as_echo "newly built ld" >&6; }
21114 in_tree_ld_is_elf=no
21115 if (grep 'EMUL = .*elf' ../ld/Makefile \
21116 || grep 'EMUL = .*linux' ../ld/Makefile \
21117 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21118 in_tree_ld_is_elf=yes
21120 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
21122 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21123 if test x$gcc_cv_gld_version != x; then
21127 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21128 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21131 $as_echo "$gcc_cv_ld" >&6; }
21135 # Figure out what nm we will be using.
21136 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21137 if test "${gcc_cv_nm+set}" = set; then :
21141 if test -f $gcc_cv_binutils_srcdir/configure.in \
21142 && test -f ../binutils/Makefile \
21143 && test x$build = x$host; then
21144 gcc_cv_nm=../binutils/nm-new$build_exeext
21145 elif test -x nm$build_exeext; then
21146 gcc_cv_nm=./nm$build_exeext
21147 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21148 gcc_cv_nm="$NM_FOR_TARGET"
21150 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21151 set dummy $NM_FOR_TARGET; ac_word=$2
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21153 $as_echo_n "checking for $ac_word... " >&6; }
21154 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21155 $as_echo_n "(cached) " >&6
21159 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21163 for as_dir in $PATH
21166 test -z "$as_dir" && as_dir=.
21167 for ac_exec_ext in '' $ac_executable_extensions; do
21168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21169 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21180 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21181 if test -n "$gcc_cv_nm"; then
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21183 $as_echo "$gcc_cv_nm" >&6; }
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21186 $as_echo "no" >&6; }
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21194 $as_echo_n "checking what nm to use... " >&6; }
21195 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21196 # Single tree build which includes binutils.
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21198 $as_echo "newly built nm" >&6; }
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21202 $as_echo "$gcc_cv_nm" >&6; }
21206 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21208 case "$ORIGINAL_NM_FOR_TARGET" in
21209 ./nm | ./nm$build_exeext) ;;
21210 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21215 # Figure out what objdump we will be using.
21216 if test "${gcc_cv_objdump+set}" = set; then :
21220 if test -f $gcc_cv_binutils_srcdir/configure.in \
21221 && test -f ../binutils/Makefile \
21222 && test x$build = x$host; then
21223 # Single tree build which includes binutils.
21224 gcc_cv_objdump=../binutils/objdump$build_exeext
21225 elif test -x objdump$build_exeext; then
21226 gcc_cv_objdump=./objdump$build_exeext
21227 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21228 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21230 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21231 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21233 $as_echo_n "checking for $ac_word... " >&6; }
21234 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21235 $as_echo_n "(cached) " >&6
21237 case $gcc_cv_objdump in
21239 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21243 for as_dir in $PATH
21246 test -z "$as_dir" && as_dir=.
21247 for ac_exec_ext in '' $ac_executable_extensions; do
21248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21249 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21260 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21261 if test -n "$gcc_cv_objdump"; then
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21263 $as_echo "$gcc_cv_objdump" >&6; }
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21266 $as_echo "no" >&6; }
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21274 $as_echo_n "checking what objdump to use... " >&6; }
21275 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21276 # Single tree build which includes binutils.
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21278 $as_echo "newly built objdump" >&6; }
21279 elif test x$gcc_cv_objdump = x; then
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21281 $as_echo "not found" >&6; }
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21284 $as_echo "$gcc_cv_objdump" >&6; }
21287 # Figure out what readelf we will be using.
21288 if test "${gcc_cv_readelf+set}" = set; then :
21292 if test -f $gcc_cv_binutils_srcdir/configure.in \
21293 && test -f ../binutils/Makefile \
21294 && test x$build = x$host; then
21295 # Single tree build which includes binutils.
21296 gcc_cv_readelf=../binutils/readelf$build_exeext
21297 elif test -x readelf$build_exeext; then
21298 gcc_cv_readelf=./readelf$build_exeext
21300 # Extract the first word of "readelf", so it can be a program name with args.
21301 set dummy readelf; ac_word=$2
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21303 $as_echo_n "checking for $ac_word... " >&6; }
21304 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21305 $as_echo_n "(cached) " >&6
21307 case $gcc_cv_readelf in
21309 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21313 for as_dir in $PATH
21316 test -z "$as_dir" && as_dir=.
21317 for ac_exec_ext in '' $ac_executable_extensions; do
21318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21319 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21330 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21331 if test -n "$gcc_cv_readelf"; then
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21333 $as_echo "$gcc_cv_readelf" >&6; }
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21336 $as_echo "no" >&6; }
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21344 $as_echo_n "checking what readelf to use... " >&6; }
21345 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21346 # Single tree build which includes binutils.
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21348 $as_echo "newly built readelf" >&6; }
21349 elif test x$gcc_cv_readelf = x; then
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21351 $as_echo "not found" >&6; }
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21354 $as_echo "$gcc_cv_readelf" >&6; }
21357 # Figure out what assembler alignment features are present.
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21359 $as_echo_n "checking assembler flags... " >&6; }
21360 if test "${gcc_cv_as_flags+set}" = set; then :
21361 $as_echo_n "(cached) " >&6
21364 i[34567]86-*-linux*)
21365 gcc_cv_as_flags="--32"
21368 gcc_cv_as_flags=" "
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21373 $as_echo "$gcc_cv_as_flags" >&6; }
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21376 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21377 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21378 $as_echo_n "(cached) " >&6
21380 gcc_cv_as_balign_and_p2align=no
21381 if test $in_tree_gas = yes; then
21382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21383 then gcc_cv_as_balign_and_p2align=yes
21385 elif test x$gcc_cv_as != x; then
21387 .p2align 2' > conftest.s
21388 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21390 (eval $ac_try) 2>&5
21392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21393 test $ac_status = 0; }; }
21395 gcc_cv_as_balign_and_p2align=yes
21397 echo "configure: failed program was" >&5
21400 rm -f conftest.o conftest.s
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21404 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21405 if test $gcc_cv_as_balign_and_p2align = yes; then
21407 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21412 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21413 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21414 $as_echo_n "(cached) " >&6
21416 gcc_cv_as_max_skip_p2align=no
21417 if test $in_tree_gas = yes; then
21418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21419 then gcc_cv_as_max_skip_p2align=yes
21421 elif test x$gcc_cv_as != x; then
21422 echo '.p2align 4,,7' > conftest.s
21423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21425 (eval $ac_try) 2>&5
21427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21428 test $ac_status = 0; }; }
21430 gcc_cv_as_max_skip_p2align=yes
21432 echo "configure: failed program was" >&5
21435 rm -f conftest.o conftest.s
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21439 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21440 if test $gcc_cv_as_max_skip_p2align = yes; then
21442 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21447 $as_echo_n "checking assembler for .literal16... " >&6; }
21448 if test "${gcc_cv_as_literal16+set}" = set; then :
21449 $as_echo_n "(cached) " >&6
21451 gcc_cv_as_literal16=no
21452 if test $in_tree_gas = yes; then
21453 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21454 then gcc_cv_as_literal16=yes
21456 elif test x$gcc_cv_as != x; then
21457 echo '.literal16' > conftest.s
21458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21460 (eval $ac_try) 2>&5
21462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21463 test $ac_status = 0; }; }
21465 gcc_cv_as_literal16=yes
21467 echo "configure: failed program was" >&5
21470 rm -f conftest.o conftest.s
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21474 $as_echo "$gcc_cv_as_literal16" >&6; }
21475 if test $gcc_cv_as_literal16 = yes; then
21477 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21482 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21483 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21484 $as_echo_n "(cached) " >&6
21486 gcc_cv_as_subsection_m1=no
21487 if test $in_tree_gas = yes; then
21488 if test $in_tree_gas_is_elf = yes \
21489 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21490 then gcc_cv_as_subsection_m1=yes
21492 elif test x$gcc_cv_as != x; then
21493 echo 'conftest_label1: .word 0
21495 conftest_label2: .word 0
21496 .previous' > conftest.s
21497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21499 (eval $ac_try) 2>&5
21501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21502 test $ac_status = 0; }; }
21504 if test x$gcc_cv_nm != x; then
21505 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21506 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21507 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21509 else gcc_cv_as_subsection_m1=yes
21511 rm -f conftest.nm1 conftest.nm2
21514 echo "configure: failed program was" >&5
21517 rm -f conftest.o conftest.s
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21521 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21522 if test $gcc_cv_as_subsection_m1 = yes; then
21524 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21529 $as_echo_n "checking assembler for .weak... " >&6; }
21530 if test "${gcc_cv_as_weak+set}" = set; then :
21531 $as_echo_n "(cached) " >&6
21534 if test $in_tree_gas = yes; then
21535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21536 then gcc_cv_as_weak=yes
21538 elif test x$gcc_cv_as != x; then
21539 echo ' .weak foobar' > conftest.s
21540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21542 (eval $ac_try) 2>&5
21544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21545 test $ac_status = 0; }; }
21549 echo "configure: failed program was" >&5
21552 rm -f conftest.o conftest.s
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21556 $as_echo "$gcc_cv_as_weak" >&6; }
21557 if test $gcc_cv_as_weak = yes; then
21559 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21564 $as_echo_n "checking assembler for .weakref... " >&6; }
21565 if test "${gcc_cv_as_weakref+set}" = set; then :
21566 $as_echo_n "(cached) " >&6
21568 gcc_cv_as_weakref=no
21569 if test $in_tree_gas = yes; then
21570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21571 then gcc_cv_as_weakref=yes
21573 elif test x$gcc_cv_as != x; then
21574 echo ' .weakref foobar, barfnot' > conftest.s
21575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21577 (eval $ac_try) 2>&5
21579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21580 test $ac_status = 0; }; }
21582 gcc_cv_as_weakref=yes
21584 echo "configure: failed program was" >&5
21587 rm -f conftest.o conftest.s
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21591 $as_echo "$gcc_cv_as_weakref" >&6; }
21592 if test $gcc_cv_as_weakref = yes; then
21594 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21599 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21600 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21601 $as_echo_n "(cached) " >&6
21603 gcc_cv_as_nsubspa_comdat=no
21604 if test $in_tree_gas = yes; then
21605 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21606 then gcc_cv_as_nsubspa_comdat=yes
21608 elif test x$gcc_cv_as != x; then
21609 echo ' .SPACE $TEXT$
21610 .NSUBSPA $CODE$,COMDAT' > conftest.s
21611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21613 (eval $ac_try) 2>&5
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; }
21618 gcc_cv_as_nsubspa_comdat=yes
21620 echo "configure: failed program was" >&5
21623 rm -f conftest.o conftest.s
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21627 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21628 if test $gcc_cv_as_nsubspa_comdat = yes; then
21630 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21634 # .hidden needs to be supported in both the assembler and the linker,
21635 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21636 # This is irritatingly difficult to feature test for; we have to check the
21637 # date string after the version number. If we've got an in-tree
21638 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21640 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21642 $as_echo_n "checking assembler for .hidden... " >&6; }
21643 if test "${gcc_cv_as_hidden+set}" = set; then :
21644 $as_echo_n "(cached) " >&6
21646 gcc_cv_as_hidden=no
21647 if test $in_tree_gas = yes; then
21648 if test $in_tree_gas_is_elf = yes \
21649 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21650 then gcc_cv_as_hidden=yes
21652 elif test x$gcc_cv_as != x; then
21653 echo ' .hidden foobar
21654 foobar:' > conftest.s
21655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21657 (eval $ac_try) 2>&5
21659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21660 test $ac_status = 0; }; }
21663 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21664 # STV_HIDDEN, so disable .hidden support if so.
21665 case "${target}" in
21667 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21668 cat > conftest.s <<EOF
21673 .set default,hidden
21675 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21676 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21677 grep '\.hidden default' > /dev/null; then
21678 gcc_cv_as_hidden=no
21680 gcc_cv_as_hidden=yes
21683 # Assume bug is present if objdump is missing.
21684 gcc_cv_as_hidden=no
21688 gcc_cv_as_hidden=yes
21692 echo "configure: failed program was" >&5
21695 rm -f conftest.o conftest.s
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21699 $as_echo "$gcc_cv_as_hidden" >&6; }
21702 # gnu_indirect_function type is an extension proposed at
21703 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21704 # selection of function implementation
21705 # Check whether --enable-gnu-indirect-function was given.
21706 if test "${enable_gnu_indirect_function+set}" = set; then :
21707 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21709 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21710 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21713 enable_gnu_indirect_function="$default_gnu_indirect_function"
21716 if test x$enable_gnu_indirect_function = xyes; then
21718 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21722 if test $in_tree_ld != yes ; then
21723 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21724 if test x"$ld_is_gold" = xyes; then
21725 gcc_cv_ld_hidden=yes
21726 elif echo "$ld_ver" | grep GNU > /dev/null; then
21727 ld_vers=`echo $ld_ver | sed -n \
21728 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21729 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'`
21730 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21731 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21732 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21734 case "${target}" in
21737 # Solaris 2 ld -V output looks like this for a regular version:
21739 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21741 # but test versions add stuff at the end:
21743 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21745 ld_ver=`$gcc_cv_ld -V 2>&1`
21746 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21747 ld_vers=`echo $ld_ver | sed -n \
21748 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21749 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21750 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21758 $as_echo_n "checking linker for .hidden support... " >&6; }
21759 if test "${gcc_cv_ld_hidden+set}" = set; then :
21760 $as_echo_n "(cached) " >&6
21762 if test $in_tree_ld = yes ; then
21763 gcc_cv_ld_hidden=no
21764 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 \
21765 && test $in_tree_ld_is_elf = yes; then
21766 gcc_cv_ld_hidden=yes
21769 gcc_cv_ld_hidden=yes
21770 if echo "$ld_ver" | grep GNU > /dev/null; then
21771 if test 0"$ld_date" -lt 20020404; then
21772 if test -n "$ld_date"; then
21773 # If there was date string, but was earlier than 2002-04-04, fail
21774 gcc_cv_ld_hidden=no
21775 elif test -z "$ld_vers"; then
21776 # If there was no date string nor ld version number, something is wrong
21777 gcc_cv_ld_hidden=no
21779 test -z "$ld_vers_patch" && ld_vers_patch=0
21780 if test "$ld_vers_major" -lt 2; then
21781 gcc_cv_ld_hidden=no
21782 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21783 gcc_cv_ld_hidden="no"
21784 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21785 gcc_cv_ld_hidden=no
21790 case "${target}" in
21791 hppa64*-*-hpux* | ia64*-*-hpux*)
21792 gcc_cv_ld_hidden=yes
21795 # .hidden support was backported to Solaris 8, starting with ld
21797 if test "$ld_vers_minor" -ge 276; then
21798 gcc_cv_ld_hidden=yes
21800 gcc_cv_ld_hidden=no
21803 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21804 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21805 # .symbolic was only added in Solaris 9 12/02.
21806 gcc_cv_ld_hidden=yes
21809 gcc_cv_ld_hidden=no
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21816 $as_echo "$gcc_cv_ld_hidden" >&6; }
21817 libgcc_visibility=no
21820 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21821 libgcc_visibility=yes
21823 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21828 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21829 gcc_cv_ld_ro_rw_mix=unknown
21830 if test $in_tree_ld = yes ; then
21831 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 \
21832 && test $in_tree_ld_is_elf = yes; then
21833 gcc_cv_ld_ro_rw_mix=read-write
21835 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21836 echo '.section myfoosect, "a"' > conftest1.s
21837 echo '.section myfoosect, "aw"' > conftest2.s
21838 echo '.byte 1' >> conftest2.s
21839 echo '.section myfoosect, "a"' > conftest3.s
21840 echo '.byte 0' >> conftest3.s
21841 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21842 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21843 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21844 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21845 conftest2.o conftest3.o > /dev/null 2>&1; then
21846 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21847 | sed -e '/myfoosect/!d' -e N`
21848 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21849 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21850 gcc_cv_ld_ro_rw_mix=read-only
21852 gcc_cv_ld_ro_rw_mix=read-write
21856 rm -f conftest.* conftest[123].*
21858 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21860 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21864 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21866 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21868 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21869 if test "${gcc_cv_as_leb128+set}" = set; then :
21870 $as_echo_n "(cached) " >&6
21872 gcc_cv_as_leb128=no
21873 if test $in_tree_gas = yes; then
21874 if test $in_tree_gas_is_elf = yes \
21875 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21876 then gcc_cv_as_leb128=yes
21878 elif test x$gcc_cv_as != x; then
21885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21887 (eval $ac_try) 2>&5
21889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21890 test $ac_status = 0; }; }
21892 # GAS versions before 2.11 do not support uleb128,
21893 # despite appearing to.
21894 # ??? There exists an elf-specific test that will crash
21895 # the assembler. Perhaps it's better to figure out whether
21896 # arbitrary sections are supported and try the test.
21897 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21898 if echo "$as_ver" | grep GNU > /dev/null; then
21899 as_vers=`echo $as_ver | sed -n \
21900 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21901 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21902 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21903 if test $as_major -eq 2 && test $as_minor -lt 11
21905 else gcc_cv_as_leb128=yes
21909 echo "configure: failed program was" >&5
21912 rm -f conftest.o conftest.s
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21916 $as_echo "$gcc_cv_as_leb128" >&6; }
21917 if test $gcc_cv_as_leb128 = yes; then
21919 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21923 # Check if we have assembler support for unwind directives.
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21925 $as_echo_n "checking assembler for cfi directives... " >&6; }
21926 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21927 $as_echo_n "(cached) " >&6
21929 gcc_cv_as_cfi_directive=no
21930 if test x$gcc_cv_as != x; then
21936 .cfi_escape 1, 2, 3, 4, 5
21937 .cfi_endproc' > 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; }; }
21947 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21948 # read-only and read-write sections, we need to make sure that the
21949 # assembler used emits read-write .eh_frame sections.
21950 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21951 if test "x$gcc_cv_objdump" != x; then
21952 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21953 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21954 gcc_cv_as_cfi_directive=no
21957 i?86-*-solaris2.1[0-9]*)
21958 # On Solaris/x86, make sure that GCC and gas agree on using
21959 # read-only .eh_frame sections for 64-bit.
21960 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21961 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21962 sed -e /.eh_frame/!d -e N | \
21963 grep READONLY > /dev/null; then
21964 gcc_cv_as_cfi_directive=yes
21966 gcc_cv_as_cfi_directive=no
21970 gcc_cv_as_cfi_directive=yes
21975 # no objdump, err on the side of caution
21976 gcc_cv_as_cfi_directive=no
21979 gcc_cv_as_cfi_directive=yes
21983 gcc_cv_as_cfi_directive=yes
21987 echo "configure: failed program was" >&5
21990 rm -f conftest.o conftest.s
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21994 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21996 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21998 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21999 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22000 $as_echo_n "(cached) " >&6
22002 gcc_cv_as_cfi_advance_working=no
22003 if test x$gcc_cv_as != x; then
22006 .cfi_adjust_cfa_offset 64
22008 .cfi_adjust_cfa_offset 128
22009 .cfi_endproc' > conftest.s
22010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22012 (eval $ac_try) 2>&5
22014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22015 test $ac_status = 0; }; }
22018 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22019 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22020 gcc_cv_as_cfi_advance_working=yes
22024 echo "configure: failed program was" >&5
22027 rm -f conftest.o conftest.s
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22031 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22034 # no objdump, err on the side of caution
22035 gcc_cv_as_cfi_advance_working=no
22039 cat >>confdefs.h <<_ACEOF
22040 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22041 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22047 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22048 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22049 $as_echo_n "(cached) " >&6
22051 gcc_cv_as_cfi_personality_directive=no
22052 if test x$gcc_cv_as != x; then
22055 .cfi_personality 0, symbol
22056 .cfi_endproc' > conftest.s
22057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22059 (eval $ac_try) 2>&5
22061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22062 test $ac_status = 0; }; }
22064 gcc_cv_as_cfi_personality_directive=yes
22066 echo "configure: failed program was" >&5
22069 rm -f conftest.o conftest.s
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22073 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22076 cat >>confdefs.h <<_ACEOF
22077 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22078 then echo 1; else echo 0; fi`
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22083 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22084 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22087 gcc_cv_as_cfi_sections_directive=no
22088 if test x$gcc_cv_as != x; then
22090 .cfi_sections .debug_frame, .eh_frame
22092 .cfi_endproc' > conftest.s
22093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22095 (eval $ac_try) 2>&5
22097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22098 test $ac_status = 0; }; }
22101 win32 | pe | cygwin* | mingw32* | uwin*)
22102 # Need to check that we generated the correct relocation for the
22103 # .debug_frame section. This was fixed for binutils 2.21.
22104 gcc_cv_as_cfi_sections_directive=no
22105 if test "x$gcc_cv_objdump" != x; then
22106 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22107 grep secrel > /dev/null; then
22108 gcc_cv_as_cfi_sections_directive=yes
22113 gcc_cv_as_cfi_sections_directive=yes
22117 echo "configure: failed program was" >&5
22120 rm -f conftest.o conftest.s
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22124 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22128 cat >>confdefs.h <<_ACEOF
22129 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22130 then echo 1; else echo 0; fi`
22134 # GAS versions up to and including 2.11.0 may mis-optimize
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22137 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22138 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22139 $as_echo_n "(cached) " >&6
22141 gcc_cv_as_eh_frame=no
22142 if test $in_tree_gas = yes; then
22143 if test $in_tree_gas_is_elf = yes \
22144 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22145 then gcc_cv_as_eh_frame=yes
22147 elif test x$gcc_cv_as != x; then
22154 .section .eh_frame,"aw",@progbits
22156 .4byte .LECIE1-.LSCIE1
22170 .4byte .LEFDE1-.LASFDE1
22172 .4byte .LASFDE1-__FRAME_BEGIN__
22179 .LEFDE1:' > conftest.s
22180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22182 (eval $ac_try) 2>&5
22184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22185 test $ac_status = 0; }; }
22187 cat > conftest.lit <<EOF
22188 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22189 0010 01000000 12000000 18000000 00000000 ................
22190 0020 08000000 04080000 0044 .........D
22192 cat > conftest.big <<EOF
22193 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22194 0010 00000001 00000012 00000018 00000000 ................
22195 0020 00000008 04000000 0844 .........D
22197 # If the assembler didn't choke, and we can objdump,
22198 # and we got the correct data, then succeed.
22199 # The text in the here-document typically retains its unix-style line
22200 # endings, while the output of objdump will use host line endings.
22201 # Therefore, use diff -b for the comparisons.
22202 if test x$gcc_cv_objdump != x \
22203 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22204 | tail -3 > conftest.got \
22205 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22206 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22208 gcc_cv_as_eh_frame=yes
22209 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22211 (eval $ac_try) 2>&5
22213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22214 test $ac_status = 0; }; }; then
22215 gcc_cv_as_eh_frame=buggy
22217 # Uh oh, what do we do now?
22218 gcc_cv_as_eh_frame=no
22221 echo "configure: failed program was" >&5
22224 rm -f conftest.o conftest.s
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22228 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22231 if test $gcc_cv_as_eh_frame = buggy; then
22233 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22238 $as_echo_n "checking assembler for section merging support... " >&6; }
22239 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22240 $as_echo_n "(cached) " >&6
22242 gcc_cv_as_shf_merge=no
22243 if test $in_tree_gas = yes; then
22244 if test $in_tree_gas_is_elf = yes \
22245 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22246 then gcc_cv_as_shf_merge=yes
22248 elif test x$gcc_cv_as != x; then
22249 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22250 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22252 (eval $ac_try) 2>&5
22254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22255 test $ac_status = 0; }; }
22257 gcc_cv_as_shf_merge=yes
22259 echo "configure: failed program was" >&5
22262 rm -f conftest.o conftest.s
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22266 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22268 if test $gcc_cv_as_shf_merge = no; then
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22270 $as_echo_n "checking assembler for section merging support... " >&6; }
22271 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22272 $as_echo_n "(cached) " >&6
22274 gcc_cv_as_shf_merge=no
22275 if test $in_tree_gas = yes; then
22276 if test $in_tree_gas_is_elf = yes \
22277 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22278 then gcc_cv_as_shf_merge=yes
22280 elif test x$gcc_cv_as != x; then
22281 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22284 (eval $ac_try) 2>&5
22286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22287 test $ac_status = 0; }; }
22289 gcc_cv_as_shf_merge=yes
22291 echo "configure: failed program was" >&5
22294 rm -f conftest.o conftest.s
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22298 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22302 cat >>confdefs.h <<_ACEOF
22303 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22308 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22309 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22310 $as_echo_n "(cached) " >&6
22312 gcc_cv_as_comdat_group=no
22313 if test $in_tree_gas = yes; then
22314 if test $in_tree_gas_is_elf = yes \
22315 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22316 then gcc_cv_as_comdat_group=yes
22318 elif test x$gcc_cv_as != x; then
22319 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22322 (eval $ac_try) 2>&5
22324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22325 test $ac_status = 0; }; }
22327 gcc_cv_as_comdat_group=yes
22329 echo "configure: failed program was" >&5
22332 rm -f conftest.o conftest.s
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22336 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22338 if test $gcc_cv_as_comdat_group = yes; then
22339 gcc_cv_as_comdat_group_percent=no
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22342 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22343 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22344 $as_echo_n "(cached) " >&6
22346 gcc_cv_as_comdat_group_percent=no
22347 if test $in_tree_gas = yes; then
22348 if test $in_tree_gas_is_elf = yes \
22349 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22350 then gcc_cv_as_comdat_group_percent=yes
22352 elif test x$gcc_cv_as != x; then
22353 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22356 (eval $ac_try) 2>&5
22358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22359 test $ac_status = 0; }; }
22361 gcc_cv_as_comdat_group_percent=yes
22363 echo "configure: failed program was" >&5
22366 rm -f conftest.o conftest.s
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22370 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22373 if test x"$ld_is_gold" = xyes; then
22375 elif test $in_tree_ld = yes ; then
22377 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 \
22378 && test $in_tree_ld_is_elf = yes; then
22381 elif echo "$ld_ver" | grep GNU > /dev/null; then
22383 if test 0"$ld_date" -lt 20050308; then
22384 if test -n "$ld_date"; then
22385 # If there was date string, but was earlier than 2005-03-08, fail
22387 elif test "$ld_vers_major" -lt 2; then
22389 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22394 case "${target}" in
22395 *-*-solaris2.1[1-9]*)
22396 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22397 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22400 # FIXME: Maybe need to refine later when COMDAT group support with
22401 # Sun as is implemented.
22402 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22409 # Assume linkers other than GNU ld don't support COMDAT group.
22414 # Allow overriding the automatic COMDAT group tests above.
22415 # Check whether --enable-comdat was given.
22416 if test "${enable_comdat+set}" = set; then :
22417 enableval=$enable_comdat; comdat_group="$enable_comdat"
22420 if test $comdat_group = no; then
22421 gcc_cv_as_comdat_group=no
22422 gcc_cv_as_comdat_group_percent=no
22425 cat >>confdefs.h <<_ACEOF
22426 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22431 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22432 if test "${gcc_cv_as_discriminator+set}" = set; then :
22433 $as_echo_n "(cached) " >&6
22435 gcc_cv_as_discriminator=no
22436 if test $in_tree_gas = yes; then
22437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22438 then gcc_cv_as_discriminator=yes
22440 elif test x$gcc_cv_as != x; then
22443 .loc 1 1 0 discriminator 1' > conftest.s
22444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22446 (eval $ac_try) 2>&5
22448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22449 test $ac_status = 0; }; }
22451 gcc_cv_as_discriminator=yes
22453 echo "configure: failed program was" >&5
22456 rm -f conftest.o conftest.s
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22460 $as_echo "$gcc_cv_as_discriminator" >&6; }
22461 if test $gcc_cv_as_discriminator = yes; then
22463 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22467 # Thread-local storage - the check is heavily parameterized.
22475 .section ".tdata","awT",@progbits
22478 ldq $27,__tls_get_addr($29) !literal!1
22479 lda $16,foo($29) !tlsgd!1
22480 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22481 ldq $27,__tls_get_addr($29) !literal!2
22482 lda $16,foo($29) !tlsldm!2
22483 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22484 ldq $1,foo($29) !gotdtprel
22485 ldah $2,foo($29) !dtprelhi
22486 lda $3,foo($2) !dtprello
22487 lda $4,foo($29) !dtprel
22488 ldq $1,foo($29) !gottprel
22489 ldah $2,foo($29) !tprelhi
22490 lda $3,foo($2) !tprello
22491 lda $4,foo($29) !tprel'
22494 tls_as_opt=--fatal-warnings
22496 cris-*-*|crisv32-*-*)
22498 .section ".tdata","awT",@progbits
22505 tls_as_opt=--fatal-warnings
22509 .section ".tdata","awT",@progbits
22512 call #gettlsoff(x)'
22521 .section ".tdata","awT",@progbits
22525 addil LT%foo-$tls_gdidx$,gp
22526 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22529 addil LT%foo-$tls_ldidx$,gp
22531 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22532 addil LR%foo-$tls_dtpoff$,%ret0
22533 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22535 addil LT%foo-$tls_ieoff$,gp
22536 ldw RT%foo-$tls_ieoff$(%r1),%t2
22539 addil LR%foo-$tls_leoff$,%t1
22540 ldo RR%foo-$tls_leoff$(%r1),%t2'
22543 tls_as_opt=--fatal-warnings
22547 .section ".tdata","awT",%progbits
22550 .word foo(gottpoff)
22560 i[34567]86-*-solaris2.*)
22562 tga_func=___tls_get_addr
22568 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22570 .section .tdata,"awt",@progbits'
22574 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22578 .section ".tdata","awT",@progbits'
22581 tls_as_opt="--fatal-warnings"
22583 conftest_s="$conftest_s
22587 leal foo@tlsgd(,%ebx,1), %eax
22588 leal foo@tlsldm(%ebx), %eax
22589 leal foo@dtpoff(%eax), %edx
22590 movl foo@gottpoff(%ebx), %eax
22591 subl foo@gottpoff(%ebx), %eax
22592 addl foo@gotntpoff(%ebx), %eax
22593 movl foo@indntpoff, %eax
22594 movl \$foo@tpoff, %eax
22595 subl \$foo@tpoff, %eax
22596 leal foo@ntpoff(%ecx), %eax"
22600 .section ".tdata","awT",@progbits
22604 leaq foo@TLSGD(%rip), %rdi
22605 leaq foo@TLSLD(%rip), %rdi
22606 leaq foo@DTPOFF(%rax), %rdx
22607 movq foo@GOTTPOFF(%rip), %rax
22608 movq $foo@TPOFF, %rax'
22611 tls_as_opt=--fatal-warnings
22615 .section ".tdata","awT",@progbits
22618 addl r16 = @ltoff(@dtpmod(foo#)), gp
22619 addl r17 = @ltoff(@dtprel(foo#)), gp
22620 addl r18 = @ltoff(@tprel(foo#)), gp
22621 addl r19 = @dtprel(foo#), gp
22622 adds r21 = @dtprel(foo#), r13
22623 movl r23 = @dtprel(foo#)
22624 addl r20 = @tprel(foo#), gp
22625 adds r22 = @tprel(foo#), r13
22626 movl r24 = @tprel(foo#)'
22629 tls_as_opt=--fatal-warnings
22633 .section .tdata,"awT",@progbits
22637 addiu $4, $28, %tlsgd(x)
22638 addiu $4, $28, %tlsldm(x)
22639 lui $4, %dtprel_hi(x)
22640 addiu $4, $4, %dtprel_lo(x)
22641 lw $4, %gottprel(x)($28)
22642 lui $4, %tprel_hi(x)
22643 addiu $4, $4, %tprel_lo(x)'
22646 tls_as_opt='-32 --fatal-warnings'
22650 .section .tdata,"awT",@progbits
22655 move.l x@TLSGD(%a5),%a0
22656 move.l x@TLSLDM(%a5),%a0
22657 move.l x@TLSLDO(%a5),%a0
22658 move.l x@TLSIE(%a5),%a0
22659 move.l x@TLSLE(%a5),%a0'
22662 tls_as_opt='--fatal-warnings'
22666 .section ".tdata","awT",@progbits
22674 addi 3,31,ld0@got@tlsgd
22676 addi 3,31,x1@got@tlsld
22679 addis 9,3,x2@dtprel@ha
22680 addi 9,9,x2@dtprel@l
22681 lwz 9,x3@got@tprel(31)
22684 addis 9,2,x2@tprel@ha
22685 addi 9,9,x2@tprel@l'
22688 tls_as_opt="-a32 --fatal-warnings"
22692 .section ".tdata","awT",@progbits
22700 addi 3,2,ld0@got@tlsgd
22706 addi 3,2,x1@got@tlsld
22712 addis 9,3,x2@dtprel@ha
22713 addi 9,9,x2@dtprel@l
22716 ld 9,x3@got@dtprel(2)
22722 tls_as_opt="-a64 --fatal-warnings"
22726 .section ".tdata","awT",@progbits
22733 .long foo@GOTNTPOFF
22734 .long foo@INDNTPOFF
22735 l %r1,foo@GOTNTPOFF(%r12)
22736 l %r1,0(%r1):tls_load:foo
22737 bas %r14,0(%r1,%r13):tls_gdcall:foo
22738 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22741 tls_as_opt="-m31 --fatal-warnings"
22745 .section ".tdata","awT",@progbits
22752 .quad foo@GOTNTPOFF
22753 lg %r1,foo@GOTNTPOFF(%r12)
22754 larl %r1,foo@INDNTPOFF
22755 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22756 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22759 tls_as_opt="-m64 -Aesame --fatal-warnings"
22761 sh-*-* | sh[34]-*-*)
22763 .section ".tdata","awT",@progbits
22773 tls_as_opt=--fatal-warnings
22777 sparc*-sun-solaris2.*)
22779 tga_func=__tls_get_addr
22785 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22787 .section ".tdata",#alloc,#write,#tls'
22792 .section ".tdata","awT",@progbits'
22795 tls_as_opt="-32 --fatal-warnings"
22797 conftest_s="$conftest_s
22800 sethi %tgd_hi22(foo), %o0
22801 add %o0, %tgd_lo10(foo), %o1
22802 add %l7, %o1, %o0, %tgd_add(foo)
22803 call __tls_get_addr, %tgd_call(foo)
22804 sethi %tldm_hi22(foo), %l1
22805 add %l1, %tldm_lo10(foo), %l2
22806 add %l7, %l2, %o0, %tldm_add(foo)
22807 call __tls_get_addr, %tldm_call(foo)
22808 sethi %tldo_hix22(foo), %l3
22809 xor %l3, %tldo_lox10(foo), %l4
22810 add %o0, %l4, %l5, %tldo_add(foo)
22811 sethi %tie_hi22(foo), %o3
22812 add %o3, %tie_lo10(foo), %o3
22813 ld [%l7 + %o3], %o2, %tie_ld(foo)
22814 add %g7, %o2, %o4, %tie_add(foo)
22815 sethi %tle_hix22(foo), %l1
22816 xor %l1, %tle_lox10(foo), %o5
22817 ld [%g7 + %o5], %o1"
22821 .section ".tdata","awT",@progbits
22824 movi a8, foo@TLSFUNC
22825 movi a10, foo@TLSARG
22826 callx8.tls a8, foo@TLSCALL'
22832 if test "x$enable_tls" = xno ; then
22833 : # TLS explicitly disabled.
22834 elif test "x$enable_tls" = xyes ; then
22835 set_have_as_tls=yes # TLS explicitly enabled.
22836 elif test -z "$tls_first_major"; then
22837 : # If we don't have a check, assume no support.
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22840 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22841 if test "${gcc_cv_as_tls+set}" = set; then :
22842 $as_echo_n "(cached) " >&6
22845 if test $in_tree_gas = yes; then
22846 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22847 then gcc_cv_as_tls=yes
22849 elif test x$gcc_cv_as != x; then
22850 echo "$conftest_s" > conftest.s
22851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22853 (eval $ac_try) 2>&5
22855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22856 test $ac_status = 0; }; }
22860 echo "configure: failed program was" >&5
22863 rm -f conftest.o conftest.s
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22867 $as_echo "$gcc_cv_as_tls" >&6; }
22868 if test $gcc_cv_as_tls = yes; then
22869 set_have_as_tls=yes
22874 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22875 # with TLS support are in use, native TLS cannot work.
22879 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22880 # gld with TLS support are in use, native TLS cannot work.
22883 # TLS was introduced in the Solaris 9 FCS release and backported to
22884 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22885 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22886 # ld and GCC don't support any longer.
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22889 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22891 # Check ld and ld.so.1 TLS support.
22892 if echo "$ld_ver" | grep GNU > /dev/null; then
22893 # Assume all interesting versions of GNU ld have TLS support.
22894 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22898 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22900 min_tls_ld_vers_minor=280
22902 # Solaris 8/SPARC ld has TLS support since version 1.272.
22903 sparc*-*-solaris2.8)
22904 min_tls_ld_vers_minor=272
22906 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22908 min_tls_ld_vers_minor=374
22910 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22911 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22912 min_tls_ld_vers_minor=343
22915 if test "$ld_vers_major" -gt 1 || \
22916 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22923 $as_echo "$ld_tls_support" >&6; }
22926 save_LDFLAGS="$LDFLAGS"
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22931 $as_echo_n "checking alternate thread library... " >&6; }
22933 # TLS support was backported to Solaris 8 patches, but only lives in
22934 # the alternate thread library which became the default in Solaris 9.
22935 # We want to always use that, irrespective of TLS support.
22937 # Take multilib subdir into account. There's no spec to handle
22938 # this. The 64 symlink exists since Solaris 8.
22939 lwp_dir=/usr/lib/lwp
22940 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22941 LDFLAGS="-L$lwp_dir -R$lwp_dir"
22948 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22950 cat >>confdefs.h <<_ACEOF
22951 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22955 $as_echo "$lwp_dir" >&6; }
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22958 $as_echo_n "checking library containing $tga_func... " >&6; }
22959 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22960 # (32-bit x86) only lived in libthread, so check for that. Keep
22961 # set_have_as_tls if found, disable if not.
22962 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22964 $as_echo_n "checking for library containing $tga_func... " >&6; }
22965 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22966 $as_echo_n "(cached) " >&6
22968 ac_func_search_save_LIBS=$LIBS
22969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22970 /* end confdefs.h. */
22972 /* Override any GCC internal prototype to avoid an error.
22973 Use char because int might match the return type of a GCC
22974 builtin and then its argument prototype would still apply. */
22982 return $tga_func ();
22987 for ac_lib in '' thread; do
22988 if test -z "$ac_lib"; then
22989 ac_res="none required"
22992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22994 if ac_fn_c_try_link "$LINENO"; then :
22995 eval "$as_ac_Search=\$ac_res"
22997 rm -f core conftest.err conftest.$ac_objext \
22999 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23003 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23006 eval "$as_ac_Search=no"
23008 rm conftest.$ac_ext
23009 LIBS=$ac_func_search_save_LIBS
23011 eval ac_res=\$$as_ac_Search
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23013 $as_echo "$ac_res" >&6; }
23014 eval ac_res=\$$as_ac_Search
23015 if test "$ac_res" != no; then :
23016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23022 # Clear LIBS if we cannot support TLS.
23023 if test $set_have_as_tls = no; then
23026 # Always define LIB_TLS_SPEC, even without TLS support.
23028 cat >>confdefs.h <<_ACEOF
23029 #define LIB_TLS_SPEC "$LIBS"
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23033 $as_echo "$LIBS" >&6; }
23036 LDFLAGS="$save_LDFLAGS"
23039 if test $set_have_as_tls = yes ; then
23041 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23045 # Target-specific assembler checks.
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23048 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23049 gcc_cv_ld_static_dynamic=no
23050 if test $in_tree_ld = yes ; then
23051 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
23052 gcc_cv_ld_static_dynamic=yes
23054 elif test x$gcc_cv_ld != x; then
23055 # Check if linker supports -Bstatic/-Bdynamic option
23056 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23057 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23058 gcc_cv_ld_static_dynamic=yes
23061 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23063 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23067 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23069 if test x"$demangler_in_ld" = xyes; then
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23071 $as_echo_n "checking linker --demangle support... " >&6; }
23072 gcc_cv_ld_demangle=no
23073 if test $in_tree_ld = yes; then
23074 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 \
23075 gcc_cv_ld_demangle=yes
23077 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23078 # Check if the GNU linker supports --demangle option
23079 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23080 gcc_cv_ld_demangle=yes
23083 if test x"$gcc_cv_ld_demangle" = xyes; then
23085 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23089 $as_echo "$gcc_cv_ld_demangle" >&6; }
23093 # All TARGET_ABI_OSF targets.
23094 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23096 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23097 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23098 $as_echo_n "(cached) " >&6
23100 gcc_cv_as_alpha_explicit_relocs=no
23101 if test $in_tree_gas = yes; then
23102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23103 then gcc_cv_as_alpha_explicit_relocs=yes
23105 elif test x$gcc_cv_as != x; then
23106 echo ' .set nomacro
23108 extbl $3, $2, $3 !lituse_bytoff!1
23109 ldq $2, a($29) !literal!1
23110 ldq $4, b($29) !literal!2
23111 ldq_u $3, 0($2) !lituse_base!1
23112 ldq $27, f($29) !literal!5
23113 jsr $26, ($27), f !lituse_jsr!5
23114 ldah $29, 0($26) !gpdisp!3
23115 lda $0, c($29) !gprel
23116 ldah $1, d($29) !gprelhigh
23117 lda $1, d($1) !gprellow
23118 lda $29, 0($29) !gpdisp!3' > conftest.s
23119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23121 (eval $ac_try) 2>&5
23123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23124 test $ac_status = 0; }; }
23126 gcc_cv_as_alpha_explicit_relocs=yes
23128 echo "configure: failed program was" >&5
23131 rm -f conftest.o conftest.s
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23135 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23136 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23138 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23142 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23143 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23144 $as_echo_n "(cached) " >&6
23146 gcc_cv_as_alpha_jsrdirect_relocs=no
23147 if test $in_tree_gas = yes; then
23148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23149 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23151 elif test x$gcc_cv_as != x; then
23152 echo ' .set nomacro
23154 ldq $27, a($29) !literal!1
23155 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23158 (eval $ac_try) 2>&5
23160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23161 test $ac_status = 0; }; }
23163 gcc_cv_as_alpha_jsrdirect_relocs=yes
23165 echo "configure: failed program was" >&5
23168 rm -f conftest.o conftest.s
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23172 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23173 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23175 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23182 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23183 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23184 $as_echo_n "(cached) " >&6
23186 gcc_cv_as_cris_no_mul_bug=no
23187 if test $in_tree_gas = yes; then
23188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23189 then gcc_cv_as_cris_no_mul_bug=yes
23191 elif test x$gcc_cv_as != x; then
23192 echo '.text' > conftest.s
23193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195 (eval $ac_try) 2>&5
23197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198 test $ac_status = 0; }; }
23200 gcc_cv_as_cris_no_mul_bug=yes
23202 echo "configure: failed program was" >&5
23205 rm -f conftest.o conftest.s
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23209 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23210 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23212 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23219 $as_echo_n "checking assembler for .register... " >&6; }
23220 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23221 $as_echo_n "(cached) " >&6
23223 gcc_cv_as_sparc_register_op=no
23224 if test x$gcc_cv_as != x; then
23225 echo '.register %g2, #scratch' > conftest.s
23226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23228 (eval $ac_try) 2>&5
23230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23231 test $ac_status = 0; }; }
23233 gcc_cv_as_sparc_register_op=yes
23235 echo "configure: failed program was" >&5
23238 rm -f conftest.o conftest.s
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23242 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23243 if test $gcc_cv_as_sparc_register_op = yes; then
23245 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23250 $as_echo_n "checking assembler for -relax option... " >&6; }
23251 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23252 $as_echo_n "(cached) " >&6
23254 gcc_cv_as_sparc_relax=no
23255 if test x$gcc_cv_as != x; then
23256 echo '.text' > conftest.s
23257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23259 (eval $ac_try) 2>&5
23261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23262 test $ac_status = 0; }; }
23264 gcc_cv_as_sparc_relax=yes
23266 echo "configure: failed program was" >&5
23269 rm -f conftest.o conftest.s
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23273 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23274 if test $gcc_cv_as_sparc_relax = yes; then
23276 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23281 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23282 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23283 $as_echo_n "(cached) " >&6
23285 gcc_cv_as_sparc_gotdata_op=no
23286 if test x$gcc_cv_as != x; then
23291 sethi %gdop_hix22(foo), %g1
23292 xor %g1, %gdop_lox10(foo), %g1
23293 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23296 (eval $ac_try) 2>&5
23298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23299 test $ac_status = 0; }; }
23301 if test x$gcc_cv_ld != x \
23302 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23303 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23304 if test x$gcc_cv_objdump != x; then
23305 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23306 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23307 gcc_cv_as_sparc_gotdata_op=no
23309 gcc_cv_as_sparc_gotdata_op=yes
23313 gcc_cv_as_sparc_gotdata_op=yes
23318 echo "configure: failed program was" >&5
23321 rm -f conftest.o conftest.s
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23325 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23326 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23328 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23333 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23334 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23335 $as_echo_n "(cached) " >&6
23337 gcc_cv_as_sparc_ua_pcrel=no
23338 if test x$gcc_cv_as != x; then
23345 .uaword %r_disp32(foo)' > conftest.s
23346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23348 (eval $ac_try) 2>&5
23350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23351 test $ac_status = 0; }; }
23353 if test x$gcc_cv_ld != x \
23354 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23355 gcc_cv_as_sparc_ua_pcrel=yes
23359 echo "configure: failed program was" >&5
23362 rm -f conftest.o conftest.s
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23366 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23367 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23369 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23373 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23374 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23375 $as_echo_n "(cached) " >&6
23377 gcc_cv_as_sparc_ua_pcrel_hidden=no
23378 if test x$gcc_cv_as != x; then
23382 .uaword %r_disp32(foo)
23383 .byte 0x32, 0x33, 0x34
23387 .skip 4' > conftest.s
23388 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23390 (eval $ac_try) 2>&5
23392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23393 test $ac_status = 0; }; }
23395 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23396 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23397 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23398 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23399 if $gcc_cv_objdump -R conftest 2> /dev/null \
23400 | grep 'DISP32' > /dev/null 2>&1; then
23403 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23408 echo "configure: failed program was" >&5
23411 rm -f conftest.o conftest.s
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23415 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23416 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23418 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23422 fi # unaligned pcrel relocs
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23425 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23426 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23427 $as_echo_n "(cached) " >&6
23429 gcc_cv_as_sparc_offsetable_lo10=no
23430 if test x$gcc_cv_as != x; then
23432 or %g1, %lo(ab) + 12, %g1
23433 or %g1, %lo(ab + 12), %g1' > conftest.s
23434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23436 (eval $ac_try) 2>&5
23438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23439 test $ac_status = 0; }; }
23441 if test x$gcc_cv_objdump != x \
23442 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23443 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23444 gcc_cv_as_sparc_offsetable_lo10=yes
23447 echo "configure: failed program was" >&5
23450 rm -f conftest.o conftest.s
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23454 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23455 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23457 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23462 i[34567]86-*-* | x86_64-*-*)
23465 # Full C++ conformance when using a shared libstdc++-v3 requires some
23466 # support from the Cygwin DLL, which in more recent versions exports
23467 # wrappers to aid in interposing and redirecting operators new, delete,
23468 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23469 # are configuring for a version of Cygwin that exports the wrappers.
23470 if test x$host = x$target; then
23471 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23472 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23473 gcc_ac_cygwin_dll_wrappers=yes
23475 gcc_ac_cygwin_dll_wrappers=no
23479 # Can't check presence of libc functions during cross-compile, so
23480 # we just have to assume we're building for an up-to-date target.
23481 gcc_ac_cygwin_dll_wrappers=yes
23484 cat >>confdefs.h <<_ACEOF
23485 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23490 cygwin* | pe | mingw32*)
23491 # Recent binutils allows the three-operand form of ".comm" on PE. This
23492 # definition is used unconditionally to initialise the default state of
23493 # the target option variable that governs usage of the feature.
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23495 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23496 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23497 $as_echo_n "(cached) " >&6
23499 gcc_cv_as_comm_has_align=no
23500 if test $in_tree_gas = yes; then
23501 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23502 then gcc_cv_as_comm_has_align=yes
23504 elif test x$gcc_cv_as != x; then
23505 echo '.comm foo,1,32' > conftest.s
23506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23508 (eval $ac_try) 2>&5
23510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23511 test $ac_status = 0; }; }
23513 gcc_cv_as_comm_has_align=yes
23515 echo "configure: failed program was" >&5
23518 rm -f conftest.o conftest.s
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23522 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23525 cat >>confdefs.h <<_ACEOF
23526 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23529 # Used for DWARF 2 in PE
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23531 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23532 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23533 $as_echo_n "(cached) " >&6
23535 gcc_cv_as_ix86_pe_secrel32=no
23536 if test $in_tree_gas = yes; then
23537 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23538 then gcc_cv_as_ix86_pe_secrel32=yes
23540 elif test x$gcc_cv_as != x; then
23544 .secrel32 foo' > conftest.s
23545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23547 (eval $ac_try) 2>&5
23549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23550 test $ac_status = 0; }; }
23552 if test x$gcc_cv_ld != x \
23553 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23554 gcc_cv_as_ix86_pe_secrel32=yes
23558 echo "configure: failed program was" >&5
23561 rm -f conftest.o conftest.s
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23565 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23566 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23568 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23571 # Test if the assembler supports the extended form of the .section
23572 # directive that specifies section alignment. LTO support uses this,
23573 # but normally only after installation, so we warn but don't fail the
23574 # configure if LTO is enabled but the assembler does not support it.
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23576 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23577 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23578 $as_echo_n "(cached) " >&6
23580 gcc_cv_as_section_has_align=no
23581 if test $in_tree_gas = yes; then
23582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23583 then gcc_cv_as_section_has_align=yes
23585 elif test x$gcc_cv_as != x; then
23586 echo '.section lto_test,"dr0"' > conftest.s
23587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23589 (eval $ac_try) 2>&5
23591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23592 test $ac_status = 0; }; }
23594 gcc_cv_as_section_has_align=yes
23596 echo "configure: failed program was" >&5
23599 rm -f conftest.o conftest.s
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23603 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23605 if test x$gcc_cv_as_section_has_align != xyes; then
23606 case ",$enable_languages," in
23608 { $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
23609 $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;}
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23617 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23618 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23619 $as_echo_n "(cached) " >&6
23621 gcc_cv_as_ix86_filds=no
23622 if test x$gcc_cv_as != x; then
23623 echo 'filds mem; fists mem' > conftest.s
23624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23626 (eval $ac_try) 2>&5
23628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23629 test $ac_status = 0; }; }
23631 gcc_cv_as_ix86_filds=yes
23633 echo "configure: failed program was" >&5
23636 rm -f conftest.o conftest.s
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23640 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23641 if test $gcc_cv_as_ix86_filds = yes; then
23643 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23648 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23649 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23650 $as_echo_n "(cached) " >&6
23652 gcc_cv_as_ix86_fildq=no
23653 if test x$gcc_cv_as != x; then
23654 echo 'fildq mem; fistpq mem' > conftest.s
23655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23657 (eval $ac_try) 2>&5
23659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23660 test $ac_status = 0; }; }
23662 gcc_cv_as_ix86_fildq=yes
23664 echo "configure: failed program was" >&5
23667 rm -f conftest.o conftest.s
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23671 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23672 if test $gcc_cv_as_ix86_fildq = yes; then
23674 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23679 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23680 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23681 $as_echo_n "(cached) " >&6
23683 gcc_cv_as_ix86_cmov_sun_syntax=no
23684 if test x$gcc_cv_as != x; then
23685 echo 'cmovl.l %edx, %eax' > conftest.s
23686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23688 (eval $ac_try) 2>&5
23690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23691 test $ac_status = 0; }; }
23693 gcc_cv_as_ix86_cmov_sun_syntax=yes
23695 echo "configure: failed program was" >&5
23698 rm -f conftest.o conftest.s
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23702 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23703 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23705 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23710 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23711 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23712 $as_echo_n "(cached) " >&6
23714 gcc_cv_as_ix86_ffreep=no
23715 if test x$gcc_cv_as != x; then
23716 echo 'ffreep %st(1)' > conftest.s
23717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23719 (eval $ac_try) 2>&5
23721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23722 test $ac_status = 0; }; }
23724 gcc_cv_as_ix86_ffreep=yes
23726 echo "configure: failed program was" >&5
23729 rm -f conftest.o conftest.s
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23733 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23734 if test $gcc_cv_as_ix86_ffreep = yes; then
23736 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23741 $as_echo_n "checking assembler for .quad directive... " >&6; }
23742 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23743 $as_echo_n "(cached) " >&6
23745 gcc_cv_as_ix86_quad=no
23746 if test x$gcc_cv_as != x; then
23747 echo '.quad 0' > conftest.s
23748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23750 (eval $ac_try) 2>&5
23752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23753 test $ac_status = 0; }; }
23755 gcc_cv_as_ix86_quad=yes
23757 echo "configure: failed program was" >&5
23760 rm -f conftest.o conftest.s
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23764 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23765 if test $gcc_cv_as_ix86_quad = yes; then
23767 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23772 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23773 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23774 $as_echo_n "(cached) " >&6
23776 gcc_cv_as_ix86_sahf=no
23777 if test x$gcc_cv_as != x; then
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_ix86_sahf=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_ix86_sahf" >&5
23796 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23797 if test $gcc_cv_as_ix86_sahf = yes; then
23799 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23804 $as_echo_n "checking assembler for swap suffix... " >&6; }
23805 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23806 $as_echo_n "(cached) " >&6
23808 gcc_cv_as_ix86_swap=no
23809 if test x$gcc_cv_as != x; then
23810 echo 'movl.s %esp, %ebp' > conftest.s
23811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23813 (eval $ac_try) 2>&5
23815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23816 test $ac_status = 0; }; }
23818 gcc_cv_as_ix86_swap=yes
23820 echo "configure: failed program was" >&5
23823 rm -f conftest.o conftest.s
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23827 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23828 if test $gcc_cv_as_ix86_swap = yes; then
23830 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23835 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23836 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23837 $as_echo_n "(cached) " >&6
23839 gcc_cv_as_ix86_diff_sect_delta=no
23840 if test x$gcc_cv_as != x; then
23841 echo '.section .rodata
23847 .L2: nop' > conftest.s
23848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23850 (eval $ac_try) 2>&5
23852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23853 test $ac_status = 0; }; }
23855 gcc_cv_as_ix86_diff_sect_delta=yes
23857 echo "configure: failed program was" >&5
23860 rm -f conftest.o conftest.s
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23864 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23865 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23867 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23871 # These two are used unconditionally by i386.[ch]; it is to be defined
23872 # to 1 if the feature is present, 0 otherwise.
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23874 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23875 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23876 $as_echo_n "(cached) " >&6
23878 gcc_cv_as_ix86_gotoff_in_data=no
23879 if test $in_tree_gas = yes; then
23880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23881 then gcc_cv_as_ix86_gotoff_in_data=yes
23883 elif test x$gcc_cv_as != x; then
23888 .long .L0@GOTOFF' > conftest.s
23889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23891 (eval $ac_try) 2>&5
23893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23894 test $ac_status = 0; }; }
23896 gcc_cv_as_ix86_gotoff_in_data=yes
23898 echo "configure: failed program was" >&5
23901 rm -f conftest.o conftest.s
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23905 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23908 cat >>confdefs.h <<_ACEOF
23909 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23914 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23915 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23916 $as_echo_n "(cached) " >&6
23918 gcc_cv_as_ix86_rep_lock_prefix=no
23919 if test x$gcc_cv_as != x; then
23921 lock addl %edi, (%eax,%esi)
23922 lock orl $0, (%esp)' > conftest.s
23923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23925 (eval $ac_try) 2>&5
23927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23928 test $ac_status = 0; }; }
23930 gcc_cv_as_ix86_rep_lock_prefix=yes
23932 echo "configure: failed program was" >&5
23935 rm -f conftest.o conftest.s
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23939 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23940 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23942 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23950 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23951 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23952 $as_echo_n "(cached) " >&6
23954 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23955 if test $in_tree_gas = yes; then
23956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23957 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23959 elif test x$gcc_cv_as != x; then
23961 addl r15 = @ltoffx(x#), gp
23963 ld8.mov r16 = [r15], x#' > conftest.s
23964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23966 (eval $ac_try) 2>&5
23968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23969 test $ac_status = 0; }; }
23971 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23973 echo "configure: failed program was" >&5
23976 rm -f conftest.o conftest.s
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23980 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23981 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23983 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23991 *-*-aix*) conftest_s=' .machine "pwr5"
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23996 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23997 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23998 $as_echo_n "(cached) " >&6
24000 gcc_cv_as_machine_directive=no
24001 if test x$gcc_cv_as != x; then
24002 echo ' .machine ppc7400' > conftest.s
24003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24005 (eval $ac_try) 2>&5
24007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24008 test $ac_status = 0; }; }
24010 gcc_cv_as_machine_directive=yes
24012 echo "configure: failed program was" >&5
24015 rm -f conftest.o conftest.s
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24019 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24021 if test x$gcc_cv_as_machine_directive != xyes; then
24022 echo "*** This target requires an assembler supporting \".machine\"" >&2
24023 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24024 test x$build = x$target && exit 1
24028 *) conftest_s=' .machine power4
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24034 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24035 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24036 $as_echo_n "(cached) " >&6
24038 gcc_cv_as_powerpc_mfcrf=no
24039 if test $in_tree_gas = yes; then
24040 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24041 then gcc_cv_as_powerpc_mfcrf=yes
24043 elif test x$gcc_cv_as != x; then
24044 echo "$conftest_s" > conftest.s
24045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24047 (eval $ac_try) 2>&5
24049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24050 test $ac_status = 0; }; }
24052 gcc_cv_as_powerpc_mfcrf=yes
24054 echo "configure: failed program was" >&5
24057 rm -f conftest.o conftest.s
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24061 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24062 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24064 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24069 *-*-aix*) conftest_s=' .machine "pwr5"
24072 *) conftest_s=' .machine power5
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24078 $as_echo_n "checking assembler for popcntb support... " >&6; }
24079 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24080 $as_echo_n "(cached) " >&6
24082 gcc_cv_as_powerpc_popcntb=no
24083 if test $in_tree_gas = yes; then
24084 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24085 then gcc_cv_as_powerpc_popcntb=yes
24087 elif test x$gcc_cv_as != x; then
24088 echo "$conftest_s" > conftest.s
24089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24091 (eval $ac_try) 2>&5
24093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24094 test $ac_status = 0; }; }
24096 gcc_cv_as_powerpc_popcntb=yes
24098 echo "configure: failed program was" >&5
24101 rm -f conftest.o conftest.s
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24105 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24106 if test $gcc_cv_as_powerpc_popcntb = yes; then
24108 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24113 *-*-aix*) conftest_s=' .machine "pwr5x"
24116 *) conftest_s=' .machine power5
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24122 $as_echo_n "checking assembler for fp round support... " >&6; }
24123 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24124 $as_echo_n "(cached) " >&6
24126 gcc_cv_as_powerpc_fprnd=no
24127 if test $in_tree_gas = yes; then
24128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24129 then gcc_cv_as_powerpc_fprnd=yes
24131 elif test x$gcc_cv_as != x; then
24132 echo "$conftest_s" > conftest.s
24133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24140 gcc_cv_as_powerpc_fprnd=yes
24142 echo "configure: failed program was" >&5
24145 rm -f conftest.o conftest.s
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24149 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24150 if test $gcc_cv_as_powerpc_fprnd = yes; then
24152 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24157 *-*-aix*) conftest_s=' .machine "pwr6"
24160 *) conftest_s=' .machine power6
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24166 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24167 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24168 $as_echo_n "(cached) " >&6
24170 gcc_cv_as_powerpc_mfpgpr=no
24171 if test $in_tree_gas = yes; then
24172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24173 then gcc_cv_as_powerpc_mfpgpr=yes
24175 elif test x$gcc_cv_as != x; then
24176 echo "$conftest_s" > conftest.s
24177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24179 (eval $ac_try) 2>&5
24181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182 test $ac_status = 0; }; }
24184 gcc_cv_as_powerpc_mfpgpr=yes
24186 echo "configure: failed program was" >&5
24189 rm -f conftest.o conftest.s
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24193 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24194 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24196 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24201 *-*-aix*) conftest_s=' .csect .text[PR]
24203 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24207 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24208 *) conftest_s=' .text
24210 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24214 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24215 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24216 $as_echo_n "(cached) " >&6
24218 gcc_cv_as_powerpc_rel16=no
24219 if test $in_tree_gas = yes; then
24220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24221 then gcc_cv_as_powerpc_rel16=yes
24223 elif test x$gcc_cv_as != x; then
24224 echo "$conftest_s" > conftest.s
24225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24227 (eval $ac_try) 2>&5
24229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24230 test $ac_status = 0; }; }
24232 gcc_cv_as_powerpc_rel16=yes
24234 echo "configure: failed program was" >&5
24237 rm -f conftest.o conftest.s
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24241 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24242 if test $gcc_cv_as_powerpc_rel16 = yes; then
24244 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24249 *-*-aix*) conftest_s=' .machine "pwr6"
24252 *) conftest_s=' .machine power6
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24258 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24259 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24260 $as_echo_n "(cached) " >&6
24262 gcc_cv_as_powerpc_cmpb=no
24263 if test $in_tree_gas = yes; then
24264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24265 then gcc_cv_as_powerpc_cmpb=yes
24267 elif test x$gcc_cv_as != x; then
24268 echo "$conftest_s" > conftest.s
24269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24271 (eval $ac_try) 2>&5
24273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24274 test $ac_status = 0; }; }
24276 gcc_cv_as_powerpc_cmpb=yes
24278 echo "configure: failed program was" >&5
24281 rm -f conftest.o conftest.s
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24285 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24286 if test $gcc_cv_as_powerpc_cmpb = yes; then
24288 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24293 *-*-aix*) conftest_s=' .machine "pwr6"
24296 *) conftest_s=' .machine power6
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24302 $as_echo_n "checking assembler for decimal float support... " >&6; }
24303 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24304 $as_echo_n "(cached) " >&6
24306 gcc_cv_as_powerpc_dfp=no
24307 if test $in_tree_gas = yes; then
24308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24309 then gcc_cv_as_powerpc_dfp=yes
24311 elif test x$gcc_cv_as != x; then
24312 echo "$conftest_s" > conftest.s
24313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24315 (eval $ac_try) 2>&5
24317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24318 test $ac_status = 0; }; }
24320 gcc_cv_as_powerpc_dfp=yes
24322 echo "configure: failed program was" >&5
24325 rm -f conftest.o conftest.s
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24329 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24330 if test $gcc_cv_as_powerpc_dfp = yes; then
24332 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24337 *-*-aix*) conftest_s=' .machine "pwr7"
24340 *) conftest_s=' .machine power7
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24346 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24347 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24348 $as_echo_n "(cached) " >&6
24350 gcc_cv_as_powerpc_vsx=no
24351 if test $in_tree_gas = yes; then
24352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24353 then gcc_cv_as_powerpc_vsx=yes
24355 elif test x$gcc_cv_as != x; then
24356 echo "$conftest_s" > conftest.s
24357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24359 (eval $ac_try) 2>&5
24361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24362 test $ac_status = 0; }; }
24364 gcc_cv_as_powerpc_vsx=yes
24366 echo "configure: failed program was" >&5
24369 rm -f conftest.o conftest.s
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24373 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24374 if test $gcc_cv_as_powerpc_vsx = yes; then
24376 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24381 *-*-aix*) conftest_s=' .machine "pwr7"
24384 *) conftest_s=' .machine power7
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24390 $as_echo_n "checking assembler for popcntd support... " >&6; }
24391 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24392 $as_echo_n "(cached) " >&6
24394 gcc_cv_as_powerpc_popcntd=no
24395 if test $in_tree_gas = yes; then
24396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24397 then gcc_cv_as_powerpc_popcntd=yes
24399 elif test x$gcc_cv_as != x; then
24400 echo "$conftest_s" > conftest.s
24401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24403 (eval $ac_try) 2>&5
24405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24406 test $ac_status = 0; }; }
24408 gcc_cv_as_powerpc_popcntd=yes
24410 echo "configure: failed program was" >&5
24413 rm -f conftest.o conftest.s
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24417 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24418 if test $gcc_cv_as_powerpc_popcntd = yes; then
24420 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24425 *-*-aix*) conftest_s=' .csect .text[PR]
24427 *) conftest_s=' .text
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24432 $as_echo_n "checking assembler for lwsync support... " >&6; }
24433 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24436 gcc_cv_as_powerpc_lwsync=no
24437 if test $in_tree_gas = yes; then
24438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24439 then gcc_cv_as_powerpc_lwsync=yes
24441 elif test x$gcc_cv_as != x; then
24442 echo "$conftest_s" > conftest.s
24443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24445 (eval $ac_try) 2>&5
24447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448 test $ac_status = 0; }; }
24450 gcc_cv_as_powerpc_lwsync=yes
24452 echo "configure: failed program was" >&5
24455 rm -f conftest.o conftest.s
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24459 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24460 if test $gcc_cv_as_powerpc_lwsync = yes; then
24462 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24467 *-*-aix*) conftest_s=' .machine "476"
24470 *) conftest_s=' .machine "476"
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24476 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24477 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24478 $as_echo_n "(cached) " >&6
24480 gcc_cv_as_powerpc_dci=no
24481 if test $in_tree_gas = yes; then
24482 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24483 then gcc_cv_as_powerpc_dci=yes
24485 elif test x$gcc_cv_as != x; then
24486 echo "$conftest_s" > conftest.s
24487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24489 (eval $ac_try) 2>&5
24491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24492 test $ac_status = 0; }; }
24494 gcc_cv_as_powerpc_dci=yes
24496 echo "configure: failed program was" >&5
24499 rm -f conftest.o conftest.s
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24503 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24504 if test $gcc_cv_as_powerpc_dci = yes; then
24506 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24511 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24512 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24513 $as_echo_n "(cached) " >&6
24515 gcc_cv_as_powerpc_gnu_attribute=no
24516 if test $in_tree_gas = yes; then
24517 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24518 then gcc_cv_as_powerpc_gnu_attribute=yes
24520 elif test x$gcc_cv_as != x; then
24521 echo '.gnu_attribute 4,1' > conftest.s
24522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24524 (eval $ac_try) 2>&5
24526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24527 test $ac_status = 0; }; }
24529 gcc_cv_as_powerpc_gnu_attribute=yes
24531 echo "configure: failed program was" >&5
24534 rm -f conftest.o conftest.s
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24538 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24539 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24541 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24546 $as_echo_n "checking assembler for tls marker support... " >&6; }
24547 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24548 $as_echo_n "(cached) " >&6
24550 gcc_cv_as_powerpc_tls_markers=no
24551 if test $in_tree_gas = yes; then
24552 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24553 then gcc_cv_as_powerpc_tls_markers=yes
24555 elif test x$gcc_cv_as != x; then
24556 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24559 (eval $ac_try) 2>&5
24561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24562 test $ac_status = 0; }; }
24564 gcc_cv_as_powerpc_tls_markers=yes
24566 echo "configure: failed program was" >&5
24569 rm -f conftest.o conftest.s
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24573 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24574 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24576 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24583 $as_echo_n "checking assembler for .ref support... " >&6; }
24584 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24585 $as_echo_n "(cached) " >&6
24587 gcc_cv_as_aix_ref=no
24588 if test $in_tree_gas = yes; then
24589 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24592 elif test x$gcc_cv_as != x; then
24593 echo ' .csect stuff[rw]
24599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24606 gcc_cv_as_aix_ref=yes
24608 echo "configure: failed program was" >&5
24611 rm -f conftest.o conftest.s
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24615 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24616 if test $gcc_cv_as_aix_ref = yes; then
24618 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24627 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24628 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24629 $as_echo_n "(cached) " >&6
24631 gcc_cv_as_mips_explicit_relocs=no
24632 if test $in_tree_gas = yes; then
24633 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24634 then gcc_cv_as_mips_explicit_relocs=yes
24636 elif test x$gcc_cv_as != x; then
24637 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24640 (eval $ac_try) 2>&5
24642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24643 test $ac_status = 0; }; }
24645 gcc_cv_as_mips_explicit_relocs=yes
24647 echo "configure: failed program was" >&5
24650 rm -f conftest.o conftest.s
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24654 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24655 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24656 if test x$target_cpu_default = x
24657 then target_cpu_default=MASK_EXPLICIT_RELOCS
24658 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24662 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24663 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24664 $as_echo_n "(cached) " >&6
24666 gcc_cv_as_mips_no_shared=no
24667 if test $in_tree_gas = yes; then
24668 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24669 then gcc_cv_as_mips_no_shared=yes
24671 elif test x$gcc_cv_as != x; then
24672 echo 'nop' > conftest.s
24673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24675 (eval $ac_try) 2>&5
24677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24678 test $ac_status = 0; }; }
24680 gcc_cv_as_mips_no_shared=yes
24682 echo "configure: failed program was" >&5
24685 rm -f conftest.o conftest.s
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24689 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24690 if test $gcc_cv_as_mips_no_shared = yes; then
24692 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24697 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24698 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24699 $as_echo_n "(cached) " >&6
24701 gcc_cv_as_mips_gnu_attribute=no
24702 if test $in_tree_gas = yes; then
24703 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24704 then gcc_cv_as_mips_gnu_attribute=yes
24706 elif test x$gcc_cv_as != x; then
24707 echo '.gnu_attribute 4,1' > conftest.s
24708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24710 (eval $ac_try) 2>&5
24712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24713 test $ac_status = 0; }; }
24715 gcc_cv_as_mips_gnu_attribute=yes
24717 echo "configure: failed program was" >&5
24720 rm -f conftest.o conftest.s
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24724 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24725 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24727 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24732 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24733 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24734 $as_echo_n "(cached) " >&6
24736 gcc_cv_as_mips_dtprelword=no
24737 if test $in_tree_gas = yes; then
24738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24739 then gcc_cv_as_mips_dtprelword=yes
24741 elif test x$gcc_cv_as != x; then
24742 echo '.section .tdata,"awT",@progbits
24746 .dtprelword x+0x8000' > conftest.s
24747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24754 gcc_cv_as_mips_dtprelword=yes
24756 echo "configure: failed program was" >&5
24759 rm -f conftest.o conftest.s
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24763 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24764 if test $gcc_cv_as_mips_dtprelword = yes; then
24766 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24771 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24772 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24775 gcc_cv_as_mips_dspr1_mult=no
24776 if test x$gcc_cv_as != x; then
24777 echo ' .set mips32r2
24785 multu $ac3,$4,$5' > conftest.s
24786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24788 (eval $ac_try) 2>&5
24790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24791 test $ac_status = 0; }; }
24793 gcc_cv_as_mips_dspr1_mult=yes
24795 echo "configure: failed program was" >&5
24798 rm -f conftest.o conftest.s
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24802 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24803 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24805 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24810 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24811 gcc_cv_as_ld_jalr_reloc=no
24812 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24813 if test $in_tree_ld = yes ; then
24814 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 \
24815 && test $in_tree_ld_is_elf = yes; then
24816 gcc_cv_as_ld_jalr_reloc=yes
24818 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24819 echo ' .ent x' > conftest.s
24820 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24821 echo ' ld $25,%call16(y)($28)' >> conftest.s
24822 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24823 echo '1: jalr $25' >> conftest.s
24824 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24825 echo '1: jalr $25' >> conftest.s
24826 echo ' .end x' >> conftest.s
24827 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24828 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24829 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24830 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24831 gcc_cv_as_ld_jalr_reloc=yes
24837 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24838 if test x$target_cpu_default = x; then
24839 target_cpu_default=MASK_RELAX_PIC_CALLS
24841 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24845 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24848 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24849 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24850 $as_echo_n "(cached) " >&6
24852 gcc_cv_ld_mips_personality_relaxation=no
24853 if test $in_tree_ld = yes ; then
24854 if test "$gcc_cv_gld_major_version" -eq 2 \
24855 -a "$gcc_cv_gld_minor_version" -ge 21 \
24856 -o "$gcc_cv_gld_major_version" -gt 2; then
24857 gcc_cv_ld_mips_personality_relaxation=yes
24859 elif test x$gcc_cv_as != x \
24860 -a x$gcc_cv_ld != x \
24861 -a x$gcc_cv_readelf != x ; then
24862 cat > conftest.s <<EOF
24864 .cfi_personality 0x80,indirect_ptr
24871 .section .data,"aw",@progbits
24875 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24876 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24877 if $gcc_cv_readelf -d conftest 2>&1 \
24878 | grep TEXTREL > /dev/null 2>&1; then
24880 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24881 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24884 gcc_cv_ld_mips_personality_relaxation=yes
24888 rm -f conftest.s conftest.o conftest
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24891 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24892 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24894 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24900 # Mips and HP-UX need the GNU assembler.
24901 # Linux on IA64 might be able to use the Intel assembler.
24904 mips*-*-* | *-*-hpux* )
24905 if test x$gas_flag = xyes \
24906 || test x"$host" != x"$build" \
24907 || test ! -x "$gcc_cv_as" \
24908 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24911 echo "*** This configuration requires the GNU assembler" >&2
24917 # ??? Not all targets support dwarf2 debug_line, even within a version
24918 # of gas. Moreover, we need to emit a valid instruction to trigger any
24919 # info to the output file. So, as supported targets are added to gas 2.11,
24920 # add some instruction here to (also) show we expect this might work.
24921 # ??? Once 2.11 is released, probably need to add first known working
24922 # version to the per-target configury.
24923 case "$cpu_type" in
24924 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24925 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24935 if test x"$insn" != x; then
24937 .file 1 \"conftest.s\"
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24941 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24942 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24943 $as_echo_n "(cached) " >&6
24945 gcc_cv_as_dwarf2_debug_line=no
24946 if test $in_tree_gas = yes; then
24947 if test $in_tree_gas_is_elf = yes \
24948 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24949 then gcc_cv_as_dwarf2_debug_line=yes
24951 elif test x$gcc_cv_as != x; then
24952 echo "$conftest_s" > conftest.s
24953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24955 (eval $ac_try) 2>&5
24957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24958 test $ac_status = 0; }; }
24960 if test x$gcc_cv_objdump != x \
24961 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24962 | grep debug_line > /dev/null 2>&1; then
24963 gcc_cv_as_dwarf2_debug_line=yes
24966 echo "configure: failed program was" >&5
24969 rm -f conftest.o conftest.s
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24973 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24976 # The .debug_line file table must be in the exact order that
24977 # we specified the files, since these indices are also used
24978 # by DW_AT_decl_file. Approximate this test by testing if
24979 # the assembler bitches if the same index is assigned twice.
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24981 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24982 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24983 $as_echo_n "(cached) " >&6
24985 gcc_cv_as_dwarf2_file_buggy=no
24986 if test x$gcc_cv_as != x; then
24987 echo ' .file 1 "foo.s"
24988 .file 1 "bar.s"' > conftest.s
24989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }
24996 gcc_cv_as_dwarf2_file_buggy=yes
24998 echo "configure: failed program was" >&5
25001 rm -f conftest.o conftest.s
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25005 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25008 if test $gcc_cv_as_dwarf2_debug_line = yes \
25009 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25011 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25016 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25017 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25018 $as_echo_n "(cached) " >&6
25020 gcc_cv_as_gdwarf2_flag=no
25021 if test $in_tree_gas = yes; then
25022 if test $in_tree_gas_is_elf = yes \
25023 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25024 then gcc_cv_as_gdwarf2_flag=yes
25026 elif test x$gcc_cv_as != x; then
25027 echo "$insn" > conftest.s
25028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -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_gdwarf2_flag=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_gdwarf2_flag" >&5
25044 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25045 if test $gcc_cv_as_gdwarf2_flag = yes; then
25047 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25052 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25053 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25056 gcc_cv_as_gstabs_flag=no
25057 if test $in_tree_gas = yes; then
25058 if test $in_tree_gas_is_elf = yes \
25059 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25060 then gcc_cv_as_gstabs_flag=yes
25062 elif test x$gcc_cv_as != x; then
25063 echo "$insn" > conftest.s
25064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25066 (eval $ac_try) 2>&5
25068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25069 test $ac_status = 0; }; }
25071 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25072 # and warns about it, but still exits successfully. So check for
25074 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25081 else gcc_cv_as_gstabs_flag=yes
25084 echo "configure: failed program was" >&5
25087 rm -f conftest.o conftest.s
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25091 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25092 if test $gcc_cv_as_gstabs_flag = yes; then
25094 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25099 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25100 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25101 $as_echo_n "(cached) " >&6
25103 gcc_cv_as_debug_prefix_map_flag=no
25104 if test $in_tree_gas = yes; then
25105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25106 then gcc_cv_as_debug_prefix_map_flag=yes
25108 elif test x$gcc_cv_as != x; then
25109 echo "$insn" > conftest.s
25110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25112 (eval $ac_try) 2>&5
25114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25115 test $ac_status = 0; }; }
25117 gcc_cv_as_debug_prefix_map_flag=yes
25119 echo "configure: failed program was" >&5
25122 rm -f conftest.o conftest.s
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25126 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25127 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25129 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25135 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25136 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25137 $as_echo_n "(cached) " >&6
25139 gcc_cv_as_lcomm_with_alignment=no
25140 if test x$gcc_cv_as != x; then
25141 echo '.lcomm bar,4,16' > conftest.s
25142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25144 (eval $ac_try) 2>&5
25146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25147 test $ac_status = 0; }; }
25149 gcc_cv_as_lcomm_with_alignment=yes
25151 echo "configure: failed program was" >&5
25154 rm -f conftest.o conftest.s
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25158 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25159 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25161 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25165 # Check whether --enable-gnu-unique-object was given.
25166 if test "${enable_gnu_unique_object+set}" = set; then :
25167 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25169 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25170 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25174 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25175 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25176 $as_echo_n "(cached) " >&6
25178 gcc_cv_as_gnu_unique_object=no
25179 if test $in_tree_gas = yes; then
25180 if test $in_tree_gas_is_elf = yes \
25181 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25182 then gcc_cv_as_gnu_unique_object=yes
25184 elif test x$gcc_cv_as != x; then
25185 echo '.type foo, @gnu_unique_object' > conftest.s
25186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188 (eval $ac_try) 2>&5
25190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191 test $ac_status = 0; }; }
25193 gcc_cv_as_gnu_unique_object=yes
25195 echo "configure: failed program was" >&5
25198 rm -f conftest.o conftest.s
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25202 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25203 if test $gcc_cv_as_gnu_unique_object = yes; then
25204 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25205 if test x$host = x$build -a x$host = x$target &&
25206 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25207 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25208 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25209 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25210 if test "$glibcnum" -ge 2011 ; then
25211 enable_gnu_unique_object=yes
25217 if test x$enable_gnu_unique_object = xyes; then
25219 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25224 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25225 if test "${gcc_cv_as_line_zero+set}" = set; then :
25226 $as_echo_n "(cached) " >&6
25228 gcc_cv_as_line_zero=no
25229 if test $in_tree_gas = yes; then
25230 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25231 then gcc_cv_as_line_zero=yes
25233 elif test "x$gcc_cv_as" != x; then
25234 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25235 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25237 (eval $ac_try) 2>&5
25239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25240 test $ac_status = 0; }; } &&
25241 test "x`cat conftest.out`" = x
25243 gcc_cv_as_line_zero=yes
25245 echo "configure: failed program was" >&5
25247 echo "configure: error output was" >&5
25248 cat conftest.out >&5
25250 rm -f conftest.o conftest.s conftest.out
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25254 $as_echo "$gcc_cv_as_line_zero" >&6; }
25255 if test "x$gcc_cv_as_line_zero" = xyes; then
25257 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25262 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25263 gcc_cv_ld_eh_frame_hdr=no
25264 if test $in_tree_ld = yes ; then
25265 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 \
25266 && test $in_tree_ld_is_elf = yes; then
25267 gcc_cv_ld_eh_frame_hdr=yes
25269 elif test x$gcc_cv_ld != x; then
25270 # Check if linker supports --eh-frame-hdr option
25271 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25272 gcc_cv_ld_eh_frame_hdr=yes
25276 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25278 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25282 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25285 $as_echo_n "checking linker position independent executable support... " >&6; }
25287 if test $in_tree_ld = yes ; then
25288 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 \
25289 && test $in_tree_ld_is_elf = yes; then
25292 elif test x$gcc_cv_ld != x; then
25293 # Check if linker supports -pie option
25294 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25298 if test x"$gcc_cv_ld_pie" = xyes; then
25300 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25304 $as_echo "$gcc_cv_ld_pie" >&6; }
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25307 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25308 gcc_cv_ld_eh_gc_sections=no
25309 if test $in_tree_ld = yes ; then
25310 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 \
25311 && test $in_tree_ld_is_elf = yes; then
25312 gcc_cv_ld_eh_gc_sections=yes
25314 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25315 cat > conftest.s <<EOF
25318 .type _start, @function
25321 .size _start, .-_start
25322 .section .text.foo,"ax",@progbits
25323 .type foo, @function
25327 .section .gcc_except_table.foo,"a",@progbits
25330 .section .eh_frame,"a",@progbits
25333 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25334 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25335 | grep "gc-sections option ignored" > /dev/null; then
25336 gcc_cv_ld_eh_gc_sections=no
25337 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25338 | grep gcc_except_table > /dev/null; then
25339 gcc_cv_ld_eh_gc_sections=yes
25340 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25341 if test x$gcc_cv_as_comdat_group != xyes; then
25342 gcc_cv_ld_eh_gc_sections=no
25343 cat > conftest.s <<EOF
25346 .type _start, @function
25349 .size _start, .-_start
25350 .section .gnu.linkonce.t.foo,"ax",@progbits
25351 .type foo, @function
25355 .section .gcc_except_table.foo,"a",@progbits
25358 .section .eh_frame,"a",@progbits
25361 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25362 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25363 | grep "gc-sections option ignored" > /dev/null; then
25364 gcc_cv_ld_eh_gc_sections=no
25365 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25366 | grep gcc_except_table > /dev/null; then
25367 gcc_cv_ld_eh_gc_sections=yes
25373 rm -f conftest.s conftest.o conftest
25377 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25378 gcc_cv_ld_eh_gc_sections=no
25381 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25383 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25387 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25394 $as_echo_n "checking linker --as-needed support... " >&6; }
25395 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25396 $as_echo_n "(cached) " >&6
25398 gcc_cv_ld_as_needed=no
25399 if test $in_tree_ld = yes ; then
25400 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 \
25401 && test $in_tree_ld_is_elf = yes; then
25402 gcc_cv_ld_as_needed=yes
25404 elif test x$gcc_cv_ld != x; then
25405 # Check if linker supports --as-needed and --no-as-needed options
25406 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25407 gcc_cv_ld_as_needed=yes
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25413 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25414 if test x"$gcc_cv_ld_as_needed" = xyes; then
25416 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25420 case "$target:$tm_file" in
25421 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25423 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25424 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25425 $as_echo_n "(cached) " >&6
25427 gcc_cv_ld_no_dot_syms=no
25428 if test $in_tree_ld = yes ; then
25429 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
25430 gcc_cv_ld_no_dot_syms=yes
25432 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25433 cat > conftest1.s <<EOF
25437 cat > conftest2.s <<EOF
25438 .section ".opd","aw"
25441 .type foo,@function
25443 .quad .LEfoo,.TOC.@tocbase,0
25449 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25450 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25451 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25452 gcc_cv_ld_no_dot_syms=yes
25454 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25459 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25460 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25462 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25467 $as_echo_n "checking linker large toc support... " >&6; }
25468 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25469 $as_echo_n "(cached) " >&6
25471 gcc_cv_ld_large_toc=no
25472 if test $in_tree_ld = yes ; then
25473 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
25474 gcc_cv_ld_large_toc=yes
25476 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25477 cat > conftest.s <<EOF
25478 .section ".tbss","awT",@nobits
25484 addis 9,13,ie0@got@tprel@ha
25485 ld 9,ie0@got@tprel@l(9)
25487 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25488 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25489 gcc_cv_ld_large_toc=yes
25491 rm -f conftest conftest.o conftest.s
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25496 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25497 if test x"$gcc_cv_ld_large_toc" = xyes; then
25499 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25506 $as_echo_n "checking linker --build-id support... " >&6; }
25507 if test "${gcc_cv_ld_buildid+set}" = set; then :
25508 $as_echo_n "(cached) " >&6
25510 gcc_cv_ld_buildid=no
25511 if test $in_tree_ld = yes ; then
25512 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25513 "$gcc_cv_gld_minor_version" -ge 18 -o \
25514 "$gcc_cv_gld_major_version" -gt 2 \
25515 && test $in_tree_ld_is_elf = yes; then
25516 gcc_cv_ld_buildid=yes
25518 elif test x$gcc_cv_ld != x; then
25519 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25520 gcc_cv_ld_buildid=yes
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25525 $as_echo "$gcc_cv_ld_buildid" >&6; }
25526 if test x"$gcc_cv_ld_buildid" = xyes; then
25528 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25532 # Check whether --enable-linker-build-id was given.
25533 if test "${enable_linker_build_id+set}" = set; then :
25534 enableval=$enable_linker_build_id;
25536 enable_linker_build_id=no
25540 if test x"$enable_linker_build_id" = xyes; then
25541 if test x"$gcc_cv_ld_buildid" = xyes; then
25543 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25547 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25551 # In binutils 2.21, GNU ld gained support for new emulations fully
25552 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25554 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25555 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25556 $as_echo_n "(cached) " >&6
25558 gcc_cv_ld_sol2_emulation=no
25559 if test $in_tree_ld = yes ; then
25560 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25561 "$gcc_cv_gld_minor_version" -ge 21 -o \
25562 "$gcc_cv_gld_major_version" -gt 2 \
25563 && test $in_tree_ld_is_elf = yes; then
25564 gcc_cv_ld_sol2_emulation=yes
25566 elif test x$gcc_cv_ld != x; then
25567 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25568 grep _sol2 > /dev/null; then
25569 gcc_cv_ld_sol2_emulation=yes
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25574 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25575 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25577 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25582 $as_echo_n "checking linker --sysroot support... " >&6; }
25583 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25584 $as_echo_n "(cached) " >&6
25586 gcc_cv_ld_sysroot=no
25587 if test $in_tree_ld = yes ; then
25588 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
25589 gcc_cv_ld_sysroot=yes
25591 elif test x$gcc_cv_ld != x; then
25592 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25593 gcc_cv_ld_sysroot=yes
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25598 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25599 if test x"$gcc_cv_ld_sysroot" = xyes; then
25601 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25605 if test x$with_sysroot = x && test x$host = x$target \
25606 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25607 && test "$prefix" != "NONE"; then
25609 cat >>confdefs.h <<_ACEOF
25610 #define PREFIX_INCLUDE_DIR "$prefix/include"
25615 # Test for stack protector support in target C library.
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25617 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25618 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25619 $as_echo_n "(cached) " >&6
25621 gcc_cv_libc_provides_ssp=no
25623 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25624 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25625 if test "x$with_headers" != x; then
25626 glibc_header_dir=$with_headers
25627 elif test "x$with_sysroot" = x; then
25628 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25629 elif test "x$with_build_sysroot" != "x"; then
25630 glibc_header_dir="${with_build_sysroot}/usr/include"
25631 elif test "x$with_sysroot" = xyes; then
25632 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25634 glibc_header_dir="${with_sysroot}/usr/include"
25637 glibc_header_dir=/usr/include
25639 # glibc 2.4 and later provides __stack_chk_fail and
25640 # either __stack_chk_guard, or TLS access to stack guard canary.
25641 if test -f $glibc_header_dir/features.h \
25642 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25643 $glibc_header_dir/features.h > /dev/null; then
25644 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25645 $glibc_header_dir/features.h > /dev/null; then
25646 gcc_cv_libc_provides_ssp=yes
25647 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25648 $glibc_header_dir/features.h > /dev/null \
25649 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25650 $glibc_header_dir/features.h > /dev/null; then
25651 gcc_cv_libc_provides_ssp=yes
25652 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25653 $glibc_header_dir/features.h > /dev/null && \
25654 test -f $glibc_header_dir/bits/uClibc_config.h && \
25655 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25656 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25657 gcc_cv_libc_provides_ssp=yes
25662 # Avoid complicated tests (see
25663 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25664 # simply assert that glibc does provide this, which is true for all
25665 # realistically usable GNU/Hurd configurations.
25666 gcc_cv_libc_provides_ssp=yes;;
25667 *-*-darwin* | *-*-freebsd*)
25668 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25669 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25670 gcc_cv_libc_provides_ssp=yes
25672 echo "no __stack_chk_fail on this target"
25676 *) gcc_cv_libc_provides_ssp=no ;;
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25680 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25682 if test x$gcc_cv_libc_provides_ssp = xyes; then
25684 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25688 # Check if TFmode long double should be used by default or not.
25689 # Some glibc targets used DFmode long double, but with glibc 2.4
25690 # and later they can use TFmode.
25692 powerpc*-*-linux* | \
25693 powerpc*-*-gnu* | \
25694 sparc*-*-linux* | \
25698 # Check whether --with-long-double-128 was given.
25699 if test "${with_long_double_128+set}" = set; then :
25700 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25702 gcc_cv_target_ldbl128=no
25703 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25704 if test "x$with_sysroot" = x; then
25705 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25706 elif test "x$with_build_sysroot" != "x"; then
25707 glibc_header_dir="${with_build_sysroot}/usr/include"
25708 elif test "x$with_sysroot" = xyes; then
25709 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25711 glibc_header_dir="${with_sysroot}/usr/include"
25714 glibc_header_dir=/usr/include
25716 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25717 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25718 && gcc_cv_target_ldbl128=yes
25724 if test x$gcc_cv_target_ldbl128 = xyes; then
25726 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25730 # Find out what GC implementation we want, or may, use.
25732 # Check whether --with-gc was given.
25733 if test "${with_gc+set}" = set; then :
25734 withval=$with_gc; case "$withval" in
25741 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25745 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25753 echo "Using $GGC for garbage collection."
25755 # Libraries to use on the host. This will normally be set by the top
25756 # level Makefile. Here we simply capture the value for our Makefile.
25757 if test -z "${HOST_LIBS+set}"; then
25762 # Use the system's zlib library.
25764 zlibinc="-I\$(srcdir)/../zlib"
25766 # Check whether --with-system-zlib was given.
25767 if test "${with_system_zlib+set}" = set; then :
25768 withval=$with_system_zlib; zlibdir=
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25778 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25779 # Check whether --enable-maintainer-mode was given.
25780 if test "${enable_maintainer_mode+set}" = set; then :
25781 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25788 $as_echo "$maintainer_mode" >&6; }
25790 if test "$maintainer_mode" = "yes"; then
25800 # Make empty files to contain the specs and options for each language.
25801 # Then add #include lines to for a compiler that has specs and/or options.
25807 # These (without "all_") are set in each config-lang.in.
25808 # `language' must be a single word so is spelled singularly.
25811 all_outputs='Makefile'
25812 # List of language makefile fragments.
25813 all_lang_makefrags=
25814 # Additional files for gengtype
25815 all_gtfiles="$target_gtfiles"
25817 # These are the languages that are set in --enable-languages,
25818 # and are available in the GCC tree.
25819 all_selected_languages=
25821 # Add the language fragments.
25822 # Languages are added via two mechanisms. Some information must be
25823 # recorded in makefile variables, these are defined in config-lang.in.
25824 # We accumulate them and plug them into the main Makefile.
25825 # The other mechanism is a set of hooks for each of the main targets
25826 # like `clean', `install', etc.
25828 language_hooks="Make-hooks"
25830 for lang in ${srcdir}/*/config-lang.in
25832 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25834 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25835 if test "x$lang_alias" = x
25837 echo "$lang doesn't set \$language." 1>&2
25840 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25841 subdirs="$subdirs $subdir"
25843 # $gcc_subdir is where the gcc integration files are to be found
25844 # for a language, both for internal compiler purposes (compiler
25845 # sources implementing front-end to GCC tree converters), and for
25846 # build infrastructure purposes (Make-lang.in, etc.)
25848 # This will be <subdir> (relative to $srcdir) if a line like
25849 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25850 # is found in <langdir>/config-lang.in, and will remain <langdir>
25853 # Except for the language alias (fetched above), the regular
25854 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25855 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25856 # only this and the language alias.
25858 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25859 if [ "$gcc_subdir" = "" ]; then
25860 gcc_subdir="$subdir"
25863 case ",$enable_languages," in
25865 all_selected_languages="$all_selected_languages $lang_alias"
25866 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25867 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25878 . ${srcdir}/$gcc_subdir/config-lang.in
25879 if test "x$language" = x
25881 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25886 case ",$enable_languages," in
25887 *,$lang_alias,*) ;;
25889 for i in $subdir_requires; do
25890 test -f "${srcdir}/$i/config-lang.in" && continue
25898 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25899 if test -f $srcdir/$gcc_subdir/lang.opt; then
25900 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25901 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
25903 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25904 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25906 all_languages="$all_languages $language"
25907 all_compilers="$all_compilers $compilers"
25908 all_outputs="$all_outputs $outputs"
25909 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25910 case ",$enable_languages," in
25913 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25922 # Pick up gtfiles for c
25924 . ${srcdir}/c-config-lang.in
25925 all_gtfiles="$all_gtfiles [c] $gtfiles"
25928 for language in $all_selected_languages
25930 check_languages="$check_languages check-$language"
25933 # We link each language in with a set of hooks, reached indirectly via
25934 # lang.${target}. Only do so for selected languages.
25938 target_list="all.cross start.encap rest.encap tags \
25939 install-common install-man install-info install-pdf install-html dvi \
25940 pdf html uninstall info man srcextra srcman srcinfo \
25941 mostlyclean clean distclean maintainer-clean install-plugin"
25943 for t in $target_list
25946 for lang in $all_selected_languages
25950 echo "lang.$t: $x" >> Make-hooks
25954 # Option include files
25957 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
25958 option_includes="option-includes.mk"
25967 echo "dir ." > .gdbinit
25968 echo "dir ${srcdir}" >> .gdbinit
25969 if test x$gdb_needs_out_file_path = xyes
25971 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25973 if test "x$subdirs" != x; then
25976 echo "dir ${srcdir}/$s" >> .gdbinit
25979 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25981 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25985 # Find a directory in which to install a shared libgcc.
25987 # Check whether --enable-version-specific-runtime-libs was given.
25988 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25989 enableval=$enable_version_specific_runtime_libs;
25994 # Check whether --with-slibdir was given.
25995 if test "${with_slibdir+set}" = set; then :
25996 withval=$with_slibdir; slibdir="$with_slibdir"
25998 if test "${enable_version_specific_runtime_libs+set}" = set; then
25999 slibdir='$(libsubdir)'
26000 elif test "$host" != "$target"; then
26001 slibdir='$(build_tooldir)/lib'
26003 slibdir='$(libdir)'
26009 # Substitute configuration variables
26073 if test x${build} = x${host} ; then
26074 if test x${host} = x${target} ; then
26075 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26077 echo "Links are now set up to build a cross-compiler" 1>&2
26078 echo " from ${host} to ${target}." 1>&2
26081 if test x${host} = x${target} ; then
26082 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26083 echo " for ${target}." 1>&2
26085 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26086 echo " from ${host} to ${target}." 1>&2
26098 if test "x${CLOOGLIBS}" != "x" ; then
26100 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26104 # Check for plugin support
26105 # Check whether --enable-plugin was given.
26106 if test "${enable_plugin+set}" = set; then :
26107 enableval=$enable_plugin; enable_plugin=$enableval
26109 enable_plugin=yes; default_plugin=yes
26117 if test x$build = x$host; then
26118 export_sym_check="nm${exeext} -g"
26119 elif test x$host = x$target; then
26120 export_sym_check="$gcc_cv_nm -g"
26126 if test x$build = x$host; then
26127 export_sym_check="objdump${exeext} -T"
26128 elif test x$host = x$target; then
26129 export_sym_check="$gcc_cv_objdump -T"
26136 if test x"$enable_plugin" = x"yes"; then
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26139 $as_echo_n "checking for exported symbols... " >&6; }
26140 if test "x$export_sym_check" != x; then
26141 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26142 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26143 if $export_sym_check conftest | grep foobar > /dev/null; then
26144 : # No need to use a flag
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26146 $as_echo "yes" >&6; }
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26149 $as_echo "yes" >&6; }
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26151 $as_echo_n "checking for -rdynamic... " >&6; }
26152 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26153 if $export_sym_check conftest | grep foobar > /dev/null; then
26154 plugin_rdynamic=yes
26155 pluginlibs="-rdynamic"
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26161 $as_echo "$plugin_rdynamic" >&6; }
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26165 $as_echo "unable to check" >&6; }
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26171 $as_echo_n "checking for library containing dlopen... " >&6; }
26172 if test "${ac_cv_search_dlopen+set}" = set; then :
26173 $as_echo_n "(cached) " >&6
26175 ac_func_search_save_LIBS=$LIBS
26176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26177 /* end confdefs.h. */
26179 /* Override any GCC internal prototype to avoid an error.
26180 Use char because int might match the return type of a GCC
26181 builtin and then its argument prototype would still apply. */
26194 for ac_lib in '' dl; do
26195 if test -z "$ac_lib"; then
26196 ac_res="none required"
26199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26201 if ac_fn_c_try_link "$LINENO"; then :
26202 ac_cv_search_dlopen=$ac_res
26204 rm -f core conftest.err conftest.$ac_objext \
26206 if test "${ac_cv_search_dlopen+set}" = set; then :
26210 if test "${ac_cv_search_dlopen+set}" = set; then :
26213 ac_cv_search_dlopen=no
26215 rm conftest.$ac_ext
26216 LIBS=$ac_func_search_save_LIBS
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26219 $as_echo "$ac_cv_search_dlopen" >&6; }
26220 ac_res=$ac_cv_search_dlopen
26221 if test "$ac_res" != no; then :
26222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26226 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26227 pluginlibs="$pluginlibs -ldl"
26231 # Check that we can build shared objects with -fPIC -shared
26232 saved_LDFLAGS="$LDFLAGS"
26233 saved_CFLAGS="$CFLAGS"
26236 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26237 CFLAGS="$CFLAGS -fPIC"
26238 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26241 CFLAGS="$CFLAGS -fPIC"
26242 LDFLAGS="$LDFLAGS -fPIC -shared"
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26246 $as_echo_n "checking for -fPIC -shared... " >&6; }
26247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248 /* end confdefs.h. */
26258 if ac_fn_c_try_link "$LINENO"; then :
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26260 $as_echo "yes" >&6; }; have_pic_shared=yes
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26263 $as_echo "no" >&6; }; have_pic_shared=no
26265 rm -f core conftest.err conftest.$ac_objext \
26266 conftest$ac_exeext conftest.$ac_ext
26267 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26271 LDFLAGS="$saved_LDFLAGS"
26272 CFLAGS="$saved_CFLAGS"
26274 # If plugin support had been requested but not available, fail.
26275 if test x"$enable_plugin" = x"no" ; then
26276 if test x"$default_plugin" != x"yes"; then
26278 Building GCC with plugin support requires a host that supports
26279 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26286 if test x"$enable_plugin" = x"yes"; then
26288 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26292 # Configure the subdirectories
26293 # AC_CONFIG_SUBDIRS($subdirs)
26295 # Create the Makefile
26296 # and configure language subdirectories
26297 ac_config_files="$ac_config_files $all_outputs"
26300 ac_config_commands="$ac_config_commands default"
26302 cat >confcache <<\_ACEOF
26303 # This file is a shell script that caches the results of configure
26304 # tests run on this system so they can be shared between configure
26305 # scripts and configure runs, see configure's option --config-cache.
26306 # It is not useful on other systems. If it contains results you don't
26307 # want to keep, you may remove or edit it.
26309 # config.status only pays attention to the cache file if you give it
26310 # the --recheck option to rerun configure.
26312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26314 # following values.
26318 # The following way of writing the cache mishandles newlines in values,
26319 # but we know of no workaround that is simple, portable, and efficient.
26320 # So, we kill variables containing newlines.
26321 # Ultrix sh set writes to stderr and can't be redirected directly,
26322 # and sets the high bit in the cache file unless we assign to the vars.
26324 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26325 eval ac_val=\$$ac_var
26329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26333 _ | IFS | as_nl) ;; #(
26334 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26335 *) { eval $ac_var=; unset $ac_var;} ;;
26341 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26342 *${as_nl}ac_space=\ *)
26343 # `set' does not quote correctly, so add quotes: double-quote
26344 # substitution turns \\\\ into \\, and sed turns \\ into \.
26347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26350 # `set' quotes correctly as required by POSIX, so do not add quotes.
26351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26362 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26364 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26365 if test -w "$cache_file"; then
26366 test "x$cache_file" != "x/dev/null" &&
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26368 $as_echo "$as_me: updating cache $cache_file" >&6;}
26369 cat confcache >$cache_file
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26372 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26378 # Let make expand exec_prefix.
26379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26381 DEFS=-DHAVE_CONFIG_H
26385 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26386 # 1. Remove the extension, and $U if already installed.
26387 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26388 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26389 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26390 # will be set to the directory where LIBOBJS objects are built.
26391 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26392 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26394 LIBOBJS=$ac_libobjs
26396 LTLIBOBJS=$ac_ltlibobjs
26401 : ${CONFIG_STATUS=./config.status}
26403 ac_clean_files_save=$ac_clean_files
26404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26410 # Generated by $as_me.
26411 # Run this file to recreate the current configuration.
26412 # Compiler output produced by configure, useful for debugging
26413 # configure, is in config.log if it exists.
26416 ac_cs_recheck=false
26419 SHELL=\${CONFIG_SHELL-$SHELL}
26422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26423 ## -------------------- ##
26424 ## M4sh Initialization. ##
26425 ## -------------------- ##
26427 # Be more Bourne compatible
26428 DUALCASE=1; export DUALCASE # for MKS sh
26429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26432 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26433 # is contrary to our usage. Disable this feature.
26434 alias -g '${1+"$@"}'='"$@"'
26435 setopt NO_GLOB_SUBST
26437 case `(set -o) 2>/dev/null` in #(
26449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26453 # Prefer a ksh shell builtin over an external printf program on Solaris,
26454 # but without wasting forks for bash or zsh.
26455 if test -z "$BASH_VERSION$ZSH_VERSION" \
26456 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26457 as_echo='print -r --'
26458 as_echo_n='print -rn --'
26459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26460 as_echo='printf %s\n'
26461 as_echo_n='printf %s'
26463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26465 as_echo_n='/usr/ucb/echo -n'
26467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26468 as_echo_n_body='eval
26472 expr "X$arg" : "X\\(.*\\)$as_nl";
26473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26477 export as_echo_n_body
26478 as_echo_n='sh -c $as_echo_n_body as_echo'
26480 export as_echo_body
26481 as_echo='sh -c $as_echo_body as_echo'
26484 # The user is always right.
26485 if test "${PATH_SEPARATOR+set}" != set; then
26487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26495 # We need space, tab and new line, in precisely that order. Quoting is
26496 # there to prevent editors from complaining about space-tab.
26497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26498 # splitting by setting IFS to empty value.)
26501 # Find who we are. Look in the path if we contain no directory separator.
26503 *[\\/]* ) as_myself=$0 ;;
26504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26505 for as_dir in $PATH
26508 test -z "$as_dir" && as_dir=.
26509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26515 # We did not find ourselves, most probably we were run as `sh COMMAND'
26516 # in which case we are not to be found in the path.
26517 if test "x$as_myself" = x; then
26520 if test ! -f "$as_myself"; then
26521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26525 # Unset variables that we do not need and which cause bugs (e.g. in
26526 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26527 # suppresses any "Segmentation fault" message there. '((' could
26528 # trigger a bug in pdksh 5.2.14.
26529 for as_var in BASH_ENV ENV MAIL MAILPATH
26530 do eval test x\${$as_var+set} = xset \
26531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26547 # as_fn_error ERROR [LINENO LOG_FD]
26548 # ---------------------------------
26549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26551 # script with status $?, using 1 if that was 0.
26554 as_status=$?; test $as_status -eq 0 && as_status=1
26556 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26559 $as_echo "$as_me: error: $1" >&2
26560 as_fn_exit $as_status
26564 # as_fn_set_status STATUS
26565 # -----------------------
26566 # Set $? to STATUS, without forking.
26567 as_fn_set_status ()
26570 } # as_fn_set_status
26572 # as_fn_exit STATUS
26573 # -----------------
26574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26578 as_fn_set_status $1
26584 # Portably unset VAR.
26587 { eval $1=; unset $1;}
26589 as_unset=as_fn_unset
26590 # as_fn_append VAR VALUE
26591 # ----------------------
26592 # Append the text in VALUE to the end of the definition contained in VAR. Take
26593 # advantage of any shell optimizations that allow amortized linear growth over
26594 # repeated appends, instead of the typical quadratic growth present in naive
26596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26597 eval 'as_fn_append ()
26608 # as_fn_arith ARG...
26609 # ------------------
26610 # Perform arithmetic evaluation on the ARGs, and store the result in the
26611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26612 # must be portable across $(()) and expr.
26613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26614 eval 'as_fn_arith ()
26621 as_val=`expr "$@" || test $? -eq 1`
26626 if expr a : '\(a\)' >/dev/null 2>&1 &&
26627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26634 as_basename=basename
26639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26645 as_me=`$as_basename -- "$0" ||
26646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26647 X"$0" : 'X\(//\)$' \| \
26648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26650 sed '/^.*\/\([^/][^/]*\)\/*$/{
26664 # Avoid depending upon Character Ranges.
26665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26668 as_cr_digits='0123456789'
26669 as_cr_alnum=$as_cr_Letters$as_cr_digits
26671 ECHO_C= ECHO_N= ECHO_T=
26672 case `echo -n x` in #(((((
26674 case `echo 'xy\c'` in
26675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26677 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26684 rm -f conf$$ conf$$.exe conf$$.file
26685 if test -d conf$$.dir; then
26686 rm -f conf$$.dir/conf$$.file
26689 mkdir conf$$.dir 2>/dev/null
26691 if (echo >conf$$.file) 2>/dev/null; then
26692 if ln -s conf$$.file conf$$ 2>/dev/null; then
26694 # ... but there are two gotchas:
26695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26697 # In both cases, we have to default to `cp -p'.
26698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26700 elif ln conf$$.file conf$$ 2>/dev/null; then
26708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26709 rmdir conf$$.dir 2>/dev/null
26714 # Create "$as_dir" as a directory, including parents if necessary.
26719 -*) as_dir=./$as_dir;;
26721 test -d "$as_dir" || eval $as_mkdir_p || {
26725 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26726 *) as_qdir=$as_dir;;
26728 as_dirs="'$as_qdir' $as_dirs"
26729 as_dir=`$as_dirname -- "$as_dir" ||
26730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26731 X"$as_dir" : 'X\(//\)[^/]' \| \
26732 X"$as_dir" : 'X\(//\)$' \| \
26733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26734 $as_echo X"$as_dir" |
26735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26739 /^X\(\/\/\)[^/].*/{
26752 test -d "$as_dir" && break
26754 test -z "$as_dirs" || eval "mkdir $as_dirs"
26755 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26759 if mkdir -p . 2>/dev/null; then
26760 as_mkdir_p='mkdir -p "$as_dir"'
26762 test -d ./-p && rmdir ./-p
26766 if test -x / >/dev/null 2>&1; then
26767 as_test_x='test -x'
26769 if ls -dL / >/dev/null 2>&1; then
26776 if test -d "$1"; then
26782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26783 ???[sx]*):;;*)false;;esac;fi
26787 as_executable_p=$as_test_x
26789 # Sed expression to map a string onto a valid CPP name.
26790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26792 # Sed expression to map a string onto a valid variable name.
26793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26797 ## ----------------------------------- ##
26798 ## Main body of $CONFIG_STATUS script. ##
26799 ## ----------------------------------- ##
26801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26804 # Save the log message, to keep $0 and so on meaningful, and to
26805 # report actual input values of CONFIG_FILES etc. instead of their
26806 # values after options handling.
26808 This file was extended by $as_me, which was
26809 generated by GNU Autoconf 2.64. Invocation command line was
26811 CONFIG_FILES = $CONFIG_FILES
26812 CONFIG_HEADERS = $CONFIG_HEADERS
26813 CONFIG_LINKS = $CONFIG_LINKS
26814 CONFIG_COMMANDS = $CONFIG_COMMANDS
26817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26822 case $ac_config_files in *"
26823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26826 case $ac_config_headers in *"
26827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26832 # Files that config.status was made for.
26833 config_files="$ac_config_files"
26834 config_headers="$ac_config_headers"
26835 config_commands="$ac_config_commands"
26839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26841 \`$as_me' instantiates files and other configuration actions
26842 from templates according to the current configuration. Unless the files
26843 and actions are specified as TAGs, all are instantiated by default.
26845 Usage: $0 [OPTION]... [TAG]...
26847 -h, --help print this help, then exit
26848 -V, --version print version number and configuration settings, then exit
26849 -q, --quiet, --silent
26850 do not print progress messages
26851 -d, --debug don't remove temporary files
26852 --recheck update $as_me by reconfiguring in the same conditions
26853 --file=FILE[:TEMPLATE]
26854 instantiate the configuration file FILE
26855 --header=FILE[:TEMPLATE]
26856 instantiate the configuration header FILE
26858 Configuration files:
26861 Configuration headers:
26864 Configuration commands:
26867 Report bugs to the package provider."
26870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26873 configured by $0, generated by GNU Autoconf 2.64,
26874 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26876 Copyright (C) 2009 Free Software Foundation, Inc.
26877 This config.status script is free software; the Free Software Foundation
26878 gives unlimited permission to copy, distribute and modify it."
26883 test -n "\$AWK" || AWK=awk
26886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26887 # The default lists apply if the user does not specify any file.
26893 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26894 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26905 # Handling of the options.
26906 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26908 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26909 $as_echo "$ac_cs_version"; exit ;;
26910 --debug | --debu | --deb | --de | --d | -d )
26912 --file | --fil | --fi | --f )
26915 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26917 as_fn_append CONFIG_FILES " '$ac_optarg'"
26918 ac_need_defaults=false;;
26919 --header | --heade | --head | --hea )
26922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26924 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26925 ac_need_defaults=false;;
26927 # Conflict between --help and --header
26928 as_fn_error "ambiguous option: \`$1'
26929 Try \`$0 --help' for more information.";;
26930 --help | --hel | -h )
26931 $as_echo "$ac_cs_usage"; exit ;;
26932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26936 # This is an error.
26937 -*) as_fn_error "unrecognized option: \`$1'
26938 Try \`$0 --help' for more information." ;;
26940 *) as_fn_append ac_config_targets " $1"
26941 ac_need_defaults=false ;;
26947 ac_configure_extra_args=
26949 if $ac_cs_silent; then
26951 ac_configure_extra_args="$ac_configure_extra_args --silent"
26955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26956 if \$ac_cs_recheck; then
26957 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26959 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26960 CONFIG_SHELL='$SHELL'
26961 export CONFIG_SHELL
26966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26971 ## Running $as_me. ##
26977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26987 # Handling of arguments.
26988 for ac_config_target in $ac_config_targets
26990 case $ac_config_target in
26991 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26992 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26993 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26994 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26995 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26996 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26998 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27003 # If the user did not use the arguments to specify the items to instantiate,
27004 # then the envvar interface is used. Set only those that are not.
27005 # We use the long form for the default assignment because of an extremely
27006 # bizarre bug on SunOS 4.1.3.
27007 if $ac_need_defaults; then
27008 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27009 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27010 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27013 # Have a temporary directory for convenience. Make it in the build tree
27014 # simply because there is no reason against having it here, and in addition,
27015 # creating and moving files from /tmp can sometimes cause problems.
27016 # Hook for its removal unless debugging.
27017 # Note that there is a small window in which the directory will not be cleaned:
27018 # after its creation but before its name has been assigned to `$tmp'.
27022 trap 'exit_status=$?
27023 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27025 trap 'as_fn_exit 1' 1 2 13 15
27027 # Create a (secure) tmp directory for tmp files.
27030 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27031 test -n "$tmp" && test -d "$tmp"
27034 tmp=./conf$$-$RANDOM
27035 (umask 077 && mkdir "$tmp")
27036 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27038 # Set up the scripts for CONFIG_FILES section.
27039 # No need to generate them if there are no CONFIG_FILES.
27040 # This happens for instance with `./config.status config.h'.
27041 if test -n "$CONFIG_FILES"; then
27043 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27044 ac_cs_awk_getline=:
27045 ac_cs_awk_pipe_init=
27046 ac_cs_awk_read_file='
27047 while ((getline aline < (F[key])) > 0)
27050 ac_cs_awk_pipe_fini=
27052 ac_cs_awk_getline=false
27053 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27054 ac_cs_awk_read_file='
27056 print "cat " F[key] " &&"
27057 '$ac_cs_awk_pipe_init
27058 # The final `:' finishes the AND list.
27059 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27061 ac_cr=`echo X | tr X '\015'`
27062 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27063 # But we know of no other shell where ac_cr would be empty at this
27064 # point, so we can use a bashism as a fallback.
27065 if test "x$ac_cr" = x; then
27066 eval ac_cr=\$\'\\r\'
27068 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27069 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27072 ac_cs_awk_cr=$ac_cr
27075 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27078 # Create commands to substitute file output variables.
27080 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27081 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27082 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27085 } >conf$$files.sh &&
27086 . ./conf$$files.sh ||
27087 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27088 rm -f conf$$files.sh
27091 echo "cat >conf$$subs.awk <<_ACEOF" &&
27092 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27094 } >conf$$subs.sh ||
27095 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27096 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27098 for ac_last_try in false false false false false :; do
27099 . ./conf$$subs.sh ||
27100 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27102 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27103 if test $ac_delim_n = $ac_delim_num; then
27105 elif $ac_last_try; then
27106 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27108 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27111 rm -f conf$$subs.sh
27113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27114 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27118 s/^/S["/; s/!.*/"]=/
27128 s/\(.\{148\}\).*/\1/
27130 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27142 s/\(.\{148\}\).*/\1/
27144 s/["\\]/\\&/g; s/^/"/; s/$/"/
27148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27153 ' <conf$$subs.awk | sed '
27158 ' >>$CONFIG_STATUS || ac_write_fail=1
27159 rm -f conf$$subs.awk
27160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27162 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27163 for (key in S) S_is_set[key] = 1
27165 \$ac_cs_awk_pipe_init
27169 nfields = split(line, field, "@")
27171 len = length(field[1])
27172 for (i = 2; i < nfields; i++) {
27174 keylen = length(key)
27175 if (S_is_set[key]) {
27177 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27178 len += length(value) + length(field[++i])
27183 if (nfields == 3 && !substed) {
27185 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27186 \$ac_cs_awk_read_file
27192 \$ac_cs_awk_pipe_fini
27195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27196 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27197 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27200 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27201 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27206 # trailing colons and then remove the whole line if VPATH becomes empty
27207 # (actually we leave an empty line to preserve line numbers).
27208 if test "x$srcdir" = x.; then
27209 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27210 s/:*\$(srcdir):*/:/
27211 s/:*\${srcdir}:*/:/
27213 s/^\([^=]*=[ ]*\):*/\1/
27219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27220 fi # test -n "$CONFIG_FILES"
27222 # Set up the scripts for CONFIG_HEADERS section.
27223 # No need to generate them if there are no CONFIG_HEADERS.
27224 # This happens for instance with `./config.status Makefile'.
27225 if test -n "$CONFIG_HEADERS"; then
27226 cat >"$tmp/defines.awk" <<\_ACAWK ||
27230 # Transform confdefs.h into an awk script `defines.awk', embedded as
27231 # here-document in config.status, that substitutes the proper values into
27232 # config.h.in to produce config.h.
27234 # Create a delimiter string that does not exist in confdefs.h, to ease
27235 # handling of long lines.
27237 for ac_last_try in false false :; do
27238 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27239 if test -z "$ac_t"; then
27241 elif $ac_last_try; then
27242 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27248 # For the awk script, D is an array of macro values keyed by name,
27249 # likewise P contains macro parameters if any. Preserve backslash
27250 # newline sequences.
27252 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27254 s/.\{148\}/&'"$ac_delim"'/g
27257 s/^[ ]*#[ ]*define[ ][ ]*/ /
27264 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27266 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27270 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27271 D["\1"]=" \3\\\\\\n"\\/p
27273 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27278 s/.\{148\}/&'"$ac_delim"'/g
27283 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27286 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27288 ' <confdefs.h | sed '
27289 s/'"$ac_delim"'/"\\\
27290 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27293 for (key in D) D_is_set[key] = 1
27296 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27298 split(line, arg, " ")
27299 if (arg[1] == "#") {
27303 defundef = substr(arg[1], 2)
27306 split(mac1, mac2, "(") #)
27308 prefix = substr(line, 1, index(line, defundef) - 1)
27309 if (D_is_set[macro]) {
27310 # Preserve the white space surrounding the "#".
27311 print prefix "define", macro P[macro] D[macro]
27314 # Replace #undef with comments. This is necessary, for example,
27315 # in the case of _POSIX_SOURCE, which is predefined and required
27316 # on some systems where configure will not decide to define it.
27317 if (defundef == "undef") {
27318 print "/*", prefix defundef, macro, "*/"
27326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27327 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27328 fi # test -n "$CONFIG_HEADERS"
27331 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27336 :[FHLC]) ac_mode=$ac_tag; continue;;
27338 case $ac_mode$ac_tag in
27340 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27341 :[FH]-) ac_tag=-:-;;
27342 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27359 -) ac_f="$tmp/stdin";;
27360 *) # Look for the file first in the build tree, then in the source tree
27361 # (if the path is not absolute). The absolute path cannot be DOS-style,
27362 # because $ac_f cannot contain `:'.
27366 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27368 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27370 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27371 as_fn_append ac_file_inputs " '$ac_f'"
27374 # Let's still pretend it is `configure' which instantiates (i.e., don't
27375 # use $as_me), people would be surprised to read:
27376 # /* config.h. Generated by config.status. */
27377 configure_input='Generated from '`
27378 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27380 if test x"$ac_file" != x-; then
27381 configure_input="$ac_file. $configure_input"
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27383 $as_echo "$as_me: creating $ac_file" >&6;}
27385 # Neutralize special characters interpreted by sed in replacement strings.
27386 case $configure_input in #(
27387 *\&* | *\|* | *\\* )
27388 ac_sed_conf_input=`$as_echo "$configure_input" |
27389 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27390 *) ac_sed_conf_input=$configure_input;;
27394 *:-:* | *:-) cat >"$tmp/stdin" \
27395 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27400 ac_dir=`$as_dirname -- "$ac_file" ||
27401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27402 X"$ac_file" : 'X\(//\)[^/]' \| \
27403 X"$ac_file" : 'X\(//\)$' \| \
27404 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27405 $as_echo X"$ac_file" |
27406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27410 /^X\(\/\/\)[^/].*/{
27423 as_dir="$ac_dir"; as_fn_mkdir_p
27427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27430 # A ".." for each directory in $ac_dir_suffix.
27431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27432 case $ac_top_builddir_sub in
27433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27437 ac_abs_top_builddir=$ac_pwd
27438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27439 # for backward compatibility:
27440 ac_top_builddir=$ac_top_build_prefix
27443 .) # We are building in place.
27445 ac_top_srcdir=$ac_top_builddir_sub
27446 ac_abs_top_srcdir=$ac_pwd ;;
27447 [\\/]* | ?:[\\/]* ) # Absolute name.
27448 ac_srcdir=$srcdir$ac_dir_suffix;
27449 ac_top_srcdir=$srcdir
27450 ac_abs_top_srcdir=$srcdir ;;
27451 *) # Relative name.
27452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27453 ac_top_srcdir=$ac_top_build_prefix$srcdir
27454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27468 # If the template does not know about datarootdir, expand it.
27469 # FIXME: This hack should be removed a few years after 2.60.
27470 ac_datarootdir_hack=; ac_datarootdir_seen=
27481 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27482 *datarootdir*) ac_datarootdir_seen=yes;;
27483 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27485 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27488 ac_datarootdir_hack='
27489 s&@datadir@&$datadir&g
27490 s&@docdir@&$docdir&g
27491 s&@infodir@&$infodir&g
27492 s&@localedir@&$localedir&g
27493 s&@mandir@&$mandir&g
27494 s&\\\${datarootdir}&$datarootdir&g' ;;
27498 # Neutralize VPATH when `$srcdir' = `.'.
27499 # Shell code in configure.ac might set extrasub.
27500 # FIXME: do we really want to maintain this feature?
27501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27502 ac_sed_extra="$ac_vpsub
27505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27508 s|@configure_input@|$ac_sed_conf_input|;t t
27509 s&@top_builddir@&$ac_top_builddir_sub&;t t
27510 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27511 s&@srcdir@&$ac_srcdir&;t t
27512 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27513 s&@top_srcdir@&$ac_top_srcdir&;t t
27514 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27515 s&@builddir@&$ac_builddir&;t t
27516 s&@abs_builddir@&$ac_abs_builddir&;t t
27517 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27518 $ac_datarootdir_hack
27520 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27521 if $ac_cs_awk_getline; then
27522 $AWK -f "$tmp/subs.awk"
27524 $AWK -f "$tmp/subs.awk" | $SHELL
27526 || as_fn_error "could not create $ac_file" "$LINENO" 5
27528 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27529 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27530 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27532 which seems to be undefined. Please make sure it is defined." >&5
27533 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27534 which seems to be undefined. Please make sure it is defined." >&2;}
27538 -) cat "$tmp/out" && rm -f "$tmp/out";;
27539 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27541 || as_fn_error "could not create $ac_file" "$LINENO" 5
27547 if test x"$ac_file" != x-; then
27549 $as_echo "/* $configure_input */" \
27550 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27551 } >"$tmp/config.h" \
27552 || as_fn_error "could not create $ac_file" "$LINENO" 5
27553 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27555 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27558 mv "$tmp/config.h" "$ac_file" \
27559 || as_fn_error "could not create $ac_file" "$LINENO" 5
27562 $as_echo "/* $configure_input */" \
27563 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27564 || as_fn_error "could not create -" "$LINENO" 5
27568 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27569 $as_echo "$as_me: executing $ac_file commands" >&6;}
27574 case $ac_file$ac_mode in
27575 "as":F) chmod +x as ;;
27576 "collect-ld":F) chmod +x collect-ld ;;
27577 "nm":F) chmod +x nm ;;
27579 case ${CONFIG_HEADERS} in
27580 *auto-host.h:config.in*)
27583 # Make sure all the subdirs exist.
27584 for d in $subdirs doc build c-family
27586 test -d $d || mkdir $d
27596 ac_clean_files=$ac_clean_files_save
27598 test $ac_write_fail = 0 ||
27599 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27602 # configure is writing to config.log, and then calls config.status.
27603 # config.status does its own redirection, appending to config.log.
27604 # Unfortunately, on DOS this fails, as config.log is still kept open
27605 # by configure, so config.status won't be able to write to it; its
27606 # output is simply discarded. So we exec the FD to /dev/null,
27607 # effectively closing config.log, so it can be properly (re)opened and
27608 # appended to by config.status. When coming back to configure, we
27609 # need to make the FD available again.
27610 if test "$no_create" != yes; then
27612 ac_config_status_args=
27613 test "$silent" = yes &&
27614 ac_config_status_args="$ac_config_status_args --quiet"
27616 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27618 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27619 # would make configure fail if this is the last instruction.
27620 $ac_cs_success || as_fn_exit $?
27622 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27624 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}