2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='LTLIBOBJS
621 libgcc_tm_include_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
684 ORIGINAL_NM_FOR_TARGET
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 ORIGINAL_AS_FOR_TARGET
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
768 ENABLE_BUILD_WITH_CXX
771 valgrind_path_defines
843 program_transform_name
854 ac_subst_files='option_includes
857 enable_option_checking
862 enable_generated_files_in_srcdir
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
893 enable_initfini_array
894 enable_sjlj_exceptions
895 with_system_libunwind
897 enable_leading_mingw64_underscores
900 enable_win32_registry
906 enable_gnu_indirect_function
908 enable_gnu_unique_object
909 enable_linker_build_id
913 enable_maintainer_mode
914 enable_version_specific_runtime_libs
917 enable_libquadmath_support
919 ac_precious_vars='build_alias
940 # Initialize some variables set by options.
942 ac_init_version=false
943 ac_unrecognized_opts=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
954 program_transform_name=s,x,x,
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE}'
979 infodir='${datarootdir}/info'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\$ac_option
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1030 -datadir | --datadir | --datadi | --datad)
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error "invalid feature name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_$ac_useropt"
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1056 eval enable_$ac_useropt=no ;;
1058 -docdir | --docdir | --docdi | --doc | --do)
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1068 -enable-* | --enable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid feature name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_$ac_useropt"
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1082 eval enable_$ac_useropt=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1246 -site=* | --site=* | --sit=*)
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1286 eval with_$ac_useropt=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1302 eval with_$ac_useropt=no ;;
1305 # Obsolete; use --with-x.
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1322 -*) as_fn_error "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information."
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' | [0-9]* | *[!_$as_cr_alnum]* )
1331 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error "missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1386 target=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402 test "$silent" = yes && exec 6>/dev/null
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error "pwd does not report name of working directory"
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1445 ac_srcdir_defaulted=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures this package to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 --target=TARGET configure for building compilers for TARGET [HOST]
1548 if test -n "$ac_init_help"; then
1553 --disable-option-checking ignore unrecognized --enable/--with options
1554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1556 --enable-generated-files-in-srcdir
1557 put copies of generated files in source dir
1558 intended for creating source tarballs for users
1559 without texinfo bison or flex.
1560 --disable-largefile omit support for large files
1561 --enable-werror-always enable -Werror despite compiler version
1562 --enable-checking=LIST
1563 enable expensive run-time checks. With LIST,
1564 enable only specific categories of checks.
1565 Categories are: yes,no,all,none,release.
1566 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1567 rtlflag,rtl,runtime,tree,valgrind,types.
1568 --enable-coverage=LEVEL
1569 enable compiler's code coverage collection.
1570 Use to measure compiler performance and locate
1571 unused parts of the compiler. With LEVEL, specify
1572 optimization. Values are opt, noopt,
1574 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1575 --enable-build-with-cxx build with C++ compiler instead of C compiler
1576 --enable-multilib enable library support for multiple ABIs
1577 --enable-__cxa_atexit enable __cxa_atexit for C++
1578 --enable-decimal-float={no,yes,bid,dpd}
1579 enable decimal float extension to C. Selecting 'bid'
1580 or 'dpd' choses which decimal floating point format
1582 --enable-fixed-point enable fixed-point arithmetic extension to C
1583 --enable-threads enable thread usage for target GCC
1584 --enable-threads=LIB use LIB thread package for target GCC
1585 --enable-tls enable or disable generation of tls code
1586 overriding the assembler check for tls support
1587 --enable-objc-gc enable the use of Boehm's garbage collector with
1588 the GNU Objective-C runtime
1589 --disable-shared don't provide a shared libgcc
1590 --enable-languages=LIST specify which front-ends to build
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-initfini-array use .init_array/.fini_array sections
1593 --enable-sjlj-exceptions
1594 arrange to use setjmp/longjmp exception handling
1595 --enable-secureplt enable -msecure-plt by default for PowerPC
1596 --enable-leading-mingw64-underscores
1597 Enable leading underscores on 64 bit mingw targets
1598 --enable-cld enable -mcld by default for 32bit x86
1599 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1600 --disable-win32-registry
1601 disable lookup of installation paths in the
1602 Registry on Windows hosts
1603 --enable-win32-registry enable registry lookup (default)
1604 --enable-win32-registry=KEY
1605 use KEY instead of GCC version as the last portion
1607 --enable-shared[=PKGS] build shared libraries [default=yes]
1608 --enable-static[=PKGS] build static libraries [default=yes]
1609 --enable-fast-install[=PKGS]
1610 optimize for fast installation [default=yes]
1611 --disable-libtool-lock avoid locking (might break parallel builds)
1612 --enable-gnu-indirect-function
1613 enable the use of the @gnu_indirect_function to
1615 --enable-comdat enable COMDAT group support
1616 --enable-gnu-unique-object
1617 enable the use of the @gnu_unique_object ELF
1618 extension on glibc systems
1619 --enable-linker-build-id
1620 compiler will always pass --build-id to linker
1621 --enable-maintainer-mode
1622 enable make rules and dependencies not useful
1623 (and sometimes confusing) to the casual installer
1624 --enable-version-specific-runtime-libs
1625 specify that runtime libraries should be
1626 installed in a compiler-specific directory
1627 --enable-plugin enable plugin support
1628 --disable-libquadmath-support
1629 disable libquadmath support for Fortran
1632 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1633 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1634 --with-build-libsubdir=DIR Directory where to find libraries for build system
1635 --with-local-prefix=DIR specifies directory to put local include
1636 --with-gxx-include-dir=DIR
1637 specifies directory to put g++ header files
1638 --with-cpp-install-dir=DIR
1639 install the user visible C preprocessor in DIR
1640 (relative to PREFIX) as well as PREFIX/bin
1641 --with-gnu-ld arrange to work with GNU ld.
1642 --with-ld arrange to use the specified ld (full pathname)
1643 --with-demangler-in-ld try to use demangler in GNU ld.
1644 --with-gnu-as arrange to work with GNU as
1645 --with-as arrange to use the specified as (full pathname)
1646 --with-stabs arrange to use stabs instead of host debug format
1647 --with-dwarf2 force the default debug format to be DWARF 2
1648 --with-build-sysroot=sysroot
1649 use sysroot as the system root during the build
1650 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1651 --with-specs=SPECS add SPECS to driver command-line processing
1652 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1653 --with-bugurl=URL Direct users to URL to report a bug
1654 --with-multilib-list Select multilibs (SH only)
1655 --with-gnu-ld assume the C compiler uses GNU ld default=no
1656 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1657 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1658 --with-system-libunwind use installed libunwind
1659 --with-pic try to use only PIC/non-PIC objects [default=use
1661 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1662 --with-plugin-ld=[ARG] specify the plugin linker
1663 --with-long-double-128 Use 128-bit long double by default.
1664 --with-gc={page,zone} choose the garbage collection mechanism to use
1666 --with-system-zlib use installed libz
1667 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1669 Some influential environment variables:
1670 CC C compiler command
1671 CFLAGS C compiler flags
1672 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1673 nonstandard directory <lib dir>
1674 LIBS libraries to pass to the linker, e.g. -l<library>
1675 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1676 you have headers in a nonstandard directory <include dir>
1677 CXX C++ compiler command
1678 CXXFLAGS C++ compiler flags
1680 CXXCPP C++ preprocessor
1681 GMPLIBS How to link GMP
1682 GMPINC How to find GMP include files
1683 PPLLIBS How to link PPL
1684 PPLINC How to find PPL include files
1685 CLOOGLIBS How to link CLOOG
1686 CLOOGINC How to find CLOOG include files
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1691 Report bugs to the package provider.
1696 if test "$ac_init_help" = "recursive"; then
1697 # If there are subdirs, report their specific --help.
1698 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699 test -d "$ac_dir" ||
1700 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708 # A ".." for each directory in $ac_dir_suffix.
1709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710 case $ac_top_builddir_sub in
1711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1721 .) # We are building in place.
1723 ac_top_srcdir=$ac_top_builddir_sub
1724 ac_abs_top_srcdir=$ac_pwd ;;
1725 [\\/]* | ?:[\\/]* ) # Absolute name.
1726 ac_srcdir=$srcdir$ac_dir_suffix;
1727 ac_top_srcdir=$srcdir
1728 ac_abs_top_srcdir=$srcdir ;;
1730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731 ac_top_srcdir=$ac_top_build_prefix$srcdir
1732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736 cd "$ac_dir" || { ac_status=$?; continue; }
1737 # Check for guested configure.
1738 if test -f "$ac_srcdir/configure.gnu"; then
1740 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741 elif test -f "$ac_srcdir/configure"; then
1743 $SHELL "$ac_srcdir/configure" --help=recursive
1745 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 cd "$ac_pwd" || { ac_status=$?; break; }
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1755 generated by GNU Autoconf 2.64
1757 Copyright (C) 2009 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext
1775 if { { ac_try="$ac_compile"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_compile") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest.$ac_objext; then :
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 } # ac_fn_c_try_compile
1806 # ac_fn_cxx_try_compile LINENO
1807 # ----------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_cxx_try_compile ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_cxx_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 } # ac_fn_cxx_try_compile
1844 # ac_fn_c_try_cpp LINENO
1845 # ----------------------
1846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_cpp conftest.$ac_ext"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } >/dev/null && {
1866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1882 # -------------------------------------------------------
1883 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1884 # the include files in INCLUDES and setting the cache variable VAR
1886 ac_fn_c_check_header_mongrel ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1893 $as_echo_n "(cached) " >&6
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1899 # Is the header compilable?
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1901 $as_echo_n "checking $2 usability... " >&6; }
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 ac_header_compiler=yes
1910 ac_header_compiler=no
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1914 $as_echo "$ac_header_compiler" >&6; }
1916 # Is the header present?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1918 $as_echo_n "checking $2 presence... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1923 if ac_fn_c_try_cpp "$LINENO"; then :
1924 ac_header_preproc=yes
1926 ac_header_preproc=no
1928 rm -f conftest.err conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1930 $as_echo "$ac_header_preproc" >&6; }
1932 # So? What about this header?
1933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1936 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1938 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1942 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1944 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1946 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1948 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1950 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956 $as_echo_n "(cached) " >&6
1958 eval "$3=\$ac_header_compiler"
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966 } # ac_fn_c_check_header_mongrel
1968 # ac_fn_c_try_run LINENO
1969 # ----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1971 # that executables *can* be run.
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if { { ac_try="$ac_link"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>&5
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1986 { { case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_try") 2>&5
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; }; }; then :
1998 $as_echo "$as_me: program exited with status $ac_status" >&5
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2002 ac_retval=$ac_status
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011 # -------------------------------------------------------
2012 # Tests whether HEADER exists and can be compiled using the include files in
2013 # INCLUDES, setting the cache variable VAR accordingly.
2014 ac_fn_c_check_header_compile ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2027 if ac_fn_c_try_compile "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039 } # ac_fn_c_check_header_compile
2041 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2042 # --------------------------------------------
2043 # Tries to find the compile-time value of EXPR in a program that includes
2044 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2046 ac_fn_c_compute_int ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 if test "$cross_compiling" = yes; then
2050 # Depending upon the size, compute the lo and hi bounds.
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2057 static int test_array [1 - 2 * !(($2) >= 0)];
2064 if ac_fn_c_try_compile "$LINENO"; then :
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2073 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 ac_hi=$ac_mid; break
2083 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2084 if test $ac_lo -le $ac_mid; then
2088 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) < 0)];
2106 if ac_fn_c_try_compile "$LINENO"; then :
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2115 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 ac_lo=$ac_mid; break
2125 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2126 if test $ac_mid -le $ac_hi; then
2130 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 # Binary search between lo and hi bounds.
2141 while test "x$ac_lo" != "x$ac_hi"; do
2142 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2149 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2159 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2171 static long int longval () { return $2; }
2172 static unsigned long int ulongval () { return $2; }
2179 FILE *f = fopen ("conftest.val", "w");
2184 long int i = longval ();
2187 fprintf (f, "%ld", i);
2191 unsigned long int i = ulongval ();
2194 fprintf (f, "%lu", i);
2196 /* Do not output a trailing newline, as this causes \r\n confusion
2197 on some platforms. */
2198 return ferror (f) || fclose (f) != 0;
2204 if ac_fn_c_try_run "$LINENO"; then :
2205 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2210 conftest.$ac_objext conftest.beam conftest.$ac_ext
2214 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2217 } # ac_fn_c_compute_int
2219 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2220 # -------------------------------------------
2221 # Tests whether TYPE exists after having included INCLUDES, setting cache
2222 # variable VAR accordingly.
2223 ac_fn_c_check_type ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229 $as_echo_n "(cached) " >&6
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2257 if ac_fn_c_try_compile "$LINENO"; then :
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 } # ac_fn_c_check_type
2273 # ac_fn_c_find_intX_t LINENO BITS VAR
2274 # -----------------------------------
2275 # Finds a signed integer type with width BITS, setting cache variable VAR
2277 ac_fn_c_find_intX_t ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2281 $as_echo_n "checking for int$2_t... " >&6; }
2282 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2283 $as_echo_n "(cached) " >&6
2286 for ac_type in int$2_t 'int' 'long int' \
2287 'long long int' 'short int' 'signed char'; do
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2290 $ac_includes_default
2294 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 $ac_includes_default
2308 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2309 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2316 if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$3=\$ac_type" ;;
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 if test "x$as_val" = x""no; then :
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342 } # ac_fn_c_find_intX_t
2344 # ac_fn_c_try_link LINENO
2345 # -----------------------
2346 # Try to link conftest.$ac_ext, and return whether this succeeded.
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 rm -f conftest.$ac_objext conftest$ac_exeext
2351 if { { ac_try="$ac_link"
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2357 $as_echo "$ac_try_echo"; } >&5
2358 (eval "$ac_link") 2>conftest.err
2360 if test -s conftest.err; then
2361 grep -v '^ *+' conftest.err >conftest.er1
2362 cat conftest.er1 >&5
2363 mv -f conftest.er1 conftest.err
2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366 test $ac_status = 0; } && {
2367 test -z "$ac_c_werror_flag" ||
2368 test ! -s conftest.err
2369 } && test -s conftest$ac_exeext && {
2370 test "$cross_compiling" = yes ||
2371 $as_test_x conftest$ac_exeext
2375 $as_echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2381 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2382 # interfere with the next link command; also delete a directory that is
2383 # left behind by Apple's compiler. We do this before executing the actions.
2384 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2385 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 } # ac_fn_c_try_link
2390 # ac_fn_c_find_uintX_t LINENO BITS VAR
2391 # ------------------------------------
2392 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2394 ac_fn_c_find_uintX_t ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2398 $as_echo_n "checking for uint$2_t... " >&6; }
2399 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2400 $as_echo_n "(cached) " >&6
2403 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2404 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 $ac_includes_default
2411 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2418 if ac_fn_c_try_compile "$LINENO"; then :
2423 eval "$3=\$ac_type" ;;
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 if test "x$as_val" = x""no; then :
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2440 } # ac_fn_c_find_uintX_t
2442 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2443 # ----------------------------------------------
2444 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2445 ac_fn_c_check_header_preproc ()
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449 $as_echo_n "checking for $2... " >&6; }
2450 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2451 $as_echo_n "(cached) " >&6
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2457 if ac_fn_c_try_cpp "$LINENO"; then :
2462 rm -f conftest.err conftest.$ac_ext
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2469 } # ac_fn_c_check_header_preproc
2471 # ac_fn_cxx_try_cpp LINENO
2472 # ------------------------
2473 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2474 ac_fn_cxx_try_cpp ()
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 if { { ac_try="$ac_cpp conftest.$ac_ext"
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483 $as_echo "$ac_try_echo"; } >&5
2484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2486 if test -s conftest.err; then
2487 grep -v '^ *+' conftest.err >conftest.er1
2488 cat conftest.er1 >&5
2489 mv -f conftest.er1 conftest.err
2491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2492 test $ac_status = 0; } >/dev/null && {
2493 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2494 test ! -s conftest.err
2498 $as_echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2503 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2506 } # ac_fn_cxx_try_cpp
2508 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2509 # ------------------------------------------------
2510 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2511 ac_fn_cxx_check_header_preproc ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2517 $as_echo_n "(cached) " >&6
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2523 if ac_fn_cxx_try_cpp "$LINENO"; then :
2528 rm -f conftest.err conftest.$ac_ext
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532 $as_echo "$ac_res" >&6; }
2533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 } # ac_fn_cxx_check_header_preproc
2537 # ac_fn_c_check_func LINENO FUNC VAR
2538 # ----------------------------------
2539 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2540 ac_fn_c_check_func ()
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2546 $as_echo_n "(cached) " >&6
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2550 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2552 #define $2 innocuous_$2
2554 /* System header to define __stub macros and hopefully few prototypes,
2555 which can conflict with char $2 (); below.
2556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2557 <limits.h> exists even on freestanding compilers. */
2560 # include <limits.h>
2562 # include <assert.h>
2567 /* Override any GCC internal prototype to avoid an error.
2568 Use char because int might match the return type of a GCC
2569 builtin and then its argument prototype would still apply. */
2574 /* The GNU C library defines this for functions which it implements
2575 to always fail with ENOSYS. Some functions are actually named
2576 something starting with __ and the normal name is an alias. */
2577 #if defined __stub_$2 || defined __stub___$2
2589 if ac_fn_c_try_link "$LINENO"; then :
2594 rm -f core conftest.err conftest.$ac_objext \
2595 conftest$ac_exeext conftest.$ac_ext
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2599 $as_echo "$ac_res" >&6; }
2600 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2602 } # ac_fn_c_check_func
2604 # ac_fn_cxx_try_link LINENO
2605 # -------------------------
2606 # Try to link conftest.$ac_ext, and return whether this succeeded.
2607 ac_fn_cxx_try_link ()
2609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2610 rm -f conftest.$ac_objext conftest$ac_exeext
2611 if { { ac_try="$ac_link"
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617 $as_echo "$ac_try_echo"; } >&5
2618 (eval "$ac_link") 2>conftest.err
2620 if test -s conftest.err; then
2621 grep -v '^ *+' conftest.err >conftest.er1
2622 cat conftest.er1 >&5
2623 mv -f conftest.er1 conftest.err
2625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2626 test $ac_status = 0; } && {
2627 test -z "$ac_cxx_werror_flag" ||
2628 test ! -s conftest.err
2629 } && test -s conftest$ac_exeext && {
2630 test "$cross_compiling" = yes ||
2631 $as_test_x conftest$ac_exeext
2635 $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2642 # interfere with the next link command; also delete a directory that is
2643 # left behind by Apple's compiler. We do this before executing the actions.
2644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2648 } # ac_fn_cxx_try_link
2649 cat >config.log <<_ACEOF
2650 This file contains any messages produced by compilers while
2651 running configure, to aid debugging if configure makes a mistake.
2653 It was created by $as_me, which was
2654 generated by GNU Autoconf 2.64. Invocation command line was
2666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2673 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2675 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2676 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2678 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2679 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2680 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2681 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 $as_echo "PATH: $as_dir"
2706 # Keep a trace of the command line.
2707 # Strip out --no-create and --no-recursion so they do not pile up.
2708 # Strip out --silent because we don't want to record it for future runs.
2709 # Also quote any args containing shell meta-characters.
2710 # Make two passes to allow for proper duplicate-argument suppression.
2714 ac_must_keep_next=false
2720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2722 | -silent | --silent | --silen | --sile | --sil)
2725 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2728 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2730 as_fn_append ac_configure_args1 " '$ac_arg'"
2731 if test $ac_must_keep_next = true; then
2732 ac_must_keep_next=false # Got value, back to normal.
2735 *=* | --config-cache | -C | -disable-* | --disable-* \
2736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2738 | -with-* | --with-* | -without-* | --without-* | --x)
2739 case "$ac_configure_args0 " in
2740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2743 -* ) ac_must_keep_next=true ;;
2746 as_fn_append ac_configure_args " '$ac_arg'"
2751 { ac_configure_args0=; unset ac_configure_args0;}
2752 { ac_configure_args1=; unset ac_configure_args1;}
2754 # When interrupted or exit'd, cleanup temporary files, and complete
2755 # config.log. We remove comments because anyway the quotes in there
2756 # would cause problems or look ugly.
2757 # WARNING: Use '\'' to represent an apostrophe within the trap.
2758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2759 trap 'exit_status=$?
2760 # Save into config.log some information that might help in debugging.
2765 ## ---------------- ##
2766 ## Cache variables. ##
2767 ## ---------------- ##
2770 # The following way of writing the cache mishandles newlines in values,
2772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2773 eval ac_val=\$$ac_var
2777 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2778 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2781 _ | IFS | as_nl) ;; #(
2782 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2783 *) { eval $ac_var=; unset $ac_var;} ;;
2788 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2789 *${as_nl}ac_space=\ *)
2791 "s/'\''/'\''\\\\'\'''\''/g;
2792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2795 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2803 ## ----------------- ##
2804 ## Output variables. ##
2805 ## ----------------- ##
2808 for ac_var in $ac_subst_vars
2810 eval ac_val=\$$ac_var
2812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2814 $as_echo "$ac_var='\''$ac_val'\''"
2818 if test -n "$ac_subst_files"; then
2820 ## ------------------- ##
2821 ## File substitutions. ##
2822 ## ------------------- ##
2825 for ac_var in $ac_subst_files
2827 eval ac_val=\$$ac_var
2829 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2831 $as_echo "$ac_var='\''$ac_val'\''"
2836 if test -s confdefs.h; then
2846 test "$ac_signal" != 0 &&
2847 $as_echo "$as_me: caught signal $ac_signal"
2848 $as_echo "$as_me: exit $exit_status"
2850 rm -f core *.core core.conftest.* &&
2851 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2854 for ac_signal in 1 2 13 15; do
2855 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2860 rm -f -r conftest* confdefs.h
2862 $as_echo "/* confdefs.h */" > confdefs.h
2864 # Predefined preprocessor variables.
2866 cat >>confdefs.h <<_ACEOF
2867 #define PACKAGE_NAME "$PACKAGE_NAME"
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_STRING "$PACKAGE_STRING"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_URL "$PACKAGE_URL"
2891 # Let the site file select an alternate cache file if it wants to.
2892 # Prefer an explicitly selected file to automatically selected ones.
2895 if test -n "$CONFIG_SITE"; then
2896 ac_site_file1=$CONFIG_SITE
2897 elif test "x$prefix" != xNONE; then
2898 ac_site_file1=$prefix/share/config.site
2899 ac_site_file2=$prefix/etc/config.site
2901 ac_site_file1=$ac_default_prefix/share/config.site
2902 ac_site_file2=$ac_default_prefix/etc/config.site
2904 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2906 test "x$ac_site_file" = xNONE && continue
2907 if test -r "$ac_site_file"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2909 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2910 sed 's/^/| /' "$ac_site_file" >&5
2915 if test -r "$cache_file"; then
2916 # Some versions of bash will fail to source /dev/null (special
2917 # files actually), so we avoid doing that.
2918 if test -f "$cache_file"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2920 $as_echo "$as_me: loading cache $cache_file" >&6;}
2922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2923 *) . "./$cache_file";;
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2928 $as_echo "$as_me: creating cache $cache_file" >&6;}
2932 # Check that the precious variables saved in the cache have kept the same
2934 ac_cache_corrupted=false
2935 for ac_var in $ac_precious_vars; do
2936 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2937 eval ac_new_set=\$ac_env_${ac_var}_set
2938 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2939 eval ac_new_val=\$ac_env_${ac_var}_value
2940 case $ac_old_set,$ac_new_set in
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2943 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2944 ac_cache_corrupted=: ;;
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2947 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2948 ac_cache_corrupted=: ;;
2951 if test "x$ac_old_val" != "x$ac_new_val"; then
2952 # differences in whitespace do not lead to failure.
2953 ac_old_val_w=`echo x $ac_old_val`
2954 ac_new_val_w=`echo x $ac_new_val`
2955 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2957 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2958 ac_cache_corrupted=:
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2961 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2962 eval $ac_var=\$ac_old_val
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2965 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2967 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2970 # Pass precious variables to config.status.
2971 if test "$ac_new_set" = set; then
2973 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2974 *) ac_arg=$ac_var=$ac_new_val ;;
2976 case " $ac_configure_args " in
2977 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2978 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2982 if $ac_cache_corrupted; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2986 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2987 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2989 ## -------------------- ##
2990 ## Main body of script. ##
2991 ## -------------------- ##
2994 ac_cpp='$CPP $CPPFLAGS'
2995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3007 gcc_version=`cat $srcdir/BASE-VER`
3009 # Determine the host, build, and target systems
3011 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3012 for ac_t in install-sh install.sh shtool; do
3013 if test -f "$ac_dir/$ac_t"; then
3015 ac_install_sh="$ac_aux_dir/$ac_t -c"
3020 if test -z "$ac_aux_dir"; then
3021 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3024 # These three variables are undocumented and unsupported,
3025 # and are intended to be withdrawn in a future Autoconf release.
3026 # They can cause serious problems if a builder's source tree is in a directory
3027 # whose full name contains unusual characters.
3028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3033 # Make sure we can run config.sub.
3034 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3035 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3038 $as_echo_n "checking build system type... " >&6; }
3039 if test "${ac_cv_build+set}" = set; then :
3040 $as_echo_n "(cached) " >&6
3042 ac_build_alias=$build_alias
3043 test "x$ac_build_alias" = x &&
3044 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3045 test "x$ac_build_alias" = x &&
3046 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3047 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3048 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3052 $as_echo "$ac_cv_build" >&6; }
3053 case $ac_cv_build in
3055 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3058 ac_save_IFS=$IFS; IFS='-'
3064 # Remember, the first character of IFS is used to create $*,
3065 # except with old shells:
3068 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3072 $as_echo_n "checking host system type... " >&6; }
3073 if test "${ac_cv_host+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3076 if test "x$host_alias" = x; then
3077 ac_cv_host=$ac_cv_build
3079 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3080 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3085 $as_echo "$ac_cv_host" >&6; }
3088 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3091 ac_save_IFS=$IFS; IFS='-'
3097 # Remember, the first character of IFS is used to create $*,
3098 # except with old shells:
3101 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3105 $as_echo_n "checking target system type... " >&6; }
3106 if test "${ac_cv_target+set}" = set; then :
3107 $as_echo_n "(cached) " >&6
3109 if test "x$target_alias" = x; then
3110 ac_cv_target=$ac_cv_host
3112 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3113 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3118 $as_echo "$ac_cv_target" >&6; }
3119 case $ac_cv_target in
3121 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3123 target=$ac_cv_target
3124 ac_save_IFS=$IFS; IFS='-'
3130 # Remember, the first character of IFS is used to create $*,
3131 # except with old shells:
3134 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3137 # The aliases save the names the user supplied, while $host etc.
3138 # will get canonicalized.
3139 test -n "$target_alias" &&
3140 test "$program_prefix$program_suffix$program_transform_name" = \
3142 program_prefix=${target_alias}-
3144 # Determine the noncanonical target name, for directory use.
3145 case ${build_alias} in
3146 "") build_noncanonical=${build} ;;
3147 *) build_noncanonical=${build_alias} ;;
3150 case ${host_alias} in
3151 "") host_noncanonical=${build_noncanonical} ;;
3152 *) host_noncanonical=${host_alias} ;;
3155 case ${target_alias} in
3156 "") target_noncanonical=${host_noncanonical} ;;
3157 *) target_noncanonical=${target_alias} ;;
3163 # Determine the target- and build-specific subdirectories
3165 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3166 # have matching libraries, they should use host libraries: Makefile.tpl
3167 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3168 # However, they still use the build modules, because the corresponding
3169 # host modules (e.g. bison) are only built for the host when bootstrap
3171 # - build_subdir is where we find build modules, and never changes.
3172 # - build_libsubdir is where we find build libraries, and can be overridden.
3174 # Prefix 'build-' so this never conflicts with target_subdir.
3175 build_subdir="build-${build_noncanonical}"
3177 # Check whether --with-build-libsubdir was given.
3178 if test "${with_build_libsubdir+set}" = set; then :
3179 withval=$with_build_libsubdir; build_libsubdir="$withval"
3181 build_libsubdir="$build_subdir"
3184 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3185 if ( test $srcdir = . && test -d gcc ) \
3186 || test -d $srcdir/../host-${host_noncanonical}; then
3187 host_subdir="host-${host_noncanonical}"
3192 target_subdir=${target_noncanonical}
3195 # Set program_transform_name
3196 test "$program_prefix" != NONE &&
3197 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3198 # Use a double $ so make ignores it.
3199 test "$program_suffix" != NONE &&
3200 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3201 # Double any \ or $.
3202 # By default was `s,x,x', remove it if useless.
3203 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3204 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3207 # Check for bogus environment variables.
3208 # Test if LIBRARY_PATH contains the notation for the current directory
3209 # since this would lead to problems installing/building glibc.
3210 # LIBRARY_PATH contains the current directory if one of the following
3212 # - one of the terminals (":" and ";") is the first or last sign
3213 # - two terminals occur directly after each other
3214 # - the path contains an element with a dot in it
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3216 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3217 case ${LIBRARY_PATH} in
3218 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3219 library_path_setting="contains current directory"
3222 library_path_setting="ok"
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3226 $as_echo "$library_path_setting" >&6; }
3227 if test "$library_path_setting" != "ok"; then
3229 *** LIBRARY_PATH shouldn't contain the current directory when
3230 *** building gcc. Please change the environment variable
3231 *** and run configure again." "$LINENO" 5
3234 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3235 # since this would lead to problems installing/building glibc.
3236 # GCC_EXEC_PREFIX contains the current directory if one of the following
3238 # - one of the terminals (":" and ";") is the first or last sign
3239 # - two terminals occur directly after each other
3240 # - the path contains an element with a dot in it
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3242 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3243 case ${GCC_EXEC_PREFIX} in
3244 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3245 gcc_exec_prefix_setting="contains current directory"
3248 gcc_exec_prefix_setting="ok"
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3252 $as_echo "$gcc_exec_prefix_setting" >&6; }
3253 if test "$gcc_exec_prefix_setting" != "ok"; then
3255 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3256 *** building gcc. Please change the environment variable
3257 *** and run configure again." "$LINENO" 5
3264 # Specify the local prefix
3267 # Check whether --with-local-prefix was given.
3268 if test "${with_local_prefix+set}" = set; then :
3269 withval=$with_local_prefix; case "${withval}" in
3270 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3272 *) local_prefix=$with_local_prefix ;;
3277 # Default local prefix if it is empty
3278 if test x$local_prefix = x; then
3279 local_prefix=/usr/local
3282 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3283 # passed in by the toplevel make and thus we'd get different behavior
3284 # depending on where we built the sources.
3285 gcc_gxx_include_dir=
3286 # Specify the g++ header file directory
3288 # Check whether --with-gxx-include-dir was given.
3289 if test "${with_gxx_include_dir+set}" = set; then :
3290 withval=$with_gxx_include_dir; case "${withval}" in
3291 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3293 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3298 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3299 if test x${gcc_gxx_include_dir} = x; then
3300 if test x${enable_version_specific_runtime_libs} = xyes; then
3301 gcc_gxx_include_dir='${libsubdir}/include/c++'
3303 libstdcxx_incdir='include/c++/$(version)'
3304 if test x$host != x$target; then
3305 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3307 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3312 # Check whether --with-cpp_install_dir was given.
3313 if test "${with_cpp_install_dir+set}" = set; then :
3314 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3315 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3316 elif test x$withval != xno; then
3317 cpp_install_dir=$withval
3322 # We would like to our source tree to be readonly. However when releases or
3323 # pre-releases are generated, the flex/bison generated files as well as the
3324 # various formats of manuals need to be included along with the rest of the
3325 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3329 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3330 # Check whether --enable-generated-files-in-srcdir was given.
3331 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3332 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3334 generated_files_in_srcdir=no
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3339 $as_echo "$generated_files_in_srcdir" >&6; }
3341 if test "$generated_files_in_srcdir" = "yes"; then
3348 # -------------------
3349 # Find default linker
3350 # -------------------
3354 # Check whether --with-gnu-ld was given.
3355 if test "${with_gnu_ld+set}" = set; then :
3356 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3362 # With pre-defined ld
3364 # Check whether --with-ld was given.
3365 if test "${with_ld+set}" = set; then :
3366 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3369 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3370 if test ! -x "$DEFAULT_LINKER"; then
3371 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3372 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3376 cat >>confdefs.h <<_ACEOF
3377 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3382 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3384 cat >>confdefs.h <<_ACEOF
3385 #define HAVE_GNU_LD $gnu_ld
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3390 $as_echo_n "checking whether a default linker was specified... " >&6; }
3391 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3392 if test x"$gnu_ld_flag" = x"no"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3394 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3397 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3404 # With demangler in GNU ld
3406 # Check whether --with-demangler-in-ld was given.
3407 if test "${with_demangler_in_ld+set}" = set; then :
3408 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3414 # ----------------------
3415 # Find default assembler
3416 # ----------------------
3420 # Check whether --with-gnu-as was given.
3421 if test "${with_gnu_as+set}" = set; then :
3422 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 # Check whether --with-as was given.
3430 if test "${with_as+set}" = set; then :
3431 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3434 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3435 if test ! -x "$DEFAULT_ASSEMBLER"; then
3436 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3437 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3441 cat >>confdefs.h <<_ACEOF
3442 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3447 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3449 cat >>confdefs.h <<_ACEOF
3450 #define HAVE_GNU_AS $gnu_as
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3455 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3456 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3457 if test x"$gas_flag" = x"no"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3459 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3462 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3473 # If a non-executable a.out is present (e.g. created by GNU as above even if
3474 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3475 # file, even when creating an executable, so an execution test fails.
3476 # Remove possible default executable files to avoid this.
3478 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3479 # Autoconf includes it.
3480 rm -f a.out a.exe b.out
3482 # Find the native compiler
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 if test -n "$ac_tool_prefix"; then
3489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3490 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if test "${ac_cv_prog_CC+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 if test -n "$CC"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 $as_echo "$CC" >&6; }
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3527 if test -z "$ac_cv_prog_CC"; then
3529 # Extract the first word of "gcc", so it can be a program name with args.
3530 set dummy gcc; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3536 if test -n "$ac_ct_CC"; then
3537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 ac_cv_prog_ac_ct_CC="gcc"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3559 $as_echo "$ac_ct_CC" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3565 if test "x$ac_ct_CC" = x; then
3568 case $cross_compiling:$ac_tool_warned in
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3572 ac_tool_warned=yes ;;
3580 if test -z "$CC"; then
3581 if test -n "$ac_tool_prefix"; then
3582 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}cc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_CC+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_CC="${ac_tool_prefix}cc"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test -n "$CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3621 if test -z "$CC"; then
3622 # Extract the first word of "cc", so it can be a program name with args.
3623 set dummy cc; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if test "${ac_cv_prog_CC+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3629 if test -n "$CC"; then
3630 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3641 ac_prog_rejected=yes
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 if test $ac_prog_rejected = yes; then
3653 # We found a bogon in the path, so make sure we never use it.
3654 set dummy $ac_cv_prog_CC
3656 if test $# != 0; then
3657 # We chose a different compiler from the bogus one.
3658 # However, it has the same basename, so the bogon will be chosen
3659 # first if we set CC to just the basename; use the full file name.
3661 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3667 if test -n "$CC"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669 $as_echo "$CC" >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3677 if test -z "$CC"; then
3678 if test -n "$ac_tool_prefix"; then
3679 for ac_prog in cl.exe
3681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if test "${ac_cv_prog_CC+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC="$CC" # Let the user override the test.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 if test -n "$CC"; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3711 $as_echo "$CC" >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3718 test -n "$CC" && break
3721 if test -z "$CC"; then
3723 for ac_prog in cl.exe
3725 # Extract the first word of "$ac_prog", so it can be a program name with args.
3726 set dummy $ac_prog; ac_word=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3732 if test -n "$ac_ct_CC"; then
3733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_ac_ct_CC="$ac_prog"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3753 if test -n "$ac_ct_CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3755 $as_echo "$ac_ct_CC" >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3762 test -n "$ac_ct_CC" && break
3765 if test "x$ac_ct_CC" = x; then
3768 case $cross_compiling:$ac_tool_warned in
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3772 ac_tool_warned=yes ;;
3781 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error "no acceptable C compiler found in \$PATH
3784 See \`config.log' for more details." "$LINENO" 5; }
3786 # Provide some information about the compiler.
3787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790 for ac_option in --version -v -V -qversion; do
3791 { { ac_try="$ac_compiler $ac_option >&5"
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3800 if test -s conftest.err; then
3802 ... rest of stderr output deleted ...
3803 10q' conftest.err >conftest.er1
3804 cat conftest.er1 >&5
3805 rm -f conftest.er1 conftest.err
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3822 ac_clean_files_save=$ac_clean_files
3823 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3824 # Try to create an executable without -o first, disregard a.out.
3825 # It will help us diagnose broken compilers, and finding out an intuition
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3828 $as_echo_n "checking for C compiler default output file name... " >&6; }
3829 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3831 # The possible output files:
3832 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3835 for ac_file in $ac_files
3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3839 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3844 if { { ac_try="$ac_link_default"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_link_default") 2>&5
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3857 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3858 # so that the user can short-circuit this test for compilers unknown to
3860 for ac_file in $ac_files ''
3862 test -f "$ac_file" || continue
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3867 # We found the default executable, but exeext='' is most
3871 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3873 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3875 # We set ac_cv_exeext here because the later test for it is not
3876 # safe: cross compilers may not add the suffix if given an `-o'
3877 # argument, so we may need to know it at that point already.
3878 # Even if this section looks crufty: it has the advantage of
3885 test "$ac_cv_exeext" = no && ac_cv_exeext=
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 if test -z "$ac_file"; then :
3893 $as_echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 { as_fn_set_status 77
3899 as_fn_error "C compiler cannot create executables
3900 See \`config.log' for more details." "$LINENO" 5; }; }
3902 ac_exeext=$ac_cv_exeext
3904 # Check that the compiler produces executables we can run. If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3907 $as_echo_n "checking whether the C compiler works... " >&6; }
3908 # If not cross compiling, check that we can run a simple program.
3909 if test "$cross_compiling" != yes; then
3910 if { ac_try='./$ac_file'
3911 { { case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_try") 2>&5
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }; }; then
3923 if test "$cross_compiling" = maybe; then
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error "cannot run C compiled programs.
3929 If you meant to cross compile, use \`--host'.
3930 See \`config.log' for more details." "$LINENO" 5; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3937 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3938 ac_clean_files=$ac_clean_files_save
3939 # Check that the compiler produces executables we can run. If not, either
3940 # the compiler is broken, or we cross compile.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3942 $as_echo_n "checking whether we are cross compiling... " >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944 $as_echo "$cross_compiling" >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3947 $as_echo_n "checking for suffix of executables... " >&6; }
3948 if { { ac_try="$ac_link"
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_link") 2>&5
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; then :
3959 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3960 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3961 # work properly (i.e., refer to `conftest.exe'), while it won't with
3963 for ac_file in conftest.exe conftest conftest.*; do
3964 test -f "$ac_file" || continue
3966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error "cannot compute suffix of executables: cannot compile and link
3976 See \`config.log' for more details." "$LINENO" 5; }
3978 rm -f conftest$ac_cv_exeext
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3980 $as_echo "$ac_cv_exeext" >&6; }
3982 rm -f conftest.$ac_ext
3983 EXEEXT=$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3986 $as_echo_n "checking for suffix of object files... " >&6; }
3987 if test "${ac_cv_objext+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
4001 rm -f conftest.o conftest.obj
4002 if { { ac_try="$ac_compile"
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_compile") 2>&5
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; then :
4013 for ac_file in conftest.o conftest.obj conftest.*; do
4014 test -f "$ac_file" || continue;
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error "cannot compute suffix of object files: cannot compile
4028 See \`config.log' for more details." "$LINENO" 5; }
4030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4033 $as_echo "$ac_cv_objext" >&6; }
4034 OBJEXT=$ac_cv_objext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4037 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4038 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4055 if ac_fn_c_try_compile "$LINENO"; then :
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4065 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4066 if test $ac_compiler_gnu = yes; then
4071 ac_test_CFLAGS=${CFLAGS+set}
4072 ac_save_CFLAGS=$CFLAGS
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4074 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4075 if test "${ac_cv_prog_cc_g+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4078 ac_save_c_werror_flag=$ac_c_werror_flag
4079 ac_c_werror_flag=yes
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4093 if ac_fn_c_try_compile "$LINENO"; then :
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4108 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_c_werror_flag=$ac_save_c_werror_flag
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4124 if ac_fn_c_try_compile "$LINENO"; then :
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_c_werror_flag=$ac_save_c_werror_flag
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4135 $as_echo "$ac_cv_prog_cc_g" >&6; }
4136 if test "$ac_test_CFLAGS" = set; then
4137 CFLAGS=$ac_save_CFLAGS
4138 elif test $ac_cv_prog_cc_g = yes; then
4139 if test "$GCC" = yes; then
4145 if test "$GCC" = yes; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4152 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4153 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4156 ac_cv_prog_cc_c89=no
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4162 #include <sys/types.h>
4163 #include <sys/stat.h>
4164 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4165 struct buf { int x; };
4166 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4167 static char *e (p, i)
4173 static char *f (char * (*g) (char **, int), char **p, ...)
4178 s = g (p, va_arg (v,int));
4183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4184 function prototypes and stuff, but not '\xHH' hex character constants.
4185 These don't provoke an error unfortunately, instead are silently treated
4186 as 'x'. The following induces an error, until -std is added to get
4187 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4188 array size at least. It's necessary to write '\x00'==0 to get something
4189 that's true only with -std. */
4190 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4192 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4193 inside strings and character constants. */
4195 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4197 int test (int i, double x);
4198 struct s1 {int (*f) (int a);};
4199 struct s2 {int (*f) (double a);};
4200 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4211 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4212 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4214 CC="$ac_save_CC $ac_arg"
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 ac_cv_prog_cc_c89=$ac_arg
4218 rm -f core conftest.err conftest.$ac_objext
4219 test "x$ac_cv_prog_cc_c89" != "xno" && break
4221 rm -f conftest.$ac_ext
4226 case "x$ac_cv_prog_cc_c89" in
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229 $as_echo "none needed" >&6; } ;;
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4232 $as_echo "unsupported" >&6; } ;;
4234 CC="$CC $ac_cv_prog_cc_c89"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4236 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4238 if test "x$ac_cv_prog_cc_c89" != xno; then :
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248 if test "x$CC" != xcc; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4250 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4253 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4255 set dummy $CC; ac_cc=`$as_echo "$2" |
4256 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4257 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4258 $as_echo_n "(cached) " >&6
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4271 # Make sure it works both with $CC and with simple cc.
4272 # We do the test twice because some compilers refuse to overwrite an
4273 # existing .o file with -o, though they will create one.
4274 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4276 if { { case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282 (eval "$ac_try") 2>&5
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; } &&
4286 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_try") 2>&5
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; };
4297 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4298 if test "x$CC" != xcc; then
4299 # Test first that cc exists at all.
4300 if { ac_try='cc -c conftest.$ac_ext >&5'
4301 { { case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_try") 2>&5
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }; }; then
4311 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4313 if { { case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_try") 2>&5
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; } &&
4323 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329 (eval "$ac_try") 2>&5
4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; };
4337 # cc exists but doesn't like -o.
4338 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345 rm -f core conftest*
4348 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4350 $as_echo "yes" >&6; }
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4355 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4359 # expand $ac_aux_dir to an absolute path
4360 am_aux_dir=`cd $ac_aux_dir && pwd`
4362 # FIXME: we rely on the cache variable name because
4363 # there is no other way.
4365 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4366 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4367 if test "$am_t" != yes; then
4368 # Losing compiler, so override with the script.
4369 # FIXME: It is wrong to rewrite CC.
4370 # But if we don't then we get into trouble of one sort or another.
4371 # A longer-term fix would be to have automake use am__CC in this case,
4372 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4373 CC="$am_aux_dir/compile $CC"
4378 ac_cpp='$CXXCPP $CPPFLAGS'
4379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4382 if test -z "$CXX"; then
4383 if test -n "$CCC"; then
4386 if test -n "$ac_tool_prefix"; then
4387 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if test "${ac_cv_prog_CXX+set}" = set; then :
4394 $as_echo_n "(cached) " >&6
4396 if test -n "$CXX"; then
4397 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 if test -n "$CXX"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4419 $as_echo "$CXX" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4426 test -n "$CXX" && break
4429 if test -z "$CXX"; then
4431 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4433 # Extract the first word of "$ac_prog", so it can be a program name with args.
4434 set dummy $ac_prog; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4440 if test -n "$ac_ct_CXX"; then
4441 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_ac_ct_CXX="$ac_prog"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4461 if test -n "$ac_ct_CXX"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4463 $as_echo "$ac_ct_CXX" >&6; }
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4470 test -n "$ac_ct_CXX" && break
4473 if test "x$ac_ct_CXX" = x; then
4476 case $cross_compiling:$ac_tool_warned in
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4480 ac_tool_warned=yes ;;
4488 # Provide some information about the compiler.
4489 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4492 for ac_option in --version -v -V -qversion; do
4493 { { ac_try="$ac_compiler $ac_option >&5"
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4502 if test -s conftest.err; then
4504 ... rest of stderr output deleted ...
4505 10q' conftest.err >conftest.er1
4506 cat conftest.er1 >&5
4507 rm -f conftest.er1 conftest.err
4509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510 test $ac_status = 0; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4514 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4515 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4532 if ac_fn_cxx_try_compile "$LINENO"; then :
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4542 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4543 if test $ac_compiler_gnu = yes; then
4548 ac_test_CXXFLAGS=${CXXFLAGS+set}
4549 ac_save_CXXFLAGS=$CXXFLAGS
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4551 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4552 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4555 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4556 ac_cxx_werror_flag=yes
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_cv_prog_cxx_g=yes
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4588 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4601 if ac_fn_cxx_try_compile "$LINENO"; then :
4602 ac_cv_prog_cxx_g=yes
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4612 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4613 if test "$ac_test_CXXFLAGS" = set; then
4614 CXXFLAGS=$ac_save_CXXFLAGS
4615 elif test $ac_cv_prog_cxx_g = yes; then
4616 if test "$GXX" = yes; then
4622 if test "$GXX" = yes; then
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4645 if test -n "$GNATBIND"; then
4646 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 GNATBIND=$ac_cv_prog_GNATBIND
4666 if test -n "$GNATBIND"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4668 $as_echo "$GNATBIND" >&6; }
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4676 if test -z "$ac_cv_prog_GNATBIND"; then
4677 ac_ct_GNATBIND=$GNATBIND
4678 # Extract the first word of "gnatbind", so it can be a program name with args.
4679 set dummy gnatbind; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4685 if test -n "$ac_ct_GNATBIND"; then
4686 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4706 if test -n "$ac_ct_GNATBIND"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4708 $as_echo "$ac_ct_GNATBIND" >&6; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4714 if test "x$ac_ct_GNATBIND" = x; then
4717 case $cross_compiling:$ac_tool_warned in
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4721 ac_tool_warned=yes ;;
4723 GNATBIND=$ac_ct_GNATBIND
4726 GNATBIND="$ac_cv_prog_GNATBIND"
4729 if test -n "$ac_tool_prefix"; then
4730 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4731 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4737 if test -n "$GNATMAKE"; then
4738 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 GNATMAKE=$ac_cv_prog_GNATMAKE
4758 if test -n "$GNATMAKE"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4760 $as_echo "$GNATMAKE" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4768 if test -z "$ac_cv_prog_GNATMAKE"; then
4769 ac_ct_GNATMAKE=$GNATMAKE
4770 # Extract the first word of "gnatmake", so it can be a program name with args.
4771 set dummy gnatmake; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4777 if test -n "$ac_ct_GNATMAKE"; then
4778 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4798 if test -n "$ac_ct_GNATMAKE"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4800 $as_echo "$ac_ct_GNATMAKE" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4806 if test "x$ac_ct_GNATMAKE" = x; then
4809 case $cross_compiling:$ac_tool_warned in
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4813 ac_tool_warned=yes ;;
4815 GNATMAKE=$ac_ct_GNATMAKE
4818 GNATMAKE="$ac_cv_prog_GNATMAKE"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4822 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4823 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4826 cat >conftest.adb <<EOF
4827 procedure conftest is begin null; end conftest;
4829 acx_cv_cc_gcc_supports_ada=no
4830 # There is a bug in old released versions of GCC which causes the
4831 # driver to exit successfully when the appropriate language module
4832 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4833 # Therefore we must check for the error message as well as an
4834 # unsuccessful exit.
4835 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4836 # given a .adb file, but produce no object file. So we must check
4837 # if an object file was really produced to guard against this.
4838 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4839 if test x"$errors" = x && test -f conftest.$ac_objext; then
4840 acx_cv_cc_gcc_supports_ada=yes
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4845 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4847 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4854 # autoconf is lame and doesn't give us any substitution variable for this.
4855 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4856 NO_MINUS_C_MINUS_O=yes
4858 OUTPUT_OPTION='-o $@'
4863 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4864 # optimizations to be activated explicitly by the toplevel.
4866 */prev-gcc/xgcc*) ;;
4867 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4871 # -------------------------
4872 # Check C compiler features
4873 # -------------------------
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4882 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4883 # On Suns, sometimes $CPP names a directory.
4884 if test -n "$CPP" && test -d "$CPP"; then
4887 if test -z "$CPP"; then
4888 if test "${ac_cv_prog_CPP+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4891 # Double quotes because CPP needs to be expanded
4892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4895 for ac_c_preproc_warn_flag in '' yes
4897 # Use a header file that comes with gcc, so configuring glibc
4898 # with a fresh cross-compiler works.
4899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900 # <limits.h> exists even on freestanding compilers.
4901 # On the NeXT, cc -E runs the code through the compiler's parser,
4902 # not just through cpp. "Syntax error" is here to catch this case.
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4906 # include <limits.h>
4908 # include <assert.h>
4912 if ac_fn_c_try_cpp "$LINENO"; then :
4915 # Broken: fails on valid input.
4918 rm -f conftest.err conftest.$ac_ext
4920 # OK, works on sane cases. Now check whether nonexistent headers
4921 # can be detected and how.
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <ac_nonexistent.h>
4926 if ac_fn_c_try_cpp "$LINENO"; then :
4927 # Broken: success on invalid input.
4930 # Passes both tests.
4934 rm -f conftest.err conftest.$ac_ext
4937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938 rm -f conftest.err conftest.$ac_ext
4939 if $ac_preproc_ok; then :
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4952 $as_echo "$CPP" >&6; }
4954 for ac_c_preproc_warn_flag in '' yes
4956 # Use a header file that comes with gcc, so configuring glibc
4957 # with a fresh cross-compiler works.
4958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4959 # <limits.h> exists even on freestanding compilers.
4960 # On the NeXT, cc -E runs the code through the compiler's parser,
4961 # not just through cpp. "Syntax error" is here to catch this case.
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4965 # include <limits.h>
4967 # include <assert.h>
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4974 # Broken: fails on valid input.
4977 rm -f conftest.err conftest.$ac_ext
4979 # OK, works on sane cases. Now check whether nonexistent headers
4980 # can be detected and how.
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983 #include <ac_nonexistent.h>
4985 if ac_fn_c_try_cpp "$LINENO"; then :
4986 # Broken: success on invalid input.
4989 # Passes both tests.
4993 rm -f conftest.err conftest.$ac_ext
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then :
5001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details." "$LINENO" 5; }
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5016 if test "${ac_cv_path_GREP+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5019 if test -z "$GREP"; then
5020 ac_path_GREP_found=false
5021 # Loop through the user's path and test for each of PROGNAME-LIST
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5026 test -z "$as_dir" && as_dir=.
5027 for ac_prog in grep ggrep; do
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5030 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5031 # Check for GNU ac_path_GREP and select it if it is found.
5032 # Check for GNU $ac_path_GREP
5033 case `"$ac_path_GREP" --version 2>&1` in
5035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5038 $as_echo_n 0123456789 >"conftest.in"
5041 cat "conftest.in" "conftest.in" >"conftest.tmp"
5042 mv "conftest.tmp" "conftest.in"
5043 cp "conftest.in" "conftest.nl"
5044 $as_echo 'GREP' >> "conftest.nl"
5045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047 as_fn_arith $ac_count + 1 && ac_count=$as_val
5048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5049 # Best one so far, save it but keep looking for a better one
5050 ac_cv_path_GREP="$ac_path_GREP"
5051 ac_path_GREP_max=$ac_count
5053 # 10*(2^10) chars as input seems more than enough
5054 test $ac_count -gt 10 && break
5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059 $ac_path_GREP_found && break 3
5064 if test -z "$ac_cv_path_GREP"; then
5065 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5068 ac_cv_path_GREP=$GREP
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5073 $as_echo "$ac_cv_path_GREP" >&6; }
5074 GREP="$ac_cv_path_GREP"
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5078 $as_echo_n "checking for egrep... " >&6; }
5079 if test "${ac_cv_path_EGREP+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5082 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5083 then ac_cv_path_EGREP="$GREP -E"
5085 if test -z "$EGREP"; then
5086 ac_path_EGREP_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5092 test -z "$as_dir" && as_dir=.
5093 for ac_prog in egrep; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5096 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5097 # Check for GNU ac_path_EGREP and select it if it is found.
5098 # Check for GNU $ac_path_EGREP
5099 case `"$ac_path_EGREP" --version 2>&1` in
5101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5104 $as_echo_n 0123456789 >"conftest.in"
5107 cat "conftest.in" "conftest.in" >"conftest.tmp"
5108 mv "conftest.tmp" "conftest.in"
5109 cp "conftest.in" "conftest.nl"
5110 $as_echo 'EGREP' >> "conftest.nl"
5111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113 as_fn_arith $ac_count + 1 && ac_count=$as_val
5114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_EGREP="$ac_path_EGREP"
5117 ac_path_EGREP_max=$ac_count
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5125 $ac_path_EGREP_found && break 3
5130 if test -z "$ac_cv_path_EGREP"; then
5131 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5134 ac_cv_path_EGREP=$EGREP
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5140 $as_echo "$ac_cv_path_EGREP" >&6; }
5141 EGREP="$ac_cv_path_EGREP"
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5145 $as_echo_n "checking for ANSI C header files... " >&6; }
5146 if test "${ac_cv_header_stdc+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165 ac_cv_header_stdc=yes
5167 ac_cv_header_stdc=no
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 if test $ac_cv_header_stdc = yes; then
5172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 $EGREP "memchr" >/dev/null 2>&1; then :
5182 ac_cv_header_stdc=no
5188 if test $ac_cv_header_stdc = yes; then
5189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5196 $EGREP "free" >/dev/null 2>&1; then :
5199 ac_cv_header_stdc=no
5205 if test $ac_cv_header_stdc = yes; then
5206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5207 if test "$cross_compiling" = yes; then :
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5214 #if ((' ' & 0x0FF) == 0x020)
5215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5218 # define ISLOWER(c) \
5219 (('a' <= (c) && (c) <= 'i') \
5220 || ('j' <= (c) && (c) <= 'r') \
5221 || ('s' <= (c) && (c) <= 'z'))
5222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5230 for (i = 0; i < 256; i++)
5231 if (XOR (islower (i), ISLOWER (i))
5232 || toupper (i) != TOUPPER (i))
5237 if ac_fn_c_try_run "$LINENO"; then :
5240 ac_cv_header_stdc=no
5242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5243 conftest.$ac_objext conftest.beam conftest.$ac_ext
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5249 $as_echo "$ac_cv_header_stdc" >&6; }
5250 if test $ac_cv_header_stdc = yes; then
5252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5258 inttypes.h stdint.h unistd.h
5260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5263 eval as_val=\$$as_ac_Header
5264 if test "x$as_val" = x""yes; then :
5265 cat >>confdefs.h <<_ACEOF
5266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5275 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5276 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5283 if test "$MINIX" = yes; then
5285 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5288 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5291 $as_echo "#define _MINIX 1" >>confdefs.h
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5297 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5298 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5304 # define __EXTENSIONS__ 1
5305 $ac_includes_default
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 ac_cv_safe_to_define___extensions__=yes
5317 ac_cv_safe_to_define___extensions__=no
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5322 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5323 test $ac_cv_safe_to_define___extensions__ = yes &&
5324 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5326 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5328 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5330 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5332 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5336 ac_cpp='$CPP $CPPFLAGS'
5337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5341 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5342 # On Suns, sometimes $CPP names a directory.
5343 if test -n "$CPP" && test -d "$CPP"; then
5346 if test -z "$CPP"; then
5347 if test "${ac_cv_prog_CPP+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5350 # Double quotes because CPP needs to be expanded
5351 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5354 for ac_c_preproc_warn_flag in '' yes
5356 # Use a header file that comes with gcc, so configuring glibc
5357 # with a fresh cross-compiler works.
5358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359 # <limits.h> exists even on freestanding compilers.
5360 # On the NeXT, cc -E runs the code through the compiler's parser,
5361 # not just through cpp. "Syntax error" is here to catch this case.
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5365 # include <limits.h>
5367 # include <assert.h>
5371 if ac_fn_c_try_cpp "$LINENO"; then :
5374 # Broken: fails on valid input.
5377 rm -f conftest.err conftest.$ac_ext
5379 # OK, works on sane cases. Now check whether nonexistent headers
5380 # can be detected and how.
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 #include <ac_nonexistent.h>
5385 if ac_fn_c_try_cpp "$LINENO"; then :
5386 # Broken: success on invalid input.
5389 # Passes both tests.
5393 rm -f conftest.err conftest.$ac_ext
5396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5397 rm -f conftest.err conftest.$ac_ext
5398 if $ac_preproc_ok; then :
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5411 $as_echo "$CPP" >&6; }
5413 for ac_c_preproc_warn_flag in '' yes
5415 # Use a header file that comes with gcc, so configuring glibc
5416 # with a fresh cross-compiler works.
5417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5418 # <limits.h> exists even on freestanding compilers.
5419 # On the NeXT, cc -E runs the code through the compiler's parser,
5420 # not just through cpp. "Syntax error" is here to catch this case.
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5424 # include <limits.h>
5426 # include <assert.h>
5430 if ac_fn_c_try_cpp "$LINENO"; then :
5433 # Broken: fails on valid input.
5436 rm -f conftest.err conftest.$ac_ext
5438 # OK, works on sane cases. Now check whether nonexistent headers
5439 # can be detected and how.
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #include <ac_nonexistent.h>
5444 if ac_fn_c_try_cpp "$LINENO"; then :
5445 # Broken: success on invalid input.
5448 # Passes both tests.
5452 rm -f conftest.err conftest.$ac_ext
5455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5456 rm -f conftest.err conftest.$ac_ext
5457 if $ac_preproc_ok; then :
5460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5462 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5463 See \`config.log' for more details." "$LINENO" 5; }
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5473 $as_echo_n "checking for inline... " >&6; }
5474 if test "${ac_cv_c_inline+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5478 for ac_kw in inline __inline__ __inline; do
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5483 static $ac_kw foo_t static_foo () {return 0; }
5484 $ac_kw foo_t foo () {return 0; }
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 ac_cv_c_inline=$ac_kw
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 test "$ac_cv_c_inline" != no && break
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5497 $as_echo "$ac_cv_c_inline" >&6; }
5499 case $ac_cv_c_inline in
5502 case $ac_cv_c_inline in
5504 *) ac_val=$ac_cv_c_inline;;
5506 cat >>confdefs.h <<_ACEOF
5508 #define inline $ac_val
5515 # Check whether --enable-largefile was given.
5516 if test "${enable_largefile+set}" = set; then :
5517 enableval=$enable_largefile;
5520 if test "$enable_largefile" != no; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5523 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5524 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5525 $as_echo_n "(cached) " >&6
5527 ac_cv_sys_largefile_CC=no
5528 if test "$GCC" != yes; then
5531 # IRIX 6.2 and later do not support large files by default,
5532 # so use the C compiler's -n32 option if that helps.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <sys/types.h>
5536 /* Check that off_t can represent 2**63 - 1 correctly.
5537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5538 since some C++ compilers masquerading as C compilers
5539 incorrectly reject 9223372036854775807. */
5540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5542 && LARGE_OFF_T % 2147483647 == 1)
5552 if ac_fn_c_try_compile "$LINENO"; then :
5555 rm -f core conftest.err conftest.$ac_objext
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558 ac_cv_sys_largefile_CC=' -n32'; break
5560 rm -f core conftest.err conftest.$ac_objext
5564 rm -f conftest.$ac_ext
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5568 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5569 if test "$ac_cv_sys_largefile_CC" != no; then
5570 CC=$CC$ac_cv_sys_largefile_CC
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5574 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5575 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 #include <sys/types.h>
5582 /* Check that off_t can represent 2**63 - 1 correctly.
5583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5584 since some C++ compilers masquerading as C compilers
5585 incorrectly reject 9223372036854775807. */
5586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5588 && LARGE_OFF_T % 2147483647 == 1)
5598 if ac_fn_c_try_compile "$LINENO"; then :
5599 ac_cv_sys_file_offset_bits=no; break
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #define _FILE_OFFSET_BITS 64
5605 #include <sys/types.h>
5606 /* Check that off_t can represent 2**63 - 1 correctly.
5607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5608 since some C++ compilers masquerading as C compilers
5609 incorrectly reject 9223372036854775807. */
5610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5612 && LARGE_OFF_T % 2147483647 == 1)
5622 if ac_fn_c_try_compile "$LINENO"; then :
5623 ac_cv_sys_file_offset_bits=64; break
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 ac_cv_sys_file_offset_bits=unknown
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5631 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5632 case $ac_cv_sys_file_offset_bits in #(
5635 cat >>confdefs.h <<_ACEOF
5636 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5641 if test $ac_cv_sys_file_offset_bits = unknown; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5643 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5644 if test "${ac_cv_sys_large_files+set}" = set; then :
5645 $as_echo_n "(cached) " >&6
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 #include <sys/types.h>
5651 /* Check that off_t can represent 2**63 - 1 correctly.
5652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5653 since some C++ compilers masquerading as C compilers
5654 incorrectly reject 9223372036854775807. */
5655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5657 && LARGE_OFF_T % 2147483647 == 1)
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668 ac_cv_sys_large_files=no; break
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #define _LARGE_FILES 1
5674 #include <sys/types.h>
5675 /* Check that off_t can represent 2**63 - 1 correctly.
5676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5677 since some C++ compilers masquerading as C compilers
5678 incorrectly reject 9223372036854775807. */
5679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5681 && LARGE_OFF_T % 2147483647 == 1)
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 ac_cv_sys_large_files=1; break
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 ac_cv_sys_large_files=unknown
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5700 $as_echo "$ac_cv_sys_large_files" >&6; }
5701 case $ac_cv_sys_large_files in #(
5704 cat >>confdefs.h <<_ACEOF
5705 #define _LARGE_FILES $ac_cv_sys_large_files
5714 # sizeof(char) is 1 by definition.
5715 # The cast to long int works around a bug in the HP C Compiler
5716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5718 # This bug is HP SR number 8606223364.
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5720 $as_echo_n "checking size of void *... " >&6; }
5721 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5724 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5727 if test "$ac_cv_type_void_p" = yes; then
5728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5730 { as_fn_set_status 77
5731 as_fn_error "cannot compute sizeof (void *)
5732 See \`config.log' for more details." "$LINENO" 5; }; }
5734 ac_cv_sizeof_void_p=0
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5740 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5744 cat >>confdefs.h <<_ACEOF
5745 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5749 # The cast to long int works around a bug in the HP C Compiler
5750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5752 # This bug is HP SR number 8606223364.
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5754 $as_echo_n "checking size of short... " >&6; }
5755 if test "${ac_cv_sizeof_short+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5758 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5761 if test "$ac_cv_type_short" = yes; then
5762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5764 { as_fn_set_status 77
5765 as_fn_error "cannot compute sizeof (short)
5766 See \`config.log' for more details." "$LINENO" 5; }; }
5768 ac_cv_sizeof_short=0
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5774 $as_echo "$ac_cv_sizeof_short" >&6; }
5778 cat >>confdefs.h <<_ACEOF
5779 #define SIZEOF_SHORT $ac_cv_sizeof_short
5783 # The cast to long int works around a bug in the HP C Compiler
5784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5786 # This bug is HP SR number 8606223364.
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5788 $as_echo_n "checking size of int... " >&6; }
5789 if test "${ac_cv_sizeof_int+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5792 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5795 if test "$ac_cv_type_int" = yes; then
5796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5798 { as_fn_set_status 77
5799 as_fn_error "cannot compute sizeof (int)
5800 See \`config.log' for more details." "$LINENO" 5; }; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5808 $as_echo "$ac_cv_sizeof_int" >&6; }
5812 cat >>confdefs.h <<_ACEOF
5813 #define SIZEOF_INT $ac_cv_sizeof_int
5817 # The cast to long int works around a bug in the HP C Compiler
5818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5820 # This bug is HP SR number 8606223364.
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5822 $as_echo_n "checking size of long... " >&6; }
5823 if test "${ac_cv_sizeof_long+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5826 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5829 if test "$ac_cv_type_long" = yes; then
5830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5832 { as_fn_set_status 77
5833 as_fn_error "cannot compute sizeof (long)
5834 See \`config.log' for more details." "$LINENO" 5; }; }
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5842 $as_echo "$ac_cv_sizeof_long" >&6; }
5846 cat >>confdefs.h <<_ACEOF
5847 #define SIZEOF_LONG $ac_cv_sizeof_long
5851 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5852 if test "x$ac_cv_type_long_long" = x""yes; then :
5854 cat >>confdefs.h <<_ACEOF
5855 #define HAVE_LONG_LONG 1
5858 # The cast to long int works around a bug in the HP C Compiler
5859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5861 # This bug is HP SR number 8606223364.
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5863 $as_echo_n "checking size of long long... " >&6; }
5864 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5870 if test "$ac_cv_type_long_long" = yes; then
5871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5873 { as_fn_set_status 77
5874 as_fn_error "cannot compute sizeof (long long)
5875 See \`config.log' for more details." "$LINENO" 5; }; }
5877 ac_cv_sizeof_long_long=0
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5883 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5887 cat >>confdefs.h <<_ACEOF
5888 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5894 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5895 if test "x$ac_cv_type___int64" = x""yes; then :
5897 cat >>confdefs.h <<_ACEOF
5898 #define HAVE___INT64 1
5901 # The cast to long int works around a bug in the HP C Compiler
5902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5904 # This bug is HP SR number 8606223364.
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5906 $as_echo_n "checking size of __int64... " >&6; }
5907 if test "${ac_cv_sizeof___int64+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5910 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5913 if test "$ac_cv_type___int64" = yes; then
5914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5916 { as_fn_set_status 77
5917 as_fn_error "cannot compute sizeof (__int64)
5918 See \`config.log' for more details." "$LINENO" 5; }; }
5920 ac_cv_sizeof___int64=0
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5926 $as_echo "$ac_cv_sizeof___int64" >&6; }
5930 cat >>confdefs.h <<_ACEOF
5931 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5937 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5938 case $ac_cv_c_int8_t in #(
5942 cat >>confdefs.h <<_ACEOF
5943 #define int8_t $ac_cv_c_int8_t
5948 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5949 case $ac_cv_c_int16_t in #(
5953 cat >>confdefs.h <<_ACEOF
5954 #define int16_t $ac_cv_c_int16_t
5959 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5960 case $ac_cv_c_int32_t in #(
5964 cat >>confdefs.h <<_ACEOF
5965 #define int32_t $ac_cv_c_int32_t
5970 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5971 case $ac_cv_c_int64_t in #(
5975 cat >>confdefs.h <<_ACEOF
5976 #define int64_t $ac_cv_c_int64_t
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5983 $as_echo_n "checking for long long int... " >&6; }
5984 if test "${ac_cv_type_long_long_int+set}" = set; then :
5985 $as_echo_n "(cached) " >&6
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5990 /* For now, do not test the preprocessor; as of 2007 there are too many
5991 implementations with broken preprocessors. Perhaps this can
5992 be revisited in 2012. In the meantime, code should not expect
5993 #if to work with literals wider than 32 bits. */
5994 /* Test literals. */
5995 long long int ll = 9223372036854775807ll;
5996 long long int nll = -9223372036854775807LL;
5997 unsigned long long int ull = 18446744073709551615ULL;
5998 /* Test constant expressions. */
5999 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6001 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6007 /* Test availability of runtime routines for shift and division. */
6008 long long int llmax = 9223372036854775807ll;
6009 unsigned long long int ullmax = 18446744073709551615ull;
6010 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6011 | (llmax / ll) | (llmax % ll)
6012 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6013 | (ullmax / ull) | (ullmax % ull));
6019 if ac_fn_c_try_link "$LINENO"; then :
6020 if test "$cross_compiling" = yes; then :
6021 ac_cv_type_long_long_int=yes
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6028 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6029 # define LLONG_MAX (HALF - 1 + HALF)
6034 long long int n = 1;
6038 long long int m = n << i;
6041 if (LLONG_MAX / 2 < m)
6049 if ac_fn_c_try_run "$LINENO"; then :
6050 ac_cv_type_long_long_int=yes
6052 ac_cv_type_long_long_int=no
6054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6055 conftest.$ac_objext conftest.beam conftest.$ac_ext
6059 ac_cv_type_long_long_int=no
6061 rm -f core conftest.err conftest.$ac_objext \
6062 conftest$ac_exeext conftest.$ac_ext
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6065 $as_echo "$ac_cv_type_long_long_int" >&6; }
6066 if test $ac_cv_type_long_long_int = yes; then
6068 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6074 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6075 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6077 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6080 test $ac_cv_type_long_long_int = yes \
6081 && ac_type='long long int' \
6082 || ac_type='long int'
6084 cat >>confdefs.h <<_ACEOF
6085 #define intmax_t $ac_type
6092 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6093 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6095 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6098 for ac_type in 'int' 'long int' 'long long int'; do
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 $ac_includes_default
6105 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6112 if ac_fn_c_try_compile "$LINENO"; then :
6114 cat >>confdefs.h <<_ACEOF
6115 #define intptr_t $ac_type
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 test -z "$ac_type" && break
6126 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6127 case $ac_cv_c_uint8_t in #(
6131 $as_echo "#define _UINT8_T 1" >>confdefs.h
6134 cat >>confdefs.h <<_ACEOF
6135 #define uint8_t $ac_cv_c_uint8_t
6140 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6141 case $ac_cv_c_uint16_t in #(
6146 cat >>confdefs.h <<_ACEOF
6147 #define uint16_t $ac_cv_c_uint16_t
6152 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6153 case $ac_cv_c_uint32_t in #(
6157 $as_echo "#define _UINT32_T 1" >>confdefs.h
6160 cat >>confdefs.h <<_ACEOF
6161 #define uint32_t $ac_cv_c_uint32_t
6166 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6167 case $ac_cv_c_uint64_t in #(
6171 $as_echo "#define _UINT64_T 1" >>confdefs.h
6174 cat >>confdefs.h <<_ACEOF
6175 #define uint64_t $ac_cv_c_uint64_t
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6182 $as_echo_n "checking for unsigned long long int... " >&6; }
6183 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6189 /* For now, do not test the preprocessor; as of 2007 there are too many
6190 implementations with broken preprocessors. Perhaps this can
6191 be revisited in 2012. In the meantime, code should not expect
6192 #if to work with literals wider than 32 bits. */
6193 /* Test literals. */
6194 long long int ll = 9223372036854775807ll;
6195 long long int nll = -9223372036854775807LL;
6196 unsigned long long int ull = 18446744073709551615ULL;
6197 /* Test constant expressions. */
6198 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6200 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6206 /* Test availability of runtime routines for shift and division. */
6207 long long int llmax = 9223372036854775807ll;
6208 unsigned long long int ullmax = 18446744073709551615ull;
6209 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6210 | (llmax / ll) | (llmax % ll)
6211 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6212 | (ullmax / ull) | (ullmax % ull));
6218 if ac_fn_c_try_link "$LINENO"; then :
6219 ac_cv_type_unsigned_long_long_int=yes
6221 ac_cv_type_unsigned_long_long_int=no
6223 rm -f core conftest.err conftest.$ac_objext \
6224 conftest$ac_exeext conftest.$ac_ext
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6227 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6228 if test $ac_cv_type_unsigned_long_long_int = yes; then
6230 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6236 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6237 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6239 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6242 test $ac_cv_type_unsigned_long_long_int = yes \
6243 && ac_type='unsigned long long int' \
6244 || ac_type='unsigned long int'
6246 cat >>confdefs.h <<_ACEOF
6247 #define uintmax_t $ac_type
6254 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6255 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6257 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6260 for ac_type in 'unsigned int' 'unsigned long int' \
6261 'unsigned long long int'; do
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 $ac_includes_default
6268 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6275 if ac_fn_c_try_compile "$LINENO"; then :
6277 cat >>confdefs.h <<_ACEOF
6278 #define uintptr_t $ac_type
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 test -z "$ac_type" && break
6302 # ---------------------
6303 # Warnings and checking
6304 # ---------------------
6306 # Check $CC warning features (if it's GCC).
6307 # We want to use -pedantic, but we don't want warnings about
6310 # * overlong strings
6311 # So, we only use -pedantic if we can disable those warnings.
6314 save_CFLAGS="$CFLAGS"
6315 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6316 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6319 $as_echo_n "checking whether $CC supports $option... " >&6; }
6320 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6321 $as_echo_n "(cached) " >&6
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6335 if ac_fn_c_try_compile "$LINENO"; then :
6336 eval "$as_acx_Woption=yes"
6338 eval "$as_acx_Woption=no"
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 eval ac_res=\$$as_acx_Woption
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6345 $as_echo "$ac_res" >&6; }
6346 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6347 loose_warn="$loose_warn${loose_warn:+ }$option"
6350 CFLAGS="$save_CFLAGS"
6353 save_CFLAGS="$CFLAGS"
6354 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6355 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6358 $as_echo_n "checking whether $CC supports $option... " >&6; }
6359 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6360 $as_echo_n "(cached) " >&6
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 eval "$as_acx_Woption=yes"
6377 eval "$as_acx_Woption=no"
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 eval ac_res=\$$as_acx_Woption
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6384 $as_echo "$ac_res" >&6; }
6385 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6386 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6389 CFLAGS="$save_CFLAGS"
6392 save_CFLAGS="$CFLAGS"
6393 for option in -Wmissing-format-attribute; do
6394 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6397 $as_echo_n "checking whether $CC supports $option... " >&6; }
6398 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6399 $as_echo_n "(cached) " >&6
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 eval "$as_acx_Woption=yes"
6416 eval "$as_acx_Woption=no"
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 eval ac_res=\$$as_acx_Woption
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6425 strict_warn="$strict_warn${strict_warn:+ }$option"
6428 CFLAGS="$save_CFLAGS"
6431 save_CFLAGS="$CFLAGS"
6432 for option in -Wold-style-definition -Wc++-compat; do
6433 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6436 $as_echo_n "checking whether $CC supports $option... " >&6; }
6437 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6438 $as_echo_n "(cached) " >&6
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 eval "$as_acx_Woption=yes"
6455 eval "$as_acx_Woption=no"
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 eval ac_res=\$$as_acx_Woption
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6462 $as_echo "$ac_res" >&6; }
6463 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6464 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6467 CFLAGS="$save_CFLAGS"
6469 if test "$GCC" = yes; then :
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6471 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6472 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6473 $as_echo_n "(cached) " >&6
6475 save_CFLAGS="$CFLAGS"
6476 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6491 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 CFLAGS="$save_CFLAGS"
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6497 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6498 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6499 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6504 # Check whether --enable-werror-always was given.
6505 if test "${enable_werror_always+set}" = set; then :
6506 enableval=$enable_werror_always;
6508 enable_werror_always=no
6511 if test $enable_werror_always = yes; then :
6512 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6517 # The above macros do nothing if the compiler is not GCC. However, the
6518 # Makefile has more goo to add other flags, so these variables are used
6519 # to enable warnings only for GCC.
6522 if test "x$GCC" = "xyes"; then
6523 warn_cflags='$(GCC_WARN_CFLAGS)'
6524 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6529 # Enable expensive internal checks
6531 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6535 # Check whether --enable-checking was given.
6536 if test "${enable_checking+set}" = set; then :
6537 enableval=$enable_checking; ac_checking_flags="${enableval}"
6540 # Determine the default checks.
6541 if test x$is_release = x ; then
6542 ac_checking_flags=yes
6544 ac_checking_flags=release
6548 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6549 for check in release $ac_checking_flags
6552 # these set all the flags to specific states
6553 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6554 ac_fold_checking= ; ac_gc_checking=1 ;
6555 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6556 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6557 ac_tree_checking=1 ; ac_valgrind_checking= ;
6558 ac_types_checking=1 ;;
6559 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6560 ac_fold_checking= ; ac_gc_checking= ;
6561 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6562 ac_rtlflag_checking= ; ac_runtime_checking= ;
6563 ac_tree_checking= ; ac_valgrind_checking= ;
6564 ac_types_checking= ;;
6565 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6566 ac_fold_checking=1 ; ac_gc_checking=1 ;
6567 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6568 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6569 ac_tree_checking=1 ; ac_valgrind_checking= ;
6570 ac_types_checking=1 ;;
6571 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6572 ac_fold_checking= ; ac_gc_checking= ;
6573 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6574 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6575 ac_tree_checking= ; ac_valgrind_checking= ;
6576 ac_types_checking= ;;
6577 # these enable particular checks
6578 assert) ac_assert_checking=1 ;;
6579 df) ac_df_checking=1 ;;
6580 fold) ac_fold_checking=1 ;;
6581 gc) ac_gc_checking=1 ;;
6582 gcac) ac_gc_always_collect=1 ;;
6583 gimple) ac_gimple_checking=1 ;;
6584 misc) ac_checking=1 ;;
6585 rtl) ac_rtl_checking=1 ;;
6586 rtlflag) ac_rtlflag_checking=1 ;;
6587 runtime) ac_runtime_checking=1 ;;
6588 tree) ac_tree_checking=1 ;;
6589 types) ac_types_checking=1 ;;
6590 valgrind) ac_valgrind_checking=1 ;;
6591 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6597 if test x$ac_checking != x ; then
6599 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6601 nocommon_flag=-fno-common
6604 if test x$ac_df_checking != x ; then
6606 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6609 if test x$ac_assert_checking != x ; then
6611 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6614 if test x$ac_gimple_checking != x ; then
6616 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6620 if test x$ac_runtime_checking != x ; then
6622 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6625 if test x$ac_tree_checking != x ; then
6627 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6629 TREEBROWSER=tree-browser.o
6631 if test x$ac_types_checking != x ; then
6633 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6637 if test x$ac_rtl_checking != x ; then
6639 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6642 if test x$ac_rtlflag_checking != x ; then
6644 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6647 if test x$ac_gc_checking != x ; then
6649 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6652 if test x$ac_gc_always_collect != x ; then
6654 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6657 if test x$ac_fold_checking != x ; then
6659 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6662 valgrind_path_defines=
6665 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6666 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6674 if test x$ac_valgrind_checking != x ; then
6675 # It is certainly possible that there's valgrind but no valgrind.h.
6676 # GCC relies on making annotations so we must have both.
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6678 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 #include <valgrind/memcheck.h>
6682 #ifndef VALGRIND_DISCARD
6683 #error VALGRIND_DISCARD not defined
6686 if ac_fn_c_try_cpp "$LINENO"; then :
6687 gcc_cv_header_valgrind_memcheck_h=yes
6689 gcc_cv_header_valgrind_memcheck_h=no
6691 rm -f conftest.err conftest.$ac_ext
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6693 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6695 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 #include <memcheck.h>
6699 #ifndef VALGRIND_DISCARD
6700 #error VALGRIND_DISCARD not defined
6703 if ac_fn_c_try_cpp "$LINENO"; then :
6704 gcc_cv_header_memcheck_h=yes
6706 gcc_cv_header_memcheck_h=no
6708 rm -f conftest.err conftest.$ac_ext
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6710 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6712 # Prepare PATH_SEPARATOR.
6713 # The user is always right.
6714 if test "${PATH_SEPARATOR+set}" != set; then
6715 echo "#! /bin/sh" >conf$$.sh
6716 echo "exit 0" >>conf$$.sh
6718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6726 # Find out how to test for executable files. Don't use a zero-byte file,
6727 # as systems may use methods other than mode bits to determine executability.
6728 cat >conf$$.file <<_ASEOF
6732 chmod +x conf$$.file
6733 if test -x conf$$.file >/dev/null 2>&1; then
6734 ac_executable_p="test -x"
6736 ac_executable_p="test -f"
6740 # Extract the first word of "valgrind", so it can be a program name with args.
6741 set dummy valgrind; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6747 case "$valgrind_path" in
6749 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6752 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6753 for ac_dir in $PATH; do
6755 test -z "$ac_dir" && ac_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6758 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6759 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6769 valgrind_path="$ac_cv_path_valgrind_path"
6770 if test -n "$valgrind_path"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6772 $as_echo "$valgrind_path" >&6; }
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6778 if test "x$valgrind_path" = "x" \
6779 || (test $have_valgrind_h = no \
6780 && test $gcc_cv_header_memcheck_h = no \
6781 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6782 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6784 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6785 valgrind_command="$valgrind_path -q"
6787 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6789 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6791 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6794 if test $gcc_cv_header_memcheck_h = yes; then
6796 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6803 # Enable code coverage collection
6804 # Check whether --enable-coverage was given.
6805 if test "${enable_coverage+set}" = set; then :
6806 enableval=$enable_coverage; case "${enableval}" in
6808 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6811 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6814 # a.k.a. --disable-coverage
6818 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6827 # Check whether --enable-gather-detailed-mem-stats was given.
6828 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6829 enableval=$enable_gather_detailed_mem_stats;
6831 enable_gather_detailed_mem_stats=no
6834 if test x$enable_gather_detailed_mem_stats = xyes ; then
6836 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6840 # -------------------------------
6841 # Miscenalleous configure options
6842 # -------------------------------
6844 # See if we are building gcc with C++.
6845 # Check whether --enable-build-with-cxx was given.
6846 if test "${enable_build_with_cxx+set}" = set; then :
6847 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6849 ENABLE_BUILD_WITH_CXX=no
6853 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6855 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6861 # Check whether --with-stabs was given.
6862 if test "${with_stabs+set}" = set; then :
6863 withval=$with_stabs; stabs="$with_stabs"
6869 # Determine whether or not multilibs are enabled.
6870 # Check whether --enable-multilib was given.
6871 if test "${enable_multilib+set}" = set; then :
6872 enableval=$enable_multilib;
6879 # Enable __cxa_atexit for C++.
6880 # Check whether --enable-__cxa_atexit was given.
6881 if test "${enable___cxa_atexit+set}" = set; then :
6882 enableval=$enable___cxa_atexit;
6886 # Enable C extension for decimal float if target supports it.
6888 # Check whether --enable-decimal-float was given.
6889 if test "${enable_decimal_float+set}" = set; then :
6890 enableval=$enable_decimal_float;
6891 case $enable_decimal_float in
6892 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6893 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6894 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6900 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6901 i?86*-*-mingw* | x86_64*-*-mingw* | \
6903 enable_decimal_float=yes
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6907 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6908 enable_decimal_float=no
6915 # x86's use BID format instead of DPD
6916 case x$enable_decimal_float in
6919 i?86*-*-* | x86_64*-*-*)
6920 enable_decimal_float=bid
6923 enable_decimal_float=dpd
6926 default_decimal_float=$enable_decimal_float
6929 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6930 # dependency on libdecnumber.
6931 default_decimal_float=dpd
6938 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6940 cat >>confdefs.h <<_ACEOF
6941 #define ENABLE_DECIMAL_FLOAT $dfp
6945 # Use default_decimal_float for dependency.
6946 enable_decimal_float=$default_decimal_float
6948 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6950 cat >>confdefs.h <<_ACEOF
6951 #define ENABLE_DECIMAL_BID_FORMAT $bid
6955 # Enable C extension for fixed-point arithmetic.
6956 # Check whether --enable-fixed-point was given.
6957 if test "${enable_fixed_point+set}" = set; then :
6958 enableval=$enable_fixed_point;
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6967 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6968 enable_fixed_point=no
6971 enable_fixed_point=yes
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6977 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6978 enable_fixed_point=no
6986 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6988 cat >>confdefs.h <<_ACEOF
6989 #define ENABLE_FIXED_POINT $fixedpoint
6994 # Pass with no value to take the default
6995 # Pass with a value to specify a thread package
6996 # Check whether --enable-threads was given.
6997 if test "${enable_threads+set}" = set; then :
6998 enableval=$enable_threads;
7004 # Check whether --enable-tls was given.
7005 if test "${enable_tls+set}" = set; then :
7006 enableval=$enable_tls;
7009 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7010 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7018 # Check whether --enable-objc-gc was given.
7019 if test "${enable_objc_gc+set}" = set; then :
7020 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7031 # Check whether --with-dwarf2 was given.
7032 if test "${with_dwarf2+set}" = set; then :
7033 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7039 # Check whether --enable-shared was given.
7040 if test "${enable_shared+set}" = set; then :
7041 enableval=$enable_shared;
7042 case $enable_shared in
7046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7047 for pkg in $enableval; do
7048 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7063 # Check whether --with-build-sysroot was given.
7064 if test "${with_build_sysroot+set}" = set; then :
7065 withval=$with_build_sysroot;
7070 # Check whether --with-sysroot was given.
7071 if test "${with_sysroot+set}" = set; then :
7072 withval=$with_sysroot;
7073 case ${with_sysroot} in
7074 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7075 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7078 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7079 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7081 if test "x$prefix" = xNONE; then
7082 test_prefix=/usr/local
7086 if test "x$exec_prefix" = xNONE; then
7087 test_exec_prefix=$test_prefix
7089 test_exec_prefix=$exec_prefix
7091 case ${TARGET_SYSTEM_ROOT} in
7092 "${test_prefix}"|"${test_prefix}/"*|\
7093 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7094 '${prefix}'|'${prefix}/'*|\
7095 '${exec_prefix}'|'${exec_prefix}/'*)
7096 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7097 TARGET_SYSTEM_ROOT_DEFINE="$t"
7104 TARGET_SYSTEM_ROOT_DEFINE=
7105 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7114 # Check whether --with-specs was given.
7115 if test "${with_specs+set}" = set; then :
7116 withval=$with_specs; CONFIGURE_SPECS=$withval
7126 # Check whether --with-pkgversion was given.
7127 if test "${with_pkgversion+set}" = set; then :
7128 withval=$with_pkgversion; case "$withval" in
7129 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7131 *) PKGVERSION="($withval) " ;;
7142 # Check whether --with-bugurl was given.
7143 if test "${with_bugurl+set}" = set; then :
7144 withval=$with_bugurl; case "$withval" in
7145 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7148 *) BUGURL="$withval"
7152 BUGURL="http://gcc.gnu.org/bugs.html"
7162 REPORT_BUGS_TO="<$BUGURL>"
7163 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7170 # Sanity check enable_languages in case someone does not run the toplevel
7171 # configure # script.
7172 # Check whether --enable-languages was given.
7173 if test "${enable_languages+set}" = set; then :
7174 enableval=$enable_languages; case ,${enable_languages}, in
7176 # go safe -- we cannot be much sure without the toplevel
7178 # analysis of which target libs are present and usable
7182 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7187 enable_languages=c,${enable_languages}
7196 # Check whether --with-multilib-list was given.
7197 if test "${with_multilib_list+set}" = set; then :
7198 withval=$with_multilib_list; :
7200 with_multilib_list=default
7204 # -------------------------
7205 # Checks for other programs
7206 # -------------------------
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7209 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7211 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7212 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7213 $as_echo_n "(cached) " >&6
7215 cat >conftest.make <<\_ACEOF
7218 @echo '@@@%%%=$(MAKE)=@@@%%%'
7220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7223 eval ac_cv_prog_make_${ac_make}_set=yes;;
7225 eval ac_cv_prog_make_${ac_make}_set=no;;
7229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7231 $as_echo "yes" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 SET_MAKE="MAKE=${MAKE-make}"
7240 # Find some useful tools
7241 for ac_prog in gawk mawk nawk awk
7243 # Extract the first word of "$ac_prog", so it can be a program name with args.
7244 set dummy $ac_prog; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_AWK+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7250 if test -n "$AWK"; then
7251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_AWK="$ac_prog"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 if test -n "$AWK"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7273 $as_echo "$AWK" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7280 test -n "$AWK" && break
7283 # We need awk to create options.c and options.h.
7284 # Bail out if it's missing.
7286 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7290 $as_echo_n "checking whether ln -s works... " >&6; }
7291 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7294 rm -f conftestdata_t
7295 echo >conftestdata_f
7296 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7298 gcc_cv_prog_LN_S="ln -s"
7300 if ln conftestdata_f conftestdata_t 2>/dev/null
7304 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7306 gcc_cv_prog_LN_S="cp -p"
7312 rm -f conftestdata_f conftestdata_t
7315 LN_S="$gcc_cv_prog_LN_S"
7316 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7318 $as_echo "yes" >&6; }
7320 if test "$gcc_cv_prog_LN_S" = "ln"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7322 $as_echo "no, using ln" >&6; }
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7325 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7330 $as_echo_n "checking whether ln works... " >&6; }
7331 if test "${acx_cv_prog_LN+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7334 rm -f conftestdata_t
7335 echo >conftestdata_f
7336 if ln conftestdata_f conftestdata_t 2>/dev/null
7342 rm -f conftestdata_f conftestdata_t
7345 if test $acx_cv_prog_LN = no; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7348 $as_echo "no, using $LN" >&6; }
7350 LN="$acx_cv_prog_LN"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7352 $as_echo "yes" >&6; }
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7363 if test -n "$RANLIB"; then
7364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 RANLIB=$ac_cv_prog_RANLIB
7384 if test -n "$RANLIB"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7386 $as_echo "$RANLIB" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7394 if test -z "$ac_cv_prog_RANLIB"; then
7395 ac_ct_RANLIB=$RANLIB
7396 # Extract the first word of "ranlib", so it can be a program name with args.
7397 set dummy ranlib; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$ac_ct_RANLIB"; then
7404 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_ac_ct_RANLIB="ranlib"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7424 if test -n "$ac_ct_RANLIB"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7426 $as_echo "$ac_ct_RANLIB" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7432 if test "x$ac_ct_RANLIB" = x; then
7435 case $cross_compiling:$ac_tool_warned in
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7441 RANLIB=$ac_ct_RANLIB
7444 RANLIB="$ac_cv_prog_RANLIB"
7449 # By default, the Darwin ranlib will not treat common symbols as
7450 # definitions when building the archive table of contents. Other
7451 # ranlibs do that; pass an option to the Darwin ranlib that makes
7452 # it behave similarly.
7460 # Find a good install program. We prefer a C program (faster),
7461 # so one script is as good as another. But avoid the broken or
7462 # incompatible versions:
7463 # SysV /etc/install, /usr/sbin/install
7464 # SunOS /usr/etc/install
7465 # IRIX /sbin/install
7467 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7468 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7469 # ./install, which can be erroneously created by make from ./install.sh.
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7471 $as_echo_n "checking for a BSD compatible install... " >&6; }
7472 if test -z "$INSTALL"; then
7473 if test "${ac_cv_path_install+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7476 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7477 for ac_dir in $PATH; do
7478 # Account for people who put trailing slashes in PATH elements.
7480 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7482 # OSF1 and SCO ODT 3.0 have their own names for install.
7483 for ac_prog in ginstall scoinst install; do
7484 if test -f $ac_dir/$ac_prog; then
7485 if test $ac_prog = install &&
7486 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7487 # AIX install. It has an incompatible calling convention.
7488 # OSF/1 installbsd also uses dspmsg, but is usable.
7491 ac_cv_path_install="$ac_dir/$ac_prog -c"
7502 if test "${ac_cv_path_install+set}" = set; then
7503 INSTALL="$ac_cv_path_install"
7505 # As a last resort, use the slow shell script. We don't cache a
7506 # path for INSTALL within a source directory, because that will
7507 # break other packages using the cache if that directory is
7508 # removed, or if the path is relative.
7509 INSTALL="$ac_install_sh"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7513 $as_echo "$INSTALL" >&6; }
7515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7516 # It thinks the first close brace ends the variable substitution.
7517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7522 # See if cmp has --ignore-initial.
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7524 $as_echo_n "checking for cmp's capabilities... " >&6; }
7525 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7530 gcc_cv_prog_cmp_skip=slowcompare
7531 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7532 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7535 gcc_cv_prog_cmp_skip=gnucompare
7538 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7539 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7540 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7543 gcc_cv_prog_cmp_skip=fastcompare
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7551 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7552 make_compare_target=$gcc_cv_prog_cmp_skip
7556 # See if we have the mktemp command.
7557 # Extract the first word of "mktemp", so it can be a program name with args.
7558 set dummy mktemp; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7564 if test -n "$have_mktemp_command"; then
7565 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 ac_cv_prog_have_mktemp_command="yes"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7585 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7586 if test -n "$have_mktemp_command"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7588 $as_echo "$have_mktemp_command" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 # See if makeinfo has been installed and is modern enough
7597 # that we can use it.
7599 # Extract the first word of "makeinfo", so it can be a program name with args.
7600 set dummy makeinfo; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7606 if test -n "$MAKEINFO"; then
7607 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_MAKEINFO="makeinfo"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 MAKEINFO=$ac_cv_prog_MAKEINFO
7627 if test -n "$MAKEINFO"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7629 $as_echo "$MAKEINFO" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7636 if test -n "$MAKEINFO"; then
7637 # Found it, now check the version.
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7639 $as_echo_n "checking for modern makeinfo... " >&6; }
7640 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7643 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7644 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7646 case $ac_prog_version in
7647 '') gcc_cv_prog_makeinfo_modern=no;;
7648 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7649 *) gcc_cv_prog_makeinfo_modern=no;;
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7654 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7656 gcc_cv_prog_makeinfo_modern=no
7658 if test $gcc_cv_prog_makeinfo_modern = no; then
7659 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7662 if test $gcc_cv_prog_makeinfo_modern = no; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7664 *** Makeinfo is missing or too old.
7665 *** Info documentation will not be built." >&5
7666 $as_echo "$as_me: WARNING:
7667 *** Makeinfo is missing or too old.
7668 *** Info documentation will not be built." >&2;}
7675 # Is pod2man recent enough to regenerate manpages?
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7677 $as_echo_n "checking for recent Pod::Man... " >&6; }
7678 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7680 $as_echo "yes" >&6; }
7681 GENERATED_MANPAGES=generated-manpages
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7689 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7694 # Extract the first word of "$ac_prog", so it can be a program name with args.
7695 set dummy $ac_prog; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if test "${ac_cv_prog_FLEX+set}" = set; then :
7699 $as_echo_n "(cached) " >&6
7701 if test -n "$FLEX"; then
7702 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_prog_FLEX="$ac_prog"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 FLEX=$ac_cv_prog_FLEX
7722 if test -n "$FLEX"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7724 $as_echo "$FLEX" >&6; }
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7731 test -n "$FLEX" && break
7733 test -n "$FLEX" || FLEX="$MISSING flex"
7737 for ac_prog in bison
7739 # Extract the first word of "$ac_prog", so it can be a program name with args.
7740 set dummy $ac_prog; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if test "${ac_cv_prog_BISON+set}" = set; then :
7744 $as_echo_n "(cached) " >&6
7746 if test -n "$BISON"; then
7747 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7756 ac_cv_prog_BISON="$ac_prog"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 BISON=$ac_cv_prog_BISON
7767 if test -n "$BISON"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7769 $as_echo "$BISON" >&6; }
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7776 test -n "$BISON" && break
7778 test -n "$BISON" || BISON="$MISSING bison"
7781 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7782 # check for build == host before using them.
7785 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7786 && test -d ../binutils ; then
7787 NM='${objdir}/../binutils/nm-new'
7789 # Extract the first word of "nm", so it can be a program name with args.
7790 set dummy nm; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if test "${ac_cv_prog_NM+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7796 if test -n "$NM"; then
7797 ac_cv_prog_NM="$NM" # Let the user override the test.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7818 if test -n "$NM"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7820 $as_echo "$NM" >&6; }
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7830 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7831 && test -d ../binutils ; then
7832 AR='${objdir}/../binutils/ar'
7834 # Extract the first word of "ar", so it can be a program name with args.
7835 set dummy ar; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if test "${ac_cv_prog_AR+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7841 if test -n "$AR"; then
7842 ac_cv_prog_AR="$AR" # Let the user override the test.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7863 if test -n "$AR"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7865 $as_echo "$AR" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7875 # --------------------
7876 # Checks for C headers
7877 # --------------------
7879 # Need to reject headers which give warnings, so that the -Werror bootstrap
7880 # works later. *sigh* This needs to come before all header checks.
7882 ac_c_preproc_warn_flag=yes
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7885 $as_echo_n "checking for ANSI C header files... " >&6; }
7886 if test "${ac_cv_header_stdc+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7904 if ac_fn_c_try_compile "$LINENO"; then :
7905 ac_cv_header_stdc=yes
7907 ac_cv_header_stdc=no
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 if test $ac_cv_header_stdc = yes; then
7912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7919 $EGREP "memchr" >/dev/null 2>&1; then :
7922 ac_cv_header_stdc=no
7928 if test $ac_cv_header_stdc = yes; then
7929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7936 $EGREP "free" >/dev/null 2>&1; then :
7939 ac_cv_header_stdc=no
7945 if test $ac_cv_header_stdc = yes; then
7946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7947 if test "$cross_compiling" = yes; then :
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7954 #if ((' ' & 0x0FF) == 0x020)
7955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7958 # define ISLOWER(c) \
7959 (('a' <= (c) && (c) <= 'i') \
7960 || ('j' <= (c) && (c) <= 'r') \
7961 || ('s' <= (c) && (c) <= 'z'))
7962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7970 for (i = 0; i < 256; i++)
7971 if (XOR (islower (i), ISLOWER (i))
7972 || toupper (i) != TOUPPER (i))
7977 if ac_fn_c_try_run "$LINENO"; then :
7980 ac_cv_header_stdc=no
7982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7983 conftest.$ac_objext conftest.beam conftest.$ac_ext
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7989 $as_echo "$ac_cv_header_stdc" >&6; }
7990 if test $ac_cv_header_stdc = yes; then
7992 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7997 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7998 if test "${ac_cv_header_time+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003 #include <sys/types.h>
8004 #include <sys/time.h>
8010 if ((struct tm *) 0)
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017 ac_cv_header_time=yes
8019 ac_cv_header_time=no
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8024 $as_echo "$ac_cv_header_time" >&6; }
8025 if test $ac_cv_header_time = yes; then
8027 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8032 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8033 if test "${gcc_cv_header_string+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8039 #include <strings.h>
8048 if ac_fn_c_try_compile "$LINENO"; then :
8049 gcc_cv_header_string=yes
8051 gcc_cv_header_string=no
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8056 $as_echo "$gcc_cv_header_string" >&6; }
8057 if test $gcc_cv_header_string = yes; then
8059 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8064 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8065 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 #include <sys/types.h>
8071 #include <sys/wait.h>
8073 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8076 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8084 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 ac_cv_header_sys_wait_h=yes
8092 ac_cv_header_sys_wait_h=no
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8097 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8098 if test $ac_cv_header_sys_wait_h = yes; then
8100 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8104 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8105 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8106 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8107 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8111 eval as_val=\$$as_ac_Header
8112 if test "x$as_val" = x""yes; then :
8113 cat >>confdefs.h <<_ACEOF
8114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8121 # Check for thread headers.
8122 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8123 if test "x$ac_cv_header_thread_h" = x""yes; then :
8129 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8130 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8137 # These tests can't be done till we know if we have limits.h.
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8139 $as_echo_n "checking for CHAR_BIT... " >&6; }
8140 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 #ifdef HAVE_LIMITS_H
8152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8153 $EGREP "found" >/dev/null 2>&1; then :
8154 gcc_cv_decl_char_bit=yes
8156 gcc_cv_decl_char_bit=no
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8163 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8164 if test $gcc_cv_decl_char_bit = no; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8166 $as_echo_n "checking number of bits in a byte... " >&6; }
8167 if test "${gcc_cv_c_nbby+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8172 while test $i -lt 65; do
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8180 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8181 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8187 if ac_fn_c_try_compile "$LINENO"; then :
8188 gcc_cv_c_nbby=$i; break
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8197 $as_echo "$gcc_cv_c_nbby" >&6; }
8198 if test $gcc_cv_c_nbby = failed; then
8199 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8202 cat >>confdefs.h <<_ACEOF
8203 #define CHAR_BIT $gcc_cv_c_nbby
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8209 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8210 if test "${ac_cv_c_bigendian+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8213 ac_cv_c_bigendian=unknown
8214 # See if we're dealing with a universal compiler.
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #ifndef __APPLE_CC__
8218 not a universal capable compiler
8223 if ac_fn_c_try_compile "$LINENO"; then :
8225 # Check for potential -arch flags. It is not universal unless
8226 # there are at least two -arch flags with different values.
8229 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8230 if test -n "$ac_prev"; then
8232 i?86 | x86_64 | ppc | ppc64)
8233 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8236 ac_cv_c_bigendian=universal
8242 elif test "x$ac_word" = "x-arch"; then
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 if test $ac_cv_c_bigendian = unknown; then
8249 # See if sys/param.h defines the BYTE_ORDER macro.
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 #include <sys/types.h>
8253 #include <sys/param.h>
8258 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8259 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8268 if ac_fn_c_try_compile "$LINENO"; then :
8269 # It does; now see whether it defined to BIG_ENDIAN or not.
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 #include <sys/types.h>
8273 #include <sys/param.h>
8278 #if BYTE_ORDER != BIG_ENDIAN
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287 ac_cv_c_bigendian=yes
8289 ac_cv_c_bigendian=no
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 if test $ac_cv_c_bigendian = unknown; then
8296 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8304 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8312 if ac_fn_c_try_compile "$LINENO"; then :
8313 # It does; now see whether it defined to _BIG_ENDIAN or not.
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8329 if ac_fn_c_try_compile "$LINENO"; then :
8330 ac_cv_c_bigendian=yes
8332 ac_cv_c_bigendian=no
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 if test $ac_cv_c_bigendian = unknown; then
8339 # Compile a test program.
8340 if test "$cross_compiling" = yes; then :
8341 # Try to guess by grepping values from an object file.
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 short int ascii_mm[] =
8345 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8346 short int ascii_ii[] =
8347 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8348 int use_ascii (int i) {
8349 return ascii_mm[i] + ascii_ii[i];
8351 short int ebcdic_ii[] =
8352 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8353 short int ebcdic_mm[] =
8354 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8355 int use_ebcdic (int i) {
8356 return ebcdic_mm[i] + ebcdic_ii[i];
8363 return use_ascii (foo) == use_ebcdic (foo);
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8370 ac_cv_c_bigendian=yes
8372 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8373 if test "$ac_cv_c_bigendian" = unknown; then
8374 ac_cv_c_bigendian=no
8376 # finding both strings is unlikely to happen, but who knows?
8377 ac_cv_c_bigendian=unknown
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 $ac_includes_default
8390 /* Are we little or big endian? From Harbison&Steele. */
8394 char c[sizeof (long int)];
8397 return u.c[sizeof (long int) - 1] == 1;
8403 if ac_fn_c_try_run "$LINENO"; then :
8404 ac_cv_c_bigendian=no
8406 ac_cv_c_bigendian=yes
8408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8409 conftest.$ac_objext conftest.beam conftest.$ac_ext
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8415 $as_echo "$ac_cv_c_bigendian" >&6; }
8416 case $ac_cv_c_bigendian in #(
8418 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8424 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8428 as_fn_error "unknown endianness
8429 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8433 # ----------------------
8434 # Checks for C++ headers
8435 # ----------------------
8438 ac_cpp='$CXXCPP $CPPFLAGS'
8439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8443 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8444 if test -z "$CXXCPP"; then
8445 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
8448 # Double quotes because CXXCPP needs to be expanded
8449 for CXXCPP in "$CXX -E" "/lib/cpp"
8452 for ac_cxx_preproc_warn_flag in '' yes
8454 # Use a header file that comes with gcc, so configuring glibc
8455 # with a fresh cross-compiler works.
8456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8457 # <limits.h> exists even on freestanding compilers.
8458 # On the NeXT, cc -E runs the code through the compiler's parser,
8459 # not just through cpp. "Syntax error" is here to catch this case.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8463 # include <limits.h>
8465 # include <assert.h>
8469 if ac_fn_cxx_try_cpp "$LINENO"; then :
8472 # Broken: fails on valid input.
8475 rm -f conftest.err conftest.$ac_ext
8477 # OK, works on sane cases. Now check whether nonexistent headers
8478 # can be detected and how.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <ac_nonexistent.h>
8483 if ac_fn_cxx_try_cpp "$LINENO"; then :
8484 # Broken: success on invalid input.
8487 # Passes both tests.
8491 rm -f conftest.err conftest.$ac_ext
8494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8495 rm -f conftest.err conftest.$ac_ext
8496 if $ac_preproc_ok; then :
8501 ac_cv_prog_CXXCPP=$CXXCPP
8504 CXXCPP=$ac_cv_prog_CXXCPP
8506 ac_cv_prog_CXXCPP=$CXXCPP
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8509 $as_echo "$CXXCPP" >&6; }
8511 for ac_cxx_preproc_warn_flag in '' yes
8513 # Use a header file that comes with gcc, so configuring glibc
8514 # with a fresh cross-compiler works.
8515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8516 # <limits.h> exists even on freestanding compilers.
8517 # On the NeXT, cc -E runs the code through the compiler's parser,
8518 # not just through cpp. "Syntax error" is here to catch this case.
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8522 # include <limits.h>
8524 # include <assert.h>
8528 if ac_fn_cxx_try_cpp "$LINENO"; then :
8531 # Broken: fails on valid input.
8534 rm -f conftest.err conftest.$ac_ext
8536 # OK, works on sane cases. Now check whether nonexistent headers
8537 # can be detected and how.
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 #include <ac_nonexistent.h>
8542 if ac_fn_cxx_try_cpp "$LINENO"; then :
8543 # Broken: success on invalid input.
8546 # Passes both tests.
8550 rm -f conftest.err conftest.$ac_ext
8553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8554 rm -f conftest.err conftest.$ac_ext
8555 if $ac_preproc_ok; then :
8558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8561 See \`config.log' for more details." >&5
8562 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8563 See \`config.log' for more details." >&2;}; }
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8574 ac_cpp='$CXXCPP $CPPFLAGS'
8575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8582 for ac_header in unordered_map
8584 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8585 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8586 cat >>confdefs.h <<_ACEOF
8587 #define HAVE_UNORDERED_MAP 1
8593 for ac_header in tr1/unordered_map
8595 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8596 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8597 cat >>confdefs.h <<_ACEOF
8598 #define HAVE_TR1_UNORDERED_MAP 1
8604 for ac_header in ext/hash_map
8606 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8607 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8608 cat >>confdefs.h <<_ACEOF
8609 #define HAVE_EXT_HASH_MAP 1
8617 ac_cpp='$CPP $CPPFLAGS'
8618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8628 # These libraries may be used by collect2.
8629 # We may need a special search path to get them linked.
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8631 $as_echo_n "checking for collect2 libraries... " >&6; }
8632 if test "${gcc_cv_collect2_libs+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
8636 for libs in '' -lld -lmld \
8637 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8638 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8659 if ac_fn_c_try_link "$LINENO"; then :
8660 gcc_cv_collect2_libs="$libs"; break
8662 rm -f core conftest.err conftest.$ac_objext \
8663 conftest$ac_exeext conftest.$ac_ext
8666 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8669 $as_echo "$gcc_cv_collect2_libs" >&6; }
8670 case $gcc_cv_collect2_libs in
8672 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8676 # When building Ada code on Alpha, we need exc_resume which is usually in
8677 # -lexc. So test for it.
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8681 $as_echo_n "checking for library containing exc_resume... " >&6; }
8682 if test "${ac_cv_search_exc_resume+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8685 ac_func_search_save_LIBS=$LIBS
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8689 /* Override any GCC internal prototype to avoid an error.
8690 Use char because int might match the return type of a GCC
8691 builtin and then its argument prototype would still apply. */
8699 return exc_resume ();
8704 for ac_lib in '' exc; do
8705 if test -z "$ac_lib"; then
8706 ac_res="none required"
8709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8711 if ac_fn_c_try_link "$LINENO"; then :
8712 ac_cv_search_exc_resume=$ac_res
8714 rm -f core conftest.err conftest.$ac_objext \
8716 if test "${ac_cv_search_exc_resume+set}" = set; then :
8720 if test "${ac_cv_search_exc_resume+set}" = set; then :
8723 ac_cv_search_exc_resume=no
8726 LIBS=$ac_func_search_save_LIBS
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8729 $as_echo "$ac_cv_search_exc_resume" >&6; }
8730 ac_res=$ac_cv_search_exc_resume
8731 if test "$ac_res" != no; then :
8732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8740 # Some systems put ldexp and frexp in libm instead of libc; assume
8741 # they're both in the same place. jcf-dump needs them.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8745 $as_echo_n "checking for library containing ldexp... " >&6; }
8746 if test "${ac_cv_search_ldexp+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8749 ac_func_search_save_LIBS=$LIBS
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8753 /* Override any GCC internal prototype to avoid an error.
8754 Use char because int might match the return type of a GCC
8755 builtin and then its argument prototype would still apply. */
8768 for ac_lib in '' m; do
8769 if test -z "$ac_lib"; then
8770 ac_res="none required"
8773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8775 if ac_fn_c_try_link "$LINENO"; then :
8776 ac_cv_search_ldexp=$ac_res
8778 rm -f core conftest.err conftest.$ac_objext \
8780 if test "${ac_cv_search_ldexp+set}" = set; then :
8784 if test "${ac_cv_search_ldexp+set}" = set; then :
8787 ac_cv_search_ldexp=no
8790 LIBS=$ac_func_search_save_LIBS
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8793 $as_echo "$ac_cv_search_ldexp" >&6; }
8794 ac_res=$ac_cv_search_ldexp
8795 if test "$ac_res" != no; then :
8796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8804 # Use <inttypes.h> only if it exists,
8805 # doesn't clash with <sys/types.h>, and declares intmax_t.
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8807 $as_echo_n "checking for inttypes.h... " >&6; }
8808 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 #include <sys/types.h>
8814 #include <inttypes.h>
8823 if ac_fn_c_try_compile "$LINENO"; then :
8824 gcc_cv_header_inttypes_h=yes
8826 gcc_cv_header_inttypes_h=no
8828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8832 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8833 if test $gcc_cv_header_inttypes_h = yes; then
8835 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8841 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8842 sysconf strsignal getrusage nl_langinfo \
8843 gettimeofday mbstowcs wcswidth mmap setlocale \
8844 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
8846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8848 eval as_val=\$$as_ac_var
8849 if test "x$as_val" = x""yes; then :
8850 cat >>confdefs.h <<_ACEOF
8851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8858 if test x$ac_cv_func_mbstowcs = xyes; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8860 $as_echo_n "checking whether mbstowcs works... " >&6; }
8861 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8862 $as_echo_n "(cached) " >&6
8864 if test "$cross_compiling" = yes; then :
8865 gcc_cv_func_mbstowcs_works=yes
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8876 if ac_fn_c_try_run "$LINENO"; then :
8877 gcc_cv_func_mbstowcs_works=yes
8879 gcc_cv_func_mbstowcs_works=no
8881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8882 conftest.$ac_objext conftest.beam conftest.$ac_ext
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8887 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8888 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8890 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8895 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8896 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8900 cat >>confdefs.h <<_ACEOF
8906 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8907 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8911 cat >>confdefs.h <<_ACEOF
8912 #define caddr_t char *
8919 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8920 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8921 gcc_header_sys_mman_h=yes
8923 gcc_header_sys_mman_h=no
8926 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8927 if test "x$ac_cv_func_mmap" = x""yes; then :
8933 if test "$gcc_header_sys_mman_h" != yes \
8934 || test "$gcc_func_mmap" != yes; then
8935 gcc_cv_func_mmap_file=no
8936 gcc_cv_func_mmap_dev_zero=no
8937 gcc_cv_func_mmap_anon=no
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8940 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8941 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8942 $as_echo_n "(cached) " >&6
8944 # Add a system to this blacklist if
8945 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8946 # memory area containing the same data that you'd get if you applied
8947 # read() to the same fd. The only system known to have a problem here
8948 # is VMS, where text files have record structure.
8951 gcc_cv_func_mmap_file=no ;;
8953 gcc_cv_func_mmap_file=yes;;
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8957 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8959 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8960 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8963 # Add a system to this blacklist if it has mmap() but /dev/zero
8964 # does not exist, or if mmapping /dev/zero does not give anonymous
8965 # zeroed pages with both the following properties:
8966 # 1. If you map N consecutive pages in with one call, and then
8967 # unmap any subset of those pages, the pages that were not
8968 # explicitly unmapped remain accessible.
8969 # 2. If you map two adjacent blocks of memory and then unmap them
8970 # both at once, they must both go away.
8971 # Systems known to be in this category are Windows (all variants),
8974 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8975 gcc_cv_func_mmap_dev_zero=no ;;
8977 gcc_cv_func_mmap_dev_zero=yes;;
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8981 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8983 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8985 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8986 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8987 $as_echo_n "(cached) " >&6
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 #include <sys/types.h>
8992 #include <sys/mman.h>
8995 #ifndef MAP_ANONYMOUS
8996 #define MAP_ANONYMOUS MAP_ANON
9002 int n = MAP_ANONYMOUS;
9007 if ac_fn_c_try_compile "$LINENO"; then :
9008 gcc_cv_decl_map_anon=yes
9010 gcc_cv_decl_map_anon=no
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9015 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9017 if test $gcc_cv_decl_map_anon = no; then
9018 gcc_cv_func_mmap_anon=no
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9021 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9022 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9025 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9026 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9027 # doesn't give anonymous zeroed pages with the same properties listed
9028 # above for use of /dev/zero.
9029 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9031 vms* | cygwin* | pe | mingw* | sco* | udk* )
9032 gcc_cv_func_mmap_anon=no ;;
9034 gcc_cv_func_mmap_anon=yes;;
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9038 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9042 if test $gcc_cv_func_mmap_file = yes; then
9044 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9047 if test $gcc_cv_func_mmap_dev_zero = yes; then
9049 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9052 if test $gcc_cv_func_mmap_anon = yes; then
9054 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9061 # Under VMS, vfork works very differently than on Unix. The standard test
9062 # won't work, and it isn't easily adaptable. It makes more sense to
9064 ac_cv_func_vfork_works=yes
9067 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9068 if test "x$ac_cv_type_pid_t" = x""yes; then :
9072 cat >>confdefs.h <<_ACEOF
9078 for ac_header in vfork.h
9080 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9081 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9082 cat >>confdefs.h <<_ACEOF
9083 #define HAVE_VFORK_H 1
9089 for ac_func in fork vfork
9091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9093 eval as_val=\$$as_ac_var
9094 if test "x$as_val" = x""yes; then :
9095 cat >>confdefs.h <<_ACEOF
9096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9102 if test "x$ac_cv_func_fork" = xyes; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9104 $as_echo_n "checking for working fork... " >&6; }
9105 if test "${ac_cv_func_fork_works+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9108 if test "$cross_compiling" = yes; then :
9109 ac_cv_func_fork_works=cross
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 $ac_includes_default
9118 /* By Ruediger Kuhlmann. */
9125 if ac_fn_c_try_run "$LINENO"; then :
9126 ac_cv_func_fork_works=yes
9128 ac_cv_func_fork_works=no
9130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9131 conftest.$ac_objext conftest.beam conftest.$ac_ext
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9136 $as_echo "$ac_cv_func_fork_works" >&6; }
9139 ac_cv_func_fork_works=$ac_cv_func_fork
9141 if test "x$ac_cv_func_fork_works" = xcross; then
9143 *-*-amigaos* | *-*-msdosdjgpp*)
9144 # Override, as these systems have only a dummy fork() stub
9145 ac_cv_func_fork_works=no
9148 ac_cv_func_fork_works=yes
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9152 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9154 ac_cv_func_vfork_works=$ac_cv_func_vfork
9155 if test "x$ac_cv_func_vfork" = xyes; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9157 $as_echo_n "checking for working vfork... " >&6; }
9158 if test "${ac_cv_func_vfork_works+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
9161 if test "$cross_compiling" = yes; then :
9162 ac_cv_func_vfork_works=cross
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 /* Thanks to Paul Eggert for this test. */
9167 $ac_includes_default
9168 #include <sys/wait.h>
9172 /* On some sparc systems, changes by the child to local and incoming
9173 argument registers are propagated back to the parent. The compiler
9174 is told about this with #include <vfork.h>, but some compilers
9175 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9176 static variable whose address is put into a register that is
9177 clobbered by the vfork. */
9180 sparc_address_test (int arg)
9182 sparc_address_test (arg) int arg;
9203 pid_t parent = getpid ();
9206 sparc_address_test (0);
9211 /* Here is another test for sparc vfork register problems. This
9212 test uses lots of local variables, at least as many local
9213 variables as main has allocated so far including compiler
9214 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9215 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9216 reuse the register of parent for one of the local variables,
9217 since it will think that parent can't possibly be used any more
9218 in this routine. Assigning to the local variable will thus
9219 munge parent in the parent process. */
9221 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9222 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9223 /* Convince the compiler that p..p7 are live; otherwise, it might
9224 use the same hardware register for all 8 local variables. */
9225 if (p != p1 || p != p2 || p != p3 || p != p4
9226 || p != p5 || p != p6 || p != p7)
9229 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9230 from child file descriptors. If the child closes a descriptor
9231 before it execs or exits, this munges the parent's descriptor
9232 as well. Test for this by closing stdout in the child. */
9233 _exit(close(fileno(stdout)) != 0);
9238 while (wait(&status) != child)
9241 /* Was there some problem with vforking? */
9244 /* Did the child fail? (This shouldn't happen.) */
9247 /* Did the vfork/compiler bug occur? */
9248 || parent != getpid()
9250 /* Did the file descriptor bug occur? */
9251 || fstat(fileno(stdout), &st) != 0
9256 if ac_fn_c_try_run "$LINENO"; then :
9257 ac_cv_func_vfork_works=yes
9259 ac_cv_func_vfork_works=no
9261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9262 conftest.$ac_objext conftest.beam conftest.$ac_ext
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9267 $as_echo "$ac_cv_func_vfork_works" >&6; }
9270 if test "x$ac_cv_func_fork_works" = xcross; then
9271 ac_cv_func_vfork_works=$ac_cv_func_vfork
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9273 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9276 if test "x$ac_cv_func_vfork_works" = xyes; then
9278 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9282 $as_echo "#define vfork fork" >>confdefs.h
9285 if test "x$ac_cv_func_fork_works" = xyes; then
9287 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9293 if test "X$prefix" = "XNONE"; then
9294 acl_final_prefix="$ac_default_prefix"
9296 acl_final_prefix="$prefix"
9298 if test "X$exec_prefix" = "XNONE"; then
9299 acl_final_exec_prefix='${prefix}'
9301 acl_final_exec_prefix="$exec_prefix"
9303 acl_save_prefix="$prefix"
9304 prefix="$acl_final_prefix"
9305 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9306 prefix="$acl_save_prefix"
9309 # Check whether --with-gnu-ld was given.
9310 if test "${with_gnu_ld+set}" = set; then :
9311 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9316 # Prepare PATH_SEPARATOR.
9317 # The user is always right.
9318 if test "${PATH_SEPARATOR+set}" != set; then
9319 echo "#! /bin/sh" >conf$$.sh
9320 echo "exit 0" >>conf$$.sh
9322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9330 if test "$GCC" = yes; then
9331 # Check if gcc -print-prog-name=ld gives a path.
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9333 $as_echo_n "checking for ld used by GCC... " >&6; }
9336 # gcc leaves a trailing carriage return which upsets mingw
9337 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9339 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9342 # Accept absolute paths.
9343 [\\/]* | [A-Za-z]:[\\/]*)
9344 re_direlt='/[^/][^/]*/\.\./'
9345 # Canonicalize the path of ld
9346 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9347 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9348 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9350 test -z "$LD" && LD="$ac_prog"
9353 # If it fails, then pretend we aren't using GCC.
9357 # If it is relative, then search for the first ld in PATH.
9361 elif test "$with_gnu_ld" = yes; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9363 $as_echo_n "checking for GNU ld... " >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9366 $as_echo_n "checking for non-GNU ld... " >&6; }
9368 if test "${acl_cv_path_LD+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9371 if test -z "$LD"; then
9372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9373 for ac_dir in $PATH; do
9374 test -z "$ac_dir" && ac_dir=.
9375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9376 acl_cv_path_LD="$ac_dir/$ac_prog"
9377 # Check to see if the program is GNU ld. I'd rather use --version,
9378 # but apparently some GNU ld's only accept -v.
9379 # Break only if it was the GNU/non-GNU ld that we prefer.
9380 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9381 test "$with_gnu_ld" != no && break
9383 test "$with_gnu_ld" != yes && break
9389 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9393 LD="$acl_cv_path_LD"
9394 if test -n "$LD"; then
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9396 $as_echo "$LD" >&6; }
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9399 $as_echo "no" >&6; }
9401 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9404 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9407 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9408 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9409 acl_cv_prog_gnu_ld=yes
9411 acl_cv_prog_gnu_ld=no
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9415 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9416 with_gnu_ld=$acl_cv_prog_gnu_ld
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9421 $as_echo_n "checking for shared library run path origin... " >&6; }
9422 if test "${acl_cv_rpath+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
9426 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9427 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9434 $as_echo "$acl_cv_rpath" >&6; }
9436 libext="$acl_cv_libext"
9437 shlibext="$acl_cv_shlibext"
9438 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9439 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9440 hardcode_direct="$acl_cv_hardcode_direct"
9441 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9442 # Check whether --enable-rpath was given.
9443 if test "${enable_rpath+set}" = set; then :
9444 enableval=$enable_rpath; :
9458 acl_save_prefix="$prefix"
9459 prefix="$acl_final_prefix"
9460 acl_save_exec_prefix="$exec_prefix"
9461 exec_prefix="$acl_final_exec_prefix"
9463 eval additional_includedir=\"$includedir\"
9464 eval additional_libdir=\"$libdir\"
9466 exec_prefix="$acl_save_exec_prefix"
9467 prefix="$acl_save_prefix"
9470 # Check whether --with-libiconv-prefix was given.
9471 if test "${with_libiconv_prefix+set}" = set; then :
9472 withval=$with_libiconv_prefix;
9473 if test "X$withval" = "Xno"; then
9476 if test "X$withval" = "X"; then
9478 acl_save_prefix="$prefix"
9479 prefix="$acl_final_prefix"
9480 acl_save_exec_prefix="$exec_prefix"
9481 exec_prefix="$acl_final_exec_prefix"
9483 eval additional_includedir=\"$includedir\"
9484 eval additional_libdir=\"$libdir\"
9486 exec_prefix="$acl_save_exec_prefix"
9487 prefix="$acl_save_prefix"
9490 additional_includedir="$withval/include"
9491 additional_libdir="$withval/lib"
9502 names_already_handled=
9503 names_next_round='iconv '
9504 while test -n "$names_next_round"; do
9505 names_this_round="$names_next_round"
9507 for name in $names_this_round; do
9509 for n in $names_already_handled; do
9510 if test "$n" = "$name"; then
9515 if test -z "$already_handled"; then
9516 names_already_handled="$names_already_handled $name"
9517 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9518 eval value=\"\$HAVE_LIB$uppername\"
9519 if test -n "$value"; then
9520 if test "$value" = yes; then
9521 eval value=\"\$LIB$uppername\"
9522 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9523 eval value=\"\$LTLIB$uppername\"
9524 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9533 if test $use_additional = yes; then
9534 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9535 found_dir="$additional_libdir"
9536 found_so="$additional_libdir/lib$name.$shlibext"
9537 if test -f "$additional_libdir/lib$name.la"; then
9538 found_la="$additional_libdir/lib$name.la"
9541 if test -f "$additional_libdir/lib$name.$libext"; then
9542 found_dir="$additional_libdir"
9543 found_a="$additional_libdir/lib$name.$libext"
9544 if test -f "$additional_libdir/lib$name.la"; then
9545 found_la="$additional_libdir/lib$name.la"
9550 if test "X$found_dir" = "X"; then
9551 for x in $LDFLAGS $LTLIBICONV; do
9553 acl_save_prefix="$prefix"
9554 prefix="$acl_final_prefix"
9555 acl_save_exec_prefix="$exec_prefix"
9556 exec_prefix="$acl_final_exec_prefix"
9558 exec_prefix="$acl_save_exec_prefix"
9559 prefix="$acl_save_prefix"
9563 dir=`echo "X$x" | sed -e 's/^X-L//'`
9564 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9566 found_so="$dir/lib$name.$shlibext"
9567 if test -f "$dir/lib$name.la"; then
9568 found_la="$dir/lib$name.la"
9571 if test -f "$dir/lib$name.$libext"; then
9573 found_a="$dir/lib$name.$libext"
9574 if test -f "$dir/lib$name.la"; then
9575 found_la="$dir/lib$name.la"
9581 if test "X$found_dir" != "X"; then
9586 if test "X$found_dir" != "X"; then
9587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9588 if test "X$found_so" != "X"; then
9589 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9593 for x in $ltrpathdirs; do
9594 if test "X$x" = "X$found_dir"; then
9599 if test -z "$haveit"; then
9600 ltrpathdirs="$ltrpathdirs $found_dir"
9602 if test "$hardcode_direct" = yes; then
9603 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9605 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9606 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9608 for x in $rpathdirs; do
9609 if test "X$x" = "X$found_dir"; then
9614 if test -z "$haveit"; then
9615 rpathdirs="$rpathdirs $found_dir"
9619 for x in $LDFLAGS $LIBICONV; do
9621 acl_save_prefix="$prefix"
9622 prefix="$acl_final_prefix"
9623 acl_save_exec_prefix="$exec_prefix"
9624 exec_prefix="$acl_final_exec_prefix"
9626 exec_prefix="$acl_save_exec_prefix"
9627 prefix="$acl_save_prefix"
9629 if test "X$x" = "X-L$found_dir"; then
9634 if test -z "$haveit"; then
9635 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9637 if test "$hardcode_minus_L" != no; then
9638 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9640 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9646 if test "X$found_a" != "X"; then
9647 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9649 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9652 additional_includedir=
9653 case "$found_dir" in
9655 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9656 additional_includedir="$basedir/include"
9659 if test "X$additional_includedir" != "X"; then
9660 if test "X$additional_includedir" != "X/usr/include"; then
9662 if test "X$additional_includedir" = "X/usr/local/include"; then
9663 if test -n "$GCC"; then
9665 linux*) haveit=yes;;
9669 if test -z "$haveit"; then
9670 for x in $CPPFLAGS $INCICONV; do
9672 acl_save_prefix="$prefix"
9673 prefix="$acl_final_prefix"
9674 acl_save_exec_prefix="$exec_prefix"
9675 exec_prefix="$acl_final_exec_prefix"
9677 exec_prefix="$acl_save_exec_prefix"
9678 prefix="$acl_save_prefix"
9680 if test "X$x" = "X-I$additional_includedir"; then
9685 if test -z "$haveit"; then
9686 if test -d "$additional_includedir"; then
9687 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9693 if test -n "$found_la"; then
9694 save_libdir="$libdir"
9696 */* | *\\*) . "$found_la" ;;
9697 *) . "./$found_la" ;;
9699 libdir="$save_libdir"
9700 for dep in $dependency_libs; do
9703 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9704 if test "X$additional_libdir" != "X/usr/lib"; then
9706 if test "X$additional_libdir" = "X/usr/local/lib"; then
9707 if test -n "$GCC"; then
9709 linux*) haveit=yes;;
9713 if test -z "$haveit"; then
9715 for x in $LDFLAGS $LIBICONV; do
9717 acl_save_prefix="$prefix"
9718 prefix="$acl_final_prefix"
9719 acl_save_exec_prefix="$exec_prefix"
9720 exec_prefix="$acl_final_exec_prefix"
9722 exec_prefix="$acl_save_exec_prefix"
9723 prefix="$acl_save_prefix"
9725 if test "X$x" = "X-L$additional_libdir"; then
9730 if test -z "$haveit"; then
9731 if test -d "$additional_libdir"; then
9732 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9736 for x in $LDFLAGS $LTLIBICONV; do
9738 acl_save_prefix="$prefix"
9739 prefix="$acl_final_prefix"
9740 acl_save_exec_prefix="$exec_prefix"
9741 exec_prefix="$acl_final_exec_prefix"
9743 exec_prefix="$acl_save_exec_prefix"
9744 prefix="$acl_save_prefix"
9746 if test "X$x" = "X-L$additional_libdir"; then
9751 if test -z "$haveit"; then
9752 if test -d "$additional_libdir"; then
9753 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9760 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9761 if test "$enable_rpath" != no; then
9763 for x in $rpathdirs; do
9764 if test "X$x" = "X$dir"; then
9769 if test -z "$haveit"; then
9770 rpathdirs="$rpathdirs $dir"
9773 for x in $ltrpathdirs; do
9774 if test "X$x" = "X$dir"; then
9779 if test -z "$haveit"; then
9780 ltrpathdirs="$ltrpathdirs $dir"
9785 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9788 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9791 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9792 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9798 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9799 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9805 if test "X$rpathdirs" != "X"; then
9806 if test -n "$hardcode_libdir_separator"; then
9808 for found_dir in $rpathdirs; do
9809 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9811 acl_save_libdir="$libdir"
9813 eval flag=\"$hardcode_libdir_flag_spec\"
9814 libdir="$acl_save_libdir"
9815 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9817 for found_dir in $rpathdirs; do
9818 acl_save_libdir="$libdir"
9820 eval flag=\"$hardcode_libdir_flag_spec\"
9821 libdir="$acl_save_libdir"
9822 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9826 if test "X$ltrpathdirs" != "X"; then
9827 for found_dir in $ltrpathdirs; do
9828 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9838 am_save_CPPFLAGS="$CPPFLAGS"
9840 for element in $INCICONV; do
9842 for x in $CPPFLAGS; do
9844 acl_save_prefix="$prefix"
9845 prefix="$acl_final_prefix"
9846 acl_save_exec_prefix="$exec_prefix"
9847 exec_prefix="$acl_final_exec_prefix"
9849 exec_prefix="$acl_save_exec_prefix"
9850 prefix="$acl_save_prefix"
9852 if test "X$x" = "X$element"; then
9857 if test -z "$haveit"; then
9858 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9864 $as_echo_n "checking for iconv... " >&6; }
9865 if test "${am_cv_func_iconv+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9869 am_cv_func_iconv="no, consider installing GNU libiconv"
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9878 iconv_t cd = iconv_open("","");
9879 iconv(cd,NULL,NULL,NULL,NULL);
9885 if ac_fn_c_try_link "$LINENO"; then :
9886 am_cv_func_iconv=yes
9888 rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 if test "$am_cv_func_iconv" != yes; then
9891 am_save_LIBS="$LIBS"
9892 LIBS="$LIBS $LIBICONV"
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9900 iconv_t cd = iconv_open("","");
9901 iconv(cd,NULL,NULL,NULL,NULL);
9907 if ac_fn_c_try_link "$LINENO"; then :
9909 am_cv_func_iconv=yes
9911 rm -f core conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9913 LIBS="$am_save_LIBS"
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9918 $as_echo "$am_cv_func_iconv" >&6; }
9919 if test "$am_cv_func_iconv" = yes; then
9921 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9924 if test "$am_cv_lib_iconv" = yes; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9926 $as_echo_n "checking how to link with libiconv... " >&6; }
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9928 $as_echo "$LIBICONV" >&6; }
9930 CPPFLAGS="$am_save_CPPFLAGS"
9937 if test "$am_cv_func_iconv" = yes; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9939 $as_echo_n "checking for iconv declaration... " >&6; }
9940 if test "${am_cv_proto_iconv+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9953 #if defined(__STDC__) || defined(__cplusplus)
9954 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9967 if ac_fn_c_try_compile "$LINENO"; then :
9968 am_cv_proto_iconv_arg1=""
9970 am_cv_proto_iconv_arg1="const"
9972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9973 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);"
9976 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9978 }$am_cv_proto_iconv" >&5
9980 }$am_cv_proto_iconv" >&6; }
9982 cat >>confdefs.h <<_ACEOF
9983 #define ICONV_CONST $am_cv_proto_iconv_arg1
9988 # Until we have in-tree GNU iconv:
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9994 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9995 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10000 #include <locale.h>
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 am_cv_val_LC_MESSAGES=yes
10012 am_cv_val_LC_MESSAGES=no
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10018 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10019 if test $am_cv_val_LC_MESSAGES = yes; then
10021 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10028 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10029 if test "${am_cv_langinfo_codeset+set}" = set; then :
10030 $as_echo_n "(cached) " >&6
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 #include <langinfo.h>
10038 char* cs = nl_langinfo(CODESET);
10043 if ac_fn_c_try_link "$LINENO"; then :
10044 am_cv_langinfo_codeset=yes
10046 am_cv_langinfo_codeset=no
10048 rm -f core conftest.err conftest.$ac_objext \
10049 conftest$ac_exeext conftest.$ac_ext
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10053 $as_echo "$am_cv_langinfo_codeset" >&6; }
10054 if test $am_cv_langinfo_codeset = yes; then
10056 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10061 # We will need to find libiberty.h and ansidecl.h
10062 saved_CFLAGS="$CFLAGS"
10063 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10064 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10065 strsignal strstr strverscmp \
10066 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10067 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
10069 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10071 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10072 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10073 $as_echo_n "(cached) " >&6
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 #define $ac_tr_decl 1
10080 #include "ansidecl.h"
10081 #include "system.h"
10087 char *(*pfn) = (char *(*)) $ac_func ;
10093 if ac_fn_c_try_compile "$LINENO"; then :
10094 eval "gcc_cv_have_decl_$ac_func=yes"
10096 eval "gcc_cv_have_decl_$ac_func=no"
10098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10101 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10103 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10104 #define $ac_tr_decl 1
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10110 #define $ac_tr_decl 0
10118 for ac_func in getrlimit setrlimit getrusage
10120 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10122 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10123 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10124 $as_echo_n "(cached) " >&6
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 #define $ac_tr_decl 1
10131 #include "ansidecl.h"
10132 #include "system.h"
10133 #ifdef HAVE_SYS_RESOURCE_H
10134 #include <sys/resource.h>
10142 char *(*pfn) = (char *(*)) $ac_func ;
10148 if ac_fn_c_try_compile "$LINENO"; then :
10149 eval "gcc_cv_have_decl_$ac_func=yes"
10151 eval "gcc_cv_have_decl_$ac_func=no"
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10158 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10159 #define $ac_tr_decl 1
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10165 #define $ac_tr_decl 0
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10176 #include "ansidecl.h"
10177 #include "system.h"
10178 #ifdef HAVE_SYS_RESOURCE_H
10179 #include <sys/resource.h>
10190 if ac_fn_c_try_compile "$LINENO"; then :
10194 $as_echo "#define rlim_t long" >>confdefs.h
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10200 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10201 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10202 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10203 for ac_func in ldgetname
10205 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10207 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10208 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10209 $as_echo_n "(cached) " >&6
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10214 #define $ac_tr_decl 1
10216 #include "ansidecl.h"
10217 #include "system.h"
10218 #ifdef HAVE_LDFCN_H
10229 char *(*pfn) = (char *(*)) $ac_func ;
10235 if ac_fn_c_try_compile "$LINENO"; then :
10236 eval "gcc_cv_have_decl_$ac_func=yes"
10238 eval "gcc_cv_have_decl_$ac_func=no"
10240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10243 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10245 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10246 #define $ac_tr_decl 1
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10252 #define $ac_tr_decl 0
10260 for ac_func in times
10262 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10264 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10265 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10266 $as_echo_n "(cached) " >&6
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10271 #define $ac_tr_decl 1
10273 #include "ansidecl.h"
10274 #include "system.h"
10275 #ifdef HAVE_SYS_TIMES_H
10276 #include <sys/times.h>
10284 char *(*pfn) = (char *(*)) $ac_func ;
10290 if ac_fn_c_try_compile "$LINENO"; then :
10291 eval "gcc_cv_have_decl_$ac_func=yes"
10293 eval "gcc_cv_have_decl_$ac_func=no"
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10300 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10301 #define $ac_tr_decl 1
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10307 #define $ac_tr_decl 0
10315 for ac_func in sigaltstack
10317 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10319 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10320 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10321 $as_echo_n "(cached) " >&6
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10326 #define $ac_tr_decl 1
10328 #include "ansidecl.h"
10329 #include "system.h"
10330 #include <signal.h>
10337 char *(*pfn) = (char *(*)) $ac_func ;
10343 if ac_fn_c_try_compile "$LINENO"; then :
10344 eval "gcc_cv_have_decl_$ac_func=yes"
10346 eval "gcc_cv_have_decl_$ac_func=no"
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10353 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10354 #define $ac_tr_decl 1
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10360 #define $ac_tr_decl 0
10368 # More time-related stuff.
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10370 $as_echo_n "checking for struct tms... " >&6; }
10371 if test "${ac_cv_struct_tms+set}" = set; then :
10372 $as_echo_n "(cached) " >&6
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10378 #include "ansidecl.h"
10379 #include "system.h"
10380 #ifdef HAVE_SYS_TIMES_H
10381 #include <sys/times.h>
10392 if ac_fn_c_try_compile "$LINENO"; then :
10393 ac_cv_struct_tms=yes
10395 ac_cv_struct_tms=no
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10400 $as_echo "$ac_cv_struct_tms" >&6; }
10401 if test $ac_cv_struct_tms = yes; then
10403 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10407 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10408 # revisit after autoconf 2.50.
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10410 $as_echo_n "checking for clock_t... " >&6; }
10411 if test "${gcc_cv_type_clock_t+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10418 #include "ansidecl.h"
10419 #include "system.h"
10429 if ac_fn_c_try_compile "$LINENO"; then :
10430 gcc_cv_type_clock_t=yes
10432 gcc_cv_type_clock_t=no
10434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10437 $as_echo "$gcc_cv_type_clock_t" >&6; }
10438 if test $gcc_cv_type_clock_t = yes; then
10440 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10444 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10445 CFLAGS="$saved_CFLAGS"
10447 # Check whether --enable-initfini-array was given.
10448 if test "${enable_initfini_array+set}" = set; then :
10449 enableval=$enable_initfini_array;
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10453 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10454 if test "${gcc_cv_initfini_array+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
10457 if test "$cross_compiling" = yes; then :
10458 gcc_cv_initfini_array=no
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10464 int main (void) { return x; }
10465 int foo (void) { x = 0; }
10466 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10468 if ac_fn_c_try_run "$LINENO"; then :
10469 gcc_cv_initfini_array=yes
10471 gcc_cv_initfini_array=no
10473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10474 conftest.$ac_objext conftest.beam conftest.$ac_ext
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10479 $as_echo "$gcc_cv_initfini_array" >&6; }
10480 enable_initfini_array=$gcc_cv_initfini_array
10484 if test $enable_initfini_array = yes; then
10486 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10490 # mkdir takes a single argument on some systems.
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10492 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10493 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10499 #include <sys/types.h>
10500 #ifdef HAVE_SYS_STAT_H
10501 # include <sys/stat.h>
10503 #ifdef HAVE_UNISTD_H
10504 # include <unistd.h>
10506 #ifdef HAVE_DIRECT_H
10507 # include <direct.h>
10517 if ac_fn_c_try_compile "$LINENO"; then :
10518 gcc_cv_mkdir_takes_one_arg=no
10520 gcc_cv_mkdir_takes_one_arg=yes
10522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10525 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10526 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10528 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10539 # With Setjmp/Longjmp based exception handling.
10540 # Check whether --enable-sjlj-exceptions was given.
10541 if test "${enable_sjlj_exceptions+set}" = set; then :
10542 enableval=$enable_sjlj_exceptions; case $target in
10544 if test $enableval != yes; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10546 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10551 force_sjlj_exceptions=yes
10555 force_sjlj_exceptions=yes
10559 force_sjlj_exceptions=no
10564 if test $force_sjlj_exceptions = yes; then
10565 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10567 cat >>confdefs.h <<_ACEOF
10568 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10573 # For platforms with the unwind ABI which includes an unwind library,
10574 # libunwind, we can choose to use the system libunwind.
10575 # config.gcc also contains tests of with_system_libunwind.
10578 # Check whether --with-system-libunwind was given.
10579 if test "${with_system_libunwind+set}" = set; then :
10580 withval=$with_system_libunwind;
10583 # If system-libunwind was not specifically set, pick a default setting.
10584 if test x$with_system_libunwind = x; then
10586 ia64-*-hpux*) with_system_libunwind=yes ;;
10587 *) with_system_libunwind=no ;;
10590 # Based on system-libunwind and target, do we have ipinfo?
10591 if test x$with_system_libunwind = xyes; then
10593 ia64-*-*) have_unwind_getipinfo=no ;;
10594 *) have_unwind_getipinfo=yes ;;
10597 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10600 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10601 *) have_unwind_getipinfo=yes ;;
10606 if test x$have_unwind_getipinfo = xyes; then
10608 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10613 # --------------------------------------------------------
10614 # Build, host, and target specific configuration fragments
10615 # --------------------------------------------------------
10617 # Collect build-machine-specific information.
10618 . ${srcdir}/config.build
10620 # Collect host-machine-specific information.
10621 . ${srcdir}/config.host
10625 # Collect target-machine-specific information.
10626 . ${srcdir}/config.gcc
10628 extra_objs="${host_extra_objs} ${extra_objs}"
10629 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10631 # Default the target-machine variables that were not explicitly set.
10632 if test x"$tm_file" = x
10633 then tm_file=$cpu_type/$cpu_type.h; fi
10635 if test x"$extra_headers" = x
10636 then extra_headers=; fi
10638 if test x$md_file = x
10639 then md_file=$cpu_type/$cpu_type.md; fi
10641 if test x$out_file = x
10642 then out_file=$cpu_type/$cpu_type.c; fi
10644 if test x"$tmake_file" = x
10645 then tmake_file=$cpu_type/t-$cpu_type
10648 if test x"$dwarf2" = xyes
10649 then tm_file="$tm_file tm-dwarf2.h"
10652 # Say what files are being used for the output code and MD file.
10653 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10654 echo "Using \`$srcdir/config/$md_file' as machine description file."
10656 # If any of the xm_file variables contain nonexistent files, warn
10657 # about them and drop them.
10660 for x in $build_xm_file; do
10661 if test -f $srcdir/config/$x
10663 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10664 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10667 build_xm_file="$bx"
10670 for x in $host_xm_file; do
10671 if test -f $srcdir/config/$x
10673 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10674 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10680 for x in $xm_file; do
10681 if test -f $srcdir/config/$x
10683 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10684 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10690 for f in $tm_file; do
10693 if test $count = ax; then
10694 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10696 echo "Using the following target machine macro files:"
10697 for f in $tm_file; do
10698 echo " $srcdir/config/$f"
10702 if test x$need_64bit_hwint = xyes; then
10704 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10708 if test x$use_long_long_for_widest_fast_int = xyes; then
10710 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10715 for f in $host_xm_file; do
10718 if test $count = a; then
10720 elif test $count = ax; then
10721 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10723 echo "Using the following host machine macro files:"
10724 for f in $host_xm_file; do
10725 echo " $srcdir/config/$f"
10728 echo "Using ${out_host_hook_obj} for host machine hooks."
10730 if test "$host_xm_file" != "$build_xm_file"; then
10732 for f in $build_xm_file; do
10735 if test $count = a; then
10737 elif test $count = ax; then
10738 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10740 echo "Using the following build machine macro files:"
10741 for f in $build_xm_file; do
10742 echo " $srcdir/config/$f"
10748 powerpc*-*-darwin*)
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10750 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10751 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 #include <sys/cdefs.h>
10758 #include <sys/signal.h>
10759 #include <ucontext.h>
10760 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10763 if ac_fn_c_try_compile "$LINENO"; then :
10764 gcc_cv_mcontext_underscores=no
10766 gcc_cv_mcontext_underscores=yes
10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10771 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10772 if test $gcc_cv_mcontext_underscores = yes; then
10774 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10784 # Check if a valid thread package
10785 case ${enable_threads} in
10788 target_thread_file='single'
10792 target_thread_file='single'
10794 aix | dce | gnat | irix | posix | posix95 | rtems | \
10795 single | vxworks | win32 | mipssde)
10796 target_thread_file=${enable_threads}
10799 echo "${enable_threads} is an unknown thread package" 1>&2
10804 if test x${thread_file} = x; then
10805 # No thread file set by target-specific clauses in config.gcc,
10806 # so use file chosen by default logic above
10807 thread_file=${target_thread_file}
10810 # Make gthr-default.h if we have a thread file.
10812 if test $thread_file != single; then
10813 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10814 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10815 rm -f gthr-default.h-t
10817 mv -f gthr-default.h-t gthr-default.h
10819 gthread_flags=-DHAVE_GTHR_DEFAULT
10828 if test x$enable___cxa_atexit = xyes || \
10829 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10830 if test x$host = x$target; then
10832 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10833 # keyed to flag_use_cxa_atexit
10838 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10839 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10842 echo "__cxa_atexit can't be enabled on this target"
10848 # We can't check for __cxa_atexit when building a cross, so assume
10852 if test x$use_cxa_atexit = xyes; then
10854 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10859 # Look for a file containing extra machine modes.
10860 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10861 extra_modes_file='$(srcdir)'/config/${extra_modes}
10864 cat >>confdefs.h <<_ACEOF
10865 #define EXTRA_MODES_FILE "config/$extra_modes"
10870 # Convert extra_options into a form suitable for Makefile use.
10873 for f in $extra_options; do
10874 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10875 all_opt_files="$all_opt_files $srcdir/config/$f"
10879 # auto-host.h is the file containing items generated by autoconf and is
10880 # the first file included by config.h.
10881 # If host=build, it is correct to have bconfig include auto-host.h
10882 # as well. If host!=build, we are in error and need to do more
10883 # work to find out the build config parameters.
10884 if test x$host = x$build
10886 build_auto=auto-host.h
10888 # We create a subdir, then run autoconf in the subdir.
10889 # To prevent recursion we set host and build for the new
10890 # invocation of configure to the build for this invocation
10897 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10898 *) realsrcdir=../${srcdir};;
10900 saved_CFLAGS="${CFLAGS}"
10901 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10902 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10903 ${realsrcdir}/configure \
10904 --enable-languages=${enable_languages-all} \
10905 --target=$target_alias --host=$build_alias --build=$build_alias
10906 CFLAGS="${saved_CFLAGS}"
10908 # We just finished tests for the build machine, so rename
10909 # the file auto-build.h in the gcc directory.
10910 mv auto-host.h ../auto-build.h
10913 build_auto=auto-build.h
10917 tm_file="${tm_file} defaults.h"
10918 tm_p_file="${tm_p_file} tm-preds.h"
10919 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10920 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10921 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10922 # put this back in temporarily.
10923 xm_file="auto-host.h ansidecl.h ${xm_file}"
10929 # Compile in configure arguments.
10930 if test -f configargs.h ; then
10931 # Being re-configured.
10932 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10933 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10935 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10938 # Double all backslashes and backslash all quotes to turn
10939 # gcc_config_arguments into a C string.
10940 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10941 $gcc_config_arguments
10943 gcc_config_arguments_str=`cat conftest.out`
10946 cat > configargs.h <<EOF
10947 /* Generated automatically. */
10948 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10949 static const char thread_model[] = "$thread_file";
10951 static const struct {
10952 const char *name, *value;
10953 } configure_default_options[] = $configure_default_options;
10956 gcc_BASEVER=`cat $srcdir/BASE-VER`
10957 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10958 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10959 if test -f $srcdir/REVISION ; then
10960 gcc_REVISION=`cat $srcdir/REVISION`
10964 cat > plugin-version.h <<EOF
10965 #include "configargs.h"
10967 static char basever[] = "$gcc_BASEVER";
10968 static char datestamp[] = "$gcc_DATESTAMP";
10969 static char devphase[] = "$gcc_DEVPHASE";
10970 static char revision[] = "$gcc_REVISION";
10972 /* FIXME plugins: We should make the version information more precise.
10973 One way to do is to add a checksum. */
10975 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10976 devphase, revision,
10977 configuration_arguments};
10980 # Internationalization
10981 # If we haven't got the data from the intl directory,
10982 # assume NLS is disabled.
10991 if test -f ../intl/config.intl; then
10992 . ../intl/config.intl
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10995 $as_echo_n "checking whether NLS is requested... " >&6; }
10996 if test x"$USE_NLS" != xyes; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11001 $as_echo "yes" >&6; }
11003 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11007 $as_echo_n "checking for catalogs to be installed... " >&6; }
11008 # Look for .po and .gmo files in the source directory.
11011 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11012 # If there aren't any .gmo files the shell will give us the
11013 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11015 case "$cat" in *\**)
11018 # The quadruple backslash is collapsed to a double backslash
11019 # by the backticks, then collapsed again by the double quotes,
11020 # leaving us with one backslash in the sed expression (right
11021 # before the dot that mustn't act as a wildcard).
11022 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11023 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11024 # The user is allowed to set LINGUAS to a list of languages to
11025 # install catalogs for. If it's empty that means "all of them."
11026 if test "x$LINGUAS" = x; then
11027 CATALOGS="$CATALOGS $cat"
11028 XLINGUAS="$XLINGUAS $lang"
11030 case "$LINGUAS" in *$lang*)
11031 CATALOGS="$CATALOGS $cat"
11032 XLINGUAS="$XLINGUAS $lang"
11037 LINGUAS="$XLINGUAS"
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11039 $as_echo "$LINGUAS" >&6; }
11052 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11053 # -liconv on the link line twice.
11054 case "$LIBINTL" in *$LIBICONV*)
11058 # Check whether --enable-secureplt was given.
11059 if test "${enable_secureplt+set}" = set; then :
11060 enableval=$enable_secureplt;
11064 # Check whether --enable-leading-mingw64-underscores was given.
11065 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11066 enableval=$enable_leading_mingw64_underscores;
11069 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11071 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11075 # Check whether --enable-cld was given.
11076 if test "${enable_cld+set}" = set; then :
11077 enableval=$enable_cld;
11083 # Check whether --enable-frame-pointer was given.
11084 if test "${enable_frame_pointer+set}" = set; then :
11085 enableval=$enable_frame_pointer;
11089 linux* | darwin[8912]*)
11090 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11092 enable_frame_pointer=no
11095 enable_frame_pointer=yes
11102 # Windows32 Registry support for specifying GCC installation paths.
11103 # Check whether --enable-win32-registry was given.
11104 if test "${enable_win32_registry+set}" = set; then :
11105 enableval=$enable_win32_registry;
11110 win32 | pe | cygwin* | mingw32* | uwin*)
11111 if test "x$enable_win32_registry" != xno; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11113 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11114 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
11117 ac_func_search_save_LIBS=$LIBS
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11127 char RegOpenKeyExA ();
11131 return RegOpenKeyExA ();
11136 for ac_lib in '' advapi32; do
11137 if test -z "$ac_lib"; then
11138 ac_res="none required"
11141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11143 if ac_fn_c_try_link "$LINENO"; then :
11144 ac_cv_search_RegOpenKeyExA=$ac_res
11146 rm -f core conftest.err conftest.$ac_objext \
11148 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11152 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11155 ac_cv_search_RegOpenKeyExA=no
11157 rm conftest.$ac_ext
11158 LIBS=$ac_func_search_save_LIBS
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11161 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11162 ac_res=$ac_cv_search_RegOpenKeyExA
11163 if test "$ac_res" != no; then :
11164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11167 enable_win32_registry=no
11172 if test "x$enable_win32_registry" != xno; then
11174 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11177 if test "x$enable_win32_registry" != xyes \
11178 && test "x$enable_win32_registry" != x; then
11180 cat >>confdefs.h <<_ACEOF
11181 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11189 # Get an absolute path to the GCC top-level source directory
11190 holddir=`${PWDCMD-pwd}`
11192 topdir=`${PWDCMD-pwd}`
11195 # Conditionalize the makefile for this host machine.
11197 for f in ${host_xmake_file}
11199 if test -f ${srcdir}/config/$f
11201 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11205 # Conditionalize the makefile for this target machine.
11207 for f in ${tmake_file}
11209 if test -f ${srcdir}/config/$f
11211 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11214 tmake_file="${tmake_file_}"
11216 out_object_file=`basename $out_file .c`.o
11218 tm_file_list="options.h"
11219 tm_include_list="options.h insn-constants.h"
11220 for f in $tm_file; do
11223 f=`echo $f | sed 's/^..//'`
11224 tm_file_list="${tm_file_list} $f"
11225 tm_include_list="${tm_include_list} $f"
11228 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11229 tm_include_list="${tm_include_list} $f"
11232 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11233 tm_include_list="${tm_include_list} config/$f"
11238 libgcc_tm_file_list=
11239 libgcc_tm_include_list=
11240 for f in $libgcc_tm_file; do
11241 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11242 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11247 for f in $tm_p_file; do
11250 tm_p_file_list="${tm_p_file_list} $f"
11251 tm_p_include_list="${tm_p_include_list} $f"
11254 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11255 tm_p_include_list="${tm_p_include_list} config/$f"
11261 for f in $xm_file; do
11264 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11265 xm_include_list="${xm_include_list} $f"
11268 xm_file_list="${xm_file_list} $f"
11269 xm_include_list="${xm_include_list} $f"
11272 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11273 xm_include_list="${xm_include_list} config/$f"
11279 host_xm_include_list=
11280 for f in $host_xm_file; do
11283 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11284 host_xm_include_list="${host_xm_include_list} $f"
11287 host_xm_file_list="${host_xm_file_list} $f"
11288 host_xm_include_list="${host_xm_include_list} $f"
11291 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11292 host_xm_include_list="${host_xm_include_list} config/$f"
11297 build_xm_file_list=
11298 for f in $build_xm_file; do
11301 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11302 build_xm_include_list="${build_xm_include_list} $f"
11304 auto-build.h | auto-host.h )
11305 build_xm_file_list="${build_xm_file_list} $f"
11306 build_xm_include_list="${build_xm_include_list} $f"
11309 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11310 build_xm_include_list="${build_xm_include_list} config/$f"
11315 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11316 # cross-compiler which does not use the native headers and libraries.
11317 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11320 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11322 if test "x$with_build_sysroot" != x; then
11323 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11325 # This value is used, even on a native system, because
11326 # CROSS_SYSTEM_HEADER_DIR is just
11327 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11328 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11331 if test x$host != x$target
11333 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11335 SYSTEM_HEADER_DIR=$build_system_header_dir
11336 case "$host","$target" in
11337 # Darwin crosses can use the host system's libraries and headers,
11338 # because of the fat library support. Of course, it must be the
11339 # same version of Darwin on both sides. Allow the user to
11340 # just say --target=foo-darwin without a version number to mean
11341 # "the version on this system".
11342 *-*-darwin*,*-*-darwin*)
11343 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11344 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11345 if test $hostos = $targetos -o $targetos = darwin ; then
11347 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11352 i?86-*-*,x86_64-*-* \
11353 | powerpc*-*-*,powerpc64*-*-*)
11354 CROSS="$CROSS -DNATIVE_CROSS" ;;
11359 if test "x$with_headers" = x; then
11366 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11367 SYSTEM_HEADER_DIR=$build_system_header_dir
11370 # If this is a cross-compiler that does not
11371 # have its own set of headers then define
11374 # If this is using newlib, without having the headers available now,
11375 # then define inhibit_libc in LIBGCC2_CFLAGS.
11376 # This prevents libgcc2 from containing any code which requires libc
11378 : ${inhibit_libc=false}
11379 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11380 test x$with_newlib = xyes ; } &&
11381 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11386 # When building gcc with a cross-compiler, we need to adjust things so
11387 # that the generator programs are still built with the native compiler.
11388 # Also, we cannot run fixincludes.
11390 # These are the normal (build=host) settings:
11391 CC_FOR_BUILD='$(CC)'
11392 BUILD_CFLAGS='$(ALL_CFLAGS)'
11393 BUILD_LDFLAGS='$(LDFLAGS)'
11394 STMP_FIXINC=stmp-fixinc
11396 # And these apply if build != host, or we are generating coverage data
11397 if test x$build != x$host || test "x$coverage_flags" != x
11399 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11400 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11403 # Expand extra_headers to include complete path.
11404 # This substitutes for lots of t-* files.
11405 extra_headers_list=
11406 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11407 for file in ${extra_headers} ; do
11408 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11411 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11412 if test x"$use_gcc_tgmath" = xyes
11413 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11416 # Define collect2 in Makefile.
11417 case $host_can_use_collect2 in
11419 *) collect2='collect2$(exeext)' ;;
11423 # Add a definition of USE_COLLECT2 if system wants one.
11424 case $use_collect2 in
11425 no) use_collect2= ;;
11428 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11429 xm_defines="${xm_defines} USE_COLLECT2"
11430 case $host_can_use_collect2 in
11432 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11439 cat >>confdefs.h <<_ACEOF
11440 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11444 # ---------------------------
11445 # Assembler & linker features
11446 # ---------------------------
11448 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11449 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11450 # However when ld-new is first executed from the build tree, libtool will
11451 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11452 # to the build tree. While doing this we need to use the previous-stage
11453 # linker, or we have an infinite loop. The presence of a shell script as
11454 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11455 # the gcc/collect-ld script. So we need to know how libtool works, or
11456 # exec-tool will fail.
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11462 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11467 macro_version='2.2.7a'
11468 macro_revision='1.3134'
11482 ltmain="$ac_aux_dir/ltmain.sh"
11484 # Backslashify metacharacters that are still active within
11485 # double-quoted strings.
11486 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11488 # Same as above, but do not quote variable references.
11489 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11491 # Sed substitution to delay expansion of an escaped shell variable in a
11492 # double_quote_subst'ed string.
11493 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11495 # Sed substitution to delay expansion of an escaped single quote.
11496 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11498 # Sed substitution to avoid accidental globbing in evaled expressions
11499 no_glob_subst='s/\*/\\\*/g'
11501 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11506 $as_echo_n "checking how to print strings... " >&6; }
11507 # Test print first, because it will be a builtin if present.
11508 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11509 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11511 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11514 # Use this function as a fallback that always works.
11515 func_fallback_echo ()
11517 eval 'cat <<_LTECHO_EOF
11521 ECHO='func_fallback_echo'
11524 # func_echo_all arg...
11525 # Invoke $ECHO with all args, space-separated.
11532 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11533 $as_echo "printf" >&6; } ;;
11534 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11535 $as_echo "print -r" >&6; } ;;
11536 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11537 $as_echo "cat" >&6; } ;;
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11554 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11555 if test "${ac_cv_path_SED+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11558 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11559 for ac_i in 1 2 3 4 5 6 7; do
11560 ac_script="$ac_script$as_nl$ac_script"
11562 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11563 { ac_script=; unset ac_script;}
11564 if test -z "$SED"; then
11565 ac_path_SED_found=false
11566 # Loop through the user's path and test for each of PROGNAME-LIST
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11571 test -z "$as_dir" && as_dir=.
11572 for ac_prog in sed gsed; do
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11575 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11576 # Check for GNU ac_path_SED and select it if it is found.
11577 # Check for GNU $ac_path_SED
11578 case `"$ac_path_SED" --version 2>&1` in
11580 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11583 $as_echo_n 0123456789 >"conftest.in"
11586 cat "conftest.in" "conftest.in" >"conftest.tmp"
11587 mv "conftest.tmp" "conftest.in"
11588 cp "conftest.in" "conftest.nl"
11589 $as_echo '' >> "conftest.nl"
11590 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11592 as_fn_arith $ac_count + 1 && ac_count=$as_val
11593 if test $ac_count -gt ${ac_path_SED_max-0}; then
11594 # Best one so far, save it but keep looking for a better one
11595 ac_cv_path_SED="$ac_path_SED"
11596 ac_path_SED_max=$ac_count
11598 # 10*(2^10) chars as input seems more than enough
11599 test $ac_count -gt 10 && break
11601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11604 $ac_path_SED_found && break 3
11609 if test -z "$ac_cv_path_SED"; then
11610 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11613 ac_cv_path_SED=$SED
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11618 $as_echo "$ac_cv_path_SED" >&6; }
11619 SED="$ac_cv_path_SED"
11622 test -z "$SED" && SED=sed
11623 Xsed="$SED -e 1s/^X//"
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11636 $as_echo_n "checking for fgrep... " >&6; }
11637 if test "${ac_cv_path_FGREP+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11640 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11641 then ac_cv_path_FGREP="$GREP -F"
11643 if test -z "$FGREP"; then
11644 ac_path_FGREP_found=false
11645 # Loop through the user's path and test for each of PROGNAME-LIST
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11650 test -z "$as_dir" && as_dir=.
11651 for ac_prog in fgrep; do
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11654 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11655 # Check for GNU ac_path_FGREP and select it if it is found.
11656 # Check for GNU $ac_path_FGREP
11657 case `"$ac_path_FGREP" --version 2>&1` in
11659 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11662 $as_echo_n 0123456789 >"conftest.in"
11665 cat "conftest.in" "conftest.in" >"conftest.tmp"
11666 mv "conftest.tmp" "conftest.in"
11667 cp "conftest.in" "conftest.nl"
11668 $as_echo 'FGREP' >> "conftest.nl"
11669 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11671 as_fn_arith $ac_count + 1 && ac_count=$as_val
11672 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11673 # Best one so far, save it but keep looking for a better one
11674 ac_cv_path_FGREP="$ac_path_FGREP"
11675 ac_path_FGREP_max=$ac_count
11677 # 10*(2^10) chars as input seems more than enough
11678 test $ac_count -gt 10 && break
11680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11683 $ac_path_FGREP_found && break 3
11688 if test -z "$ac_cv_path_FGREP"; then
11689 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11692 ac_cv_path_FGREP=$FGREP
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11698 $as_echo "$ac_cv_path_FGREP" >&6; }
11699 FGREP="$ac_cv_path_FGREP"
11702 test -z "$GREP" && GREP=grep
11722 # Check whether --with-gnu-ld was given.
11723 if test "${with_gnu_ld+set}" = set; then :
11724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11730 if test "$GCC" = yes; then
11731 # Check if gcc -print-prog-name=ld gives a path.
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11733 $as_echo_n "checking for ld used by $CC... " >&6; }
11736 # gcc leaves a trailing carriage return which upsets mingw
11737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11742 # Accept absolute paths.
11744 re_direlt='/[^/][^/]*/\.\./'
11745 # Canonicalize the pathname of ld
11746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11750 test -z "$LD" && LD="$ac_prog"
11753 # If it fails, then pretend we aren't using GCC.
11757 # If it is relative, then search for the first ld in PATH.
11758 with_gnu_ld=unknown
11761 elif test "$with_gnu_ld" = yes; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11763 $as_echo_n "checking for GNU ld... " >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11766 $as_echo_n "checking for non-GNU ld... " >&6; }
11768 if test "${lt_cv_path_LD+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
11771 if test -z "$LD"; then
11772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11773 for ac_dir in $PATH; do
11775 test -z "$ac_dir" && ac_dir=.
11776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11777 lt_cv_path_LD="$ac_dir/$ac_prog"
11778 # Check to see if the program is GNU ld. I'd rather use --version,
11779 # but apparently some variants of GNU ld only accept -v.
11780 # Break only if it was the GNU/non-GNU ld that we prefer.
11781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11782 *GNU* | *'with BFD'*)
11783 test "$with_gnu_ld" != no && break
11786 test "$with_gnu_ld" != yes && break
11793 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11797 LD="$lt_cv_path_LD"
11798 if test -n "$LD"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11800 $as_echo "$LD" >&6; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11805 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11812 case `$LD -v 2>&1 </dev/null` in
11813 *GNU* | *'with BFD'*)
11814 lt_cv_prog_gnu_ld=yes
11817 lt_cv_prog_gnu_ld=no
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11823 with_gnu_ld=$lt_cv_prog_gnu_ld
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11834 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11835 if test "${lt_cv_path_NM+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
11838 if test -n "$NM"; then
11839 # Let the user override the test.
11840 lt_cv_path_NM="$NM"
11842 lt_nm_to_check="${ac_tool_prefix}nm"
11843 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11844 lt_nm_to_check="$lt_nm_to_check nm"
11846 for lt_tmp_nm in $lt_nm_to_check; do
11847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11848 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11850 test -z "$ac_dir" && ac_dir=.
11851 tmp_nm="$ac_dir/$lt_tmp_nm"
11852 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11853 # Check to see if the nm accepts a BSD-compat flag.
11854 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11855 # nm: unknown option "B" ignored
11856 # Tru64's nm complains that /dev/null is an invalid object file
11857 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11858 */dev/null* | *'Invalid file or object type'*)
11859 lt_cv_path_NM="$tmp_nm -B"
11863 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11865 lt_cv_path_NM="$tmp_nm -p"
11869 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11870 continue # so that we can try to find one that supports BSD flags
11879 : ${lt_cv_path_NM=no}
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11883 $as_echo "$lt_cv_path_NM" >&6; }
11884 if test "$lt_cv_path_NM" != "no"; then
11885 NM="$lt_cv_path_NM"
11887 # Didn't find any BSD compatible name lister, look for dumpbin.
11888 if test -n "$DUMPBIN"; then :
11889 # Let the user override the test.
11891 if test -n "$ac_tool_prefix"; then
11892 for ac_prog in dumpbin "link -dump"
11894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
11901 if test -n "$DUMPBIN"; then
11902 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 DUMPBIN=$ac_cv_prog_DUMPBIN
11922 if test -n "$DUMPBIN"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11924 $as_echo "$DUMPBIN" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11931 test -n "$DUMPBIN" && break
11934 if test -z "$DUMPBIN"; then
11935 ac_ct_DUMPBIN=$DUMPBIN
11936 for ac_prog in dumpbin "link -dump"
11938 # Extract the first word of "$ac_prog", so it can be a program name with args.
11939 set dummy $ac_prog; ac_word=$2
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941 $as_echo_n "checking for $ac_word... " >&6; }
11942 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
11945 if test -n "$ac_ct_DUMPBIN"; then
11946 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in $PATH
11952 test -z "$as_dir" && as_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11955 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11966 if test -n "$ac_ct_DUMPBIN"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11968 $as_echo "$ac_ct_DUMPBIN" >&6; }
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11975 test -n "$ac_ct_DUMPBIN" && break
11978 if test "x$ac_ct_DUMPBIN" = x; then
11981 case $cross_compiling:$ac_tool_warned in
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11985 ac_tool_warned=yes ;;
11987 DUMPBIN=$ac_ct_DUMPBIN
11991 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11993 DUMPBIN="$DUMPBIN -symbols"
12001 if test "$DUMPBIN" != ":"; then
12005 test -z "$NM" && NM=nm
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12013 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12014 if test "${lt_cv_nm_interface+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12017 lt_cv_nm_interface="BSD nm"
12018 echo "int some_variable = 0;" > conftest.$ac_ext
12019 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12020 (eval "$ac_compile" 2>conftest.err)
12021 cat conftest.err >&5
12022 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12023 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12024 cat conftest.err >&5
12025 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12026 cat conftest.out >&5
12027 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12028 lt_cv_nm_interface="MS dumpbin"
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12033 $as_echo "$lt_cv_nm_interface" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12036 $as_echo_n "checking whether ln -s works... " >&6; }
12038 if test "$LN_S" = "ln -s"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040 $as_echo "yes" >&6; }
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12043 $as_echo "no, using $LN_S" >&6; }
12046 # find the maximum length of command line arguments
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12048 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12049 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12057 # On DJGPP, this test can blow up pretty badly due to problems in libc
12058 # (any single argument exceeding 2000 bytes causes a buffer overrun
12059 # during glob expansion). Even if it were fixed, the result of this
12060 # check would be larger than it should be.
12061 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12065 # Under GNU Hurd, this test is not required because there is
12066 # no limit to the length of command line arguments.
12067 # Libtool will interpret -1 as no limit whatsoever
12068 lt_cv_sys_max_cmd_len=-1;
12071 cygwin* | mingw* | cegcc*)
12072 # On Win9x/ME, this test blows up -- it succeeds, but takes
12073 # about 5 minutes as the teststring grows exponentially.
12074 # Worse, since 9x/ME are not pre-emptively multitasking,
12075 # you end up with a "frozen" computer, even though with patience
12076 # the test eventually succeeds (with a max line length of 256k).
12077 # Instead, let's just punt: use the minimum linelength reported by
12078 # all of the supported platforms: 8192 (on NT/2K/XP).
12079 lt_cv_sys_max_cmd_len=8192;
12083 # On MiNT this can take a long time and run out of memory.
12084 lt_cv_sys_max_cmd_len=8192;
12088 # On AmigaOS with pdksh, this test takes hours, literally.
12089 # So we just punt and use a minimum line length of 8192.
12090 lt_cv_sys_max_cmd_len=8192;
12093 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12094 # This has been around since 386BSD, at least. Likely further.
12095 if test -x /sbin/sysctl; then
12096 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12097 elif test -x /usr/sbin/sysctl; then
12098 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12100 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12102 # And add a safety zone
12103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12108 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12109 lt_cv_sys_max_cmd_len=196608
12113 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12114 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12115 # nice to cause kernel panics so lets avoid the loop below.
12116 # First set a reasonable default.
12117 lt_cv_sys_max_cmd_len=16384
12119 if test -x /sbin/sysconfig; then
12120 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12121 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12126 lt_cv_sys_max_cmd_len=102400
12128 sysv5* | sco5v6* | sysv4.2uw2*)
12129 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12130 if test -n "$kargmax"; then
12131 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12133 lt_cv_sys_max_cmd_len=32768
12137 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12138 if test -n "$lt_cv_sys_max_cmd_len"; then
12139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12142 # Make teststring a little bigger before we do anything with it.
12143 # a 1K string should be a reasonable start.
12144 for i in 1 2 3 4 5 6 7 8 ; do
12145 teststring=$teststring$teststring
12147 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12148 # If test is not a shell built-in, we'll probably end up computing a
12149 # maximum length that is only half of the actual maximum length, but
12151 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12152 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12153 test $i != 17 # 1/2 MB should be enough
12156 teststring=$teststring$teststring
12158 # Only check the string length outside the loop.
12159 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12161 # Add a significant safety factor because C++ compilers can tack on
12162 # massive amounts of additional arguments before passing them to the
12163 # linker. It appears as though 1/2 is a usable value.
12164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12171 if test -n $lt_cv_sys_max_cmd_len ; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12173 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12176 $as_echo "none" >&6; }
12178 max_cmd_len=$lt_cv_sys_max_cmd_len
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12190 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12191 # Try some XSI features
12193 ( _lt_dummy="a/b/c"
12194 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12196 && eval 'test $(( 1 + 1 )) -eq 2 \
12197 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12200 $as_echo "$xsi_shell" >&6; }
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12204 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12206 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12208 && lt_shell_append=yes
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12210 $as_echo "$lt_shell_append" >&6; }
12213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12223 # test EBCDIC or ASCII
12224 case `echo X|tr X '\101'` in
12225 A) # ASCII based system
12226 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12227 lt_SP2NL='tr \040 \012'
12228 lt_NL2SP='tr \015\012 \040\040'
12230 *) # EBCDIC based system
12231 lt_SP2NL='tr \100 \n'
12232 lt_NL2SP='tr \r\n \100\100'
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12245 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12246 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12249 lt_cv_ld_reload_flag='-r'
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12252 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12253 reload_flag=$lt_cv_ld_reload_flag
12254 case $reload_flag in
12256 *) reload_flag=" $reload_flag" ;;
12258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12261 if test "$GCC" = yes; then
12262 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12264 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12277 if test -n "$ac_tool_prefix"; then
12278 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12279 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12285 if test -n "$OBJDUMP"; then
12286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12295 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305 OBJDUMP=$ac_cv_prog_OBJDUMP
12306 if test -n "$OBJDUMP"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12308 $as_echo "$OBJDUMP" >&6; }
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12316 if test -z "$ac_cv_prog_OBJDUMP"; then
12317 ac_ct_OBJDUMP=$OBJDUMP
12318 # Extract the first word of "objdump", so it can be a program name with args.
12319 set dummy objdump; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12325 if test -n "$ac_ct_OBJDUMP"; then
12326 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12346 if test -n "$ac_ct_OBJDUMP"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12348 $as_echo "$ac_ct_OBJDUMP" >&6; }
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12354 if test "x$ac_ct_OBJDUMP" = x; then
12357 case $cross_compiling:$ac_tool_warned in
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12361 ac_tool_warned=yes ;;
12363 OBJDUMP=$ac_ct_OBJDUMP
12366 OBJDUMP="$ac_cv_prog_OBJDUMP"
12369 test -z "$OBJDUMP" && OBJDUMP=objdump
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12380 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12381 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12384 lt_cv_file_magic_cmd='$MAGIC_CMD'
12385 lt_cv_file_magic_test_file=
12386 lt_cv_deplibs_check_method='unknown'
12387 # Need to set the preceding variable on all platforms that support
12388 # interlibrary dependencies.
12389 # 'none' -- dependencies not supported.
12390 # `unknown' -- same as none, but documents that we really don't know.
12391 # 'pass_all' -- all dependencies passed with no checks.
12392 # 'test_compile' -- check by making test program.
12393 # 'file_magic [[regex]]' -- check by looking for files in library path
12394 # which responds to the $file_magic_cmd with a given extended regex.
12395 # If you have `file' or equivalent on your system and you're not sure
12396 # whether `pass_all' will *always* work, you probably want this one.
12400 lt_cv_deplibs_check_method=pass_all
12404 lt_cv_deplibs_check_method=pass_all
12408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12409 lt_cv_file_magic_cmd='/usr/bin/file -L'
12410 lt_cv_file_magic_test_file=/shlib/libc.so
12414 # func_win32_libid is a shell function defined in ltmain.sh
12415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12416 lt_cv_file_magic_cmd='func_win32_libid'
12420 # Base MSYS/MinGW do not provide the 'file' command needed by
12421 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12422 # unless we find 'file', for example because we are cross-compiling.
12423 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12424 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12426 lt_cv_file_magic_cmd='func_win32_libid'
12428 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12429 lt_cv_file_magic_cmd='$OBJDUMP -f'
12434 # use the weaker test based on 'objdump'. See mingw*.
12435 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12436 lt_cv_file_magic_cmd='$OBJDUMP -f'
12439 darwin* | rhapsody*)
12440 lt_cv_deplibs_check_method=pass_all
12443 freebsd* | dragonfly*)
12444 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12447 # Not sure whether the presence of OpenBSD here was a mistake.
12448 # Let's accept both of them until this is cleared up.
12449 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12450 lt_cv_file_magic_cmd=/usr/bin/file
12451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12455 lt_cv_deplibs_check_method=pass_all
12460 lt_cv_deplibs_check_method=pass_all
12464 lt_cv_deplibs_check_method=pass_all
12467 hpux10.20* | hpux11*)
12468 lt_cv_file_magic_cmd=/usr/bin/file
12471 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12472 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12475 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]'
12476 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12479 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12480 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12486 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12490 irix5* | irix6* | nonstopux*)
12492 *-32|*"-32 ") libmagic=32-bit;;
12493 *-n32|*"-n32 ") libmagic=N32;;
12494 *-64|*"-64 ") libmagic=64-bit;;
12495 *) libmagic=never-match;;
12497 lt_cv_deplibs_check_method=pass_all
12500 # This must be Linux ELF.
12501 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12502 lt_cv_deplibs_check_method=pass_all
12506 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12515 lt_cv_file_magic_cmd=/usr/bin/file
12516 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12520 lt_cv_deplibs_check_method=pass_all
12524 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12531 osf3* | osf4* | osf5*)
12532 lt_cv_deplibs_check_method=pass_all
12536 lt_cv_deplibs_check_method=pass_all
12540 lt_cv_deplibs_check_method=pass_all
12543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12544 lt_cv_deplibs_check_method=pass_all
12548 case $host_vendor in
12550 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]'
12551 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12554 lt_cv_deplibs_check_method=pass_all
12557 lt_cv_file_magic_cmd='/bin/file'
12558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12561 lt_cv_file_magic_cmd='/bin/file'
12562 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12563 lt_cv_file_magic_test_file=/lib/libc.so
12566 lt_cv_deplibs_check_method=pass_all
12569 lt_cv_deplibs_check_method=pass_all
12575 lt_cv_deplibs_check_method=pass_all
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12581 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12582 file_magic_cmd=$lt_cv_file_magic_cmd
12583 deplibs_check_method=$lt_cv_deplibs_check_method
12584 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12597 if test -n "$ac_tool_prefix"; then
12598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12599 set dummy ${ac_tool_prefix}ar; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if test "${ac_cv_prog_AR+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
12605 if test -n "$AR"; then
12606 ac_cv_prog_AR="$AR" # Let the user override the test.
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12612 test -z "$as_dir" && as_dir=.
12613 for ac_exec_ext in '' $ac_executable_extensions; do
12614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12615 ac_cv_prog_AR="${ac_tool_prefix}ar"
12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12626 if test -n "$AR"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12628 $as_echo "$AR" >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12636 if test -z "$ac_cv_prog_AR"; then
12638 # Extract the first word of "ar", so it can be a program name with args.
12639 set dummy ar; ac_word=$2
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12641 $as_echo_n "checking for $ac_word... " >&6; }
12642 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12645 if test -n "$ac_ct_AR"; then
12646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649 for as_dir in $PATH
12652 test -z "$as_dir" && as_dir=.
12653 for ac_exec_ext in '' $ac_executable_extensions; do
12654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12655 ac_cv_prog_ac_ct_AR="ar"
12656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12666 if test -n "$ac_ct_AR"; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12668 $as_echo "$ac_ct_AR" >&6; }
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12674 if test "x$ac_ct_AR" = x; then
12677 case $cross_compiling:$ac_tool_warned in
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12681 ac_tool_warned=yes ;;
12686 AR="$ac_cv_prog_AR"
12689 test -z "$AR" && AR=ar
12690 test -z "$AR_FLAGS" && AR_FLAGS=cru
12702 if test -n "$ac_tool_prefix"; then
12703 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12704 set dummy ${ac_tool_prefix}strip; ac_word=$2
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706 $as_echo_n "checking for $ac_word... " >&6; }
12707 if test "${ac_cv_prog_STRIP+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12710 if test -n "$STRIP"; then
12711 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12717 test -z "$as_dir" && as_dir=.
12718 for ac_exec_ext in '' $ac_executable_extensions; do
12719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12720 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12730 STRIP=$ac_cv_prog_STRIP
12731 if test -n "$STRIP"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12733 $as_echo "$STRIP" >&6; }
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12741 if test -z "$ac_cv_prog_STRIP"; then
12743 # Extract the first word of "strip", so it can be a program name with args.
12744 set dummy strip; ac_word=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746 $as_echo_n "checking for $ac_word... " >&6; }
12747 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12748 $as_echo_n "(cached) " >&6
12750 if test -n "$ac_ct_STRIP"; then
12751 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754 for as_dir in $PATH
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12760 ac_cv_prog_ac_ct_STRIP="strip"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12770 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12771 if test -n "$ac_ct_STRIP"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12773 $as_echo "$ac_ct_STRIP" >&6; }
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12779 if test "x$ac_ct_STRIP" = x; then
12782 case $cross_compiling:$ac_tool_warned in
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12786 ac_tool_warned=yes ;;
12791 STRIP="$ac_cv_prog_STRIP"
12794 test -z "$STRIP" && STRIP=:
12801 if test -n "$ac_tool_prefix"; then
12802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12803 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
12809 if test -n "$RANLIB"; then
12810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813 for as_dir in $PATH
12816 test -z "$as_dir" && as_dir=.
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829 RANLIB=$ac_cv_prog_RANLIB
12830 if test -n "$RANLIB"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12832 $as_echo "$RANLIB" >&6; }
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12840 if test -z "$ac_cv_prog_RANLIB"; then
12841 ac_ct_RANLIB=$RANLIB
12842 # Extract the first word of "ranlib", so it can be a program name with args.
12843 set dummy ranlib; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12849 if test -n "$ac_ct_RANLIB"; then
12850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH
12856 test -z "$as_dir" && as_dir=.
12857 for ac_exec_ext in '' $ac_executable_extensions; do
12858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12859 ac_cv_prog_ac_ct_RANLIB="ranlib"
12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12870 if test -n "$ac_ct_RANLIB"; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12872 $as_echo "$ac_ct_RANLIB" >&6; }
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12878 if test "x$ac_ct_RANLIB" = x; then
12881 case $cross_compiling:$ac_tool_warned in
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12885 ac_tool_warned=yes ;;
12887 RANLIB=$ac_ct_RANLIB
12890 RANLIB="$ac_cv_prog_RANLIB"
12893 test -z "$RANLIB" && RANLIB=:
12900 # Determine commands to create old-style static archives.
12901 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12902 old_postinstall_cmds='chmod 644 $oldlib'
12903 old_postuninstall_cmds=
12905 if test -n "$RANLIB"; then
12908 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12911 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12914 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12919 lock_old_archive_extraction=yes ;;
12921 lock_old_archive_extraction=no ;;
12962 # If no C compiler was specified, use CC.
12965 # If no C compiler flags were specified, use CFLAGS.
12966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12968 # Allow CC to be a program name with arguments.
12972 # Check for command to grab the raw symbol name followed by C symbol from nm.
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12974 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12975 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12976 $as_echo_n "(cached) " >&6
12979 # These are sane defaults that work on at least a few old systems.
12980 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12982 # Character class describing NM global symbol codes.
12983 symcode='[BCDEGRST]'
12985 # Regexp to match symbols that can be accessed directly from C.
12986 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12988 # Define system-specific variables.
12993 cygwin* | mingw* | pw32* | cegcc*)
12994 symcode='[ABCDGISTW]'
12997 if test "$host_cpu" = ia64; then
12998 symcode='[ABCDEGRST]'
13001 irix* | nonstopux*)
13002 symcode='[BCDEGRST]'
13005 symcode='[BCDEGQRST]'
13016 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13024 # If we're using GNU nm, then use its standard symbol codes.
13025 case `$NM -V 2>&1` in
13026 *GNU* | *'with BFD'*)
13027 symcode='[ABCDGIRSTW]' ;;
13030 # Transform an extracted symbol line into a proper C declaration.
13031 # Some systems (esp. on ia64) link data and code symbols differently,
13032 # so use this general approach.
13033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13035 # Transform an extracted symbol line into symbol name and symbol address
13036 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13037 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'"
13039 # Handle CRLF in mingw tool chain
13043 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13047 # Try without a prefix underscore, then with it.
13048 for ac_symprfx in "" "_"; do
13050 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13051 symxfrm="\\1 $ac_symprfx\\2 \\2"
13053 # Write the raw and C identifiers.
13054 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13055 # Fake it for dumpbin and say T for any non-static function
13056 # and D for any global variable.
13057 # Also find C++ and __fastcall symbols from MSVC++,
13058 # which start with @ or ?.
13059 lt_cv_sys_global_symbol_pipe="$AWK '"\
13060 " {last_section=section; section=\$ 3};"\
13061 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13062 " \$ 0!~/External *\|/{next};"\
13063 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13064 " {if(hide[section]) next};"\
13065 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13066 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13067 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13068 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13069 " ' prfx=^$ac_symprfx"
13071 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13074 # Check to see that the pipe works correctly.
13078 cat > conftest.$ac_ext <<_LT_EOF
13083 void nm_test_func(void);
13084 void nm_test_func(void){}
13088 int main(){nm_test_var='a';nm_test_func();return(0);}
13091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13092 (eval $ac_compile) 2>&5
13094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13095 test $ac_status = 0; }; then
13096 # Now try to grab the symbols.
13098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13099 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13102 test $ac_status = 0; } && test -s "$nlist"; then
13103 # Try sorting and uniquifying the output.
13104 if sort "$nlist" | uniq > "$nlist"T; then
13105 mv -f "$nlist"T "$nlist"
13110 # Make sure that we snagged all the symbols we need.
13111 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13112 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13113 cat <<_LT_EOF > conftest.$ac_ext
13119 # Now generate the symbol file.
13120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13122 cat <<_LT_EOF >> conftest.$ac_ext
13124 /* The mapping between symbol names and symbols. */
13129 lt__PROGRAM__LTX_preloaded_symbols[] =
13131 { "@PROGRAM@", (void *) 0 },
13133 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13134 cat <<\_LT_EOF >> conftest.$ac_ext
13138 /* This works around a problem in FreeBSD linker */
13139 #ifdef FREEBSD_WORKAROUND
13140 static const void *lt_preloaded_setup() {
13141 return lt__PROGRAM__LTX_preloaded_symbols;
13149 # Now try linking the two files.
13150 mv conftest.$ac_objext conftstm.$ac_objext
13151 lt_save_LIBS="$LIBS"
13152 lt_save_CFLAGS="$CFLAGS"
13153 LIBS="conftstm.$ac_objext"
13154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13156 (eval $ac_link) 2>&5
13158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13159 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13162 LIBS="$lt_save_LIBS"
13163 CFLAGS="$lt_save_CFLAGS"
13165 echo "cannot find nm_test_func in $nlist" >&5
13168 echo "cannot find nm_test_var in $nlist" >&5
13171 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13174 echo "$progname: failed program was:" >&5
13175 cat conftest.$ac_ext >&5
13177 rm -rf conftest* conftst*
13179 # Do not use the global_symbol_pipe unless it works.
13180 if test "$pipe_works" = yes; then
13183 lt_cv_sys_global_symbol_pipe=
13189 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13190 lt_cv_sys_global_symbol_to_cdecl=
13192 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13194 $as_echo "failed" >&6; }
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13197 $as_echo "ok" >&6; }
13221 # Check whether --enable-libtool-lock was given.
13222 if test "${enable_libtool_lock+set}" = set; then :
13223 enableval=$enable_libtool_lock;
13226 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13228 # Some flags need to be propagated to the compiler or linker for good
13232 # Find out which ABI we are using.
13233 echo 'int i;' > conftest.$ac_ext
13234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13235 (eval $ac_compile) 2>&5
13237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238 test $ac_status = 0; }; then
13239 case `/usr/bin/file conftest.$ac_objext` in
13241 HPUX_IA64_MODE="32"
13244 HPUX_IA64_MODE="64"
13251 # Find out which ABI we are using.
13252 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13254 (eval $ac_compile) 2>&5
13256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13257 test $ac_status = 0; }; then
13258 if test "$lt_cv_prog_gnu_ld" = yes; then
13259 case `/usr/bin/file conftest.$ac_objext` in
13261 LD="${LD-ld} -melf32bsmip"
13264 LD="${LD-ld} -melf32bmipn32"
13267 LD="${LD-ld} -melf64bmip"
13271 case `/usr/bin/file conftest.$ac_objext` in
13287 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13288 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13289 # Find out which ABI we are using.
13290 echo 'int i;' > conftest.$ac_ext
13291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13292 (eval $ac_compile) 2>&5
13294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13295 test $ac_status = 0; }; then
13296 case `/usr/bin/file conftest.o` in
13299 x86_64-*kfreebsd*-gnu)
13300 LD="${LD-ld} -m elf_i386_fbsd"
13303 LD="${LD-ld} -m elf_i386"
13305 ppc64-*linux*|powerpc64-*linux*)
13306 LD="${LD-ld} -m elf32ppclinux"
13309 LD="${LD-ld} -m elf_s390"
13312 LD="${LD-ld} -m elf32_sparc"
13318 x86_64-*kfreebsd*-gnu)
13319 LD="${LD-ld} -m elf_x86_64_fbsd"
13322 LD="${LD-ld} -m elf_x86_64"
13324 ppc*-*linux*|powerpc*-*linux*)
13325 LD="${LD-ld} -m elf64ppc"
13327 s390*-*linux*|s390*-*tpf*)
13328 LD="${LD-ld} -m elf64_s390"
13331 LD="${LD-ld} -m elf64_sparc"
13341 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13342 SAVE_CFLAGS="$CFLAGS"
13343 CFLAGS="$CFLAGS -belf"
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13345 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13346 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13350 ac_cpp='$CPP $CPPFLAGS'
13351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 lt_cv_cc_needs_belf=yes
13369 lt_cv_cc_needs_belf=no
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13374 ac_cpp='$CPP $CPPFLAGS'
13375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13381 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13382 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13383 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13384 CFLAGS="$SAVE_CFLAGS"
13388 # Find out which ABI we are using.
13389 echo 'int i;' > conftest.$ac_ext
13390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13391 (eval $ac_compile) 2>&5
13393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13394 test $ac_status = 0; }; then
13395 case `/usr/bin/file conftest.o` in
13397 case $lt_cv_prog_gnu_ld in
13398 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13400 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13412 need_locks="$enable_libtool_lock"
13416 rhapsody* | darwin*)
13417 if test -n "$ac_tool_prefix"; then
13418 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13419 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13425 if test -n "$DSYMUTIL"; then
13426 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13435 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13446 if test -n "$DSYMUTIL"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13448 $as_echo "$DSYMUTIL" >&6; }
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13456 if test -z "$ac_cv_prog_DSYMUTIL"; then
13457 ac_ct_DSYMUTIL=$DSYMUTIL
13458 # Extract the first word of "dsymutil", so it can be a program name with args.
13459 set dummy dsymutil; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
13465 if test -n "$ac_ct_DSYMUTIL"; then
13466 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13475 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13485 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13486 if test -n "$ac_ct_DSYMUTIL"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13488 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13494 if test "x$ac_ct_DSYMUTIL" = x; then
13497 case $cross_compiling:$ac_tool_warned in
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13501 ac_tool_warned=yes ;;
13503 DSYMUTIL=$ac_ct_DSYMUTIL
13506 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13509 if test -n "$ac_tool_prefix"; then
13510 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13511 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13515 $as_echo_n "(cached) " >&6
13517 if test -n "$NMEDIT"; then
13518 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13524 test -z "$as_dir" && as_dir=.
13525 for ac_exec_ext in '' $ac_executable_extensions; do
13526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13527 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 NMEDIT=$ac_cv_prog_NMEDIT
13538 if test -n "$NMEDIT"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13540 $as_echo "$NMEDIT" >&6; }
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13548 if test -z "$ac_cv_prog_NMEDIT"; then
13549 ac_ct_NMEDIT=$NMEDIT
13550 # Extract the first word of "nmedit", so it can be a program name with args.
13551 set dummy nmedit; ac_word=$2
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13553 $as_echo_n "checking for $ac_word... " >&6; }
13554 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13555 $as_echo_n "(cached) " >&6
13557 if test -n "$ac_ct_NMEDIT"; then
13558 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13561 for as_dir in $PATH
13564 test -z "$as_dir" && as_dir=.
13565 for ac_exec_ext in '' $ac_executable_extensions; do
13566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13567 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13578 if test -n "$ac_ct_NMEDIT"; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13580 $as_echo "$ac_ct_NMEDIT" >&6; }
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13586 if test "x$ac_ct_NMEDIT" = x; then
13589 case $cross_compiling:$ac_tool_warned in
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13593 ac_tool_warned=yes ;;
13595 NMEDIT=$ac_ct_NMEDIT
13598 NMEDIT="$ac_cv_prog_NMEDIT"
13601 if test -n "$ac_tool_prefix"; then
13602 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13603 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13605 $as_echo_n "checking for $ac_word... " >&6; }
13606 if test "${ac_cv_prog_LIPO+set}" = set; then :
13607 $as_echo_n "(cached) " >&6
13609 if test -n "$LIPO"; then
13610 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13616 test -z "$as_dir" && as_dir=.
13617 for ac_exec_ext in '' $ac_executable_extensions; do
13618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13619 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13629 LIPO=$ac_cv_prog_LIPO
13630 if test -n "$LIPO"; then
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13632 $as_echo "$LIPO" >&6; }
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13640 if test -z "$ac_cv_prog_LIPO"; then
13642 # Extract the first word of "lipo", so it can be a program name with args.
13643 set dummy lipo; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13647 $as_echo_n "(cached) " >&6
13649 if test -n "$ac_ct_LIPO"; then
13650 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13659 ac_cv_prog_ac_ct_LIPO="lipo"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13669 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13670 if test -n "$ac_ct_LIPO"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13672 $as_echo "$ac_ct_LIPO" >&6; }
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13678 if test "x$ac_ct_LIPO" = x; then
13681 case $cross_compiling:$ac_tool_warned in
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13685 ac_tool_warned=yes ;;
13690 LIPO="$ac_cv_prog_LIPO"
13693 if test -n "$ac_tool_prefix"; then
13694 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13695 set dummy ${ac_tool_prefix}otool; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13699 $as_echo_n "(cached) " >&6
13701 if test -n "$OTOOL"; then
13702 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
13710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13711 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13721 OTOOL=$ac_cv_prog_OTOOL
13722 if test -n "$OTOOL"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13724 $as_echo "$OTOOL" >&6; }
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 $as_echo "no" >&6; }
13732 if test -z "$ac_cv_prog_OTOOL"; then
13734 # Extract the first word of "otool", so it can be a program name with args.
13735 set dummy otool; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737 $as_echo_n "checking for $ac_word... " >&6; }
13738 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13739 $as_echo_n "(cached) " >&6
13741 if test -n "$ac_ct_OTOOL"; then
13742 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13751 ac_cv_prog_ac_ct_OTOOL="otool"
13752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13761 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13762 if test -n "$ac_ct_OTOOL"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13764 $as_echo "$ac_ct_OTOOL" >&6; }
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13770 if test "x$ac_ct_OTOOL" = x; then
13773 case $cross_compiling:$ac_tool_warned in
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13777 ac_tool_warned=yes ;;
13782 OTOOL="$ac_cv_prog_OTOOL"
13785 if test -n "$ac_tool_prefix"; then
13786 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13787 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13789 $as_echo_n "checking for $ac_word... " >&6; }
13790 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13791 $as_echo_n "(cached) " >&6
13793 if test -n "$OTOOL64"; then
13794 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13800 test -z "$as_dir" && as_dir=.
13801 for ac_exec_ext in '' $ac_executable_extensions; do
13802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13803 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13813 OTOOL64=$ac_cv_prog_OTOOL64
13814 if test -n "$OTOOL64"; then
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13816 $as_echo "$OTOOL64" >&6; }
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819 $as_echo "no" >&6; }
13824 if test -z "$ac_cv_prog_OTOOL64"; then
13825 ac_ct_OTOOL64=$OTOOL64
13826 # Extract the first word of "otool64", so it can be a program name with args.
13827 set dummy otool64; ac_word=$2
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829 $as_echo_n "checking for $ac_word... " >&6; }
13830 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13831 $as_echo_n "(cached) " >&6
13833 if test -n "$ac_ct_OTOOL64"; then
13834 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
13842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13843 ac_cv_prog_ac_ct_OTOOL64="otool64"
13844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13853 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13854 if test -n "$ac_ct_OTOOL64"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13856 $as_echo "$ac_ct_OTOOL64" >&6; }
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13862 if test "x$ac_ct_OTOOL64" = x; then
13865 case $cross_compiling:$ac_tool_warned in
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13869 ac_tool_warned=yes ;;
13871 OTOOL64=$ac_ct_OTOOL64
13874 OTOOL64="$ac_cv_prog_OTOOL64"
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13904 $as_echo_n "checking for -single_module linker flag... " >&6; }
13905 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13908 lt_cv_apple_cc_single_mod=no
13909 if test -z "${LT_MULTI_MODULE}"; then
13910 # By default we will add the -single_module flag. You can override
13911 # by either setting the environment variable LT_MULTI_MODULE
13912 # non-empty at configure time, or by adding -multi_module to the
13914 rm -rf libconftest.dylib*
13915 echo "int foo(void){return 1;}" > conftest.c
13916 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13917 -dynamiclib -Wl,-single_module conftest.c" >&5
13918 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13919 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13921 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13922 lt_cv_apple_cc_single_mod=yes
13924 cat conftest.err >&5
13926 rm -rf libconftest.dylib*
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13931 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13933 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13934 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13935 $as_echo_n "(cached) " >&6
13937 lt_cv_ld_exported_symbols_list=no
13938 save_LDFLAGS=$LDFLAGS
13939 echo "_main" > conftest.sym
13940 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13952 if ac_fn_c_try_link "$LINENO"; then :
13953 lt_cv_ld_exported_symbols_list=yes
13955 lt_cv_ld_exported_symbols_list=no
13957 rm -f core conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
13959 LDFLAGS="$save_LDFLAGS"
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13963 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13965 $as_echo_n "checking for -force_load linker flag... " >&6; }
13966 if test "${lt_cv_ld_force_load+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13969 lt_cv_ld_force_load=no
13970 cat > conftest.c << _LT_EOF
13971 int forced_loaded() { return 2;}
13973 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13974 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13975 echo "$AR cru libconftest.a conftest.o" >&5
13976 $AR cru libconftest.a conftest.o 2>&5
13977 cat > conftest.c << _LT_EOF
13978 int main() { return 0;}
13980 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13981 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13983 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13984 lt_cv_ld_force_load=yes
13986 cat conftest.err >&5
13988 rm -f conftest.err libconftest.a conftest conftest.c
13989 rm -rf conftest.dSYM
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13993 $as_echo "$lt_cv_ld_force_load" >&6; }
13995 rhapsody* | darwin1.[012])
13996 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13998 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13999 darwin*) # darwin 5.x on
14000 # if running on 10.5 or later, the deployment target defaults
14001 # to the OS version, if on x86, and 10.4, the deployment
14002 # target defaults to 10.4. Don't you love it?
14003 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14004 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14005 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14007 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14009 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14013 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14014 _lt_dar_single_mod='$single_module'
14016 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14017 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14019 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14021 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14022 _lt_dsymutil='~$DSYMUTIL $lib || :'
14029 for ac_header in dlfcn.h
14031 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14032 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_DLFCN_H 1
14051 enable_win32_dll=no
14054 # Check whether --enable-shared was given.
14055 if test "${enable_shared+set}" = set; then :
14056 enableval=$enable_shared; p=${PACKAGE-default}
14058 yes) enable_shared=yes ;;
14059 no) enable_shared=no ;;
14062 # Look at the argument we got. We use all the common list separators.
14063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14064 for pkg in $enableval; do
14066 if test "X$pkg" = "X$p"; then
14085 # Check whether --enable-static was given.
14086 if test "${enable_static+set}" = set; then :
14087 enableval=$enable_static; p=${PACKAGE-default}
14089 yes) enable_static=yes ;;
14090 no) enable_static=no ;;
14093 # Look at the argument we got. We use all the common list separators.
14094 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14095 for pkg in $enableval; do
14097 if test "X$pkg" = "X$p"; then
14117 # Check whether --with-pic was given.
14118 if test "${with_pic+set}" = set; then :
14119 withval=$with_pic; pic_mode="$withval"
14125 test -z "$pic_mode" && pic_mode=default
14133 # Check whether --enable-fast-install was given.
14134 if test "${enable_fast_install+set}" = set; then :
14135 enableval=$enable_fast_install; p=${PACKAGE-default}
14137 yes) enable_fast_install=yes ;;
14138 no) enable_fast_install=no ;;
14140 enable_fast_install=no
14141 # Look at the argument we got. We use all the common list separators.
14142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14143 for pkg in $enableval; do
14145 if test "X$pkg" = "X$p"; then
14146 enable_fast_install=yes
14153 enable_fast_install=yes
14166 # This can be used to rebuild libtool when needed
14167 LIBTOOL_DEPS="$ltmain"
14169 # Always use our own libtool.
14170 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14197 test -z "$LN_S" && LN_S="ln -s"
14212 if test -n "${ZSH_VERSION+set}" ; then
14213 setopt NO_GLOB_SUBST
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14217 $as_echo_n "checking for objdir... " >&6; }
14218 if test "${lt_cv_objdir+set}" = set; then :
14219 $as_echo_n "(cached) " >&6
14221 rm -f .libs 2>/dev/null
14222 mkdir .libs 2>/dev/null
14223 if test -d .libs; then
14226 # MS-DOS does not allow filenames that begin with a dot.
14229 rmdir .libs 2>/dev/null
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14232 $as_echo "$lt_cv_objdir" >&6; }
14233 objdir=$lt_cv_objdir
14239 cat >>confdefs.h <<_ACEOF
14240 #define LT_OBJDIR "$lt_cv_objdir/"
14248 # AIX sometimes has problems with the GCC collect2 program. For some
14249 # reason, if we set the COLLECT_NAMES environment variable, the problems
14250 # vanish in a puff of smoke.
14251 if test "X${COLLECT_NAMES+set}" != Xset; then
14253 export COLLECT_NAMES
14258 # Global variables:
14260 can_build_shared=yes
14262 # All known linkers require a `.a' archive for static linking (except MSVC,
14263 # which needs '.lib').
14266 with_gnu_ld="$lt_cv_prog_gnu_ld"
14269 old_CFLAGS="$CFLAGS"
14271 # Set sane defaults for various variables
14272 test -z "$CC" && CC=cc
14273 test -z "$LTCC" && LTCC=$CC
14274 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14275 test -z "$LD" && LD=ld
14276 test -z "$ac_objext" && ac_objext=o
14278 for cc_temp in $compiler""; do
14280 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14281 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14286 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14289 # Only perform the check for file, if the check method requires it
14290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14291 case $deplibs_check_method in
14293 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14295 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14296 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14297 $as_echo_n "(cached) " >&6
14301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14304 lt_save_MAGIC_CMD="$MAGIC_CMD"
14305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14307 for ac_dir in $ac_dummy; do
14309 test -z "$ac_dir" && ac_dir=.
14310 if test -f $ac_dir/${ac_tool_prefix}file; then
14311 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14312 if test -n "$file_magic_test_file"; then
14313 case $deplibs_check_method in
14315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14318 $EGREP "$file_magic_regex" > /dev/null; then
14323 *** Warning: the command libtool uses to detect shared libraries,
14324 *** $file_magic_cmd, produces output that libtool cannot recognize.
14325 *** The result is that libtool may fail to recognize shared libraries
14326 *** as such. This will affect the creation of libtool libraries that
14327 *** depend on shared libraries, but programs linked with such libtool
14328 *** libraries will work regardless of this problem. Nevertheless, you
14329 *** may want to report the problem to your system manager and/or to
14330 *** bug-libtool@gnu.org
14340 MAGIC_CMD="$lt_save_MAGIC_CMD"
14345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14346 if test -n "$MAGIC_CMD"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14348 $as_echo "$MAGIC_CMD" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14358 if test -z "$lt_cv_path_MAGIC_CMD"; then
14359 if test -n "$ac_tool_prefix"; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14361 $as_echo_n "checking for file... " >&6; }
14362 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14363 $as_echo_n "(cached) " >&6
14367 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14370 lt_save_MAGIC_CMD="$MAGIC_CMD"
14371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14372 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14373 for ac_dir in $ac_dummy; do
14375 test -z "$ac_dir" && ac_dir=.
14376 if test -f $ac_dir/file; then
14377 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14378 if test -n "$file_magic_test_file"; then
14379 case $deplibs_check_method in
14381 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14384 $EGREP "$file_magic_regex" > /dev/null; then
14389 *** Warning: the command libtool uses to detect shared libraries,
14390 *** $file_magic_cmd, produces output that libtool cannot recognize.
14391 *** The result is that libtool may fail to recognize shared libraries
14392 *** as such. This will affect the creation of libtool libraries that
14393 *** depend on shared libraries, but programs linked with such libtool
14394 *** libraries will work regardless of this problem. Nevertheless, you
14395 *** may want to report the problem to your system manager and/or to
14396 *** bug-libtool@gnu.org
14406 MAGIC_CMD="$lt_save_MAGIC_CMD"
14411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14412 if test -n "$MAGIC_CMD"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14414 $as_echo "$MAGIC_CMD" >&6; }
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14430 # Use C for the default configuration in the libtool script
14434 ac_cpp='$CPP $CPPFLAGS'
14435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14440 # Source file extension for C test sources.
14443 # Object file extension for compiled C test sources.
14447 # Code to be used in simple compile tests
14448 lt_simple_compile_test_code="int some_variable = 0;"
14450 # Code to be used in simple link tests
14451 lt_simple_link_test_code='int main(){return(0);}'
14459 # If no C compiler was specified, use CC.
14462 # If no C compiler flags were specified, use CFLAGS.
14463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14465 # Allow CC to be a program name with arguments.
14468 # Save the default compiler, since it gets overwritten when the other
14469 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14470 compiler_DEFAULT=$CC
14472 # save warnings/boilerplate of simple test code
14473 ac_outfile=conftest.$ac_objext
14474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14476 _lt_compiler_boilerplate=`cat conftest.err`
14479 ac_outfile=conftest.$ac_objext
14480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14482 _lt_linker_boilerplate=`cat conftest.err`
14487 ## There is no encapsulation within the following macros, do not change
14488 ## the running order or otherwise move them around unless you know exactly
14489 ## what you are doing...
14490 if test -n "$compiler"; then
14492 lt_prog_compiler_no_builtin_flag=
14494 if test "$GCC" = yes; then
14495 case $cc_basename in
14497 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14499 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14503 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14504 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14505 $as_echo_n "(cached) " >&6
14507 lt_cv_prog_compiler_rtti_exceptions=no
14508 ac_outfile=conftest.$ac_objext
14509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14510 lt_compiler_flag="-fno-rtti -fno-exceptions"
14511 # Insert the option either (1) after the last *FLAGS variable, or
14512 # (2) before a word containing "conftest.", or (3) at the end.
14513 # Note that $ac_compile itself does not contain backslashes and begins
14514 # with a dollar sign (not a hyphen), so the echo should work correctly.
14515 # The option is referenced via a variable to avoid confusing sed.
14516 lt_compile=`echo "$ac_compile" | $SED \
14517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14519 -e 's:$: $lt_compiler_flag:'`
14520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14521 (eval "$lt_compile" 2>conftest.err)
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 if (exit $ac_status) && test -s "$ac_outfile"; then
14526 # The compiler can only warn and ignore the option if not recognized
14527 # So say no if there are warnings other than the usual output.
14528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14531 lt_cv_prog_compiler_rtti_exceptions=yes
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14538 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14540 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14541 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14553 lt_prog_compiler_wl=
14554 lt_prog_compiler_pic=
14555 lt_prog_compiler_static=
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14558 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14560 if test "$GCC" = yes; then
14561 lt_prog_compiler_wl='-Wl,'
14562 lt_prog_compiler_static='-static'
14566 # All AIX code is PIC.
14567 if test "$host_cpu" = ia64; then
14568 # AIX 5 now supports IA64 processor
14569 lt_prog_compiler_static='-Bstatic'
14576 # see comment about AmigaOS4 .so support
14577 lt_prog_compiler_pic='-fPIC'
14580 # FIXME: we need at least 68020 code to build shared libraries, but
14581 # adding the `-m68020' flag to GCC prevents building anything better,
14583 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14589 # PIC is the default for these OSes.
14592 mingw* | cygwin* | pw32* | os2* | cegcc*)
14593 # This hack is so that the source file can tell whether it is being
14594 # built for inclusion in a dll (and should export symbols for example).
14595 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14596 # (--disable-auto-import) libraries
14597 lt_prog_compiler_pic='-DDLL_EXPORT'
14600 darwin* | rhapsody*)
14601 # PIC is the default on this platform
14602 # Common symbols not allowed in MH_DYLIB files
14603 lt_prog_compiler_pic='-fno-common'
14607 # PIC is the default for Haiku.
14608 # The "-static" flag exists, but is broken.
14609 lt_prog_compiler_static=
14613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14615 # sets the default TLS model and affects inlining.
14621 lt_prog_compiler_pic='-fPIC'
14627 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14628 # Instead, we relocate shared libraries at runtime.
14632 # Just because we use GCC doesn't mean we suddenly get shared libraries
14633 # on systems that don't support them.
14634 lt_prog_compiler_can_build_shared=no
14639 # QNX uses GNU C++, but need to define -shared option too, otherwise
14640 # it will coredump.
14641 lt_prog_compiler_pic='-fPIC -shared'
14645 if test -d /usr/nec; then
14646 lt_prog_compiler_pic=-Kconform_pic
14651 lt_prog_compiler_pic='-fPIC'
14655 case $cc_basename in
14656 nvcc*) # Cuda Compiler Driver 2.2
14657 lt_prog_compiler_wl='-Xlinker '
14658 lt_prog_compiler_pic='-Xcompiler -fPIC'
14662 # PORTME Check for flag to pass linker flags through the system compiler.
14665 lt_prog_compiler_wl='-Wl,'
14666 if test "$host_cpu" = ia64; then
14667 # AIX 5 now supports IA64 processor
14668 lt_prog_compiler_static='-Bstatic'
14670 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14674 mingw* | cygwin* | pw32* | os2* | cegcc*)
14675 # This hack is so that the source file can tell whether it is being
14676 # built for inclusion in a dll (and should export symbols for example).
14677 lt_prog_compiler_pic='-DDLL_EXPORT'
14680 hpux9* | hpux10* | hpux11*)
14681 lt_prog_compiler_wl='-Wl,'
14682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14683 # not for PA HP-UX.
14689 lt_prog_compiler_pic='+Z'
14692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14693 lt_prog_compiler_static='${wl}-a ${wl}archive'
14696 irix5* | irix6* | nonstopux*)
14697 lt_prog_compiler_wl='-Wl,'
14698 # PIC (with -KPIC) is the default.
14699 lt_prog_compiler_static='-non_shared'
14702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14703 case $cc_basename in
14704 # old Intel for x86_64 which still supported -KPIC.
14706 lt_prog_compiler_wl='-Wl,'
14707 lt_prog_compiler_pic='-KPIC'
14708 lt_prog_compiler_static='-static'
14710 # icc used to be incompatible with GCC.
14711 # ICC 10 doesn't accept -KPIC any more.
14713 lt_prog_compiler_wl='-Wl,'
14714 lt_prog_compiler_pic='-fPIC'
14715 lt_prog_compiler_static='-static'
14717 # Lahey Fortran 8.1.
14719 lt_prog_compiler_wl='-Wl,'
14720 lt_prog_compiler_pic='--shared'
14721 lt_prog_compiler_static='--static'
14723 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14724 # Portland Group compilers (*not* the Pentium gcc compiler,
14725 # which looks to be a dead project)
14726 lt_prog_compiler_wl='-Wl,'
14727 lt_prog_compiler_pic='-fpic'
14728 lt_prog_compiler_static='-Bstatic'
14731 lt_prog_compiler_wl='-Wl,'
14732 # All Alpha code is PIC.
14733 lt_prog_compiler_static='-non_shared'
14735 xl* | bgxl* | bgf* | mpixl*)
14736 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14737 lt_prog_compiler_wl='-Wl,'
14738 lt_prog_compiler_pic='-qpic'
14739 lt_prog_compiler_static='-qstaticlink'
14742 case `$CC -V 2>&1 | sed 5q` in
14743 *Sun\ F* | *Sun*Fortran*)
14744 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14745 lt_prog_compiler_pic='-KPIC'
14746 lt_prog_compiler_static='-Bstatic'
14747 lt_prog_compiler_wl=''
14751 lt_prog_compiler_pic='-KPIC'
14752 lt_prog_compiler_static='-Bstatic'
14753 lt_prog_compiler_wl='-Wl,'
14761 lt_prog_compiler_pic='-KPIC'
14762 lt_prog_compiler_static='-Bstatic'
14766 # QNX uses GNU C++, but need to define -shared option too, otherwise
14767 # it will coredump.
14768 lt_prog_compiler_pic='-fPIC -shared'
14771 osf3* | osf4* | osf5*)
14772 lt_prog_compiler_wl='-Wl,'
14773 # All OSF/1 code is PIC.
14774 lt_prog_compiler_static='-non_shared'
14778 lt_prog_compiler_static='-non_shared'
14782 lt_prog_compiler_pic='-KPIC'
14783 lt_prog_compiler_static='-Bstatic'
14784 case $cc_basename in
14785 f77* | f90* | f95*)
14786 lt_prog_compiler_wl='-Qoption ld ';;
14788 lt_prog_compiler_wl='-Wl,';;
14793 lt_prog_compiler_wl='-Qoption ld '
14794 lt_prog_compiler_pic='-PIC'
14795 lt_prog_compiler_static='-Bstatic'
14798 sysv4 | sysv4.2uw2* | sysv4.3*)
14799 lt_prog_compiler_wl='-Wl,'
14800 lt_prog_compiler_pic='-KPIC'
14801 lt_prog_compiler_static='-Bstatic'
14805 if test -d /usr/nec ;then
14806 lt_prog_compiler_pic='-Kconform_pic'
14807 lt_prog_compiler_static='-Bstatic'
14811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14812 lt_prog_compiler_wl='-Wl,'
14813 lt_prog_compiler_pic='-KPIC'
14814 lt_prog_compiler_static='-Bstatic'
14818 lt_prog_compiler_wl='-Wl,'
14819 lt_prog_compiler_can_build_shared=no
14823 lt_prog_compiler_pic='-pic'
14824 lt_prog_compiler_static='-Bstatic'
14828 lt_prog_compiler_can_build_shared=no
14834 # For platforms which do not support PIC, -DPIC is meaningless:
14836 lt_prog_compiler_pic=
14839 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14843 $as_echo "$lt_prog_compiler_pic" >&6; }
14851 # Check to make sure the PIC flag actually works.
14853 if test -n "$lt_prog_compiler_pic"; then
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14855 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14856 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14859 lt_cv_prog_compiler_pic_works=no
14860 ac_outfile=conftest.$ac_objext
14861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14862 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14863 # Insert the option either (1) after the last *FLAGS variable, or
14864 # (2) before a word containing "conftest.", or (3) at the end.
14865 # Note that $ac_compile itself does not contain backslashes and begins
14866 # with a dollar sign (not a hyphen), so the echo should work correctly.
14867 # The option is referenced via a variable to avoid confusing sed.
14868 lt_compile=`echo "$ac_compile" | $SED \
14869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14871 -e 's:$: $lt_compiler_flag:'`
14872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14873 (eval "$lt_compile" 2>conftest.err)
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 if (exit $ac_status) && test -s "$ac_outfile"; then
14878 # The compiler can only warn and ignore the option if not recognized
14879 # So say no if there are warnings other than the usual output.
14880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14883 lt_cv_prog_compiler_pic_works=yes
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14890 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14892 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14893 case $lt_prog_compiler_pic in
14895 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14898 lt_prog_compiler_pic=
14899 lt_prog_compiler_can_build_shared=no
14910 # Check to make sure the static flag actually works.
14912 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14914 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14915 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14916 $as_echo_n "(cached) " >&6
14918 lt_cv_prog_compiler_static_works=no
14919 save_LDFLAGS="$LDFLAGS"
14920 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14921 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14922 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14923 # The linker can only warn and ignore the option if not recognized
14924 # So say no if there are warnings
14925 if test -s conftest.err; then
14926 # Append any errors to the config.log.
14927 cat conftest.err 1>&5
14928 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14930 if diff conftest.exp conftest.er2 >/dev/null; then
14931 lt_cv_prog_compiler_static_works=yes
14934 lt_cv_prog_compiler_static_works=yes
14938 LDFLAGS="$save_LDFLAGS"
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14942 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14944 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14947 lt_prog_compiler_static=
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14958 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14959 $as_echo_n "(cached) " >&6
14961 lt_cv_prog_compiler_c_o=no
14962 $RM -r conftest 2>/dev/null
14966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14968 lt_compiler_flag="-o out/conftest2.$ac_objext"
14969 # Insert the option either (1) after the last *FLAGS variable, or
14970 # (2) before a word containing "conftest.", or (3) at the end.
14971 # Note that $ac_compile itself does not contain backslashes and begins
14972 # with a dollar sign (not a hyphen), so the echo should work correctly.
14973 lt_compile=`echo "$ac_compile" | $SED \
14974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14976 -e 's:$: $lt_compiler_flag:'`
14977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14978 (eval "$lt_compile" 2>out/conftest.err)
14980 cat out/conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14984 # The compiler can only warn and ignore the option if not recognized
14985 # So say no if there are warnings
14986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14989 lt_cv_prog_compiler_c_o=yes
14994 # SGI C++ compiler will create directory out/ii_files/ for
14995 # template instantiation
14996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14997 $RM out/* && rmdir out
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15004 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15012 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15013 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15014 $as_echo_n "(cached) " >&6
15016 lt_cv_prog_compiler_c_o=no
15017 $RM -r conftest 2>/dev/null
15021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15023 lt_compiler_flag="-o out/conftest2.$ac_objext"
15024 # Insert the option either (1) after the last *FLAGS variable, or
15025 # (2) before a word containing "conftest.", or (3) at the end.
15026 # Note that $ac_compile itself does not contain backslashes and begins
15027 # with a dollar sign (not a hyphen), so the echo should work correctly.
15028 lt_compile=`echo "$ac_compile" | $SED \
15029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15031 -e 's:$: $lt_compiler_flag:'`
15032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15033 (eval "$lt_compile" 2>out/conftest.err)
15035 cat out/conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15039 # The compiler can only warn and ignore the option if not recognized
15040 # So say no if there are warnings
15041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15044 lt_cv_prog_compiler_c_o=yes
15049 # SGI C++ compiler will create directory out/ii_files/ for
15050 # template instantiation
15051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15052 $RM out/* && rmdir out
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15059 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15064 hard_links="nottested"
15065 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15066 # do not overwrite the value of need_locks provided by the user
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15068 $as_echo_n "checking if we can lock with hard links... " >&6; }
15071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15073 ln conftest.a conftest.b 2>&5 || hard_links=no
15074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15076 $as_echo "$hard_links" >&6; }
15077 if test "$hard_links" = no; then
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15079 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15092 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15095 allow_undefined_flag=
15096 always_export_symbols=no
15098 archive_expsym_cmds=
15099 compiler_needs_object=no
15100 enable_shared_with_static_runtimes=no
15101 export_dynamic_flag_spec=
15102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15103 hardcode_automatic=no
15105 hardcode_direct_absolute=no
15106 hardcode_libdir_flag_spec=
15107 hardcode_libdir_flag_spec_ld=
15108 hardcode_libdir_separator=
15109 hardcode_minus_L=no
15110 hardcode_shlibpath_var=unsupported
15112 link_all_deplibs=unknown
15114 module_expsym_cmds=
15115 old_archive_from_new_cmds=
15116 old_archive_from_expsyms_cmds=
15117 thread_safe_flag_spec=
15118 whole_archive_flag_spec=
15119 # include_expsyms should be a list of space-separated symbols to be *always*
15120 # included in the symbol list
15122 # exclude_expsyms can be an extended regexp of symbols to exclude
15123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15125 # as well as any symbol that contains `d'.
15126 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15128 # platforms (ab)use it in PIC code, but their linkers get confused if
15129 # the symbol is explicitly referenced. Since portable code cannot
15130 # rely on this symbol name, it's probably fine to never include it in
15131 # preloaded symbol tables.
15132 # Exclude shared library initialization/finalization symbols.
15133 extract_expsyms_cmds=
15136 cygwin* | mingw* | pw32* | cegcc*)
15137 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15138 # When not using gcc, we currently assume that we are using
15139 # Microsoft Visual C++.
15140 if test "$GCC" != yes; then
15145 # we just hope/assume this is gcc and not c89 (= MSVC++)
15155 # On some targets, GNU ld is compatible enough with the native linker
15156 # that we're better off using the native interface for both.
15157 lt_use_gnu_ld_interface=no
15158 if test "$with_gnu_ld" = yes; then
15161 # The AIX port of GNU ld has always aspired to compatibility
15162 # with the native linker. However, as the warning in the GNU ld
15163 # block says, versions before 2.19.5* couldn't really create working
15164 # shared libraries, regardless of the interface used.
15165 case `$LD -v 2>&1` in
15166 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15167 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15168 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15170 lt_use_gnu_ld_interface=yes
15175 lt_use_gnu_ld_interface=yes
15180 if test "$lt_use_gnu_ld_interface" = yes; then
15181 # If archive_cmds runs LD, not CC, wlarc should be empty
15184 # Set some defaults for GNU ld with shared library support. These
15185 # are reset later if shared libraries are not supported. Putting them
15186 # here allows them to be overridden if necessary.
15187 runpath_var=LD_RUN_PATH
15188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15189 export_dynamic_flag_spec='${wl}--export-dynamic'
15190 # ancient GNU ld didn't support --whole-archive et. al.
15191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15194 whole_archive_flag_spec=
15196 supports_anon_versioning=no
15197 case `$LD -v 2>&1` in
15198 *GNU\ gold*) supports_anon_versioning=yes ;;
15199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15202 *\ 2.11.*) ;; # other 2.11 versions
15203 *) supports_anon_versioning=yes ;;
15206 # See if GNU ld supports shared libraries.
15209 # On AIX/PPC, the GNU linker is very broken
15210 if test "$host_cpu" != ia64; then
15214 *** Warning: the GNU linker, at least up to release 2.19, is reported
15215 *** to be unable to reliably create shared libraries on AIX.
15216 *** Therefore, libtool is disabling shared libraries support. If you
15217 *** really care for shared libraries, you may want to install binutils
15218 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15219 *** You will then need to restart the configuration process.
15228 # see comment about AmigaOS4 .so support
15229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230 archive_expsym_cmds=''
15233 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)'
15234 hardcode_libdir_flag_spec='-L$libdir'
15235 hardcode_minus_L=yes
15241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15242 allow_undefined_flag=unsupported
15243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15244 # support --undefined. This deserves some investigation. FIXME
15245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15251 cygwin* | mingw* | pw32* | cegcc*)
15252 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15253 # as there is no search path for DLLs.
15254 hardcode_libdir_flag_spec='-L$libdir'
15255 export_dynamic_flag_spec='${wl}--export-all-symbols'
15256 allow_undefined_flag=unsupported
15257 always_export_symbols=no
15258 enable_shared_with_static_runtimes=yes
15259 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15261 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15263 # If the export-symbols file already is a .def file (1st line
15264 # is EXPORTS), use it as is; otherwise, prepend...
15265 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15266 cp $export_symbols $output_objdir/$soname.def;
15268 echo EXPORTS > $output_objdir/$soname.def;
15269 cat $export_symbols >> $output_objdir/$soname.def;
15271 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15279 link_all_deplibs=yes
15284 hardcode_shlibpath_var=no
15285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15286 export_dynamic_flag_spec='${wl}-E'
15287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15288 # Instead, shared libraries are loaded at an image base (0x10000000 by
15289 # default) and relocated if they conflict, which is a slow very memory
15290 # consuming and fragmenting process. To avoid this, we pick a random,
15291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15294 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'
15297 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15299 if test "$host_os" = linux-dietlibc; then
15300 case $cc_basename in
15301 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15304 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15305 && test "$tmp_diet" = no
15308 tmp_sharedflag='-shared'
15309 case $cc_basename,$host_cpu in
15310 pgcc*) # Portland Group C compiler
15311 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'
15312 tmp_addflag=' $pic_flag'
15314 pgf77* | pgf90* | pgf95* | pgfortran*)
15315 # Portland Group f77 and f90 compilers
15316 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'
15317 tmp_addflag=' $pic_flag -Mnomain' ;;
15318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15319 tmp_addflag=' -i_dynamic' ;;
15320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15321 tmp_addflag=' -i_dynamic -nofor_main' ;;
15322 ifc* | ifort*) # Intel Fortran compiler
15323 tmp_addflag=' -nofor_main' ;;
15324 lf95*) # Lahey Fortran 8.1
15325 whole_archive_flag_spec=
15326 tmp_sharedflag='--shared' ;;
15327 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15328 tmp_sharedflag='-qmkshrobj'
15330 nvcc*) # Cuda Compiler Driver 2.2
15331 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'
15332 compiler_needs_object=yes
15335 case `$CC -V 2>&1 | sed 5q` in
15336 *Sun\ C*) # Sun C 5.9
15337 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'
15338 compiler_needs_object=yes
15339 tmp_sharedflag='-G' ;;
15340 *Sun\ F*) # Sun Fortran 8.3
15341 tmp_sharedflag='-G' ;;
15343 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15345 if test "x$supports_anon_versioning" = xyes; then
15346 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15348 echo "local: *; };" >> $output_objdir/$libname.ver~
15349 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15352 case $cc_basename in
15353 xlf* | bgf* | bgxlf* | mpixlf*)
15354 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15355 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15356 hardcode_libdir_flag_spec=
15357 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15358 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15359 if test "x$supports_anon_versioning" = xyes; then
15360 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15361 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15362 echo "local: *; };" >> $output_objdir/$libname.ver~
15363 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15374 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15383 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15388 *** create shared libraries on Solaris systems. Therefore, libtool
15389 *** is disabling shared libraries support. We urge you to upgrade GNU
15390 *** binutils to release 2.9.1 or newer. Another option is to modify
15391 *** your PATH or compiler configuration so that the native linker is
15392 *** used, and then restart.
15395 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15404 case `$LD -v 2>&1` in
15405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15409 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15410 *** reliably create shared libraries on SCO systems. Therefore, libtool
15411 *** is disabling shared libraries support. We urge you to upgrade GNU
15412 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15413 *** your PATH or compiler configuration so that the native linker is
15414 *** used, and then restart.
15419 # For security reasons, it is highly recommended that you always
15420 # use absolute paths for naming shared libraries, and exclude the
15421 # DT_RUNPATH tag from executables and libraries. But doing so
15422 # requires that you compile everything twice, which is a pain.
15423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15437 hardcode_direct=yes
15438 hardcode_shlibpath_var=no
15442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15444 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15451 if test "$ld_shlibs" = no; then
15453 hardcode_libdir_flag_spec=
15454 export_dynamic_flag_spec=
15455 whole_archive_flag_spec=
15458 # PORTME fill in a description of your system's linker (not GNU ld)
15461 allow_undefined_flag=unsupported
15462 always_export_symbols=yes
15463 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'
15464 # Note: this linker hardcodes the directories in LIBPATH if there
15465 # are no directories specified by -L.
15466 hardcode_minus_L=yes
15467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15468 # Neither direct hardcoding nor static linking is supported with a
15470 hardcode_direct=unsupported
15475 if test "$host_cpu" = ia64; then
15476 # On IA64, the linker does run time linking by default, so we don't
15477 # have to do anything special.
15478 aix_use_runtimelinking=no
15479 exp_sym_flag='-Bexport'
15482 # If we're using GNU nm, then we don't want the "-C" option.
15483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15484 # Also, AIX nm treats weak defined symbols like other global
15485 # defined symbols, whereas GNU nm marks them as "W".
15486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15487 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'
15489 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'
15491 aix_use_runtimelinking=no
15493 # Test if we are trying to use run time linking or normal
15494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15495 # need to do runtime linking.
15496 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15497 for ld_flag in $LDFLAGS; do
15498 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15499 aix_use_runtimelinking=yes
15506 exp_sym_flag='-bexport'
15507 no_entry_flag='-bnoentry'
15510 # When large executables or shared objects are built, AIX ld can
15511 # have problems creating the table of contents. If linking a library
15512 # or program results in "error TOC overflow" add -mminimal-toc to
15513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15517 hardcode_direct=yes
15518 hardcode_direct_absolute=yes
15519 hardcode_libdir_separator=':'
15520 link_all_deplibs=yes
15521 file_list_spec='${wl}-f,'
15523 if test "$GCC" = yes; then
15524 case $host_os in aix4.[012]|aix4.[012].*)
15525 # We only want to do this on AIX 4.2 and lower, the check
15526 # below for broken collect2 doesn't work under 4.3+
15527 collect2name=`${CC} -print-prog-name=collect2`
15528 if test -f "$collect2name" &&
15529 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15531 # We have reworked collect2
15534 # We have old collect2
15535 hardcode_direct=unsupported
15536 # It fails to find uninstalled libraries when the uninstalled
15537 # path is not listed in the libpath. Setting hardcode_minus_L
15538 # to unsupported forces relinking
15539 hardcode_minus_L=yes
15540 hardcode_libdir_flag_spec='-L$libdir'
15541 hardcode_libdir_separator=
15545 shared_flag='-shared'
15546 if test "$aix_use_runtimelinking" = yes; then
15547 shared_flag="$shared_flag "'${wl}-G'
15551 if test "$host_cpu" = ia64; then
15552 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15553 # chokes on -Wl,-G. The following line is correct:
15556 if test "$aix_use_runtimelinking" = yes; then
15557 shared_flag='${wl}-G'
15559 shared_flag='${wl}-bM:SRE'
15564 export_dynamic_flag_spec='${wl}-bexpall'
15565 # It seems that -bexpall does not export symbols beginning with
15566 # underscore (_), so it is better to generate a list of symbols to export.
15567 always_export_symbols=yes
15568 if test "$aix_use_runtimelinking" = yes; then
15569 # Warning - without using the other runtime loading flags (-brtl),
15570 # -berok will link without error, but may produce a broken library.
15571 allow_undefined_flag='-berok'
15572 # Determine the default libpath from the value encoded in an
15573 # empty executable.
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15585 if ac_fn_c_try_link "$LINENO"; then :
15587 lt_aix_libpath_sed='
15588 /Import File Strings/,/^$/ {
15594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15595 # Check for a 64-bit object if we didn't find anything.
15596 if test -z "$aix_libpath"; then
15597 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15600 rm -f core conftest.err conftest.$ac_objext \
15601 conftest$ac_exeext conftest.$ac_ext
15602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15604 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15605 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"
15607 if test "$host_cpu" = ia64; then
15608 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15609 allow_undefined_flag="-z nodefs"
15610 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"
15612 # Determine the default libpath from the value encoded in an
15613 # empty executable.
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15625 if ac_fn_c_try_link "$LINENO"; then :
15627 lt_aix_libpath_sed='
15628 /Import File Strings/,/^$/ {
15634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15635 # Check for a 64-bit object if we didn't find anything.
15636 if test -z "$aix_libpath"; then
15637 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15640 rm -f core conftest.err conftest.$ac_objext \
15641 conftest$ac_exeext conftest.$ac_ext
15642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15645 # Warning - without using the other run time loading flags,
15646 # -berok will link without error, but may produce a broken library.
15647 no_undefined_flag=' ${wl}-bernotok'
15648 allow_undefined_flag=' ${wl}-berok'
15649 if test "$with_gnu_ld" = yes; then
15650 # We only use this code for GNU lds that support --whole-archive.
15651 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15653 # Exported symbols can be pulled into shared objects from archives
15654 whole_archive_flag_spec='$convenience'
15656 archive_cmds_need_lc=yes
15657 # This is similar to how AIX traditionally builds its shared libraries.
15658 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'
15666 # see comment about AmigaOS4 .so support
15667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15668 archive_expsym_cmds=''
15671 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)'
15672 hardcode_libdir_flag_spec='-L$libdir'
15673 hardcode_minus_L=yes
15679 export_dynamic_flag_spec=-rdynamic
15682 cygwin* | mingw* | pw32* | cegcc*)
15683 # When not using gcc, we currently assume that we are using
15684 # Microsoft Visual C++.
15685 # hardcode_libdir_flag_spec is actually meaningless, as there is
15686 # no search path for DLLs.
15687 hardcode_libdir_flag_spec=' '
15688 allow_undefined_flag=unsupported
15689 # Tell ltmain to make .lib files, not .a files.
15691 # Tell ltmain to make .dll files, not .so files.
15693 # FIXME: Setting linknames here is a bad hack.
15694 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15695 # The linker will automatically build a .lib file if we build a DLL.
15696 old_archive_from_new_cmds='true'
15697 # FIXME: Should let the user specify the lib program.
15698 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15699 fix_srcfile_path='`cygpath -w "$srcfile"`'
15700 enable_shared_with_static_runtimes=yes
15703 darwin* | rhapsody*)
15706 archive_cmds_need_lc=no
15708 hardcode_automatic=yes
15709 hardcode_shlibpath_var=unsupported
15710 if test "$lt_cv_ld_force_load" = "yes"; then
15711 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\"`'
15713 whole_archive_flag_spec=''
15715 link_all_deplibs=yes
15716 allow_undefined_flag="$_lt_dar_allow_undefined"
15717 case $cc_basename in
15718 ifort*) _lt_dar_can_shared=yes ;;
15719 *) _lt_dar_can_shared=$GCC ;;
15721 if test "$_lt_dar_can_shared" = "yes"; then
15722 output_verbose_link_cmd=func_echo_all
15723 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15724 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15725 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}"
15726 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}"
15735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15736 hardcode_libdir_flag_spec='-L$libdir'
15737 hardcode_shlibpath_var=no
15740 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15741 # support. Future versions do this automatically, but an explicit c++rt0.o
15742 # does not break anything, and helps significantly (at the cost of a little
15745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15746 hardcode_libdir_flag_spec='-R$libdir'
15747 hardcode_direct=yes
15748 hardcode_shlibpath_var=no
15751 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15754 hardcode_direct=yes
15755 hardcode_minus_L=yes
15756 hardcode_shlibpath_var=no
15759 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15760 freebsd* | dragonfly*)
15761 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15762 hardcode_libdir_flag_spec='-R$libdir'
15763 hardcode_direct=yes
15764 hardcode_shlibpath_var=no
15768 if test "$GCC" = yes; then
15769 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'
15771 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'
15773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15774 hardcode_libdir_separator=:
15775 hardcode_direct=yes
15777 # hardcode_minus_L: Not really in the search PATH,
15778 # but as the default location of the library.
15779 hardcode_minus_L=yes
15780 export_dynamic_flag_spec='${wl}-E'
15784 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15789 if test "$with_gnu_ld" = no; then
15790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15791 hardcode_libdir_flag_spec_ld='+b $libdir'
15792 hardcode_libdir_separator=:
15793 hardcode_direct=yes
15794 hardcode_direct_absolute=yes
15795 export_dynamic_flag_spec='${wl}-E'
15796 # hardcode_minus_L: Not really in the search PATH,
15797 # but as the default location of the library.
15798 hardcode_minus_L=yes
15803 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15806 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15812 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15818 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15821 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15825 # Older versions of the 11.00 compiler do not understand -b yet
15826 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15828 $as_echo_n "checking if $CC understands -b... " >&6; }
15829 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15830 $as_echo_n "(cached) " >&6
15832 lt_cv_prog_compiler__b=no
15833 save_LDFLAGS="$LDFLAGS"
15834 LDFLAGS="$LDFLAGS -b"
15835 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15837 # The linker can only warn and ignore the option if not recognized
15838 # So say no if there are warnings
15839 if test -s conftest.err; then
15840 # Append any errors to the config.log.
15841 cat conftest.err 1>&5
15842 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15844 if diff conftest.exp conftest.er2 >/dev/null; then
15845 lt_cv_prog_compiler__b=yes
15848 lt_cv_prog_compiler__b=yes
15852 LDFLAGS="$save_LDFLAGS"
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15856 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15858 if test x"$lt_cv_prog_compiler__b" = xyes; then
15859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15867 if test "$with_gnu_ld" = no; then
15868 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15869 hardcode_libdir_separator=:
15874 hardcode_shlibpath_var=no
15877 hardcode_direct=yes
15878 hardcode_direct_absolute=yes
15879 export_dynamic_flag_spec='${wl}-E'
15881 # hardcode_minus_L: Not really in the search PATH,
15882 # but as the default location of the library.
15883 hardcode_minus_L=yes
15889 irix5* | irix6* | nonstopux*)
15890 if test "$GCC" = yes; then
15891 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'
15892 # Try to use the -exported_symbol ld option, if it does not
15893 # work, assume that -exports_file does not work either and
15894 # implicitly export all symbols.
15895 save_LDFLAGS="$LDFLAGS"
15896 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15901 if ac_fn_c_try_link "$LINENO"; then :
15902 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'
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15907 LDFLAGS="$save_LDFLAGS"
15909 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'
15910 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'
15912 archive_cmds_need_lc='no'
15913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15914 hardcode_libdir_separator=:
15916 link_all_deplibs=yes
15920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15923 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15925 hardcode_libdir_flag_spec='-R$libdir'
15926 hardcode_direct=yes
15927 hardcode_shlibpath_var=no
15931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932 hardcode_direct=yes
15933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15934 hardcode_libdir_separator=:
15935 hardcode_shlibpath_var=no
15942 if test -f /usr/libexec/ld.so; then
15943 hardcode_direct=yes
15944 hardcode_shlibpath_var=no
15945 hardcode_direct_absolute=yes
15946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15948 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15949 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15950 export_dynamic_flag_spec='${wl}-E'
15953 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15955 hardcode_libdir_flag_spec='-R$libdir'
15958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15959 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15969 hardcode_libdir_flag_spec='-L$libdir'
15970 hardcode_minus_L=yes
15971 allow_undefined_flag=unsupported
15972 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'
15973 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15977 if test "$GCC" = yes; then
15978 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15979 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'
15981 allow_undefined_flag=' -expect_unresolved \*'
15982 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'
15984 archive_cmds_need_lc='no'
15985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15986 hardcode_libdir_separator=:
15989 osf4* | osf5*) # as osf3* with the addition of -msym flag
15990 if test "$GCC" = yes; then
15991 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15992 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'
15993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15995 allow_undefined_flag=' -expect_unresolved \*'
15996 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'
15997 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~
15998 $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'
16000 # Both c and cxx compiler support -rpath directly
16001 hardcode_libdir_flag_spec='-rpath $libdir'
16003 archive_cmds_need_lc='no'
16004 hardcode_libdir_separator=:
16008 no_undefined_flag=' -z defs'
16009 if test "$GCC" = yes; then
16011 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16013 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16015 case `$CC -V 2>&1` in
16018 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16024 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16026 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16030 hardcode_libdir_flag_spec='-R$libdir'
16031 hardcode_shlibpath_var=no
16033 solaris2.[0-5] | solaris2.[0-5].*) ;;
16035 # The compiler driver will combine and reorder linker options,
16036 # but understands `-z linker_flag'. GCC discards it without `$wl',
16037 # but is careful enough not to reorder.
16038 # Supported since Solaris 2.6 (maybe 2.5.1?)
16039 if test "$GCC" = yes; then
16040 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16042 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16046 link_all_deplibs=yes
16050 if test "x$host_vendor" = xsequent; then
16051 # Use $CC to link under sequent, because it throws in some extra .o
16052 # files that make .init and .fini sections work.
16053 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16055 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16057 hardcode_libdir_flag_spec='-L$libdir'
16058 hardcode_direct=yes
16059 hardcode_minus_L=yes
16060 hardcode_shlibpath_var=no
16064 case $host_vendor in
16066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067 hardcode_direct=yes # is this really true???
16070 ## LD is ld it makes a PLAMLIB
16071 ## CC just makes a GrossModule.
16072 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16073 reload_cmds='$CC -r -o $output$reload_objs'
16077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16081 runpath_var='LD_RUN_PATH'
16082 hardcode_shlibpath_var=no
16086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087 hardcode_shlibpath_var=no
16088 export_dynamic_flag_spec='-Bexport'
16092 if test -d /usr/nec; then
16093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16094 hardcode_shlibpath_var=no
16095 runpath_var=LD_RUN_PATH
16096 hardcode_runpath_var=yes
16101 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16102 no_undefined_flag='${wl}-z,text'
16103 archive_cmds_need_lc=no
16104 hardcode_shlibpath_var=no
16105 runpath_var='LD_RUN_PATH'
16107 if test "$GCC" = yes; then
16108 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16109 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16111 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16112 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16116 sysv5* | sco3.2v5* | sco5v6*)
16117 # Note: We can NOT use -z defs as we might desire, because we do not
16118 # link with -lc, and that would cause any symbols used from libc to
16119 # always be unresolved, which means just about no library would
16120 # ever link correctly. If we're not using GNU ld we use -z text
16121 # though, which does catch some bad symbols but isn't as heavy-handed
16123 no_undefined_flag='${wl}-z,text'
16124 allow_undefined_flag='${wl}-z,nodefs'
16125 archive_cmds_need_lc=no
16126 hardcode_shlibpath_var=no
16127 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16128 hardcode_libdir_separator=':'
16129 link_all_deplibs=yes
16130 export_dynamic_flag_spec='${wl}-Bexport'
16131 runpath_var='LD_RUN_PATH'
16133 if test "$GCC" = yes; then
16134 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16137 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144 hardcode_libdir_flag_spec='-L$libdir'
16145 hardcode_shlibpath_var=no
16153 if test x$host_vendor = xsni; then
16155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16156 export_dynamic_flag_spec='${wl}-Blargedynsym'
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16163 $as_echo "$ld_shlibs" >&6; }
16164 test "$ld_shlibs" = no && can_build_shared=no
16166 with_gnu_ld=$with_gnu_ld
16183 # Do we need to explicitly link libc?
16185 case "x$archive_cmds_need_lc" in
16187 # Assume -lc should be added
16188 archive_cmds_need_lc=yes
16190 if test "$enable_shared" = yes && test "$GCC" = yes; then
16191 case $archive_cmds in
16193 # FIXME: we may have to deal with multi-command sequences.
16196 # Test whether the compiler implicitly links with -lc since on some
16197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16198 # to ld, don't add -lc before -lgcc.
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16200 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16201 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16202 $as_echo_n "(cached) " >&6
16205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16208 (eval $ac_compile) 2>&5
16210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16211 test $ac_status = 0; } 2>conftest.err; then
16214 libobjs=conftest.$ac_objext
16216 wl=$lt_prog_compiler_wl
16217 pic_flag=$lt_prog_compiler_pic
16223 lt_save_allow_undefined_flag=$allow_undefined_flag
16224 allow_undefined_flag=
16225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16226 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16229 test $ac_status = 0; }
16231 lt_cv_archive_cmds_need_lc=no
16233 lt_cv_archive_cmds_need_lc=yes
16235 allow_undefined_flag=$lt_save_allow_undefined_flag
16237 cat conftest.err 1>&5
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16243 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16244 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16408 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16410 if test "$GCC" = yes; then
16412 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16413 *) lt_awk_arg="/^libraries:/" ;;
16416 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16417 *) lt_sed_strip_eq="s,=/,/,g" ;;
16419 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16420 case $lt_search_path_spec in
16422 # if the path contains ";" then we assume it to be the separator
16423 # otherwise default to the standard path separator (i.e. ":") - it is
16424 # assumed that no part of a normal pathname contains ";" but that should
16425 # okay in the real world where ";" in dirpaths is itself problematic.
16426 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16429 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16432 # Ok, now we have the path, separated by spaces, we can step through it
16433 # and add multilib dir if necessary.
16434 lt_tmp_lt_search_path_spec=
16435 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16436 for lt_sys_path in $lt_search_path_spec; do
16437 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16438 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16440 test -d "$lt_sys_path" && \
16441 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16444 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16445 BEGIN {RS=" "; FS="/|\n";} {
16448 for (lt_i = NF; lt_i > 0; lt_i--) {
16449 if ($lt_i != "" && $lt_i != ".") {
16450 if ($lt_i == "..") {
16453 if (lt_count == 0) {
16454 lt_foo="/" $lt_i lt_foo;
16461 if (lt_foo != "") { lt_freq[lt_foo]++; }
16462 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16464 # AWK program above erroneously prepends '/' to C:/dos/paths
16467 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16468 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16470 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16472 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16474 library_names_spec=
16475 libname_spec='lib$name'
16479 postuninstall_cmds=
16483 shlibpath_overrides_runpath=unknown
16485 dynamic_linker="$host_os ld.so"
16486 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16487 need_lib_prefix=unknown
16488 hardcode_into_libs=no
16490 # when you set need_version to no, make sure it does not cause -set_version
16491 # flags to be left without arguments
16492 need_version=unknown
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16498 shlibpath_var=LIBPATH
16500 # AIX 3 has no versioning support, so we append a major version to the name.
16501 soname_spec='${libname}${release}${shared_ext}$major'
16508 hardcode_into_libs=yes
16509 if test "$host_cpu" = ia64; then
16510 # AIX 5 supports IA64
16511 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16512 shlibpath_var=LD_LIBRARY_PATH
16514 # With GCC up to 2.95.x, collect2 would create an import file
16515 # for dependence libraries. The import file would start with
16516 # the line `#! .'. This would cause the generated library to
16517 # depend on `.', always an invalid library. This was fixed in
16518 # development snapshots of GCC prior to 3.0.
16520 aix4 | aix4.[01] | aix4.[01].*)
16521 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16523 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16526 can_build_shared=no
16530 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16531 # soname into executable. Probably we can add versioning support to
16532 # collect2, so additional links can be useful in future.
16533 if test "$aix_use_runtimelinking" = yes; then
16534 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16535 # instead of lib<name>.a to let people know that these are not
16536 # typical AIX shared libraries.
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16539 # We preserve .a as extension for shared libraries through AIX4.2
16540 # and later when we are not doing run time linking.
16541 library_names_spec='${libname}${release}.a $libname.a'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16544 shlibpath_var=LIBPATH
16551 # Since July 2007 AmigaOS4 officially supports .so libraries.
16552 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 library_names_spec='$libname.ixlibrary $libname.a'
16557 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16558 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'
16564 library_names_spec='${libname}${shared_ext}'
16565 dynamic_linker="$host_os ld.so"
16566 shlibpath_var=LIBRARY_PATH
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573 soname_spec='${libname}${release}${shared_ext}$major'
16574 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16577 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16578 # the default ld.so.conf also contains /usr/contrib/lib and
16579 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16580 # libtool to hard-code these into programs
16583 cygwin* | mingw* | pw32* | cegcc*)
16584 version_type=windows
16589 case $GCC,$host_os in
16590 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16591 library_names_spec='$libname.dll.a'
16592 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16593 postinstall_cmds='base_file=`basename \${file}`~
16594 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16595 dldir=$destdir/`dirname \$dlpath`~
16596 test -d \$dldir || mkdir -p \$dldir~
16597 $install_prog $dir/$dlname \$dldir/$dlname~
16598 chmod a+x \$dldir/$dlname~
16599 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16600 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16603 dlpath=$dir/\$dldll~
16605 shlibpath_overrides_runpath=yes
16609 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16612 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16615 # MinGW DLLs use traditional 'lib' prefix
16616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16619 # pw32 DLLs use 'pw' prefix rather than 'lib'
16620 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16629 dynamic_linker='Win32 ld.exe'
16630 # FIXME: first we should search . and the directory the executable is in
16634 darwin* | rhapsody*)
16635 dynamic_linker="$host_os dyld"
16636 version_type=darwin
16639 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16640 soname_spec='${libname}${release}${major}$shared_ext'
16641 shlibpath_overrides_runpath=yes
16642 shlibpath_var=DYLD_LIBRARY_PATH
16643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 shlibpath_var=LD_LIBRARY_PATH
16658 freebsd* | dragonfly*)
16659 # DragonFly does not have aout. When/if they implement a new
16660 # versioning mechanism, adjust this.
16661 if test -x /usr/bin/objformat; then
16662 objformat=`/usr/bin/objformat`
16665 freebsd[123]*) objformat=aout ;;
16666 *) objformat=elf ;;
16669 version_type=freebsd-$objformat
16670 case $version_type in
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16681 shlibpath_var=LD_LIBRARY_PATH
16684 shlibpath_overrides_runpath=yes
16686 freebsd3.[01]* | freebsdelf3.[01]*)
16687 shlibpath_overrides_runpath=yes
16688 hardcode_into_libs=yes
16690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16692 shlibpath_overrides_runpath=no
16693 hardcode_into_libs=yes
16695 *) # from 4.6 on, and DragonFly
16696 shlibpath_overrides_runpath=yes
16697 hardcode_into_libs=yes
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16707 soname_spec='${libname}${release}${shared_ext}$major'
16708 shlibpath_var=LD_LIBRARY_PATH
16709 hardcode_into_libs=yes
16716 dynamic_linker="$host_os runtime_loader"
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 shlibpath_var=LIBRARY_PATH
16720 shlibpath_overrides_runpath=yes
16721 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16722 hardcode_into_libs=yes
16725 hpux9* | hpux10* | hpux11*)
16726 # Give a soname corresponding to the major version so that dld.sl refuses to
16727 # link against other versions.
16734 hardcode_into_libs=yes
16735 dynamic_linker="$host_os dld.so"
16736 shlibpath_var=LD_LIBRARY_PATH
16737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 if test "X$HPUX_IA64_MODE" = X32; then
16741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16743 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16749 hardcode_into_libs=yes
16750 dynamic_linker="$host_os dld.sl"
16751 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 soname_spec='${libname}${release}${shared_ext}$major'
16755 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16760 dynamic_linker="$host_os dld.sl"
16761 shlibpath_var=SHLIB_PATH
16762 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764 soname_spec='${libname}${release}${shared_ext}$major'
16767 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16768 postinstall_cmds='chmod 555 $lib'
16769 # or fails outright, so override atomically:
16770 install_override_mode=555
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 shlibpath_overrides_runpath=no
16782 hardcode_into_libs=yes
16785 irix5* | irix6* | nonstopux*)
16787 nonstopux*) version_type=nonstopux ;;
16789 if test "$lt_cv_prog_gnu_ld" = yes; then
16797 soname_spec='${libname}${release}${shared_ext}$major'
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16800 irix5* | nonstopux*)
16801 libsuff= shlibsuff=
16804 case $LD in # libtool.m4 will add one of these switches to LD
16805 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16806 libsuff= shlibsuff= libmagic=32-bit;;
16807 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16808 libsuff=32 shlibsuff=N32 libmagic=N32;;
16809 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16810 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16811 *) libsuff= shlibsuff= libmagic=never-match;;
16815 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16816 shlibpath_overrides_runpath=no
16817 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16818 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16819 hardcode_into_libs=yes
16822 # No shared lib support for Linux oldld, aout, or coff.
16823 linux*oldld* | linux*aout* | linux*coff*)
16827 # This must be Linux ELF.
16828 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 shlibpath_overrides_runpath=no
16838 # Some binutils ld are patched to set DT_RUNPATH
16839 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16840 $as_echo_n "(cached) " >&6
16842 lt_cv_shlibpath_overrides_runpath=no
16843 save_LDFLAGS=$LDFLAGS
16844 save_libdir=$libdir
16845 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16846 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16858 if ac_fn_c_try_link "$LINENO"; then :
16859 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16860 lt_cv_shlibpath_overrides_runpath=yes
16863 rm -f core conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16865 LDFLAGS=$save_LDFLAGS
16866 libdir=$save_libdir
16870 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16872 # This implies no fast_install, which is unacceptable.
16873 # Some rework will be needed to allow for fast_install
16874 # before this can be enabled.
16875 hardcode_into_libs=yes
16877 # Append ld.so.conf contents to the search path
16878 if test -f /etc/ld.so.conf; then
16879 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' ' '`
16880 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16883 # We used to test for /lib/ld.so.1 and disable shared libraries on
16884 # powerpc, because MkLinux only supported shared libraries with the
16885 # GNU dynamic linker. Since this was broken with cross compilers,
16886 # most powerpc-linux boxes support dynamic linking these days and
16887 # people can always --disable-shared, the test was removed, and we
16888 # assume the GNU/Linux dynamic linker is in use.
16889 dynamic_linker='GNU/Linux ld.so'
16896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16899 dynamic_linker='NetBSD (a.out) ld.so'
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16902 soname_spec='${libname}${release}${shared_ext}$major'
16903 dynamic_linker='NetBSD ld.elf_so'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 shlibpath_overrides_runpath=yes
16907 hardcode_into_libs=yes
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 shlibpath_overrides_runpath=yes
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 shlibpath_overrides_runpath=no
16925 hardcode_into_libs=yes
16926 dynamic_linker='ldqnx.so'
16931 sys_lib_dlsearch_path_spec="/usr/lib"
16933 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16935 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16936 *) need_version=no ;;
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16940 shlibpath_var=LD_LIBRARY_PATH
16941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16943 openbsd2.[89] | openbsd2.[89].*)
16944 shlibpath_overrides_runpath=no
16947 shlibpath_overrides_runpath=yes
16951 shlibpath_overrides_runpath=yes
16956 libname_spec='$name'
16959 library_names_spec='$libname${shared_ext} $libname.a'
16960 dynamic_linker='OS/2 ld.exe'
16961 shlibpath_var=LIBPATH
16964 osf3* | osf4* | osf5*)
16968 soname_spec='${libname}${release}${shared_ext}$major'
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16970 shlibpath_var=LD_LIBRARY_PATH
16971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16984 soname_spec='${libname}${release}${shared_ext}$major'
16985 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=yes
16987 hardcode_into_libs=yes
16988 # ldd complains unless libraries are executable
16989 postinstall_cmds='chmod +x $lib'
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16995 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16996 shlibpath_var=LD_LIBRARY_PATH
16997 shlibpath_overrides_runpath=yes
16998 if test "$with_gnu_ld" = yes; then
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 shlibpath_var=LD_LIBRARY_PATH
17009 case $host_vendor in
17011 shlibpath_overrides_runpath=no
17013 runpath_var=LD_RUN_PATH
17021 shlibpath_overrides_runpath=no
17022 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17028 if test -d /usr/nec ;then
17030 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17031 soname_spec='$libname${shared_ext}.$major'
17032 shlibpath_var=LD_LIBRARY_PATH
17036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17037 version_type=freebsd-elf
17040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17041 soname_spec='${libname}${release}${shared_ext}$major'
17042 shlibpath_var=LD_LIBRARY_PATH
17043 shlibpath_overrides_runpath=yes
17044 hardcode_into_libs=yes
17045 if test "$with_gnu_ld" = yes; then
17046 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17048 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17051 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17055 sys_lib_dlsearch_path_spec='/usr/lib'
17059 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064 shlibpath_var=LD_LIBRARY_PATH
17065 shlibpath_overrides_runpath=no
17066 hardcode_into_libs=yes
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 shlibpath_var=LD_LIBRARY_PATH
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17081 $as_echo "$dynamic_linker" >&6; }
17082 test "$dynamic_linker" = no && can_build_shared=no
17084 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17085 if test "$GCC" = yes; then
17086 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17089 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17090 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17092 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17093 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17188 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17190 if test -n "$hardcode_libdir_flag_spec" ||
17191 test -n "$runpath_var" ||
17192 test "X$hardcode_automatic" = "Xyes" ; then
17194 # We can hardcode non-existent directories.
17195 if test "$hardcode_direct" != no &&
17196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17197 # have to relink, otherwise we might link with an installed library
17198 # when we should be linking with a yet-to-be-installed one
17199 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17200 test "$hardcode_minus_L" != no; then
17201 # Linking always hardcodes the temporary library directory.
17202 hardcode_action=relink
17204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17205 hardcode_action=immediate
17208 # We cannot hardcode anything, or else we can only hardcode existing
17210 hardcode_action=unsupported
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17213 $as_echo "$hardcode_action" >&6; }
17215 if test "$hardcode_action" = relink ||
17216 test "$inherit_rpath" = yes; then
17217 # Fast installation is not supported
17218 enable_fast_install=no
17219 elif test "$shlibpath_overrides_runpath" = yes ||
17220 test "$enable_shared" = no; then
17221 # Fast installation is not necessary
17222 enable_fast_install=needless
17230 if test "x$enable_dlopen" != xyes; then
17231 enable_dlopen=unknown
17232 enable_dlopen_self=unknown
17233 enable_dlopen_self_static=unknown
17240 lt_cv_dlopen="load_add_on"
17242 lt_cv_dlopen_self=yes
17245 mingw* | pw32* | cegcc*)
17246 lt_cv_dlopen="LoadLibrary"
17251 lt_cv_dlopen="dlopen"
17256 # if libdl is installed we need to link against it
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17258 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17259 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17260 $as_echo_n "(cached) " >&6
17262 ac_check_lib_save_LIBS=$LIBS
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17267 /* Override any GCC internal prototype to avoid an error.
17268 Use char because int might match the return type of a GCC
17269 builtin and then its argument prototype would still apply. */
17282 if ac_fn_c_try_link "$LINENO"; then :
17283 ac_cv_lib_dl_dlopen=yes
17285 ac_cv_lib_dl_dlopen=no
17287 rm -f core conftest.err conftest.$ac_objext \
17288 conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17293 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17297 lt_cv_dlopen="dyld"
17299 lt_cv_dlopen_self=yes
17306 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17307 if test "x$ac_cv_func_shl_load" = x""yes; then :
17308 lt_cv_dlopen="shl_load"
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17311 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17312 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17313 $as_echo_n "(cached) " >&6
17315 ac_check_lib_save_LIBS=$LIBS
17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318 /* end confdefs.h. */
17320 /* Override any GCC internal prototype to avoid an error.
17321 Use char because int might match the return type of a GCC
17322 builtin and then its argument prototype would still apply. */
17330 return shl_load ();
17335 if ac_fn_c_try_link "$LINENO"; then :
17336 ac_cv_lib_dld_shl_load=yes
17338 ac_cv_lib_dld_shl_load=no
17340 rm -f core conftest.err conftest.$ac_objext \
17341 conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17345 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17346 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17347 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17349 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17350 if test "x$ac_cv_func_dlopen" = x""yes; then :
17351 lt_cv_dlopen="dlopen"
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17354 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17355 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17356 $as_echo_n "(cached) " >&6
17358 ac_check_lib_save_LIBS=$LIBS
17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361 /* end confdefs.h. */
17363 /* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17378 if ac_fn_c_try_link "$LINENO"; then :
17379 ac_cv_lib_dl_dlopen=yes
17381 ac_cv_lib_dl_dlopen=no
17383 rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17385 LIBS=$ac_check_lib_save_LIBS
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17388 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17389 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17390 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17393 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17394 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17395 $as_echo_n "(cached) " >&6
17397 ac_check_lib_save_LIBS=$LIBS
17398 LIBS="-lsvld $LIBS"
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17402 /* Override any GCC internal prototype to avoid an error.
17403 Use char because int might match the return type of a GCC
17404 builtin and then its argument prototype would still apply. */
17417 if ac_fn_c_try_link "$LINENO"; then :
17418 ac_cv_lib_svld_dlopen=yes
17420 ac_cv_lib_svld_dlopen=no
17422 rm -f core conftest.err conftest.$ac_objext \
17423 conftest$ac_exeext conftest.$ac_ext
17424 LIBS=$ac_check_lib_save_LIBS
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17427 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17428 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17432 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17433 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17434 $as_echo_n "(cached) " >&6
17436 ac_check_lib_save_LIBS=$LIBS
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17441 /* Override any GCC internal prototype to avoid an error.
17442 Use char because int might match the return type of a GCC
17443 builtin and then its argument prototype would still apply. */
17451 return dld_link ();
17456 if ac_fn_c_try_link "$LINENO"; then :
17457 ac_cv_lib_dld_dld_link=yes
17459 ac_cv_lib_dld_dld_link=no
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17463 LIBS=$ac_check_lib_save_LIBS
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17466 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17467 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17468 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17489 if test "x$lt_cv_dlopen" != xno; then
17495 case $lt_cv_dlopen in
17497 save_CPPFLAGS="$CPPFLAGS"
17498 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17500 save_LDFLAGS="$LDFLAGS"
17501 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17504 LIBS="$lt_cv_dlopen_libs $LIBS"
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17507 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17508 if test "${lt_cv_dlopen_self+set}" = set; then :
17509 $as_echo_n "(cached) " >&6
17511 if test "$cross_compiling" = yes; then :
17512 lt_cv_dlopen_self=cross
17514 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17515 lt_status=$lt_dlunknown
17516 cat > conftest.$ac_ext <<_LT_EOF
17517 #line 17517 "configure"
17518 #include "confdefs.h"
17527 # define LT_DLGLOBAL RTLD_GLOBAL
17530 # define LT_DLGLOBAL DL_GLOBAL
17532 # define LT_DLGLOBAL 0
17536 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17537 find out it does not work in some platform. */
17538 #ifndef LT_DLLAZY_OR_NOW
17540 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17543 # define LT_DLLAZY_OR_NOW DL_LAZY
17546 # define LT_DLLAZY_OR_NOW RTLD_NOW
17549 # define LT_DLLAZY_OR_NOW DL_NOW
17551 # define LT_DLLAZY_OR_NOW 0
17558 /* When -fvisbility=hidden is used, assume the code has been annotated
17559 correspondingly for the symbols needed. */
17560 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17561 void fnord () __attribute__((visibility("default")));
17564 void fnord () { int i=42; }
17567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17568 int status = $lt_dlunknown;
17572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17575 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17576 else puts (dlerror ());
17578 /* dlclose (self); */
17586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17587 (eval $ac_link) 2>&5
17589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17590 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17591 (./conftest; exit; ) >&5 2>/dev/null
17593 case x$lt_status in
17594 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17595 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17596 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17599 # compilation failed
17600 lt_cv_dlopen_self=no
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17608 $as_echo "$lt_cv_dlopen_self" >&6; }
17610 if test "x$lt_cv_dlopen_self" = xyes; then
17611 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17613 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17614 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17615 $as_echo_n "(cached) " >&6
17617 if test "$cross_compiling" = yes; then :
17618 lt_cv_dlopen_self_static=cross
17620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17621 lt_status=$lt_dlunknown
17622 cat > conftest.$ac_ext <<_LT_EOF
17623 #line 17623 "configure"
17624 #include "confdefs.h"
17633 # define LT_DLGLOBAL RTLD_GLOBAL
17636 # define LT_DLGLOBAL DL_GLOBAL
17638 # define LT_DLGLOBAL 0
17642 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17643 find out it does not work in some platform. */
17644 #ifndef LT_DLLAZY_OR_NOW
17646 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17649 # define LT_DLLAZY_OR_NOW DL_LAZY
17652 # define LT_DLLAZY_OR_NOW RTLD_NOW
17655 # define LT_DLLAZY_OR_NOW DL_NOW
17657 # define LT_DLLAZY_OR_NOW 0
17664 /* When -fvisbility=hidden is used, assume the code has been annotated
17665 correspondingly for the symbols needed. */
17666 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17667 void fnord () __attribute__((visibility("default")));
17670 void fnord () { int i=42; }
17673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17674 int status = $lt_dlunknown;
17678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17681 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17682 else puts (dlerror ());
17684 /* dlclose (self); */
17692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17693 (eval $ac_link) 2>&5
17695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17696 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17697 (./conftest; exit; ) >&5 2>/dev/null
17699 case x$lt_status in
17700 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17701 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17702 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17705 # compilation failed
17706 lt_cv_dlopen_self_static=no
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17714 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17717 CPPFLAGS="$save_CPPFLAGS"
17718 LDFLAGS="$save_LDFLAGS"
17723 case $lt_cv_dlopen_self in
17724 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17725 *) enable_dlopen_self=unknown ;;
17728 case $lt_cv_dlopen_self_static in
17729 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17730 *) enable_dlopen_self_static=unknown ;;
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17753 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17754 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17755 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17756 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17758 $as_echo "yes" >&6; }
17760 # FIXME - insert some real tests, host_os isn't really good enough
17763 if test -n "$STRIP" ; then
17764 striplib="$STRIP -x"
17765 old_striplib="$STRIP -S"
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17767 $as_echo "yes" >&6; }
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17770 $as_echo "no" >&6; }
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775 $as_echo "no" >&6; }
17791 # Report which library types will actually be built
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17793 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17795 $as_echo "$can_build_shared" >&6; }
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17798 $as_echo_n "checking whether to build shared libraries... " >&6; }
17799 test "$can_build_shared" = "no" && enable_shared=no
17801 # On AIX, shared libraries and static libraries use the same namespace, and
17802 # are all built from PIC.
17805 test "$enable_shared" = yes && enable_static=no
17806 if test -n "$RANLIB"; then
17807 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17808 postinstall_cmds='$RANLIB $lib'
17813 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17814 test "$enable_shared" = yes && enable_static=no
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17819 $as_echo "$enable_shared" >&6; }
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17822 $as_echo_n "checking whether to build static libraries... " >&6; }
17823 # Make sure either enable_shared or enable_static is yes.
17824 test "$enable_shared" = yes || enable_static=yes
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17826 $as_echo "$enable_static" >&6; }
17833 ac_cpp='$CPP $CPPFLAGS'
17834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17840 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17841 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17842 (test "X$CXX" != "Xg++"))) ; then
17844 ac_cpp='$CXXCPP $CPPFLAGS'
17845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17849 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17850 if test -z "$CXXCPP"; then
17851 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17852 $as_echo_n "(cached) " >&6
17854 # Double quotes because CXXCPP needs to be expanded
17855 for CXXCPP in "$CXX -E" "/lib/cpp"
17857 ac_preproc_ok=false
17858 for ac_cxx_preproc_warn_flag in '' yes
17860 # Use a header file that comes with gcc, so configuring glibc
17861 # with a fresh cross-compiler works.
17862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17863 # <limits.h> exists even on freestanding compilers.
17864 # On the NeXT, cc -E runs the code through the compiler's parser,
17865 # not just through cpp. "Syntax error" is here to catch this case.
17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17869 # include <limits.h>
17871 # include <assert.h>
17875 if ac_fn_cxx_try_cpp "$LINENO"; then :
17878 # Broken: fails on valid input.
17881 rm -f conftest.err conftest.$ac_ext
17883 # OK, works on sane cases. Now check whether nonexistent headers
17884 # can be detected and how.
17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886 /* end confdefs.h. */
17887 #include <ac_nonexistent.h>
17889 if ac_fn_cxx_try_cpp "$LINENO"; then :
17890 # Broken: success on invalid input.
17893 # Passes both tests.
17897 rm -f conftest.err conftest.$ac_ext
17900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17901 rm -f conftest.err conftest.$ac_ext
17902 if $ac_preproc_ok; then :
17907 ac_cv_prog_CXXCPP=$CXXCPP
17910 CXXCPP=$ac_cv_prog_CXXCPP
17912 ac_cv_prog_CXXCPP=$CXXCPP
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17915 $as_echo "$CXXCPP" >&6; }
17916 ac_preproc_ok=false
17917 for ac_cxx_preproc_warn_flag in '' yes
17919 # Use a header file that comes with gcc, so configuring glibc
17920 # with a fresh cross-compiler works.
17921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17922 # <limits.h> exists even on freestanding compilers.
17923 # On the NeXT, cc -E runs the code through the compiler's parser,
17924 # not just through cpp. "Syntax error" is here to catch this case.
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17928 # include <limits.h>
17930 # include <assert.h>
17934 if ac_fn_cxx_try_cpp "$LINENO"; then :
17937 # Broken: fails on valid input.
17940 rm -f conftest.err conftest.$ac_ext
17942 # OK, works on sane cases. Now check whether nonexistent headers
17943 # can be detected and how.
17944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h. */
17946 #include <ac_nonexistent.h>
17948 if ac_fn_cxx_try_cpp "$LINENO"; then :
17949 # Broken: success on invalid input.
17952 # Passes both tests.
17956 rm -f conftest.err conftest.$ac_ext
17959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17960 rm -f conftest.err conftest.$ac_ext
17961 if $ac_preproc_ok; then :
17964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17966 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17967 See \`config.log' for more details." "$LINENO" 5; }
17971 ac_cpp='$CPP $CPPFLAGS'
17972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17977 _lt_caught_CXX_error=yes
17981 ac_cpp='$CXXCPP $CPPFLAGS'
17982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17986 archive_cmds_need_lc_CXX=no
17987 allow_undefined_flag_CXX=
17988 always_export_symbols_CXX=no
17989 archive_expsym_cmds_CXX=
17990 compiler_needs_object_CXX=no
17991 export_dynamic_flag_spec_CXX=
17992 hardcode_direct_CXX=no
17993 hardcode_direct_absolute_CXX=no
17994 hardcode_libdir_flag_spec_CXX=
17995 hardcode_libdir_flag_spec_ld_CXX=
17996 hardcode_libdir_separator_CXX=
17997 hardcode_minus_L_CXX=no
17998 hardcode_shlibpath_var_CXX=unsupported
17999 hardcode_automatic_CXX=no
18000 inherit_rpath_CXX=no
18002 module_expsym_cmds_CXX=
18003 link_all_deplibs_CXX=unknown
18004 old_archive_cmds_CXX=$old_archive_cmds
18005 reload_flag_CXX=$reload_flag
18006 reload_cmds_CXX=$reload_cmds
18007 no_undefined_flag_CXX=
18008 whole_archive_flag_spec_CXX=
18009 enable_shared_with_static_runtimes_CXX=no
18011 # Source file extension for C++ test sources.
18014 # Object file extension for compiled C++ test sources.
18018 # No sense in running all these tests if we already determined that
18019 # the CXX compiler isn't working. Some variables (like enable_shared)
18020 # are currently assumed to apply to all compilers on this platform,
18021 # and will be corrupted by setting them based on a non-working compiler.
18022 if test "$_lt_caught_CXX_error" != yes; then
18023 # Code to be used in simple compile tests
18024 lt_simple_compile_test_code="int some_variable = 0;"
18026 # Code to be used in simple link tests
18027 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18036 # If no C compiler was specified, use CC.
18039 # If no C compiler flags were specified, use CFLAGS.
18040 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18042 # Allow CC to be a program name with arguments.
18046 # save warnings/boilerplate of simple test code
18047 ac_outfile=conftest.$ac_objext
18048 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18050 _lt_compiler_boilerplate=`cat conftest.err`
18053 ac_outfile=conftest.$ac_objext
18054 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18056 _lt_linker_boilerplate=`cat conftest.err`
18060 # Allow CC to be a program name with arguments.
18065 lt_save_with_gnu_ld=$with_gnu_ld
18066 lt_save_path_LD=$lt_cv_path_LD
18067 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18068 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18070 $as_unset lt_cv_prog_gnu_ld
18072 if test -n "${lt_cv_path_LDCXX+set}"; then
18073 lt_cv_path_LD=$lt_cv_path_LDCXX
18075 $as_unset lt_cv_path_LD
18077 test -z "${LDCXX+set}" || LD=$LDCXX
18081 for cc_temp in $compiler""; do
18083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18089 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18092 if test -n "$compiler"; then
18093 # We don't want -fno-exception when compiling C++ code, so set the
18094 # no_builtin_flag separately
18095 if test "$GXX" = yes; then
18096 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18098 lt_prog_compiler_no_builtin_flag_CXX=
18101 if test "$GXX" = yes; then
18102 # Set up default GNU C++ configuration
18106 # Check whether --with-gnu-ld was given.
18107 if test "${with_gnu_ld+set}" = set; then :
18108 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18114 if test "$GCC" = yes; then
18115 # Check if gcc -print-prog-name=ld gives a path.
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18117 $as_echo_n "checking for ld used by $CC... " >&6; }
18120 # gcc leaves a trailing carriage return which upsets mingw
18121 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18123 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18126 # Accept absolute paths.
18128 re_direlt='/[^/][^/]*/\.\./'
18129 # Canonicalize the pathname of ld
18130 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18131 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18132 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18134 test -z "$LD" && LD="$ac_prog"
18137 # If it fails, then pretend we aren't using GCC.
18141 # If it is relative, then search for the first ld in PATH.
18142 with_gnu_ld=unknown
18145 elif test "$with_gnu_ld" = yes; then
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18147 $as_echo_n "checking for GNU ld... " >&6; }
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18150 $as_echo_n "checking for non-GNU ld... " >&6; }
18152 if test "${lt_cv_path_LD+set}" = set; then :
18153 $as_echo_n "(cached) " >&6
18155 if test -z "$LD"; then
18156 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18157 for ac_dir in $PATH; do
18159 test -z "$ac_dir" && ac_dir=.
18160 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18161 lt_cv_path_LD="$ac_dir/$ac_prog"
18162 # Check to see if the program is GNU ld. I'd rather use --version,
18163 # but apparently some variants of GNU ld only accept -v.
18164 # Break only if it was the GNU/non-GNU ld that we prefer.
18165 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18166 *GNU* | *'with BFD'*)
18167 test "$with_gnu_ld" != no && break
18170 test "$with_gnu_ld" != yes && break
18177 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18181 LD="$lt_cv_path_LD"
18182 if test -n "$LD"; then
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18184 $as_echo "$LD" >&6; }
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18187 $as_echo "no" >&6; }
18189 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18191 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18192 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18193 $as_echo_n "(cached) " >&6
18195 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18196 case `$LD -v 2>&1 </dev/null` in
18197 *GNU* | *'with BFD'*)
18198 lt_cv_prog_gnu_ld=yes
18201 lt_cv_prog_gnu_ld=no
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18206 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18207 with_gnu_ld=$lt_cv_prog_gnu_ld
18215 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18216 # archiving commands below assume that GNU ld is being used.
18217 if test "$with_gnu_ld" = yes; then
18218 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18219 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'
18221 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18224 # If archive_cmds runs LD, not CC, wlarc should be empty
18225 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18226 # investigate it a little bit more. (MM)
18229 # ancient GNU ld didn't support --whole-archive et. al.
18230 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18231 $GREP 'no-whole-archive' > /dev/null; then
18232 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18234 whole_archive_flag_spec_CXX=
18240 # A generic and very simple default shared library creation
18241 # command for GNU C++ for the case where it uses the native
18242 # linker, instead of GNU ld. If possible, this setting should
18243 # overridden to take advantage of the native linker features on
18244 # the platform it is being used on.
18245 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18248 # Commands to make compiler produce verbose output that lists
18249 # what "hidden" libraries, object files and flags are used when
18250 # linking a shared library.
18251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18259 # PORTME: fill in a description of your system's C++ link characteristics
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18261 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18265 # FIXME: insert proper C++ library support
18269 if test "$host_cpu" = ia64; then
18270 # On IA64, the linker does run time linking by default, so we don't
18271 # have to do anything special.
18272 aix_use_runtimelinking=no
18273 exp_sym_flag='-Bexport'
18276 aix_use_runtimelinking=no
18278 # Test if we are trying to use run time linking or normal
18279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18280 # need to do runtime linking.
18281 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18282 for ld_flag in $LDFLAGS; do
18285 aix_use_runtimelinking=yes
18293 exp_sym_flag='-bexport'
18294 no_entry_flag='-bnoentry'
18297 # When large executables or shared objects are built, AIX ld can
18298 # have problems creating the table of contents. If linking a library
18299 # or program results in "error TOC overflow" add -mminimal-toc to
18300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18303 archive_cmds_CXX=''
18304 hardcode_direct_CXX=yes
18305 hardcode_direct_absolute_CXX=yes
18306 hardcode_libdir_separator_CXX=':'
18307 link_all_deplibs_CXX=yes
18308 file_list_spec_CXX='${wl}-f,'
18310 if test "$GXX" = yes; then
18311 case $host_os in aix4.[012]|aix4.[012].*)
18312 # We only want to do this on AIX 4.2 and lower, the check
18313 # below for broken collect2 doesn't work under 4.3+
18314 collect2name=`${CC} -print-prog-name=collect2`
18315 if test -f "$collect2name" &&
18316 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18318 # We have reworked collect2
18321 # We have old collect2
18322 hardcode_direct_CXX=unsupported
18323 # It fails to find uninstalled libraries when the uninstalled
18324 # path is not listed in the libpath. Setting hardcode_minus_L
18325 # to unsupported forces relinking
18326 hardcode_minus_L_CXX=yes
18327 hardcode_libdir_flag_spec_CXX='-L$libdir'
18328 hardcode_libdir_separator_CXX=
18331 shared_flag='-shared'
18332 if test "$aix_use_runtimelinking" = yes; then
18333 shared_flag="$shared_flag "'${wl}-G'
18337 if test "$host_cpu" = ia64; then
18338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18339 # chokes on -Wl,-G. The following line is correct:
18342 if test "$aix_use_runtimelinking" = yes; then
18343 shared_flag='${wl}-G'
18345 shared_flag='${wl}-bM:SRE'
18350 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18351 # It seems that -bexpall does not export symbols beginning with
18352 # underscore (_), so it is better to generate a list of symbols to
18354 always_export_symbols_CXX=yes
18355 if test "$aix_use_runtimelinking" = yes; then
18356 # Warning - without using the other runtime loading flags (-brtl),
18357 # -berok will link without error, but may produce a broken library.
18358 allow_undefined_flag_CXX='-berok'
18359 # Determine the default libpath from the value encoded in an empty
18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18372 if ac_fn_cxx_try_link "$LINENO"; then :
18374 lt_aix_libpath_sed='
18375 /Import File Strings/,/^$/ {
18381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18382 # Check for a 64-bit object if we didn't find anything.
18383 if test -z "$aix_libpath"; then
18384 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18391 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18393 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"
18395 if test "$host_cpu" = ia64; then
18396 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18397 allow_undefined_flag_CXX="-z nodefs"
18398 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"
18400 # Determine the default libpath from the value encoded in an
18401 # empty executable.
18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h. */
18413 if ac_fn_cxx_try_link "$LINENO"; then :
18415 lt_aix_libpath_sed='
18416 /Import File Strings/,/^$/ {
18422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18423 # Check for a 64-bit object if we didn't find anything.
18424 if test -z "$aix_libpath"; then
18425 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18428 rm -f core conftest.err conftest.$ac_objext \
18429 conftest$ac_exeext conftest.$ac_ext
18430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18432 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18433 # Warning - without using the other run time loading flags,
18434 # -berok will link without error, but may produce a broken library.
18435 no_undefined_flag_CXX=' ${wl}-bernotok'
18436 allow_undefined_flag_CXX=' ${wl}-berok'
18437 if test "$with_gnu_ld" = yes; then
18438 # We only use this code for GNU lds that support --whole-archive.
18439 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18441 # Exported symbols can be pulled into shared objects from archives
18442 whole_archive_flag_spec_CXX='$convenience'
18444 archive_cmds_need_lc_CXX=yes
18445 # This is similar to how AIX traditionally builds its shared
18447 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'
18453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18454 allow_undefined_flag_CXX=unsupported
18455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18456 # support --undefined. This deserves some investigation. FIXME
18457 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18464 case $cc_basename in
18466 # FIXME: insert proper C++ library support
18472 cygwin* | mingw* | pw32* | cegcc*)
18473 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18474 # as there is no search path for DLLs.
18475 hardcode_libdir_flag_spec_CXX='-L$libdir'
18476 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18477 allow_undefined_flag_CXX=unsupported
18478 always_export_symbols_CXX=no
18479 enable_shared_with_static_runtimes_CXX=yes
18481 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18482 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'
18483 # If the export-symbols file already is a .def file (1st line
18484 # is EXPORTS), use it as is; otherwise, prepend...
18485 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18486 cp $export_symbols $output_objdir/$soname.def;
18488 echo EXPORTS > $output_objdir/$soname.def;
18489 cat $export_symbols >> $output_objdir/$soname.def;
18491 $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'
18496 darwin* | rhapsody*)
18499 archive_cmds_need_lc_CXX=no
18500 hardcode_direct_CXX=no
18501 hardcode_automatic_CXX=yes
18502 hardcode_shlibpath_var_CXX=unsupported
18503 if test "$lt_cv_ld_force_load" = "yes"; then
18504 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\"`'
18506 whole_archive_flag_spec_CXX=''
18508 link_all_deplibs_CXX=yes
18509 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18510 case $cc_basename in
18511 ifort*) _lt_dar_can_shared=yes ;;
18512 *) _lt_dar_can_shared=$GCC ;;
18514 if test "$_lt_dar_can_shared" = "yes"; then
18515 output_verbose_link_cmd=func_echo_all
18516 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}"
18517 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18518 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}"
18519 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}"
18520 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18521 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}"
18522 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}"
18532 case $cc_basename in
18534 # FIXME: insert proper C++ library support
18538 # Green Hills C++ Compiler
18539 # FIXME: insert proper C++ library support
18543 # FIXME: insert proper C++ library support
18550 # C++ shared libraries reported to be fairly broken before
18556 archive_cmds_need_lc_CXX=no
18559 freebsd* | dragonfly*)
18560 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18569 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18570 link_all_deplibs_CXX=yes
18574 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18575 hardcode_libdir_separator_CXX=:
18576 export_dynamic_flag_spec_CXX='${wl}-E'
18577 hardcode_direct_CXX=yes
18578 hardcode_minus_L_CXX=yes # Not in the search PATH,
18579 # but as the default
18580 # location of the library.
18582 case $cc_basename in
18584 # FIXME: insert proper C++ library support
18588 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'
18589 # Commands to make compiler produce verbose output that lists
18590 # what "hidden" libraries, object files and flags are used when
18591 # linking a shared library.
18593 # There doesn't appear to be a way to prevent this compiler from
18594 # explicitly linking system object files so we need to strip them
18595 # from the output so that they don't get included in the library
18597 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"'
18600 if test "$GXX" = yes; then
18601 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'
18603 # FIXME: insert proper C++ library support
18611 if test $with_gnu_ld = no; then
18612 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18613 hardcode_libdir_separator_CXX=:
18619 export_dynamic_flag_spec_CXX='${wl}-E'
18625 hardcode_direct_CXX=no
18626 hardcode_shlibpath_var_CXX=no
18629 hardcode_direct_CXX=yes
18630 hardcode_direct_absolute_CXX=yes
18631 hardcode_minus_L_CXX=yes # Not in the search PATH,
18632 # but as the default
18633 # location of the library.
18637 case $cc_basename in
18639 # FIXME: insert proper C++ library support
18645 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18648 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18651 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18654 # Commands to make compiler produce verbose output that lists
18655 # what "hidden" libraries, object files and flags are used when
18656 # linking a shared library.
18658 # There doesn't appear to be a way to prevent this compiler from
18659 # explicitly linking system object files so we need to strip them
18660 # from the output so that they don't get included in the library
18662 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"'
18665 if test "$GXX" = yes; then
18666 if test $with_gnu_ld = no; then
18669 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18672 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18675 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'
18680 # FIXME: insert proper C++ library support
18688 hardcode_direct_CXX=no
18689 hardcode_shlibpath_var_CXX=no
18690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18691 export_dynamic_flag_spec_CXX='${wl}-E'
18692 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18693 # Instead, shared libraries are loaded at an image base (0x10000000 by
18694 # default) and relocated if they conflict, which is a slow very memory
18695 # consuming and fragmenting process. To avoid this, we pick a random,
18696 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18697 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18698 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'
18699 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'
18702 case $cc_basename in
18705 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'
18707 # Archives containing C++ object files must be created using
18708 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18709 # necessary to make sure instantiated templates are included
18711 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18714 if test "$GXX" = yes; then
18715 if test "$with_gnu_ld" = no; then
18716 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'
18718 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'
18721 link_all_deplibs_CXX=yes
18724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18725 hardcode_libdir_separator_CXX=:
18726 inherit_rpath_CXX=yes
18729 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18730 case $cc_basename in
18732 # Kuck and Associates, Inc. (KAI) C++ Compiler
18734 # KCC will only create a shared library if the output file
18735 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18736 # to its proper name (with version) after linking.
18737 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'
18738 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'
18739 # Commands to make compiler produce verbose output that lists
18740 # what "hidden" libraries, object files and flags are used when
18741 # linking a shared library.
18743 # There doesn't appear to be a way to prevent this compiler from
18744 # explicitly linking system object files so we need to strip them
18745 # from the output so that they don't get included in the library
18747 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"'
18749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18750 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18752 # Archives containing C++ object files must be created using
18753 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18754 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18759 # version 8.0 and above of icpc choke on multiply defined symbols
18760 # if we add $predep_objects and $postdep_objects, however 7.1 and
18761 # earlier do not add the objects themselves.
18762 case `$CC -V 2>&1` in
18764 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18765 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'
18767 *) # Version 8.0 or newer
18770 ia64*) tmp_idyn=' -i_dynamic';;
18772 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18773 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'
18776 archive_cmds_need_lc_CXX=no
18777 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18779 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18782 # Portland Group C++ compiler
18784 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18785 prelink_cmds_CXX='tpldir=Template.dir~
18787 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18788 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18789 old_archive_cmds_CXX='tpldir=Template.dir~
18791 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18792 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18794 archive_cmds_CXX='tpldir=Template.dir~
18796 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18797 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18798 archive_expsym_cmds_CXX='tpldir=Template.dir~
18800 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18801 $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'
18803 *) # Version 6 and above use weak symbols
18804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18805 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'
18809 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18810 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18811 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'
18815 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18816 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'
18818 runpath_var=LD_RUN_PATH
18819 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18820 hardcode_libdir_separator_CXX=:
18822 # Commands to make compiler produce verbose output that lists
18823 # what "hidden" libraries, object files and flags are used when
18824 # linking a shared library.
18826 # There doesn't appear to be a way to prevent this compiler from
18827 # explicitly linking system object files so we need to strip them
18828 # from the output so that they don't get included in the library
18830 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'
18832 xl* | mpixl* | bgxl*)
18833 # IBM XL 8.0 on PPC, with GNU ld
18834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18836 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 if test "x$supports_anon_versioning" = xyes; then
18838 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18839 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18840 echo "local: *; };" >> $output_objdir/$libname.ver~
18841 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18845 case `$CC -V 2>&1 | sed 5q` in
18848 no_undefined_flag_CXX=' -zdefs'
18849 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18850 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'
18851 hardcode_libdir_flag_spec_CXX='-R$libdir'
18852 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'
18853 compiler_needs_object_CXX=yes
18855 # Not sure whether something based on
18856 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18858 output_verbose_link_cmd='func_echo_all'
18860 # Archives containing C++ object files must be created using
18861 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18862 # necessary to make sure instantiated templates are included
18864 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18872 # FIXME: insert proper C++ library support
18877 # FIXME: insert proper C++ library support
18882 case $cc_basename in
18884 # FIXME: insert proper C++ library support
18888 # FIXME: insert proper C++ library support
18895 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18896 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18898 hardcode_libdir_flag_spec_CXX='-R$libdir'
18899 hardcode_direct_CXX=yes
18900 hardcode_shlibpath_var_CXX=no
18902 # Workaround some broken pre-1.5 toolchains
18903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18911 # C++ shared libraries are fairly broken
18916 if test -f /usr/libexec/ld.so; then
18917 hardcode_direct_CXX=yes
18918 hardcode_shlibpath_var_CXX=no
18919 hardcode_direct_absolute_CXX=yes
18920 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18923 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18924 export_dynamic_flag_spec_CXX='${wl}-E'
18925 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18927 output_verbose_link_cmd=func_echo_all
18933 osf3* | osf4* | osf5*)
18934 case $cc_basename in
18936 # Kuck and Associates, Inc. (KAI) C++ Compiler
18938 # KCC will only create a shared library if the output file
18939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18940 # to its proper name (with version) after linking.
18941 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'
18943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18944 hardcode_libdir_separator_CXX=:
18946 # Archives containing C++ object files must be created using
18947 # the KAI C++ compiler.
18949 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18950 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18954 # Rational C++ 2.4.1
18955 # FIXME: insert proper C++ library support
18961 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18962 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'
18963 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18966 allow_undefined_flag_CXX=' -expect_unresolved \*'
18967 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'
18968 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18969 echo "-hidden">> $lib.exp~
18970 $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~
18972 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18976 hardcode_libdir_separator_CXX=:
18978 # Commands to make compiler produce verbose output that lists
18979 # what "hidden" libraries, object files and flags are used when
18980 # linking a shared library.
18982 # There doesn't appear to be a way to prevent this compiler from
18983 # explicitly linking system object files so we need to strip them
18984 # from the output so that they don't get included in the library
18986 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"'
18989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18993 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'
18996 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'
19000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19001 hardcode_libdir_separator_CXX=:
19003 # Commands to make compiler produce verbose output that lists
19004 # what "hidden" libraries, object files and flags are used when
19005 # linking a shared library.
19006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19009 # FIXME: insert proper C++ library support
19017 # FIXME: insert proper C++ library support
19022 case $cc_basename in
19025 # FIXME: insert proper C++ library support
19030 # FIXME: insert proper C++ library support
19034 # FIXME: insert proper C++ library support
19041 case $cc_basename in
19043 # Sun C++ 4.2, 5.x and Centerline C++
19044 archive_cmds_need_lc_CXX=yes
19045 no_undefined_flag_CXX=' -zdefs'
19046 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19047 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19048 $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'
19050 hardcode_libdir_flag_spec_CXX='-R$libdir'
19051 hardcode_shlibpath_var_CXX=no
19053 solaris2.[0-5] | solaris2.[0-5].*) ;;
19055 # The compiler driver will combine and reorder linker options,
19056 # but understands `-z linker_flag'.
19057 # Supported since Solaris 2.6 (maybe 2.5.1?)
19058 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19061 link_all_deplibs_CXX=yes
19063 output_verbose_link_cmd='func_echo_all'
19065 # Archives containing C++ object files must be created using
19066 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19067 # necessary to make sure instantiated templates are included
19069 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19072 # Green Hills C++ Compiler
19073 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19075 # The C++ compiler must be used to create the archive.
19076 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19079 # GNU C++ compiler with Solaris linker
19080 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19081 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19082 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19083 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19084 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19085 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19087 # Commands to make compiler produce verbose output that lists
19088 # what "hidden" libraries, object files and flags are used when
19089 # linking a shared library.
19090 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19092 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19094 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19095 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19096 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19098 # Commands to make compiler produce verbose output that lists
19099 # what "hidden" libraries, object files and flags are used when
19100 # linking a shared library.
19101 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19104 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19106 solaris2.[0-5] | solaris2.[0-5].*) ;;
19108 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19117 no_undefined_flag_CXX='${wl}-z,text'
19118 archive_cmds_need_lc_CXX=no
19119 hardcode_shlibpath_var_CXX=no
19120 runpath_var='LD_RUN_PATH'
19122 case $cc_basename in
19124 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19125 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19128 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19129 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19134 sysv5* | sco3.2v5* | sco5v6*)
19135 # Note: We can NOT use -z defs as we might desire, because we do not
19136 # link with -lc, and that would cause any symbols used from libc to
19137 # always be unresolved, which means just about no library would
19138 # ever link correctly. If we're not using GNU ld we use -z text
19139 # though, which does catch some bad symbols but isn't as heavy-handed
19141 no_undefined_flag_CXX='${wl}-z,text'
19142 allow_undefined_flag_CXX='${wl}-z,nodefs'
19143 archive_cmds_need_lc_CXX=no
19144 hardcode_shlibpath_var_CXX=no
19145 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19146 hardcode_libdir_separator_CXX=':'
19147 link_all_deplibs_CXX=yes
19148 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19149 runpath_var='LD_RUN_PATH'
19151 case $cc_basename in
19153 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19154 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19155 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19156 '"$old_archive_cmds_CXX"
19157 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19158 '"$reload_cmds_CXX"
19161 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19162 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19168 case $cc_basename in
19170 # NonStop-UX NCC 3.20
19171 # FIXME: insert proper C++ library support
19175 # FIXME: insert proper C++ library support
19182 # FIXME: insert proper C++ library support
19187 # FIXME: insert proper C++ library support
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19193 $as_echo "$ld_shlibs_CXX" >&6; }
19194 test "$ld_shlibs_CXX" = no && can_build_shared=no
19200 ## There is no encapsulation within the following macros, do not change
19201 ## the running order or otherwise move them around unless you know exactly
19202 ## what you are doing...
19203 # Dependencies to place before and after the object being linked:
19204 predep_objects_CXX=
19205 postdep_objects_CXX=
19208 compiler_lib_search_path_CXX=
19210 cat > conftest.$ac_ext <<_LT_EOF
19214 Foo (void) { a = 0; }
19220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19221 (eval $ac_compile) 2>&5
19223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19224 test $ac_status = 0; }; then
19225 # Parse the compiler output and extract the necessary
19226 # objects, libraries and library flags.
19228 # Sentinel used to keep track of whether or not we are before
19229 # the conftest object file.
19230 pre_test_object_deps_done=no
19232 for p in `eval "$output_verbose_link_cmd"`; do
19236 # Some compilers place space between "-{L,R}" and the path.
19237 # Remove the space.
19238 if test $p = "-L" ||
19239 test $p = "-R"; then
19246 if test "$pre_test_object_deps_done" = no; then
19249 # Internal compiler library paths should come after those
19250 # provided the user. The postdeps already come after the
19251 # user supplied libs so there is no need to process them.
19252 if test -z "$compiler_lib_search_path_CXX"; then
19253 compiler_lib_search_path_CXX="${prev}${p}"
19255 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19258 # The "-l" case would never come before the object being
19259 # linked, so don't bother handling this case.
19262 if test -z "$postdeps_CXX"; then
19263 postdeps_CXX="${prev}${p}"
19265 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19271 # This assumes that the test object file only shows up
19272 # once in the compiler output.
19273 if test "$p" = "conftest.$objext"; then
19274 pre_test_object_deps_done=yes
19278 if test "$pre_test_object_deps_done" = no; then
19279 if test -z "$predep_objects_CXX"; then
19280 predep_objects_CXX="$p"
19282 predep_objects_CXX="$predep_objects_CXX $p"
19285 if test -z "$postdep_objects_CXX"; then
19286 postdep_objects_CXX="$p"
19288 postdep_objects_CXX="$postdep_objects_CXX $p"
19293 *) ;; # Ignore the rest.
19301 echo "libtool.m4: error: problem compiling CXX test program"
19304 $RM -f confest.$objext
19306 # PORTME: override above test on systems where it is broken
19309 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19310 # hack all around it, let's just trust "g++" to DTRT.
19311 predep_objects_CXX=
19312 postdep_objects_CXX=
19317 case `$CC -V 2>&1 | sed 5q` in
19321 # The more standards-conforming stlport4 library is
19322 # incompatible with the Cstd library. Avoid specifying
19323 # it if it's in CXXFLAGS. Ignore libCrun as
19324 # -library=stlport4 depends on it.
19325 case " $CXX $CXXFLAGS " in
19326 *" -library=stlport4 "*)
19327 solaris_use_stlport4=yes
19331 if test "$solaris_use_stlport4" != yes; then
19332 postdeps_CXX='-library=Cstd -library=Crun'
19339 case $cc_basename in
19341 # The more standards-conforming stlport4 library is
19342 # incompatible with the Cstd library. Avoid specifying
19343 # it if it's in CXXFLAGS. Ignore libCrun as
19344 # -library=stlport4 depends on it.
19345 case " $CXX $CXXFLAGS " in
19346 *" -library=stlport4 "*)
19347 solaris_use_stlport4=yes
19351 # Adding this requires a known-good setup of shared libraries for
19352 # Sun compiler versions before 5.6, else PIC objects from an old
19353 # archive will be linked into the output, leading to subtle bugs.
19354 if test "$solaris_use_stlport4" != yes; then
19355 postdeps_CXX='-library=Cstd -library=Crun'
19363 case " $postdeps_CXX " in
19364 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19366 compiler_lib_search_dirs_CXX=
19367 if test -n "${compiler_lib_search_path_CXX}"; then
19368 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19401 lt_prog_compiler_wl_CXX=
19402 lt_prog_compiler_pic_CXX=
19403 lt_prog_compiler_static_CXX=
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19406 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19408 # C++ specific cases for pic, static, wl, etc.
19409 if test "$GXX" = yes; then
19410 lt_prog_compiler_wl_CXX='-Wl,'
19411 lt_prog_compiler_static_CXX='-static'
19415 # All AIX code is PIC.
19416 if test "$host_cpu" = ia64; then
19417 # AIX 5 now supports IA64 processor
19418 lt_prog_compiler_static_CXX='-Bstatic'
19425 # see comment about AmigaOS4 .so support
19426 lt_prog_compiler_pic_CXX='-fPIC'
19429 # FIXME: we need at least 68020 code to build shared libraries, but
19430 # adding the `-m68020' flag to GCC prevents building anything better,
19432 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19437 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19438 # PIC is the default for these OSes.
19440 mingw* | cygwin* | os2* | pw32* | cegcc*)
19441 # This hack is so that the source file can tell whether it is being
19442 # built for inclusion in a dll (and should export symbols for example).
19443 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19444 # (--disable-auto-import) libraries
19445 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19447 darwin* | rhapsody*)
19448 # PIC is the default on this platform
19449 # Common symbols not allowed in MH_DYLIB files
19450 lt_prog_compiler_pic_CXX='-fno-common'
19453 # DJGPP does not support shared libraries at all
19454 lt_prog_compiler_pic_CXX=
19457 # PIC is the default for Haiku.
19458 # The "-static" flag exists, but is broken.
19459 lt_prog_compiler_static_CXX=
19462 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19463 # Instead, we relocate shared libraries at runtime.
19466 if test -d /usr/nec; then
19467 lt_prog_compiler_pic_CXX=-Kconform_pic
19471 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19472 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19473 # sets the default TLS model and affects inlining.
19478 lt_prog_compiler_pic_CXX='-fPIC'
19483 # QNX uses GNU C++, but need to define -shared option too, otherwise
19484 # it will coredump.
19485 lt_prog_compiler_pic_CXX='-fPIC -shared'
19488 lt_prog_compiler_pic_CXX='-fPIC'
19494 # All AIX code is PIC.
19495 if test "$host_cpu" = ia64; then
19496 # AIX 5 now supports IA64 processor
19497 lt_prog_compiler_static_CXX='-Bstatic'
19499 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19503 case $cc_basename in
19505 # Green Hills C++ Compiler
19506 # _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"
19511 case $cc_basename in
19513 lt_prog_compiler_pic_CXX='-KPIC'
19516 # Green Hills C++ Compiler
19517 lt_prog_compiler_pic_CXX='-pic'
19523 freebsd* | dragonfly*)
19524 # FreeBSD uses GNU C++
19526 hpux9* | hpux10* | hpux11*)
19527 case $cc_basename in
19529 lt_prog_compiler_wl_CXX='-Wl,'
19530 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19531 if test "$host_cpu" != ia64; then
19532 lt_prog_compiler_pic_CXX='+Z'
19536 lt_prog_compiler_wl_CXX='-Wl,'
19537 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19543 lt_prog_compiler_pic_CXX='+Z'
19552 # This is c89, which is MS Visual C++ (no shared libs)
19553 # Anyone wants to do a port?
19555 irix5* | irix6* | nonstopux*)
19556 case $cc_basename in
19558 lt_prog_compiler_wl_CXX='-Wl,'
19559 lt_prog_compiler_static_CXX='-non_shared'
19560 # CC pic flag -KPIC is the default.
19566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19567 case $cc_basename in
19570 lt_prog_compiler_wl_CXX='--backend -Wl,'
19571 lt_prog_compiler_pic_CXX='-fPIC'
19574 # old Intel C++ for x86_64 which still supported -KPIC.
19575 lt_prog_compiler_wl_CXX='-Wl,'
19576 lt_prog_compiler_pic_CXX='-KPIC'
19577 lt_prog_compiler_static_CXX='-static'
19580 # Intel C++, used to be incompatible with GCC.
19581 # ICC 10 doesn't accept -KPIC any more.
19582 lt_prog_compiler_wl_CXX='-Wl,'
19583 lt_prog_compiler_pic_CXX='-fPIC'
19584 lt_prog_compiler_static_CXX='-static'
19587 # Portland Group C++ compiler
19588 lt_prog_compiler_wl_CXX='-Wl,'
19589 lt_prog_compiler_pic_CXX='-fpic'
19590 lt_prog_compiler_static_CXX='-Bstatic'
19594 # Make sure the PIC flag is empty. It appears that all Alpha
19595 # Linux and Compaq Tru64 Unix objects are PIC.
19596 lt_prog_compiler_pic_CXX=
19597 lt_prog_compiler_static_CXX='-non_shared'
19599 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19600 # IBM XL 8.0, 9.0 on PPC and BlueGene
19601 lt_prog_compiler_wl_CXX='-Wl,'
19602 lt_prog_compiler_pic_CXX='-qpic'
19603 lt_prog_compiler_static_CXX='-qstaticlink'
19606 case `$CC -V 2>&1 | sed 5q` in
19609 lt_prog_compiler_pic_CXX='-KPIC'
19610 lt_prog_compiler_static_CXX='-Bstatic'
19611 lt_prog_compiler_wl_CXX='-Qoption ld '
19622 case $cc_basename in
19624 lt_prog_compiler_pic_CXX='-W c,exportall'
19633 # QNX uses GNU C++, but need to define -shared option too, otherwise
19634 # it will coredump.
19635 lt_prog_compiler_pic_CXX='-fPIC -shared'
19637 osf3* | osf4* | osf5*)
19638 case $cc_basename in
19640 lt_prog_compiler_wl_CXX='--backend -Wl,'
19643 # Rational C++ 2.4.1
19644 lt_prog_compiler_pic_CXX='-pic'
19647 # Digital/Compaq C++
19648 lt_prog_compiler_wl_CXX='-Wl,'
19649 # Make sure the PIC flag is empty. It appears that all Alpha
19650 # Linux and Compaq Tru64 Unix objects are PIC.
19651 lt_prog_compiler_pic_CXX=
19652 lt_prog_compiler_static_CXX='-non_shared'
19661 case $cc_basename in
19663 # Sun C++ 4.2, 5.x and Centerline C++
19664 lt_prog_compiler_pic_CXX='-KPIC'
19665 lt_prog_compiler_static_CXX='-Bstatic'
19666 lt_prog_compiler_wl_CXX='-Qoption ld '
19669 # Green Hills C++ Compiler
19670 lt_prog_compiler_pic_CXX='-PIC'
19677 case $cc_basename in
19680 lt_prog_compiler_pic_CXX='-pic'
19681 lt_prog_compiler_static_CXX='-Bstatic'
19685 lt_prog_compiler_pic_CXX='-pic'
19691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19692 case $cc_basename in
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 lt_prog_compiler_pic_CXX='-KPIC'
19696 lt_prog_compiler_static_CXX='-Bstatic'
19701 case $cc_basename in
19703 # NonStop-UX NCC 3.20
19704 lt_prog_compiler_pic_CXX='-KPIC'
19713 lt_prog_compiler_can_build_shared_CXX=no
19719 # For platforms which do not support PIC, -DPIC is meaningless:
19721 lt_prog_compiler_pic_CXX=
19724 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19728 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19733 # Check to make sure the PIC flag actually works.
19735 if test -n "$lt_prog_compiler_pic_CXX"; then
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19737 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19738 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19739 $as_echo_n "(cached) " >&6
19741 lt_cv_prog_compiler_pic_works_CXX=no
19742 ac_outfile=conftest.$ac_objext
19743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19744 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19745 # Insert the option either (1) after the last *FLAGS variable, or
19746 # (2) before a word containing "conftest.", or (3) at the end.
19747 # Note that $ac_compile itself does not contain backslashes and begins
19748 # with a dollar sign (not a hyphen), so the echo should work correctly.
19749 # The option is referenced via a variable to avoid confusing sed.
19750 lt_compile=`echo "$ac_compile" | $SED \
19751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19753 -e 's:$: $lt_compiler_flag:'`
19754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19755 (eval "$lt_compile" 2>conftest.err)
19757 cat conftest.err >&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 if (exit $ac_status) && test -s "$ac_outfile"; then
19760 # The compiler can only warn and ignore the option if not recognized
19761 # So say no if there are warnings other than the usual output.
19762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19765 lt_cv_prog_compiler_pic_works_CXX=yes
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19772 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19774 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19775 case $lt_prog_compiler_pic_CXX in
19777 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19780 lt_prog_compiler_pic_CXX=
19781 lt_prog_compiler_can_build_shared_CXX=no
19789 # Check to make sure the static flag actually works.
19791 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19793 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19794 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19795 $as_echo_n "(cached) " >&6
19797 lt_cv_prog_compiler_static_works_CXX=no
19798 save_LDFLAGS="$LDFLAGS"
19799 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19802 # The linker can only warn and ignore the option if not recognized
19803 # So say no if there are warnings
19804 if test -s conftest.err; then
19805 # Append any errors to the config.log.
19806 cat conftest.err 1>&5
19807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19809 if diff conftest.exp conftest.er2 >/dev/null; then
19810 lt_cv_prog_compiler_static_works_CXX=yes
19813 lt_cv_prog_compiler_static_works_CXX=yes
19817 LDFLAGS="$save_LDFLAGS"
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19821 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19823 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19826 lt_prog_compiler_static_CXX=
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19834 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19835 $as_echo_n "(cached) " >&6
19837 lt_cv_prog_compiler_c_o_CXX=no
19838 $RM -r conftest 2>/dev/null
19842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19844 lt_compiler_flag="-o out/conftest2.$ac_objext"
19845 # Insert the option either (1) after the last *FLAGS variable, or
19846 # (2) before a word containing "conftest.", or (3) at the end.
19847 # Note that $ac_compile itself does not contain backslashes and begins
19848 # with a dollar sign (not a hyphen), so the echo should work correctly.
19849 lt_compile=`echo "$ac_compile" | $SED \
19850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19852 -e 's:$: $lt_compiler_flag:'`
19853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19854 (eval "$lt_compile" 2>out/conftest.err)
19856 cat out/conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19860 # The compiler can only warn and ignore the option if not recognized
19861 # So say no if there are warnings
19862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19865 lt_cv_prog_compiler_c_o_CXX=yes
19870 # SGI C++ compiler will create directory out/ii_files/ for
19871 # template instantiation
19872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19873 $RM out/* && rmdir out
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19880 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19885 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19886 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19887 $as_echo_n "(cached) " >&6
19889 lt_cv_prog_compiler_c_o_CXX=no
19890 $RM -r conftest 2>/dev/null
19894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19896 lt_compiler_flag="-o out/conftest2.$ac_objext"
19897 # Insert the option either (1) after the last *FLAGS variable, or
19898 # (2) before a word containing "conftest.", or (3) at the end.
19899 # Note that $ac_compile itself does not contain backslashes and begins
19900 # with a dollar sign (not a hyphen), so the echo should work correctly.
19901 lt_compile=`echo "$ac_compile" | $SED \
19902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19904 -e 's:$: $lt_compiler_flag:'`
19905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19906 (eval "$lt_compile" 2>out/conftest.err)
19908 cat out/conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19912 # The compiler can only warn and ignore the option if not recognized
19913 # So say no if there are warnings
19914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19917 lt_cv_prog_compiler_c_o_CXX=yes
19922 # SGI C++ compiler will create directory out/ii_files/ for
19923 # template instantiation
19924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19925 $RM out/* && rmdir out
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19932 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19937 hard_links="nottested"
19938 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19939 # do not overwrite the value of need_locks provided by the user
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19941 $as_echo_n "checking if we can lock with hard links... " >&6; }
19944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19946 ln conftest.a conftest.b 2>&5 || hard_links=no
19947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19949 $as_echo "$hard_links" >&6; }
19950 if test "$hard_links" = no; then
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19952 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19962 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19967 # If we're using GNU nm, then we don't want the "-C" option.
19968 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19969 # Also, AIX nm treats weak defined symbols like other global defined
19970 # symbols, whereas GNU nm marks them as "W".
19971 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19972 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'
19974 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'
19978 export_symbols_cmds_CXX="$ltdll_cmds"
19980 cygwin* | mingw* | cegcc*)
19981 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'
19984 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19987 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19990 $as_echo "$ld_shlibs_CXX" >&6; }
19991 test "$ld_shlibs_CXX" = no && can_build_shared=no
19993 with_gnu_ld_CXX=$with_gnu_ld
20001 # Do we need to explicitly link libc?
20003 case "x$archive_cmds_need_lc_CXX" in
20005 # Assume -lc should be added
20006 archive_cmds_need_lc_CXX=yes
20008 if test "$enable_shared" = yes && test "$GCC" = yes; then
20009 case $archive_cmds_CXX in
20011 # FIXME: we may have to deal with multi-command sequences.
20014 # Test whether the compiler implicitly links with -lc since on some
20015 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20016 # to ld, don't add -lc before -lgcc.
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20018 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20019 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20020 $as_echo_n "(cached) " >&6
20023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20026 (eval $ac_compile) 2>&5
20028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20029 test $ac_status = 0; } 2>conftest.err; then
20032 libobjs=conftest.$ac_objext
20034 wl=$lt_prog_compiler_wl_CXX
20035 pic_flag=$lt_prog_compiler_pic_CXX
20041 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20042 allow_undefined_flag_CXX=
20043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20044 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20047 test $ac_status = 0; }
20049 lt_cv_archive_cmds_need_lc_CXX=no
20051 lt_cv_archive_cmds_need_lc_CXX=yes
20053 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20055 cat conftest.err 1>&5
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20061 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20062 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20133 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20135 library_names_spec=
20136 libname_spec='lib$name'
20140 postuninstall_cmds=
20144 shlibpath_overrides_runpath=unknown
20146 dynamic_linker="$host_os ld.so"
20147 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20148 need_lib_prefix=unknown
20149 hardcode_into_libs=no
20151 # when you set need_version to no, make sure it does not cause -set_version
20152 # flags to be left without arguments
20153 need_version=unknown
20158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20159 shlibpath_var=LIBPATH
20161 # AIX 3 has no versioning support, so we append a major version to the name.
20162 soname_spec='${libname}${release}${shared_ext}$major'
20169 hardcode_into_libs=yes
20170 if test "$host_cpu" = ia64; then
20171 # AIX 5 supports IA64
20172 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20173 shlibpath_var=LD_LIBRARY_PATH
20175 # With GCC up to 2.95.x, collect2 would create an import file
20176 # for dependence libraries. The import file would start with
20177 # the line `#! .'. This would cause the generated library to
20178 # depend on `.', always an invalid library. This was fixed in
20179 # development snapshots of GCC prior to 3.0.
20181 aix4 | aix4.[01] | aix4.[01].*)
20182 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20184 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20187 can_build_shared=no
20191 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20192 # soname into executable. Probably we can add versioning support to
20193 # collect2, so additional links can be useful in future.
20194 if test "$aix_use_runtimelinking" = yes; then
20195 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20196 # instead of lib<name>.a to let people know that these are not
20197 # typical AIX shared libraries.
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200 # We preserve .a as extension for shared libraries through AIX4.2
20201 # and later when we are not doing run time linking.
20202 library_names_spec='${libname}${release}.a $libname.a'
20203 soname_spec='${libname}${release}${shared_ext}$major'
20205 shlibpath_var=LIBPATH
20212 # Since July 2007 AmigaOS4 officially supports .so libraries.
20213 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20217 library_names_spec='$libname.ixlibrary $libname.a'
20218 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20219 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'
20225 library_names_spec='${libname}${shared_ext}'
20226 dynamic_linker="$host_os ld.so"
20227 shlibpath_var=LIBRARY_PATH
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20238 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20239 # the default ld.so.conf also contains /usr/contrib/lib and
20240 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20241 # libtool to hard-code these into programs
20244 cygwin* | mingw* | pw32* | cegcc*)
20245 version_type=windows
20250 case $GCC,$host_os in
20251 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20252 library_names_spec='$libname.dll.a'
20253 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20254 postinstall_cmds='base_file=`basename \${file}`~
20255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20256 dldir=$destdir/`dirname \$dlpath`~
20257 test -d \$dldir || mkdir -p \$dldir~
20258 $install_prog $dir/$dlname \$dldir/$dlname~
20259 chmod a+x \$dldir/$dlname~
20260 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20261 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20264 dlpath=$dir/\$dldll~
20266 shlibpath_overrides_runpath=yes
20270 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20271 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20275 # MinGW DLLs use traditional 'lib' prefix
20276 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20279 # pw32 DLLs use 'pw' prefix rather than 'lib'
20280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20289 dynamic_linker='Win32 ld.exe'
20290 # FIXME: first we should search . and the directory the executable is in
20294 darwin* | rhapsody*)
20295 dynamic_linker="$host_os dyld"
20296 version_type=darwin
20299 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20300 soname_spec='${libname}${release}${major}$shared_ext'
20301 shlibpath_overrides_runpath=yes
20302 shlibpath_var=DYLD_LIBRARY_PATH
20303 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20305 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20313 soname_spec='${libname}${release}${shared_ext}$major'
20314 shlibpath_var=LD_LIBRARY_PATH
20317 freebsd* | dragonfly*)
20318 # DragonFly does not have aout. When/if they implement a new
20319 # versioning mechanism, adjust this.
20320 if test -x /usr/bin/objformat; then
20321 objformat=`/usr/bin/objformat`
20324 freebsd[123]*) objformat=aout ;;
20325 *) objformat=elf ;;
20328 version_type=freebsd-$objformat
20329 case $version_type in
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20340 shlibpath_var=LD_LIBRARY_PATH
20343 shlibpath_overrides_runpath=yes
20345 freebsd3.[01]* | freebsdelf3.[01]*)
20346 shlibpath_overrides_runpath=yes
20347 hardcode_into_libs=yes
20349 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20350 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20351 shlibpath_overrides_runpath=no
20352 hardcode_into_libs=yes
20354 *) # from 4.6 on, and DragonFly
20355 shlibpath_overrides_runpath=yes
20356 hardcode_into_libs=yes
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20366 soname_spec='${libname}${release}${shared_ext}$major'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 hardcode_into_libs=yes
20375 dynamic_linker="$host_os runtime_loader"
20376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20377 soname_spec='${libname}${release}${shared_ext}$major'
20378 shlibpath_var=LIBRARY_PATH
20379 shlibpath_overrides_runpath=yes
20380 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20381 hardcode_into_libs=yes
20384 hpux9* | hpux10* | hpux11*)
20385 # Give a soname corresponding to the major version so that dld.sl refuses to
20386 # link against other versions.
20393 hardcode_into_libs=yes
20394 dynamic_linker="$host_os dld.so"
20395 shlibpath_var=LD_LIBRARY_PATH
20396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20398 soname_spec='${libname}${release}${shared_ext}$major'
20399 if test "X$HPUX_IA64_MODE" = X32; then
20400 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20402 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20408 hardcode_into_libs=yes
20409 dynamic_linker="$host_os dld.sl"
20410 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20411 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 soname_spec='${libname}${release}${shared_ext}$major'
20414 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20415 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20419 dynamic_linker="$host_os dld.sl"
20420 shlibpath_var=SHLIB_PATH
20421 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423 soname_spec='${libname}${release}${shared_ext}$major'
20426 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20427 postinstall_cmds='chmod 555 $lib'
20428 # or fails outright, so override atomically:
20429 install_override_mode=555
20436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20437 soname_spec='${libname}${release}${shared_ext}$major'
20438 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 shlibpath_overrides_runpath=no
20441 hardcode_into_libs=yes
20444 irix5* | irix6* | nonstopux*)
20446 nonstopux*) version_type=nonstopux ;;
20448 if test "$lt_cv_prog_gnu_ld" = yes; then
20456 soname_spec='${libname}${release}${shared_ext}$major'
20457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20459 irix5* | nonstopux*)
20460 libsuff= shlibsuff=
20463 case $LD in # libtool.m4 will add one of these switches to LD
20464 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20465 libsuff= shlibsuff= libmagic=32-bit;;
20466 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20467 libsuff=32 shlibsuff=N32 libmagic=N32;;
20468 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20469 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20470 *) libsuff= shlibsuff= libmagic=never-match;;
20474 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20475 shlibpath_overrides_runpath=no
20476 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20477 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20478 hardcode_into_libs=yes
20481 # No shared lib support for Linux oldld, aout, or coff.
20482 linux*oldld* | linux*aout* | linux*coff*)
20486 # This must be Linux ELF.
20487 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20492 soname_spec='${libname}${release}${shared_ext}$major'
20493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20494 shlibpath_var=LD_LIBRARY_PATH
20495 shlibpath_overrides_runpath=no
20497 # Some binutils ld are patched to set DT_RUNPATH
20498 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20499 $as_echo_n "(cached) " >&6
20501 lt_cv_shlibpath_overrides_runpath=no
20502 save_LDFLAGS=$LDFLAGS
20503 save_libdir=$libdir
20504 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20505 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h. */
20517 if ac_fn_cxx_try_link "$LINENO"; then :
20518 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20519 lt_cv_shlibpath_overrides_runpath=yes
20522 rm -f core conftest.err conftest.$ac_objext \
20523 conftest$ac_exeext conftest.$ac_ext
20524 LDFLAGS=$save_LDFLAGS
20525 libdir=$save_libdir
20529 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20531 # This implies no fast_install, which is unacceptable.
20532 # Some rework will be needed to allow for fast_install
20533 # before this can be enabled.
20534 hardcode_into_libs=yes
20536 # Append ld.so.conf contents to the search path
20537 if test -f /etc/ld.so.conf; then
20538 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' ' '`
20539 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20542 # We used to test for /lib/ld.so.1 and disable shared libraries on
20543 # powerpc, because MkLinux only supported shared libraries with the
20544 # GNU dynamic linker. Since this was broken with cross compilers,
20545 # most powerpc-linux boxes support dynamic linking these days and
20546 # people can always --disable-shared, the test was removed, and we
20547 # assume the GNU/Linux dynamic linker is in use.
20548 dynamic_linker='GNU/Linux ld.so'
20555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20558 dynamic_linker='NetBSD (a.out) ld.so'
20560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20561 soname_spec='${libname}${release}${shared_ext}$major'
20562 dynamic_linker='NetBSD ld.elf_so'
20564 shlibpath_var=LD_LIBRARY_PATH
20565 shlibpath_overrides_runpath=yes
20566 hardcode_into_libs=yes
20571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20572 shlibpath_var=LD_LIBRARY_PATH
20573 shlibpath_overrides_runpath=yes
20580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20581 soname_spec='${libname}${release}${shared_ext}$major'
20582 shlibpath_var=LD_LIBRARY_PATH
20583 shlibpath_overrides_runpath=no
20584 hardcode_into_libs=yes
20585 dynamic_linker='ldqnx.so'
20590 sys_lib_dlsearch_path_spec="/usr/lib"
20592 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20594 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20595 *) need_version=no ;;
20597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20599 shlibpath_var=LD_LIBRARY_PATH
20600 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20602 openbsd2.[89] | openbsd2.[89].*)
20603 shlibpath_overrides_runpath=no
20606 shlibpath_overrides_runpath=yes
20610 shlibpath_overrides_runpath=yes
20615 libname_spec='$name'
20618 library_names_spec='$libname${shared_ext} $libname.a'
20619 dynamic_linker='OS/2 ld.exe'
20620 shlibpath_var=LIBPATH
20623 osf3* | osf4* | osf5*)
20627 soname_spec='${libname}${release}${shared_ext}$major'
20628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20629 shlibpath_var=LD_LIBRARY_PATH
20630 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20631 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20643 soname_spec='${libname}${release}${shared_ext}$major'
20644 shlibpath_var=LD_LIBRARY_PATH
20645 shlibpath_overrides_runpath=yes
20646 hardcode_into_libs=yes
20647 # ldd complains unless libraries are executable
20648 postinstall_cmds='chmod +x $lib'
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20654 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20655 shlibpath_var=LD_LIBRARY_PATH
20656 shlibpath_overrides_runpath=yes
20657 if test "$with_gnu_ld" = yes; then
20665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20666 soname_spec='${libname}${release}${shared_ext}$major'
20667 shlibpath_var=LD_LIBRARY_PATH
20668 case $host_vendor in
20670 shlibpath_overrides_runpath=no
20672 runpath_var=LD_RUN_PATH
20680 shlibpath_overrides_runpath=no
20681 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20687 if test -d /usr/nec ;then
20689 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20690 soname_spec='$libname${shared_ext}.$major'
20691 shlibpath_var=LD_LIBRARY_PATH
20695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20696 version_type=freebsd-elf
20699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20700 soname_spec='${libname}${release}${shared_ext}$major'
20701 shlibpath_var=LD_LIBRARY_PATH
20702 shlibpath_overrides_runpath=yes
20703 hardcode_into_libs=yes
20704 if test "$with_gnu_ld" = yes; then
20705 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20707 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20710 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20714 sys_lib_dlsearch_path_spec='/usr/lib'
20718 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20723 shlibpath_var=LD_LIBRARY_PATH
20724 shlibpath_overrides_runpath=no
20725 hardcode_into_libs=yes
20730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20731 soname_spec='${libname}${release}${shared_ext}$major'
20732 shlibpath_var=LD_LIBRARY_PATH
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20740 $as_echo "$dynamic_linker" >&6; }
20741 test "$dynamic_linker" = no && can_build_shared=no
20743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20744 if test "$GCC" = yes; then
20745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20748 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20749 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20751 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20752 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20793 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20794 hardcode_action_CXX=
20795 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20796 test -n "$runpath_var_CXX" ||
20797 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20799 # We can hardcode non-existent directories.
20800 if test "$hardcode_direct_CXX" != no &&
20801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20802 # have to relink, otherwise we might link with an installed library
20803 # when we should be linking with a yet-to-be-installed one
20804 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20805 test "$hardcode_minus_L_CXX" != no; then
20806 # Linking always hardcodes the temporary library directory.
20807 hardcode_action_CXX=relink
20809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20810 hardcode_action_CXX=immediate
20813 # We cannot hardcode anything, or else we can only hardcode existing
20815 hardcode_action_CXX=unsupported
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20818 $as_echo "$hardcode_action_CXX" >&6; }
20820 if test "$hardcode_action_CXX" = relink ||
20821 test "$inherit_rpath_CXX" = yes; then
20822 # Fast installation is not supported
20823 enable_fast_install=no
20824 elif test "$shlibpath_overrides_runpath" = yes ||
20825 test "$enable_shared" = no; then
20826 # Fast installation is not necessary
20827 enable_fast_install=needless
20836 fi # test -n "$compiler"
20842 with_gnu_ld=$lt_save_with_gnu_ld
20843 lt_cv_path_LDCXX=$lt_cv_path_LD
20844 lt_cv_path_LD=$lt_save_path_LD
20845 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20846 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20847 fi # test "$_lt_caught_CXX_error" != yes
20850 ac_cpp='$CPP $CPPFLAGS'
20851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20870 # Only expand once:
20876 # Identify the assembler which will work hand-in-glove with the newly
20877 # built GCC, so that we can examine its features. This is the assembler
20878 # which will be driven by the driver program.
20880 # If build != host, and we aren't building gas in-tree, we identify a
20881 # build->target assembler and hope that it will have the same features
20882 # as the host->target assembler we'll be using.
20883 gcc_cv_gas_major_version=
20884 gcc_cv_gas_minor_version=
20885 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20887 if test "${gcc_cv_as+set}" = set; then :
20891 if test -x "$DEFAULT_ASSEMBLER"; then
20892 gcc_cv_as="$DEFAULT_ASSEMBLER"
20893 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20894 && test -f ../gas/Makefile \
20895 && test x$build = x$host; then
20896 gcc_cv_as=../gas/as-new$build_exeext
20897 elif test -x as$build_exeext; then
20898 # Build using assembler in the current directory.
20899 gcc_cv_as=./as$build_exeext
20900 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20901 gcc_cv_as="$AS_FOR_TARGET"
20903 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20904 set dummy $AS_FOR_TARGET; ac_word=$2
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20906 $as_echo_n "checking for $ac_word... " >&6; }
20907 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20908 $as_echo_n "(cached) " >&6
20912 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20916 for as_dir in $PATH
20919 test -z "$as_dir" && as_dir=.
20920 for ac_exec_ext in '' $ac_executable_extensions; do
20921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20922 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20933 gcc_cv_as=$ac_cv_path_gcc_cv_as
20934 if test -n "$gcc_cv_as"; then
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20936 $as_echo "$gcc_cv_as" >&6; }
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20939 $as_echo "no" >&6; }
20946 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20948 case "$ORIGINAL_AS_FOR_TARGET" in
20949 ./as | ./as$build_exeext) ;;
20950 *) ac_config_files="$ac_config_files as:exec-tool.in"
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20955 $as_echo_n "checking what assembler to use... " >&6; }
20956 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20957 # Single tree build which includes gas. We want to prefer it
20958 # over whatever linker top-level may have detected, since
20959 # we'll use what we're building after installation anyway.
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20961 $as_echo "newly built gas" >&6; }
20963 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20964 for f in $gcc_cv_as_bfd_srcdir/configure \
20965 $gcc_cv_as_gas_srcdir/configure \
20966 $gcc_cv_as_gas_srcdir/configure.in \
20967 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20968 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20969 if test x$gcc_cv_gas_version != x; then
20973 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20974 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20975 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20976 case $gcc_cv_gas_patch_version in
20977 "") gcc_cv_gas_patch_version="0" ;;
20979 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20980 + $gcc_cv_gas_minor_version \) \* 1000 \
20981 + $gcc_cv_gas_patch_version`
20983 in_tree_gas_is_elf=no
20984 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20985 || (grep 'obj_format = multi' ../gas/Makefile \
20986 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20988 in_tree_gas_is_elf=yes
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20992 $as_echo "$gcc_cv_as" >&6; }
20996 # Identify the linker which will work hand-in-glove with the newly
20997 # built GCC, so that we can examine its features. This is the linker
20998 # which will be driven by the driver program.
21000 # If build != host, and we aren't building gas in-tree, we identify a
21001 # build->target linker and hope that it will have the same features
21002 # as the host->target linker we'll be using.
21003 gcc_cv_gld_major_version=
21004 gcc_cv_gld_minor_version=
21005 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21006 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21008 if test "${gcc_cv_ld+set}" = set; then :
21012 if test -x "$DEFAULT_LINKER"; then
21013 gcc_cv_ld="$DEFAULT_LINKER"
21014 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21015 && test -f ../ld/Makefile \
21016 && test x$build = x$host; then
21017 gcc_cv_ld=../ld/ld-new$build_exeext
21018 elif test -x collect-ld$build_exeext; then
21019 # Build using linker in the current directory.
21020 gcc_cv_ld=./collect-ld$build_exeext
21021 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21022 gcc_cv_ld="$LD_FOR_TARGET"
21024 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21025 set dummy $LD_FOR_TARGET; ac_word=$2
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21027 $as_echo_n "checking for $ac_word... " >&6; }
21028 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21029 $as_echo_n "(cached) " >&6
21033 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21037 for as_dir in $PATH
21040 test -z "$as_dir" && as_dir=.
21041 for ac_exec_ext in '' $ac_executable_extensions; do
21042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21043 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21054 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21055 if test -n "$gcc_cv_ld"; then
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21057 $as_echo "$gcc_cv_ld" >&6; }
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21060 $as_echo "no" >&6; }
21067 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21068 PLUGIN_LD=`basename $gcc_cv_ld`
21070 # Check whether --with-plugin-ld was given.
21071 if test "${with_plugin_ld+set}" = set; then :
21072 withval=$with_plugin_ld; if test x"$withval" != x; then
21073 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21074 PLUGIN_LD="$withval"
21080 cat >>confdefs.h <<_ACEOF
21081 #define PLUGIN_LD "$PLUGIN_LD"
21085 # Check to see if we are using gold instead of ld
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21087 $as_echo_n "checking whether we are using gold... " >&6; }
21089 if test x$gcc_cv_ld != x; then
21090 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21091 | grep "GNU gold" > /dev/null; then
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21096 $as_echo "$ld_is_gold" >&6; }
21098 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21100 case "$ORIGINAL_LD_FOR_TARGET" in
21101 ./collect-ld | ./collect-ld$build_exeext) ;;
21102 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21107 $as_echo_n "checking what linker to use... " >&6; }
21108 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21109 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21110 # Single tree build which includes ld. We want to prefer it
21111 # over whatever linker top-level may have detected, since
21112 # we'll use what we're building after installation anyway.
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21114 $as_echo "newly built ld" >&6; }
21116 in_tree_ld_is_elf=no
21117 if (grep 'EMUL = .*elf' ../ld/Makefile \
21118 || grep 'EMUL = .*linux' ../ld/Makefile \
21119 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21120 in_tree_ld_is_elf=yes
21121 elif test "$ld_is_gold" = yes; then
21122 in_tree_ld_is_elf=yes
21124 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
21126 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21127 if test x$gcc_cv_gld_version != x; then
21131 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21132 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21135 $as_echo "$gcc_cv_ld" >&6; }
21139 # Figure out what nm we will be using.
21140 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21141 if test "${gcc_cv_nm+set}" = set; then :
21145 if test -f $gcc_cv_binutils_srcdir/configure.in \
21146 && test -f ../binutils/Makefile \
21147 && test x$build = x$host; then
21148 gcc_cv_nm=../binutils/nm-new$build_exeext
21149 elif test -x nm$build_exeext; then
21150 gcc_cv_nm=./nm$build_exeext
21151 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21152 gcc_cv_nm="$NM_FOR_TARGET"
21154 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21155 set dummy $NM_FOR_TARGET; ac_word=$2
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21157 $as_echo_n "checking for $ac_word... " >&6; }
21158 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21159 $as_echo_n "(cached) " >&6
21163 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21167 for as_dir in $PATH
21170 test -z "$as_dir" && as_dir=.
21171 for ac_exec_ext in '' $ac_executable_extensions; do
21172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21173 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21184 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21185 if test -n "$gcc_cv_nm"; then
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21187 $as_echo "$gcc_cv_nm" >&6; }
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21190 $as_echo "no" >&6; }
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21198 $as_echo_n "checking what nm to use... " >&6; }
21199 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21200 # Single tree build which includes binutils.
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21202 $as_echo "newly built nm" >&6; }
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21206 $as_echo "$gcc_cv_nm" >&6; }
21210 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21212 case "$ORIGINAL_NM_FOR_TARGET" in
21213 ./nm | ./nm$build_exeext) ;;
21214 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21219 # Figure out what objdump we will be using.
21220 if test "${gcc_cv_objdump+set}" = set; then :
21224 if test -f $gcc_cv_binutils_srcdir/configure.in \
21225 && test -f ../binutils/Makefile \
21226 && test x$build = x$host; then
21227 # Single tree build which includes binutils.
21228 gcc_cv_objdump=../binutils/objdump$build_exeext
21229 elif test -x objdump$build_exeext; then
21230 gcc_cv_objdump=./objdump$build_exeext
21231 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21232 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21234 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21235 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21237 $as_echo_n "checking for $ac_word... " >&6; }
21238 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21239 $as_echo_n "(cached) " >&6
21241 case $gcc_cv_objdump in
21243 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21247 for as_dir in $PATH
21250 test -z "$as_dir" && as_dir=.
21251 for ac_exec_ext in '' $ac_executable_extensions; do
21252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21253 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21264 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21265 if test -n "$gcc_cv_objdump"; then
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21267 $as_echo "$gcc_cv_objdump" >&6; }
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21270 $as_echo "no" >&6; }
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21278 $as_echo_n "checking what objdump to use... " >&6; }
21279 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21280 # Single tree build which includes binutils.
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21282 $as_echo "newly built objdump" >&6; }
21283 elif test x$gcc_cv_objdump = x; then
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21285 $as_echo "not found" >&6; }
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21288 $as_echo "$gcc_cv_objdump" >&6; }
21291 # Figure out what readelf we will be using.
21292 if test "${gcc_cv_readelf+set}" = set; then :
21296 if test -f $gcc_cv_binutils_srcdir/configure.in \
21297 && test -f ../binutils/Makefile \
21298 && test x$build = x$host; then
21299 # Single tree build which includes binutils.
21300 gcc_cv_readelf=../binutils/readelf$build_exeext
21301 elif test -x readelf$build_exeext; then
21302 gcc_cv_readelf=./readelf$build_exeext
21304 # Extract the first word of "readelf", so it can be a program name with args.
21305 set dummy readelf; ac_word=$2
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21307 $as_echo_n "checking for $ac_word... " >&6; }
21308 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21309 $as_echo_n "(cached) " >&6
21311 case $gcc_cv_readelf in
21313 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21317 for as_dir in $PATH
21320 test -z "$as_dir" && as_dir=.
21321 for ac_exec_ext in '' $ac_executable_extensions; do
21322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21323 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21334 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21335 if test -n "$gcc_cv_readelf"; then
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21337 $as_echo "$gcc_cv_readelf" >&6; }
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340 $as_echo "no" >&6; }
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21348 $as_echo_n "checking what readelf to use... " >&6; }
21349 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21350 # Single tree build which includes binutils.
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21352 $as_echo "newly built readelf" >&6; }
21353 elif test x$gcc_cv_readelf = x; then
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21355 $as_echo "not found" >&6; }
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21358 $as_echo "$gcc_cv_readelf" >&6; }
21361 # Figure out what assembler alignment features are present.
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21363 $as_echo_n "checking assembler flags... " >&6; }
21364 if test "${gcc_cv_as_flags+set}" = set; then :
21365 $as_echo_n "(cached) " >&6
21368 i[34567]86-*-linux*)
21369 gcc_cv_as_flags="--32"
21371 powerpc*-*-darwin*)
21372 gcc_cv_as_flags="-arch ppc"
21375 gcc_cv_as_flags=" "
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21380 $as_echo "$gcc_cv_as_flags" >&6; }
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21383 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21384 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21385 $as_echo_n "(cached) " >&6
21387 gcc_cv_as_balign_and_p2align=no
21388 if test $in_tree_gas = yes; then
21389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21390 then gcc_cv_as_balign_and_p2align=yes
21392 elif test x$gcc_cv_as != x; then
21394 .p2align 2' > conftest.s
21395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21397 (eval $ac_try) 2>&5
21399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21400 test $ac_status = 0; }; }
21402 gcc_cv_as_balign_and_p2align=yes
21404 echo "configure: failed program was" >&5
21407 rm -f conftest.o conftest.s
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21411 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21412 if test $gcc_cv_as_balign_and_p2align = yes; then
21414 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21419 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21420 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21421 $as_echo_n "(cached) " >&6
21423 gcc_cv_as_max_skip_p2align=no
21424 if test $in_tree_gas = yes; then
21425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21426 then gcc_cv_as_max_skip_p2align=yes
21428 elif test x$gcc_cv_as != x; then
21429 echo '.p2align 4,,7' > conftest.s
21430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21432 (eval $ac_try) 2>&5
21434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21435 test $ac_status = 0; }; }
21437 gcc_cv_as_max_skip_p2align=yes
21439 echo "configure: failed program was" >&5
21442 rm -f conftest.o conftest.s
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21446 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21447 if test $gcc_cv_as_max_skip_p2align = yes; then
21449 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21454 $as_echo_n "checking assembler for .literal16... " >&6; }
21455 if test "${gcc_cv_as_literal16+set}" = set; then :
21456 $as_echo_n "(cached) " >&6
21458 gcc_cv_as_literal16=no
21459 if test $in_tree_gas = yes; then
21460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21461 then gcc_cv_as_literal16=yes
21463 elif test x$gcc_cv_as != x; then
21464 echo '.literal16' > conftest.s
21465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21467 (eval $ac_try) 2>&5
21469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21470 test $ac_status = 0; }; }
21472 gcc_cv_as_literal16=yes
21474 echo "configure: failed program was" >&5
21477 rm -f conftest.o conftest.s
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21481 $as_echo "$gcc_cv_as_literal16" >&6; }
21482 if test $gcc_cv_as_literal16 = yes; then
21484 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21489 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21490 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21491 $as_echo_n "(cached) " >&6
21493 gcc_cv_as_subsection_m1=no
21494 if test $in_tree_gas = yes; then
21495 if test $in_tree_gas_is_elf = yes \
21496 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21497 then gcc_cv_as_subsection_m1=yes
21499 elif test x$gcc_cv_as != x; then
21500 echo 'conftest_label1: .word 0
21502 conftest_label2: .word 0
21503 .previous' > conftest.s
21504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21506 (eval $ac_try) 2>&5
21508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21509 test $ac_status = 0; }; }
21511 if test x$gcc_cv_nm != x; then
21512 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21513 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21514 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21516 else gcc_cv_as_subsection_m1=yes
21518 rm -f conftest.nm1 conftest.nm2
21521 echo "configure: failed program was" >&5
21524 rm -f conftest.o conftest.s
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21528 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21529 if test $gcc_cv_as_subsection_m1 = yes; then
21531 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21536 $as_echo_n "checking assembler for .weak... " >&6; }
21537 if test "${gcc_cv_as_weak+set}" = set; then :
21538 $as_echo_n "(cached) " >&6
21541 if test $in_tree_gas = yes; then
21542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21543 then gcc_cv_as_weak=yes
21545 elif test x$gcc_cv_as != x; then
21546 echo ' .weak foobar' > conftest.s
21547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21549 (eval $ac_try) 2>&5
21551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21552 test $ac_status = 0; }; }
21556 echo "configure: failed program was" >&5
21559 rm -f conftest.o conftest.s
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21563 $as_echo "$gcc_cv_as_weak" >&6; }
21564 if test $gcc_cv_as_weak = yes; then
21566 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21571 $as_echo_n "checking assembler for .weakref... " >&6; }
21572 if test "${gcc_cv_as_weakref+set}" = set; then :
21573 $as_echo_n "(cached) " >&6
21575 gcc_cv_as_weakref=no
21576 if test $in_tree_gas = yes; then
21577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21578 then gcc_cv_as_weakref=yes
21580 elif test x$gcc_cv_as != x; then
21581 echo ' .weakref foobar, barfnot' > conftest.s
21582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21584 (eval $ac_try) 2>&5
21586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21587 test $ac_status = 0; }; }
21589 gcc_cv_as_weakref=yes
21591 echo "configure: failed program was" >&5
21594 rm -f conftest.o conftest.s
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21598 $as_echo "$gcc_cv_as_weakref" >&6; }
21599 if test $gcc_cv_as_weakref = yes; then
21601 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21606 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21607 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21608 $as_echo_n "(cached) " >&6
21610 gcc_cv_as_nsubspa_comdat=no
21611 if test $in_tree_gas = yes; then
21612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21613 then gcc_cv_as_nsubspa_comdat=yes
21615 elif test x$gcc_cv_as != x; then
21616 echo ' .SPACE $TEXT$
21617 .NSUBSPA $CODE$,COMDAT' > conftest.s
21618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21620 (eval $ac_try) 2>&5
21622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21623 test $ac_status = 0; }; }
21625 gcc_cv_as_nsubspa_comdat=yes
21627 echo "configure: failed program was" >&5
21630 rm -f conftest.o conftest.s
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21634 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21635 if test $gcc_cv_as_nsubspa_comdat = yes; then
21637 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21641 # .hidden needs to be supported in both the assembler and the linker,
21642 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21643 # This is irritatingly difficult to feature test for; we have to check the
21644 # date string after the version number. If we've got an in-tree
21645 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21647 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21649 $as_echo_n "checking assembler for .hidden... " >&6; }
21650 if test "${gcc_cv_as_hidden+set}" = set; then :
21651 $as_echo_n "(cached) " >&6
21653 gcc_cv_as_hidden=no
21654 if test $in_tree_gas = yes; then
21655 if test $in_tree_gas_is_elf = yes \
21656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21657 then gcc_cv_as_hidden=yes
21659 elif test x$gcc_cv_as != x; then
21660 echo ' .hidden foobar
21661 foobar:' > conftest.s
21662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21664 (eval $ac_try) 2>&5
21666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21667 test $ac_status = 0; }; }
21670 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21671 # STV_HIDDEN, so disable .hidden support if so.
21672 case "${target}" in
21674 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21675 cat > conftest.s <<EOF
21680 .set default,hidden
21682 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21683 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21684 grep '\.hidden default' > /dev/null; then
21685 gcc_cv_as_hidden=no
21687 gcc_cv_as_hidden=yes
21690 # Assume bug is present if objdump is missing.
21691 gcc_cv_as_hidden=no
21695 gcc_cv_as_hidden=yes
21699 echo "configure: failed program was" >&5
21702 rm -f conftest.o conftest.s
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21706 $as_echo "$gcc_cv_as_hidden" >&6; }
21709 # gnu_indirect_function type is an extension proposed at
21710 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21711 # selection of function implementation
21712 # Check whether --enable-gnu-indirect-function was given.
21713 if test "${enable_gnu_indirect_function+set}" = set; then :
21714 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21716 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21717 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21720 enable_gnu_indirect_function="$default_gnu_indirect_function"
21723 if test x$enable_gnu_indirect_function = xyes; then
21725 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21729 if test $in_tree_ld != yes ; then
21730 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21731 if echo "$ld_ver" | grep GNU > /dev/null; then
21732 if test x"$ld_is_gold" = xyes; then
21733 # GNU gold --version looks like this:
21735 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21737 # We extract the binutils version which is more familiar and specific
21738 # than the gold version.
21739 ld_vers=`echo $ld_ver | sed -n \
21740 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21742 # GNU ld --version looks like this:
21744 # GNU ld (GNU Binutils) 2.21.51.20110225
21745 ld_vers=`echo $ld_ver | sed -n \
21746 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21748 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'`
21749 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21750 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21751 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21753 case "${target}" in
21756 # Solaris 2 ld -V output looks like this for a regular version:
21758 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21760 # but test versions add stuff at the end:
21762 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21764 ld_ver=`$gcc_cv_ld -V 2>&1`
21765 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21766 ld_vers=`echo $ld_ver | sed -n \
21767 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21768 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21769 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21777 $as_echo_n "checking linker for .hidden support... " >&6; }
21778 if test "${gcc_cv_ld_hidden+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21781 if test $in_tree_ld = yes ; then
21782 gcc_cv_ld_hidden=no
21783 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 \
21784 && test $in_tree_ld_is_elf = yes; then
21785 gcc_cv_ld_hidden=yes
21788 gcc_cv_ld_hidden=yes
21789 if test x"$ld_is_gold" = xyes; then
21791 elif echo "$ld_ver" | grep GNU > /dev/null; then
21792 if test 0"$ld_date" -lt 20020404; then
21793 if test -n "$ld_date"; then
21794 # If there was date string, but was earlier than 2002-04-04, fail
21795 gcc_cv_ld_hidden=no
21796 elif test -z "$ld_vers"; then
21797 # If there was no date string nor ld version number, something is wrong
21798 gcc_cv_ld_hidden=no
21800 test -z "$ld_vers_patch" && ld_vers_patch=0
21801 if test "$ld_vers_major" -lt 2; then
21802 gcc_cv_ld_hidden=no
21803 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21804 gcc_cv_ld_hidden="no"
21805 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21806 gcc_cv_ld_hidden=no
21811 case "${target}" in
21812 hppa64*-*-hpux* | ia64*-*-hpux*)
21813 gcc_cv_ld_hidden=yes
21816 # .hidden support was backported to Solaris 8, starting with ld
21818 if test "$ld_vers_minor" -ge 276; then
21819 gcc_cv_ld_hidden=yes
21821 gcc_cv_ld_hidden=no
21824 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21825 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21826 # .symbolic was only added in Solaris 9 12/02.
21827 gcc_cv_ld_hidden=yes
21830 gcc_cv_ld_hidden=no
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21837 $as_echo "$gcc_cv_ld_hidden" >&6; }
21838 libgcc_visibility=no
21841 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21842 libgcc_visibility=yes
21844 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21849 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21850 gcc_cv_ld_ro_rw_mix=unknown
21851 if test $in_tree_ld = yes ; then
21852 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 \
21853 && test $in_tree_ld_is_elf = yes; then
21854 gcc_cv_ld_ro_rw_mix=read-write
21856 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21857 echo '.section myfoosect, "a"' > conftest1.s
21858 echo '.section myfoosect, "aw"' > conftest2.s
21859 echo '.byte 1' >> conftest2.s
21860 echo '.section myfoosect, "a"' > conftest3.s
21861 echo '.byte 0' >> conftest3.s
21862 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21863 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21864 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21865 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21866 conftest2.o conftest3.o > /dev/null 2>&1; then
21867 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21868 | sed -e '/myfoosect/!d' -e N`
21869 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21870 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21871 gcc_cv_ld_ro_rw_mix=read-only
21873 gcc_cv_ld_ro_rw_mix=read-write
21877 rm -f conftest.* conftest[123].*
21879 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21881 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21885 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21887 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21889 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21890 if test "${gcc_cv_as_leb128+set}" = set; then :
21891 $as_echo_n "(cached) " >&6
21893 gcc_cv_as_leb128=no
21894 if test $in_tree_gas = yes; then
21895 if test $in_tree_gas_is_elf = yes \
21896 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21897 then gcc_cv_as_leb128=yes
21899 elif test x$gcc_cv_as != x; then
21906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21908 (eval $ac_try) 2>&5
21910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21911 test $ac_status = 0; }; }
21913 # GAS versions before 2.11 do not support uleb128,
21914 # despite appearing to.
21915 # ??? There exists an elf-specific test that will crash
21916 # the assembler. Perhaps it's better to figure out whether
21917 # arbitrary sections are supported and try the test.
21918 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21919 if echo "$as_ver" | grep GNU > /dev/null; then
21920 as_vers=`echo $as_ver | sed -n \
21921 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21922 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21923 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21924 if test $as_major -eq 2 && test $as_minor -lt 11
21926 else gcc_cv_as_leb128=yes
21930 echo "configure: failed program was" >&5
21933 rm -f conftest.o conftest.s
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21937 $as_echo "$gcc_cv_as_leb128" >&6; }
21938 if test $gcc_cv_as_leb128 = yes; then
21940 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21944 # Check if we have assembler support for unwind directives.
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21946 $as_echo_n "checking assembler for cfi directives... " >&6; }
21947 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21948 $as_echo_n "(cached) " >&6
21950 gcc_cv_as_cfi_directive=no
21951 if test x$gcc_cv_as != x; then
21957 .cfi_escape 1, 2, 3, 4, 5
21958 .cfi_endproc' > conftest.s
21959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21961 (eval $ac_try) 2>&5
21963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21964 test $ac_status = 0; }; }
21968 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21969 # read-only and read-write sections, we need to make sure that the
21970 # assembler used emits read-write .eh_frame sections.
21971 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21972 if test "x$gcc_cv_objdump" != x; then
21973 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21974 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21975 gcc_cv_as_cfi_directive=no
21978 i?86-*-solaris2.1[0-9]*)
21979 # On Solaris/x86, make sure that GCC and gas agree on using
21980 # read-only .eh_frame sections for 64-bit.
21981 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21982 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21983 sed -e /.eh_frame/!d -e N | \
21984 grep READONLY > /dev/null; then
21985 gcc_cv_as_cfi_directive=yes
21987 gcc_cv_as_cfi_directive=no
21991 gcc_cv_as_cfi_directive=yes
21996 # no objdump, err on the side of caution
21997 gcc_cv_as_cfi_directive=no
22000 gcc_cv_as_cfi_directive=yes
22004 gcc_cv_as_cfi_directive=yes
22008 echo "configure: failed program was" >&5
22011 rm -f conftest.o conftest.s
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22015 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22017 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22019 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22020 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22021 $as_echo_n "(cached) " >&6
22023 gcc_cv_as_cfi_advance_working=no
22024 if test x$gcc_cv_as != x; then
22027 .cfi_adjust_cfa_offset 64
22029 .cfi_adjust_cfa_offset 128
22030 .cfi_endproc' > conftest.s
22031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22033 (eval $ac_try) 2>&5
22035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22036 test $ac_status = 0; }; }
22039 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22040 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22041 gcc_cv_as_cfi_advance_working=yes
22045 echo "configure: failed program was" >&5
22048 rm -f conftest.o conftest.s
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22052 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22055 # no objdump, err on the side of caution
22056 gcc_cv_as_cfi_advance_working=no
22060 cat >>confdefs.h <<_ACEOF
22061 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22062 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22068 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22069 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22070 $as_echo_n "(cached) " >&6
22072 gcc_cv_as_cfi_personality_directive=no
22073 if test x$gcc_cv_as != x; then
22076 .cfi_personality 0, symbol
22077 .cfi_endproc' > conftest.s
22078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22080 (eval $ac_try) 2>&5
22082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083 test $ac_status = 0; }; }
22085 gcc_cv_as_cfi_personality_directive=yes
22087 echo "configure: failed program was" >&5
22090 rm -f conftest.o conftest.s
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22094 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22097 cat >>confdefs.h <<_ACEOF
22098 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22099 then echo 1; else echo 0; fi`
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22104 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22105 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22106 $as_echo_n "(cached) " >&6
22108 gcc_cv_as_cfi_sections_directive=no
22109 if test x$gcc_cv_as != x; then
22111 .cfi_sections .debug_frame, .eh_frame
22113 .cfi_endproc' > conftest.s
22114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22116 (eval $ac_try) 2>&5
22118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22119 test $ac_status = 0; }; }
22122 win32 | pe | cygwin* | mingw32* | uwin*)
22123 # Need to check that we generated the correct relocation for the
22124 # .debug_frame section. This was fixed for binutils 2.21.
22125 gcc_cv_as_cfi_sections_directive=no
22126 if test "x$gcc_cv_objdump" != x; then
22127 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22128 grep secrel > /dev/null; then
22129 gcc_cv_as_cfi_sections_directive=yes
22134 gcc_cv_as_cfi_sections_directive=yes
22138 echo "configure: failed program was" >&5
22141 rm -f conftest.o conftest.s
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22145 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22149 cat >>confdefs.h <<_ACEOF
22150 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22151 then echo 1; else echo 0; fi`
22155 # GAS versions up to and including 2.11.0 may mis-optimize
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22158 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22159 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22160 $as_echo_n "(cached) " >&6
22162 gcc_cv_as_eh_frame=no
22163 if test $in_tree_gas = yes; then
22164 if test $in_tree_gas_is_elf = yes \
22165 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22166 then gcc_cv_as_eh_frame=yes
22168 elif test x$gcc_cv_as != x; then
22175 .section .eh_frame,"aw",@progbits
22177 .4byte .LECIE1-.LSCIE1
22191 .4byte .LEFDE1-.LASFDE1
22193 .4byte .LASFDE1-__FRAME_BEGIN__
22200 .LEFDE1:' > conftest.s
22201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22203 (eval $ac_try) 2>&5
22205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22206 test $ac_status = 0; }; }
22208 cat > conftest.lit <<EOF
22209 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22210 0010 01000000 12000000 18000000 00000000 ................
22211 0020 08000000 04080000 0044 .........D
22213 cat > conftest.big <<EOF
22214 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22215 0010 00000001 00000012 00000018 00000000 ................
22216 0020 00000008 04000000 0844 .........D
22218 # If the assembler didn't choke, and we can objdump,
22219 # and we got the correct data, then succeed.
22220 # The text in the here-document typically retains its unix-style line
22221 # endings, while the output of objdump will use host line endings.
22222 # Therefore, use diff -b for the comparisons.
22223 if test x$gcc_cv_objdump != x \
22224 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22225 | tail -3 > conftest.got \
22226 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22227 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22229 gcc_cv_as_eh_frame=yes
22230 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22232 (eval $ac_try) 2>&5
22234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22235 test $ac_status = 0; }; }; then
22236 gcc_cv_as_eh_frame=buggy
22238 # Uh oh, what do we do now?
22239 gcc_cv_as_eh_frame=no
22242 echo "configure: failed program was" >&5
22245 rm -f conftest.o conftest.s
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22249 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22252 if test $gcc_cv_as_eh_frame = buggy; then
22254 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22259 $as_echo_n "checking assembler for section merging support... " >&6; }
22260 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22261 $as_echo_n "(cached) " >&6
22263 gcc_cv_as_shf_merge=no
22264 if test $in_tree_gas = yes; then
22265 if test $in_tree_gas_is_elf = yes \
22266 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22267 then gcc_cv_as_shf_merge=yes
22269 elif test x$gcc_cv_as != x; then
22270 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22273 (eval $ac_try) 2>&5
22275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22276 test $ac_status = 0; }; }
22278 gcc_cv_as_shf_merge=yes
22280 echo "configure: failed program was" >&5
22283 rm -f conftest.o conftest.s
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22287 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22289 if test $gcc_cv_as_shf_merge = no; then
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22291 $as_echo_n "checking assembler for section merging support... " >&6; }
22292 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22293 $as_echo_n "(cached) " >&6
22295 gcc_cv_as_shf_merge=no
22296 if test $in_tree_gas = yes; then
22297 if test $in_tree_gas_is_elf = yes \
22298 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22299 then gcc_cv_as_shf_merge=yes
22301 elif test x$gcc_cv_as != x; then
22302 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22303 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22305 (eval $ac_try) 2>&5
22307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22308 test $ac_status = 0; }; }
22310 gcc_cv_as_shf_merge=yes
22312 echo "configure: failed program was" >&5
22315 rm -f conftest.o conftest.s
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22319 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22323 cat >>confdefs.h <<_ACEOF
22324 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22329 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22330 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22331 $as_echo_n "(cached) " >&6
22333 gcc_cv_as_comdat_group=no
22334 if test $in_tree_gas = yes; then
22335 if test $in_tree_gas_is_elf = yes \
22336 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22337 then gcc_cv_as_comdat_group=yes
22339 elif test x$gcc_cv_as != x; then
22340 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22343 (eval $ac_try) 2>&5
22345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22346 test $ac_status = 0; }; }
22348 gcc_cv_as_comdat_group=yes
22350 echo "configure: failed program was" >&5
22353 rm -f conftest.o conftest.s
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22357 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22359 if test $gcc_cv_as_comdat_group = yes; then
22360 gcc_cv_as_comdat_group_percent=no
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22363 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22364 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22365 $as_echo_n "(cached) " >&6
22367 gcc_cv_as_comdat_group_percent=no
22368 if test $in_tree_gas = yes; then
22369 if test $in_tree_gas_is_elf = yes \
22370 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22371 then gcc_cv_as_comdat_group_percent=yes
22373 elif test x$gcc_cv_as != x; then
22374 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22377 (eval $ac_try) 2>&5
22379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22380 test $ac_status = 0; }; }
22382 gcc_cv_as_comdat_group_percent=yes
22384 echo "configure: failed program was" >&5
22387 rm -f conftest.o conftest.s
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22391 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22394 if test x"$ld_is_gold" = xyes; then
22396 elif test $in_tree_ld = yes ; then
22398 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 \
22399 && test $in_tree_ld_is_elf = yes; then
22402 elif echo "$ld_ver" | grep GNU > /dev/null; then
22404 if test 0"$ld_date" -lt 20050308; then
22405 if test -n "$ld_date"; then
22406 # If there was date string, but was earlier than 2005-03-08, fail
22408 elif test "$ld_vers_major" -lt 2; then
22410 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22415 case "${target}" in
22416 *-*-solaris2.1[1-9]*)
22417 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22418 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22421 # FIXME: Maybe need to refine later when COMDAT group support with
22422 # Sun as is implemented.
22423 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22430 # Assume linkers other than GNU ld don't support COMDAT group.
22435 # Allow overriding the automatic COMDAT group tests above.
22436 # Check whether --enable-comdat was given.
22437 if test "${enable_comdat+set}" = set; then :
22438 enableval=$enable_comdat; comdat_group="$enable_comdat"
22441 if test $comdat_group = no; then
22442 gcc_cv_as_comdat_group=no
22443 gcc_cv_as_comdat_group_percent=no
22446 cat >>confdefs.h <<_ACEOF
22447 #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`
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22452 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22453 if test "${gcc_cv_as_discriminator+set}" = set; then :
22454 $as_echo_n "(cached) " >&6
22456 gcc_cv_as_discriminator=no
22457 if test $in_tree_gas = yes; then
22458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22459 then gcc_cv_as_discriminator=yes
22461 elif test x$gcc_cv_as != x; then
22464 .loc 1 1 0 discriminator 1' > conftest.s
22465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22467 (eval $ac_try) 2>&5
22469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22470 test $ac_status = 0; }; }
22472 gcc_cv_as_discriminator=yes
22474 echo "configure: failed program was" >&5
22477 rm -f conftest.o conftest.s
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22481 $as_echo "$gcc_cv_as_discriminator" >&6; }
22482 if test $gcc_cv_as_discriminator = yes; then
22484 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22488 # Thread-local storage - the check is heavily parameterized.
22496 .section ".tdata","awT",@progbits
22499 ldq $27,__tls_get_addr($29) !literal!1
22500 lda $16,foo($29) !tlsgd!1
22501 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22502 ldq $27,__tls_get_addr($29) !literal!2
22503 lda $16,foo($29) !tlsldm!2
22504 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22505 ldq $1,foo($29) !gotdtprel
22506 ldah $2,foo($29) !dtprelhi
22507 lda $3,foo($2) !dtprello
22508 lda $4,foo($29) !dtprel
22509 ldq $1,foo($29) !gottprel
22510 ldah $2,foo($29) !tprelhi
22511 lda $3,foo($2) !tprello
22512 lda $4,foo($29) !tprel'
22515 tls_as_opt=--fatal-warnings
22517 cris-*-*|crisv32-*-*)
22519 .section ".tdata","awT",@progbits
22526 tls_as_opt=--fatal-warnings
22530 .section ".tdata","awT",@progbits
22533 call #gettlsoff(x)'
22542 .section ".tdata","awT",@progbits
22546 addil LT%foo-$tls_gdidx$,gp
22547 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22550 addil LT%foo-$tls_ldidx$,gp
22552 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22553 addil LR%foo-$tls_dtpoff$,%ret0
22554 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22556 addil LT%foo-$tls_ieoff$,gp
22557 ldw RT%foo-$tls_ieoff$(%r1),%t2
22560 addil LR%foo-$tls_leoff$,%t1
22561 ldo RR%foo-$tls_leoff$(%r1),%t2'
22564 tls_as_opt=--fatal-warnings
22568 .section ".tdata","awT",%progbits
22571 .word foo(gottpoff)
22581 i[34567]86-*-solaris2.*)
22583 tga_func=___tls_get_addr
22589 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22591 .section .tdata,"awt",@progbits'
22595 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22599 .section ".tdata","awT",@progbits'
22602 tls_as_opt="--fatal-warnings"
22604 conftest_s="$conftest_s
22608 leal foo@tlsgd(,%ebx,1), %eax
22609 leal foo@tlsldm(%ebx), %eax
22610 leal foo@dtpoff(%eax), %edx
22611 movl foo@gottpoff(%ebx), %eax
22612 subl foo@gottpoff(%ebx), %eax
22613 addl foo@gotntpoff(%ebx), %eax
22614 movl foo@indntpoff, %eax
22615 movl \$foo@tpoff, %eax
22616 subl \$foo@tpoff, %eax
22617 leal foo@ntpoff(%ecx), %eax"
22621 .section ".tdata","awT",@progbits
22625 leaq foo@TLSGD(%rip), %rdi
22626 leaq foo@TLSLD(%rip), %rdi
22627 leaq foo@DTPOFF(%rax), %rdx
22628 movq foo@GOTTPOFF(%rip), %rax
22629 movq $foo@TPOFF, %rax'
22632 tls_as_opt=--fatal-warnings
22636 .section ".tdata","awT",@progbits
22639 addl r16 = @ltoff(@dtpmod(foo#)), gp
22640 addl r17 = @ltoff(@dtprel(foo#)), gp
22641 addl r18 = @ltoff(@tprel(foo#)), gp
22642 addl r19 = @dtprel(foo#), gp
22643 adds r21 = @dtprel(foo#), r13
22644 movl r23 = @dtprel(foo#)
22645 addl r20 = @tprel(foo#), gp
22646 adds r22 = @tprel(foo#), r13
22647 movl r24 = @tprel(foo#)'
22650 tls_as_opt=--fatal-warnings
22654 .section .tdata,"awT",@progbits
22658 addiu $4, $28, %tlsgd(x)
22659 addiu $4, $28, %tlsldm(x)
22660 lui $4, %dtprel_hi(x)
22661 addiu $4, $4, %dtprel_lo(x)
22662 lw $4, %gottprel(x)($28)
22663 lui $4, %tprel_hi(x)
22664 addiu $4, $4, %tprel_lo(x)'
22667 tls_as_opt='-32 --fatal-warnings'
22671 .section .tdata,"awT",@progbits
22676 move.l x@TLSGD(%a5),%a0
22677 move.l x@TLSLDM(%a5),%a0
22678 move.l x@TLSLDO(%a5),%a0
22679 move.l x@TLSIE(%a5),%a0
22680 move.l x@TLSLE(%a5),%a0'
22683 tls_as_opt='--fatal-warnings'
22687 .section ".tdata","awT",@progbits
22695 addi 3,31,ld0@got@tlsgd
22697 addi 3,31,x1@got@tlsld
22700 addis 9,3,x2@dtprel@ha
22701 addi 9,9,x2@dtprel@l
22702 lwz 9,x3@got@tprel(31)
22705 addis 9,2,x2@tprel@ha
22706 addi 9,9,x2@tprel@l'
22709 tls_as_opt="-a32 --fatal-warnings"
22713 .section ".tdata","awT",@progbits
22721 addi 3,2,ld0@got@tlsgd
22727 addi 3,2,x1@got@tlsld
22733 addis 9,3,x2@dtprel@ha
22734 addi 9,9,x2@dtprel@l
22737 ld 9,x3@got@dtprel(2)
22743 tls_as_opt="-a64 --fatal-warnings"
22747 .section ".tdata","awT",@progbits
22754 .long foo@GOTNTPOFF
22755 .long foo@INDNTPOFF
22756 l %r1,foo@GOTNTPOFF(%r12)
22757 l %r1,0(%r1):tls_load:foo
22758 bas %r14,0(%r1,%r13):tls_gdcall:foo
22759 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22762 tls_as_opt="-m31 --fatal-warnings"
22766 .section ".tdata","awT",@progbits
22773 .quad foo@GOTNTPOFF
22774 lg %r1,foo@GOTNTPOFF(%r12)
22775 larl %r1,foo@INDNTPOFF
22776 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22777 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22780 tls_as_opt="-m64 -Aesame --fatal-warnings"
22782 sh-*-* | sh[34]-*-*)
22784 .section ".tdata","awT",@progbits
22794 tls_as_opt=--fatal-warnings
22798 sparc*-sun-solaris2.*)
22800 tga_func=__tls_get_addr
22806 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22808 .section ".tdata",#alloc,#write,#tls'
22813 .section ".tdata","awT",@progbits'
22816 tls_as_opt="-32 --fatal-warnings"
22818 conftest_s="$conftest_s
22821 sethi %tgd_hi22(foo), %o0
22822 add %o0, %tgd_lo10(foo), %o1
22823 add %l7, %o1, %o0, %tgd_add(foo)
22824 call __tls_get_addr, %tgd_call(foo)
22825 sethi %tldm_hi22(foo), %l1
22826 add %l1, %tldm_lo10(foo), %l2
22827 add %l7, %l2, %o0, %tldm_add(foo)
22828 call __tls_get_addr, %tldm_call(foo)
22829 sethi %tldo_hix22(foo), %l3
22830 xor %l3, %tldo_lox10(foo), %l4
22831 add %o0, %l4, %l5, %tldo_add(foo)
22832 sethi %tie_hi22(foo), %o3
22833 add %o3, %tie_lo10(foo), %o3
22834 ld [%l7 + %o3], %o2, %tie_ld(foo)
22835 add %g7, %o2, %o4, %tie_add(foo)
22836 sethi %tle_hix22(foo), %l1
22837 xor %l1, %tle_lox10(foo), %o5
22838 ld [%g7 + %o5], %o1"
22842 .section ".tdata","awT",@progbits
22845 movi a8, foo@TLSFUNC
22846 movi a10, foo@TLSARG
22847 callx8.tls a8, foo@TLSCALL'
22853 if test "x$enable_tls" = xno ; then
22854 : # TLS explicitly disabled.
22855 elif test "x$enable_tls" = xyes ; then
22856 set_have_as_tls=yes # TLS explicitly enabled.
22857 elif test -z "$tls_first_major"; then
22858 : # If we don't have a check, assume no support.
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22861 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22862 if test "${gcc_cv_as_tls+set}" = set; then :
22863 $as_echo_n "(cached) " >&6
22866 if test $in_tree_gas = yes; then
22867 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22868 then gcc_cv_as_tls=yes
22870 elif test x$gcc_cv_as != x; then
22871 echo "$conftest_s" > conftest.s
22872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22874 (eval $ac_try) 2>&5
22876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22877 test $ac_status = 0; }; }
22881 echo "configure: failed program was" >&5
22884 rm -f conftest.o conftest.s
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22888 $as_echo "$gcc_cv_as_tls" >&6; }
22889 if test $gcc_cv_as_tls = yes; then
22890 set_have_as_tls=yes
22895 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22896 # with TLS support are in use, native TLS cannot work.
22900 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22901 # gld with TLS support are in use, native TLS cannot work.
22904 # TLS was introduced in the Solaris 9 FCS release and backported to
22905 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22906 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22907 # ld and GCC don't support any longer.
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22910 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22912 # Check ld and ld.so.1 TLS support.
22913 if echo "$ld_ver" | grep GNU > /dev/null; then
22914 # Assume all interesting versions of GNU ld have TLS support.
22915 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22919 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22921 min_tls_ld_vers_minor=280
22923 # Solaris 8/SPARC ld has TLS support since version 1.272.
22924 sparc*-*-solaris2.8)
22925 min_tls_ld_vers_minor=272
22927 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22929 min_tls_ld_vers_minor=374
22931 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22932 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22933 min_tls_ld_vers_minor=343
22936 if test "$ld_vers_major" -gt 1 || \
22937 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22944 $as_echo "$ld_tls_support" >&6; }
22947 save_LDFLAGS="$LDFLAGS"
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22952 $as_echo_n "checking alternate thread library... " >&6; }
22954 # TLS support was backported to Solaris 8 patches, but only lives in
22955 # the alternate thread library which became the default in Solaris 9.
22956 # We want to always use that, irrespective of TLS support.
22958 # Take multilib subdir into account. There's no spec to handle
22959 # this. The 64 symlink exists since Solaris 8.
22960 lwp_dir=/usr/lib/lwp
22961 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22962 LDFLAGS="-L$lwp_dir -R$lwp_dir"
22969 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22971 cat >>confdefs.h <<_ACEOF
22972 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22976 $as_echo "$lwp_dir" >&6; }
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22979 $as_echo_n "checking library containing $tga_func... " >&6; }
22980 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22981 # (32-bit x86) only lived in libthread, so check for that. Keep
22982 # set_have_as_tls if found, disable if not.
22983 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22985 $as_echo_n "checking for library containing $tga_func... " >&6; }
22986 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22987 $as_echo_n "(cached) " >&6
22989 ac_func_search_save_LIBS=$LIBS
22990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22991 /* end confdefs.h. */
22993 /* Override any GCC internal prototype to avoid an error.
22994 Use char because int might match the return type of a GCC
22995 builtin and then its argument prototype would still apply. */
23003 return $tga_func ();
23008 for ac_lib in '' thread; do
23009 if test -z "$ac_lib"; then
23010 ac_res="none required"
23013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23015 if ac_fn_c_try_link "$LINENO"; then :
23016 eval "$as_ac_Search=\$ac_res"
23018 rm -f core conftest.err conftest.$ac_objext \
23020 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23024 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23027 eval "$as_ac_Search=no"
23029 rm conftest.$ac_ext
23030 LIBS=$ac_func_search_save_LIBS
23032 eval ac_res=\$$as_ac_Search
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23034 $as_echo "$ac_res" >&6; }
23035 eval ac_res=\$$as_ac_Search
23036 if test "$ac_res" != no; then :
23037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23043 # Clear LIBS if we cannot support TLS.
23044 if test $set_have_as_tls = no; then
23047 # Always define LIB_TLS_SPEC, even without TLS support.
23049 cat >>confdefs.h <<_ACEOF
23050 #define LIB_TLS_SPEC "$LIBS"
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23054 $as_echo "$LIBS" >&6; }
23057 LDFLAGS="$save_LDFLAGS"
23060 if test $set_have_as_tls = yes ; then
23062 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23066 # Target-specific assembler checks.
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23069 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23070 gcc_cv_ld_static_dynamic=no
23071 gcc_cv_ld_static_option='-Bstatic'
23072 gcc_cv_ld_dynamic_option='-Bdynamic'
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 10 -o "$gcc_cv_gld_major_version" -gt 2; then
23075 gcc_cv_ld_static_dynamic=yes
23077 elif test x$gcc_cv_ld != x; then
23078 # Check if linker supports -Bstatic/-Bdynamic option
23079 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23080 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23081 gcc_cv_ld_static_dynamic=yes
23084 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23086 gcc_cv_ld_static_dynamic=yes
23087 gcc_cv_ld_static_option="-noso"
23088 gcc_cv_ld_dynamic_option="-so_archive"
23090 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23092 gcc_cv_ld_static_dynamic=yes
23094 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23096 gcc_cv_ld_static_dynamic=yes
23101 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23103 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23106 cat >>confdefs.h <<_ACEOF
23107 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23111 cat >>confdefs.h <<_ACEOF
23112 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23117 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23119 if test x"$demangler_in_ld" = xyes; then
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23121 $as_echo_n "checking linker --demangle support... " >&6; }
23122 gcc_cv_ld_demangle=no
23123 if test $in_tree_ld = yes; then
23124 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 \
23125 gcc_cv_ld_demangle=yes
23127 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23128 # Check if the GNU linker supports --demangle option
23129 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23130 gcc_cv_ld_demangle=yes
23133 if test x"$gcc_cv_ld_demangle" = xyes; then
23135 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23139 $as_echo "$gcc_cv_ld_demangle" >&6; }
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23143 $as_echo_n "checking linker plugin support... " >&6; }
23144 gcc_cv_lto_plugin=0
23145 if test -f liblto_plugin.la; then
23146 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23147 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
23148 gcc_cv_lto_plugin=2
23149 elif test "$ld_is_gold" = yes -a "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -eq 20; then
23150 gcc_cv_lto_plugin=1
23153 elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld" && echo "$ld_ver" | grep GNU > /dev/null; then
23154 # Require GNU ld or gold 2.21+ for plugin support by default.
23155 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23156 gcc_cv_lto_plugin=2
23157 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23158 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23159 gcc_cv_lto_plugin=1
23161 elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" != x"$gcc_cv_ld"; then
23162 # Allow -fuse-linker-plugin if plugin linker differs from
23163 # default/specified linker.
23164 gcc_cv_lto_plugin=1
23168 cat >>confdefs.h <<_ACEOF
23169 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23173 $as_echo "$gcc_cv_lto_plugin" >&6; }
23176 # All TARGET_ABI_OSF targets.
23177 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23179 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23180 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23181 $as_echo_n "(cached) " >&6
23183 gcc_cv_as_alpha_explicit_relocs=no
23184 if test $in_tree_gas = yes; then
23185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23186 then gcc_cv_as_alpha_explicit_relocs=yes
23188 elif test x$gcc_cv_as != x; then
23189 echo ' .set nomacro
23191 extbl $3, $2, $3 !lituse_bytoff!1
23192 ldq $2, a($29) !literal!1
23193 ldq $4, b($29) !literal!2
23194 ldq_u $3, 0($2) !lituse_base!1
23195 ldq $27, f($29) !literal!5
23196 jsr $26, ($27), f !lituse_jsr!5
23197 ldah $29, 0($26) !gpdisp!3
23198 lda $0, c($29) !gprel
23199 ldah $1, d($29) !gprelhigh
23200 lda $1, d($1) !gprellow
23201 lda $29, 0($29) !gpdisp!3' > conftest.s
23202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23204 (eval $ac_try) 2>&5
23206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23207 test $ac_status = 0; }; }
23209 gcc_cv_as_alpha_explicit_relocs=yes
23211 echo "configure: failed program was" >&5
23214 rm -f conftest.o conftest.s
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23218 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23219 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23221 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23225 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23226 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23227 $as_echo_n "(cached) " >&6
23229 gcc_cv_as_alpha_jsrdirect_relocs=no
23230 if test $in_tree_gas = yes; then
23231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23232 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23234 elif test x$gcc_cv_as != x; then
23235 echo ' .set nomacro
23237 ldq $27, a($29) !literal!1
23238 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23241 (eval $ac_try) 2>&5
23243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23244 test $ac_status = 0; }; }
23246 gcc_cv_as_alpha_jsrdirect_relocs=yes
23248 echo "configure: failed program was" >&5
23251 rm -f conftest.o conftest.s
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23255 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23256 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23258 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23265 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23266 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23267 $as_echo_n "(cached) " >&6
23269 gcc_cv_as_cris_no_mul_bug=no
23270 if test $in_tree_gas = yes; then
23271 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23272 then gcc_cv_as_cris_no_mul_bug=yes
23274 elif test x$gcc_cv_as != x; then
23275 echo '.text' > conftest.s
23276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23278 (eval $ac_try) 2>&5
23280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23281 test $ac_status = 0; }; }
23283 gcc_cv_as_cris_no_mul_bug=yes
23285 echo "configure: failed program was" >&5
23288 rm -f conftest.o conftest.s
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23292 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23293 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23295 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23302 $as_echo_n "checking assembler for .register... " >&6; }
23303 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23306 gcc_cv_as_sparc_register_op=no
23307 if test x$gcc_cv_as != x; then
23308 echo '.register %g2, #scratch' > conftest.s
23309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23311 (eval $ac_try) 2>&5
23313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23314 test $ac_status = 0; }; }
23316 gcc_cv_as_sparc_register_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_register_op" >&5
23325 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23326 if test $gcc_cv_as_sparc_register_op = yes; then
23328 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23333 $as_echo_n "checking assembler for -relax option... " >&6; }
23334 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23335 $as_echo_n "(cached) " >&6
23337 gcc_cv_as_sparc_relax=no
23338 if test x$gcc_cv_as != x; then
23339 echo '.text' > conftest.s
23340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23342 (eval $ac_try) 2>&5
23344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23345 test $ac_status = 0; }; }
23347 gcc_cv_as_sparc_relax=yes
23349 echo "configure: failed program was" >&5
23352 rm -f conftest.o conftest.s
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23356 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23357 if test $gcc_cv_as_sparc_relax = yes; then
23359 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23364 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23365 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23366 $as_echo_n "(cached) " >&6
23368 gcc_cv_as_sparc_gotdata_op=no
23369 if test x$gcc_cv_as != x; then
23375 sethi %gdop_hix22(foo), %g1
23376 xor %g1, %gdop_lox10(foo), %g1
23377 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380 (eval $ac_try) 2>&5
23382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383 test $ac_status = 0; }; }
23385 if test x$gcc_cv_ld != x \
23386 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23387 if test x$gcc_cv_objdump != x; then
23388 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23389 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23390 gcc_cv_as_sparc_gotdata_op=no
23392 gcc_cv_as_sparc_gotdata_op=yes
23398 echo "configure: failed program was" >&5
23401 rm -f conftest.o conftest.s
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23405 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23406 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23408 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23413 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23414 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23415 $as_echo_n "(cached) " >&6
23417 gcc_cv_as_sparc_ua_pcrel=no
23418 if test x$gcc_cv_as != x; then
23425 .uaword %r_disp32(foo)' > conftest.s
23426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23428 (eval $ac_try) 2>&5
23430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23431 test $ac_status = 0; }; }
23433 if test x$gcc_cv_ld != x \
23434 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23435 gcc_cv_as_sparc_ua_pcrel=yes
23439 echo "configure: failed program was" >&5
23442 rm -f conftest.o conftest.s
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23446 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23447 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23449 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23453 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23454 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23457 gcc_cv_as_sparc_ua_pcrel_hidden=no
23458 if test x$gcc_cv_as != x; then
23462 .uaword %r_disp32(foo)
23463 .byte 0x32, 0x33, 0x34
23467 .skip 4' > conftest.s
23468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23470 (eval $ac_try) 2>&5
23472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23473 test $ac_status = 0; }; }
23475 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23476 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23477 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23478 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23479 if $gcc_cv_objdump -R conftest 2> /dev/null \
23480 | grep 'DISP32' > /dev/null 2>&1; then
23483 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23488 echo "configure: failed program was" >&5
23491 rm -f conftest.o conftest.s
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23495 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23496 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23498 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23502 fi # unaligned pcrel relocs
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23505 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23506 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23507 $as_echo_n "(cached) " >&6
23509 gcc_cv_as_sparc_offsetable_lo10=no
23510 if test x$gcc_cv_as != x; then
23512 or %g1, %lo(ab) + 12, %g1
23513 or %g1, %lo(ab + 12), %g1' > conftest.s
23514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23516 (eval $ac_try) 2>&5
23518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23519 test $ac_status = 0; }; }
23521 if test x$gcc_cv_objdump != x \
23522 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23523 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23524 gcc_cv_as_sparc_offsetable_lo10=yes
23527 echo "configure: failed program was" >&5
23530 rm -f conftest.o conftest.s
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23534 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23535 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23537 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23542 i[34567]86-*-* | x86_64-*-*)
23545 # Full C++ conformance when using a shared libstdc++-v3 requires some
23546 # support from the Cygwin DLL, which in more recent versions exports
23547 # wrappers to aid in interposing and redirecting operators new, delete,
23548 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23549 # are configuring for a version of Cygwin that exports the wrappers.
23550 if test x$host = x$target; then
23551 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23552 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23553 gcc_ac_cygwin_dll_wrappers=yes
23555 gcc_ac_cygwin_dll_wrappers=no
23559 # Can't check presence of libc functions during cross-compile, so
23560 # we just have to assume we're building for an up-to-date target.
23561 gcc_ac_cygwin_dll_wrappers=yes
23564 cat >>confdefs.h <<_ACEOF
23565 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23570 cygwin* | pe | mingw32*)
23571 # Recent binutils allows the three-operand form of ".comm" on PE. This
23572 # definition is used unconditionally to initialise the default state of
23573 # the target option variable that governs usage of the feature.
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23575 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23576 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23577 $as_echo_n "(cached) " >&6
23579 gcc_cv_as_comm_has_align=no
23580 if test $in_tree_gas = yes; then
23581 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23582 then gcc_cv_as_comm_has_align=yes
23584 elif test x$gcc_cv_as != x; then
23585 echo '.comm foo,1,32' > conftest.s
23586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23588 (eval $ac_try) 2>&5
23590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23591 test $ac_status = 0; }; }
23593 gcc_cv_as_comm_has_align=yes
23595 echo "configure: failed program was" >&5
23598 rm -f conftest.o conftest.s
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23602 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23605 cat >>confdefs.h <<_ACEOF
23606 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23609 # Used for DWARF 2 in PE
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23611 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23612 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23613 $as_echo_n "(cached) " >&6
23615 gcc_cv_as_ix86_pe_secrel32=no
23616 if test $in_tree_gas = yes; then
23617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23618 then gcc_cv_as_ix86_pe_secrel32=yes
23620 elif test x$gcc_cv_as != x; then
23624 .secrel32 foo' > conftest.s
23625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23627 (eval $ac_try) 2>&5
23629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23630 test $ac_status = 0; }; }
23632 if test x$gcc_cv_ld != x \
23633 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23634 gcc_cv_as_ix86_pe_secrel32=yes
23638 echo "configure: failed program was" >&5
23641 rm -f conftest.o conftest.s
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23645 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23646 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23648 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23651 # Test if the assembler supports the extended form of the .section
23652 # directive that specifies section alignment. LTO support uses this,
23653 # but normally only after installation, so we warn but don't fail the
23654 # configure if LTO is enabled but the assembler does not support it.
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23656 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23657 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23658 $as_echo_n "(cached) " >&6
23660 gcc_cv_as_section_has_align=no
23661 if test $in_tree_gas = yes; then
23662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23663 then gcc_cv_as_section_has_align=yes
23665 elif test x$gcc_cv_as != x; then
23666 echo '.section lto_test,"dr0"' > conftest.s
23667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23669 (eval $ac_try) 2>&5
23671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23672 test $ac_status = 0; }; }
23674 gcc_cv_as_section_has_align=yes
23676 echo "configure: failed program was" >&5
23679 rm -f conftest.o conftest.s
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23683 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23685 if test x$gcc_cv_as_section_has_align != xyes; then
23686 case ",$enable_languages," in
23688 { $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
23689 $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;}
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23697 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23698 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23699 $as_echo_n "(cached) " >&6
23701 gcc_cv_as_ix86_filds=no
23702 if test x$gcc_cv_as != x; then
23703 echo 'filds mem; fists mem' > conftest.s
23704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23706 (eval $ac_try) 2>&5
23708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23709 test $ac_status = 0; }; }
23711 gcc_cv_as_ix86_filds=yes
23713 echo "configure: failed program was" >&5
23716 rm -f conftest.o conftest.s
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23720 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23721 if test $gcc_cv_as_ix86_filds = yes; then
23723 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23728 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23729 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23730 $as_echo_n "(cached) " >&6
23732 gcc_cv_as_ix86_fildq=no
23733 if test x$gcc_cv_as != x; then
23734 echo 'fildq mem; fistpq mem' > conftest.s
23735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23737 (eval $ac_try) 2>&5
23739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23740 test $ac_status = 0; }; }
23742 gcc_cv_as_ix86_fildq=yes
23744 echo "configure: failed program was" >&5
23747 rm -f conftest.o conftest.s
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23751 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23752 if test $gcc_cv_as_ix86_fildq = yes; then
23754 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23759 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23760 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23761 $as_echo_n "(cached) " >&6
23763 gcc_cv_as_ix86_cmov_sun_syntax=no
23764 if test x$gcc_cv_as != x; then
23765 echo 'cmovl.l %edx, %eax' > conftest.s
23766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23768 (eval $ac_try) 2>&5
23770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23771 test $ac_status = 0; }; }
23773 gcc_cv_as_ix86_cmov_sun_syntax=yes
23775 echo "configure: failed program was" >&5
23778 rm -f conftest.o conftest.s
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23782 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23783 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23785 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23790 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23791 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23792 $as_echo_n "(cached) " >&6
23794 gcc_cv_as_ix86_ffreep=no
23795 if test x$gcc_cv_as != x; then
23796 echo 'ffreep %st(1)' > conftest.s
23797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23799 (eval $ac_try) 2>&5
23801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23802 test $ac_status = 0; }; }
23804 gcc_cv_as_ix86_ffreep=yes
23806 echo "configure: failed program was" >&5
23809 rm -f conftest.o conftest.s
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23813 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23814 if test $gcc_cv_as_ix86_ffreep = yes; then
23816 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23821 $as_echo_n "checking assembler for .quad directive... " >&6; }
23822 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23823 $as_echo_n "(cached) " >&6
23825 gcc_cv_as_ix86_quad=no
23826 if test x$gcc_cv_as != x; then
23827 echo '.quad 0' > conftest.s
23828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23830 (eval $ac_try) 2>&5
23832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23833 test $ac_status = 0; }; }
23835 gcc_cv_as_ix86_quad=yes
23837 echo "configure: failed program was" >&5
23840 rm -f conftest.o conftest.s
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23844 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23845 if test $gcc_cv_as_ix86_quad = yes; then
23847 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23852 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23853 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23856 gcc_cv_as_ix86_sahf=no
23857 if test x$gcc_cv_as != x; then
23860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23862 (eval $ac_try) 2>&5
23864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23865 test $ac_status = 0; }; }
23867 gcc_cv_as_ix86_sahf=yes
23869 echo "configure: failed program was" >&5
23872 rm -f conftest.o conftest.s
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23876 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23877 if test $gcc_cv_as_ix86_sahf = yes; then
23879 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23884 $as_echo_n "checking assembler for swap suffix... " >&6; }
23885 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23886 $as_echo_n "(cached) " >&6
23888 gcc_cv_as_ix86_swap=no
23889 if test x$gcc_cv_as != x; then
23890 echo 'movl.s %esp, %ebp' > conftest.s
23891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23893 (eval $ac_try) 2>&5
23895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23896 test $ac_status = 0; }; }
23898 gcc_cv_as_ix86_swap=yes
23900 echo "configure: failed program was" >&5
23903 rm -f conftest.o conftest.s
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23907 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23908 if test $gcc_cv_as_ix86_swap = yes; then
23910 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23915 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23916 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23917 $as_echo_n "(cached) " >&6
23919 gcc_cv_as_ix86_diff_sect_delta=no
23920 if test x$gcc_cv_as != x; then
23921 echo '.section .rodata
23927 .L2: nop' > conftest.s
23928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23930 (eval $ac_try) 2>&5
23932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23933 test $ac_status = 0; }; }
23935 gcc_cv_as_ix86_diff_sect_delta=yes
23937 echo "configure: failed program was" >&5
23940 rm -f conftest.o conftest.s
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23944 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23945 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23947 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23951 # These two are used unconditionally by i386.[ch]; it is to be defined
23952 # to 1 if the feature is present, 0 otherwise.
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23954 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23955 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23956 $as_echo_n "(cached) " >&6
23958 gcc_cv_as_ix86_gotoff_in_data=no
23959 if test $in_tree_gas = yes; then
23960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23961 then gcc_cv_as_ix86_gotoff_in_data=yes
23963 elif test x$gcc_cv_as != x; then
23968 .long .L0@GOTOFF' > conftest.s
23969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23971 (eval $ac_try) 2>&5
23973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23974 test $ac_status = 0; }; }
23976 gcc_cv_as_ix86_gotoff_in_data=yes
23978 echo "configure: failed program was" >&5
23981 rm -f conftest.o conftest.s
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23985 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23988 cat >>confdefs.h <<_ACEOF
23989 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23994 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23995 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23996 $as_echo_n "(cached) " >&6
23998 gcc_cv_as_ix86_rep_lock_prefix=no
23999 if test x$gcc_cv_as != x; then
24001 lock addl %edi, (%eax,%esi)
24002 lock orl $0, (%esp)' > 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_ix86_rep_lock_prefix=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_ix86_rep_lock_prefix" >&5
24019 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24020 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24022 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24030 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24031 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24032 $as_echo_n "(cached) " >&6
24034 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24035 if test $in_tree_gas = yes; then
24036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24037 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24039 elif test x$gcc_cv_as != x; then
24041 addl r15 = @ltoffx(x#), gp
24043 ld8.mov r16 = [r15], x#' > conftest.s
24044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24046 (eval $ac_try) 2>&5
24048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24049 test $ac_status = 0; }; }
24051 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24053 echo "configure: failed program was" >&5
24056 rm -f conftest.o conftest.s
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24060 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24061 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24063 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24071 *-*-aix*) conftest_s=' .machine "pwr5"
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24076 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24077 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24078 $as_echo_n "(cached) " >&6
24080 gcc_cv_as_machine_directive=no
24081 if test x$gcc_cv_as != x; then
24082 echo ' .machine ppc7400' > conftest.s
24083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24085 (eval $ac_try) 2>&5
24087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088 test $ac_status = 0; }; }
24090 gcc_cv_as_machine_directive=yes
24092 echo "configure: failed program was" >&5
24095 rm -f conftest.o conftest.s
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24099 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24101 if test x$gcc_cv_as_machine_directive != xyes; then
24102 echo "*** This target requires an assembler supporting \".machine\"" >&2
24103 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24104 test x$build = x$target && exit 1
24108 *) conftest_s=' .machine power4
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24114 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24115 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24116 $as_echo_n "(cached) " >&6
24118 gcc_cv_as_powerpc_mfcrf=no
24119 if test $in_tree_gas = yes; then
24120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24121 then gcc_cv_as_powerpc_mfcrf=yes
24123 elif test x$gcc_cv_as != x; then
24124 echo "$conftest_s" > conftest.s
24125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24127 (eval $ac_try) 2>&5
24129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130 test $ac_status = 0; }; }
24132 gcc_cv_as_powerpc_mfcrf=yes
24134 echo "configure: failed program was" >&5
24137 rm -f conftest.o conftest.s
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24141 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24142 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24144 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24149 *-*-aix*) conftest_s=' .machine "pwr5"
24152 *) conftest_s=' .machine power5
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24158 $as_echo_n "checking assembler for popcntb support... " >&6; }
24159 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24160 $as_echo_n "(cached) " >&6
24162 gcc_cv_as_powerpc_popcntb=no
24163 if test $in_tree_gas = yes; then
24164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24165 then gcc_cv_as_powerpc_popcntb=yes
24167 elif test x$gcc_cv_as != x; then
24168 echo "$conftest_s" > conftest.s
24169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24176 gcc_cv_as_powerpc_popcntb=yes
24178 echo "configure: failed program was" >&5
24181 rm -f conftest.o conftest.s
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24185 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24186 if test $gcc_cv_as_powerpc_popcntb = yes; then
24188 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24193 *-*-aix*) conftest_s=' .machine "pwr5x"
24196 *) conftest_s=' .machine power5
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24202 $as_echo_n "checking assembler for fp round support... " >&6; }
24203 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24204 $as_echo_n "(cached) " >&6
24206 gcc_cv_as_powerpc_fprnd=no
24207 if test $in_tree_gas = yes; then
24208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24209 then gcc_cv_as_powerpc_fprnd=yes
24211 elif test x$gcc_cv_as != x; then
24212 echo "$conftest_s" > conftest.s
24213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24215 (eval $ac_try) 2>&5
24217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24218 test $ac_status = 0; }; }
24220 gcc_cv_as_powerpc_fprnd=yes
24222 echo "configure: failed program was" >&5
24225 rm -f conftest.o conftest.s
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24229 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24230 if test $gcc_cv_as_powerpc_fprnd = yes; then
24232 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24237 *-*-aix*) conftest_s=' .machine "pwr6"
24240 *) conftest_s=' .machine power6
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24246 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24247 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24248 $as_echo_n "(cached) " >&6
24250 gcc_cv_as_powerpc_mfpgpr=no
24251 if test $in_tree_gas = yes; then
24252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24253 then gcc_cv_as_powerpc_mfpgpr=yes
24255 elif test x$gcc_cv_as != x; then
24256 echo "$conftest_s" > conftest.s
24257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24264 gcc_cv_as_powerpc_mfpgpr=yes
24266 echo "configure: failed program was" >&5
24269 rm -f conftest.o conftest.s
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24273 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24274 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24276 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24281 *-*-aix*) conftest_s=' .csect .text[PR]
24283 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24287 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24288 *) conftest_s=' .text
24290 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24294 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24295 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24296 $as_echo_n "(cached) " >&6
24298 gcc_cv_as_powerpc_rel16=no
24299 if test $in_tree_gas = yes; then
24300 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24301 then gcc_cv_as_powerpc_rel16=yes
24303 elif test x$gcc_cv_as != x; then
24304 echo "$conftest_s" > conftest.s
24305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24307 (eval $ac_try) 2>&5
24309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310 test $ac_status = 0; }; }
24312 gcc_cv_as_powerpc_rel16=yes
24314 echo "configure: failed program was" >&5
24317 rm -f conftest.o conftest.s
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24321 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24322 if test $gcc_cv_as_powerpc_rel16 = yes; then
24324 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24329 *-*-aix*) conftest_s=' .machine "pwr6"
24332 *) conftest_s=' .machine power6
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24338 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24339 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24340 $as_echo_n "(cached) " >&6
24342 gcc_cv_as_powerpc_cmpb=no
24343 if test $in_tree_gas = yes; then
24344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24345 then gcc_cv_as_powerpc_cmpb=yes
24347 elif test x$gcc_cv_as != x; then
24348 echo "$conftest_s" > conftest.s
24349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24351 (eval $ac_try) 2>&5
24353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354 test $ac_status = 0; }; }
24356 gcc_cv_as_powerpc_cmpb=yes
24358 echo "configure: failed program was" >&5
24361 rm -f conftest.o conftest.s
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24365 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24366 if test $gcc_cv_as_powerpc_cmpb = yes; then
24368 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24373 *-*-aix*) conftest_s=' .machine "pwr6"
24376 *) conftest_s=' .machine power6
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24382 $as_echo_n "checking assembler for decimal float support... " >&6; }
24383 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24384 $as_echo_n "(cached) " >&6
24386 gcc_cv_as_powerpc_dfp=no
24387 if test $in_tree_gas = yes; then
24388 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24389 then gcc_cv_as_powerpc_dfp=yes
24391 elif test x$gcc_cv_as != x; then
24392 echo "$conftest_s" > conftest.s
24393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24395 (eval $ac_try) 2>&5
24397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24398 test $ac_status = 0; }; }
24400 gcc_cv_as_powerpc_dfp=yes
24402 echo "configure: failed program was" >&5
24405 rm -f conftest.o conftest.s
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24409 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24410 if test $gcc_cv_as_powerpc_dfp = yes; then
24412 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24417 *-*-aix*) conftest_s=' .machine "pwr7"
24420 *) conftest_s=' .machine power7
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24426 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24427 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24428 $as_echo_n "(cached) " >&6
24430 gcc_cv_as_powerpc_vsx=no
24431 if test $in_tree_gas = yes; then
24432 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24433 then gcc_cv_as_powerpc_vsx=yes
24435 elif test x$gcc_cv_as != x; then
24436 echo "$conftest_s" > conftest.s
24437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24439 (eval $ac_try) 2>&5
24441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24442 test $ac_status = 0; }; }
24444 gcc_cv_as_powerpc_vsx=yes
24446 echo "configure: failed program was" >&5
24449 rm -f conftest.o conftest.s
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24453 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24454 if test $gcc_cv_as_powerpc_vsx = yes; then
24456 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24461 *-*-aix*) conftest_s=' .machine "pwr7"
24464 *) conftest_s=' .machine power7
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24470 $as_echo_n "checking assembler for popcntd support... " >&6; }
24471 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24472 $as_echo_n "(cached) " >&6
24474 gcc_cv_as_powerpc_popcntd=no
24475 if test $in_tree_gas = yes; then
24476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24477 then gcc_cv_as_powerpc_popcntd=yes
24479 elif test x$gcc_cv_as != x; then
24480 echo "$conftest_s" > conftest.s
24481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24483 (eval $ac_try) 2>&5
24485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24486 test $ac_status = 0; }; }
24488 gcc_cv_as_powerpc_popcntd=yes
24490 echo "configure: failed program was" >&5
24493 rm -f conftest.o conftest.s
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24497 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24498 if test $gcc_cv_as_powerpc_popcntd = yes; then
24500 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24505 *-*-aix*) conftest_s=' .csect .text[PR]
24507 *) conftest_s=' .text
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24512 $as_echo_n "checking assembler for lwsync support... " >&6; }
24513 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24514 $as_echo_n "(cached) " >&6
24516 gcc_cv_as_powerpc_lwsync=no
24517 if test $in_tree_gas = yes; then
24518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24519 then gcc_cv_as_powerpc_lwsync=yes
24521 elif test x$gcc_cv_as != x; then
24522 echo "$conftest_s" > conftest.s
24523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24525 (eval $ac_try) 2>&5
24527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24528 test $ac_status = 0; }; }
24530 gcc_cv_as_powerpc_lwsync=yes
24532 echo "configure: failed program was" >&5
24535 rm -f conftest.o conftest.s
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24539 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24540 if test $gcc_cv_as_powerpc_lwsync = yes; then
24542 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24547 *-*-aix*) conftest_s=' .machine "476"
24550 *) conftest_s=' .machine "476"
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24556 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24557 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24560 gcc_cv_as_powerpc_dci=no
24561 if test $in_tree_gas = yes; then
24562 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24563 then gcc_cv_as_powerpc_dci=yes
24565 elif test x$gcc_cv_as != x; then
24566 echo "$conftest_s" > conftest.s
24567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24569 (eval $ac_try) 2>&5
24571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24572 test $ac_status = 0; }; }
24574 gcc_cv_as_powerpc_dci=yes
24576 echo "configure: failed program was" >&5
24579 rm -f conftest.o conftest.s
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24583 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24584 if test $gcc_cv_as_powerpc_dci = yes; then
24586 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24591 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24592 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24593 $as_echo_n "(cached) " >&6
24595 gcc_cv_as_powerpc_gnu_attribute=no
24596 if test $in_tree_gas = yes; then
24597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24598 then gcc_cv_as_powerpc_gnu_attribute=yes
24600 elif test x$gcc_cv_as != x; then
24601 echo '.gnu_attribute 4,1' > conftest.s
24602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24604 (eval $ac_try) 2>&5
24606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24607 test $ac_status = 0; }; }
24609 gcc_cv_as_powerpc_gnu_attribute=yes
24611 echo "configure: failed program was" >&5
24614 rm -f conftest.o conftest.s
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24618 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24619 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24621 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24626 $as_echo_n "checking assembler for tls marker support... " >&6; }
24627 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24628 $as_echo_n "(cached) " >&6
24630 gcc_cv_as_powerpc_tls_markers=no
24631 if test $in_tree_gas = yes; then
24632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24633 then gcc_cv_as_powerpc_tls_markers=yes
24635 elif test x$gcc_cv_as != x; then
24636 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639 (eval $ac_try) 2>&5
24641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642 test $ac_status = 0; }; }
24644 gcc_cv_as_powerpc_tls_markers=yes
24646 echo "configure: failed program was" >&5
24649 rm -f conftest.o conftest.s
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24653 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24654 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24656 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24663 $as_echo_n "checking assembler for .ref support... " >&6; }
24664 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24665 $as_echo_n "(cached) " >&6
24667 gcc_cv_as_aix_ref=no
24668 if test $in_tree_gas = yes; then
24669 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24672 elif test x$gcc_cv_as != x; then
24673 echo ' .csect stuff[rw]
24679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24681 (eval $ac_try) 2>&5
24683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24684 test $ac_status = 0; }; }
24686 gcc_cv_as_aix_ref=yes
24688 echo "configure: failed program was" >&5
24691 rm -f conftest.o conftest.s
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24695 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24696 if test $gcc_cv_as_aix_ref = yes; then
24698 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24707 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24708 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24711 gcc_cv_as_mips_explicit_relocs=no
24712 if test $in_tree_gas = yes; then
24713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24714 then gcc_cv_as_mips_explicit_relocs=yes
24716 elif test x$gcc_cv_as != x; then
24717 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24720 (eval $ac_try) 2>&5
24722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24723 test $ac_status = 0; }; }
24725 gcc_cv_as_mips_explicit_relocs=yes
24727 echo "configure: failed program was" >&5
24730 rm -f conftest.o conftest.s
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24734 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24735 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24736 if test x$target_cpu_default = x
24737 then target_cpu_default=MASK_EXPLICIT_RELOCS
24738 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24742 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24743 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24744 $as_echo_n "(cached) " >&6
24746 gcc_cv_as_mips_no_shared=no
24747 if test $in_tree_gas = yes; then
24748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24749 then gcc_cv_as_mips_no_shared=yes
24751 elif test x$gcc_cv_as != x; then
24752 echo 'nop' > conftest.s
24753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24755 (eval $ac_try) 2>&5
24757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24758 test $ac_status = 0; }; }
24760 gcc_cv_as_mips_no_shared=yes
24762 echo "configure: failed program was" >&5
24765 rm -f conftest.o conftest.s
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24769 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24770 if test $gcc_cv_as_mips_no_shared = yes; then
24772 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24777 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24778 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24779 $as_echo_n "(cached) " >&6
24781 gcc_cv_as_mips_gnu_attribute=no
24782 if test $in_tree_gas = yes; then
24783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24784 then gcc_cv_as_mips_gnu_attribute=yes
24786 elif test x$gcc_cv_as != x; then
24787 echo '.gnu_attribute 4,1' > conftest.s
24788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }
24795 gcc_cv_as_mips_gnu_attribute=yes
24797 echo "configure: failed program was" >&5
24800 rm -f conftest.o conftest.s
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24804 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24805 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24807 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24812 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24813 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24816 gcc_cv_as_mips_dtprelword=no
24817 if test $in_tree_gas = yes; then
24818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24819 then gcc_cv_as_mips_dtprelword=yes
24821 elif test x$gcc_cv_as != x; then
24822 echo '.section .tdata,"awT",@progbits
24826 .dtprelword x+0x8000' > conftest.s
24827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24834 gcc_cv_as_mips_dtprelword=yes
24836 echo "configure: failed program was" >&5
24839 rm -f conftest.o conftest.s
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24843 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24844 if test $gcc_cv_as_mips_dtprelword = yes; then
24846 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24851 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24852 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24855 gcc_cv_as_mips_dspr1_mult=no
24856 if test x$gcc_cv_as != x; then
24857 echo ' .set mips32r2
24865 multu $ac3,$4,$5' > conftest.s
24866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24873 gcc_cv_as_mips_dspr1_mult=yes
24875 echo "configure: failed program was" >&5
24878 rm -f conftest.o conftest.s
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24882 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24883 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24885 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24890 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24891 gcc_cv_as_ld_jalr_reloc=no
24892 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24893 if test $in_tree_ld = yes ; then
24894 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 \
24895 && test $in_tree_ld_is_elf = yes; then
24896 gcc_cv_as_ld_jalr_reloc=yes
24898 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24899 echo ' .ent x' > conftest.s
24900 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24901 echo ' ld $25,%call16(y)($28)' >> conftest.s
24902 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24903 echo '1: jalr $25' >> conftest.s
24904 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24905 echo '1: jalr $25' >> conftest.s
24906 echo ' .end x' >> conftest.s
24907 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24908 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24909 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24910 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24911 gcc_cv_as_ld_jalr_reloc=yes
24917 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24918 if test x$target_cpu_default = x; then
24919 target_cpu_default=MASK_RELAX_PIC_CALLS
24921 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24925 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24928 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24929 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24930 $as_echo_n "(cached) " >&6
24932 gcc_cv_ld_mips_personality_relaxation=no
24933 if test $in_tree_ld = yes ; then
24934 if test "$gcc_cv_gld_major_version" -eq 2 \
24935 -a "$gcc_cv_gld_minor_version" -ge 21 \
24936 -o "$gcc_cv_gld_major_version" -gt 2; then
24937 gcc_cv_ld_mips_personality_relaxation=yes
24939 elif test x$gcc_cv_as != x \
24940 -a x$gcc_cv_ld != x \
24941 -a x$gcc_cv_readelf != x ; then
24942 cat > conftest.s <<EOF
24944 .cfi_personality 0x80,indirect_ptr
24951 .section .data,"aw",@progbits
24955 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24956 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24957 if $gcc_cv_readelf -d conftest 2>&1 \
24958 | grep TEXTREL > /dev/null 2>&1; then
24960 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24961 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24964 gcc_cv_ld_mips_personality_relaxation=yes
24968 rm -f conftest.s conftest.o conftest
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24971 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24972 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24974 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24980 # Mips and HP-UX need the GNU assembler.
24981 # Linux on IA64 might be able to use the Intel assembler.
24984 mips*-*-* | *-*-hpux* )
24985 if test x$gas_flag = xyes \
24986 || test x"$host" != x"$build" \
24987 || test ! -x "$gcc_cv_as" \
24988 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24991 echo "*** This configuration requires the GNU assembler" >&2
24997 # ??? Not all targets support dwarf2 debug_line, even within a version
24998 # of gas. Moreover, we need to emit a valid instruction to trigger any
24999 # info to the output file. So, as supported targets are added to gas 2.11,
25000 # add some instruction here to (also) show we expect this might work.
25001 # ??? Once 2.11 is released, probably need to add first known working
25002 # version to the per-target configury.
25003 case "$cpu_type" in
25004 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25005 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25015 if test x"$insn" != x; then
25017 .file 1 \"conftest.s\"
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25021 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25022 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25025 gcc_cv_as_dwarf2_debug_line=no
25026 if test $in_tree_gas = yes; then
25027 if test $in_tree_gas_is_elf = yes \
25028 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25029 then gcc_cv_as_dwarf2_debug_line=yes
25031 elif test x$gcc_cv_as != x; then
25032 echo "$conftest_s" > conftest.s
25033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }
25040 if test x$gcc_cv_objdump != x \
25041 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25042 | grep debug_line > /dev/null 2>&1; then
25043 gcc_cv_as_dwarf2_debug_line=yes
25046 echo "configure: failed program was" >&5
25049 rm -f conftest.o conftest.s
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25053 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25056 # The .debug_line file table must be in the exact order that
25057 # we specified the files, since these indices are also used
25058 # by DW_AT_decl_file. Approximate this test by testing if
25059 # the assembler bitches if the same index is assigned twice.
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25061 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25062 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25063 $as_echo_n "(cached) " >&6
25065 gcc_cv_as_dwarf2_file_buggy=no
25066 if test x$gcc_cv_as != x; then
25067 echo ' .file 1 "foo.s"
25068 .file 1 "bar.s"' > conftest.s
25069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25071 (eval $ac_try) 2>&5
25073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074 test $ac_status = 0; }; }
25076 gcc_cv_as_dwarf2_file_buggy=yes
25078 echo "configure: failed program was" >&5
25081 rm -f conftest.o conftest.s
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25085 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25088 if test $gcc_cv_as_dwarf2_debug_line = yes \
25089 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25091 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25096 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25097 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25098 $as_echo_n "(cached) " >&6
25100 gcc_cv_as_gdwarf2_flag=no
25101 if test $in_tree_gas = yes; then
25102 if test $in_tree_gas_is_elf = yes \
25103 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25104 then gcc_cv_as_gdwarf2_flag=yes
25106 elif test x$gcc_cv_as != x; then
25107 echo "$insn" > conftest.s
25108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110 (eval $ac_try) 2>&5
25112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113 test $ac_status = 0; }; }
25115 gcc_cv_as_gdwarf2_flag=yes
25117 echo "configure: failed program was" >&5
25120 rm -f conftest.o conftest.s
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25124 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25125 if test $gcc_cv_as_gdwarf2_flag = yes; then
25127 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25132 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25133 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25134 $as_echo_n "(cached) " >&6
25136 gcc_cv_as_gstabs_flag=no
25137 if test $in_tree_gas = yes; then
25138 if test $in_tree_gas_is_elf = yes \
25139 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25140 then gcc_cv_as_gstabs_flag=yes
25142 elif test x$gcc_cv_as != x; then
25143 echo "$insn" > conftest.s
25144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25146 (eval $ac_try) 2>&5
25148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25149 test $ac_status = 0; }; }
25151 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25152 # and warns about it, but still exits successfully. So check for
25154 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25156 (eval $ac_try) 2>&5
25158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159 test $ac_status = 0; }; }
25161 else gcc_cv_as_gstabs_flag=yes
25164 echo "configure: failed program was" >&5
25167 rm -f conftest.o conftest.s
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25171 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25172 if test $gcc_cv_as_gstabs_flag = yes; then
25174 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25179 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25180 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25181 $as_echo_n "(cached) " >&6
25183 gcc_cv_as_debug_prefix_map_flag=no
25184 if test $in_tree_gas = yes; then
25185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25186 then gcc_cv_as_debug_prefix_map_flag=yes
25188 elif test x$gcc_cv_as != x; then
25189 echo "$insn" > conftest.s
25190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25192 (eval $ac_try) 2>&5
25194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25195 test $ac_status = 0; }; }
25197 gcc_cv_as_debug_prefix_map_flag=yes
25199 echo "configure: failed program was" >&5
25202 rm -f conftest.o conftest.s
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25206 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25207 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25209 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25215 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25216 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25217 $as_echo_n "(cached) " >&6
25219 gcc_cv_as_lcomm_with_alignment=no
25220 if test x$gcc_cv_as != x; then
25221 echo '.lcomm bar,4,16' > conftest.s
25222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25224 (eval $ac_try) 2>&5
25226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25227 test $ac_status = 0; }; }
25229 gcc_cv_as_lcomm_with_alignment=yes
25231 echo "configure: failed program was" >&5
25234 rm -f conftest.o conftest.s
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25238 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25239 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25241 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25245 # Check whether --enable-gnu-unique-object was given.
25246 if test "${enable_gnu_unique_object+set}" = set; then :
25247 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25249 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25250 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25254 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25255 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25258 gcc_cv_as_gnu_unique_object=no
25259 if test $in_tree_gas = yes; then
25260 if test $in_tree_gas_is_elf = yes \
25261 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25262 then gcc_cv_as_gnu_unique_object=yes
25264 elif test x$gcc_cv_as != x; then
25265 echo '.type foo, @gnu_unique_object' > conftest.s
25266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25268 (eval $ac_try) 2>&5
25270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25271 test $ac_status = 0; }; }
25273 gcc_cv_as_gnu_unique_object=yes
25275 echo "configure: failed program was" >&5
25278 rm -f conftest.o conftest.s
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25282 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25283 if test $gcc_cv_as_gnu_unique_object = yes; then
25284 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25285 if test x$host = x$build -a x$host = x$target &&
25286 ldd --version 2>/dev/null &&
25287 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25288 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25289 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25290 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25291 if test "$glibcnum" -ge 2011 ; then
25292 enable_gnu_unique_object=yes
25298 if test x$enable_gnu_unique_object = xyes; then
25300 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25305 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25306 if test "${gcc_cv_as_line_zero+set}" = set; then :
25307 $as_echo_n "(cached) " >&6
25309 gcc_cv_as_line_zero=no
25310 if test $in_tree_gas = yes; then
25311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25312 then gcc_cv_as_line_zero=yes
25314 elif test "x$gcc_cv_as" != x; then
25315 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25316 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25318 (eval $ac_try) 2>&5
25320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25321 test $ac_status = 0; }; } &&
25322 test "x`cat conftest.out`" = x
25324 gcc_cv_as_line_zero=yes
25326 echo "configure: failed program was" >&5
25328 echo "configure: error output was" >&5
25329 cat conftest.out >&5
25331 rm -f conftest.o conftest.s conftest.out
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25335 $as_echo "$gcc_cv_as_line_zero" >&6; }
25336 if test "x$gcc_cv_as_line_zero" = xyes; then
25338 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25343 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25344 gcc_cv_ld_eh_frame_hdr=no
25345 if test $in_tree_ld = yes ; then
25346 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 \
25347 && test $in_tree_ld_is_elf = yes; then
25348 gcc_cv_ld_eh_frame_hdr=yes
25350 elif test x$gcc_cv_ld != x; then
25351 if echo "$ld_ver" | grep GNU > /dev/null; then
25352 # Check if linker supports --eh-frame-hdr option
25353 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25354 gcc_cv_ld_eh_frame_hdr=yes
25359 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25360 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25361 gcc_cv_ld_eh_frame_hdr=yes
25368 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25370 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25374 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25377 $as_echo_n "checking linker position independent executable support... " >&6; }
25379 if test $in_tree_ld = yes ; then
25380 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 \
25381 && test $in_tree_ld_is_elf = yes; then
25384 elif test x$gcc_cv_ld != x; then
25385 # Check if linker supports -pie option
25386 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25390 if test x"$gcc_cv_ld_pie" = xyes; then
25392 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25396 $as_echo "$gcc_cv_ld_pie" >&6; }
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25399 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25400 gcc_cv_ld_eh_gc_sections=no
25401 if test $in_tree_ld = yes ; then
25402 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 \
25403 && test $in_tree_ld_is_elf = yes; then
25404 gcc_cv_ld_eh_gc_sections=yes
25406 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25407 cat > conftest.s <<EOF
25410 .type _start, @function
25413 .size _start, .-_start
25414 .section .text.foo,"ax",@progbits
25415 .type foo, @function
25419 .section .gcc_except_table.foo,"a",@progbits
25422 .section .eh_frame,"a",@progbits
25425 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25426 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25427 | grep "gc-sections option ignored" > /dev/null; then
25428 gcc_cv_ld_eh_gc_sections=no
25429 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25430 | grep gcc_except_table > /dev/null; then
25431 gcc_cv_ld_eh_gc_sections=yes
25432 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25433 if test x$gcc_cv_as_comdat_group != xyes; then
25434 gcc_cv_ld_eh_gc_sections=no
25435 cat > conftest.s <<EOF
25438 .type _start, @function
25441 .size _start, .-_start
25442 .section .gnu.linkonce.t.foo,"ax",@progbits
25443 .type foo, @function
25447 .section .gcc_except_table.foo,"a",@progbits
25450 .section .eh_frame,"a",@progbits
25453 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25454 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25455 | grep "gc-sections option ignored" > /dev/null; then
25456 gcc_cv_ld_eh_gc_sections=no
25457 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25458 | grep gcc_except_table > /dev/null; then
25459 gcc_cv_ld_eh_gc_sections=yes
25465 rm -f conftest.s conftest.o conftest
25469 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25470 gcc_cv_ld_eh_gc_sections=no
25473 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25475 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25479 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25482 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25483 gcc_cv_ld_eh_gc_sections_bug=no
25484 if test $in_tree_ld = yes ; then
25485 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
25486 && test $in_tree_ld_is_elf = yes; then
25487 gcc_cv_ld_eh_gc_sections_bug=yes
25489 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
25490 gcc_cv_ld_eh_gc_sections_bug=yes
25491 cat > conftest.s <<EOF
25494 .type _start, @function
25497 .size _start, .-_start
25498 .section .text.startup.foo,"ax",@progbits
25499 .type foo, @function
25503 .section .gcc_except_table.foo,"a",@progbits
25506 .section .eh_frame,"a",@progbits
25509 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25510 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25511 | grep "gc-sections option ignored" > /dev/null; then
25513 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25514 | grep gcc_except_table > /dev/null; then
25515 gcc_cv_ld_eh_gc_sections_bug=no
25518 rm -f conftest.s conftest.o conftest
25520 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25522 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25526 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25533 $as_echo_n "checking linker --as-needed support... " >&6; }
25534 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25535 $as_echo_n "(cached) " >&6
25537 gcc_cv_ld_as_needed=no
25538 if test $in_tree_ld = yes ; then
25539 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 \
25540 && test $in_tree_ld_is_elf = yes; then
25541 gcc_cv_ld_as_needed=yes
25543 elif test x$gcc_cv_ld != x; then
25544 # Check if linker supports --as-needed and --no-as-needed options
25545 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25546 gcc_cv_ld_as_needed=yes
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25552 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25553 if test x"$gcc_cv_ld_as_needed" = xyes; then
25555 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25559 case "$target:$tm_file" in
25560 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25562 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25563 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25564 $as_echo_n "(cached) " >&6
25566 gcc_cv_ld_no_dot_syms=no
25567 if test $in_tree_ld = yes ; then
25568 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
25569 gcc_cv_ld_no_dot_syms=yes
25571 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25572 cat > conftest1.s <<EOF
25576 cat > conftest2.s <<EOF
25577 .section ".opd","aw"
25580 .type foo,@function
25582 .quad .LEfoo,.TOC.@tocbase,0
25588 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25589 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25590 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25591 gcc_cv_ld_no_dot_syms=yes
25593 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25598 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25599 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25601 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25606 $as_echo_n "checking linker large toc support... " >&6; }
25607 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25610 gcc_cv_ld_large_toc=no
25611 if test $in_tree_ld = yes ; then
25612 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
25613 gcc_cv_ld_large_toc=yes
25615 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25616 cat > conftest.s <<EOF
25617 .section ".tbss","awT",@nobits
25623 addis 9,13,ie0@got@tprel@ha
25624 ld 9,ie0@got@tprel@l(9)
25626 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25627 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25628 gcc_cv_ld_large_toc=yes
25630 rm -f conftest conftest.o conftest.s
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25635 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25636 if test x"$gcc_cv_ld_large_toc" = xyes; then
25638 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25645 $as_echo_n "checking linker --build-id support... " >&6; }
25646 if test "${gcc_cv_ld_buildid+set}" = set; then :
25647 $as_echo_n "(cached) " >&6
25649 gcc_cv_ld_buildid=no
25650 if test $in_tree_ld = yes ; then
25651 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25652 "$gcc_cv_gld_minor_version" -ge 18 -o \
25653 "$gcc_cv_gld_major_version" -gt 2 \
25654 && test $in_tree_ld_is_elf = yes; then
25655 gcc_cv_ld_buildid=yes
25657 elif test x$gcc_cv_ld != x; then
25658 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25659 gcc_cv_ld_buildid=yes
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25664 $as_echo "$gcc_cv_ld_buildid" >&6; }
25665 if test x"$gcc_cv_ld_buildid" = xyes; then
25667 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25671 # Check whether --enable-linker-build-id was given.
25672 if test "${enable_linker_build_id+set}" = set; then :
25673 enableval=$enable_linker_build_id;
25675 enable_linker_build_id=no
25679 if test x"$enable_linker_build_id" = xyes; then
25680 if test x"$gcc_cv_ld_buildid" = xyes; then
25682 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25686 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25690 # In binutils 2.21, GNU ld gained support for new emulations fully
25691 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25693 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25694 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25695 $as_echo_n "(cached) " >&6
25697 gcc_cv_ld_sol2_emulation=no
25698 if test $in_tree_ld = yes ; then
25699 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25700 "$gcc_cv_gld_minor_version" -ge 21 -o \
25701 "$gcc_cv_gld_major_version" -gt 2 \
25702 && test $in_tree_ld_is_elf = yes; then
25703 gcc_cv_ld_sol2_emulation=yes
25705 elif test x$gcc_cv_ld != x; then
25706 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25707 grep _sol2 > /dev/null; then
25708 gcc_cv_ld_sol2_emulation=yes
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25713 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25714 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25716 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25721 $as_echo_n "checking linker --sysroot support... " >&6; }
25722 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25723 $as_echo_n "(cached) " >&6
25725 gcc_cv_ld_sysroot=no
25726 if test $in_tree_ld = yes ; then
25727 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
25728 gcc_cv_ld_sysroot=yes
25730 elif test x$gcc_cv_ld != x; then
25731 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25732 gcc_cv_ld_sysroot=yes
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25737 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25738 if test x"$gcc_cv_ld_sysroot" = xyes; then
25740 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25744 if test x$with_sysroot = x && test x$host = x$target \
25745 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25746 && test "$prefix" != "NONE"; then
25748 cat >>confdefs.h <<_ACEOF
25749 #define PREFIX_INCLUDE_DIR "$prefix/include"
25754 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25755 if test "x$with_headers" != x; then
25756 target_header_dir=$with_headers
25757 elif test "x$with_sysroot" = x; then
25758 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25759 elif test "x$with_build_sysroot" != "x"; then
25760 target_header_dir="${with_build_sysroot}/usr/include"
25761 elif test "x$with_sysroot" = xyes; then
25762 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25764 target_header_dir="${with_sysroot}/usr/include"
25767 target_header_dir=/usr/include
25770 # Test for stack protector support in target C library.
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25772 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25773 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25774 $as_echo_n "(cached) " >&6
25776 gcc_cv_libc_provides_ssp=no
25778 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25779 # glibc 2.4 and later provides __stack_chk_fail and
25780 # either __stack_chk_guard, or TLS access to stack guard canary.
25781 if test -f $target_header_dir/features.h \
25782 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25783 $target_header_dir/features.h > /dev/null; then
25784 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25785 $target_header_dir/features.h > /dev/null; then
25786 gcc_cv_libc_provides_ssp=yes
25787 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25788 $target_header_dir/features.h > /dev/null \
25789 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25790 $target_header_dir/features.h > /dev/null; then
25791 gcc_cv_libc_provides_ssp=yes
25792 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25793 $target_header_dir/features.h > /dev/null && \
25794 test -f $target_header_dir/bits/uClibc_config.h && \
25795 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25796 $target_header_dir/bits/uClibc_config.h > /dev/null; then
25797 gcc_cv_libc_provides_ssp=yes
25802 # Avoid complicated tests (see
25803 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25804 # simply assert that glibc does provide this, which is true for all
25805 # realistically usable GNU/Hurd configurations.
25806 gcc_cv_libc_provides_ssp=yes;;
25807 *-*-darwin* | *-*-freebsd*)
25808 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25809 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25810 gcc_cv_libc_provides_ssp=yes
25812 echo "no __stack_chk_fail on this target"
25816 *) gcc_cv_libc_provides_ssp=no ;;
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25820 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25822 if test x$gcc_cv_libc_provides_ssp = xyes; then
25824 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25828 # Test for <sys/sdt.h> on the target.
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
25831 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
25833 if test -f $target_header_dir/sys/sdt.h; then
25835 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
25839 $as_echo "$have_sys_sdt_h" >&6; }
25841 # Check if TFmode long double should be used by default or not.
25842 # Some glibc targets used DFmode long double, but with glibc 2.4
25843 # and later they can use TFmode.
25845 powerpc*-*-linux* | \
25846 sparc*-*-linux* | \
25850 # Check whether --with-long-double-128 was given.
25851 if test "${with_long_double_128+set}" = set; then :
25852 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25854 gcc_cv_target_ldbl128=no
25855 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25856 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25857 && gcc_cv_target_ldbl128=yes
25863 if test x$gcc_cv_target_ldbl128 = xyes; then
25865 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
25870 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
25871 gcc_cv_target_dl_iterate_phdr=unknown
25874 # <link.h> needs both a dl_iterate_phdr declaration and support for
25875 # compilation with largefile support.
25876 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
25877 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
25878 gcc_cv_target_dl_iterate_phdr=yes
25880 gcc_cv_target_dl_iterate_phdr=no
25885 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
25887 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
25891 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
25893 # Find out what GC implementation we want, or may, use.
25895 # Check whether --with-gc was given.
25896 if test "${with_gc+set}" = set; then :
25897 withval=$with_gc; case "$withval" in
25904 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25908 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25916 echo "Using $GGC for garbage collection."
25918 # Libraries to use on the host. This will normally be set by the top
25919 # level Makefile. Here we simply capture the value for our Makefile.
25920 if test -z "${HOST_LIBS+set}"; then
25925 # Use the system's zlib library.
25927 zlibinc="-I\$(srcdir)/../zlib"
25929 # Check whether --with-system-zlib was given.
25930 if test "${with_system_zlib+set}" = set; then :
25931 withval=$with_system_zlib; zlibdir=
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25942 # Check whether --enable-maintainer-mode was given.
25943 if test "${enable_maintainer_mode+set}" = set; then :
25944 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25951 $as_echo "$maintainer_mode" >&6; }
25953 if test "$maintainer_mode" = "yes"; then
25963 # Make empty files to contain the specs and options for each language.
25964 # Then add #include lines to for a compiler that has specs and/or options.
25970 # These (without "all_") are set in each config-lang.in.
25971 # `language' must be a single word so is spelled singularly.
25974 all_outputs='Makefile'
25975 # List of language makefile fragments.
25976 all_lang_makefrags=
25977 # Additional files for gengtype
25978 all_gtfiles="$target_gtfiles"
25980 # These are the languages that are set in --enable-languages,
25981 # and are available in the GCC tree.
25982 all_selected_languages=
25984 # Add the language fragments.
25985 # Languages are added via two mechanisms. Some information must be
25986 # recorded in makefile variables, these are defined in config-lang.in.
25987 # We accumulate them and plug them into the main Makefile.
25988 # The other mechanism is a set of hooks for each of the main targets
25989 # like `clean', `install', etc.
25991 language_hooks="Make-hooks"
25993 for lang in ${srcdir}/*/config-lang.in
25995 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25997 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25998 if test "x$lang_alias" = x
26000 echo "$lang doesn't set \$language." 1>&2
26003 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26004 subdirs="$subdirs $subdir"
26006 # $gcc_subdir is where the gcc integration files are to be found
26007 # for a language, both for internal compiler purposes (compiler
26008 # sources implementing front-end to GCC tree converters), and for
26009 # build infrastructure purposes (Make-lang.in, etc.)
26011 # This will be <subdir> (relative to $srcdir) if a line like
26012 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26013 # is found in <langdir>/config-lang.in, and will remain <langdir>
26016 # Except for the language alias (fetched above), the regular
26017 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26018 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26019 # only this and the language alias.
26021 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26022 if [ "$gcc_subdir" = "" ]; then
26023 gcc_subdir="$subdir"
26026 case ",$enable_languages," in
26028 all_selected_languages="$all_selected_languages $lang_alias"
26029 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26030 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26041 . ${srcdir}/$gcc_subdir/config-lang.in
26042 if test "x$language" = x
26044 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26049 case ",$enable_languages," in
26050 *,$lang_alias,*) ;;
26052 for i in $subdir_requires; do
26053 test -f "${srcdir}/$i/config-lang.in" && continue
26061 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26062 if test -f $srcdir/$gcc_subdir/lang.opt; then
26063 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26064 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26066 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26067 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26069 all_languages="$all_languages $language"
26070 all_compilers="$all_compilers $compilers"
26071 all_outputs="$all_outputs $outputs"
26072 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26073 case ",$enable_languages," in
26076 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26085 # Pick up gtfiles for c
26087 . ${srcdir}/c-config-lang.in
26088 all_gtfiles="$all_gtfiles [c] $gtfiles"
26091 for language in $all_selected_languages
26093 check_languages="$check_languages check-$language"
26096 # We link each language in with a set of hooks, reached indirectly via
26097 # lang.${target}. Only do so for selected languages.
26101 target_list="all.cross start.encap rest.encap tags \
26102 install-common install-man install-info install-pdf install-html dvi \
26103 pdf html uninstall info man srcextra srcman srcinfo \
26104 mostlyclean clean distclean maintainer-clean install-plugin"
26106 for t in $target_list
26109 for lang in $all_selected_languages
26113 echo "lang.$t: $x" >> Make-hooks
26117 # Option include files
26120 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26121 option_includes="option-includes.mk"
26130 echo "dir ." > .gdbinit
26131 echo "dir ${srcdir}" >> .gdbinit
26132 if test x$gdb_needs_out_file_path = xyes
26134 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26136 if test "x$subdirs" != x; then
26139 echo "dir ${srcdir}/$s" >> .gdbinit
26142 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26144 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26148 # Find a directory in which to install a shared libgcc.
26150 # Check whether --enable-version-specific-runtime-libs was given.
26151 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26152 enableval=$enable_version_specific_runtime_libs;
26157 # Check whether --with-slibdir was given.
26158 if test "${with_slibdir+set}" = set; then :
26159 withval=$with_slibdir; slibdir="$with_slibdir"
26161 if test "${enable_version_specific_runtime_libs+set}" = set; then
26162 slibdir='$(libsubdir)'
26163 elif test "$host" != "$target"; then
26164 slibdir='$(build_tooldir)/lib'
26166 slibdir='$(libdir)'
26172 # Substitute configuration variables
26238 if test x${build} = x${host} ; then
26239 if test x${host} = x${target} ; then
26240 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26242 echo "Links are now set up to build a cross-compiler" 1>&2
26243 echo " from ${host} to ${target}." 1>&2
26246 if test x${host} = x${target} ; then
26247 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26248 echo " for ${target}." 1>&2
26250 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26251 echo " from ${host} to ${target}." 1>&2
26263 if test "x${CLOOGLIBS}" != "x" ; then
26265 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26269 # Check for plugin support
26270 # Check whether --enable-plugin was given.
26271 if test "${enable_plugin+set}" = set; then :
26272 enableval=$enable_plugin; enable_plugin=$enableval
26274 enable_plugin=yes; default_plugin=yes
26282 if test x$build = x$host; then
26283 export_sym_check="nm${exeext} -g"
26284 elif test x$host = x$target; then
26285 export_sym_check="$gcc_cv_nm -g"
26291 if test x$build = x$host; then
26292 export_sym_check="objdump${exeext} -T"
26293 elif test x$host = x$target; then
26294 export_sym_check="$gcc_cv_objdump -T"
26301 if test x"$enable_plugin" = x"yes"; then
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26304 $as_echo_n "checking for exported symbols... " >&6; }
26305 if test "x$export_sym_check" != x; then
26306 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26307 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26308 if $export_sym_check conftest | grep foobar > /dev/null; then
26309 : # No need to use a flag
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26311 $as_echo "yes" >&6; }
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26314 $as_echo "yes" >&6; }
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26316 $as_echo_n "checking for -rdynamic... " >&6; }
26317 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26318 if $export_sym_check conftest | grep foobar > /dev/null; then
26319 plugin_rdynamic=yes
26320 pluginlibs="-rdynamic"
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26326 $as_echo "$plugin_rdynamic" >&6; }
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26330 $as_echo "unable to check" >&6; }
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26336 $as_echo_n "checking for library containing dlopen... " >&6; }
26337 if test "${ac_cv_search_dlopen+set}" = set; then :
26338 $as_echo_n "(cached) " >&6
26340 ac_func_search_save_LIBS=$LIBS
26341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26342 /* end confdefs.h. */
26344 /* Override any GCC internal prototype to avoid an error.
26345 Use char because int might match the return type of a GCC
26346 builtin and then its argument prototype would still apply. */
26359 for ac_lib in '' dl; do
26360 if test -z "$ac_lib"; then
26361 ac_res="none required"
26364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26366 if ac_fn_c_try_link "$LINENO"; then :
26367 ac_cv_search_dlopen=$ac_res
26369 rm -f core conftest.err conftest.$ac_objext \
26371 if test "${ac_cv_search_dlopen+set}" = set; then :
26375 if test "${ac_cv_search_dlopen+set}" = set; then :
26378 ac_cv_search_dlopen=no
26380 rm conftest.$ac_ext
26381 LIBS=$ac_func_search_save_LIBS
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26384 $as_echo "$ac_cv_search_dlopen" >&6; }
26385 ac_res=$ac_cv_search_dlopen
26386 if test "$ac_res" != no; then :
26387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26391 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26392 pluginlibs="$pluginlibs -ldl"
26396 # Check that we can build shared objects with -fPIC -shared
26397 saved_LDFLAGS="$LDFLAGS"
26398 saved_CFLAGS="$CFLAGS"
26401 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26402 CFLAGS="$CFLAGS -fPIC"
26403 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26406 CFLAGS="$CFLAGS -fPIC"
26407 LDFLAGS="$LDFLAGS -fPIC -shared"
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26411 $as_echo_n "checking for -fPIC -shared... " >&6; }
26412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413 /* end confdefs.h. */
26423 if ac_fn_c_try_link "$LINENO"; then :
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26425 $as_echo "yes" >&6; }; have_pic_shared=yes
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26428 $as_echo "no" >&6; }; have_pic_shared=no
26430 rm -f core conftest.err conftest.$ac_objext \
26431 conftest$ac_exeext conftest.$ac_ext
26432 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26436 LDFLAGS="$saved_LDFLAGS"
26437 CFLAGS="$saved_CFLAGS"
26439 # If plugin support had been requested but not available, fail.
26440 if test x"$enable_plugin" = x"no" ; then
26441 if test x"$default_plugin" != x"yes"; then
26443 Building GCC with plugin support requires a host that supports
26444 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26451 if test x"$enable_plugin" = x"yes"; then
26453 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26458 # Check whether --enable-libquadmath-support was given.
26459 if test "${enable_libquadmath_support+set}" = set; then :
26460 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26462 ENABLE_LIBQUADMATH_SUPPORT=yes
26465 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26467 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26472 # Configure the subdirectories
26473 # AC_CONFIG_SUBDIRS($subdirs)
26475 # Create the Makefile
26476 # and configure language subdirectories
26477 ac_config_files="$ac_config_files $all_outputs"
26480 ac_config_commands="$ac_config_commands default"
26482 cat >confcache <<\_ACEOF
26483 # This file is a shell script that caches the results of configure
26484 # tests run on this system so they can be shared between configure
26485 # scripts and configure runs, see configure's option --config-cache.
26486 # It is not useful on other systems. If it contains results you don't
26487 # want to keep, you may remove or edit it.
26489 # config.status only pays attention to the cache file if you give it
26490 # the --recheck option to rerun configure.
26492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26494 # following values.
26498 # The following way of writing the cache mishandles newlines in values,
26499 # but we know of no workaround that is simple, portable, and efficient.
26500 # So, we kill variables containing newlines.
26501 # Ultrix sh set writes to stderr and can't be redirected directly,
26502 # and sets the high bit in the cache file unless we assign to the vars.
26504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26505 eval ac_val=\$$ac_var
26509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26510 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26513 _ | IFS | as_nl) ;; #(
26514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26515 *) { eval $ac_var=; unset $ac_var;} ;;
26521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26522 *${as_nl}ac_space=\ *)
26523 # `set' does not quote correctly, so add quotes: double-quote
26524 # substitution turns \\\\ into \\, and sed turns \\ into \.
26527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26530 # `set' quotes correctly as required by POSIX, so do not add quotes.
26531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26544 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26545 if test -w "$cache_file"; then
26546 test "x$cache_file" != "x/dev/null" &&
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26548 $as_echo "$as_me: updating cache $cache_file" >&6;}
26549 cat confcache >$cache_file
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26552 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26558 # Let make expand exec_prefix.
26559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26561 DEFS=-DHAVE_CONFIG_H
26565 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26566 # 1. Remove the extension, and $U if already installed.
26567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26568 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26570 # will be set to the directory where LIBOBJS objects are built.
26571 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26572 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26574 LIBOBJS=$ac_libobjs
26576 LTLIBOBJS=$ac_ltlibobjs
26581 : ${CONFIG_STATUS=./config.status}
26583 ac_clean_files_save=$ac_clean_files
26584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26586 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26590 # Generated by $as_me.
26591 # Run this file to recreate the current configuration.
26592 # Compiler output produced by configure, useful for debugging
26593 # configure, is in config.log if it exists.
26596 ac_cs_recheck=false
26599 SHELL=\${CONFIG_SHELL-$SHELL}
26602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26603 ## -------------------- ##
26604 ## M4sh Initialization. ##
26605 ## -------------------- ##
26607 # Be more Bourne compatible
26608 DUALCASE=1; export DUALCASE # for MKS sh
26609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26612 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26613 # is contrary to our usage. Disable this feature.
26614 alias -g '${1+"$@"}'='"$@"'
26615 setopt NO_GLOB_SUBST
26617 case `(set -o) 2>/dev/null` in #(
26629 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26630 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26633 # Prefer a ksh shell builtin over an external printf program on Solaris,
26634 # but without wasting forks for bash or zsh.
26635 if test -z "$BASH_VERSION$ZSH_VERSION" \
26636 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26637 as_echo='print -r --'
26638 as_echo_n='print -rn --'
26639 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26640 as_echo='printf %s\n'
26641 as_echo_n='printf %s'
26643 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26644 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26645 as_echo_n='/usr/ucb/echo -n'
26647 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26648 as_echo_n_body='eval
26652 expr "X$arg" : "X\\(.*\\)$as_nl";
26653 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26655 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26657 export as_echo_n_body
26658 as_echo_n='sh -c $as_echo_n_body as_echo'
26660 export as_echo_body
26661 as_echo='sh -c $as_echo_body as_echo'
26664 # The user is always right.
26665 if test "${PATH_SEPARATOR+set}" != set; then
26667 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26668 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26675 # We need space, tab and new line, in precisely that order. Quoting is
26676 # there to prevent editors from complaining about space-tab.
26677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26678 # splitting by setting IFS to empty value.)
26681 # Find who we are. Look in the path if we contain no directory separator.
26683 *[\\/]* ) as_myself=$0 ;;
26684 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26685 for as_dir in $PATH
26688 test -z "$as_dir" && as_dir=.
26689 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26695 # We did not find ourselves, most probably we were run as `sh COMMAND'
26696 # in which case we are not to be found in the path.
26697 if test "x$as_myself" = x; then
26700 if test ! -f "$as_myself"; then
26701 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26705 # Unset variables that we do not need and which cause bugs (e.g. in
26706 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26707 # suppresses any "Segmentation fault" message there. '((' could
26708 # trigger a bug in pdksh 5.2.14.
26709 for as_var in BASH_ENV ENV MAIL MAILPATH
26710 do eval test x\${$as_var+set} = xset \
26711 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26724 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26727 # as_fn_error ERROR [LINENO LOG_FD]
26728 # ---------------------------------
26729 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26730 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26731 # script with status $?, using 1 if that was 0.
26734 as_status=$?; test $as_status -eq 0 && as_status=1
26736 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26737 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26739 $as_echo "$as_me: error: $1" >&2
26740 as_fn_exit $as_status
26744 # as_fn_set_status STATUS
26745 # -----------------------
26746 # Set $? to STATUS, without forking.
26747 as_fn_set_status ()
26750 } # as_fn_set_status
26752 # as_fn_exit STATUS
26753 # -----------------
26754 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26758 as_fn_set_status $1
26764 # Portably unset VAR.
26767 { eval $1=; unset $1;}
26769 as_unset=as_fn_unset
26770 # as_fn_append VAR VALUE
26771 # ----------------------
26772 # Append the text in VALUE to the end of the definition contained in VAR. Take
26773 # advantage of any shell optimizations that allow amortized linear growth over
26774 # repeated appends, instead of the typical quadratic growth present in naive
26776 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26777 eval 'as_fn_append ()
26788 # as_fn_arith ARG...
26789 # ------------------
26790 # Perform arithmetic evaluation on the ARGs, and store the result in the
26791 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26792 # must be portable across $(()) and expr.
26793 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26794 eval 'as_fn_arith ()
26801 as_val=`expr "$@" || test $? -eq 1`
26806 if expr a : '\(a\)' >/dev/null 2>&1 &&
26807 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26813 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26814 as_basename=basename
26819 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26825 as_me=`$as_basename -- "$0" ||
26826 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26827 X"$0" : 'X\(//\)$' \| \
26828 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26830 sed '/^.*\/\([^/][^/]*\)\/*$/{
26844 # Avoid depending upon Character Ranges.
26845 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26846 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26847 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26848 as_cr_digits='0123456789'
26849 as_cr_alnum=$as_cr_Letters$as_cr_digits
26851 ECHO_C= ECHO_N= ECHO_T=
26852 case `echo -n x` in #(((((
26854 case `echo 'xy\c'` in
26855 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26857 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26864 rm -f conf$$ conf$$.exe conf$$.file
26865 if test -d conf$$.dir; then
26866 rm -f conf$$.dir/conf$$.file
26869 mkdir conf$$.dir 2>/dev/null
26871 if (echo >conf$$.file) 2>/dev/null; then
26872 if ln -s conf$$.file conf$$ 2>/dev/null; then
26874 # ... but there are two gotchas:
26875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26877 # In both cases, we have to default to `cp -p'.
26878 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26880 elif ln conf$$.file conf$$ 2>/dev/null; then
26888 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26889 rmdir conf$$.dir 2>/dev/null
26894 # Create "$as_dir" as a directory, including parents if necessary.
26899 -*) as_dir=./$as_dir;;
26901 test -d "$as_dir" || eval $as_mkdir_p || {
26905 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26906 *) as_qdir=$as_dir;;
26908 as_dirs="'$as_qdir' $as_dirs"
26909 as_dir=`$as_dirname -- "$as_dir" ||
26910 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26911 X"$as_dir" : 'X\(//\)[^/]' \| \
26912 X"$as_dir" : 'X\(//\)$' \| \
26913 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26914 $as_echo X"$as_dir" |
26915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26919 /^X\(\/\/\)[^/].*/{
26932 test -d "$as_dir" && break
26934 test -z "$as_dirs" || eval "mkdir $as_dirs"
26935 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26939 if mkdir -p . 2>/dev/null; then
26940 as_mkdir_p='mkdir -p "$as_dir"'
26942 test -d ./-p && rmdir ./-p
26946 if test -x / >/dev/null 2>&1; then
26947 as_test_x='test -x'
26949 if ls -dL / >/dev/null 2>&1; then
26956 if test -d "$1"; then
26962 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26963 ???[sx]*):;;*)false;;esac;fi
26967 as_executable_p=$as_test_x
26969 # Sed expression to map a string onto a valid CPP name.
26970 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26972 # Sed expression to map a string onto a valid variable name.
26973 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26977 ## ----------------------------------- ##
26978 ## Main body of $CONFIG_STATUS script. ##
26979 ## ----------------------------------- ##
26981 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26984 # Save the log message, to keep $0 and so on meaningful, and to
26985 # report actual input values of CONFIG_FILES etc. instead of their
26986 # values after options handling.
26988 This file was extended by $as_me, which was
26989 generated by GNU Autoconf 2.64. Invocation command line was
26991 CONFIG_FILES = $CONFIG_FILES
26992 CONFIG_HEADERS = $CONFIG_HEADERS
26993 CONFIG_LINKS = $CONFIG_LINKS
26994 CONFIG_COMMANDS = $CONFIG_COMMANDS
26997 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27002 case $ac_config_files in *"
27003 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27006 case $ac_config_headers in *"
27007 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27012 # Files that config.status was made for.
27013 config_files="$ac_config_files"
27014 config_headers="$ac_config_headers"
27015 config_commands="$ac_config_commands"
27019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27021 \`$as_me' instantiates files and other configuration actions
27022 from templates according to the current configuration. Unless the files
27023 and actions are specified as TAGs, all are instantiated by default.
27025 Usage: $0 [OPTION]... [TAG]...
27027 -h, --help print this help, then exit
27028 -V, --version print version number and configuration settings, then exit
27029 -q, --quiet, --silent
27030 do not print progress messages
27031 -d, --debug don't remove temporary files
27032 --recheck update $as_me by reconfiguring in the same conditions
27033 --file=FILE[:TEMPLATE]
27034 instantiate the configuration file FILE
27035 --header=FILE[:TEMPLATE]
27036 instantiate the configuration header FILE
27038 Configuration files:
27041 Configuration headers:
27044 Configuration commands:
27047 Report bugs to the package provider."
27050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27053 configured by $0, generated by GNU Autoconf 2.64,
27054 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27056 Copyright (C) 2009 Free Software Foundation, Inc.
27057 This config.status script is free software; the Free Software Foundation
27058 gives unlimited permission to copy, distribute and modify it."
27063 test -n "\$AWK" || AWK=awk
27066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27067 # The default lists apply if the user does not specify any file.
27073 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27074 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27085 # Handling of the options.
27086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27088 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27089 $as_echo "$ac_cs_version"; exit ;;
27090 --debug | --debu | --deb | --de | --d | -d )
27092 --file | --fil | --fi | --f )
27095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27097 as_fn_append CONFIG_FILES " '$ac_optarg'"
27098 ac_need_defaults=false;;
27099 --header | --heade | --head | --hea )
27102 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27104 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27105 ac_need_defaults=false;;
27107 # Conflict between --help and --header
27108 as_fn_error "ambiguous option: \`$1'
27109 Try \`$0 --help' for more information.";;
27110 --help | --hel | -h )
27111 $as_echo "$ac_cs_usage"; exit ;;
27112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27113 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27116 # This is an error.
27117 -*) as_fn_error "unrecognized option: \`$1'
27118 Try \`$0 --help' for more information." ;;
27120 *) as_fn_append ac_config_targets " $1"
27121 ac_need_defaults=false ;;
27127 ac_configure_extra_args=
27129 if $ac_cs_silent; then
27131 ac_configure_extra_args="$ac_configure_extra_args --silent"
27135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27136 if \$ac_cs_recheck; then
27137 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27139 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27140 CONFIG_SHELL='$SHELL'
27141 export CONFIG_SHELL
27146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27151 ## Running $as_me. ##
27157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27167 # Handling of arguments.
27168 for ac_config_target in $ac_config_targets
27170 case $ac_config_target in
27171 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27172 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27173 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27174 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27175 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27176 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27178 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27183 # If the user did not use the arguments to specify the items to instantiate,
27184 # then the envvar interface is used. Set only those that are not.
27185 # We use the long form for the default assignment because of an extremely
27186 # bizarre bug on SunOS 4.1.3.
27187 if $ac_need_defaults; then
27188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27189 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27190 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27193 # Have a temporary directory for convenience. Make it in the build tree
27194 # simply because there is no reason against having it here, and in addition,
27195 # creating and moving files from /tmp can sometimes cause problems.
27196 # Hook for its removal unless debugging.
27197 # Note that there is a small window in which the directory will not be cleaned:
27198 # after its creation but before its name has been assigned to `$tmp'.
27202 trap 'exit_status=$?
27203 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27205 trap 'as_fn_exit 1' 1 2 13 15
27207 # Create a (secure) tmp directory for tmp files.
27210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27211 test -n "$tmp" && test -d "$tmp"
27214 tmp=./conf$$-$RANDOM
27215 (umask 077 && mkdir "$tmp")
27216 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27218 # Set up the scripts for CONFIG_FILES section.
27219 # No need to generate them if there are no CONFIG_FILES.
27220 # This happens for instance with `./config.status config.h'.
27221 if test -n "$CONFIG_FILES"; then
27223 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27224 ac_cs_awk_getline=:
27225 ac_cs_awk_pipe_init=
27226 ac_cs_awk_read_file='
27227 while ((getline aline < (F[key])) > 0)
27230 ac_cs_awk_pipe_fini=
27232 ac_cs_awk_getline=false
27233 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27234 ac_cs_awk_read_file='
27236 print "cat " F[key] " &&"
27237 '$ac_cs_awk_pipe_init
27238 # The final `:' finishes the AND list.
27239 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27241 ac_cr=`echo X | tr X '\015'`
27242 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27243 # But we know of no other shell where ac_cr would be empty at this
27244 # point, so we can use a bashism as a fallback.
27245 if test "x$ac_cr" = x; then
27246 eval ac_cr=\$\'\\r\'
27248 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27249 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27252 ac_cs_awk_cr=$ac_cr
27255 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27258 # Create commands to substitute file output variables.
27260 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27261 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27262 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27265 } >conf$$files.sh &&
27266 . ./conf$$files.sh ||
27267 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27268 rm -f conf$$files.sh
27271 echo "cat >conf$$subs.awk <<_ACEOF" &&
27272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27274 } >conf$$subs.sh ||
27275 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27278 for ac_last_try in false false false false false :; do
27279 . ./conf$$subs.sh ||
27280 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27283 if test $ac_delim_n = $ac_delim_num; then
27285 elif $ac_last_try; then
27286 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27291 rm -f conf$$subs.sh
27293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27294 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27298 s/^/S["/; s/!.*/"]=/
27308 s/\(.\{148\}\).*/\1/
27310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27322 s/\(.\{148\}\).*/\1/
27324 s/["\\]/\\&/g; s/^/"/; s/$/"/
27328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27333 ' <conf$$subs.awk | sed '
27338 ' >>$CONFIG_STATUS || ac_write_fail=1
27339 rm -f conf$$subs.awk
27340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27342 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27343 for (key in S) S_is_set[key] = 1
27345 \$ac_cs_awk_pipe_init
27349 nfields = split(line, field, "@")
27351 len = length(field[1])
27352 for (i = 2; i < nfields; i++) {
27354 keylen = length(key)
27355 if (S_is_set[key]) {
27357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27358 len += length(value) + length(field[++i])
27363 if (nfields == 3 && !substed) {
27365 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27366 \$ac_cs_awk_read_file
27372 \$ac_cs_awk_pipe_fini
27375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27380 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27381 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27386 # trailing colons and then remove the whole line if VPATH becomes empty
27387 # (actually we leave an empty line to preserve line numbers).
27388 if test "x$srcdir" = x.; then
27389 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27390 s/:*\$(srcdir):*/:/
27391 s/:*\${srcdir}:*/:/
27393 s/^\([^=]*=[ ]*\):*/\1/
27399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27400 fi # test -n "$CONFIG_FILES"
27402 # Set up the scripts for CONFIG_HEADERS section.
27403 # No need to generate them if there are no CONFIG_HEADERS.
27404 # This happens for instance with `./config.status Makefile'.
27405 if test -n "$CONFIG_HEADERS"; then
27406 cat >"$tmp/defines.awk" <<\_ACAWK ||
27410 # Transform confdefs.h into an awk script `defines.awk', embedded as
27411 # here-document in config.status, that substitutes the proper values into
27412 # config.h.in to produce config.h.
27414 # Create a delimiter string that does not exist in confdefs.h, to ease
27415 # handling of long lines.
27417 for ac_last_try in false false :; do
27418 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27419 if test -z "$ac_t"; then
27421 elif $ac_last_try; then
27422 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27428 # For the awk script, D is an array of macro values keyed by name,
27429 # likewise P contains macro parameters if any. Preserve backslash
27430 # newline sequences.
27432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27434 s/.\{148\}/&'"$ac_delim"'/g
27437 s/^[ ]*#[ ]*define[ ][ ]*/ /
27444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27446 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27451 D["\1"]=" \3\\\\\\n"\\/p
27453 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27458 s/.\{148\}/&'"$ac_delim"'/g
27463 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27466 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27468 ' <confdefs.h | sed '
27469 s/'"$ac_delim"'/"\\\
27470 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27473 for (key in D) D_is_set[key] = 1
27476 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27478 split(line, arg, " ")
27479 if (arg[1] == "#") {
27483 defundef = substr(arg[1], 2)
27486 split(mac1, mac2, "(") #)
27488 prefix = substr(line, 1, index(line, defundef) - 1)
27489 if (D_is_set[macro]) {
27490 # Preserve the white space surrounding the "#".
27491 print prefix "define", macro P[macro] D[macro]
27494 # Replace #undef with comments. This is necessary, for example,
27495 # in the case of _POSIX_SOURCE, which is predefined and required
27496 # on some systems where configure will not decide to define it.
27497 if (defundef == "undef") {
27498 print "/*", prefix defundef, macro, "*/"
27506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27507 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27508 fi # test -n "$CONFIG_HEADERS"
27511 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27516 :[FHLC]) ac_mode=$ac_tag; continue;;
27518 case $ac_mode$ac_tag in
27520 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27521 :[FH]-) ac_tag=-:-;;
27522 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27539 -) ac_f="$tmp/stdin";;
27540 *) # Look for the file first in the build tree, then in the source tree
27541 # (if the path is not absolute). The absolute path cannot be DOS-style,
27542 # because $ac_f cannot contain `:'.
27546 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27548 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27550 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27551 as_fn_append ac_file_inputs " '$ac_f'"
27554 # Let's still pretend it is `configure' which instantiates (i.e., don't
27555 # use $as_me), people would be surprised to read:
27556 # /* config.h. Generated by config.status. */
27557 configure_input='Generated from '`
27558 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27560 if test x"$ac_file" != x-; then
27561 configure_input="$ac_file. $configure_input"
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27563 $as_echo "$as_me: creating $ac_file" >&6;}
27565 # Neutralize special characters interpreted by sed in replacement strings.
27566 case $configure_input in #(
27567 *\&* | *\|* | *\\* )
27568 ac_sed_conf_input=`$as_echo "$configure_input" |
27569 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27570 *) ac_sed_conf_input=$configure_input;;
27574 *:-:* | *:-) cat >"$tmp/stdin" \
27575 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27580 ac_dir=`$as_dirname -- "$ac_file" ||
27581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27582 X"$ac_file" : 'X\(//\)[^/]' \| \
27583 X"$ac_file" : 'X\(//\)$' \| \
27584 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27585 $as_echo X"$ac_file" |
27586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27590 /^X\(\/\/\)[^/].*/{
27603 as_dir="$ac_dir"; as_fn_mkdir_p
27607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27610 # A ".." for each directory in $ac_dir_suffix.
27611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27612 case $ac_top_builddir_sub in
27613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27617 ac_abs_top_builddir=$ac_pwd
27618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27619 # for backward compatibility:
27620 ac_top_builddir=$ac_top_build_prefix
27623 .) # We are building in place.
27625 ac_top_srcdir=$ac_top_builddir_sub
27626 ac_abs_top_srcdir=$ac_pwd ;;
27627 [\\/]* | ?:[\\/]* ) # Absolute name.
27628 ac_srcdir=$srcdir$ac_dir_suffix;
27629 ac_top_srcdir=$srcdir
27630 ac_abs_top_srcdir=$srcdir ;;
27631 *) # Relative name.
27632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27633 ac_top_srcdir=$ac_top_build_prefix$srcdir
27634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27648 # If the template does not know about datarootdir, expand it.
27649 # FIXME: This hack should be removed a few years after 2.60.
27650 ac_datarootdir_hack=; ac_datarootdir_seen=
27661 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27662 *datarootdir*) ac_datarootdir_seen=yes;;
27663 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27665 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27668 ac_datarootdir_hack='
27669 s&@datadir@&$datadir&g
27670 s&@docdir@&$docdir&g
27671 s&@infodir@&$infodir&g
27672 s&@localedir@&$localedir&g
27673 s&@mandir@&$mandir&g
27674 s&\\\${datarootdir}&$datarootdir&g' ;;
27678 # Neutralize VPATH when `$srcdir' = `.'.
27679 # Shell code in configure.ac might set extrasub.
27680 # FIXME: do we really want to maintain this feature?
27681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27682 ac_sed_extra="$ac_vpsub
27685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27688 s|@configure_input@|$ac_sed_conf_input|;t t
27689 s&@top_builddir@&$ac_top_builddir_sub&;t t
27690 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27691 s&@srcdir@&$ac_srcdir&;t t
27692 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27693 s&@top_srcdir@&$ac_top_srcdir&;t t
27694 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27695 s&@builddir@&$ac_builddir&;t t
27696 s&@abs_builddir@&$ac_abs_builddir&;t t
27697 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27698 $ac_datarootdir_hack
27700 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27701 if $ac_cs_awk_getline; then
27702 $AWK -f "$tmp/subs.awk"
27704 $AWK -f "$tmp/subs.awk" | $SHELL
27706 || as_fn_error "could not create $ac_file" "$LINENO" 5
27708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27709 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27712 which seems to be undefined. Please make sure it is defined." >&5
27713 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27714 which seems to be undefined. Please make sure it is defined." >&2;}
27718 -) cat "$tmp/out" && rm -f "$tmp/out";;
27719 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27721 || as_fn_error "could not create $ac_file" "$LINENO" 5
27727 if test x"$ac_file" != x-; then
27729 $as_echo "/* $configure_input */" \
27730 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27731 } >"$tmp/config.h" \
27732 || as_fn_error "could not create $ac_file" "$LINENO" 5
27733 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27735 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27738 mv "$tmp/config.h" "$ac_file" \
27739 || as_fn_error "could not create $ac_file" "$LINENO" 5
27742 $as_echo "/* $configure_input */" \
27743 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27744 || as_fn_error "could not create -" "$LINENO" 5
27748 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27749 $as_echo "$as_me: executing $ac_file commands" >&6;}
27754 case $ac_file$ac_mode in
27755 "as":F) chmod +x as ;;
27756 "collect-ld":F) chmod +x collect-ld ;;
27757 "nm":F) chmod +x nm ;;
27759 case ${CONFIG_HEADERS} in
27760 *auto-host.h:config.in*)
27763 # Make sure all the subdirs exist.
27764 for d in $subdirs doc build c-family
27766 test -d $d || mkdir $d
27776 ac_clean_files=$ac_clean_files_save
27778 test $ac_write_fail = 0 ||
27779 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27782 # configure is writing to config.log, and then calls config.status.
27783 # config.status does its own redirection, appending to config.log.
27784 # Unfortunately, on DOS this fails, as config.log is still kept open
27785 # by configure, so config.status won't be able to write to it; its
27786 # output is simply discarded. So we exec the FD to /dev/null,
27787 # effectively closing config.log, so it can be properly (re)opened and
27788 # appended to by config.status. When coming back to configure, we
27789 # need to make the FD available again.
27790 if test "$no_create" != yes; then
27792 ac_config_status_args=
27793 test "$silent" = yes &&
27794 ac_config_status_args="$ac_config_status_args --quiet"
27796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27799 # would make configure fail if this is the last instruction.
27800 $ac_cs_success || as_fn_exit $?
27802 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27804 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}