2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='LTLIBOBJS
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
682 ORIGINAL_NM_FOR_TARGET
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 ORIGINAL_AS_FOR_TARGET
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
766 ENABLE_BUILD_WITH_CXX
769 valgrind_path_defines
841 program_transform_name
852 ac_subst_files='option_includes
855 enable_option_checking
860 enable_generated_files_in_srcdir
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
891 enable_initfini_array
892 enable_sjlj_exceptions
893 with_system_libunwind
895 enable_leading_mingw64_underscores
898 enable_win32_registry
904 enable_gnu_indirect_function
906 enable_gnu_unique_object
907 enable_linker_build_id
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
916 ac_precious_vars='build_alias
937 # Initialize some variables set by options.
939 ac_init_version=false
940 ac_unrecognized_opts=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name=s,x,x,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE}'
976 infodir='${datarootdir}/info'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1053 eval enable_$ac_useropt=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1243 -site=* | --site=* | --sit=*)
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1283 eval with_$ac_useropt=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1299 eval with_$ac_useropt=no ;;
1302 # Obsolete; use --with-x.
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) as_fn_error "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' | [0-9]* | *[!_$as_cr_alnum]* )
1328 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error "missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1352 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 # Check all directory arguments for consistency.
1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val=\$$ac_var
1364 # Remove trailing slashes.
1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\$ac_val;;
1370 # Be sure to have absolute directory names.
1372 [\\/$]* | ?:[\\/]* ) continue;;
1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1383 target=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399 test "$silent" = yes && exec 6>/dev/null
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 as_fn_error "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 as_fn_error "pwd does not report name of working directory"
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1442 ac_srcdir_defaulted=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 --target=TARGET configure for building compilers for TARGET [HOST]
1545 if test -n "$ac_init_help"; then
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-generated-files-in-srcdir
1554 put copies of generated files in source dir
1555 intended for creating source tarballs for users
1556 without texinfo bison or flex.
1557 --disable-largefile omit support for large files
1558 --enable-werror-always enable -Werror despite compiler version
1559 --enable-checking=LIST
1560 enable expensive run-time checks. With LIST,
1561 enable only specific categories of checks.
1562 Categories are: yes,no,all,none,release.
1563 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1564 rtlflag,rtl,runtime,tree,valgrind,types.
1565 --enable-coverage=LEVEL
1566 enable compiler's code coverage collection.
1567 Use to measure compiler performance and locate
1568 unused parts of the compiler. With LEVEL, specify
1569 optimization. Values are opt, noopt,
1571 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1572 --enable-build-with-cxx build with C++ compiler instead of C compiler
1573 --enable-multilib enable library support for multiple ABIs
1574 --enable-__cxa_atexit enable __cxa_atexit for C++
1575 --enable-decimal-float={no,yes,bid,dpd}
1576 enable decimal float extension to C. Selecting 'bid'
1577 or 'dpd' choses which decimal floating point format
1579 --enable-fixed-point enable fixed-point arithmetic extension to C
1580 --enable-threads enable thread usage for target GCC
1581 --enable-threads=LIB use LIB thread package for target GCC
1582 --enable-tls enable or disable generation of tls code
1583 overriding the assembler check for tls support
1584 --enable-objc-gc enable the use of Boehm's garbage collector with
1585 the GNU Objective-C runtime
1586 --disable-shared don't provide a shared libgcc
1587 --enable-languages=LIST specify which front-ends to build
1588 --disable-rpath do not hardcode runtime library paths
1589 --enable-initfini-array use .init_array/.fini_array sections
1590 --enable-sjlj-exceptions
1591 arrange to use setjmp/longjmp exception handling
1592 --enable-secureplt enable -msecure-plt by default for PowerPC
1593 --enable-leading-mingw64-underscores
1594 Enable leading underscores on 64 bit mingw targets
1595 --enable-cld enable -mcld by default for 32bit x86
1596 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1597 --disable-win32-registry
1598 disable lookup of installation paths in the
1599 Registry on Windows hosts
1600 --enable-win32-registry enable registry lookup (default)
1601 --enable-win32-registry=KEY
1602 use KEY instead of GCC version as the last portion
1604 --enable-shared[=PKGS] build shared libraries [default=yes]
1605 --enable-static[=PKGS] build static libraries [default=yes]
1606 --enable-fast-install[=PKGS]
1607 optimize for fast installation [default=yes]
1608 --disable-libtool-lock avoid locking (might break parallel builds)
1609 --enable-gnu-indirect-function
1610 enable the use of the @gnu_indirect_function to
1612 --enable-comdat enable COMDAT group support
1613 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1615 --enable-linker-build-id
1616 compiler will always pass --build-id to linker
1617 --enable-maintainer-mode
1618 enable make rules and dependencies not useful
1619 (and sometimes confusing) to the casual installer
1620 --enable-version-specific-runtime-libs
1621 specify that runtime libraries should be
1622 installed in a compiler-specific directory
1623 --enable-plugin enable plugin support
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628 --with-build-libsubdir=DIR Directory where to find libraries for build system
1629 --with-local-prefix=DIR specifies directory to put local include
1630 --with-gxx-include-dir=DIR
1631 specifies directory to put g++ header files
1632 --with-cpp-install-dir=DIR
1633 install the user visible C preprocessor in DIR
1634 (relative to PREFIX) as well as PREFIX/bin
1635 --with-gnu-ld arrange to work with GNU ld.
1636 --with-ld arrange to use the specified ld (full pathname)
1637 --with-demangler-in-ld try to use demangler in GNU ld.
1638 --with-gnu-as arrange to work with GNU as
1639 --with-as arrange to use the specified as (full pathname)
1640 --with-stabs arrange to use stabs instead of host debug format
1641 --with-dwarf2 force the default debug format to be DWARF 2
1642 --with-build-sysroot=sysroot
1643 use sysroot as the system root during the build
1644 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1645 --with-specs=SPECS add SPECS to driver command-line processing
1646 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1647 --with-bugurl=URL Direct users to URL to report a bug
1648 --with-multilib-list Select multilibs (SH only)
1649 --with-gnu-ld assume the C compiler uses GNU ld default=no
1650 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1651 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1652 --with-system-libunwind use installed libunwind
1653 --with-pic try to use only PIC/non-PIC objects [default=use
1655 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1656 --with-plugin-ld=[ARG] specify the plugin linker
1657 --with-long-double-128 Use 128-bit long double by default.
1658 --with-gc={page,zone} choose the garbage collection mechanism to use
1660 --with-system-zlib use installed libz
1661 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1663 Some influential environment variables:
1664 CC C compiler command
1665 CFLAGS C compiler flags
1666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667 nonstandard directory <lib dir>
1668 LIBS libraries to pass to the linker, e.g. -l<library>
1669 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1670 you have headers in a nonstandard directory <include dir>
1671 CXX C++ compiler command
1672 CXXFLAGS C++ compiler flags
1674 CXXCPP C++ preprocessor
1675 GMPLIBS How to link GMP
1676 GMPINC How to find GMP include files
1677 PPLLIBS How to link PPL
1678 PPLINC How to find PPL include files
1679 CLOOGLIBS How to link CLOOG
1680 CLOOGINC How to find CLOOG include files
1682 Use these variables to override the choices made by `configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1685 Report bugs to the package provider.
1690 if test "$ac_init_help" = "recursive"; then
1691 # If there are subdirs, report their specific --help.
1692 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693 test -d "$ac_dir" ||
1694 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702 # A ".." for each directory in $ac_dir_suffix.
1703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704 case $ac_top_builddir_sub in
1705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709 ac_abs_top_builddir=$ac_pwd
1710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711 # for backward compatibility:
1712 ac_top_builddir=$ac_top_build_prefix
1715 .) # We are building in place.
1717 ac_top_srcdir=$ac_top_builddir_sub
1718 ac_abs_top_srcdir=$ac_pwd ;;
1719 [\\/]* | ?:[\\/]* ) # Absolute name.
1720 ac_srcdir=$srcdir$ac_dir_suffix;
1721 ac_top_srcdir=$srcdir
1722 ac_abs_top_srcdir=$srcdir ;;
1724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725 ac_top_srcdir=$ac_top_build_prefix$srcdir
1726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1730 cd "$ac_dir" || { ac_status=$?; continue; }
1731 # Check for guested configure.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1739 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1749 generated by GNU Autoconf 2.64
1751 Copyright (C) 2009 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 } # ac_fn_c_try_compile
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 } # ac_fn_cxx_try_compile
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } >/dev/null && {
1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1880 ac_fn_c_check_header_mongrel ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1904 ac_header_compiler=no
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1920 ac_header_preproc=no
1922 rm -f conftest.err conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950 $as_echo_n "(cached) " >&6
1952 eval "$3=\$ac_header_compiler"
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 } # ac_fn_c_check_header_mongrel
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_link"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>&5
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980 { { case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_try") 2>&5
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; }; }; then :
1992 $as_echo "$as_me: program exited with status $ac_status" >&5
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 ac_retval=$ac_status
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2021 if ac_fn_c_try_compile "$LINENO"; then :
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036 # --------------------------------------------
2037 # Tries to find the compile-time value of EXPR in a program that includes
2038 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2040 ac_fn_c_compute_int ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if test "$cross_compiling" = yes; then
2044 # Depending upon the size, compute the lo and hi bounds.
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) >= 0)];
2058 if ac_fn_c_try_compile "$LINENO"; then :
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=$ac_mid; break
2077 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2078 if test $ac_lo -le $ac_mid; then
2082 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2093 static int test_array [1 - 2 * !(($2) < 0)];
2100 if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_lo=$ac_mid; break
2119 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120 if test $ac_mid -le $ac_hi; then
2124 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 if ac_fn_c_try_compile "$LINENO"; then :
2153 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2173 FILE *f = fopen ("conftest.val", "w");
2178 long int i = longval ();
2181 fprintf (f, "%ld", i);
2185 unsigned long int i = ulongval ();
2188 fprintf (f, "%lu", i);
2190 /* Do not output a trailing newline, as this causes \r\n confusion
2191 on some platforms. */
2192 return ferror (f) || fclose (f) != 0;
2198 if ac_fn_c_try_run "$LINENO"; then :
2199 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204 conftest.$ac_objext conftest.beam conftest.$ac_ext
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 } # ac_fn_c_compute_int
2213 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2214 # -------------------------------------------
2215 # Tests whether TYPE exists after having included INCLUDES, setting cache
2216 # variable VAR accordingly.
2217 ac_fn_c_check_type ()
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223 $as_echo_n "(cached) " >&6
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2251 if ac_fn_c_try_compile "$LINENO"; then :
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 } # ac_fn_c_check_type
2267 # ac_fn_c_find_intX_t LINENO BITS VAR
2268 # -----------------------------------
2269 # Finds a signed integer type with width BITS, setting cache variable VAR
2271 ac_fn_c_find_intX_t ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2275 $as_echo_n "checking for int$2_t... " >&6; }
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2280 for ac_type in int$2_t 'int' 'long int' \
2281 'long long int' 'short int' 'signed char'; do
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 $ac_includes_default
2288 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2302 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2303 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2310 if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$3=\$ac_type" ;;
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 if test "x$as_val" = x""no; then :
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2336 } # ac_fn_c_find_intX_t
2338 # ac_fn_c_try_link LINENO
2339 # -----------------------
2340 # Try to link conftest.$ac_ext, and return whether this succeeded.
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 rm -f conftest.$ac_objext conftest$ac_exeext
2345 if { { ac_try="$ac_link"
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link") 2>conftest.err
2354 if test -s conftest.err; then
2355 grep -v '^ *+' conftest.err >conftest.er1
2356 cat conftest.er1 >&5
2357 mv -f conftest.er1 conftest.err
2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360 test $ac_status = 0; } && {
2361 test -z "$ac_c_werror_flag" ||
2362 test ! -s conftest.err
2363 } && test -s conftest$ac_exeext && {
2364 test "$cross_compiling" = yes ||
2365 $as_test_x conftest$ac_exeext
2369 $as_echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2374 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376 # interfere with the next link command; also delete a directory that is
2377 # left behind by Apple's compiler. We do this before executing the actions.
2378 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2379 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2382 } # ac_fn_c_try_link
2384 # ac_fn_c_find_uintX_t LINENO BITS VAR
2385 # ------------------------------------
2386 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2388 ac_fn_c_find_uintX_t ()
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2392 $as_echo_n "checking for uint$2_t... " >&6; }
2393 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2394 $as_echo_n "(cached) " >&6
2397 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2398 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2401 $ac_includes_default
2405 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2412 if ac_fn_c_try_compile "$LINENO"; then :
2417 eval "$3=\$ac_type" ;;
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 if test "x$as_val" = x""no; then :
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2434 } # ac_fn_c_find_uintX_t
2436 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2437 # ----------------------------------------------
2438 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2439 ac_fn_c_check_header_preproc ()
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2451 if ac_fn_c_try_cpp "$LINENO"; then :
2456 rm -f conftest.err conftest.$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 } # ac_fn_c_check_header_preproc
2465 # ac_fn_c_check_func LINENO FUNC VAR
2466 # ----------------------------------
2467 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2468 ac_fn_c_check_func ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2480 #define $2 innocuous_$2
2482 /* System header to define __stub macros and hopefully few prototypes,
2483 which can conflict with char $2 (); below.
2484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485 <limits.h> exists even on freestanding compilers. */
2488 # include <limits.h>
2490 # include <assert.h>
2495 /* Override any GCC internal prototype to avoid an error.
2496 Use char because int might match the return type of a GCC
2497 builtin and then its argument prototype would still apply. */
2502 /* The GNU C library defines this for functions which it implements
2503 to always fail with ENOSYS. Some functions are actually named
2504 something starting with __ and the normal name is an alias. */
2505 #if defined __stub_$2 || defined __stub___$2
2517 if ac_fn_c_try_link "$LINENO"; then :
2522 rm -f core conftest.err conftest.$ac_objext \
2523 conftest$ac_exeext conftest.$ac_ext
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2530 } # ac_fn_c_check_func
2532 # ac_fn_cxx_try_cpp LINENO
2533 # ------------------------
2534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2535 ac_fn_cxx_try_cpp ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 if { { ac_try="$ac_cpp conftest.$ac_ext"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2544 $as_echo "$ac_try_echo"; } >&5
2545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2547 if test -s conftest.err; then
2548 grep -v '^ *+' conftest.err >conftest.er1
2549 cat conftest.er1 >&5
2550 mv -f conftest.er1 conftest.err
2552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2553 test $ac_status = 0; } >/dev/null && {
2554 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2555 test ! -s conftest.err
2559 $as_echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 } # ac_fn_cxx_try_cpp
2569 # ac_fn_cxx_try_link LINENO
2570 # -------------------------
2571 # Try to link conftest.$ac_ext, and return whether this succeeded.
2572 ac_fn_cxx_try_link ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 rm -f conftest.$ac_objext conftest$ac_exeext
2576 if { { ac_try="$ac_link"
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2582 $as_echo "$ac_try_echo"; } >&5
2583 (eval "$ac_link") 2>conftest.err
2585 if test -s conftest.err; then
2586 grep -v '^ *+' conftest.err >conftest.er1
2587 cat conftest.er1 >&5
2588 mv -f conftest.er1 conftest.err
2590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591 test $ac_status = 0; } && {
2592 test -z "$ac_cxx_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest$ac_exeext && {
2595 test "$cross_compiling" = yes ||
2596 $as_test_x conftest$ac_exeext
2600 $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2607 # interfere with the next link command; also delete a directory that is
2608 # left behind by Apple's compiler. We do this before executing the actions.
2609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2613 } # ac_fn_cxx_try_link
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2618 It was created by $as_me, which was
2619 generated by GNU Autoconf 2.64. Invocation command line was
2631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2638 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2640 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2641 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2643 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2644 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2645 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2646 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 $as_echo "PATH: $as_dir"
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2679 ac_must_keep_next=false
2685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687 | -silent | --silent | --silen | --sile | --sil)
2690 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2693 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2695 as_fn_append ac_configure_args1 " '$ac_arg'"
2696 if test $ac_must_keep_next = true; then
2697 ac_must_keep_next=false # Got value, back to normal.
2700 *=* | --config-cache | -C | -disable-* | --disable-* \
2701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703 | -with-* | --with-* | -without-* | --without-* | --x)
2704 case "$ac_configure_args0 " in
2705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2708 -* ) ac_must_keep_next=true ;;
2711 as_fn_append ac_configure_args " '$ac_arg'"
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log. We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725 # Save into config.log some information that might help in debugging.
2730 ## ---------------- ##
2731 ## Cache variables. ##
2732 ## ---------------- ##
2735 # The following way of writing the cache mishandles newlines in values,
2737 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2738 eval ac_val=\$$ac_var
2742 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2746 _ | IFS | as_nl) ;; #(
2747 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2748 *) { eval $ac_var=; unset $ac_var;} ;;
2753 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2754 *${as_nl}ac_space=\ *)
2756 "s/'\''/'\''\\\\'\'''\''/g;
2757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2768 ## ----------------- ##
2769 ## Output variables. ##
2770 ## ----------------- ##
2773 for ac_var in $ac_subst_vars
2775 eval ac_val=\$$ac_var
2777 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 $as_echo "$ac_var='\''$ac_val'\''"
2783 if test -n "$ac_subst_files"; then
2785 ## ------------------- ##
2786 ## File substitutions. ##
2787 ## ------------------- ##
2790 for ac_var in $ac_subst_files
2792 eval ac_val=\$$ac_var
2794 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796 $as_echo "$ac_var='\''$ac_val'\''"
2801 if test -s confdefs.h; then
2811 test "$ac_signal" != 0 &&
2812 $as_echo "$as_me: caught signal $ac_signal"
2813 $as_echo "$as_me: exit $exit_status"
2815 rm -f core *.core core.conftest.* &&
2816 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2819 for ac_signal in 1 2 13 15; do
2820 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2825 rm -f -r conftest* confdefs.h
2827 $as_echo "/* confdefs.h */" > confdefs.h
2829 # Predefined preprocessor variables.
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_NAME "$PACKAGE_NAME"
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_STRING "$PACKAGE_STRING"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_URL "$PACKAGE_URL"
2856 # Let the site file select an alternate cache file if it wants to.
2857 # Prefer an explicitly selected file to automatically selected ones.
2860 if test -n "$CONFIG_SITE"; then
2861 ac_site_file1=$CONFIG_SITE
2862 elif test "x$prefix" != xNONE; then
2863 ac_site_file1=$prefix/share/config.site
2864 ac_site_file2=$prefix/etc/config.site
2866 ac_site_file1=$ac_default_prefix/share/config.site
2867 ac_site_file2=$ac_default_prefix/etc/config.site
2869 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2871 test "x$ac_site_file" = xNONE && continue
2872 if test -r "$ac_site_file"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2874 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2875 sed 's/^/| /' "$ac_site_file" >&5
2880 if test -r "$cache_file"; then
2881 # Some versions of bash will fail to source /dev/null (special
2882 # files actually), so we avoid doing that.
2883 if test -f "$cache_file"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2885 $as_echo "$as_me: loading cache $cache_file" >&6;}
2887 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2888 *) . "./$cache_file";;
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2893 $as_echo "$as_me: creating cache $cache_file" >&6;}
2897 # Check that the precious variables saved in the cache have kept the same
2899 ac_cache_corrupted=false
2900 for ac_var in $ac_precious_vars; do
2901 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2902 eval ac_new_set=\$ac_env_${ac_var}_set
2903 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2904 eval ac_new_val=\$ac_env_${ac_var}_value
2905 case $ac_old_set,$ac_new_set in
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2908 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2916 if test "x$ac_old_val" != "x$ac_new_val"; then
2917 # differences in whitespace do not lead to failure.
2918 ac_old_val_w=`echo x $ac_old_val`
2919 ac_new_val_w=`echo x $ac_new_val`
2920 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2922 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2923 ac_cache_corrupted=:
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2926 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2927 eval $ac_var=\$ac_old_val
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2930 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2932 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2935 # Pass precious variables to config.status.
2936 if test "$ac_new_set" = set; then
2938 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2939 *) ac_arg=$ac_var=$ac_new_val ;;
2941 case " $ac_configure_args " in
2942 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2943 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2947 if $ac_cache_corrupted; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2951 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2952 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2954 ## -------------------- ##
2955 ## Main body of script. ##
2956 ## -------------------- ##
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2972 gcc_version=`cat $srcdir/BASE-VER`
2974 # Determine the host, build, and target systems
2976 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2977 for ac_t in install-sh install.sh shtool; do
2978 if test -f "$ac_dir/$ac_t"; then
2980 ac_install_sh="$ac_aux_dir/$ac_t -c"
2985 if test -z "$ac_aux_dir"; then
2986 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2989 # These three variables are undocumented and unsupported,
2990 # and are intended to be withdrawn in a future Autoconf release.
2991 # They can cause serious problems if a builder's source tree is in a directory
2992 # whose full name contains unusual characters.
2993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2998 # Make sure we can run config.sub.
2999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3000 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3003 $as_echo_n "checking build system type... " >&6; }
3004 if test "${ac_cv_build+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3007 ac_build_alias=$build_alias
3008 test "x$ac_build_alias" = x &&
3009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3010 test "x$ac_build_alias" = x &&
3011 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3013 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3017 $as_echo "$ac_cv_build" >&6; }
3018 case $ac_cv_build in
3020 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3023 ac_save_IFS=$IFS; IFS='-'
3029 # Remember, the first character of IFS is used to create $*,
3030 # except with old shells:
3033 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3037 $as_echo_n "checking host system type... " >&6; }
3038 if test "${ac_cv_host+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3041 if test "x$host_alias" = x; then
3042 ac_cv_host=$ac_cv_build
3044 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3045 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3050 $as_echo "$ac_cv_host" >&6; }
3053 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3056 ac_save_IFS=$IFS; IFS='-'
3062 # Remember, the first character of IFS is used to create $*,
3063 # except with old shells:
3066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3070 $as_echo_n "checking target system type... " >&6; }
3071 if test "${ac_cv_target+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3074 if test "x$target_alias" = x; then
3075 ac_cv_target=$ac_cv_host
3077 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3078 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3083 $as_echo "$ac_cv_target" >&6; }
3084 case $ac_cv_target in
3086 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3088 target=$ac_cv_target
3089 ac_save_IFS=$IFS; IFS='-'
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3099 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3102 # The aliases save the names the user supplied, while $host etc.
3103 # will get canonicalized.
3104 test -n "$target_alias" &&
3105 test "$program_prefix$program_suffix$program_transform_name" = \
3107 program_prefix=${target_alias}-
3109 # Determine the noncanonical target name, for directory use.
3110 case ${build_alias} in
3111 "") build_noncanonical=${build} ;;
3112 *) build_noncanonical=${build_alias} ;;
3115 case ${host_alias} in
3116 "") host_noncanonical=${build_noncanonical} ;;
3117 *) host_noncanonical=${host_alias} ;;
3120 case ${target_alias} in
3121 "") target_noncanonical=${host_noncanonical} ;;
3122 *) target_noncanonical=${target_alias} ;;
3128 # Determine the target- and build-specific subdirectories
3130 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3131 # have matching libraries, they should use host libraries: Makefile.tpl
3132 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3133 # However, they still use the build modules, because the corresponding
3134 # host modules (e.g. bison) are only built for the host when bootstrap
3136 # - build_subdir is where we find build modules, and never changes.
3137 # - build_libsubdir is where we find build libraries, and can be overridden.
3139 # Prefix 'build-' so this never conflicts with target_subdir.
3140 build_subdir="build-${build_noncanonical}"
3142 # Check whether --with-build-libsubdir was given.
3143 if test "${with_build_libsubdir+set}" = set; then :
3144 withval=$with_build_libsubdir; build_libsubdir="$withval"
3146 build_libsubdir="$build_subdir"
3149 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3150 if ( test $srcdir = . && test -d gcc ) \
3151 || test -d $srcdir/../host-${host_noncanonical}; then
3152 host_subdir="host-${host_noncanonical}"
3157 target_subdir=${target_noncanonical}
3160 # Set program_transform_name
3161 test "$program_prefix" != NONE &&
3162 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3166 # Double any \ or $.
3167 # By default was `s,x,x', remove it if useless.
3168 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3169 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3172 # Check for bogus environment variables.
3173 # Test if LIBRARY_PATH contains the notation for the current directory
3174 # since this would lead to problems installing/building glibc.
3175 # LIBRARY_PATH contains the current directory if one of the following
3177 # - one of the terminals (":" and ";") is the first or last sign
3178 # - two terminals occur directly after each other
3179 # - the path contains an element with a dot in it
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3181 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3182 case ${LIBRARY_PATH} in
3183 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3184 library_path_setting="contains current directory"
3187 library_path_setting="ok"
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3191 $as_echo "$library_path_setting" >&6; }
3192 if test "$library_path_setting" != "ok"; then
3194 *** LIBRARY_PATH shouldn't contain the current directory when
3195 *** building gcc. Please change the environment variable
3196 *** and run configure again." "$LINENO" 5
3199 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3200 # since this would lead to problems installing/building glibc.
3201 # GCC_EXEC_PREFIX contains the current directory if one of the following
3203 # - one of the terminals (":" and ";") is the first or last sign
3204 # - two terminals occur directly after each other
3205 # - the path contains an element with a dot in it
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3207 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3208 case ${GCC_EXEC_PREFIX} in
3209 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3210 gcc_exec_prefix_setting="contains current directory"
3213 gcc_exec_prefix_setting="ok"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3217 $as_echo "$gcc_exec_prefix_setting" >&6; }
3218 if test "$gcc_exec_prefix_setting" != "ok"; then
3220 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3221 *** building gcc. Please change the environment variable
3222 *** and run configure again." "$LINENO" 5
3229 # Specify the local prefix
3232 # Check whether --with-local-prefix was given.
3233 if test "${with_local_prefix+set}" = set; then :
3234 withval=$with_local_prefix; case "${withval}" in
3235 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3237 *) local_prefix=$with_local_prefix ;;
3242 # Default local prefix if it is empty
3243 if test x$local_prefix = x; then
3244 local_prefix=/usr/local
3247 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3248 # passed in by the toplevel make and thus we'd get different behavior
3249 # depending on where we built the sources.
3250 gcc_gxx_include_dir=
3251 # Specify the g++ header file directory
3253 # Check whether --with-gxx-include-dir was given.
3254 if test "${with_gxx_include_dir+set}" = set; then :
3255 withval=$with_gxx_include_dir; case "${withval}" in
3256 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3258 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3263 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3264 if test x${gcc_gxx_include_dir} = x; then
3265 if test x${enable_version_specific_runtime_libs} = xyes; then
3266 gcc_gxx_include_dir='${libsubdir}/include/c++'
3268 libstdcxx_incdir='include/c++/$(version)'
3269 if test x$host != x$target; then
3270 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3272 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3277 # Check whether --with-cpp_install_dir was given.
3278 if test "${with_cpp_install_dir+set}" = set; then :
3279 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3280 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3281 elif test x$withval != xno; then
3282 cpp_install_dir=$withval
3287 # We would like to our source tree to be readonly. However when releases or
3288 # pre-releases are generated, the flex/bison generated files as well as the
3289 # various formats of manuals need to be included along with the rest of the
3290 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3294 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3295 # Check whether --enable-generated-files-in-srcdir was given.
3296 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3297 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3299 generated_files_in_srcdir=no
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3304 $as_echo "$generated_files_in_srcdir" >&6; }
3306 if test "$generated_files_in_srcdir" = "yes"; then
3313 # -------------------
3314 # Find default linker
3315 # -------------------
3319 # Check whether --with-gnu-ld was given.
3320 if test "${with_gnu_ld+set}" = set; then :
3321 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3327 # With pre-defined ld
3329 # Check whether --with-ld was given.
3330 if test "${with_ld+set}" = set; then :
3331 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3334 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3335 if test ! -x "$DEFAULT_LINKER"; then
3336 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3337 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3341 cat >>confdefs.h <<_ACEOF
3342 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3347 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3349 cat >>confdefs.h <<_ACEOF
3350 #define HAVE_GNU_LD $gnu_ld
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3355 $as_echo_n "checking whether a default linker was specified... " >&6; }
3356 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3357 if test x"$gnu_ld_flag" = x"no"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3359 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3362 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3369 # With demangler in GNU ld
3371 # Check whether --with-demangler-in-ld was given.
3372 if test "${with_demangler_in_ld+set}" = set; then :
3373 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3379 # ----------------------
3380 # Find default assembler
3381 # ----------------------
3385 # Check whether --with-gnu-as was given.
3386 if test "${with_gnu_as+set}" = set; then :
3387 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3394 # Check whether --with-as was given.
3395 if test "${with_as+set}" = set; then :
3396 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3399 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3400 if test ! -x "$DEFAULT_ASSEMBLER"; then
3401 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3402 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3406 cat >>confdefs.h <<_ACEOF
3407 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3412 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3414 cat >>confdefs.h <<_ACEOF
3415 #define HAVE_GNU_AS $gnu_as
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3420 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3421 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3422 if test x"$gas_flag" = x"no"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3424 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3427 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3438 # If a non-executable a.out is present (e.g. created by GNU as above even if
3439 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3440 # file, even when creating an executable, so an execution test fails.
3441 # Remove possible default executable files to avoid this.
3443 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3444 # Autoconf includes it.
3445 rm -f a.out a.exe b.out
3447 # Find the native compiler
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 if test -n "$ac_tool_prefix"; then
3454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3455 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_CC+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3461 if test -n "$CC"; then
3462 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3492 if test -z "$ac_cv_prog_CC"; then
3494 # Extract the first word of "gcc", so it can be a program name with args.
3495 set dummy gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_ac_ct_CC="gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3530 if test "x$ac_ct_CC" = x; then
3533 case $cross_compiling:$ac_tool_warned in
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned=yes ;;
3545 if test -z "$CC"; then
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}cc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_CC+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_CC="${ac_tool_prefix}cc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3586 if test -z "$CC"; then
3587 # Extract the first word of "cc", so it can be a program name with args.
3588 set dummy cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606 ac_prog_rejected=yes
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 if test $ac_prog_rejected = yes; then
3618 # We found a bogon in the path, so make sure we never use it.
3619 set dummy $ac_cv_prog_CC
3621 if test $# != 0; then
3622 # We chose a different compiler from the bogus one.
3623 # However, it has the same basename, so the bogon will be chosen
3624 # first if we set CC to just the basename; use the full file name.
3626 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 for ac_prog in cl.exe
3646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if test "${ac_cv_prog_CC+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3683 test -n "$CC" && break
3686 if test -z "$CC"; then
3688 for ac_prog in cl.exe
3690 # Extract the first word of "$ac_prog", so it can be a program name with args.
3691 set dummy $ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$ac_ct_CC"; then
3698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_ac_ct_CC="$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3720 $as_echo "$ac_ct_CC" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$ac_ct_CC" && break
3730 if test "x$ac_ct_CC" = x; then
3733 case $cross_compiling:$ac_tool_warned in
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3746 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error "no acceptable C compiler found in \$PATH
3749 See \`config.log' for more details." "$LINENO" 5; }
3751 # Provide some information about the compiler.
3752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3755 for ac_option in --version -v -V -qversion; do
3756 { { ac_try="$ac_compiler $ac_option >&5"
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3765 if test -s conftest.err; then
3767 ... rest of stderr output deleted ...
3768 10q' conftest.err >conftest.er1
3769 cat conftest.er1 >&5
3770 rm -f conftest.er1 conftest.err
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3787 ac_clean_files_save=$ac_clean_files
3788 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3789 # Try to create an executable without -o first, disregard a.out.
3790 # It will help us diagnose broken compilers, and finding out an intuition
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3793 $as_echo_n "checking for C compiler default output file name... " >&6; }
3794 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3796 # The possible output files:
3797 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3800 for ac_file in $ac_files
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809 if { { ac_try="$ac_link_default"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_link_default") 2>&5
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3823 # so that the user can short-circuit this test for compilers unknown to
3825 for ac_file in $ac_files ''
3827 test -f "$ac_file" || continue
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3832 # We found the default executable, but exeext='' is most
3836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3840 # We set ac_cv_exeext here because the later test for it is not
3841 # safe: cross compilers may not add the suffix if given an `-o'
3842 # argument, so we may need to know it at that point already.
3843 # Even if this section looks crufty: it has the advantage of
3850 test "$ac_cv_exeext" = no && ac_cv_exeext=
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3856 $as_echo "$ac_file" >&6; }
3857 if test -z "$ac_file"; then :
3858 $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 { as_fn_set_status 77
3864 as_fn_error "C compiler cannot create executables
3865 See \`config.log' for more details." "$LINENO" 5; }; }
3867 ac_exeext=$ac_cv_exeext
3869 # Check that the compiler produces executables we can run. If not, either
3870 # the compiler is broken, or we cross compile.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3872 $as_echo_n "checking whether the C compiler works... " >&6; }
3873 # If not cross compiling, check that we can run a simple program.
3874 if test "$cross_compiling" != yes; then
3875 if { ac_try='./$ac_file'
3876 { { case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_try") 2>&5
3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }; }; then
3888 if test "$cross_compiling" = maybe; then
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error "cannot run C compiled programs.
3894 If you meant to cross compile, use \`--host'.
3895 See \`config.log' for more details." "$LINENO" 5; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 $as_echo "yes" >&6; }
3902 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3903 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
3907 $as_echo_n "checking whether we are cross compiling... " >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3909 $as_echo "$cross_compiling" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_link") 2>&5
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3928 for ac_file in conftest.exe conftest conftest.*; do
3929 test -f "$ac_file" || continue
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details." "$LINENO" 5; }
3943 rm -f conftest$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3951 $as_echo_n "checking for suffix of object files... " >&6; }
3952 if test "${ac_cv_objext+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3966 rm -f conftest.o conftest.obj
3967 if { { ac_try="$ac_compile"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_compile") 2>&5
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 for ac_file in conftest.o conftest.obj conftest.*; do
3979 test -f "$ac_file" || continue;
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error "cannot compute suffix of object files: cannot compile
3993 See \`config.log' for more details." "$LINENO" 5; }
3995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3998 $as_echo "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4020 if ac_fn_c_try_compile "$LINENO"; then :
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then
4036 ac_test_CFLAGS=${CFLAGS+set}
4037 ac_save_CFLAGS=$CFLAGS
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4040 if test "${ac_cv_prog_cc_g+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4043 ac_save_c_werror_flag=$ac_c_werror_flag
4044 ac_c_werror_flag=yes
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4058 if ac_fn_c_try_compile "$LINENO"; then :
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 if ac_fn_c_try_compile "$LINENO"; then :
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4089 if ac_fn_c_try_compile "$LINENO"; then :
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_c_werror_flag=$ac_save_c_werror_flag
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4100 $as_echo "$ac_cv_prog_cc_g" >&6; }
4101 if test "$ac_test_CFLAGS" = set; then
4102 CFLAGS=$ac_save_CFLAGS
4103 elif test $ac_cv_prog_cc_g = yes; then
4104 if test "$GCC" = yes; then
4110 if test "$GCC" = yes; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4117 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4118 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4121 ac_cv_prog_cc_c89=no
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 #include <sys/types.h>
4128 #include <sys/stat.h>
4129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4130 struct buf { int x; };
4131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4132 static char *e (p, i)
4138 static char *f (char * (*g) (char **, int), char **p, ...)
4143 s = g (p, va_arg (v,int));
4148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4149 function prototypes and stuff, but not '\xHH' hex character constants.
4150 These don't provoke an error unfortunately, instead are silently treated
4151 as 'x'. The following induces an error, until -std is added to get
4152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4153 array size at least. It's necessary to write '\x00'==0 to get something
4154 that's true only with -std. */
4155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4158 inside strings and character constants. */
4160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4162 int test (int i, double x);
4163 struct s1 {int (*f) (int a);};
4164 struct s2 {int (*f) (double a);};
4165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4179 CC="$ac_save_CC $ac_arg"
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_c89=$ac_arg
4183 rm -f core conftest.err conftest.$ac_objext
4184 test "x$ac_cv_prog_cc_c89" != "xno" && break
4186 rm -f conftest.$ac_ext
4191 case "x$ac_cv_prog_cc_c89" in
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194 $as_echo "none needed" >&6; } ;;
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197 $as_echo "unsupported" >&6; } ;;
4199 CC="$CC $ac_cv_prog_cc_c89"
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4203 if test "x$ac_cv_prog_cc_c89" != xno; then :
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 if test "x$CC" != xcc; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4215 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4218 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4220 set dummy $CC; ac_cc=`$as_echo "$2" |
4221 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4222 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4223 $as_echo_n "(cached) " >&6
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4236 # Make sure it works both with $CC and with simple cc.
4237 # We do the test twice because some compilers refuse to overwrite an
4238 # existing .o file with -o, though they will create one.
4239 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4241 if { { case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_try") 2>&5
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; } &&
4251 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_try") 2>&5
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; };
4262 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4263 if test "x$CC" != xcc; then
4264 # Test first that cc exists at all.
4265 if { ac_try='cc -c conftest.$ac_ext >&5'
4266 { { case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272 (eval "$ac_try") 2>&5
4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275 test $ac_status = 0; }; }; then
4276 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4278 if { { case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_try") 2>&5
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; } &&
4288 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; };
4302 # cc exists but doesn't like -o.
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4308 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4310 rm -f core conftest*
4313 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4315 $as_echo "yes" >&6; }
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4320 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4324 # expand $ac_aux_dir to an absolute path
4325 am_aux_dir=`cd $ac_aux_dir && pwd`
4327 # FIXME: we rely on the cache variable name because
4328 # there is no other way.
4330 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4331 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4332 if test "$am_t" != yes; then
4333 # Losing compiler, so override with the script.
4334 # FIXME: It is wrong to rewrite CC.
4335 # But if we don't then we get into trouble of one sort or another.
4336 # A longer-term fix would be to have automake use am__CC in this case,
4337 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4338 CC="$am_aux_dir/compile $CC"
4343 ac_cpp='$CXXCPP $CPPFLAGS'
4344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4347 if test -z "$CXX"; then
4348 if test -n "$CCC"; then
4351 if test -n "$ac_tool_prefix"; then
4352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_prog_CXX+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4361 if test -n "$CXX"; then
4362 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 if test -n "$CXX"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4384 $as_echo "$CXX" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4391 test -n "$CXX" && break
4394 if test -z "$CXX"; then
4396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4398 # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -n "$ac_ct_CXX"; then
4406 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_ac_ct_CXX="$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4426 if test -n "$ac_ct_CXX"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4428 $as_echo "$ac_ct_CXX" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$ac_ct_CXX" && break
4438 if test "x$ac_ct_CXX" = x; then
4441 case $cross_compiling:$ac_tool_warned in
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4453 # Provide some information about the compiler.
4454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4457 for ac_option in --version -v -V -qversion; do
4458 { { ac_try="$ac_compiler $ac_option >&5"
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4467 if test -s conftest.err; then
4469 ... rest of stderr output deleted ...
4470 10q' conftest.err >conftest.er1
4471 cat conftest.er1 >&5
4472 rm -f conftest.er1 conftest.err
4474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475 test $ac_status = 0; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4479 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4480 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4497 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4507 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4508 if test $ac_compiler_gnu = yes; then
4513 ac_test_CXXFLAGS=${CXXFLAGS+set}
4514 ac_save_CXXFLAGS=$CXXFLAGS
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4516 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4517 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4520 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4521 ac_cxx_werror_flag=yes
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536 ac_cv_prog_cxx_g=yes
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4550 if ac_fn_cxx_try_compile "$LINENO"; then :
4553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4566 if ac_fn_cxx_try_compile "$LINENO"; then :
4567 ac_cv_prog_cxx_g=yes
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4577 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4578 if test "$ac_test_CXXFLAGS" = set; then
4579 CXXFLAGS=$ac_save_CXXFLAGS
4580 elif test $ac_cv_prog_cxx_g = yes; then
4581 if test "$GXX" = yes; then
4587 if test "$GXX" = yes; then
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4610 if test -n "$GNATBIND"; then
4611 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 GNATBIND=$ac_cv_prog_GNATBIND
4631 if test -n "$GNATBIND"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4633 $as_echo "$GNATBIND" >&6; }
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4641 if test -z "$ac_cv_prog_GNATBIND"; then
4642 ac_ct_GNATBIND=$GNATBIND
4643 # Extract the first word of "gnatbind", so it can be a program name with args.
4644 set dummy gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$ac_ct_GNATBIND"; then
4651 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4671 if test -n "$ac_ct_GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4673 $as_echo "$ac_ct_GNATBIND" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4679 if test "x$ac_ct_GNATBIND" = x; then
4682 case $cross_compiling:$ac_tool_warned in
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4688 GNATBIND=$ac_ct_GNATBIND
4691 GNATBIND="$ac_cv_prog_GNATBIND"
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4702 if test -n "$GNATMAKE"; then
4703 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 GNATMAKE=$ac_cv_prog_GNATMAKE
4723 if test -n "$GNATMAKE"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4725 $as_echo "$GNATMAKE" >&6; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4733 if test -z "$ac_cv_prog_GNATMAKE"; then
4734 ac_ct_GNATMAKE=$GNATMAKE
4735 # Extract the first word of "gnatmake", so it can be a program name with args.
4736 set dummy gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$ac_ct_GNATMAKE"; then
4743 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4763 if test -n "$ac_ct_GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4765 $as_echo "$ac_ct_GNATMAKE" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4771 if test "x$ac_ct_GNATMAKE" = x; then
4774 case $cross_compiling:$ac_tool_warned in
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4780 GNATMAKE=$ac_ct_GNATMAKE
4783 GNATMAKE="$ac_cv_prog_GNATMAKE"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4787 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4788 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 cat >conftest.adb <<EOF
4792 procedure conftest is begin null; end conftest;
4794 acx_cv_cc_gcc_supports_ada=no
4795 # There is a bug in old released versions of GCC which causes the
4796 # driver to exit successfully when the appropriate language module
4797 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4798 # Therefore we must check for the error message as well as an
4799 # unsuccessful exit.
4800 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4801 # given a .adb file, but produce no object file. So we must check
4802 # if an object file was really produced to guard against this.
4803 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4804 if test x"$errors" = x && test -f conftest.$ac_objext; then
4805 acx_cv_cc_gcc_supports_ada=yes
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4810 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4812 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4819 # autoconf is lame and doesn't give us any substitution variable for this.
4820 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4821 NO_MINUS_C_MINUS_O=yes
4823 OUTPUT_OPTION='-o $@'
4828 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4829 # optimizations to be activated explicitly by the toplevel.
4831 */prev-gcc/xgcc*) ;;
4832 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4836 # -------------------------
4837 # Check C compiler features
4838 # -------------------------
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4848 # On Suns, sometimes $CPP names a directory.
4849 if test -n "$CPP" && test -d "$CPP"; then
4852 if test -z "$CPP"; then
4853 if test "${ac_cv_prog_CPP+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 # Double quotes because CPP needs to be expanded
4857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4860 for ac_c_preproc_warn_flag in '' yes
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4871 # include <limits.h>
4873 # include <assert.h>
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4880 # Broken: fails on valid input.
4883 rm -f conftest.err conftest.$ac_ext
4885 # OK, works on sane cases. Now check whether nonexistent headers
4886 # can be detected and how.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <ac_nonexistent.h>
4891 if ac_fn_c_try_cpp "$LINENO"; then :
4892 # Broken: success on invalid input.
4895 # Passes both tests.
4899 rm -f conftest.err conftest.$ac_ext
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then :
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4917 $as_echo "$CPP" >&6; }
4919 for ac_c_preproc_warn_flag in '' yes
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4930 # include <limits.h>
4932 # include <assert.h>
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4939 # Broken: fails on valid input.
4942 rm -f conftest.err conftest.$ac_ext
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <ac_nonexistent.h>
4950 if ac_fn_c_try_cpp "$LINENO"; then :
4951 # Broken: success on invalid input.
4954 # Passes both tests.
4958 rm -f conftest.err conftest.$ac_ext
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.$ac_ext
4963 if $ac_preproc_ok; then :
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details." "$LINENO" 5; }
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4980 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4981 if test "${ac_cv_path_GREP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4984 if test -z "$GREP"; then
4985 ac_path_GREP_found=false
4986 # Loop through the user's path and test for each of PROGNAME-LIST
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4991 test -z "$as_dir" && as_dir=.
4992 for ac_prog in grep ggrep; do
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4995 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4996 # Check for GNU ac_path_GREP and select it if it is found.
4997 # Check for GNU $ac_path_GREP
4998 case `"$ac_path_GREP" --version 2>&1` in
5000 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5003 $as_echo_n 0123456789 >"conftest.in"
5006 cat "conftest.in" "conftest.in" >"conftest.tmp"
5007 mv "conftest.tmp" "conftest.in"
5008 cp "conftest.in" "conftest.nl"
5009 $as_echo 'GREP' >> "conftest.nl"
5010 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012 as_fn_arith $ac_count + 1 && ac_count=$as_val
5013 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5014 # Best one so far, save it but keep looking for a better one
5015 ac_cv_path_GREP="$ac_path_GREP"
5016 ac_path_GREP_max=$ac_count
5018 # 10*(2^10) chars as input seems more than enough
5019 test $ac_count -gt 10 && break
5021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024 $ac_path_GREP_found && break 3
5029 if test -z "$ac_cv_path_GREP"; then
5030 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5033 ac_cv_path_GREP=$GREP
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5038 $as_echo "$ac_cv_path_GREP" >&6; }
5039 GREP="$ac_cv_path_GREP"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5043 $as_echo_n "checking for egrep... " >&6; }
5044 if test "${ac_cv_path_EGREP+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5047 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5048 then ac_cv_path_EGREP="$GREP -E"
5050 if test -z "$EGREP"; then
5051 ac_path_EGREP_found=false
5052 # Loop through the user's path and test for each of PROGNAME-LIST
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5057 test -z "$as_dir" && as_dir=.
5058 for ac_prog in egrep; do
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5062 # Check for GNU ac_path_EGREP and select it if it is found.
5063 # Check for GNU $ac_path_EGREP
5064 case `"$ac_path_EGREP" --version 2>&1` in
5066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5069 $as_echo_n 0123456789 >"conftest.in"
5072 cat "conftest.in" "conftest.in" >"conftest.tmp"
5073 mv "conftest.tmp" "conftest.in"
5074 cp "conftest.in" "conftest.nl"
5075 $as_echo 'EGREP' >> "conftest.nl"
5076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5078 as_fn_arith $ac_count + 1 && ac_count=$as_val
5079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5080 # Best one so far, save it but keep looking for a better one
5081 ac_cv_path_EGREP="$ac_path_EGREP"
5082 ac_path_EGREP_max=$ac_count
5084 # 10*(2^10) chars as input seems more than enough
5085 test $ac_count -gt 10 && break
5087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090 $ac_path_EGREP_found && break 3
5095 if test -z "$ac_cv_path_EGREP"; then
5096 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5099 ac_cv_path_EGREP=$EGREP
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5105 $as_echo "$ac_cv_path_EGREP" >&6; }
5106 EGREP="$ac_cv_path_EGREP"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5110 $as_echo_n "checking for ANSI C header files... " >&6; }
5111 if test "${ac_cv_header_stdc+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130 ac_cv_header_stdc=yes
5132 ac_cv_header_stdc=no
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 if test $ac_cv_header_stdc = yes; then
5137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "memchr" >/dev/null 2>&1; then :
5147 ac_cv_header_stdc=no
5153 if test $ac_cv_header_stdc = yes; then
5154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "free" >/dev/null 2>&1; then :
5164 ac_cv_header_stdc=no
5170 if test $ac_cv_header_stdc = yes; then
5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172 if test "$cross_compiling" = yes; then :
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5183 # define ISLOWER(c) \
5184 (('a' <= (c) && (c) <= 'i') \
5185 || ('j' <= (c) && (c) <= 'r') \
5186 || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 for (i = 0; i < 256; i++)
5196 if (XOR (islower (i), ISLOWER (i))
5197 || toupper (i) != TOUPPER (i))
5202 if ac_fn_c_try_run "$LINENO"; then :
5205 ac_cv_header_stdc=no
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5208 conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5223 inttypes.h stdint.h unistd.h
5225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5228 eval as_val=\$$as_ac_Header
5229 if test "x$as_val" = x""yes; then :
5230 cat >>confdefs.h <<_ACEOF
5231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5248 if test "$MINIX" = yes; then
5250 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5253 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5256 $as_echo "#define _MINIX 1" >>confdefs.h
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5262 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5263 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5269 # define __EXTENSIONS__ 1
5270 $ac_includes_default
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_safe_to_define___extensions__=yes
5282 ac_cv_safe_to_define___extensions__=no
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5287 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5288 test $ac_cv_safe_to_define___extensions__ = yes &&
5289 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5291 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5293 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5295 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5297 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5307 # On Suns, sometimes $CPP names a directory.
5308 if test -n "$CPP" && test -d "$CPP"; then
5311 if test -z "$CPP"; then
5312 if test "${ac_cv_prog_CPP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5315 # Double quotes because CPP needs to be expanded
5316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5319 for ac_c_preproc_warn_flag in '' yes
5321 # Use a header file that comes with gcc, so configuring glibc
5322 # with a fresh cross-compiler works.
5323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324 # <limits.h> exists even on freestanding compilers.
5325 # On the NeXT, cc -E runs the code through the compiler's parser,
5326 # not just through cpp. "Syntax error" is here to catch this case.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5330 # include <limits.h>
5332 # include <assert.h>
5336 if ac_fn_c_try_cpp "$LINENO"; then :
5339 # Broken: fails on valid input.
5342 rm -f conftest.err conftest.$ac_ext
5344 # OK, works on sane cases. Now check whether nonexistent headers
5345 # can be detected and how.
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #include <ac_nonexistent.h>
5350 if ac_fn_c_try_cpp "$LINENO"; then :
5351 # Broken: success on invalid input.
5354 # Passes both tests.
5358 rm -f conftest.err conftest.$ac_ext
5361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362 rm -f conftest.err conftest.$ac_ext
5363 if $ac_preproc_ok; then :
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5376 $as_echo "$CPP" >&6; }
5378 for ac_c_preproc_warn_flag in '' yes
5380 # Use a header file that comes with gcc, so configuring glibc
5381 # with a fresh cross-compiler works.
5382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383 # <limits.h> exists even on freestanding compilers.
5384 # On the NeXT, cc -E runs the code through the compiler's parser,
5385 # not just through cpp. "Syntax error" is here to catch this case.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5389 # include <limits.h>
5391 # include <assert.h>
5395 if ac_fn_c_try_cpp "$LINENO"; then :
5398 # Broken: fails on valid input.
5401 rm -f conftest.err conftest.$ac_ext
5403 # OK, works on sane cases. Now check whether nonexistent headers
5404 # can be detected and how.
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5409 if ac_fn_c_try_cpp "$LINENO"; then :
5410 # Broken: success on invalid input.
5413 # Passes both tests.
5417 rm -f conftest.err conftest.$ac_ext
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.$ac_ext
5422 if $ac_preproc_ok; then :
5425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." "$LINENO" 5; }
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5438 $as_echo_n "checking for inline... " >&6; }
5439 if test "${ac_cv_c_inline+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5443 for ac_kw in inline __inline__ __inline; do
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5448 static $ac_kw foo_t static_foo () {return 0; }
5449 $ac_kw foo_t foo () {return 0; }
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454 ac_cv_c_inline=$ac_kw
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 test "$ac_cv_c_inline" != no && break
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5462 $as_echo "$ac_cv_c_inline" >&6; }
5464 case $ac_cv_c_inline in
5467 case $ac_cv_c_inline in
5469 *) ac_val=$ac_cv_c_inline;;
5471 cat >>confdefs.h <<_ACEOF
5473 #define inline $ac_val
5480 # Check whether --enable-largefile was given.
5481 if test "${enable_largefile+set}" = set; then :
5482 enableval=$enable_largefile;
5485 if test "$enable_largefile" != no; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5488 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5489 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5492 ac_cv_sys_largefile_CC=no
5493 if test "$GCC" != yes; then
5496 # IRIX 6.2 and later do not support large files by default,
5497 # so use the C compiler's -n32 option if that helps.
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 #include <sys/types.h>
5501 /* Check that off_t can represent 2**63 - 1 correctly.
5502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503 since some C++ compilers masquerading as C compilers
5504 incorrectly reject 9223372036854775807. */
5505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507 && LARGE_OFF_T % 2147483647 == 1)
5517 if ac_fn_c_try_compile "$LINENO"; then :
5520 rm -f core conftest.err conftest.$ac_objext
5522 if ac_fn_c_try_compile "$LINENO"; then :
5523 ac_cv_sys_largefile_CC=' -n32'; break
5525 rm -f core conftest.err conftest.$ac_objext
5529 rm -f conftest.$ac_ext
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5533 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5534 if test "$ac_cv_sys_largefile_CC" != no; then
5535 CC=$CC$ac_cv_sys_largefile_CC
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5539 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5540 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #include <sys/types.h>
5547 /* Check that off_t can represent 2**63 - 1 correctly.
5548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5549 since some C++ compilers masquerading as C compilers
5550 incorrectly reject 9223372036854775807. */
5551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5553 && LARGE_OFF_T % 2147483647 == 1)
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564 ac_cv_sys_file_offset_bits=no; break
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #define _FILE_OFFSET_BITS 64
5570 #include <sys/types.h>
5571 /* Check that off_t can represent 2**63 - 1 correctly.
5572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5573 since some C++ compilers masquerading as C compilers
5574 incorrectly reject 9223372036854775807. */
5575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5577 && LARGE_OFF_T % 2147483647 == 1)
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588 ac_cv_sys_file_offset_bits=64; break
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 ac_cv_sys_file_offset_bits=unknown
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5596 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5597 case $ac_cv_sys_file_offset_bits in #(
5600 cat >>confdefs.h <<_ACEOF
5601 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5606 if test $ac_cv_sys_file_offset_bits = unknown; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5608 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5609 if test "${ac_cv_sys_large_files+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 /* Check that off_t can represent 2**63 - 1 correctly.
5617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5618 since some C++ compilers masquerading as C compilers
5619 incorrectly reject 9223372036854775807. */
5620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5622 && LARGE_OFF_T % 2147483647 == 1)
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 ac_cv_sys_large_files=no; break
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #define _LARGE_FILES 1
5639 #include <sys/types.h>
5640 /* Check that off_t can represent 2**63 - 1 correctly.
5641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642 since some C++ compilers masquerading as C compilers
5643 incorrectly reject 9223372036854775807. */
5644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646 && LARGE_OFF_T % 2147483647 == 1)
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657 ac_cv_sys_large_files=1; break
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 ac_cv_sys_large_files=unknown
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5665 $as_echo "$ac_cv_sys_large_files" >&6; }
5666 case $ac_cv_sys_large_files in #(
5669 cat >>confdefs.h <<_ACEOF
5670 #define _LARGE_FILES $ac_cv_sys_large_files
5679 # sizeof(char) is 1 by definition.
5680 # The cast to long int works around a bug in the HP C Compiler
5681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683 # This bug is HP SR number 8606223364.
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5685 $as_echo_n "checking size of void *... " >&6; }
5686 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5692 if test "$ac_cv_type_void_p" = yes; then
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 { as_fn_set_status 77
5696 as_fn_error "cannot compute sizeof (void *)
5697 See \`config.log' for more details." "$LINENO" 5; }; }
5699 ac_cv_sizeof_void_p=0
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5705 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5709 cat >>confdefs.h <<_ACEOF
5710 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5714 # The cast to long int works around a bug in the HP C Compiler
5715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717 # This bug is HP SR number 8606223364.
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5719 $as_echo_n "checking size of short... " >&6; }
5720 if test "${ac_cv_sizeof_short+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5723 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5726 if test "$ac_cv_type_short" = yes; then
5727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5729 { as_fn_set_status 77
5730 as_fn_error "cannot compute sizeof (short)
5731 See \`config.log' for more details." "$LINENO" 5; }; }
5733 ac_cv_sizeof_short=0
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5739 $as_echo "$ac_cv_sizeof_short" >&6; }
5743 cat >>confdefs.h <<_ACEOF
5744 #define SIZEOF_SHORT $ac_cv_sizeof_short
5748 # The cast to long int works around a bug in the HP C Compiler
5749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5751 # This bug is HP SR number 8606223364.
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5753 $as_echo_n "checking size of int... " >&6; }
5754 if test "${ac_cv_sizeof_int+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5760 if test "$ac_cv_type_int" = yes; then
5761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5763 { as_fn_set_status 77
5764 as_fn_error "cannot compute sizeof (int)
5765 See \`config.log' for more details." "$LINENO" 5; }; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5773 $as_echo "$ac_cv_sizeof_int" >&6; }
5777 cat >>confdefs.h <<_ACEOF
5778 #define SIZEOF_INT $ac_cv_sizeof_int
5782 # The cast to long int works around a bug in the HP C Compiler
5783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5785 # This bug is HP SR number 8606223364.
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5787 $as_echo_n "checking size of long... " >&6; }
5788 if test "${ac_cv_sizeof_long+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5794 if test "$ac_cv_type_long" = yes; then
5795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5797 { as_fn_set_status 77
5798 as_fn_error "cannot compute sizeof (long)
5799 See \`config.log' for more details." "$LINENO" 5; }; }
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5807 $as_echo "$ac_cv_sizeof_long" >&6; }
5811 cat >>confdefs.h <<_ACEOF
5812 #define SIZEOF_LONG $ac_cv_sizeof_long
5816 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5817 if test "x$ac_cv_type_long_long" = x""yes; then :
5819 cat >>confdefs.h <<_ACEOF
5820 #define HAVE_LONG_LONG 1
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5828 $as_echo_n "checking size of long long... " >&6; }
5829 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5835 if test "$ac_cv_type_long_long" = yes; then
5836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { as_fn_set_status 77
5839 as_fn_error "cannot compute sizeof (long long)
5840 See \`config.log' for more details." "$LINENO" 5; }; }
5842 ac_cv_sizeof_long_long=0
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5848 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5852 cat >>confdefs.h <<_ACEOF
5853 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5859 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5860 if test "x$ac_cv_type___int64" = x""yes; then :
5862 cat >>confdefs.h <<_ACEOF
5863 #define HAVE___INT64 1
5866 # The cast to long int works around a bug in the HP C Compiler
5867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5869 # This bug is HP SR number 8606223364.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5871 $as_echo_n "checking size of __int64... " >&6; }
5872 if test "${ac_cv_sizeof___int64+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5875 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5878 if test "$ac_cv_type___int64" = yes; then
5879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5881 { as_fn_set_status 77
5882 as_fn_error "cannot compute sizeof (__int64)
5883 See \`config.log' for more details." "$LINENO" 5; }; }
5885 ac_cv_sizeof___int64=0
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5891 $as_echo "$ac_cv_sizeof___int64" >&6; }
5895 cat >>confdefs.h <<_ACEOF
5896 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5902 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5903 case $ac_cv_c_int8_t in #(
5907 cat >>confdefs.h <<_ACEOF
5908 #define int8_t $ac_cv_c_int8_t
5913 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5914 case $ac_cv_c_int16_t in #(
5918 cat >>confdefs.h <<_ACEOF
5919 #define int16_t $ac_cv_c_int16_t
5924 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5925 case $ac_cv_c_int32_t in #(
5929 cat >>confdefs.h <<_ACEOF
5930 #define int32_t $ac_cv_c_int32_t
5935 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5936 case $ac_cv_c_int64_t in #(
5940 cat >>confdefs.h <<_ACEOF
5941 #define int64_t $ac_cv_c_int64_t
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5948 $as_echo_n "checking for long long int... " >&6; }
5949 if test "${ac_cv_type_long_long_int+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5955 /* For now, do not test the preprocessor; as of 2007 there are too many
5956 implementations with broken preprocessors. Perhaps this can
5957 be revisited in 2012. In the meantime, code should not expect
5958 #if to work with literals wider than 32 bits. */
5959 /* Test literals. */
5960 long long int ll = 9223372036854775807ll;
5961 long long int nll = -9223372036854775807LL;
5962 unsigned long long int ull = 18446744073709551615ULL;
5963 /* Test constant expressions. */
5964 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5966 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5972 /* Test availability of runtime routines for shift and division. */
5973 long long int llmax = 9223372036854775807ll;
5974 unsigned long long int ullmax = 18446744073709551615ull;
5975 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5976 | (llmax / ll) | (llmax % ll)
5977 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5978 | (ullmax / ull) | (ullmax % ull));
5984 if ac_fn_c_try_link "$LINENO"; then :
5985 if test "$cross_compiling" = yes; then :
5986 ac_cv_type_long_long_int=yes
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5993 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5994 # define LLONG_MAX (HALF - 1 + HALF)
5999 long long int n = 1;
6003 long long int m = n << i;
6006 if (LLONG_MAX / 2 < m)
6014 if ac_fn_c_try_run "$LINENO"; then :
6015 ac_cv_type_long_long_int=yes
6017 ac_cv_type_long_long_int=no
6019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020 conftest.$ac_objext conftest.beam conftest.$ac_ext
6024 ac_cv_type_long_long_int=no
6026 rm -f core conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6030 $as_echo "$ac_cv_type_long_long_int" >&6; }
6031 if test $ac_cv_type_long_long_int = yes; then
6033 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6039 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6040 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6042 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6045 test $ac_cv_type_long_long_int = yes \
6046 && ac_type='long long int' \
6047 || ac_type='long int'
6049 cat >>confdefs.h <<_ACEOF
6050 #define intmax_t $ac_type
6057 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6058 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6060 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6063 for ac_type in 'int' 'long int' 'long long int'; do
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 $ac_includes_default
6070 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6077 if ac_fn_c_try_compile "$LINENO"; then :
6079 cat >>confdefs.h <<_ACEOF
6080 #define intptr_t $ac_type
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 test -z "$ac_type" && break
6091 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6092 case $ac_cv_c_uint8_t in #(
6096 $as_echo "#define _UINT8_T 1" >>confdefs.h
6099 cat >>confdefs.h <<_ACEOF
6100 #define uint8_t $ac_cv_c_uint8_t
6105 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6106 case $ac_cv_c_uint16_t in #(
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint16_t $ac_cv_c_uint16_t
6117 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6118 case $ac_cv_c_uint32_t in #(
6122 $as_echo "#define _UINT32_T 1" >>confdefs.h
6125 cat >>confdefs.h <<_ACEOF
6126 #define uint32_t $ac_cv_c_uint32_t
6131 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6132 case $ac_cv_c_uint64_t in #(
6136 $as_echo "#define _UINT64_T 1" >>confdefs.h
6139 cat >>confdefs.h <<_ACEOF
6140 #define uint64_t $ac_cv_c_uint64_t
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6147 $as_echo_n "checking for unsigned long long int... " >&6; }
6148 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6154 /* For now, do not test the preprocessor; as of 2007 there are too many
6155 implementations with broken preprocessors. Perhaps this can
6156 be revisited in 2012. In the meantime, code should not expect
6157 #if to work with literals wider than 32 bits. */
6158 /* Test literals. */
6159 long long int ll = 9223372036854775807ll;
6160 long long int nll = -9223372036854775807LL;
6161 unsigned long long int ull = 18446744073709551615ULL;
6162 /* Test constant expressions. */
6163 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6165 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6171 /* Test availability of runtime routines for shift and division. */
6172 long long int llmax = 9223372036854775807ll;
6173 unsigned long long int ullmax = 18446744073709551615ull;
6174 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6175 | (llmax / ll) | (llmax % ll)
6176 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6177 | (ullmax / ull) | (ullmax % ull));
6183 if ac_fn_c_try_link "$LINENO"; then :
6184 ac_cv_type_unsigned_long_long_int=yes
6186 ac_cv_type_unsigned_long_long_int=no
6188 rm -f core conftest.err conftest.$ac_objext \
6189 conftest$ac_exeext conftest.$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6192 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6193 if test $ac_cv_type_unsigned_long_long_int = yes; then
6195 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6201 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6202 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6204 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6207 test $ac_cv_type_unsigned_long_long_int = yes \
6208 && ac_type='unsigned long long int' \
6209 || ac_type='unsigned long int'
6211 cat >>confdefs.h <<_ACEOF
6212 #define uintmax_t $ac_type
6219 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6220 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6222 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6225 for ac_type in 'unsigned int' 'unsigned long int' \
6226 'unsigned long long int'; do
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 $ac_includes_default
6233 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6240 if ac_fn_c_try_compile "$LINENO"; then :
6242 cat >>confdefs.h <<_ACEOF
6243 #define uintptr_t $ac_type
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 test -z "$ac_type" && break
6267 # ---------------------
6268 # Warnings and checking
6269 # ---------------------
6271 # Check $CC warning features (if it's GCC).
6272 # We want to use -pedantic, but we don't want warnings about
6275 # * overlong strings
6276 # So, we only use -pedantic if we can disable those warnings.
6279 save_CFLAGS="$CFLAGS"
6280 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6281 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6284 $as_echo_n "checking whether $CC supports $option... " >&6; }
6285 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6286 $as_echo_n "(cached) " >&6
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6300 if ac_fn_c_try_compile "$LINENO"; then :
6301 eval "$as_acx_Woption=yes"
6303 eval "$as_acx_Woption=no"
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 eval ac_res=\$$as_acx_Woption
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6310 $as_echo "$ac_res" >&6; }
6311 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6312 loose_warn="$loose_warn${loose_warn:+ }$option"
6315 CFLAGS="$save_CFLAGS"
6318 save_CFLAGS="$CFLAGS"
6319 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6320 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6323 $as_echo_n "checking whether $CC supports $option... " >&6; }
6324 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6325 $as_echo_n "(cached) " >&6
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6339 if ac_fn_c_try_compile "$LINENO"; then :
6340 eval "$as_acx_Woption=yes"
6342 eval "$as_acx_Woption=no"
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 eval ac_res=\$$as_acx_Woption
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6350 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6351 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6354 CFLAGS="$save_CFLAGS"
6357 save_CFLAGS="$CFLAGS"
6358 for option in -Wmissing-format-attribute; do
6359 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6362 $as_echo_n "checking whether $CC supports $option... " >&6; }
6363 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6364 $as_echo_n "(cached) " >&6
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6378 if ac_fn_c_try_compile "$LINENO"; then :
6379 eval "$as_acx_Woption=yes"
6381 eval "$as_acx_Woption=no"
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 eval ac_res=\$$as_acx_Woption
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6388 $as_echo "$ac_res" >&6; }
6389 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6390 strict_warn="$strict_warn${strict_warn:+ }$option"
6393 CFLAGS="$save_CFLAGS"
6396 save_CFLAGS="$CFLAGS"
6397 for option in -Wold-style-definition -Wc++-compat; do
6398 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6401 $as_echo_n "checking whether $CC supports $option... " >&6; }
6402 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6403 $as_echo_n "(cached) " >&6
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418 eval "$as_acx_Woption=yes"
6420 eval "$as_acx_Woption=no"
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 eval ac_res=\$$as_acx_Woption
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6427 $as_echo "$ac_res" >&6; }
6428 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6429 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6432 CFLAGS="$save_CFLAGS"
6434 if test "$GCC" = yes; then :
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6436 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6437 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6438 $as_echo_n "(cached) " >&6
6440 save_CFLAGS="$CFLAGS"
6441 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6453 if ac_fn_c_try_compile "$LINENO"; then :
6454 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6456 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 CFLAGS="$save_CFLAGS"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6462 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6463 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6464 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6469 # Check whether --enable-werror-always was given.
6470 if test "${enable_werror_always+set}" = set; then :
6471 enableval=$enable_werror_always;
6473 enable_werror_always=no
6476 if test $enable_werror_always = yes; then :
6477 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6482 # The above macros do nothing if the compiler is not GCC. However, the
6483 # Makefile has more goo to add other flags, so these variables are used
6484 # to enable warnings only for GCC.
6487 if test "x$GCC" = "xyes"; then
6488 warn_cflags='$(GCC_WARN_CFLAGS)'
6489 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6494 # Enable expensive internal checks
6496 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6500 # Check whether --enable-checking was given.
6501 if test "${enable_checking+set}" = set; then :
6502 enableval=$enable_checking; ac_checking_flags="${enableval}"
6505 # Determine the default checks.
6506 if test x$is_release = x ; then
6507 ac_checking_flags=yes
6509 ac_checking_flags=release
6513 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6514 for check in release $ac_checking_flags
6517 # these set all the flags to specific states
6518 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6519 ac_fold_checking= ; ac_gc_checking=1 ;
6520 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6521 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6522 ac_tree_checking=1 ; ac_valgrind_checking= ;
6523 ac_types_checking=1 ;;
6524 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6525 ac_fold_checking= ; ac_gc_checking= ;
6526 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6527 ac_rtlflag_checking= ; ac_runtime_checking= ;
6528 ac_tree_checking= ; ac_valgrind_checking= ;
6529 ac_types_checking= ;;
6530 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6531 ac_fold_checking=1 ; ac_gc_checking=1 ;
6532 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6533 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6534 ac_tree_checking=1 ; ac_valgrind_checking= ;
6535 ac_types_checking=1 ;;
6536 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6537 ac_fold_checking= ; ac_gc_checking= ;
6538 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6539 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6540 ac_tree_checking= ; ac_valgrind_checking= ;
6541 ac_types_checking= ;;
6542 # these enable particular checks
6543 assert) ac_assert_checking=1 ;;
6544 df) ac_df_checking=1 ;;
6545 fold) ac_fold_checking=1 ;;
6546 gc) ac_gc_checking=1 ;;
6547 gcac) ac_gc_always_collect=1 ;;
6548 gimple) ac_gimple_checking=1 ;;
6549 misc) ac_checking=1 ;;
6550 rtl) ac_rtl_checking=1 ;;
6551 rtlflag) ac_rtlflag_checking=1 ;;
6552 runtime) ac_runtime_checking=1 ;;
6553 tree) ac_tree_checking=1 ;;
6554 types) ac_types_checking=1 ;;
6555 valgrind) ac_valgrind_checking=1 ;;
6556 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6562 if test x$ac_checking != x ; then
6564 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6566 nocommon_flag=-fno-common
6569 if test x$ac_df_checking != x ; then
6571 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6574 if test x$ac_assert_checking != x ; then
6576 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6579 if test x$ac_gimple_checking != x ; then
6581 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6585 if test x$ac_runtime_checking != x ; then
6587 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6590 if test x$ac_tree_checking != x ; then
6592 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6594 TREEBROWSER=tree-browser.o
6596 if test x$ac_types_checking != x ; then
6598 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6602 if test x$ac_rtl_checking != x ; then
6604 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6607 if test x$ac_rtlflag_checking != x ; then
6609 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6612 if test x$ac_gc_checking != x ; then
6614 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6617 if test x$ac_gc_always_collect != x ; then
6619 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6622 if test x$ac_fold_checking != x ; then
6624 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6627 valgrind_path_defines=
6630 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6631 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6639 if test x$ac_valgrind_checking != x ; then
6640 # It is certainly possible that there's valgrind but no valgrind.h.
6641 # GCC relies on making annotations so we must have both.
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6643 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 #include <valgrind/memcheck.h>
6647 #ifndef VALGRIND_DISCARD
6648 #error VALGRIND_DISCARD not defined
6651 if ac_fn_c_try_cpp "$LINENO"; then :
6652 gcc_cv_header_valgrind_memcheck_h=yes
6654 gcc_cv_header_valgrind_memcheck_h=no
6656 rm -f conftest.err conftest.$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6658 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6660 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 #include <memcheck.h>
6664 #ifndef VALGRIND_DISCARD
6665 #error VALGRIND_DISCARD not defined
6668 if ac_fn_c_try_cpp "$LINENO"; then :
6669 gcc_cv_header_memcheck_h=yes
6671 gcc_cv_header_memcheck_h=no
6673 rm -f conftest.err conftest.$ac_ext
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6675 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6677 # Prepare PATH_SEPARATOR.
6678 # The user is always right.
6679 if test "${PATH_SEPARATOR+set}" != set; then
6680 echo "#! /bin/sh" >conf$$.sh
6681 echo "exit 0" >>conf$$.sh
6683 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6691 # Find out how to test for executable files. Don't use a zero-byte file,
6692 # as systems may use methods other than mode bits to determine executability.
6693 cat >conf$$.file <<_ASEOF
6697 chmod +x conf$$.file
6698 if test -x conf$$.file >/dev/null 2>&1; then
6699 ac_executable_p="test -x"
6701 ac_executable_p="test -f"
6705 # Extract the first word of "valgrind", so it can be a program name with args.
6706 set dummy valgrind; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6712 case "$valgrind_path" in
6714 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6717 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6718 for ac_dir in $PATH; do
6720 test -z "$ac_dir" && ac_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6723 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6724 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6734 valgrind_path="$ac_cv_path_valgrind_path"
6735 if test -n "$valgrind_path"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6737 $as_echo "$valgrind_path" >&6; }
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6743 if test "x$valgrind_path" = "x" \
6744 || (test $have_valgrind_h = no \
6745 && test $gcc_cv_header_memcheck_h = no \
6746 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6747 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6749 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6750 valgrind_command="$valgrind_path -q"
6752 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6754 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6756 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6759 if test $gcc_cv_header_memcheck_h = yes; then
6761 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6768 # Enable code coverage collection
6769 # Check whether --enable-coverage was given.
6770 if test "${enable_coverage+set}" = set; then :
6771 enableval=$enable_coverage; case "${enableval}" in
6773 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6776 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6779 # a.k.a. --disable-coverage
6783 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6792 # Check whether --enable-gather-detailed-mem-stats was given.
6793 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6794 enableval=$enable_gather_detailed_mem_stats;
6796 enable_gather_detailed_mem_stats=no
6799 if test x$enable_gather_detailed_mem_stats = xyes ; then
6801 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6805 # -------------------------------
6806 # Miscenalleous configure options
6807 # -------------------------------
6809 # See if we are building gcc with C++.
6810 # Check whether --enable-build-with-cxx was given.
6811 if test "${enable_build_with_cxx+set}" = set; then :
6812 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6814 ENABLE_BUILD_WITH_CXX=no
6821 # Check whether --with-stabs was given.
6822 if test "${with_stabs+set}" = set; then :
6823 withval=$with_stabs; stabs="$with_stabs"
6829 # Determine whether or not multilibs are enabled.
6830 # Check whether --enable-multilib was given.
6831 if test "${enable_multilib+set}" = set; then :
6832 enableval=$enable_multilib;
6839 # Enable __cxa_atexit for C++.
6840 # Check whether --enable-__cxa_atexit was given.
6841 if test "${enable___cxa_atexit+set}" = set; then :
6842 enableval=$enable___cxa_atexit;
6846 # Enable C extension for decimal float if target supports it.
6848 # Check whether --enable-decimal-float was given.
6849 if test "${enable_decimal_float+set}" = set; then :
6850 enableval=$enable_decimal_float;
6851 case $enable_decimal_float in
6852 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6853 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6854 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6860 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6861 i?86*-*-mingw* | x86_64*-*-mingw* | \
6863 enable_decimal_float=yes
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6867 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6868 enable_decimal_float=no
6875 # x86's use BID format instead of DPD
6876 case x$enable_decimal_float in
6879 i?86*-*-* | x86_64*-*-*)
6880 enable_decimal_float=bid
6883 enable_decimal_float=dpd
6886 default_decimal_float=$enable_decimal_float
6889 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6890 # dependency on libdecnumber.
6891 default_decimal_float=dpd
6898 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6900 cat >>confdefs.h <<_ACEOF
6901 #define ENABLE_DECIMAL_FLOAT $dfp
6905 # Use default_decimal_float for dependency.
6906 enable_decimal_float=$default_decimal_float
6908 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6910 cat >>confdefs.h <<_ACEOF
6911 #define ENABLE_DECIMAL_BID_FORMAT $bid
6915 # Enable C extension for fixed-point arithmetic.
6916 # Check whether --enable-fixed-point was given.
6917 if test "${enable_fixed_point+set}" = set; then :
6918 enableval=$enable_fixed_point;
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6927 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6928 enable_fixed_point=no
6931 enable_fixed_point=yes
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6937 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6938 enable_fixed_point=no
6946 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6948 cat >>confdefs.h <<_ACEOF
6949 #define ENABLE_FIXED_POINT $fixedpoint
6954 # Pass with no value to take the default
6955 # Pass with a value to specify a thread package
6956 # Check whether --enable-threads was given.
6957 if test "${enable_threads+set}" = set; then :
6958 enableval=$enable_threads;
6964 # Check whether --enable-tls was given.
6965 if test "${enable_tls+set}" = set; then :
6966 enableval=$enable_tls;
6969 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6970 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6978 # Check whether --enable-objc-gc was given.
6979 if test "${enable_objc_gc+set}" = set; then :
6980 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6991 # Check whether --with-dwarf2 was given.
6992 if test "${with_dwarf2+set}" = set; then :
6993 withval=$with_dwarf2;
6998 dwarf2="$with_dwarf2"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 debug format is not supported for this target, ignored" >&5
7002 $as_echo "$as_me: WARNING: dwarf2 debug format is not supported for this target, ignored" >&2;}
7008 dwarf2="$with_dwarf2"
7017 # Check whether --enable-shared was given.
7018 if test "${enable_shared+set}" = set; then :
7019 enableval=$enable_shared;
7020 case $enable_shared in
7024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7025 for pkg in $enableval; do
7026 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7041 # Check whether --with-build-sysroot was given.
7042 if test "${with_build_sysroot+set}" = set; then :
7043 withval=$with_build_sysroot;
7048 # Check whether --with-sysroot was given.
7049 if test "${with_sysroot+set}" = set; then :
7050 withval=$with_sysroot;
7051 case ${with_sysroot} in
7052 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7053 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7056 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7057 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7059 if test "x$prefix" = xNONE; then
7060 test_prefix=/usr/local
7064 if test "x$exec_prefix" = xNONE; then
7065 test_exec_prefix=$test_prefix
7067 test_exec_prefix=$exec_prefix
7069 case ${TARGET_SYSTEM_ROOT} in
7070 "${test_prefix}"|"${test_prefix}/"*|\
7071 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7072 '${prefix}'|'${prefix}/'*|\
7073 '${exec_prefix}'|'${exec_prefix}/'*)
7074 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7075 TARGET_SYSTEM_ROOT_DEFINE="$t"
7082 TARGET_SYSTEM_ROOT_DEFINE=
7083 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7092 # Check whether --with-specs was given.
7093 if test "${with_specs+set}" = set; then :
7094 withval=$with_specs; CONFIGURE_SPECS=$withval
7104 # Check whether --with-pkgversion was given.
7105 if test "${with_pkgversion+set}" = set; then :
7106 withval=$with_pkgversion; case "$withval" in
7107 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7109 *) PKGVERSION="($withval) " ;;
7120 # Check whether --with-bugurl was given.
7121 if test "${with_bugurl+set}" = set; then :
7122 withval=$with_bugurl; case "$withval" in
7123 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7126 *) BUGURL="$withval"
7130 BUGURL="http://gcc.gnu.org/bugs.html"
7140 REPORT_BUGS_TO="<$BUGURL>"
7141 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7148 # Sanity check enable_languages in case someone does not run the toplevel
7149 # configure # script.
7150 # Check whether --enable-languages was given.
7151 if test "${enable_languages+set}" = set; then :
7152 enableval=$enable_languages; case ,${enable_languages}, in
7154 # go safe -- we cannot be much sure without the toplevel
7156 # analysis of which target libs are present and usable
7160 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7165 enable_languages=c,${enable_languages}
7174 # Check whether --with-multilib-list was given.
7175 if test "${with_multilib_list+set}" = set; then :
7176 withval=$with_multilib_list; :
7178 with_multilib_list=default
7182 # -------------------------
7183 # Checks for other programs
7184 # -------------------------
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7187 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7189 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7191 $as_echo_n "(cached) " >&6
7193 cat >conftest.make <<\_ACEOF
7196 @echo '@@@%%%=$(MAKE)=@@@%%%'
7198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7201 eval ac_cv_prog_make_${ac_make}_set=yes;;
7203 eval ac_cv_prog_make_${ac_make}_set=no;;
7207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7209 $as_echo "yes" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 SET_MAKE="MAKE=${MAKE-make}"
7218 # Find some useful tools
7219 for ac_prog in gawk mawk nawk awk
7221 # Extract the first word of "$ac_prog", so it can be a program name with args.
7222 set dummy $ac_prog; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if test "${ac_cv_prog_AWK+set}" = set; then :
7226 $as_echo_n "(cached) " >&6
7228 if test -n "$AWK"; then
7229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_prog_AWK="$ac_prog"
7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 if test -n "$AWK"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7251 $as_echo "$AWK" >&6; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7258 test -n "$AWK" && break
7261 # We need awk to create options.c and options.h.
7262 # Bail out if it's missing.
7264 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7268 $as_echo_n "checking whether ln -s works... " >&6; }
7269 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7272 rm -f conftestdata_t
7273 echo >conftestdata_f
7274 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7276 gcc_cv_prog_LN_S="ln -s"
7278 if ln conftestdata_f conftestdata_t 2>/dev/null
7282 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7284 gcc_cv_prog_LN_S="cp -p"
7290 rm -f conftestdata_f conftestdata_t
7293 LN_S="$gcc_cv_prog_LN_S"
7294 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7296 $as_echo "yes" >&6; }
7298 if test "$gcc_cv_prog_LN_S" = "ln"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7300 $as_echo "no, using ln" >&6; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7303 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7308 $as_echo_n "checking whether ln works... " >&6; }
7309 if test "${acx_cv_prog_LN+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7312 rm -f conftestdata_t
7313 echo >conftestdata_f
7314 if ln conftestdata_f conftestdata_t 2>/dev/null
7320 rm -f conftestdata_f conftestdata_t
7323 if test $acx_cv_prog_LN = no; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7326 $as_echo "no, using $LN" >&6; }
7328 LN="$acx_cv_prog_LN"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7330 $as_echo "yes" >&6; }
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$RANLIB"; then
7342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 RANLIB=$ac_cv_prog_RANLIB
7362 if test -n "$RANLIB"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7364 $as_echo "$RANLIB" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7372 if test -z "$ac_cv_prog_RANLIB"; then
7373 ac_ct_RANLIB=$RANLIB
7374 # Extract the first word of "ranlib", so it can be a program name with args.
7375 set dummy ranlib; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7381 if test -n "$ac_ct_RANLIB"; then
7382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_ac_ct_RANLIB="ranlib"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7402 if test -n "$ac_ct_RANLIB"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7404 $as_echo "$ac_ct_RANLIB" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7410 if test "x$ac_ct_RANLIB" = x; then
7413 case $cross_compiling:$ac_tool_warned in
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7419 RANLIB=$ac_ct_RANLIB
7422 RANLIB="$ac_cv_prog_RANLIB"
7427 # By default, the Darwin ranlib will not treat common symbols as
7428 # definitions when building the archive table of contents. Other
7429 # ranlibs do that; pass an option to the Darwin ranlib that makes
7430 # it behave similarly.
7438 # Find a good install program. We prefer a C program (faster),
7439 # so one script is as good as another. But avoid the broken or
7440 # incompatible versions:
7441 # SysV /etc/install, /usr/sbin/install
7442 # SunOS /usr/etc/install
7443 # IRIX /sbin/install
7445 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7446 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7447 # ./install, which can be erroneously created by make from ./install.sh.
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7449 $as_echo_n "checking for a BSD compatible install... " >&6; }
7450 if test -z "$INSTALL"; then
7451 if test "${ac_cv_path_install+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7454 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7455 for ac_dir in $PATH; do
7456 # Account for people who put trailing slashes in PATH elements.
7458 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7460 # OSF1 and SCO ODT 3.0 have their own names for install.
7461 for ac_prog in ginstall scoinst install; do
7462 if test -f $ac_dir/$ac_prog; then
7463 if test $ac_prog = install &&
7464 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7465 # AIX install. It has an incompatible calling convention.
7466 # OSF/1 installbsd also uses dspmsg, but is usable.
7469 ac_cv_path_install="$ac_dir/$ac_prog -c"
7480 if test "${ac_cv_path_install+set}" = set; then
7481 INSTALL="$ac_cv_path_install"
7483 # As a last resort, use the slow shell script. We don't cache a
7484 # path for INSTALL within a source directory, because that will
7485 # break other packages using the cache if that directory is
7486 # removed, or if the path is relative.
7487 INSTALL="$ac_install_sh"
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7491 $as_echo "$INSTALL" >&6; }
7493 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7494 # It thinks the first close brace ends the variable substitution.
7495 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7500 # See if cmp has --ignore-initial.
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7502 $as_echo_n "checking for cmp's capabilities... " >&6; }
7503 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7508 gcc_cv_prog_cmp_skip=slowcompare
7509 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7510 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7513 gcc_cv_prog_cmp_skip=gnucompare
7516 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7517 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7518 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7521 gcc_cv_prog_cmp_skip=fastcompare
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7529 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7530 make_compare_target=$gcc_cv_prog_cmp_skip
7534 # See if we have the mktemp command.
7535 # Extract the first word of "mktemp", so it can be a program name with args.
7536 set dummy mktemp; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7542 if test -n "$have_mktemp_command"; then
7543 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_prog_have_mktemp_command="yes"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7563 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7564 if test -n "$have_mktemp_command"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7566 $as_echo "$have_mktemp_command" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7574 # See if makeinfo has been installed and is modern enough
7575 # that we can use it.
7577 # Extract the first word of "makeinfo", so it can be a program name with args.
7578 set dummy makeinfo; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7584 if test -n "$MAKEINFO"; then
7585 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_prog_MAKEINFO="makeinfo"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 MAKEINFO=$ac_cv_prog_MAKEINFO
7605 if test -n "$MAKEINFO"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7607 $as_echo "$MAKEINFO" >&6; }
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7614 if test -n "$MAKEINFO"; then
7615 # Found it, now check the version.
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7617 $as_echo_n "checking for modern makeinfo... " >&6; }
7618 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
7621 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7622 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7624 case $ac_prog_version in
7625 '') gcc_cv_prog_makeinfo_modern=no;;
7626 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7627 *) gcc_cv_prog_makeinfo_modern=no;;
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7632 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7634 gcc_cv_prog_makeinfo_modern=no
7636 if test $gcc_cv_prog_makeinfo_modern = no; then
7637 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7640 if test $gcc_cv_prog_makeinfo_modern = no; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7642 *** Makeinfo is missing or too old.
7643 *** Info documentation will not be built." >&5
7644 $as_echo "$as_me: WARNING:
7645 *** Makeinfo is missing or too old.
7646 *** Info documentation will not be built." >&2;}
7653 # Is pod2man recent enough to regenerate manpages?
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7655 $as_echo_n "checking for recent Pod::Man... " >&6; }
7656 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7658 $as_echo "yes" >&6; }
7659 GENERATED_MANPAGES=generated-manpages
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7667 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7672 # Extract the first word of "$ac_prog", so it can be a program name with args.
7673 set dummy $ac_prog; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if test "${ac_cv_prog_FLEX+set}" = set; then :
7677 $as_echo_n "(cached) " >&6
7679 if test -n "$FLEX"; then
7680 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_prog_FLEX="$ac_prog"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 FLEX=$ac_cv_prog_FLEX
7700 if test -n "$FLEX"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7702 $as_echo "$FLEX" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7709 test -n "$FLEX" && break
7711 test -n "$FLEX" || FLEX="$MISSING flex"
7715 for ac_prog in bison
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_BISON+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7724 if test -n "$BISON"; then
7725 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_BISON="$ac_prog"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 BISON=$ac_cv_prog_BISON
7745 if test -n "$BISON"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7747 $as_echo "$BISON" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7754 test -n "$BISON" && break
7756 test -n "$BISON" || BISON="$MISSING bison"
7759 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7760 # check for build == host before using them.
7763 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7764 && test -d ../binutils ; then
7765 NM='${objdir}/../binutils/nm-new'
7767 # Extract the first word of "nm", so it can be a program name with args.
7768 set dummy nm; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if test "${ac_cv_prog_NM+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7774 if test -n "$NM"; then
7775 ac_cv_prog_NM="$NM" # Let the user override the test.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7796 if test -n "$NM"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7798 $as_echo "$NM" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7808 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7809 && test -d ../binutils ; then
7810 AR='${objdir}/../binutils/ar'
7812 # Extract the first word of "ar", so it can be a program name with args.
7813 set dummy ar; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_AR+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7819 if test -n "$AR"; then
7820 ac_cv_prog_AR="$AR" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7841 if test -n "$AR"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7843 $as_echo "$AR" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7853 # --------------------
7854 # Checks for C headers
7855 # --------------------
7857 # Need to reject headers which give warnings, so that the -Werror bootstrap
7858 # works later. *sigh* This needs to come before all header checks.
7860 ac_c_preproc_warn_flag=yes
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7863 $as_echo_n "checking for ANSI C header files... " >&6; }
7864 if test "${ac_cv_header_stdc+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7882 if ac_fn_c_try_compile "$LINENO"; then :
7883 ac_cv_header_stdc=yes
7885 ac_cv_header_stdc=no
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 if test $ac_cv_header_stdc = yes; then
7890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7897 $EGREP "memchr" >/dev/null 2>&1; then :
7900 ac_cv_header_stdc=no
7906 if test $ac_cv_header_stdc = yes; then
7907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "free" >/dev/null 2>&1; then :
7917 ac_cv_header_stdc=no
7923 if test $ac_cv_header_stdc = yes; then
7924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7925 if test "$cross_compiling" = yes; then :
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7932 #if ((' ' & 0x0FF) == 0x020)
7933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7936 # define ISLOWER(c) \
7937 (('a' <= (c) && (c) <= 'i') \
7938 || ('j' <= (c) && (c) <= 'r') \
7939 || ('s' <= (c) && (c) <= 'z'))
7940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7948 for (i = 0; i < 256; i++)
7949 if (XOR (islower (i), ISLOWER (i))
7950 || toupper (i) != TOUPPER (i))
7955 if ac_fn_c_try_run "$LINENO"; then :
7958 ac_cv_header_stdc=no
7960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7961 conftest.$ac_objext conftest.beam conftest.$ac_ext
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7967 $as_echo "$ac_cv_header_stdc" >&6; }
7968 if test $ac_cv_header_stdc = yes; then
7970 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7975 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7976 if test "${ac_cv_header_time+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 #include <sys/types.h>
7982 #include <sys/time.h>
7988 if ((struct tm *) 0)
7994 if ac_fn_c_try_compile "$LINENO"; then :
7995 ac_cv_header_time=yes
7997 ac_cv_header_time=no
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8002 $as_echo "$ac_cv_header_time" >&6; }
8003 if test $ac_cv_header_time = yes; then
8005 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8010 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8011 if test "${gcc_cv_header_string+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8017 #include <strings.h>
8026 if ac_fn_c_try_compile "$LINENO"; then :
8027 gcc_cv_header_string=yes
8029 gcc_cv_header_string=no
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8034 $as_echo "$gcc_cv_header_string" >&6; }
8035 if test $gcc_cv_header_string = yes; then
8037 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8042 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8043 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 #include <sys/types.h>
8049 #include <sys/wait.h>
8051 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8054 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8062 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068 ac_cv_header_sys_wait_h=yes
8070 ac_cv_header_sys_wait_h=no
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8075 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8076 if test $ac_cv_header_sys_wait_h = yes; then
8078 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8082 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8083 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8084 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8085 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8088 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8089 eval as_val=\$$as_ac_Header
8090 if test "x$as_val" = x""yes; then :
8091 cat >>confdefs.h <<_ACEOF
8092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8099 # Check for thread headers.
8100 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8101 if test "x$ac_cv_header_thread_h" = x""yes; then :
8107 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8108 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8115 # These tests can't be done till we know if we have limits.h.
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8117 $as_echo_n "checking for CHAR_BIT... " >&6; }
8118 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8123 #ifdef HAVE_LIMITS_H
8130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8131 $EGREP "found" >/dev/null 2>&1; then :
8132 gcc_cv_decl_char_bit=yes
8134 gcc_cv_decl_char_bit=no
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8141 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8142 if test $gcc_cv_decl_char_bit = no; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8144 $as_echo_n "checking number of bits in a byte... " >&6; }
8145 if test "${gcc_cv_c_nbby+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8150 while test $i -lt 65; do
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8158 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8159 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166 gcc_cv_c_nbby=$i; break
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8175 $as_echo "$gcc_cv_c_nbby" >&6; }
8176 if test $gcc_cv_c_nbby = failed; then
8177 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8180 cat >>confdefs.h <<_ACEOF
8181 #define CHAR_BIT $gcc_cv_c_nbby
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8188 if test "${ac_cv_c_bigendian+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8191 ac_cv_c_bigendian=unknown
8192 # See if we're dealing with a universal compiler.
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #ifndef __APPLE_CC__
8196 not a universal capable compiler
8201 if ac_fn_c_try_compile "$LINENO"; then :
8203 # Check for potential -arch flags. It is not universal unless
8204 # there are at least two -arch flags with different values.
8207 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8208 if test -n "$ac_prev"; then
8210 i?86 | x86_64 | ppc | ppc64)
8211 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8214 ac_cv_c_bigendian=universal
8220 elif test "x$ac_word" = "x-arch"; then
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 if test $ac_cv_c_bigendian = unknown; then
8227 # See if sys/param.h defines the BYTE_ORDER macro.
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 #include <sys/types.h>
8231 #include <sys/param.h>
8236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8246 if ac_fn_c_try_compile "$LINENO"; then :
8247 # It does; now see whether it defined to BIG_ENDIAN or not.
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 #include <sys/types.h>
8251 #include <sys/param.h>
8256 #if BYTE_ORDER != BIG_ENDIAN
8264 if ac_fn_c_try_compile "$LINENO"; then :
8265 ac_cv_c_bigendian=yes
8267 ac_cv_c_bigendian=no
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 if test $ac_cv_c_bigendian = unknown; then
8274 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8290 if ac_fn_c_try_compile "$LINENO"; then :
8291 # It does; now see whether it defined to _BIG_ENDIAN or not.
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8307 if ac_fn_c_try_compile "$LINENO"; then :
8308 ac_cv_c_bigendian=yes
8310 ac_cv_c_bigendian=no
8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 if test $ac_cv_c_bigendian = unknown; then
8317 # Compile a test program.
8318 if test "$cross_compiling" = yes; then :
8319 # Try to guess by grepping values from an object file.
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 short int ascii_mm[] =
8323 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8324 short int ascii_ii[] =
8325 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8326 int use_ascii (int i) {
8327 return ascii_mm[i] + ascii_ii[i];
8329 short int ebcdic_ii[] =
8330 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8331 short int ebcdic_mm[] =
8332 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8333 int use_ebcdic (int i) {
8334 return ebcdic_mm[i] + ebcdic_ii[i];
8341 return use_ascii (foo) == use_ebcdic (foo);
8346 if ac_fn_c_try_compile "$LINENO"; then :
8347 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8348 ac_cv_c_bigendian=yes
8350 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8351 if test "$ac_cv_c_bigendian" = unknown; then
8352 ac_cv_c_bigendian=no
8354 # finding both strings is unlikely to happen, but who knows?
8355 ac_cv_c_bigendian=unknown
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 $ac_includes_default
8368 /* Are we little or big endian? From Harbison&Steele. */
8372 char c[sizeof (long int)];
8375 return u.c[sizeof (long int) - 1] == 1;
8381 if ac_fn_c_try_run "$LINENO"; then :
8382 ac_cv_c_bigendian=no
8384 ac_cv_c_bigendian=yes
8386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8387 conftest.$ac_objext conftest.beam conftest.$ac_ext
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8393 $as_echo "$ac_cv_c_bigendian" >&6; }
8394 case $ac_cv_c_bigendian in #(
8396 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8402 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8406 as_fn_error "unknown endianness
8407 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8416 # These libraries may be used by collect2.
8417 # We may need a special search path to get them linked.
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8419 $as_echo_n "checking for collect2 libraries... " >&6; }
8420 if test "${gcc_cv_collect2_libs+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8424 for libs in '' -lld -lmld \
8425 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8426 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8432 /* Override any GCC internal prototype to avoid an error.
8433 Use char because int might match the return type of a GCC
8434 builtin and then its argument prototype would still apply. */
8447 if ac_fn_c_try_link "$LINENO"; then :
8448 gcc_cv_collect2_libs="$libs"; break
8450 rm -f core conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8454 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8457 $as_echo "$gcc_cv_collect2_libs" >&6; }
8458 case $gcc_cv_collect2_libs in
8460 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8464 # When building Ada code on Alpha, we need exc_resume which is usually in
8465 # -lexc. So test for it.
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8469 $as_echo_n "checking for library containing exc_resume... " >&6; }
8470 if test "${ac_cv_search_exc_resume+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8473 ac_func_search_save_LIBS=$LIBS
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8477 /* Override any GCC internal prototype to avoid an error.
8478 Use char because int might match the return type of a GCC
8479 builtin and then its argument prototype would still apply. */
8487 return exc_resume ();
8492 for ac_lib in '' exc; do
8493 if test -z "$ac_lib"; then
8494 ac_res="none required"
8497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8499 if ac_fn_c_try_link "$LINENO"; then :
8500 ac_cv_search_exc_resume=$ac_res
8502 rm -f core conftest.err conftest.$ac_objext \
8504 if test "${ac_cv_search_exc_resume+set}" = set; then :
8508 if test "${ac_cv_search_exc_resume+set}" = set; then :
8511 ac_cv_search_exc_resume=no
8514 LIBS=$ac_func_search_save_LIBS
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8517 $as_echo "$ac_cv_search_exc_resume" >&6; }
8518 ac_res=$ac_cv_search_exc_resume
8519 if test "$ac_res" != no; then :
8520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8528 # Some systems put ldexp and frexp in libm instead of libc; assume
8529 # they're both in the same place. jcf-dump needs them.
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8533 $as_echo_n "checking for library containing ldexp... " >&6; }
8534 if test "${ac_cv_search_ldexp+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8537 ac_func_search_save_LIBS=$LIBS
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8541 /* Override any GCC internal prototype to avoid an error.
8542 Use char because int might match the return type of a GCC
8543 builtin and then its argument prototype would still apply. */
8556 for ac_lib in '' m; do
8557 if test -z "$ac_lib"; then
8558 ac_res="none required"
8561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 ac_cv_search_ldexp=$ac_res
8566 rm -f core conftest.err conftest.$ac_objext \
8568 if test "${ac_cv_search_ldexp+set}" = set; then :
8572 if test "${ac_cv_search_ldexp+set}" = set; then :
8575 ac_cv_search_ldexp=no
8578 LIBS=$ac_func_search_save_LIBS
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8581 $as_echo "$ac_cv_search_ldexp" >&6; }
8582 ac_res=$ac_cv_search_ldexp
8583 if test "$ac_res" != no; then :
8584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8592 # Use <inttypes.h> only if it exists,
8593 # doesn't clash with <sys/types.h>, and declares intmax_t.
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8595 $as_echo_n "checking for inttypes.h... " >&6; }
8596 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8601 #include <sys/types.h>
8602 #include <inttypes.h>
8611 if ac_fn_c_try_compile "$LINENO"; then :
8612 gcc_cv_header_inttypes_h=yes
8614 gcc_cv_header_inttypes_h=no
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8620 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8621 if test $gcc_cv_header_inttypes_h = yes; then
8623 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8629 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8630 sysconf strsignal getrusage nl_langinfo \
8631 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8632 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
8634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8635 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8636 eval as_val=\$$as_ac_var
8637 if test "x$as_val" = x""yes; then :
8638 cat >>confdefs.h <<_ACEOF
8639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8646 if test x$ac_cv_func_mbstowcs = xyes; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8648 $as_echo_n "checking whether mbstowcs works... " >&6; }
8649 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8652 if test "$cross_compiling" = yes; then :
8653 gcc_cv_func_mbstowcs_works=yes
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8664 if ac_fn_c_try_run "$LINENO"; then :
8665 gcc_cv_func_mbstowcs_works=yes
8667 gcc_cv_func_mbstowcs_works=no
8669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8670 conftest.$ac_objext conftest.beam conftest.$ac_ext
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8675 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8676 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8678 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8683 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8684 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8688 cat >>confdefs.h <<_ACEOF
8694 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8695 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8699 cat >>confdefs.h <<_ACEOF
8700 #define caddr_t char *
8707 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8708 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8709 gcc_header_sys_mman_h=yes
8711 gcc_header_sys_mman_h=no
8714 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8715 if test "x$ac_cv_func_mmap" = x""yes; then :
8721 if test "$gcc_header_sys_mman_h" != yes \
8722 || test "$gcc_func_mmap" != yes; then
8723 gcc_cv_func_mmap_file=no
8724 gcc_cv_func_mmap_dev_zero=no
8725 gcc_cv_func_mmap_anon=no
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8728 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8729 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8732 # Add a system to this blacklist if
8733 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8734 # memory area containing the same data that you'd get if you applied
8735 # read() to the same fd. The only system known to have a problem here
8736 # is VMS, where text files have record structure.
8739 gcc_cv_func_mmap_file=no ;;
8741 gcc_cv_func_mmap_file=yes;;
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8745 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8747 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8748 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
8751 # Add a system to this blacklist if it has mmap() but /dev/zero
8752 # does not exist, or if mmapping /dev/zero does not give anonymous
8753 # zeroed pages with both the following properties:
8754 # 1. If you map N consecutive pages in with one call, and then
8755 # unmap any subset of those pages, the pages that were not
8756 # explicitly unmapped remain accessible.
8757 # 2. If you map two adjacent blocks of memory and then unmap them
8758 # both at once, they must both go away.
8759 # Systems known to be in this category are Windows (all variants),
8762 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8763 gcc_cv_func_mmap_dev_zero=no ;;
8765 gcc_cv_func_mmap_dev_zero=yes;;
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8769 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8771 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8773 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8774 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779 #include <sys/types.h>
8780 #include <sys/mman.h>
8783 #ifndef MAP_ANONYMOUS
8784 #define MAP_ANONYMOUS MAP_ANON
8790 int n = MAP_ANONYMOUS;
8795 if ac_fn_c_try_compile "$LINENO"; then :
8796 gcc_cv_decl_map_anon=yes
8798 gcc_cv_decl_map_anon=no
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8803 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8805 if test $gcc_cv_decl_map_anon = no; then
8806 gcc_cv_func_mmap_anon=no
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8809 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8810 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
8813 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8814 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8815 # doesn't give anonymous zeroed pages with the same properties listed
8816 # above for use of /dev/zero.
8817 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8819 vms* | cygwin* | pe | mingw* | sco* | udk* )
8820 gcc_cv_func_mmap_anon=no ;;
8822 gcc_cv_func_mmap_anon=yes;;
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8826 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8830 if test $gcc_cv_func_mmap_file = yes; then
8832 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8835 if test $gcc_cv_func_mmap_dev_zero = yes; then
8837 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8840 if test $gcc_cv_func_mmap_anon = yes; then
8842 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8849 # Under VMS, vfork works very differently than on Unix. The standard test
8850 # won't work, and it isn't easily adaptable. It makes more sense to
8852 ac_cv_func_vfork_works=yes
8855 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8856 if test "x$ac_cv_type_pid_t" = x""yes; then :
8860 cat >>confdefs.h <<_ACEOF
8866 for ac_header in vfork.h
8868 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8869 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8870 cat >>confdefs.h <<_ACEOF
8871 #define HAVE_VFORK_H 1
8877 for ac_func in fork vfork
8879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8881 eval as_val=\$$as_ac_var
8882 if test "x$as_val" = x""yes; then :
8883 cat >>confdefs.h <<_ACEOF
8884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8890 if test "x$ac_cv_func_fork" = xyes; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8892 $as_echo_n "checking for working fork... " >&6; }
8893 if test "${ac_cv_func_fork_works+set}" = set; then :
8894 $as_echo_n "(cached) " >&6
8896 if test "$cross_compiling" = yes; then :
8897 ac_cv_func_fork_works=cross
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 $ac_includes_default
8906 /* By Ruediger Kuhlmann. */
8913 if ac_fn_c_try_run "$LINENO"; then :
8914 ac_cv_func_fork_works=yes
8916 ac_cv_func_fork_works=no
8918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8919 conftest.$ac_objext conftest.beam conftest.$ac_ext
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8924 $as_echo "$ac_cv_func_fork_works" >&6; }
8927 ac_cv_func_fork_works=$ac_cv_func_fork
8929 if test "x$ac_cv_func_fork_works" = xcross; then
8931 *-*-amigaos* | *-*-msdosdjgpp*)
8932 # Override, as these systems have only a dummy fork() stub
8933 ac_cv_func_fork_works=no
8936 ac_cv_func_fork_works=yes
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8940 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8942 ac_cv_func_vfork_works=$ac_cv_func_vfork
8943 if test "x$ac_cv_func_vfork" = xyes; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8945 $as_echo_n "checking for working vfork... " >&6; }
8946 if test "${ac_cv_func_vfork_works+set}" = set; then :
8947 $as_echo_n "(cached) " >&6
8949 if test "$cross_compiling" = yes; then :
8950 ac_cv_func_vfork_works=cross
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 /* Thanks to Paul Eggert for this test. */
8955 $ac_includes_default
8956 #include <sys/wait.h>
8960 /* On some sparc systems, changes by the child to local and incoming
8961 argument registers are propagated back to the parent. The compiler
8962 is told about this with #include <vfork.h>, but some compilers
8963 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8964 static variable whose address is put into a register that is
8965 clobbered by the vfork. */
8968 sparc_address_test (int arg)
8970 sparc_address_test (arg) int arg;
8991 pid_t parent = getpid ();
8994 sparc_address_test (0);
8999 /* Here is another test for sparc vfork register problems. This
9000 test uses lots of local variables, at least as many local
9001 variables as main has allocated so far including compiler
9002 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9003 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9004 reuse the register of parent for one of the local variables,
9005 since it will think that parent can't possibly be used any more
9006 in this routine. Assigning to the local variable will thus
9007 munge parent in the parent process. */
9009 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9010 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9011 /* Convince the compiler that p..p7 are live; otherwise, it might
9012 use the same hardware register for all 8 local variables. */
9013 if (p != p1 || p != p2 || p != p3 || p != p4
9014 || p != p5 || p != p6 || p != p7)
9017 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9018 from child file descriptors. If the child closes a descriptor
9019 before it execs or exits, this munges the parent's descriptor
9020 as well. Test for this by closing stdout in the child. */
9021 _exit(close(fileno(stdout)) != 0);
9026 while (wait(&status) != child)
9029 /* Was there some problem with vforking? */
9032 /* Did the child fail? (This shouldn't happen.) */
9035 /* Did the vfork/compiler bug occur? */
9036 || parent != getpid()
9038 /* Did the file descriptor bug occur? */
9039 || fstat(fileno(stdout), &st) != 0
9044 if ac_fn_c_try_run "$LINENO"; then :
9045 ac_cv_func_vfork_works=yes
9047 ac_cv_func_vfork_works=no
9049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9050 conftest.$ac_objext conftest.beam conftest.$ac_ext
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9055 $as_echo "$ac_cv_func_vfork_works" >&6; }
9058 if test "x$ac_cv_func_fork_works" = xcross; then
9059 ac_cv_func_vfork_works=$ac_cv_func_vfork
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9061 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9064 if test "x$ac_cv_func_vfork_works" = xyes; then
9066 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9070 $as_echo "#define vfork fork" >>confdefs.h
9073 if test "x$ac_cv_func_fork_works" = xyes; then
9075 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9081 if test "X$prefix" = "XNONE"; then
9082 acl_final_prefix="$ac_default_prefix"
9084 acl_final_prefix="$prefix"
9086 if test "X$exec_prefix" = "XNONE"; then
9087 acl_final_exec_prefix='${prefix}'
9089 acl_final_exec_prefix="$exec_prefix"
9091 acl_save_prefix="$prefix"
9092 prefix="$acl_final_prefix"
9093 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9094 prefix="$acl_save_prefix"
9097 # Check whether --with-gnu-ld was given.
9098 if test "${with_gnu_ld+set}" = set; then :
9099 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9104 # Prepare PATH_SEPARATOR.
9105 # The user is always right.
9106 if test "${PATH_SEPARATOR+set}" != set; then
9107 echo "#! /bin/sh" >conf$$.sh
9108 echo "exit 0" >>conf$$.sh
9110 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9118 if test "$GCC" = yes; then
9119 # Check if gcc -print-prog-name=ld gives a path.
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9121 $as_echo_n "checking for ld used by GCC... " >&6; }
9124 # gcc leaves a trailing carriage return which upsets mingw
9125 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9127 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9130 # Accept absolute paths.
9131 [\\/]* | [A-Za-z]:[\\/]*)
9132 re_direlt='/[^/][^/]*/\.\./'
9133 # Canonicalize the path of ld
9134 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9135 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9136 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9138 test -z "$LD" && LD="$ac_prog"
9141 # If it fails, then pretend we aren't using GCC.
9145 # If it is relative, then search for the first ld in PATH.
9149 elif test "$with_gnu_ld" = yes; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9151 $as_echo_n "checking for GNU ld... " >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9154 $as_echo_n "checking for non-GNU ld... " >&6; }
9156 if test "${acl_cv_path_LD+set}" = set; then :
9157 $as_echo_n "(cached) " >&6
9159 if test -z "$LD"; then
9160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9161 for ac_dir in $PATH; do
9162 test -z "$ac_dir" && ac_dir=.
9163 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9164 acl_cv_path_LD="$ac_dir/$ac_prog"
9165 # Check to see if the program is GNU ld. I'd rather use --version,
9166 # but apparently some GNU ld's only accept -v.
9167 # Break only if it was the GNU/non-GNU ld that we prefer.
9168 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9169 test "$with_gnu_ld" != no && break
9171 test "$with_gnu_ld" != yes && break
9177 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9181 LD="$acl_cv_path_LD"
9182 if test -n "$LD"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9184 $as_echo "$LD" >&6; }
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9189 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9191 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9192 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9195 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9196 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9197 acl_cv_prog_gnu_ld=yes
9199 acl_cv_prog_gnu_ld=no
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9203 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9204 with_gnu_ld=$acl_cv_prog_gnu_ld
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9209 $as_echo_n "checking for shared library run path origin... " >&6; }
9210 if test "${acl_cv_rpath+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9214 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9215 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9222 $as_echo "$acl_cv_rpath" >&6; }
9224 libext="$acl_cv_libext"
9225 shlibext="$acl_cv_shlibext"
9226 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9227 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9228 hardcode_direct="$acl_cv_hardcode_direct"
9229 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9230 # Check whether --enable-rpath was given.
9231 if test "${enable_rpath+set}" = set; then :
9232 enableval=$enable_rpath; :
9246 acl_save_prefix="$prefix"
9247 prefix="$acl_final_prefix"
9248 acl_save_exec_prefix="$exec_prefix"
9249 exec_prefix="$acl_final_exec_prefix"
9251 eval additional_includedir=\"$includedir\"
9252 eval additional_libdir=\"$libdir\"
9254 exec_prefix="$acl_save_exec_prefix"
9255 prefix="$acl_save_prefix"
9258 # Check whether --with-libiconv-prefix was given.
9259 if test "${with_libiconv_prefix+set}" = set; then :
9260 withval=$with_libiconv_prefix;
9261 if test "X$withval" = "Xno"; then
9264 if test "X$withval" = "X"; then
9266 acl_save_prefix="$prefix"
9267 prefix="$acl_final_prefix"
9268 acl_save_exec_prefix="$exec_prefix"
9269 exec_prefix="$acl_final_exec_prefix"
9271 eval additional_includedir=\"$includedir\"
9272 eval additional_libdir=\"$libdir\"
9274 exec_prefix="$acl_save_exec_prefix"
9275 prefix="$acl_save_prefix"
9278 additional_includedir="$withval/include"
9279 additional_libdir="$withval/lib"
9290 names_already_handled=
9291 names_next_round='iconv '
9292 while test -n "$names_next_round"; do
9293 names_this_round="$names_next_round"
9295 for name in $names_this_round; do
9297 for n in $names_already_handled; do
9298 if test "$n" = "$name"; then
9303 if test -z "$already_handled"; then
9304 names_already_handled="$names_already_handled $name"
9305 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9306 eval value=\"\$HAVE_LIB$uppername\"
9307 if test -n "$value"; then
9308 if test "$value" = yes; then
9309 eval value=\"\$LIB$uppername\"
9310 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9311 eval value=\"\$LTLIB$uppername\"
9312 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9321 if test $use_additional = yes; then
9322 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9323 found_dir="$additional_libdir"
9324 found_so="$additional_libdir/lib$name.$shlibext"
9325 if test -f "$additional_libdir/lib$name.la"; then
9326 found_la="$additional_libdir/lib$name.la"
9329 if test -f "$additional_libdir/lib$name.$libext"; then
9330 found_dir="$additional_libdir"
9331 found_a="$additional_libdir/lib$name.$libext"
9332 if test -f "$additional_libdir/lib$name.la"; then
9333 found_la="$additional_libdir/lib$name.la"
9338 if test "X$found_dir" = "X"; then
9339 for x in $LDFLAGS $LTLIBICONV; do
9341 acl_save_prefix="$prefix"
9342 prefix="$acl_final_prefix"
9343 acl_save_exec_prefix="$exec_prefix"
9344 exec_prefix="$acl_final_exec_prefix"
9346 exec_prefix="$acl_save_exec_prefix"
9347 prefix="$acl_save_prefix"
9351 dir=`echo "X$x" | sed -e 's/^X-L//'`
9352 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9354 found_so="$dir/lib$name.$shlibext"
9355 if test -f "$dir/lib$name.la"; then
9356 found_la="$dir/lib$name.la"
9359 if test -f "$dir/lib$name.$libext"; then
9361 found_a="$dir/lib$name.$libext"
9362 if test -f "$dir/lib$name.la"; then
9363 found_la="$dir/lib$name.la"
9369 if test "X$found_dir" != "X"; then
9374 if test "X$found_dir" != "X"; then
9375 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9376 if test "X$found_so" != "X"; then
9377 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9378 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9381 for x in $ltrpathdirs; do
9382 if test "X$x" = "X$found_dir"; then
9387 if test -z "$haveit"; then
9388 ltrpathdirs="$ltrpathdirs $found_dir"
9390 if test "$hardcode_direct" = yes; then
9391 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9393 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9394 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9396 for x in $rpathdirs; do
9397 if test "X$x" = "X$found_dir"; then
9402 if test -z "$haveit"; then
9403 rpathdirs="$rpathdirs $found_dir"
9407 for x in $LDFLAGS $LIBICONV; do
9409 acl_save_prefix="$prefix"
9410 prefix="$acl_final_prefix"
9411 acl_save_exec_prefix="$exec_prefix"
9412 exec_prefix="$acl_final_exec_prefix"
9414 exec_prefix="$acl_save_exec_prefix"
9415 prefix="$acl_save_prefix"
9417 if test "X$x" = "X-L$found_dir"; then
9422 if test -z "$haveit"; then
9423 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9425 if test "$hardcode_minus_L" != no; then
9426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9428 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9434 if test "X$found_a" != "X"; then
9435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9437 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9440 additional_includedir=
9441 case "$found_dir" in
9443 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9444 additional_includedir="$basedir/include"
9447 if test "X$additional_includedir" != "X"; then
9448 if test "X$additional_includedir" != "X/usr/include"; then
9450 if test "X$additional_includedir" = "X/usr/local/include"; then
9451 if test -n "$GCC"; then
9453 linux*) haveit=yes;;
9457 if test -z "$haveit"; then
9458 for x in $CPPFLAGS $INCICONV; do
9460 acl_save_prefix="$prefix"
9461 prefix="$acl_final_prefix"
9462 acl_save_exec_prefix="$exec_prefix"
9463 exec_prefix="$acl_final_exec_prefix"
9465 exec_prefix="$acl_save_exec_prefix"
9466 prefix="$acl_save_prefix"
9468 if test "X$x" = "X-I$additional_includedir"; then
9473 if test -z "$haveit"; then
9474 if test -d "$additional_includedir"; then
9475 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9481 if test -n "$found_la"; then
9482 save_libdir="$libdir"
9484 */* | *\\*) . "$found_la" ;;
9485 *) . "./$found_la" ;;
9487 libdir="$save_libdir"
9488 for dep in $dependency_libs; do
9491 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9492 if test "X$additional_libdir" != "X/usr/lib"; then
9494 if test "X$additional_libdir" = "X/usr/local/lib"; then
9495 if test -n "$GCC"; then
9497 linux*) haveit=yes;;
9501 if test -z "$haveit"; then
9503 for x in $LDFLAGS $LIBICONV; do
9505 acl_save_prefix="$prefix"
9506 prefix="$acl_final_prefix"
9507 acl_save_exec_prefix="$exec_prefix"
9508 exec_prefix="$acl_final_exec_prefix"
9510 exec_prefix="$acl_save_exec_prefix"
9511 prefix="$acl_save_prefix"
9513 if test "X$x" = "X-L$additional_libdir"; then
9518 if test -z "$haveit"; then
9519 if test -d "$additional_libdir"; then
9520 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9524 for x in $LDFLAGS $LTLIBICONV; do
9526 acl_save_prefix="$prefix"
9527 prefix="$acl_final_prefix"
9528 acl_save_exec_prefix="$exec_prefix"
9529 exec_prefix="$acl_final_exec_prefix"
9531 exec_prefix="$acl_save_exec_prefix"
9532 prefix="$acl_save_prefix"
9534 if test "X$x" = "X-L$additional_libdir"; then
9539 if test -z "$haveit"; then
9540 if test -d "$additional_libdir"; then
9541 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9548 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9549 if test "$enable_rpath" != no; then
9551 for x in $rpathdirs; do
9552 if test "X$x" = "X$dir"; then
9557 if test -z "$haveit"; then
9558 rpathdirs="$rpathdirs $dir"
9561 for x in $ltrpathdirs; do
9562 if test "X$x" = "X$dir"; then
9567 if test -z "$haveit"; then
9568 ltrpathdirs="$ltrpathdirs $dir"
9573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9576 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9579 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9586 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9593 if test "X$rpathdirs" != "X"; then
9594 if test -n "$hardcode_libdir_separator"; then
9596 for found_dir in $rpathdirs; do
9597 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9599 acl_save_libdir="$libdir"
9601 eval flag=\"$hardcode_libdir_flag_spec\"
9602 libdir="$acl_save_libdir"
9603 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9605 for found_dir in $rpathdirs; do
9606 acl_save_libdir="$libdir"
9608 eval flag=\"$hardcode_libdir_flag_spec\"
9609 libdir="$acl_save_libdir"
9610 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9614 if test "X$ltrpathdirs" != "X"; then
9615 for found_dir in $ltrpathdirs; do
9616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9626 am_save_CPPFLAGS="$CPPFLAGS"
9628 for element in $INCICONV; do
9630 for x in $CPPFLAGS; do
9632 acl_save_prefix="$prefix"
9633 prefix="$acl_final_prefix"
9634 acl_save_exec_prefix="$exec_prefix"
9635 exec_prefix="$acl_final_exec_prefix"
9637 exec_prefix="$acl_save_exec_prefix"
9638 prefix="$acl_save_prefix"
9640 if test "X$x" = "X$element"; then
9645 if test -z "$haveit"; then
9646 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9652 $as_echo_n "checking for iconv... " >&6; }
9653 if test "${am_cv_func_iconv+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9657 am_cv_func_iconv="no, consider installing GNU libiconv"
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9666 iconv_t cd = iconv_open("","");
9667 iconv(cd,NULL,NULL,NULL,NULL);
9673 if ac_fn_c_try_link "$LINENO"; then :
9674 am_cv_func_iconv=yes
9676 rm -f core conftest.err conftest.$ac_objext \
9677 conftest$ac_exeext conftest.$ac_ext
9678 if test "$am_cv_func_iconv" != yes; then
9679 am_save_LIBS="$LIBS"
9680 LIBS="$LIBS $LIBICONV"
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9688 iconv_t cd = iconv_open("","");
9689 iconv(cd,NULL,NULL,NULL,NULL);
9695 if ac_fn_c_try_link "$LINENO"; then :
9697 am_cv_func_iconv=yes
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS="$am_save_LIBS"
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9706 $as_echo "$am_cv_func_iconv" >&6; }
9707 if test "$am_cv_func_iconv" = yes; then
9709 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9712 if test "$am_cv_lib_iconv" = yes; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9714 $as_echo_n "checking how to link with libiconv... " >&6; }
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9716 $as_echo "$LIBICONV" >&6; }
9718 CPPFLAGS="$am_save_CPPFLAGS"
9725 if test "$am_cv_func_iconv" = yes; then
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9727 $as_echo_n "checking for iconv declaration... " >&6; }
9728 if test "${am_cv_proto_iconv+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9741 #if defined(__STDC__) || defined(__cplusplus)
9742 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756 am_cv_proto_iconv_arg1=""
9758 am_cv_proto_iconv_arg1="const"
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 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);"
9764 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9766 }$am_cv_proto_iconv" >&5
9768 }$am_cv_proto_iconv" >&6; }
9770 cat >>confdefs.h <<_ACEOF
9771 #define ICONV_CONST $am_cv_proto_iconv_arg1
9776 # Until we have in-tree GNU iconv:
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9782 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9783 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9797 if ac_fn_c_try_link "$LINENO"; then :
9798 am_cv_val_LC_MESSAGES=yes
9800 am_cv_val_LC_MESSAGES=no
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9806 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9807 if test $am_cv_val_LC_MESSAGES = yes; then
9809 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9816 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9817 if test "${am_cv_langinfo_codeset+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 #include <langinfo.h>
9826 char* cs = nl_langinfo(CODESET);
9831 if ac_fn_c_try_link "$LINENO"; then :
9832 am_cv_langinfo_codeset=yes
9834 am_cv_langinfo_codeset=no
9836 rm -f core conftest.err conftest.$ac_objext \
9837 conftest$ac_exeext conftest.$ac_ext
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9841 $as_echo "$am_cv_langinfo_codeset" >&6; }
9842 if test $am_cv_langinfo_codeset = yes; then
9844 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9849 # We will need to find libiberty.h and ansidecl.h
9850 saved_CFLAGS="$CFLAGS"
9851 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9852 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9853 strsignal strstr strverscmp \
9854 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9855 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
9857 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9859 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9860 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9861 $as_echo_n "(cached) " >&6
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9866 #define $ac_tr_decl 1
9868 #include "ansidecl.h"
9875 char *(*pfn) = (char *(*)) $ac_func ;
9881 if ac_fn_c_try_compile "$LINENO"; then :
9882 eval "gcc_cv_have_decl_$ac_func=yes"
9884 eval "gcc_cv_have_decl_$ac_func=no"
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9891 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9892 #define $ac_tr_decl 1
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9898 #define $ac_tr_decl 0
9906 for ac_func in getrlimit setrlimit getrusage
9908 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9910 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9911 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9912 $as_echo_n "(cached) " >&6
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9917 #define $ac_tr_decl 1
9919 #include "ansidecl.h"
9921 #ifdef HAVE_SYS_RESOURCE_H
9922 #include <sys/resource.h>
9930 char *(*pfn) = (char *(*)) $ac_func ;
9936 if ac_fn_c_try_compile "$LINENO"; then :
9937 eval "gcc_cv_have_decl_$ac_func=yes"
9939 eval "gcc_cv_have_decl_$ac_func=no"
9941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9946 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9947 #define $ac_tr_decl 1
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9953 #define $ac_tr_decl 0
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9964 #include "ansidecl.h"
9966 #ifdef HAVE_SYS_RESOURCE_H
9967 #include <sys/resource.h>
9978 if ac_fn_c_try_compile "$LINENO"; then :
9982 $as_echo "#define rlim_t long" >>confdefs.h
9985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9988 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9989 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9990 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9991 for ac_func in ldgetname
9993 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9995 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9996 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9997 $as_echo_n "(cached) " >&6
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10002 #define $ac_tr_decl 1
10004 #include "ansidecl.h"
10005 #include "system.h"
10006 #ifdef HAVE_LDFCN_H
10017 char *(*pfn) = (char *(*)) $ac_func ;
10023 if ac_fn_c_try_compile "$LINENO"; then :
10024 eval "gcc_cv_have_decl_$ac_func=yes"
10026 eval "gcc_cv_have_decl_$ac_func=no"
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10031 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10033 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10034 #define $ac_tr_decl 1
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10040 #define $ac_tr_decl 0
10048 for ac_func in times
10050 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10052 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10053 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10054 $as_echo_n "(cached) " >&6
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10059 #define $ac_tr_decl 1
10061 #include "ansidecl.h"
10062 #include "system.h"
10063 #ifdef HAVE_SYS_TIMES_H
10064 #include <sys/times.h>
10072 char *(*pfn) = (char *(*)) $ac_func ;
10078 if ac_fn_c_try_compile "$LINENO"; then :
10079 eval "gcc_cv_have_decl_$ac_func=yes"
10081 eval "gcc_cv_have_decl_$ac_func=no"
10083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10088 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10089 #define $ac_tr_decl 1
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10095 #define $ac_tr_decl 0
10103 for ac_func in sigaltstack
10105 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10107 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10108 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10109 $as_echo_n "(cached) " >&6
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10114 #define $ac_tr_decl 1
10116 #include "ansidecl.h"
10117 #include "system.h"
10118 #include <signal.h>
10125 char *(*pfn) = (char *(*)) $ac_func ;
10131 if ac_fn_c_try_compile "$LINENO"; then :
10132 eval "gcc_cv_have_decl_$ac_func=yes"
10134 eval "gcc_cv_have_decl_$ac_func=no"
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10141 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10142 #define $ac_tr_decl 1
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10148 #define $ac_tr_decl 0
10156 # More time-related stuff.
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10158 $as_echo_n "checking for struct tms... " >&6; }
10159 if test "${ac_cv_struct_tms+set}" = set; then :
10160 $as_echo_n "(cached) " >&6
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10166 #include "ansidecl.h"
10167 #include "system.h"
10168 #ifdef HAVE_SYS_TIMES_H
10169 #include <sys/times.h>
10180 if ac_fn_c_try_compile "$LINENO"; then :
10181 ac_cv_struct_tms=yes
10183 ac_cv_struct_tms=no
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10188 $as_echo "$ac_cv_struct_tms" >&6; }
10189 if test $ac_cv_struct_tms = yes; then
10191 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10195 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10196 # revisit after autoconf 2.50.
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10198 $as_echo_n "checking for clock_t... " >&6; }
10199 if test "${gcc_cv_type_clock_t+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10206 #include "ansidecl.h"
10207 #include "system.h"
10217 if ac_fn_c_try_compile "$LINENO"; then :
10218 gcc_cv_type_clock_t=yes
10220 gcc_cv_type_clock_t=no
10222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10225 $as_echo "$gcc_cv_type_clock_t" >&6; }
10226 if test $gcc_cv_type_clock_t = yes; then
10228 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10232 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10233 CFLAGS="$saved_CFLAGS"
10235 # Check whether --enable-initfini-array was given.
10236 if test "${enable_initfini_array+set}" = set; then :
10237 enableval=$enable_initfini_array;
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10241 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10242 if test "${gcc_cv_initfini_array+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10245 if test "$cross_compiling" = yes; then :
10246 gcc_cv_initfini_array=no
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10252 int main (void) { return x; }
10253 int foo (void) { x = 0; }
10254 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10256 if ac_fn_c_try_run "$LINENO"; then :
10257 gcc_cv_initfini_array=yes
10259 gcc_cv_initfini_array=no
10261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10262 conftest.$ac_objext conftest.beam conftest.$ac_ext
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10267 $as_echo "$gcc_cv_initfini_array" >&6; }
10268 enable_initfini_array=$gcc_cv_initfini_array
10272 if test $enable_initfini_array = yes; then
10274 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10278 # mkdir takes a single argument on some systems.
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10280 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10281 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10287 #include <sys/types.h>
10288 #ifdef HAVE_SYS_STAT_H
10289 # include <sys/stat.h>
10291 #ifdef HAVE_UNISTD_H
10292 # include <unistd.h>
10294 #ifdef HAVE_DIRECT_H
10295 # include <direct.h>
10305 if ac_fn_c_try_compile "$LINENO"; then :
10306 gcc_cv_mkdir_takes_one_arg=no
10308 gcc_cv_mkdir_takes_one_arg=yes
10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10313 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10314 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10316 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10327 # With Setjmp/Longjmp based exception handling.
10328 # Check whether --enable-sjlj-exceptions was given.
10329 if test "${enable_sjlj_exceptions+set}" = set; then :
10330 enableval=$enable_sjlj_exceptions; case $target in
10332 if test $enableval != yes; then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10334 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10339 force_sjlj_exceptions=yes
10343 force_sjlj_exceptions=yes
10347 force_sjlj_exceptions=no
10352 if test $force_sjlj_exceptions = yes; then
10353 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10355 cat >>confdefs.h <<_ACEOF
10356 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10361 # For platforms with the unwind ABI which includes an unwind library,
10362 # libunwind, we can choose to use the system libunwind.
10363 # config.gcc also contains tests of with_system_libunwind.
10366 # Check whether --with-system-libunwind was given.
10367 if test "${with_system_libunwind+set}" = set; then :
10368 withval=$with_system_libunwind;
10371 # If system-libunwind was not specifically set, pick a default setting.
10372 if test x$with_system_libunwind = x; then
10374 ia64-*-hpux*) with_system_libunwind=yes ;;
10375 *) with_system_libunwind=no ;;
10378 # Based on system-libunwind and target, do we have ipinfo?
10379 if test x$with_system_libunwind = xyes; then
10381 ia64-*-*) have_unwind_getipinfo=no ;;
10382 *) have_unwind_getipinfo=yes ;;
10385 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10388 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10389 *) have_unwind_getipinfo=yes ;;
10394 if test x$have_unwind_getipinfo = xyes; then
10396 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10401 # --------------------------------------------------------
10402 # Build, host, and target specific configuration fragments
10403 # --------------------------------------------------------
10405 # Collect build-machine-specific information.
10406 . ${srcdir}/config.build
10408 # Collect host-machine-specific information.
10409 . ${srcdir}/config.host
10413 # Collect target-machine-specific information.
10414 . ${srcdir}/config.gcc
10416 extra_objs="${host_extra_objs} ${extra_objs}"
10417 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10419 # Default the target-machine variables that were not explicitly set.
10420 if test x"$tm_file" = x
10421 then tm_file=$cpu_type/$cpu_type.h; fi
10423 if test x"$extra_headers" = x
10424 then extra_headers=; fi
10426 if test x$md_file = x
10427 then md_file=$cpu_type/$cpu_type.md; fi
10429 if test x$out_file = x
10430 then out_file=$cpu_type/$cpu_type.c; fi
10432 if test x"$tmake_file" = x
10433 then tmake_file=$cpu_type/t-$cpu_type
10436 if test x"$dwarf2" = xyes
10437 then tm_file="$tm_file tm-dwarf2.h"
10440 # Say what files are being used for the output code and MD file.
10441 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10442 echo "Using \`$srcdir/config/$md_file' as machine description file."
10444 # If any of the xm_file variables contain nonexistent files, warn
10445 # about them and drop them.
10448 for x in $build_xm_file; do
10449 if test -f $srcdir/config/$x
10451 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10452 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10455 build_xm_file="$bx"
10458 for x in $host_xm_file; do
10459 if test -f $srcdir/config/$x
10461 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10462 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10468 for x in $xm_file; do
10469 if test -f $srcdir/config/$x
10471 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10472 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10478 for f in $tm_file; do
10481 if test $count = ax; then
10482 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10484 echo "Using the following target machine macro files:"
10485 for f in $tm_file; do
10486 echo " $srcdir/config/$f"
10490 if test x$need_64bit_hwint = xyes; then
10492 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10496 if test x$use_long_long_for_widest_fast_int = xyes; then
10498 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10503 for f in $host_xm_file; do
10506 if test $count = a; then
10508 elif test $count = ax; then
10509 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10511 echo "Using the following host machine macro files:"
10512 for f in $host_xm_file; do
10513 echo " $srcdir/config/$f"
10516 echo "Using ${out_host_hook_obj} for host machine hooks."
10518 if test "$host_xm_file" != "$build_xm_file"; then
10520 for f in $build_xm_file; do
10523 if test $count = a; then
10525 elif test $count = ax; then
10526 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10528 echo "Using the following build machine macro files:"
10529 for f in $build_xm_file; do
10530 echo " $srcdir/config/$f"
10536 powerpc*-*-darwin*)
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10538 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10539 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10540 $as_echo_n "(cached) " >&6
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10545 #include <sys/cdefs.h>
10546 #include <sys/signal.h>
10547 #include <ucontext.h>
10548 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10551 if ac_fn_c_try_compile "$LINENO"; then :
10552 gcc_cv_mcontext_underscores=no
10554 gcc_cv_mcontext_underscores=yes
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10559 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10560 if test $gcc_cv_mcontext_underscores = yes; then
10562 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10572 # Check if a valid thread package
10573 case ${enable_threads} in
10576 target_thread_file='single'
10580 target_thread_file='single'
10582 aix | dce | gnat | irix | posix | posix95 | rtems | \
10583 single | solaris | vxworks | win32 | mipssde)
10584 target_thread_file=${enable_threads}
10587 echo "${enable_threads} is an unknown thread package" 1>&2
10592 if test x${thread_file} = x; then
10593 # No thread file set by target-specific clauses in config.gcc,
10594 # so use file chosen by default logic above
10595 thread_file=${target_thread_file}
10598 # Make gthr-default.h if we have a thread file.
10600 if test $thread_file != single; then
10601 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10602 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10603 rm -f gthr-default.h-t
10605 mv -f gthr-default.h-t gthr-default.h
10607 gthread_flags=-DHAVE_GTHR_DEFAULT
10616 if test x$enable___cxa_atexit = xyes || \
10617 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10618 if test x$host = x$target; then
10620 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10621 # keyed to flag_use_cxa_atexit
10626 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10627 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10630 echo "__cxa_atexit can't be enabled on this target"
10636 # We can't check for __cxa_atexit when building a cross, so assume
10640 if test x$use_cxa_atexit = xyes; then
10642 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10647 # Look for a file containing extra machine modes.
10648 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10649 extra_modes_file='$(srcdir)'/config/${extra_modes}
10652 cat >>confdefs.h <<_ACEOF
10653 #define EXTRA_MODES_FILE "config/$extra_modes"
10658 # Convert extra_options into a form suitable for Makefile use.
10661 for f in $extra_options; do
10662 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10663 all_opt_files="$all_opt_files $srcdir/config/$f"
10667 # auto-host.h is the file containing items generated by autoconf and is
10668 # the first file included by config.h.
10669 # If host=build, it is correct to have bconfig include auto-host.h
10670 # as well. If host!=build, we are in error and need to do more
10671 # work to find out the build config parameters.
10672 if test x$host = x$build
10674 build_auto=auto-host.h
10676 # We create a subdir, then run autoconf in the subdir.
10677 # To prevent recursion we set host and build for the new
10678 # invocation of configure to the build for this invocation
10685 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10686 *) realsrcdir=../${srcdir};;
10688 saved_CFLAGS="${CFLAGS}"
10689 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10690 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10691 ${realsrcdir}/configure \
10692 --enable-languages=${enable_languages-all} \
10693 --target=$target_alias --host=$build_alias --build=$build_alias
10694 CFLAGS="${saved_CFLAGS}"
10696 # We just finished tests for the build machine, so rename
10697 # the file auto-build.h in the gcc directory.
10698 mv auto-host.h ../auto-build.h
10701 build_auto=auto-build.h
10705 tm_file="${tm_file} defaults.h"
10706 tm_p_file="${tm_p_file} tm-preds.h"
10707 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10708 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10709 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10710 # put this back in temporarily.
10711 xm_file="auto-host.h ansidecl.h ${xm_file}"
10717 # Compile in configure arguments.
10718 if test -f configargs.h ; then
10719 # Being re-configured.
10720 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10721 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10723 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10726 # Double all backslashes and backslash all quotes to turn
10727 # gcc_config_arguments into a C string.
10728 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10729 $gcc_config_arguments
10731 gcc_config_arguments_str=`cat conftest.out`
10734 cat > configargs.h <<EOF
10735 /* Generated automatically. */
10736 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10737 static const char thread_model[] = "$thread_file";
10739 static const struct {
10740 const char *name, *value;
10741 } configure_default_options[] = $configure_default_options;
10744 gcc_BASEVER=`cat $srcdir/BASE-VER`
10745 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10746 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10747 if test -f $srcdir/REVISION ; then
10748 gcc_REVISION=`cat $srcdir/REVISION`
10752 cat > plugin-version.h <<EOF
10753 #include "configargs.h"
10755 static char basever[] = "$gcc_BASEVER";
10756 static char datestamp[] = "$gcc_DATESTAMP";
10757 static char devphase[] = "$gcc_DEVPHASE";
10758 static char revision[] = "$gcc_REVISION";
10760 /* FIXME plugins: We should make the version information more precise.
10761 One way to do is to add a checksum. */
10763 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10764 devphase, revision,
10765 configuration_arguments};
10768 # Internationalization
10769 # If we haven't got the data from the intl directory,
10770 # assume NLS is disabled.
10779 if test -f ../intl/config.intl; then
10780 . ../intl/config.intl
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10783 $as_echo_n "checking whether NLS is requested... " >&6; }
10784 if test x"$USE_NLS" != xyes; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10789 $as_echo "yes" >&6; }
10791 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10795 $as_echo_n "checking for catalogs to be installed... " >&6; }
10796 # Look for .po and .gmo files in the source directory.
10799 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10800 # If there aren't any .gmo files the shell will give us the
10801 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10803 case "$cat" in *\**)
10806 # The quadruple backslash is collapsed to a double backslash
10807 # by the backticks, then collapsed again by the double quotes,
10808 # leaving us with one backslash in the sed expression (right
10809 # before the dot that mustn't act as a wildcard).
10810 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10811 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10812 # The user is allowed to set LINGUAS to a list of languages to
10813 # install catalogs for. If it's empty that means "all of them."
10814 if test "x$LINGUAS" = x; then
10815 CATALOGS="$CATALOGS $cat"
10816 XLINGUAS="$XLINGUAS $lang"
10818 case "$LINGUAS" in *$lang*)
10819 CATALOGS="$CATALOGS $cat"
10820 XLINGUAS="$XLINGUAS $lang"
10825 LINGUAS="$XLINGUAS"
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10827 $as_echo "$LINGUAS" >&6; }
10840 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10841 # -liconv on the link line twice.
10842 case "$LIBINTL" in *$LIBICONV*)
10846 # Check whether --enable-secureplt was given.
10847 if test "${enable_secureplt+set}" = set; then :
10848 enableval=$enable_secureplt;
10852 # Check whether --enable-leading-mingw64-underscores was given.
10853 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10854 enableval=$enable_leading_mingw64_underscores;
10857 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
10859 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10863 # Check whether --enable-cld was given.
10864 if test "${enable_cld+set}" = set; then :
10865 enableval=$enable_cld;
10871 # Check whether --enable-frame-pointer was given.
10872 if test "${enable_frame_pointer+set}" = set; then :
10873 enableval=$enable_frame_pointer;
10877 linux* | darwin[8912]*)
10878 # Enable -fomit-frame-pointer by default for Linux and Darwin with
10880 enable_frame_pointer=no
10883 enable_frame_pointer=yes
10890 # Windows32 Registry support for specifying GCC installation paths.
10891 # Check whether --enable-win32-registry was given.
10892 if test "${enable_win32_registry+set}" = set; then :
10893 enableval=$enable_win32_registry;
10898 win32 | pe | cygwin* | mingw32* | uwin*)
10899 if test "x$enable_win32_registry" != xno; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10901 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10902 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10905 ac_func_search_save_LIBS=$LIBS
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10909 /* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
10915 char RegOpenKeyExA ();
10919 return RegOpenKeyExA ();
10924 for ac_lib in '' advapi32; do
10925 if test -z "$ac_lib"; then
10926 ac_res="none required"
10929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10931 if ac_fn_c_try_link "$LINENO"; then :
10932 ac_cv_search_RegOpenKeyExA=$ac_res
10934 rm -f core conftest.err conftest.$ac_objext \
10936 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10940 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10943 ac_cv_search_RegOpenKeyExA=no
10945 rm conftest.$ac_ext
10946 LIBS=$ac_func_search_save_LIBS
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10949 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10950 ac_res=$ac_cv_search_RegOpenKeyExA
10951 if test "$ac_res" != no; then :
10952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10955 enable_win32_registry=no
10960 if test "x$enable_win32_registry" != xno; then
10962 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10965 if test "x$enable_win32_registry" != xyes \
10966 && test "x$enable_win32_registry" != x; then
10968 cat >>confdefs.h <<_ACEOF
10969 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10977 # Get an absolute path to the GCC top-level source directory
10978 holddir=`${PWDCMD-pwd}`
10980 topdir=`${PWDCMD-pwd}`
10983 # Conditionalize the makefile for this host machine.
10985 for f in ${host_xmake_file}
10987 if test -f ${srcdir}/config/$f
10989 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10993 # Conditionalize the makefile for this target machine.
10995 for f in ${tmake_file}
10997 if test -f ${srcdir}/config/$f
10999 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11002 tmake_file="${tmake_file_}"
11004 out_object_file=`basename $out_file .c`.o
11006 tm_file_list="options.h"
11007 tm_include_list="options.h insn-constants.h"
11008 for f in $tm_file; do
11011 f=`echo $f | sed 's/^..//'`
11012 tm_file_list="${tm_file_list} $f"
11013 tm_include_list="${tm_include_list} $f"
11016 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11017 tm_include_list="${tm_include_list} $f"
11020 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11021 tm_include_list="${tm_include_list} config/$f"
11028 for f in $tm_p_file; do
11031 tm_p_file_list="${tm_p_file_list} $f"
11032 tm_p_include_list="${tm_p_include_list} $f"
11035 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11036 tm_p_include_list="${tm_p_include_list} config/$f"
11042 for f in $xm_file; do
11045 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11046 xm_include_list="${xm_include_list} $f"
11049 xm_file_list="${xm_file_list} $f"
11050 xm_include_list="${xm_include_list} $f"
11053 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11054 xm_include_list="${xm_include_list} config/$f"
11060 host_xm_include_list=
11061 for f in $host_xm_file; do
11064 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11065 host_xm_include_list="${host_xm_include_list} $f"
11068 host_xm_file_list="${host_xm_file_list} $f"
11069 host_xm_include_list="${host_xm_include_list} $f"
11072 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11073 host_xm_include_list="${host_xm_include_list} config/$f"
11078 build_xm_file_list=
11079 for f in $build_xm_file; do
11082 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11083 build_xm_include_list="${build_xm_include_list} $f"
11085 auto-build.h | auto-host.h )
11086 build_xm_file_list="${build_xm_file_list} $f"
11087 build_xm_include_list="${build_xm_include_list} $f"
11090 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11091 build_xm_include_list="${build_xm_include_list} config/$f"
11096 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11097 # cross-compiler which does not use the native headers and libraries.
11098 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11101 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11103 if test "x$with_build_sysroot" != x; then
11104 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11106 # This value is used, even on a native system, because
11107 # CROSS_SYSTEM_HEADER_DIR is just
11108 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11109 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11112 if test x$host != x$target
11114 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11116 SYSTEM_HEADER_DIR=$build_system_header_dir
11117 case "$host","$target" in
11118 # Darwin crosses can use the host system's libraries and headers,
11119 # because of the fat library support. Of course, it must be the
11120 # same version of Darwin on both sides. Allow the user to
11121 # just say --target=foo-darwin without a version number to mean
11122 # "the version on this system".
11123 *-*-darwin*,*-*-darwin*)
11124 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11125 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11126 if test $hostos = $targetos -o $targetos = darwin ; then
11128 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11133 i?86-*-*,x86_64-*-* \
11134 | powerpc*-*-*,powerpc64*-*-*)
11135 CROSS="$CROSS -DNATIVE_CROSS" ;;
11140 if test "x$with_headers" = x; then
11147 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11148 SYSTEM_HEADER_DIR=$build_system_header_dir
11151 # If this is a cross-compiler that does not
11152 # have its own set of headers then define
11155 # If this is using newlib, without having the headers available now,
11156 # then define inhibit_libc in LIBGCC2_CFLAGS.
11157 # This prevents libgcc2 from containing any code which requires libc
11159 : ${inhibit_libc=false}
11160 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11161 test x$with_newlib = xyes ; } &&
11162 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11167 # When building gcc with a cross-compiler, we need to adjust things so
11168 # that the generator programs are still built with the native compiler.
11169 # Also, we cannot run fixincludes.
11171 # These are the normal (build=host) settings:
11172 CC_FOR_BUILD='$(CC)'
11173 BUILD_CFLAGS='$(ALL_CFLAGS)'
11174 BUILD_LDFLAGS='$(LDFLAGS)'
11175 STMP_FIXINC=stmp-fixinc
11177 # And these apply if build != host, or we are generating coverage data
11178 if test x$build != x$host || test "x$coverage_flags" != x
11180 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11181 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11184 # Expand extra_headers to include complete path.
11185 # This substitutes for lots of t-* files.
11186 extra_headers_list=
11187 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11188 for file in ${extra_headers} ; do
11189 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11192 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11193 if test x"$use_gcc_tgmath" = xyes
11194 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11197 # Define collect2 in Makefile.
11198 case $host_can_use_collect2 in
11200 *) collect2='collect2$(exeext)' ;;
11204 # Add a definition of USE_COLLECT2 if system wants one.
11205 case $use_collect2 in
11206 no) use_collect2= ;;
11209 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11210 xm_defines="${xm_defines} USE_COLLECT2"
11211 case $host_can_use_collect2 in
11213 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11220 cat >>confdefs.h <<_ACEOF
11221 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11225 # ---------------------------
11226 # Assembler & linker features
11227 # ---------------------------
11229 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11230 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11231 # However when ld-new is first executed from the build tree, libtool will
11232 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11233 # to the build tree. While doing this we need to use the previous-stage
11234 # linker, or we have an infinite loop. The presence of a shell script as
11235 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11236 # the gcc/collect-ld script. So we need to know how libtool works, or
11237 # exec-tool will fail.
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11243 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11248 macro_version='2.2.7a'
11249 macro_revision='1.3134'
11263 ltmain="$ac_aux_dir/ltmain.sh"
11265 # Backslashify metacharacters that are still active within
11266 # double-quoted strings.
11267 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11269 # Same as above, but do not quote variable references.
11270 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11272 # Sed substitution to delay expansion of an escaped shell variable in a
11273 # double_quote_subst'ed string.
11274 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11276 # Sed substitution to delay expansion of an escaped single quote.
11277 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11279 # Sed substitution to avoid accidental globbing in evaled expressions
11280 no_glob_subst='s/\*/\\\*/g'
11282 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11283 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11284 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11287 $as_echo_n "checking how to print strings... " >&6; }
11288 # Test print first, because it will be a builtin if present.
11289 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11290 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11292 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11295 # Use this function as a fallback that always works.
11296 func_fallback_echo ()
11298 eval 'cat <<_LTECHO_EOF
11302 ECHO='func_fallback_echo'
11305 # func_echo_all arg...
11306 # Invoke $ECHO with all args, space-separated.
11313 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11314 $as_echo "printf" >&6; } ;;
11315 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11316 $as_echo "print -r" >&6; } ;;
11317 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11318 $as_echo "cat" >&6; } ;;
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11335 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11336 if test "${ac_cv_path_SED+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11339 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11340 for ac_i in 1 2 3 4 5 6 7; do
11341 ac_script="$ac_script$as_nl$ac_script"
11343 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11344 { ac_script=; unset ac_script;}
11345 if test -z "$SED"; then
11346 ac_path_SED_found=false
11347 # Loop through the user's path and test for each of PROGNAME-LIST
11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349 for as_dir in $PATH
11352 test -z "$as_dir" && as_dir=.
11353 for ac_prog in sed gsed; do
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11356 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11357 # Check for GNU ac_path_SED and select it if it is found.
11358 # Check for GNU $ac_path_SED
11359 case `"$ac_path_SED" --version 2>&1` in
11361 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11364 $as_echo_n 0123456789 >"conftest.in"
11367 cat "conftest.in" "conftest.in" >"conftest.tmp"
11368 mv "conftest.tmp" "conftest.in"
11369 cp "conftest.in" "conftest.nl"
11370 $as_echo '' >> "conftest.nl"
11371 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11373 as_fn_arith $ac_count + 1 && ac_count=$as_val
11374 if test $ac_count -gt ${ac_path_SED_max-0}; then
11375 # Best one so far, save it but keep looking for a better one
11376 ac_cv_path_SED="$ac_path_SED"
11377 ac_path_SED_max=$ac_count
11379 # 10*(2^10) chars as input seems more than enough
11380 test $ac_count -gt 10 && break
11382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11385 $ac_path_SED_found && break 3
11390 if test -z "$ac_cv_path_SED"; then
11391 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11394 ac_cv_path_SED=$SED
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11399 $as_echo "$ac_cv_path_SED" >&6; }
11400 SED="$ac_cv_path_SED"
11403 test -z "$SED" && SED=sed
11404 Xsed="$SED -e 1s/^X//"
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11417 $as_echo_n "checking for fgrep... " >&6; }
11418 if test "${ac_cv_path_FGREP+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11421 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11422 then ac_cv_path_FGREP="$GREP -F"
11424 if test -z "$FGREP"; then
11425 ac_path_FGREP_found=false
11426 # Loop through the user's path and test for each of PROGNAME-LIST
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11431 test -z "$as_dir" && as_dir=.
11432 for ac_prog in fgrep; do
11433 for ac_exec_ext in '' $ac_executable_extensions; do
11434 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11435 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11436 # Check for GNU ac_path_FGREP and select it if it is found.
11437 # Check for GNU $ac_path_FGREP
11438 case `"$ac_path_FGREP" --version 2>&1` in
11440 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11443 $as_echo_n 0123456789 >"conftest.in"
11446 cat "conftest.in" "conftest.in" >"conftest.tmp"
11447 mv "conftest.tmp" "conftest.in"
11448 cp "conftest.in" "conftest.nl"
11449 $as_echo 'FGREP' >> "conftest.nl"
11450 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11452 as_fn_arith $ac_count + 1 && ac_count=$as_val
11453 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11454 # Best one so far, save it but keep looking for a better one
11455 ac_cv_path_FGREP="$ac_path_FGREP"
11456 ac_path_FGREP_max=$ac_count
11458 # 10*(2^10) chars as input seems more than enough
11459 test $ac_count -gt 10 && break
11461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11464 $ac_path_FGREP_found && break 3
11469 if test -z "$ac_cv_path_FGREP"; then
11470 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11473 ac_cv_path_FGREP=$FGREP
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11479 $as_echo "$ac_cv_path_FGREP" >&6; }
11480 FGREP="$ac_cv_path_FGREP"
11483 test -z "$GREP" && GREP=grep
11503 # Check whether --with-gnu-ld was given.
11504 if test "${with_gnu_ld+set}" = set; then :
11505 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11511 if test "$GCC" = yes; then
11512 # Check if gcc -print-prog-name=ld gives a path.
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11514 $as_echo_n "checking for ld used by $CC... " >&6; }
11517 # gcc leaves a trailing carriage return which upsets mingw
11518 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11520 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11523 # Accept absolute paths.
11525 re_direlt='/[^/][^/]*/\.\./'
11526 # Canonicalize the pathname of ld
11527 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11528 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11529 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11531 test -z "$LD" && LD="$ac_prog"
11534 # If it fails, then pretend we aren't using GCC.
11538 # If it is relative, then search for the first ld in PATH.
11539 with_gnu_ld=unknown
11542 elif test "$with_gnu_ld" = yes; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11544 $as_echo_n "checking for GNU ld... " >&6; }
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11547 $as_echo_n "checking for non-GNU ld... " >&6; }
11549 if test "${lt_cv_path_LD+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11552 if test -z "$LD"; then
11553 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11554 for ac_dir in $PATH; do
11556 test -z "$ac_dir" && ac_dir=.
11557 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11558 lt_cv_path_LD="$ac_dir/$ac_prog"
11559 # Check to see if the program is GNU ld. I'd rather use --version,
11560 # but apparently some variants of GNU ld only accept -v.
11561 # Break only if it was the GNU/non-GNU ld that we prefer.
11562 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11563 *GNU* | *'with BFD'*)
11564 test "$with_gnu_ld" != no && break
11567 test "$with_gnu_ld" != yes && break
11574 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11578 LD="$lt_cv_path_LD"
11579 if test -n "$LD"; then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11581 $as_echo "$LD" >&6; }
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584 $as_echo "no" >&6; }
11586 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11588 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11589 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11590 $as_echo_n "(cached) " >&6
11592 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11593 case `$LD -v 2>&1 </dev/null` in
11594 *GNU* | *'with BFD'*)
11595 lt_cv_prog_gnu_ld=yes
11598 lt_cv_prog_gnu_ld=no
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11603 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11604 with_gnu_ld=$lt_cv_prog_gnu_ld
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11615 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11616 if test "${lt_cv_path_NM+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11619 if test -n "$NM"; then
11620 # Let the user override the test.
11621 lt_cv_path_NM="$NM"
11623 lt_nm_to_check="${ac_tool_prefix}nm"
11624 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11625 lt_nm_to_check="$lt_nm_to_check nm"
11627 for lt_tmp_nm in $lt_nm_to_check; do
11628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11629 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11631 test -z "$ac_dir" && ac_dir=.
11632 tmp_nm="$ac_dir/$lt_tmp_nm"
11633 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11634 # Check to see if the nm accepts a BSD-compat flag.
11635 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11636 # nm: unknown option "B" ignored
11637 # Tru64's nm complains that /dev/null is an invalid object file
11638 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11639 */dev/null* | *'Invalid file or object type'*)
11640 lt_cv_path_NM="$tmp_nm -B"
11644 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11646 lt_cv_path_NM="$tmp_nm -p"
11650 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11651 continue # so that we can try to find one that supports BSD flags
11660 : ${lt_cv_path_NM=no}
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11664 $as_echo "$lt_cv_path_NM" >&6; }
11665 if test "$lt_cv_path_NM" != "no"; then
11666 NM="$lt_cv_path_NM"
11668 # Didn't find any BSD compatible name lister, look for dumpbin.
11669 if test -n "$DUMPBIN"; then :
11670 # Let the user override the test.
11672 if test -n "$ac_tool_prefix"; then
11673 for ac_prog in dumpbin "link -dump"
11675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11682 if test -n "$DUMPBIN"; then
11683 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 DUMPBIN=$ac_cv_prog_DUMPBIN
11703 if test -n "$DUMPBIN"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11705 $as_echo "$DUMPBIN" >&6; }
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11712 test -n "$DUMPBIN" && break
11715 if test -z "$DUMPBIN"; then
11716 ac_ct_DUMPBIN=$DUMPBIN
11717 for ac_prog in dumpbin "link -dump"
11719 # Extract the first word of "$ac_prog", so it can be a program name with args.
11720 set dummy $ac_prog; ac_word=$2
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11722 $as_echo_n "checking for $ac_word... " >&6; }
11723 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11724 $as_echo_n "(cached) " >&6
11726 if test -n "$ac_ct_DUMPBIN"; then
11727 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11736 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11746 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11747 if test -n "$ac_ct_DUMPBIN"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11749 $as_echo "$ac_ct_DUMPBIN" >&6; }
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11756 test -n "$ac_ct_DUMPBIN" && break
11759 if test "x$ac_ct_DUMPBIN" = x; then
11762 case $cross_compiling:$ac_tool_warned in
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11766 ac_tool_warned=yes ;;
11768 DUMPBIN=$ac_ct_DUMPBIN
11772 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11774 DUMPBIN="$DUMPBIN -symbols"
11782 if test "$DUMPBIN" != ":"; then
11786 test -z "$NM" && NM=nm
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11794 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11795 if test "${lt_cv_nm_interface+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11798 lt_cv_nm_interface="BSD nm"
11799 echo "int some_variable = 0;" > conftest.$ac_ext
11800 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11801 (eval "$ac_compile" 2>conftest.err)
11802 cat conftest.err >&5
11803 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11804 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11805 cat conftest.err >&5
11806 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11807 cat conftest.out >&5
11808 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11809 lt_cv_nm_interface="MS dumpbin"
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11814 $as_echo "$lt_cv_nm_interface" >&6; }
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11817 $as_echo_n "checking whether ln -s works... " >&6; }
11819 if test "$LN_S" = "ln -s"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11821 $as_echo "yes" >&6; }
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11824 $as_echo "no, using $LN_S" >&6; }
11827 # find the maximum length of command line arguments
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11829 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11830 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11831 $as_echo_n "(cached) " >&6
11838 # On DJGPP, this test can blow up pretty badly due to problems in libc
11839 # (any single argument exceeding 2000 bytes causes a buffer overrun
11840 # during glob expansion). Even if it were fixed, the result of this
11841 # check would be larger than it should be.
11842 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11846 # Under GNU Hurd, this test is not required because there is
11847 # no limit to the length of command line arguments.
11848 # Libtool will interpret -1 as no limit whatsoever
11849 lt_cv_sys_max_cmd_len=-1;
11852 cygwin* | mingw* | cegcc*)
11853 # On Win9x/ME, this test blows up -- it succeeds, but takes
11854 # about 5 minutes as the teststring grows exponentially.
11855 # Worse, since 9x/ME are not pre-emptively multitasking,
11856 # you end up with a "frozen" computer, even though with patience
11857 # the test eventually succeeds (with a max line length of 256k).
11858 # Instead, let's just punt: use the minimum linelength reported by
11859 # all of the supported platforms: 8192 (on NT/2K/XP).
11860 lt_cv_sys_max_cmd_len=8192;
11864 # On MiNT this can take a long time and run out of memory.
11865 lt_cv_sys_max_cmd_len=8192;
11869 # On AmigaOS with pdksh, this test takes hours, literally.
11870 # So we just punt and use a minimum line length of 8192.
11871 lt_cv_sys_max_cmd_len=8192;
11874 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11875 # This has been around since 386BSD, at least. Likely further.
11876 if test -x /sbin/sysctl; then
11877 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11878 elif test -x /usr/sbin/sysctl; then
11879 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11881 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11883 # And add a safety zone
11884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11889 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11890 lt_cv_sys_max_cmd_len=196608
11894 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11895 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11896 # nice to cause kernel panics so lets avoid the loop below.
11897 # First set a reasonable default.
11898 lt_cv_sys_max_cmd_len=16384
11900 if test -x /sbin/sysconfig; then
11901 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11902 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11907 lt_cv_sys_max_cmd_len=102400
11909 sysv5* | sco5v6* | sysv4.2uw2*)
11910 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11911 if test -n "$kargmax"; then
11912 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11914 lt_cv_sys_max_cmd_len=32768
11918 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11919 if test -n "$lt_cv_sys_max_cmd_len"; then
11920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11923 # Make teststring a little bigger before we do anything with it.
11924 # a 1K string should be a reasonable start.
11925 for i in 1 2 3 4 5 6 7 8 ; do
11926 teststring=$teststring$teststring
11928 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11929 # If test is not a shell built-in, we'll probably end up computing a
11930 # maximum length that is only half of the actual maximum length, but
11932 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11933 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11934 test $i != 17 # 1/2 MB should be enough
11937 teststring=$teststring$teststring
11939 # Only check the string length outside the loop.
11940 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11942 # Add a significant safety factor because C++ compilers can tack on
11943 # massive amounts of additional arguments before passing them to the
11944 # linker. It appears as though 1/2 is a usable value.
11945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11952 if test -n $lt_cv_sys_max_cmd_len ; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11954 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11957 $as_echo "none" >&6; }
11959 max_cmd_len=$lt_cv_sys_max_cmd_len
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11971 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11972 # Try some XSI features
11974 ( _lt_dummy="a/b/c"
11975 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11977 && eval 'test $(( 1 + 1 )) -eq 2 \
11978 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11981 $as_echo "$xsi_shell" >&6; }
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11985 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11987 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11989 && lt_shell_append=yes
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11991 $as_echo "$lt_shell_append" >&6; }
11994 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12004 # test EBCDIC or ASCII
12005 case `echo X|tr X '\101'` in
12006 A) # ASCII based system
12007 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12008 lt_SP2NL='tr \040 \012'
12009 lt_NL2SP='tr \015\012 \040\040'
12011 *) # EBCDIC based system
12012 lt_SP2NL='tr \100 \n'
12013 lt_NL2SP='tr \r\n \100\100'
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12026 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12027 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
12030 lt_cv_ld_reload_flag='-r'
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12033 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12034 reload_flag=$lt_cv_ld_reload_flag
12035 case $reload_flag in
12037 *) reload_flag=" $reload_flag" ;;
12039 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12042 if test "$GCC" = yes; then
12043 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12045 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12058 if test -n "$ac_tool_prefix"; then
12059 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12060 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12066 if test -n "$OBJDUMP"; then
12067 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12076 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 OBJDUMP=$ac_cv_prog_OBJDUMP
12087 if test -n "$OBJDUMP"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12089 $as_echo "$OBJDUMP" >&6; }
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12097 if test -z "$ac_cv_prog_OBJDUMP"; then
12098 ac_ct_OBJDUMP=$OBJDUMP
12099 # Extract the first word of "objdump", so it can be a program name with args.
12100 set dummy objdump; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 $as_echo_n "checking for $ac_word... " >&6; }
12103 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
12106 if test -n "$ac_ct_OBJDUMP"; then
12107 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12116 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12126 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12127 if test -n "$ac_ct_OBJDUMP"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12129 $as_echo "$ac_ct_OBJDUMP" >&6; }
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12135 if test "x$ac_ct_OBJDUMP" = x; then
12138 case $cross_compiling:$ac_tool_warned in
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12142 ac_tool_warned=yes ;;
12144 OBJDUMP=$ac_ct_OBJDUMP
12147 OBJDUMP="$ac_cv_prog_OBJDUMP"
12150 test -z "$OBJDUMP" && OBJDUMP=objdump
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12161 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12162 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12165 lt_cv_file_magic_cmd='$MAGIC_CMD'
12166 lt_cv_file_magic_test_file=
12167 lt_cv_deplibs_check_method='unknown'
12168 # Need to set the preceding variable on all platforms that support
12169 # interlibrary dependencies.
12170 # 'none' -- dependencies not supported.
12171 # `unknown' -- same as none, but documents that we really don't know.
12172 # 'pass_all' -- all dependencies passed with no checks.
12173 # 'test_compile' -- check by making test program.
12174 # 'file_magic [[regex]]' -- check by looking for files in library path
12175 # which responds to the $file_magic_cmd with a given extended regex.
12176 # If you have `file' or equivalent on your system and you're not sure
12177 # whether `pass_all' will *always* work, you probably want this one.
12181 lt_cv_deplibs_check_method=pass_all
12185 lt_cv_deplibs_check_method=pass_all
12189 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12190 lt_cv_file_magic_cmd='/usr/bin/file -L'
12191 lt_cv_file_magic_test_file=/shlib/libc.so
12195 # func_win32_libid is a shell function defined in ltmain.sh
12196 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12197 lt_cv_file_magic_cmd='func_win32_libid'
12201 # Base MSYS/MinGW do not provide the 'file' command needed by
12202 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12203 # unless we find 'file', for example because we are cross-compiling.
12204 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12205 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12206 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12207 lt_cv_file_magic_cmd='func_win32_libid'
12209 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12210 lt_cv_file_magic_cmd='$OBJDUMP -f'
12215 # use the weaker test based on 'objdump'. See mingw*.
12216 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12217 lt_cv_file_magic_cmd='$OBJDUMP -f'
12220 darwin* | rhapsody*)
12221 lt_cv_deplibs_check_method=pass_all
12224 freebsd* | dragonfly*)
12225 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12228 # Not sure whether the presence of OpenBSD here was a mistake.
12229 # Let's accept both of them until this is cleared up.
12230 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12231 lt_cv_file_magic_cmd=/usr/bin/file
12232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12236 lt_cv_deplibs_check_method=pass_all
12241 lt_cv_deplibs_check_method=pass_all
12245 lt_cv_deplibs_check_method=pass_all
12248 hpux10.20* | hpux11*)
12249 lt_cv_file_magic_cmd=/usr/bin/file
12252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12253 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12256 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]'
12257 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12261 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12267 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12271 irix5* | irix6* | nonstopux*)
12273 *-32|*"-32 ") libmagic=32-bit;;
12274 *-n32|*"-n32 ") libmagic=N32;;
12275 *-64|*"-64 ") libmagic=64-bit;;
12276 *) libmagic=never-match;;
12278 lt_cv_deplibs_check_method=pass_all
12281 # This must be Linux ELF.
12282 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12283 lt_cv_deplibs_check_method=pass_all
12287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12296 lt_cv_file_magic_cmd=/usr/bin/file
12297 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12301 lt_cv_deplibs_check_method=pass_all
12305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12312 osf3* | osf4* | osf5*)
12313 lt_cv_deplibs_check_method=pass_all
12317 lt_cv_deplibs_check_method=pass_all
12321 lt_cv_deplibs_check_method=pass_all
12324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12325 lt_cv_deplibs_check_method=pass_all
12329 case $host_vendor in
12331 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]'
12332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12335 lt_cv_deplibs_check_method=pass_all
12338 lt_cv_file_magic_cmd='/bin/file'
12339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12342 lt_cv_file_magic_cmd='/bin/file'
12343 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12344 lt_cv_file_magic_test_file=/lib/libc.so
12347 lt_cv_deplibs_check_method=pass_all
12350 lt_cv_deplibs_check_method=pass_all
12356 lt_cv_deplibs_check_method=pass_all
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12362 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12363 file_magic_cmd=$lt_cv_file_magic_cmd
12364 deplibs_check_method=$lt_cv_deplibs_check_method
12365 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12378 if test -n "$ac_tool_prefix"; then
12379 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12380 set dummy ${ac_tool_prefix}ar; ac_word=$2
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382 $as_echo_n "checking for $ac_word... " >&6; }
12383 if test "${ac_cv_prog_AR+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12386 if test -n "$AR"; then
12387 ac_cv_prog_AR="$AR" # Let the user override the test.
12389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390 for as_dir in $PATH
12393 test -z "$as_dir" && as_dir=.
12394 for ac_exec_ext in '' $ac_executable_extensions; do
12395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12396 ac_cv_prog_AR="${ac_tool_prefix}ar"
12397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407 if test -n "$AR"; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12409 $as_echo "$AR" >&6; }
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12417 if test -z "$ac_cv_prog_AR"; then
12419 # Extract the first word of "ar", so it can be a program name with args.
12420 set dummy ar; ac_word=$2
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12422 $as_echo_n "checking for $ac_word... " >&6; }
12423 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
12426 if test -n "$ac_ct_AR"; then
12427 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12433 test -z "$as_dir" && as_dir=.
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12436 ac_cv_prog_ac_ct_AR="ar"
12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12447 if test -n "$ac_ct_AR"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12449 $as_echo "$ac_ct_AR" >&6; }
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12455 if test "x$ac_ct_AR" = x; then
12458 case $cross_compiling:$ac_tool_warned in
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12462 ac_tool_warned=yes ;;
12467 AR="$ac_cv_prog_AR"
12470 test -z "$AR" && AR=ar
12471 test -z "$AR_FLAGS" && AR_FLAGS=cru
12483 if test -n "$ac_tool_prefix"; then
12484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12485 set dummy ${ac_tool_prefix}strip; ac_word=$2
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12487 $as_echo_n "checking for $ac_word... " >&6; }
12488 if test "${ac_cv_prog_STRIP+set}" = set; then :
12489 $as_echo_n "(cached) " >&6
12491 if test -n "$STRIP"; then
12492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12501 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 STRIP=$ac_cv_prog_STRIP
12512 if test -n "$STRIP"; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12514 $as_echo "$STRIP" >&6; }
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12522 if test -z "$ac_cv_prog_STRIP"; then
12524 # Extract the first word of "strip", so it can be a program name with args.
12525 set dummy strip; ac_word=$2
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527 $as_echo_n "checking for $ac_word... " >&6; }
12528 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12529 $as_echo_n "(cached) " >&6
12531 if test -n "$ac_ct_STRIP"; then
12532 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12538 test -z "$as_dir" && as_dir=.
12539 for ac_exec_ext in '' $ac_executable_extensions; do
12540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12541 ac_cv_prog_ac_ct_STRIP="strip"
12542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12551 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12552 if test -n "$ac_ct_STRIP"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12554 $as_echo "$ac_ct_STRIP" >&6; }
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12560 if test "x$ac_ct_STRIP" = x; then
12563 case $cross_compiling:$ac_tool_warned in
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12567 ac_tool_warned=yes ;;
12572 STRIP="$ac_cv_prog_STRIP"
12575 test -z "$STRIP" && STRIP=:
12582 if test -n "$ac_tool_prefix"; then
12583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12590 if test -n "$RANLIB"; then
12591 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 RANLIB=$ac_cv_prog_RANLIB
12611 if test -n "$RANLIB"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12613 $as_echo "$RANLIB" >&6; }
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12621 if test -z "$ac_cv_prog_RANLIB"; then
12622 ac_ct_RANLIB=$RANLIB
12623 # Extract the first word of "ranlib", so it can be a program name with args.
12624 set dummy ranlib; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12630 if test -n "$ac_ct_RANLIB"; then
12631 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12637 test -z "$as_dir" && as_dir=.
12638 for ac_exec_ext in '' $ac_executable_extensions; do
12639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12640 ac_cv_prog_ac_ct_RANLIB="ranlib"
12641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12651 if test -n "$ac_ct_RANLIB"; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12653 $as_echo "$ac_ct_RANLIB" >&6; }
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12659 if test "x$ac_ct_RANLIB" = x; then
12662 case $cross_compiling:$ac_tool_warned in
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12666 ac_tool_warned=yes ;;
12668 RANLIB=$ac_ct_RANLIB
12671 RANLIB="$ac_cv_prog_RANLIB"
12674 test -z "$RANLIB" && RANLIB=:
12681 # Determine commands to create old-style static archives.
12682 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12683 old_postinstall_cmds='chmod 644 $oldlib'
12684 old_postuninstall_cmds=
12686 if test -n "$RANLIB"; then
12689 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12692 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12695 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12700 lock_old_archive_extraction=yes ;;
12702 lock_old_archive_extraction=no ;;
12743 # If no C compiler was specified, use CC.
12746 # If no C compiler flags were specified, use CFLAGS.
12747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12749 # Allow CC to be a program name with arguments.
12753 # Check for command to grab the raw symbol name followed by C symbol from nm.
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12755 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12756 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12760 # These are sane defaults that work on at least a few old systems.
12761 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12763 # Character class describing NM global symbol codes.
12764 symcode='[BCDEGRST]'
12766 # Regexp to match symbols that can be accessed directly from C.
12767 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12769 # Define system-specific variables.
12774 cygwin* | mingw* | pw32* | cegcc*)
12775 symcode='[ABCDGISTW]'
12778 if test "$host_cpu" = ia64; then
12779 symcode='[ABCDEGRST]'
12782 irix* | nonstopux*)
12783 symcode='[BCDEGRST]'
12786 symcode='[BCDEGQRST]'
12797 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12805 # If we're using GNU nm, then use its standard symbol codes.
12806 case `$NM -V 2>&1` in
12807 *GNU* | *'with BFD'*)
12808 symcode='[ABCDGIRSTW]' ;;
12811 # Transform an extracted symbol line into a proper C declaration.
12812 # Some systems (esp. on ia64) link data and code symbols differently,
12813 # so use this general approach.
12814 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12816 # Transform an extracted symbol line into symbol name and symbol address
12817 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12818 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'"
12820 # Handle CRLF in mingw tool chain
12824 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12828 # Try without a prefix underscore, then with it.
12829 for ac_symprfx in "" "_"; do
12831 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12832 symxfrm="\\1 $ac_symprfx\\2 \\2"
12834 # Write the raw and C identifiers.
12835 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12836 # Fake it for dumpbin and say T for any non-static function
12837 # and D for any global variable.
12838 # Also find C++ and __fastcall symbols from MSVC++,
12839 # which start with @ or ?.
12840 lt_cv_sys_global_symbol_pipe="$AWK '"\
12841 " {last_section=section; section=\$ 3};"\
12842 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12843 " \$ 0!~/External *\|/{next};"\
12844 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12845 " {if(hide[section]) next};"\
12846 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12847 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12848 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12849 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12850 " ' prfx=^$ac_symprfx"
12852 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12855 # Check to see that the pipe works correctly.
12859 cat > conftest.$ac_ext <<_LT_EOF
12864 void nm_test_func(void);
12865 void nm_test_func(void){}
12869 int main(){nm_test_var='a';nm_test_func();return(0);}
12872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12873 (eval $ac_compile) 2>&5
12875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876 test $ac_status = 0; }; then
12877 # Now try to grab the symbols.
12879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12880 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12883 test $ac_status = 0; } && test -s "$nlist"; then
12884 # Try sorting and uniquifying the output.
12885 if sort "$nlist" | uniq > "$nlist"T; then
12886 mv -f "$nlist"T "$nlist"
12891 # Make sure that we snagged all the symbols we need.
12892 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12893 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12894 cat <<_LT_EOF > conftest.$ac_ext
12900 # Now generate the symbol file.
12901 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12903 cat <<_LT_EOF >> conftest.$ac_ext
12905 /* The mapping between symbol names and symbols. */
12910 lt__PROGRAM__LTX_preloaded_symbols[] =
12912 { "@PROGRAM@", (void *) 0 },
12914 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12915 cat <<\_LT_EOF >> conftest.$ac_ext
12919 /* This works around a problem in FreeBSD linker */
12920 #ifdef FREEBSD_WORKAROUND
12921 static const void *lt_preloaded_setup() {
12922 return lt__PROGRAM__LTX_preloaded_symbols;
12930 # Now try linking the two files.
12931 mv conftest.$ac_objext conftstm.$ac_objext
12932 lt_save_LIBS="$LIBS"
12933 lt_save_CFLAGS="$CFLAGS"
12934 LIBS="conftstm.$ac_objext"
12935 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12937 (eval $ac_link) 2>&5
12939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12940 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12943 LIBS="$lt_save_LIBS"
12944 CFLAGS="$lt_save_CFLAGS"
12946 echo "cannot find nm_test_func in $nlist" >&5
12949 echo "cannot find nm_test_var in $nlist" >&5
12952 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12955 echo "$progname: failed program was:" >&5
12956 cat conftest.$ac_ext >&5
12958 rm -rf conftest* conftst*
12960 # Do not use the global_symbol_pipe unless it works.
12961 if test "$pipe_works" = yes; then
12964 lt_cv_sys_global_symbol_pipe=
12970 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12971 lt_cv_sys_global_symbol_to_cdecl=
12973 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12975 $as_echo "failed" >&6; }
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12978 $as_echo "ok" >&6; }
13002 # Check whether --enable-libtool-lock was given.
13003 if test "${enable_libtool_lock+set}" = set; then :
13004 enableval=$enable_libtool_lock;
13007 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13009 # Some flags need to be propagated to the compiler or linker for good
13013 # Find out which ABI we are using.
13014 echo 'int i;' > conftest.$ac_ext
13015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13016 (eval $ac_compile) 2>&5
13018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019 test $ac_status = 0; }; then
13020 case `/usr/bin/file conftest.$ac_objext` in
13022 HPUX_IA64_MODE="32"
13025 HPUX_IA64_MODE="64"
13032 # Find out which ABI we are using.
13033 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13035 (eval $ac_compile) 2>&5
13037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13038 test $ac_status = 0; }; then
13039 if test "$lt_cv_prog_gnu_ld" = yes; then
13040 case `/usr/bin/file conftest.$ac_objext` in
13042 LD="${LD-ld} -melf32bsmip"
13045 LD="${LD-ld} -melf32bmipn32"
13048 LD="${LD-ld} -melf64bmip"
13052 case `/usr/bin/file conftest.$ac_objext` in
13068 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13069 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13070 # Find out which ABI we are using.
13071 echo 'int i;' > conftest.$ac_ext
13072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13073 (eval $ac_compile) 2>&5
13075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076 test $ac_status = 0; }; then
13077 case `/usr/bin/file conftest.o` in
13080 x86_64-*kfreebsd*-gnu)
13081 LD="${LD-ld} -m elf_i386_fbsd"
13084 LD="${LD-ld} -m elf_i386"
13086 ppc64-*linux*|powerpc64-*linux*)
13087 LD="${LD-ld} -m elf32ppclinux"
13090 LD="${LD-ld} -m elf_s390"
13093 LD="${LD-ld} -m elf32_sparc"
13099 x86_64-*kfreebsd*-gnu)
13100 LD="${LD-ld} -m elf_x86_64_fbsd"
13103 LD="${LD-ld} -m elf_x86_64"
13105 ppc*-*linux*|powerpc*-*linux*)
13106 LD="${LD-ld} -m elf64ppc"
13108 s390*-*linux*|s390*-*tpf*)
13109 LD="${LD-ld} -m elf64_s390"
13112 LD="${LD-ld} -m elf64_sparc"
13122 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13123 SAVE_CFLAGS="$CFLAGS"
13124 CFLAGS="$CFLAGS -belf"
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13126 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13127 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13131 ac_cpp='$CPP $CPPFLAGS'
13132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13147 if ac_fn_c_try_link "$LINENO"; then :
13148 lt_cv_cc_needs_belf=yes
13150 lt_cv_cc_needs_belf=no
13152 rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13162 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13163 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13165 CFLAGS="$SAVE_CFLAGS"
13169 # Find out which ABI we are using.
13170 echo 'int i;' > conftest.$ac_ext
13171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13172 (eval $ac_compile) 2>&5
13174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175 test $ac_status = 0; }; then
13176 case `/usr/bin/file conftest.o` in
13178 case $lt_cv_prog_gnu_ld in
13179 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13181 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13193 need_locks="$enable_libtool_lock"
13197 rhapsody* | darwin*)
13198 if test -n "$ac_tool_prefix"; then
13199 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13200 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13204 $as_echo_n "(cached) " >&6
13206 if test -n "$DSYMUTIL"; then
13207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13216 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13226 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13227 if test -n "$DSYMUTIL"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13229 $as_echo "$DSYMUTIL" >&6; }
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13237 if test -z "$ac_cv_prog_DSYMUTIL"; then
13238 ac_ct_DSYMUTIL=$DSYMUTIL
13239 # Extract the first word of "dsymutil", so it can be a program name with args.
13240 set dummy dsymutil; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13244 $as_echo_n "(cached) " >&6
13246 if test -n "$ac_ct_DSYMUTIL"; then
13247 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13256 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13267 if test -n "$ac_ct_DSYMUTIL"; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13269 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13275 if test "x$ac_ct_DSYMUTIL" = x; then
13278 case $cross_compiling:$ac_tool_warned in
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13282 ac_tool_warned=yes ;;
13284 DSYMUTIL=$ac_ct_DSYMUTIL
13287 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13290 if test -n "$ac_tool_prefix"; then
13291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
13298 if test -n "$NMEDIT"; then
13299 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 NMEDIT=$ac_cv_prog_NMEDIT
13319 if test -n "$NMEDIT"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13321 $as_echo "$NMEDIT" >&6; }
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13329 if test -z "$ac_cv_prog_NMEDIT"; then
13330 ac_ct_NMEDIT=$NMEDIT
13331 # Extract the first word of "nmedit", so it can be a program name with args.
13332 set dummy nmedit; ac_word=$2
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334 $as_echo_n "checking for $ac_word... " >&6; }
13335 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
13338 if test -n "$ac_ct_NMEDIT"; then
13339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342 for as_dir in $PATH
13345 test -z "$as_dir" && as_dir=.
13346 for ac_exec_ext in '' $ac_executable_extensions; do
13347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13348 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13359 if test -n "$ac_ct_NMEDIT"; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13361 $as_echo "$ac_ct_NMEDIT" >&6; }
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13367 if test "x$ac_ct_NMEDIT" = x; then
13370 case $cross_compiling:$ac_tool_warned in
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13374 ac_tool_warned=yes ;;
13376 NMEDIT=$ac_ct_NMEDIT
13379 NMEDIT="$ac_cv_prog_NMEDIT"
13382 if test -n "$ac_tool_prefix"; then
13383 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13384 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if test "${ac_cv_prog_LIPO+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13390 if test -n "$LIPO"; then
13391 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13400 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 LIPO=$ac_cv_prog_LIPO
13411 if test -n "$LIPO"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13413 $as_echo "$LIPO" >&6; }
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13421 if test -z "$ac_cv_prog_LIPO"; then
13423 # Extract the first word of "lipo", so it can be a program name with args.
13424 set dummy lipo; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426 $as_echo_n "checking for $ac_word... " >&6; }
13427 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13430 if test -n "$ac_ct_LIPO"; then
13431 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13437 test -z "$as_dir" && as_dir=.
13438 for ac_exec_ext in '' $ac_executable_extensions; do
13439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13440 ac_cv_prog_ac_ct_LIPO="lipo"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13451 if test -n "$ac_ct_LIPO"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13453 $as_echo "$ac_ct_LIPO" >&6; }
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13459 if test "x$ac_ct_LIPO" = x; then
13462 case $cross_compiling:$ac_tool_warned in
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13466 ac_tool_warned=yes ;;
13471 LIPO="$ac_cv_prog_LIPO"
13474 if test -n "$ac_tool_prefix"; then
13475 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13476 set dummy ${ac_tool_prefix}otool; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13480 $as_echo_n "(cached) " >&6
13482 if test -n "$OTOOL"; then
13483 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13492 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13502 OTOOL=$ac_cv_prog_OTOOL
13503 if test -n "$OTOOL"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13505 $as_echo "$OTOOL" >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13513 if test -z "$ac_cv_prog_OTOOL"; then
13515 # Extract the first word of "otool", so it can be a program name with args.
13516 set dummy otool; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13522 if test -n "$ac_ct_OTOOL"; then
13523 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_ac_ct_OTOOL="otool"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13543 if test -n "$ac_ct_OTOOL"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13545 $as_echo "$ac_ct_OTOOL" >&6; }
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13551 if test "x$ac_ct_OTOOL" = x; then
13554 case $cross_compiling:$ac_tool_warned in
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13558 ac_tool_warned=yes ;;
13563 OTOOL="$ac_cv_prog_OTOOL"
13566 if test -n "$ac_tool_prefix"; then
13567 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13568 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13570 $as_echo_n "checking for $ac_word... " >&6; }
13571 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13572 $as_echo_n "(cached) " >&6
13574 if test -n "$OTOOL64"; then
13575 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13584 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 OTOOL64=$ac_cv_prog_OTOOL64
13595 if test -n "$OTOOL64"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13597 $as_echo "$OTOOL64" >&6; }
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13605 if test -z "$ac_cv_prog_OTOOL64"; then
13606 ac_ct_OTOOL64=$OTOOL64
13607 # Extract the first word of "otool64", so it can be a program name with args.
13608 set dummy otool64; ac_word=$2
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610 $as_echo_n "checking for $ac_word... " >&6; }
13611 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13612 $as_echo_n "(cached) " >&6
13614 if test -n "$ac_ct_OTOOL64"; then
13615 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $PATH
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13624 ac_cv_prog_ac_ct_OTOOL64="otool64"
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13635 if test -n "$ac_ct_OTOOL64"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13637 $as_echo "$ac_ct_OTOOL64" >&6; }
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13643 if test "x$ac_ct_OTOOL64" = x; then
13646 case $cross_compiling:$ac_tool_warned in
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13650 ac_tool_warned=yes ;;
13652 OTOOL64=$ac_ct_OTOOL64
13655 OTOOL64="$ac_cv_prog_OTOOL64"
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13685 $as_echo_n "checking for -single_module linker flag... " >&6; }
13686 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13687 $as_echo_n "(cached) " >&6
13689 lt_cv_apple_cc_single_mod=no
13690 if test -z "${LT_MULTI_MODULE}"; then
13691 # By default we will add the -single_module flag. You can override
13692 # by either setting the environment variable LT_MULTI_MODULE
13693 # non-empty at configure time, or by adding -multi_module to the
13695 rm -rf libconftest.dylib*
13696 echo "int foo(void){return 1;}" > conftest.c
13697 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13698 -dynamiclib -Wl,-single_module conftest.c" >&5
13699 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13700 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13702 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13703 lt_cv_apple_cc_single_mod=yes
13705 cat conftest.err >&5
13707 rm -rf libconftest.dylib*
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13712 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13714 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13715 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13718 lt_cv_ld_exported_symbols_list=no
13719 save_LDFLAGS=$LDFLAGS
13720 echo "_main" > conftest.sym
13721 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13733 if ac_fn_c_try_link "$LINENO"; then :
13734 lt_cv_ld_exported_symbols_list=yes
13736 lt_cv_ld_exported_symbols_list=no
13738 rm -f core conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext conftest.$ac_ext
13740 LDFLAGS="$save_LDFLAGS"
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13744 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13746 $as_echo_n "checking for -force_load linker flag... " >&6; }
13747 if test "${lt_cv_ld_force_load+set}" = set; then :
13748 $as_echo_n "(cached) " >&6
13750 lt_cv_ld_force_load=no
13751 cat > conftest.c << _LT_EOF
13752 int forced_loaded() { return 2;}
13754 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13755 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13756 echo "$AR cru libconftest.a conftest.o" >&5
13757 $AR cru libconftest.a conftest.o 2>&5
13758 cat > conftest.c << _LT_EOF
13759 int main() { return 0;}
13761 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13762 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13764 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13765 lt_cv_ld_force_load=yes
13767 cat conftest.err >&5
13769 rm -f conftest.err libconftest.a conftest conftest.c
13770 rm -rf conftest.dSYM
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13774 $as_echo "$lt_cv_ld_force_load" >&6; }
13776 rhapsody* | darwin1.[012])
13777 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13779 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13780 darwin*) # darwin 5.x on
13781 # if running on 10.5 or later, the deployment target defaults
13782 # to the OS version, if on x86, and 10.4, the deployment
13783 # target defaults to 10.4. Don't you love it?
13784 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13785 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13786 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13788 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13790 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13794 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13795 _lt_dar_single_mod='$single_module'
13797 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13798 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13800 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13802 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13803 _lt_dsymutil='~$DSYMUTIL $lib || :'
13810 for ac_header in dlfcn.h
13812 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13813 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13814 cat >>confdefs.h <<_ACEOF
13815 #define HAVE_DLFCN_H 1
13833 enable_win32_dll=no
13836 # Check whether --enable-shared was given.
13837 if test "${enable_shared+set}" = set; then :
13838 enableval=$enable_shared; p=${PACKAGE-default}
13840 yes) enable_shared=yes ;;
13841 no) enable_shared=no ;;
13844 # Look at the argument we got. We use all the common list separators.
13845 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13846 for pkg in $enableval; do
13848 if test "X$pkg" = "X$p"; then
13867 # Check whether --enable-static was given.
13868 if test "${enable_static+set}" = set; then :
13869 enableval=$enable_static; p=${PACKAGE-default}
13871 yes) enable_static=yes ;;
13872 no) enable_static=no ;;
13875 # Look at the argument we got. We use all the common list separators.
13876 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13877 for pkg in $enableval; do
13879 if test "X$pkg" = "X$p"; then
13899 # Check whether --with-pic was given.
13900 if test "${with_pic+set}" = set; then :
13901 withval=$with_pic; pic_mode="$withval"
13907 test -z "$pic_mode" && pic_mode=default
13915 # Check whether --enable-fast-install was given.
13916 if test "${enable_fast_install+set}" = set; then :
13917 enableval=$enable_fast_install; p=${PACKAGE-default}
13919 yes) enable_fast_install=yes ;;
13920 no) enable_fast_install=no ;;
13922 enable_fast_install=no
13923 # Look at the argument we got. We use all the common list separators.
13924 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13925 for pkg in $enableval; do
13927 if test "X$pkg" = "X$p"; then
13928 enable_fast_install=yes
13935 enable_fast_install=yes
13948 # This can be used to rebuild libtool when needed
13949 LIBTOOL_DEPS="$ltmain"
13951 # Always use our own libtool.
13952 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13979 test -z "$LN_S" && LN_S="ln -s"
13994 if test -n "${ZSH_VERSION+set}" ; then
13995 setopt NO_GLOB_SUBST
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13999 $as_echo_n "checking for objdir... " >&6; }
14000 if test "${lt_cv_objdir+set}" = set; then :
14001 $as_echo_n "(cached) " >&6
14003 rm -f .libs 2>/dev/null
14004 mkdir .libs 2>/dev/null
14005 if test -d .libs; then
14008 # MS-DOS does not allow filenames that begin with a dot.
14011 rmdir .libs 2>/dev/null
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14014 $as_echo "$lt_cv_objdir" >&6; }
14015 objdir=$lt_cv_objdir
14021 cat >>confdefs.h <<_ACEOF
14022 #define LT_OBJDIR "$lt_cv_objdir/"
14030 # AIX sometimes has problems with the GCC collect2 program. For some
14031 # reason, if we set the COLLECT_NAMES environment variable, the problems
14032 # vanish in a puff of smoke.
14033 if test "X${COLLECT_NAMES+set}" != Xset; then
14035 export COLLECT_NAMES
14040 # Global variables:
14042 can_build_shared=yes
14044 # All known linkers require a `.a' archive for static linking (except MSVC,
14045 # which needs '.lib').
14048 with_gnu_ld="$lt_cv_prog_gnu_ld"
14051 old_CFLAGS="$CFLAGS"
14053 # Set sane defaults for various variables
14054 test -z "$CC" && CC=cc
14055 test -z "$LTCC" && LTCC=$CC
14056 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14057 test -z "$LD" && LD=ld
14058 test -z "$ac_objext" && ac_objext=o
14060 for cc_temp in $compiler""; do
14062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14068 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14071 # Only perform the check for file, if the check method requires it
14072 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14073 case $deplibs_check_method in
14075 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14077 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14078 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14079 $as_echo_n "(cached) " >&6
14083 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14086 lt_save_MAGIC_CMD="$MAGIC_CMD"
14087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14088 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14089 for ac_dir in $ac_dummy; do
14091 test -z "$ac_dir" && ac_dir=.
14092 if test -f $ac_dir/${ac_tool_prefix}file; then
14093 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14094 if test -n "$file_magic_test_file"; then
14095 case $deplibs_check_method in
14097 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14098 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14099 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14100 $EGREP "$file_magic_regex" > /dev/null; then
14105 *** Warning: the command libtool uses to detect shared libraries,
14106 *** $file_magic_cmd, produces output that libtool cannot recognize.
14107 *** The result is that libtool may fail to recognize shared libraries
14108 *** as such. This will affect the creation of libtool libraries that
14109 *** depend on shared libraries, but programs linked with such libtool
14110 *** libraries will work regardless of this problem. Nevertheless, you
14111 *** may want to report the problem to your system manager and/or to
14112 *** bug-libtool@gnu.org
14122 MAGIC_CMD="$lt_save_MAGIC_CMD"
14127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14128 if test -n "$MAGIC_CMD"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14130 $as_echo "$MAGIC_CMD" >&6; }
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14140 if test -z "$lt_cv_path_MAGIC_CMD"; then
14141 if test -n "$ac_tool_prefix"; then
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14143 $as_echo_n "checking for file... " >&6; }
14144 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14149 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14152 lt_save_MAGIC_CMD="$MAGIC_CMD"
14153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14155 for ac_dir in $ac_dummy; do
14157 test -z "$ac_dir" && ac_dir=.
14158 if test -f $ac_dir/file; then
14159 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14160 if test -n "$file_magic_test_file"; then
14161 case $deplibs_check_method in
14163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14164 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14166 $EGREP "$file_magic_regex" > /dev/null; then
14171 *** Warning: the command libtool uses to detect shared libraries,
14172 *** $file_magic_cmd, produces output that libtool cannot recognize.
14173 *** The result is that libtool may fail to recognize shared libraries
14174 *** as such. This will affect the creation of libtool libraries that
14175 *** depend on shared libraries, but programs linked with such libtool
14176 *** libraries will work regardless of this problem. Nevertheless, you
14177 *** may want to report the problem to your system manager and/or to
14178 *** bug-libtool@gnu.org
14188 MAGIC_CMD="$lt_save_MAGIC_CMD"
14193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14194 if test -n "$MAGIC_CMD"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14196 $as_echo "$MAGIC_CMD" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14212 # Use C for the default configuration in the libtool script
14216 ac_cpp='$CPP $CPPFLAGS'
14217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14222 # Source file extension for C test sources.
14225 # Object file extension for compiled C test sources.
14229 # Code to be used in simple compile tests
14230 lt_simple_compile_test_code="int some_variable = 0;"
14232 # Code to be used in simple link tests
14233 lt_simple_link_test_code='int main(){return(0);}'
14241 # If no C compiler was specified, use CC.
14244 # If no C compiler flags were specified, use CFLAGS.
14245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14247 # Allow CC to be a program name with arguments.
14250 # Save the default compiler, since it gets overwritten when the other
14251 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14252 compiler_DEFAULT=$CC
14254 # save warnings/boilerplate of simple test code
14255 ac_outfile=conftest.$ac_objext
14256 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14257 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14258 _lt_compiler_boilerplate=`cat conftest.err`
14261 ac_outfile=conftest.$ac_objext
14262 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14263 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14264 _lt_linker_boilerplate=`cat conftest.err`
14269 ## There is no encapsulation within the following macros, do not change
14270 ## the running order or otherwise move them around unless you know exactly
14271 ## what you are doing...
14272 if test -n "$compiler"; then
14274 lt_prog_compiler_no_builtin_flag=
14276 if test "$GCC" = yes; then
14277 case $cc_basename in
14279 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14281 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14285 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14286 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14289 lt_cv_prog_compiler_rtti_exceptions=no
14290 ac_outfile=conftest.$ac_objext
14291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14292 lt_compiler_flag="-fno-rtti -fno-exceptions"
14293 # Insert the option either (1) after the last *FLAGS variable, or
14294 # (2) before a word containing "conftest.", or (3) at the end.
14295 # Note that $ac_compile itself does not contain backslashes and begins
14296 # with a dollar sign (not a hyphen), so the echo should work correctly.
14297 # The option is referenced via a variable to avoid confusing sed.
14298 lt_compile=`echo "$ac_compile" | $SED \
14299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301 -e 's:$: $lt_compiler_flag:'`
14302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14303 (eval "$lt_compile" 2>conftest.err)
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 if (exit $ac_status) && test -s "$ac_outfile"; then
14308 # The compiler can only warn and ignore the option if not recognized
14309 # So say no if there are warnings other than the usual output.
14310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14312 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14313 lt_cv_prog_compiler_rtti_exceptions=yes
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14320 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14322 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14323 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14335 lt_prog_compiler_wl=
14336 lt_prog_compiler_pic=
14337 lt_prog_compiler_static=
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14340 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14342 if test "$GCC" = yes; then
14343 lt_prog_compiler_wl='-Wl,'
14344 lt_prog_compiler_static='-static'
14348 # All AIX code is PIC.
14349 if test "$host_cpu" = ia64; then
14350 # AIX 5 now supports IA64 processor
14351 lt_prog_compiler_static='-Bstatic'
14358 # see comment about AmigaOS4 .so support
14359 lt_prog_compiler_pic='-fPIC'
14362 # FIXME: we need at least 68020 code to build shared libraries, but
14363 # adding the `-m68020' flag to GCC prevents building anything better,
14365 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14370 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14371 # PIC is the default for these OSes.
14374 mingw* | cygwin* | pw32* | os2* | cegcc*)
14375 # This hack is so that the source file can tell whether it is being
14376 # built for inclusion in a dll (and should export symbols for example).
14377 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14378 # (--disable-auto-import) libraries
14379 lt_prog_compiler_pic='-DDLL_EXPORT'
14382 darwin* | rhapsody*)
14383 # PIC is the default on this platform
14384 # Common symbols not allowed in MH_DYLIB files
14385 lt_prog_compiler_pic='-fno-common'
14389 # PIC is the default for Haiku.
14390 # The "-static" flag exists, but is broken.
14391 lt_prog_compiler_static=
14395 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14396 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14397 # sets the default TLS model and affects inlining.
14403 lt_prog_compiler_pic='-fPIC'
14409 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14410 # Instead, we relocate shared libraries at runtime.
14414 # Just because we use GCC doesn't mean we suddenly get shared libraries
14415 # on systems that don't support them.
14416 lt_prog_compiler_can_build_shared=no
14421 # QNX uses GNU C++, but need to define -shared option too, otherwise
14422 # it will coredump.
14423 lt_prog_compiler_pic='-fPIC -shared'
14427 if test -d /usr/nec; then
14428 lt_prog_compiler_pic=-Kconform_pic
14433 lt_prog_compiler_pic='-fPIC'
14437 case $cc_basename in
14438 nvcc*) # Cuda Compiler Driver 2.2
14439 lt_prog_compiler_wl='-Xlinker '
14440 lt_prog_compiler_pic='-Xcompiler -fPIC'
14444 # PORTME Check for flag to pass linker flags through the system compiler.
14447 lt_prog_compiler_wl='-Wl,'
14448 if test "$host_cpu" = ia64; then
14449 # AIX 5 now supports IA64 processor
14450 lt_prog_compiler_static='-Bstatic'
14452 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14456 mingw* | cygwin* | pw32* | os2* | cegcc*)
14457 # This hack is so that the source file can tell whether it is being
14458 # built for inclusion in a dll (and should export symbols for example).
14459 lt_prog_compiler_pic='-DDLL_EXPORT'
14462 hpux9* | hpux10* | hpux11*)
14463 lt_prog_compiler_wl='-Wl,'
14464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14465 # not for PA HP-UX.
14471 lt_prog_compiler_pic='+Z'
14474 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14475 lt_prog_compiler_static='${wl}-a ${wl}archive'
14478 irix5* | irix6* | nonstopux*)
14479 lt_prog_compiler_wl='-Wl,'
14480 # PIC (with -KPIC) is the default.
14481 lt_prog_compiler_static='-non_shared'
14484 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14485 case $cc_basename in
14486 # old Intel for x86_64 which still supported -KPIC.
14488 lt_prog_compiler_wl='-Wl,'
14489 lt_prog_compiler_pic='-KPIC'
14490 lt_prog_compiler_static='-static'
14492 # icc used to be incompatible with GCC.
14493 # ICC 10 doesn't accept -KPIC any more.
14495 lt_prog_compiler_wl='-Wl,'
14496 lt_prog_compiler_pic='-fPIC'
14497 lt_prog_compiler_static='-static'
14499 # Lahey Fortran 8.1.
14501 lt_prog_compiler_wl='-Wl,'
14502 lt_prog_compiler_pic='--shared'
14503 lt_prog_compiler_static='--static'
14505 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14506 # Portland Group compilers (*not* the Pentium gcc compiler,
14507 # which looks to be a dead project)
14508 lt_prog_compiler_wl='-Wl,'
14509 lt_prog_compiler_pic='-fpic'
14510 lt_prog_compiler_static='-Bstatic'
14513 lt_prog_compiler_wl='-Wl,'
14514 # All Alpha code is PIC.
14515 lt_prog_compiler_static='-non_shared'
14517 xl* | bgxl* | bgf* | mpixl*)
14518 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14519 lt_prog_compiler_wl='-Wl,'
14520 lt_prog_compiler_pic='-qpic'
14521 lt_prog_compiler_static='-qstaticlink'
14524 case `$CC -V 2>&1 | sed 5q` in
14525 *Sun\ F* | *Sun*Fortran*)
14526 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14527 lt_prog_compiler_pic='-KPIC'
14528 lt_prog_compiler_static='-Bstatic'
14529 lt_prog_compiler_wl=''
14533 lt_prog_compiler_pic='-KPIC'
14534 lt_prog_compiler_static='-Bstatic'
14535 lt_prog_compiler_wl='-Wl,'
14543 lt_prog_compiler_pic='-KPIC'
14544 lt_prog_compiler_static='-Bstatic'
14548 # QNX uses GNU C++, but need to define -shared option too, otherwise
14549 # it will coredump.
14550 lt_prog_compiler_pic='-fPIC -shared'
14553 osf3* | osf4* | osf5*)
14554 lt_prog_compiler_wl='-Wl,'
14555 # All OSF/1 code is PIC.
14556 lt_prog_compiler_static='-non_shared'
14560 lt_prog_compiler_static='-non_shared'
14564 lt_prog_compiler_pic='-KPIC'
14565 lt_prog_compiler_static='-Bstatic'
14566 case $cc_basename in
14567 f77* | f90* | f95*)
14568 lt_prog_compiler_wl='-Qoption ld ';;
14570 lt_prog_compiler_wl='-Wl,';;
14575 lt_prog_compiler_wl='-Qoption ld '
14576 lt_prog_compiler_pic='-PIC'
14577 lt_prog_compiler_static='-Bstatic'
14580 sysv4 | sysv4.2uw2* | sysv4.3*)
14581 lt_prog_compiler_wl='-Wl,'
14582 lt_prog_compiler_pic='-KPIC'
14583 lt_prog_compiler_static='-Bstatic'
14587 if test -d /usr/nec ;then
14588 lt_prog_compiler_pic='-Kconform_pic'
14589 lt_prog_compiler_static='-Bstatic'
14593 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14594 lt_prog_compiler_wl='-Wl,'
14595 lt_prog_compiler_pic='-KPIC'
14596 lt_prog_compiler_static='-Bstatic'
14600 lt_prog_compiler_wl='-Wl,'
14601 lt_prog_compiler_can_build_shared=no
14605 lt_prog_compiler_pic='-pic'
14606 lt_prog_compiler_static='-Bstatic'
14610 lt_prog_compiler_can_build_shared=no
14616 # For platforms which do not support PIC, -DPIC is meaningless:
14618 lt_prog_compiler_pic=
14621 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14625 $as_echo "$lt_prog_compiler_pic" >&6; }
14633 # Check to make sure the PIC flag actually works.
14635 if test -n "$lt_prog_compiler_pic"; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14637 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14638 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
14641 lt_cv_prog_compiler_pic_works=no
14642 ac_outfile=conftest.$ac_objext
14643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14644 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14645 # Insert the option either (1) after the last *FLAGS variable, or
14646 # (2) before a word containing "conftest.", or (3) at the end.
14647 # Note that $ac_compile itself does not contain backslashes and begins
14648 # with a dollar sign (not a hyphen), so the echo should work correctly.
14649 # The option is referenced via a variable to avoid confusing sed.
14650 lt_compile=`echo "$ac_compile" | $SED \
14651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653 -e 's:$: $lt_compiler_flag:'`
14654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14655 (eval "$lt_compile" 2>conftest.err)
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 if (exit $ac_status) && test -s "$ac_outfile"; then
14660 # The compiler can only warn and ignore the option if not recognized
14661 # So say no if there are warnings other than the usual output.
14662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14664 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14665 lt_cv_prog_compiler_pic_works=yes
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14672 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14674 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14675 case $lt_prog_compiler_pic in
14677 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14680 lt_prog_compiler_pic=
14681 lt_prog_compiler_can_build_shared=no
14692 # Check to make sure the static flag actually works.
14694 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14696 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14697 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14700 lt_cv_prog_compiler_static_works=no
14701 save_LDFLAGS="$LDFLAGS"
14702 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14703 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14705 # The linker can only warn and ignore the option if not recognized
14706 # So say no if there are warnings
14707 if test -s conftest.err; then
14708 # Append any errors to the config.log.
14709 cat conftest.err 1>&5
14710 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14712 if diff conftest.exp conftest.er2 >/dev/null; then
14713 lt_cv_prog_compiler_static_works=yes
14716 lt_cv_prog_compiler_static_works=yes
14720 LDFLAGS="$save_LDFLAGS"
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14724 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14726 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14729 lt_prog_compiler_static=
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14740 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14741 $as_echo_n "(cached) " >&6
14743 lt_cv_prog_compiler_c_o=no
14744 $RM -r conftest 2>/dev/null
14748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14750 lt_compiler_flag="-o out/conftest2.$ac_objext"
14751 # Insert the option either (1) after the last *FLAGS variable, or
14752 # (2) before a word containing "conftest.", or (3) at the end.
14753 # Note that $ac_compile itself does not contain backslashes and begins
14754 # with a dollar sign (not a hyphen), so the echo should work correctly.
14755 lt_compile=`echo "$ac_compile" | $SED \
14756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14758 -e 's:$: $lt_compiler_flag:'`
14759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14760 (eval "$lt_compile" 2>out/conftest.err)
14762 cat out/conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14766 # The compiler can only warn and ignore the option if not recognized
14767 # So say no if there are warnings
14768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14771 lt_cv_prog_compiler_c_o=yes
14776 # SGI C++ compiler will create directory out/ii_files/ for
14777 # template instantiation
14778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14779 $RM out/* && rmdir out
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14786 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14795 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14796 $as_echo_n "(cached) " >&6
14798 lt_cv_prog_compiler_c_o=no
14799 $RM -r conftest 2>/dev/null
14803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14805 lt_compiler_flag="-o out/conftest2.$ac_objext"
14806 # Insert the option either (1) after the last *FLAGS variable, or
14807 # (2) before a word containing "conftest.", or (3) at the end.
14808 # Note that $ac_compile itself does not contain backslashes and begins
14809 # with a dollar sign (not a hyphen), so the echo should work correctly.
14810 lt_compile=`echo "$ac_compile" | $SED \
14811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14813 -e 's:$: $lt_compiler_flag:'`
14814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14815 (eval "$lt_compile" 2>out/conftest.err)
14817 cat out/conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14821 # The compiler can only warn and ignore the option if not recognized
14822 # So say no if there are warnings
14823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14826 lt_cv_prog_compiler_c_o=yes
14831 # SGI C++ compiler will create directory out/ii_files/ for
14832 # template instantiation
14833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14834 $RM out/* && rmdir out
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14841 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14846 hard_links="nottested"
14847 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14848 # do not overwrite the value of need_locks provided by the user
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14850 $as_echo_n "checking if we can lock with hard links... " >&6; }
14853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14855 ln conftest.a conftest.b 2>&5 || hard_links=no
14856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14858 $as_echo "$hard_links" >&6; }
14859 if test "$hard_links" = no; then
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14861 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14877 allow_undefined_flag=
14878 always_export_symbols=no
14880 archive_expsym_cmds=
14881 compiler_needs_object=no
14882 enable_shared_with_static_runtimes=no
14883 export_dynamic_flag_spec=
14884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14885 hardcode_automatic=no
14887 hardcode_direct_absolute=no
14888 hardcode_libdir_flag_spec=
14889 hardcode_libdir_flag_spec_ld=
14890 hardcode_libdir_separator=
14891 hardcode_minus_L=no
14892 hardcode_shlibpath_var=unsupported
14894 link_all_deplibs=unknown
14896 module_expsym_cmds=
14897 old_archive_from_new_cmds=
14898 old_archive_from_expsyms_cmds=
14899 thread_safe_flag_spec=
14900 whole_archive_flag_spec=
14901 # include_expsyms should be a list of space-separated symbols to be *always*
14902 # included in the symbol list
14904 # exclude_expsyms can be an extended regexp of symbols to exclude
14905 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14906 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14907 # as well as any symbol that contains `d'.
14908 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14909 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14910 # platforms (ab)use it in PIC code, but their linkers get confused if
14911 # the symbol is explicitly referenced. Since portable code cannot
14912 # rely on this symbol name, it's probably fine to never include it in
14913 # preloaded symbol tables.
14914 # Exclude shared library initialization/finalization symbols.
14915 extract_expsyms_cmds=
14918 cygwin* | mingw* | pw32* | cegcc*)
14919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14920 # When not using gcc, we currently assume that we are using
14921 # Microsoft Visual C++.
14922 if test "$GCC" != yes; then
14927 # we just hope/assume this is gcc and not c89 (= MSVC++)
14937 # On some targets, GNU ld is compatible enough with the native linker
14938 # that we're better off using the native interface for both.
14939 lt_use_gnu_ld_interface=no
14940 if test "$with_gnu_ld" = yes; then
14943 # The AIX port of GNU ld has always aspired to compatibility
14944 # with the native linker. However, as the warning in the GNU ld
14945 # block says, versions before 2.19.5* couldn't really create working
14946 # shared libraries, regardless of the interface used.
14947 case `$LD -v 2>&1` in
14948 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14949 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14950 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14952 lt_use_gnu_ld_interface=yes
14957 lt_use_gnu_ld_interface=yes
14962 if test "$lt_use_gnu_ld_interface" = yes; then
14963 # If archive_cmds runs LD, not CC, wlarc should be empty
14966 # Set some defaults for GNU ld with shared library support. These
14967 # are reset later if shared libraries are not supported. Putting them
14968 # here allows them to be overridden if necessary.
14969 runpath_var=LD_RUN_PATH
14970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14971 export_dynamic_flag_spec='${wl}--export-dynamic'
14972 # ancient GNU ld didn't support --whole-archive et. al.
14973 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14974 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14976 whole_archive_flag_spec=
14978 supports_anon_versioning=no
14979 case `$LD -v 2>&1` in
14980 *GNU\ gold*) supports_anon_versioning=yes ;;
14981 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14982 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14983 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14984 *\ 2.11.*) ;; # other 2.11 versions
14985 *) supports_anon_versioning=yes ;;
14988 # See if GNU ld supports shared libraries.
14991 # On AIX/PPC, the GNU linker is very broken
14992 if test "$host_cpu" != ia64; then
14996 *** Warning: the GNU linker, at least up to release 2.19, is reported
14997 *** to be unable to reliably create shared libraries on AIX.
14998 *** Therefore, libtool is disabling shared libraries support. If you
14999 *** really care for shared libraries, you may want to install binutils
15000 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15001 *** You will then need to restart the configuration process.
15010 # see comment about AmigaOS4 .so support
15011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012 archive_expsym_cmds=''
15015 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)'
15016 hardcode_libdir_flag_spec='-L$libdir'
15017 hardcode_minus_L=yes
15023 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15024 allow_undefined_flag=unsupported
15025 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15026 # support --undefined. This deserves some investigation. FIXME
15027 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15033 cygwin* | mingw* | pw32* | cegcc*)
15034 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15035 # as there is no search path for DLLs.
15036 hardcode_libdir_flag_spec='-L$libdir'
15037 export_dynamic_flag_spec='${wl}--export-all-symbols'
15038 allow_undefined_flag=unsupported
15039 always_export_symbols=no
15040 enable_shared_with_static_runtimes=yes
15041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15043 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15045 # If the export-symbols file already is a .def file (1st line
15046 # is EXPORTS), use it as is; otherwise, prepend...
15047 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15048 cp $export_symbols $output_objdir/$soname.def;
15050 echo EXPORTS > $output_objdir/$soname.def;
15051 cat $export_symbols >> $output_objdir/$soname.def;
15053 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061 link_all_deplibs=yes
15066 hardcode_shlibpath_var=no
15067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15068 export_dynamic_flag_spec='${wl}-E'
15069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15070 # Instead, shared libraries are loaded at an image base (0x10000000 by
15071 # default) and relocated if they conflict, which is a slow very memory
15072 # consuming and fragmenting process. To avoid this, we pick a random,
15073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15076 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'
15079 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15081 if test "$host_os" = linux-dietlibc; then
15082 case $cc_basename in
15083 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15086 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15087 && test "$tmp_diet" = no
15090 tmp_sharedflag='-shared'
15091 case $cc_basename,$host_cpu in
15092 pgcc*) # Portland Group C compiler
15093 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'
15094 tmp_addflag=' $pic_flag'
15096 pgf77* | pgf90* | pgf95* | pgfortran*)
15097 # Portland Group f77 and f90 compilers
15098 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'
15099 tmp_addflag=' $pic_flag -Mnomain' ;;
15100 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15101 tmp_addflag=' -i_dynamic' ;;
15102 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15103 tmp_addflag=' -i_dynamic -nofor_main' ;;
15104 ifc* | ifort*) # Intel Fortran compiler
15105 tmp_addflag=' -nofor_main' ;;
15106 lf95*) # Lahey Fortran 8.1
15107 whole_archive_flag_spec=
15108 tmp_sharedflag='--shared' ;;
15109 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15110 tmp_sharedflag='-qmkshrobj'
15112 nvcc*) # Cuda Compiler Driver 2.2
15113 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'
15114 compiler_needs_object=yes
15117 case `$CC -V 2>&1 | sed 5q` in
15118 *Sun\ C*) # Sun C 5.9
15119 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'
15120 compiler_needs_object=yes
15121 tmp_sharedflag='-G' ;;
15122 *Sun\ F*) # Sun Fortran 8.3
15123 tmp_sharedflag='-G' ;;
15125 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15127 if test "x$supports_anon_versioning" = xyes; then
15128 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15130 echo "local: *; };" >> $output_objdir/$libname.ver~
15131 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15134 case $cc_basename in
15135 xlf* | bgf* | bgxlf* | mpixlf*)
15136 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15137 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15138 hardcode_libdir_flag_spec=
15139 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15140 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15141 if test "x$supports_anon_versioning" = xyes; then
15142 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15144 echo "local: *; };" >> $output_objdir/$libname.ver~
15145 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15156 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15165 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15170 *** create shared libraries on Solaris systems. Therefore, libtool
15171 *** is disabling shared libraries support. We urge you to upgrade GNU
15172 *** binutils to release 2.9.1 or newer. Another option is to modify
15173 *** your PATH or compiler configuration so that the native linker is
15174 *** used, and then restart.
15177 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15186 case `$LD -v 2>&1` in
15187 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15191 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15192 *** reliably create shared libraries on SCO systems. Therefore, libtool
15193 *** is disabling shared libraries support. We urge you to upgrade GNU
15194 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15195 *** your PATH or compiler configuration so that the native linker is
15196 *** used, and then restart.
15201 # For security reasons, it is highly recommended that you always
15202 # use absolute paths for naming shared libraries, and exclude the
15203 # DT_RUNPATH tag from executables and libraries. But doing so
15204 # requires that you compile everything twice, which is a pain.
15205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15217 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15219 hardcode_direct=yes
15220 hardcode_shlibpath_var=no
15224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15233 if test "$ld_shlibs" = no; then
15235 hardcode_libdir_flag_spec=
15236 export_dynamic_flag_spec=
15237 whole_archive_flag_spec=
15240 # PORTME fill in a description of your system's linker (not GNU ld)
15243 allow_undefined_flag=unsupported
15244 always_export_symbols=yes
15245 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'
15246 # Note: this linker hardcodes the directories in LIBPATH if there
15247 # are no directories specified by -L.
15248 hardcode_minus_L=yes
15249 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15250 # Neither direct hardcoding nor static linking is supported with a
15252 hardcode_direct=unsupported
15257 if test "$host_cpu" = ia64; then
15258 # On IA64, the linker does run time linking by default, so we don't
15259 # have to do anything special.
15260 aix_use_runtimelinking=no
15261 exp_sym_flag='-Bexport'
15264 # If we're using GNU nm, then we don't want the "-C" option.
15265 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15266 # Also, AIX nm treats weak defined symbols like other global
15267 # defined symbols, whereas GNU nm marks them as "W".
15268 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15269 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'
15271 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'
15273 aix_use_runtimelinking=no
15275 # Test if we are trying to use run time linking or normal
15276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15277 # need to do runtime linking.
15278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15279 for ld_flag in $LDFLAGS; do
15280 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15281 aix_use_runtimelinking=yes
15288 exp_sym_flag='-bexport'
15289 no_entry_flag='-bnoentry'
15292 # When large executables or shared objects are built, AIX ld can
15293 # have problems creating the table of contents. If linking a library
15294 # or program results in "error TOC overflow" add -mminimal-toc to
15295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15299 hardcode_direct=yes
15300 hardcode_direct_absolute=yes
15301 hardcode_libdir_separator=':'
15302 link_all_deplibs=yes
15303 file_list_spec='${wl}-f,'
15305 if test "$GCC" = yes; then
15306 case $host_os in aix4.[012]|aix4.[012].*)
15307 # We only want to do this on AIX 4.2 and lower, the check
15308 # below for broken collect2 doesn't work under 4.3+
15309 collect2name=`${CC} -print-prog-name=collect2`
15310 if test -f "$collect2name" &&
15311 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15313 # We have reworked collect2
15316 # We have old collect2
15317 hardcode_direct=unsupported
15318 # It fails to find uninstalled libraries when the uninstalled
15319 # path is not listed in the libpath. Setting hardcode_minus_L
15320 # to unsupported forces relinking
15321 hardcode_minus_L=yes
15322 hardcode_libdir_flag_spec='-L$libdir'
15323 hardcode_libdir_separator=
15327 shared_flag='-shared'
15328 if test "$aix_use_runtimelinking" = yes; then
15329 shared_flag="$shared_flag "'${wl}-G'
15333 if test "$host_cpu" = ia64; then
15334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15335 # chokes on -Wl,-G. The following line is correct:
15338 if test "$aix_use_runtimelinking" = yes; then
15339 shared_flag='${wl}-G'
15341 shared_flag='${wl}-bM:SRE'
15346 export_dynamic_flag_spec='${wl}-bexpall'
15347 # It seems that -bexpall does not export symbols beginning with
15348 # underscore (_), so it is better to generate a list of symbols to export.
15349 always_export_symbols=yes
15350 if test "$aix_use_runtimelinking" = yes; then
15351 # Warning - without using the other runtime loading flags (-brtl),
15352 # -berok will link without error, but may produce a broken library.
15353 allow_undefined_flag='-berok'
15354 # Determine the default libpath from the value encoded in an
15355 # empty executable.
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15367 if ac_fn_c_try_link "$LINENO"; then :
15369 lt_aix_libpath_sed='
15370 /Import File Strings/,/^$/ {
15376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15377 # Check for a 64-bit object if we didn't find anything.
15378 if test -z "$aix_libpath"; then
15379 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15387 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"
15389 if test "$host_cpu" = ia64; then
15390 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15391 allow_undefined_flag="-z nodefs"
15392 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"
15394 # Determine the default libpath from the value encoded in an
15395 # empty executable.
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15407 if ac_fn_c_try_link "$LINENO"; then :
15409 lt_aix_libpath_sed='
15410 /Import File Strings/,/^$/ {
15416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15417 # Check for a 64-bit object if we didn't find anything.
15418 if test -z "$aix_libpath"; then
15419 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15422 rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15426 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15427 # Warning - without using the other run time loading flags,
15428 # -berok will link without error, but may produce a broken library.
15429 no_undefined_flag=' ${wl}-bernotok'
15430 allow_undefined_flag=' ${wl}-berok'
15431 if test "$with_gnu_ld" = yes; then
15432 # We only use this code for GNU lds that support --whole-archive.
15433 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15435 # Exported symbols can be pulled into shared objects from archives
15436 whole_archive_flag_spec='$convenience'
15438 archive_cmds_need_lc=yes
15439 # This is similar to how AIX traditionally builds its shared libraries.
15440 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'
15448 # see comment about AmigaOS4 .so support
15449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15450 archive_expsym_cmds=''
15453 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)'
15454 hardcode_libdir_flag_spec='-L$libdir'
15455 hardcode_minus_L=yes
15461 export_dynamic_flag_spec=-rdynamic
15464 cygwin* | mingw* | pw32* | cegcc*)
15465 # When not using gcc, we currently assume that we are using
15466 # Microsoft Visual C++.
15467 # hardcode_libdir_flag_spec is actually meaningless, as there is
15468 # no search path for DLLs.
15469 hardcode_libdir_flag_spec=' '
15470 allow_undefined_flag=unsupported
15471 # Tell ltmain to make .lib files, not .a files.
15473 # Tell ltmain to make .dll files, not .so files.
15475 # FIXME: Setting linknames here is a bad hack.
15476 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15477 # The linker will automatically build a .lib file if we build a DLL.
15478 old_archive_from_new_cmds='true'
15479 # FIXME: Should let the user specify the lib program.
15480 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15481 fix_srcfile_path='`cygpath -w "$srcfile"`'
15482 enable_shared_with_static_runtimes=yes
15485 darwin* | rhapsody*)
15488 archive_cmds_need_lc=no
15490 hardcode_automatic=yes
15491 hardcode_shlibpath_var=unsupported
15492 if test "$lt_cv_ld_force_load" = "yes"; then
15493 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\"`'
15495 whole_archive_flag_spec=''
15497 link_all_deplibs=yes
15498 allow_undefined_flag="$_lt_dar_allow_undefined"
15499 case $cc_basename in
15500 ifort*) _lt_dar_can_shared=yes ;;
15501 *) _lt_dar_can_shared=$GCC ;;
15503 if test "$_lt_dar_can_shared" = "yes"; then
15504 output_verbose_link_cmd=func_echo_all
15505 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15506 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15507 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}"
15508 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}"
15517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15518 hardcode_libdir_flag_spec='-L$libdir'
15519 hardcode_shlibpath_var=no
15526 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15527 # support. Future versions do this automatically, but an explicit c++rt0.o
15528 # does not break anything, and helps significantly (at the cost of a little
15531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15532 hardcode_libdir_flag_spec='-R$libdir'
15533 hardcode_direct=yes
15534 hardcode_shlibpath_var=no
15537 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15540 hardcode_direct=yes
15541 hardcode_minus_L=yes
15542 hardcode_shlibpath_var=no
15545 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15546 freebsd* | dragonfly*)
15547 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15548 hardcode_libdir_flag_spec='-R$libdir'
15549 hardcode_direct=yes
15550 hardcode_shlibpath_var=no
15554 if test "$GCC" = yes; then
15555 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'
15557 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'
15559 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15560 hardcode_libdir_separator=:
15561 hardcode_direct=yes
15563 # hardcode_minus_L: Not really in the search PATH,
15564 # but as the default location of the library.
15565 hardcode_minus_L=yes
15566 export_dynamic_flag_spec='${wl}-E'
15570 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15571 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15573 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15575 if test "$with_gnu_ld" = no; then
15576 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15577 hardcode_libdir_flag_spec_ld='+b $libdir'
15578 hardcode_libdir_separator=:
15579 hardcode_direct=yes
15580 hardcode_direct_absolute=yes
15581 export_dynamic_flag_spec='${wl}-E'
15582 # hardcode_minus_L: Not really in the search PATH,
15583 # but as the default location of the library.
15584 hardcode_minus_L=yes
15589 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15592 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15595 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15604 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15611 # Older versions of the 11.00 compiler do not understand -b yet
15612 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15614 $as_echo_n "checking if $CC understands -b... " >&6; }
15615 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15616 $as_echo_n "(cached) " >&6
15618 lt_cv_prog_compiler__b=no
15619 save_LDFLAGS="$LDFLAGS"
15620 LDFLAGS="$LDFLAGS -b"
15621 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15623 # The linker can only warn and ignore the option if not recognized
15624 # So say no if there are warnings
15625 if test -s conftest.err; then
15626 # Append any errors to the config.log.
15627 cat conftest.err 1>&5
15628 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15630 if diff conftest.exp conftest.er2 >/dev/null; then
15631 lt_cv_prog_compiler__b=yes
15634 lt_cv_prog_compiler__b=yes
15638 LDFLAGS="$save_LDFLAGS"
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15642 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15644 if test x"$lt_cv_prog_compiler__b" = xyes; then
15645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15647 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15653 if test "$with_gnu_ld" = no; then
15654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15655 hardcode_libdir_separator=:
15660 hardcode_shlibpath_var=no
15663 hardcode_direct=yes
15664 hardcode_direct_absolute=yes
15665 export_dynamic_flag_spec='${wl}-E'
15667 # hardcode_minus_L: Not really in the search PATH,
15668 # but as the default location of the library.
15669 hardcode_minus_L=yes
15675 irix5* | irix6* | nonstopux*)
15676 if test "$GCC" = yes; then
15677 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'
15678 # Try to use the -exported_symbol ld option, if it does not
15679 # work, assume that -exports_file does not work either and
15680 # implicitly export all symbols.
15681 save_LDFLAGS="$LDFLAGS"
15682 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15687 if ac_fn_c_try_link "$LINENO"; then :
15688 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'
15691 rm -f core conftest.err conftest.$ac_objext \
15692 conftest$ac_exeext conftest.$ac_ext
15693 LDFLAGS="$save_LDFLAGS"
15695 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'
15696 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'
15698 archive_cmds_need_lc='no'
15699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15700 hardcode_libdir_separator=:
15702 link_all_deplibs=yes
15706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15711 hardcode_libdir_flag_spec='-R$libdir'
15712 hardcode_direct=yes
15713 hardcode_shlibpath_var=no
15717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15718 hardcode_direct=yes
15719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15720 hardcode_libdir_separator=:
15721 hardcode_shlibpath_var=no
15728 if test -f /usr/libexec/ld.so; then
15729 hardcode_direct=yes
15730 hardcode_shlibpath_var=no
15731 hardcode_direct_absolute=yes
15732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15733 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15734 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15736 export_dynamic_flag_spec='${wl}-E'
15739 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_libdir_flag_spec='-R$libdir'
15744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15745 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15755 hardcode_libdir_flag_spec='-L$libdir'
15756 hardcode_minus_L=yes
15757 allow_undefined_flag=unsupported
15758 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'
15759 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15763 if test "$GCC" = yes; then
15764 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15765 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'
15767 allow_undefined_flag=' -expect_unresolved \*'
15768 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'
15770 archive_cmds_need_lc='no'
15771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15772 hardcode_libdir_separator=:
15775 osf4* | osf5*) # as osf3* with the addition of -msym flag
15776 if test "$GCC" = yes; then
15777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15778 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'
15779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15781 allow_undefined_flag=' -expect_unresolved \*'
15782 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'
15783 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~
15784 $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'
15786 # Both c and cxx compiler support -rpath directly
15787 hardcode_libdir_flag_spec='-rpath $libdir'
15789 archive_cmds_need_lc='no'
15790 hardcode_libdir_separator=:
15794 no_undefined_flag=' -z defs'
15795 if test "$GCC" = yes; then
15797 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15798 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15799 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15801 case `$CC -V 2>&1` in
15804 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15805 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15806 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15810 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15812 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15816 hardcode_libdir_flag_spec='-R$libdir'
15817 hardcode_shlibpath_var=no
15819 solaris2.[0-5] | solaris2.[0-5].*) ;;
15821 # The compiler driver will combine and reorder linker options,
15822 # but understands `-z linker_flag'. GCC discards it without `$wl',
15823 # but is careful enough not to reorder.
15824 # Supported since Solaris 2.6 (maybe 2.5.1?)
15825 if test "$GCC" = yes; then
15826 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15828 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15832 link_all_deplibs=yes
15836 if test "x$host_vendor" = xsequent; then
15837 # Use $CC to link under sequent, because it throws in some extra .o
15838 # files that make .init and .fini sections work.
15839 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15841 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15843 hardcode_libdir_flag_spec='-L$libdir'
15844 hardcode_direct=yes
15845 hardcode_minus_L=yes
15846 hardcode_shlibpath_var=no
15850 case $host_vendor in
15852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15853 hardcode_direct=yes # is this really true???
15856 ## LD is ld it makes a PLAMLIB
15857 ## CC just makes a GrossModule.
15858 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15859 reload_cmds='$CC -r -o $output$reload_objs'
15863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15864 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15867 runpath_var='LD_RUN_PATH'
15868 hardcode_shlibpath_var=no
15872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15873 hardcode_shlibpath_var=no
15874 export_dynamic_flag_spec='-Bexport'
15878 if test -d /usr/nec; then
15879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15880 hardcode_shlibpath_var=no
15881 runpath_var=LD_RUN_PATH
15882 hardcode_runpath_var=yes
15887 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15888 no_undefined_flag='${wl}-z,text'
15889 archive_cmds_need_lc=no
15890 hardcode_shlibpath_var=no
15891 runpath_var='LD_RUN_PATH'
15893 if test "$GCC" = yes; then
15894 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15895 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15897 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15898 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 sysv5* | sco3.2v5* | sco5v6*)
15903 # Note: We can NOT use -z defs as we might desire, because we do not
15904 # link with -lc, and that would cause any symbols used from libc to
15905 # always be unresolved, which means just about no library would
15906 # ever link correctly. If we're not using GNU ld we use -z text
15907 # though, which does catch some bad symbols but isn't as heavy-handed
15909 no_undefined_flag='${wl}-z,text'
15910 allow_undefined_flag='${wl}-z,nodefs'
15911 archive_cmds_need_lc=no
15912 hardcode_shlibpath_var=no
15913 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15914 hardcode_libdir_separator=':'
15915 link_all_deplibs=yes
15916 export_dynamic_flag_spec='${wl}-Bexport'
15917 runpath_var='LD_RUN_PATH'
15919 if test "$GCC" = yes; then
15920 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15921 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15923 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15924 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15930 hardcode_libdir_flag_spec='-L$libdir'
15931 hardcode_shlibpath_var=no
15939 if test x$host_vendor = xsni; then
15941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15942 export_dynamic_flag_spec='${wl}-Blargedynsym'
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15949 $as_echo "$ld_shlibs" >&6; }
15950 test "$ld_shlibs" = no && can_build_shared=no
15952 with_gnu_ld=$with_gnu_ld
15969 # Do we need to explicitly link libc?
15971 case "x$archive_cmds_need_lc" in
15973 # Assume -lc should be added
15974 archive_cmds_need_lc=yes
15976 if test "$enable_shared" = yes && test "$GCC" = yes; then
15977 case $archive_cmds in
15979 # FIXME: we may have to deal with multi-command sequences.
15982 # Test whether the compiler implicitly links with -lc since on some
15983 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15984 # to ld, don't add -lc before -lgcc.
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15986 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15987 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15988 $as_echo_n "(cached) " >&6
15991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15994 (eval $ac_compile) 2>&5
15996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997 test $ac_status = 0; } 2>conftest.err; then
16000 libobjs=conftest.$ac_objext
16002 wl=$lt_prog_compiler_wl
16003 pic_flag=$lt_prog_compiler_pic
16009 lt_save_allow_undefined_flag=$allow_undefined_flag
16010 allow_undefined_flag=
16011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16012 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16015 test $ac_status = 0; }
16017 lt_cv_archive_cmds_need_lc=no
16019 lt_cv_archive_cmds_need_lc=yes
16021 allow_undefined_flag=$lt_save_allow_undefined_flag
16023 cat conftest.err 1>&5
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16029 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16030 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16194 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16196 if test "$GCC" = yes; then
16198 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16199 *) lt_awk_arg="/^libraries:/" ;;
16202 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16203 *) lt_sed_strip_eq="s,=/,/,g" ;;
16205 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16206 case $lt_search_path_spec in
16208 # if the path contains ";" then we assume it to be the separator
16209 # otherwise default to the standard path separator (i.e. ":") - it is
16210 # assumed that no part of a normal pathname contains ";" but that should
16211 # okay in the real world where ";" in dirpaths is itself problematic.
16212 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16215 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16218 # Ok, now we have the path, separated by spaces, we can step through it
16219 # and add multilib dir if necessary.
16220 lt_tmp_lt_search_path_spec=
16221 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16222 for lt_sys_path in $lt_search_path_spec; do
16223 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16224 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16226 test -d "$lt_sys_path" && \
16227 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16230 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16231 BEGIN {RS=" "; FS="/|\n";} {
16234 for (lt_i = NF; lt_i > 0; lt_i--) {
16235 if ($lt_i != "" && $lt_i != ".") {
16236 if ($lt_i == "..") {
16239 if (lt_count == 0) {
16240 lt_foo="/" $lt_i lt_foo;
16247 if (lt_foo != "") { lt_freq[lt_foo]++; }
16248 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16250 # AWK program above erroneously prepends '/' to C:/dos/paths
16253 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16254 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16256 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16258 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16260 library_names_spec=
16261 libname_spec='lib$name'
16265 postuninstall_cmds=
16269 shlibpath_overrides_runpath=unknown
16271 dynamic_linker="$host_os ld.so"
16272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16273 need_lib_prefix=unknown
16274 hardcode_into_libs=no
16276 # when you set need_version to no, make sure it does not cause -set_version
16277 # flags to be left without arguments
16278 need_version=unknown
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16284 shlibpath_var=LIBPATH
16286 # AIX 3 has no versioning support, so we append a major version to the name.
16287 soname_spec='${libname}${release}${shared_ext}$major'
16294 hardcode_into_libs=yes
16295 if test "$host_cpu" = ia64; then
16296 # AIX 5 supports IA64
16297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16298 shlibpath_var=LD_LIBRARY_PATH
16300 # With GCC up to 2.95.x, collect2 would create an import file
16301 # for dependence libraries. The import file would start with
16302 # the line `#! .'. This would cause the generated library to
16303 # depend on `.', always an invalid library. This was fixed in
16304 # development snapshots of GCC prior to 3.0.
16306 aix4 | aix4.[01] | aix4.[01].*)
16307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16309 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16312 can_build_shared=no
16316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16317 # soname into executable. Probably we can add versioning support to
16318 # collect2, so additional links can be useful in future.
16319 if test "$aix_use_runtimelinking" = yes; then
16320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16321 # instead of lib<name>.a to let people know that these are not
16322 # typical AIX shared libraries.
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 # We preserve .a as extension for shared libraries through AIX4.2
16326 # and later when we are not doing run time linking.
16327 library_names_spec='${libname}${release}.a $libname.a'
16328 soname_spec='${libname}${release}${shared_ext}$major'
16330 shlibpath_var=LIBPATH
16337 # Since July 2007 AmigaOS4 officially supports .so libraries.
16338 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 library_names_spec='$libname.ixlibrary $libname.a'
16343 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16344 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'
16350 library_names_spec='${libname}${shared_ext}'
16351 dynamic_linker="$host_os ld.so"
16352 shlibpath_var=LIBRARY_PATH
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16360 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16361 shlibpath_var=LD_LIBRARY_PATH
16362 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16363 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16364 # the default ld.so.conf also contains /usr/contrib/lib and
16365 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16366 # libtool to hard-code these into programs
16369 cygwin* | mingw* | pw32* | cegcc*)
16370 version_type=windows
16375 case $GCC,$host_os in
16376 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16377 library_names_spec='$libname.dll.a'
16378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16379 postinstall_cmds='base_file=`basename \${file}`~
16380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16381 dldir=$destdir/`dirname \$dlpath`~
16382 test -d \$dldir || mkdir -p \$dldir~
16383 $install_prog $dir/$dlname \$dldir/$dlname~
16384 chmod a+x \$dldir/$dlname~
16385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16389 dlpath=$dir/\$dldll~
16391 shlibpath_overrides_runpath=yes
16395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16396 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16401 # MinGW DLLs use traditional 'lib' prefix
16402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16405 # pw32 DLLs use 'pw' prefix rather than 'lib'
16406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16412 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16415 dynamic_linker='Win32 ld.exe'
16416 # FIXME: first we should search . and the directory the executable is in
16420 darwin* | rhapsody*)
16421 dynamic_linker="$host_os dyld"
16422 version_type=darwin
16425 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16426 soname_spec='${libname}${release}${major}$shared_ext'
16427 shlibpath_overrides_runpath=yes
16428 shlibpath_var=DYLD_LIBRARY_PATH
16429 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16431 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16440 soname_spec='${libname}${release}${shared_ext}$major'
16441 shlibpath_var=LD_LIBRARY_PATH
16448 freebsd* | dragonfly*)
16449 # DragonFly does not have aout. When/if they implement a new
16450 # versioning mechanism, adjust this.
16451 if test -x /usr/bin/objformat; then
16452 objformat=`/usr/bin/objformat`
16455 freebsd[123]*) objformat=aout ;;
16456 *) objformat=elf ;;
16459 version_type=freebsd-$objformat
16460 case $version_type in
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16471 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes
16476 freebsd3.[01]* | freebsdelf3.[01]*)
16477 shlibpath_overrides_runpath=yes
16478 hardcode_into_libs=yes
16480 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16481 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16482 shlibpath_overrides_runpath=no
16483 hardcode_into_libs=yes
16485 *) # from 4.6 on, and DragonFly
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 hardcode_into_libs=yes
16506 dynamic_linker="$host_os runtime_loader"
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16508 soname_spec='${libname}${release}${shared_ext}$major'
16509 shlibpath_var=LIBRARY_PATH
16510 shlibpath_overrides_runpath=yes
16511 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16512 hardcode_into_libs=yes
16515 hpux9* | hpux10* | hpux11*)
16516 # Give a soname corresponding to the major version so that dld.sl refuses to
16517 # link against other versions.
16524 hardcode_into_libs=yes
16525 dynamic_linker="$host_os dld.so"
16526 shlibpath_var=LD_LIBRARY_PATH
16527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 if test "X$HPUX_IA64_MODE" = X32; then
16531 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16533 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16539 hardcode_into_libs=yes
16540 dynamic_linker="$host_os dld.sl"
16541 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16544 soname_spec='${libname}${release}${shared_ext}$major'
16545 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16550 dynamic_linker="$host_os dld.sl"
16551 shlibpath_var=SHLIB_PATH
16552 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554 soname_spec='${libname}${release}${shared_ext}$major'
16557 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16558 postinstall_cmds='chmod 555 $lib'
16559 # or fails outright, so override atomically:
16560 install_override_mode=555
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 shlibpath_overrides_runpath=no
16572 hardcode_into_libs=yes
16575 irix5* | irix6* | nonstopux*)
16577 nonstopux*) version_type=nonstopux ;;
16579 if test "$lt_cv_prog_gnu_ld" = yes; then
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16590 irix5* | nonstopux*)
16591 libsuff= shlibsuff=
16594 case $LD in # libtool.m4 will add one of these switches to LD
16595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16596 libsuff= shlibsuff= libmagic=32-bit;;
16597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16598 libsuff=32 shlibsuff=N32 libmagic=N32;;
16599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16601 *) libsuff= shlibsuff= libmagic=never-match;;
16605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16606 shlibpath_overrides_runpath=no
16607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16609 hardcode_into_libs=yes
16612 # No shared lib support for Linux oldld, aout, or coff.
16613 linux*oldld* | linux*aout* | linux*coff*)
16617 # This must be Linux ELF.
16618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=no
16628 # Some binutils ld are patched to set DT_RUNPATH
16629 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16630 $as_echo_n "(cached) " >&6
16632 lt_cv_shlibpath_overrides_runpath=no
16633 save_LDFLAGS=$LDFLAGS
16634 save_libdir=$libdir
16635 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16636 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16648 if ac_fn_c_try_link "$LINENO"; then :
16649 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16650 lt_cv_shlibpath_overrides_runpath=yes
16653 rm -f core conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16655 LDFLAGS=$save_LDFLAGS
16656 libdir=$save_libdir
16660 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16662 # This implies no fast_install, which is unacceptable.
16663 # Some rework will be needed to allow for fast_install
16664 # before this can be enabled.
16665 hardcode_into_libs=yes
16667 # Append ld.so.conf contents to the search path
16668 if test -f /etc/ld.so.conf; then
16669 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' ' '`
16670 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16673 # We used to test for /lib/ld.so.1 and disable shared libraries on
16674 # powerpc, because MkLinux only supported shared libraries with the
16675 # GNU dynamic linker. Since this was broken with cross compilers,
16676 # most powerpc-linux boxes support dynamic linking these days and
16677 # people can always --disable-shared, the test was removed, and we
16678 # assume the GNU/Linux dynamic linker is in use.
16679 dynamic_linker='GNU/Linux ld.so'
16686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16689 dynamic_linker='NetBSD (a.out) ld.so'
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 dynamic_linker='NetBSD ld.elf_so'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=yes
16697 hardcode_into_libs=yes
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703 shlibpath_var=LD_LIBRARY_PATH
16704 shlibpath_overrides_runpath=yes
16711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712 soname_spec='${libname}${release}${shared_ext}$major'
16713 shlibpath_var=LD_LIBRARY_PATH
16714 shlibpath_overrides_runpath=no
16715 hardcode_into_libs=yes
16716 dynamic_linker='ldqnx.so'
16721 sys_lib_dlsearch_path_spec="/usr/lib"
16723 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16725 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16726 *) need_version=no ;;
16728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16730 shlibpath_var=LD_LIBRARY_PATH
16731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16733 openbsd2.[89] | openbsd2.[89].*)
16734 shlibpath_overrides_runpath=no
16737 shlibpath_overrides_runpath=yes
16741 shlibpath_overrides_runpath=yes
16746 libname_spec='$name'
16749 library_names_spec='$libname${shared_ext} $libname.a'
16750 dynamic_linker='OS/2 ld.exe'
16751 shlibpath_var=LIBPATH
16754 osf3* | osf4* | osf5*)
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 shlibpath_overrides_runpath=yes
16777 hardcode_into_libs=yes
16778 # ldd complains unless libraries are executable
16779 postinstall_cmds='chmod +x $lib'
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 shlibpath_overrides_runpath=yes
16788 if test "$with_gnu_ld" = yes; then
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797 soname_spec='${libname}${release}${shared_ext}$major'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 case $host_vendor in
16801 shlibpath_overrides_runpath=no
16803 runpath_var=LD_RUN_PATH
16811 shlibpath_overrides_runpath=no
16812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16818 if test -d /usr/nec ;then
16820 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16821 soname_spec='$libname${shared_ext}.$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16827 version_type=freebsd-elf
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=yes
16834 hardcode_into_libs=yes
16835 if test "$with_gnu_ld" = yes; then
16836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16838 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16845 sys_lib_dlsearch_path_spec='/usr/lib'
16849 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 shlibpath_overrides_runpath=no
16856 hardcode_into_libs=yes
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 shlibpath_var=LD_LIBRARY_PATH
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16871 $as_echo "$dynamic_linker" >&6; }
16872 test "$dynamic_linker" = no && can_build_shared=no
16874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16875 if test "$GCC" = yes; then
16876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16879 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16880 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16882 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16883 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16978 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16980 if test -n "$hardcode_libdir_flag_spec" ||
16981 test -n "$runpath_var" ||
16982 test "X$hardcode_automatic" = "Xyes" ; then
16984 # We can hardcode non-existent directories.
16985 if test "$hardcode_direct" != no &&
16986 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16987 # have to relink, otherwise we might link with an installed library
16988 # when we should be linking with a yet-to-be-installed one
16989 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16990 test "$hardcode_minus_L" != no; then
16991 # Linking always hardcodes the temporary library directory.
16992 hardcode_action=relink
16994 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16995 hardcode_action=immediate
16998 # We cannot hardcode anything, or else we can only hardcode existing
17000 hardcode_action=unsupported
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17003 $as_echo "$hardcode_action" >&6; }
17005 if test "$hardcode_action" = relink ||
17006 test "$inherit_rpath" = yes; then
17007 # Fast installation is not supported
17008 enable_fast_install=no
17009 elif test "$shlibpath_overrides_runpath" = yes ||
17010 test "$enable_shared" = no; then
17011 # Fast installation is not necessary
17012 enable_fast_install=needless
17020 if test "x$enable_dlopen" != xyes; then
17021 enable_dlopen=unknown
17022 enable_dlopen_self=unknown
17023 enable_dlopen_self_static=unknown
17030 lt_cv_dlopen="load_add_on"
17032 lt_cv_dlopen_self=yes
17035 mingw* | pw32* | cegcc*)
17036 lt_cv_dlopen="LoadLibrary"
17041 lt_cv_dlopen="dlopen"
17046 # if libdl is installed we need to link against it
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17050 $as_echo_n "(cached) " >&6
17052 ac_check_lib_save_LIBS=$LIBS
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17057 /* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17072 if ac_fn_c_try_link "$LINENO"; then :
17073 ac_cv_lib_dl_dlopen=yes
17075 ac_cv_lib_dl_dlopen=no
17077 rm -f core conftest.err conftest.$ac_objext \
17078 conftest$ac_exeext conftest.$ac_ext
17079 LIBS=$ac_check_lib_save_LIBS
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17083 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17087 lt_cv_dlopen="dyld"
17089 lt_cv_dlopen_self=yes
17096 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17097 if test "x$ac_cv_func_shl_load" = x""yes; then :
17098 lt_cv_dlopen="shl_load"
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17101 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17102 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17103 $as_echo_n "(cached) " >&6
17105 ac_check_lib_save_LIBS=$LIBS
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h. */
17110 /* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17120 return shl_load ();
17125 if ac_fn_c_try_link "$LINENO"; then :
17126 ac_cv_lib_dld_shl_load=yes
17128 ac_cv_lib_dld_shl_load=no
17130 rm -f core conftest.err conftest.$ac_objext \
17131 conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17135 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17136 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17137 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17139 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17140 if test "x$ac_cv_func_dlopen" = x""yes; then :
17141 lt_cv_dlopen="dlopen"
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17144 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17146 $as_echo_n "(cached) " >&6
17148 ac_check_lib_save_LIBS=$LIBS
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17153 /* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17168 if ac_fn_c_try_link "$LINENO"; then :
17169 ac_cv_lib_dl_dlopen=yes
17171 ac_cv_lib_dl_dlopen=no
17173 rm -f core conftest.err conftest.$ac_objext \
17174 conftest$ac_exeext conftest.$ac_ext
17175 LIBS=$ac_check_lib_save_LIBS
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17178 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17179 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17180 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17183 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17184 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17185 $as_echo_n "(cached) " >&6
17187 ac_check_lib_save_LIBS=$LIBS
17188 LIBS="-lsvld $LIBS"
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17192 /* Override any GCC internal prototype to avoid an error.
17193 Use char because int might match the return type of a GCC
17194 builtin and then its argument prototype would still apply. */
17207 if ac_fn_c_try_link "$LINENO"; then :
17208 ac_cv_lib_svld_dlopen=yes
17210 ac_cv_lib_svld_dlopen=no
17212 rm -f core conftest.err conftest.$ac_objext \
17213 conftest$ac_exeext conftest.$ac_ext
17214 LIBS=$ac_check_lib_save_LIBS
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17217 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17218 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17222 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17223 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17224 $as_echo_n "(cached) " >&6
17226 ac_check_lib_save_LIBS=$LIBS
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17231 /* Override any GCC internal prototype to avoid an error.
17232 Use char because int might match the return type of a GCC
17233 builtin and then its argument prototype would still apply. */
17241 return dld_link ();
17246 if ac_fn_c_try_link "$LINENO"; then :
17247 ac_cv_lib_dld_dld_link=yes
17249 ac_cv_lib_dld_dld_link=no
17251 rm -f core conftest.err conftest.$ac_objext \
17252 conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17256 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17257 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17258 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17279 if test "x$lt_cv_dlopen" != xno; then
17285 case $lt_cv_dlopen in
17287 save_CPPFLAGS="$CPPFLAGS"
17288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17290 save_LDFLAGS="$LDFLAGS"
17291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17294 LIBS="$lt_cv_dlopen_libs $LIBS"
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17297 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17298 if test "${lt_cv_dlopen_self+set}" = set; then :
17299 $as_echo_n "(cached) " >&6
17301 if test "$cross_compiling" = yes; then :
17302 lt_cv_dlopen_self=cross
17304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17305 lt_status=$lt_dlunknown
17306 cat > conftest.$ac_ext <<_LT_EOF
17307 #line 17307 "configure"
17308 #include "confdefs.h"
17317 # define LT_DLGLOBAL RTLD_GLOBAL
17320 # define LT_DLGLOBAL DL_GLOBAL
17322 # define LT_DLGLOBAL 0
17326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17327 find out it does not work in some platform. */
17328 #ifndef LT_DLLAZY_OR_NOW
17330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17333 # define LT_DLLAZY_OR_NOW DL_LAZY
17336 # define LT_DLLAZY_OR_NOW RTLD_NOW
17339 # define LT_DLLAZY_OR_NOW DL_NOW
17341 # define LT_DLLAZY_OR_NOW 0
17348 /* When -fvisbility=hidden is used, assume the code has been annotated
17349 correspondingly for the symbols needed. */
17350 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17351 void fnord () __attribute__((visibility("default")));
17354 void fnord () { int i=42; }
17357 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17358 int status = $lt_dlunknown;
17362 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17365 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17366 else puts (dlerror ());
17368 /* dlclose (self); */
17376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17377 (eval $ac_link) 2>&5
17379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17380 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17381 (./conftest; exit; ) >&5 2>/dev/null
17383 case x$lt_status in
17384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17386 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17389 # compilation failed
17390 lt_cv_dlopen_self=no
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17398 $as_echo "$lt_cv_dlopen_self" >&6; }
17400 if test "x$lt_cv_dlopen_self" = xyes; then
17401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17403 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17404 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17405 $as_echo_n "(cached) " >&6
17407 if test "$cross_compiling" = yes; then :
17408 lt_cv_dlopen_self_static=cross
17410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17411 lt_status=$lt_dlunknown
17412 cat > conftest.$ac_ext <<_LT_EOF
17413 #line 17413 "configure"
17414 #include "confdefs.h"
17423 # define LT_DLGLOBAL RTLD_GLOBAL
17426 # define LT_DLGLOBAL DL_GLOBAL
17428 # define LT_DLGLOBAL 0
17432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17433 find out it does not work in some platform. */
17434 #ifndef LT_DLLAZY_OR_NOW
17436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17439 # define LT_DLLAZY_OR_NOW DL_LAZY
17442 # define LT_DLLAZY_OR_NOW RTLD_NOW
17445 # define LT_DLLAZY_OR_NOW DL_NOW
17447 # define LT_DLLAZY_OR_NOW 0
17454 /* When -fvisbility=hidden is used, assume the code has been annotated
17455 correspondingly for the symbols needed. */
17456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17457 void fnord () __attribute__((visibility("default")));
17460 void fnord () { int i=42; }
17463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17464 int status = $lt_dlunknown;
17468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17472 else puts (dlerror ());
17474 /* dlclose (self); */
17482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17483 (eval $ac_link) 2>&5
17485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17487 (./conftest; exit; ) >&5 2>/dev/null
17489 case x$lt_status in
17490 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17491 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17492 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17495 # compilation failed
17496 lt_cv_dlopen_self_static=no
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17504 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17507 CPPFLAGS="$save_CPPFLAGS"
17508 LDFLAGS="$save_LDFLAGS"
17513 case $lt_cv_dlopen_self in
17514 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17515 *) enable_dlopen_self=unknown ;;
17518 case $lt_cv_dlopen_self_static in
17519 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17520 *) enable_dlopen_self_static=unknown ;;
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17543 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17544 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17545 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17546 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17548 $as_echo "yes" >&6; }
17550 # FIXME - insert some real tests, host_os isn't really good enough
17553 if test -n "$STRIP" ; then
17554 striplib="$STRIP -x"
17555 old_striplib="$STRIP -S"
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17557 $as_echo "yes" >&6; }
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17560 $as_echo "no" >&6; }
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565 $as_echo "no" >&6; }
17581 # Report which library types will actually be built
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17583 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17585 $as_echo "$can_build_shared" >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17588 $as_echo_n "checking whether to build shared libraries... " >&6; }
17589 test "$can_build_shared" = "no" && enable_shared=no
17591 # On AIX, shared libraries and static libraries use the same namespace, and
17592 # are all built from PIC.
17595 test "$enable_shared" = yes && enable_static=no
17596 if test -n "$RANLIB"; then
17597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17598 postinstall_cmds='$RANLIB $lib'
17603 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17604 test "$enable_shared" = yes && enable_static=no
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17609 $as_echo "$enable_shared" >&6; }
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17612 $as_echo_n "checking whether to build static libraries... " >&6; }
17613 # Make sure either enable_shared or enable_static is yes.
17614 test "$enable_shared" = yes || enable_static=yes
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17616 $as_echo "$enable_static" >&6; }
17623 ac_cpp='$CPP $CPPFLAGS'
17624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17630 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17631 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17632 (test "X$CXX" != "Xg++"))) ; then
17634 ac_cpp='$CXXCPP $CPPFLAGS'
17635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17639 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17640 if test -z "$CXXCPP"; then
17641 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17642 $as_echo_n "(cached) " >&6
17644 # Double quotes because CXXCPP needs to be expanded
17645 for CXXCPP in "$CXX -E" "/lib/cpp"
17647 ac_preproc_ok=false
17648 for ac_cxx_preproc_warn_flag in '' yes
17650 # Use a header file that comes with gcc, so configuring glibc
17651 # with a fresh cross-compiler works.
17652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17653 # <limits.h> exists even on freestanding compilers.
17654 # On the NeXT, cc -E runs the code through the compiler's parser,
17655 # not just through cpp. "Syntax error" is here to catch this case.
17656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17659 # include <limits.h>
17661 # include <assert.h>
17665 if ac_fn_cxx_try_cpp "$LINENO"; then :
17668 # Broken: fails on valid input.
17671 rm -f conftest.err conftest.$ac_ext
17673 # OK, works on sane cases. Now check whether nonexistent headers
17674 # can be detected and how.
17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h. */
17677 #include <ac_nonexistent.h>
17679 if ac_fn_cxx_try_cpp "$LINENO"; then :
17680 # Broken: success on invalid input.
17683 # Passes both tests.
17687 rm -f conftest.err conftest.$ac_ext
17690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17691 rm -f conftest.err conftest.$ac_ext
17692 if $ac_preproc_ok; then :
17697 ac_cv_prog_CXXCPP=$CXXCPP
17700 CXXCPP=$ac_cv_prog_CXXCPP
17702 ac_cv_prog_CXXCPP=$CXXCPP
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17705 $as_echo "$CXXCPP" >&6; }
17706 ac_preproc_ok=false
17707 for ac_cxx_preproc_warn_flag in '' yes
17709 # Use a header file that comes with gcc, so configuring glibc
17710 # with a fresh cross-compiler works.
17711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 # <limits.h> exists even on freestanding compilers.
17713 # On the NeXT, cc -E runs the code through the compiler's parser,
17714 # not just through cpp. "Syntax error" is here to catch this case.
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17718 # include <limits.h>
17720 # include <assert.h>
17724 if ac_fn_cxx_try_cpp "$LINENO"; then :
17727 # Broken: fails on valid input.
17730 rm -f conftest.err conftest.$ac_ext
17732 # OK, works on sane cases. Now check whether nonexistent headers
17733 # can be detected and how.
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h. */
17736 #include <ac_nonexistent.h>
17738 if ac_fn_cxx_try_cpp "$LINENO"; then :
17739 # Broken: success on invalid input.
17742 # Passes both tests.
17746 rm -f conftest.err conftest.$ac_ext
17749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17750 rm -f conftest.err conftest.$ac_ext
17751 if $ac_preproc_ok; then :
17754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17756 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17757 See \`config.log' for more details." "$LINENO" 5; }
17761 ac_cpp='$CPP $CPPFLAGS'
17762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17767 _lt_caught_CXX_error=yes
17771 ac_cpp='$CXXCPP $CPPFLAGS'
17772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17776 archive_cmds_need_lc_CXX=no
17777 allow_undefined_flag_CXX=
17778 always_export_symbols_CXX=no
17779 archive_expsym_cmds_CXX=
17780 compiler_needs_object_CXX=no
17781 export_dynamic_flag_spec_CXX=
17782 hardcode_direct_CXX=no
17783 hardcode_direct_absolute_CXX=no
17784 hardcode_libdir_flag_spec_CXX=
17785 hardcode_libdir_flag_spec_ld_CXX=
17786 hardcode_libdir_separator_CXX=
17787 hardcode_minus_L_CXX=no
17788 hardcode_shlibpath_var_CXX=unsupported
17789 hardcode_automatic_CXX=no
17790 inherit_rpath_CXX=no
17792 module_expsym_cmds_CXX=
17793 link_all_deplibs_CXX=unknown
17794 old_archive_cmds_CXX=$old_archive_cmds
17795 reload_flag_CXX=$reload_flag
17796 reload_cmds_CXX=$reload_cmds
17797 no_undefined_flag_CXX=
17798 whole_archive_flag_spec_CXX=
17799 enable_shared_with_static_runtimes_CXX=no
17801 # Source file extension for C++ test sources.
17804 # Object file extension for compiled C++ test sources.
17808 # No sense in running all these tests if we already determined that
17809 # the CXX compiler isn't working. Some variables (like enable_shared)
17810 # are currently assumed to apply to all compilers on this platform,
17811 # and will be corrupted by setting them based on a non-working compiler.
17812 if test "$_lt_caught_CXX_error" != yes; then
17813 # Code to be used in simple compile tests
17814 lt_simple_compile_test_code="int some_variable = 0;"
17816 # Code to be used in simple link tests
17817 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17819 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17826 # If no C compiler was specified, use CC.
17829 # If no C compiler flags were specified, use CFLAGS.
17830 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17832 # Allow CC to be a program name with arguments.
17836 # save warnings/boilerplate of simple test code
17837 ac_outfile=conftest.$ac_objext
17838 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17839 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17840 _lt_compiler_boilerplate=`cat conftest.err`
17843 ac_outfile=conftest.$ac_objext
17844 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17845 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17846 _lt_linker_boilerplate=`cat conftest.err`
17850 # Allow CC to be a program name with arguments.
17855 lt_save_with_gnu_ld=$with_gnu_ld
17856 lt_save_path_LD=$lt_cv_path_LD
17857 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17858 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17860 $as_unset lt_cv_prog_gnu_ld
17862 if test -n "${lt_cv_path_LDCXX+set}"; then
17863 lt_cv_path_LD=$lt_cv_path_LDCXX
17865 $as_unset lt_cv_path_LD
17867 test -z "${LDCXX+set}" || LD=$LDCXX
17871 for cc_temp in $compiler""; do
17873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17879 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17882 if test -n "$compiler"; then
17883 # We don't want -fno-exception when compiling C++ code, so set the
17884 # no_builtin_flag separately
17885 if test "$GXX" = yes; then
17886 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17888 lt_prog_compiler_no_builtin_flag_CXX=
17891 if test "$GXX" = yes; then
17892 # Set up default GNU C++ configuration
17896 # Check whether --with-gnu-ld was given.
17897 if test "${with_gnu_ld+set}" = set; then :
17898 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17904 if test "$GCC" = yes; then
17905 # Check if gcc -print-prog-name=ld gives a path.
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17907 $as_echo_n "checking for ld used by $CC... " >&6; }
17910 # gcc leaves a trailing carriage return which upsets mingw
17911 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17913 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17916 # Accept absolute paths.
17918 re_direlt='/[^/][^/]*/\.\./'
17919 # Canonicalize the pathname of ld
17920 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17921 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17922 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17924 test -z "$LD" && LD="$ac_prog"
17927 # If it fails, then pretend we aren't using GCC.
17931 # If it is relative, then search for the first ld in PATH.
17932 with_gnu_ld=unknown
17935 elif test "$with_gnu_ld" = yes; then
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17937 $as_echo_n "checking for GNU ld... " >&6; }
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17940 $as_echo_n "checking for non-GNU ld... " >&6; }
17942 if test "${lt_cv_path_LD+set}" = set; then :
17943 $as_echo_n "(cached) " >&6
17945 if test -z "$LD"; then
17946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17947 for ac_dir in $PATH; do
17949 test -z "$ac_dir" && ac_dir=.
17950 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17951 lt_cv_path_LD="$ac_dir/$ac_prog"
17952 # Check to see if the program is GNU ld. I'd rather use --version,
17953 # but apparently some variants of GNU ld only accept -v.
17954 # Break only if it was the GNU/non-GNU ld that we prefer.
17955 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17956 *GNU* | *'with BFD'*)
17957 test "$with_gnu_ld" != no && break
17960 test "$with_gnu_ld" != yes && break
17967 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17971 LD="$lt_cv_path_LD"
17972 if test -n "$LD"; then
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17974 $as_echo "$LD" >&6; }
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17977 $as_echo "no" >&6; }
17979 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17981 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17982 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17983 $as_echo_n "(cached) " >&6
17985 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17986 case `$LD -v 2>&1 </dev/null` in
17987 *GNU* | *'with BFD'*)
17988 lt_cv_prog_gnu_ld=yes
17991 lt_cv_prog_gnu_ld=no
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17996 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17997 with_gnu_ld=$lt_cv_prog_gnu_ld
18005 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18006 # archiving commands below assume that GNU ld is being used.
18007 if test "$with_gnu_ld" = yes; then
18008 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009 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'
18011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18014 # If archive_cmds runs LD, not CC, wlarc should be empty
18015 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18016 # investigate it a little bit more. (MM)
18019 # ancient GNU ld didn't support --whole-archive et. al.
18020 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18021 $GREP 'no-whole-archive' > /dev/null; then
18022 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18024 whole_archive_flag_spec_CXX=
18030 # A generic and very simple default shared library creation
18031 # command for GNU C++ for the case where it uses the native
18032 # linker, instead of GNU ld. If possible, this setting should
18033 # overridden to take advantage of the native linker features on
18034 # the platform it is being used on.
18035 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18038 # Commands to make compiler produce verbose output that lists
18039 # what "hidden" libraries, object files and flags are used when
18040 # linking a shared library.
18041 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18049 # PORTME: fill in a description of your system's C++ link characteristics
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18051 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18055 # FIXME: insert proper C++ library support
18059 if test "$host_cpu" = ia64; then
18060 # On IA64, the linker does run time linking by default, so we don't
18061 # have to do anything special.
18062 aix_use_runtimelinking=no
18063 exp_sym_flag='-Bexport'
18066 aix_use_runtimelinking=no
18068 # Test if we are trying to use run time linking or normal
18069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18070 # need to do runtime linking.
18071 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18072 for ld_flag in $LDFLAGS; do
18075 aix_use_runtimelinking=yes
18083 exp_sym_flag='-bexport'
18084 no_entry_flag='-bnoentry'
18087 # When large executables or shared objects are built, AIX ld can
18088 # have problems creating the table of contents. If linking a library
18089 # or program results in "error TOC overflow" add -mminimal-toc to
18090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18093 archive_cmds_CXX=''
18094 hardcode_direct_CXX=yes
18095 hardcode_direct_absolute_CXX=yes
18096 hardcode_libdir_separator_CXX=':'
18097 link_all_deplibs_CXX=yes
18098 file_list_spec_CXX='${wl}-f,'
18100 if test "$GXX" = yes; then
18101 case $host_os in aix4.[012]|aix4.[012].*)
18102 # We only want to do this on AIX 4.2 and lower, the check
18103 # below for broken collect2 doesn't work under 4.3+
18104 collect2name=`${CC} -print-prog-name=collect2`
18105 if test -f "$collect2name" &&
18106 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18108 # We have reworked collect2
18111 # We have old collect2
18112 hardcode_direct_CXX=unsupported
18113 # It fails to find uninstalled libraries when the uninstalled
18114 # path is not listed in the libpath. Setting hardcode_minus_L
18115 # to unsupported forces relinking
18116 hardcode_minus_L_CXX=yes
18117 hardcode_libdir_flag_spec_CXX='-L$libdir'
18118 hardcode_libdir_separator_CXX=
18121 shared_flag='-shared'
18122 if test "$aix_use_runtimelinking" = yes; then
18123 shared_flag="$shared_flag "'${wl}-G'
18127 if test "$host_cpu" = ia64; then
18128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18129 # chokes on -Wl,-G. The following line is correct:
18132 if test "$aix_use_runtimelinking" = yes; then
18133 shared_flag='${wl}-G'
18135 shared_flag='${wl}-bM:SRE'
18140 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18141 # It seems that -bexpall does not export symbols beginning with
18142 # underscore (_), so it is better to generate a list of symbols to
18144 always_export_symbols_CXX=yes
18145 if test "$aix_use_runtimelinking" = yes; then
18146 # Warning - without using the other runtime loading flags (-brtl),
18147 # -berok will link without error, but may produce a broken library.
18148 allow_undefined_flag_CXX='-berok'
18149 # Determine the default libpath from the value encoded in an empty
18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h. */
18162 if ac_fn_cxx_try_link "$LINENO"; then :
18164 lt_aix_libpath_sed='
18165 /Import File Strings/,/^$/ {
18171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18172 # Check for a 64-bit object if we didn't find anything.
18173 if test -z "$aix_libpath"; then
18174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18177 rm -f core conftest.err conftest.$ac_objext \
18178 conftest$ac_exeext conftest.$ac_ext
18179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18181 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18183 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"
18185 if test "$host_cpu" = ia64; then
18186 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18187 allow_undefined_flag_CXX="-z nodefs"
18188 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"
18190 # Determine the default libpath from the value encoded in an
18191 # empty executable.
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18203 if ac_fn_cxx_try_link "$LINENO"; then :
18205 lt_aix_libpath_sed='
18206 /Import File Strings/,/^$/ {
18212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18213 # Check for a 64-bit object if we didn't find anything.
18214 if test -z "$aix_libpath"; then
18215 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18218 rm -f core conftest.err conftest.$ac_objext \
18219 conftest$ac_exeext conftest.$ac_ext
18220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18222 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18223 # Warning - without using the other run time loading flags,
18224 # -berok will link without error, but may produce a broken library.
18225 no_undefined_flag_CXX=' ${wl}-bernotok'
18226 allow_undefined_flag_CXX=' ${wl}-berok'
18227 if test "$with_gnu_ld" = yes; then
18228 # We only use this code for GNU lds that support --whole-archive.
18229 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18231 # Exported symbols can be pulled into shared objects from archives
18232 whole_archive_flag_spec_CXX='$convenience'
18234 archive_cmds_need_lc_CXX=yes
18235 # This is similar to how AIX traditionally builds its shared
18237 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'
18243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18244 allow_undefined_flag_CXX=unsupported
18245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18246 # support --undefined. This deserves some investigation. FIXME
18247 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18254 case $cc_basename in
18256 # FIXME: insert proper C++ library support
18262 cygwin* | mingw* | pw32* | cegcc*)
18263 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18264 # as there is no search path for DLLs.
18265 hardcode_libdir_flag_spec_CXX='-L$libdir'
18266 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18267 allow_undefined_flag_CXX=unsupported
18268 always_export_symbols_CXX=no
18269 enable_shared_with_static_runtimes_CXX=yes
18271 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18272 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'
18273 # If the export-symbols file already is a .def file (1st line
18274 # is EXPORTS), use it as is; otherwise, prepend...
18275 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18276 cp $export_symbols $output_objdir/$soname.def;
18278 echo EXPORTS > $output_objdir/$soname.def;
18279 cat $export_symbols >> $output_objdir/$soname.def;
18281 $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'
18286 darwin* | rhapsody*)
18289 archive_cmds_need_lc_CXX=no
18290 hardcode_direct_CXX=no
18291 hardcode_automatic_CXX=yes
18292 hardcode_shlibpath_var_CXX=unsupported
18293 if test "$lt_cv_ld_force_load" = "yes"; then
18294 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\"`'
18296 whole_archive_flag_spec_CXX=''
18298 link_all_deplibs_CXX=yes
18299 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18300 case $cc_basename in
18301 ifort*) _lt_dar_can_shared=yes ;;
18302 *) _lt_dar_can_shared=$GCC ;;
18304 if test "$_lt_dar_can_shared" = "yes"; then
18305 output_verbose_link_cmd=func_echo_all
18306 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}"
18307 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18308 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}"
18309 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}"
18310 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18311 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}"
18312 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}"
18322 case $cc_basename in
18324 # FIXME: insert proper C++ library support
18328 # Green Hills C++ Compiler
18329 # FIXME: insert proper C++ library support
18333 # FIXME: insert proper C++ library support
18340 # C++ shared libraries reported to be fairly broken before
18346 archive_cmds_need_lc_CXX=no
18349 freebsd* | dragonfly*)
18350 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18359 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18360 link_all_deplibs_CXX=yes
18364 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18365 hardcode_libdir_separator_CXX=:
18366 export_dynamic_flag_spec_CXX='${wl}-E'
18367 hardcode_direct_CXX=yes
18368 hardcode_minus_L_CXX=yes # Not in the search PATH,
18369 # but as the default
18370 # location of the library.
18372 case $cc_basename in
18374 # FIXME: insert proper C++ library support
18378 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'
18379 # Commands to make compiler produce verbose output that lists
18380 # what "hidden" libraries, object files and flags are used when
18381 # linking a shared library.
18383 # There doesn't appear to be a way to prevent this compiler from
18384 # explicitly linking system object files so we need to strip them
18385 # from the output so that they don't get included in the library
18387 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"'
18390 if test "$GXX" = yes; then
18391 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'
18393 # FIXME: insert proper C++ library support
18401 if test $with_gnu_ld = no; then
18402 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18403 hardcode_libdir_separator_CXX=:
18409 export_dynamic_flag_spec_CXX='${wl}-E'
18415 hardcode_direct_CXX=no
18416 hardcode_shlibpath_var_CXX=no
18419 hardcode_direct_CXX=yes
18420 hardcode_direct_absolute_CXX=yes
18421 hardcode_minus_L_CXX=yes # Not in the search PATH,
18422 # but as the default
18423 # location of the library.
18427 case $cc_basename in
18429 # FIXME: insert proper C++ library support
18435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18438 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18441 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18444 # Commands to make compiler produce verbose output that lists
18445 # what "hidden" libraries, object files and flags are used when
18446 # linking a shared library.
18448 # There doesn't appear to be a way to prevent this compiler from
18449 # explicitly linking system object files so we need to strip them
18450 # from the output so that they don't get included in the library
18452 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"'
18455 if test "$GXX" = yes; then
18456 if test $with_gnu_ld = no; then
18459 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18462 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18465 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'
18470 # FIXME: insert proper C++ library support
18478 hardcode_direct_CXX=no
18479 hardcode_shlibpath_var_CXX=no
18480 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18481 export_dynamic_flag_spec_CXX='${wl}-E'
18482 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18483 # Instead, shared libraries are loaded at an image base (0x10000000 by
18484 # default) and relocated if they conflict, which is a slow very memory
18485 # consuming and fragmenting process. To avoid this, we pick a random,
18486 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18487 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18488 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'
18489 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'
18492 case $cc_basename in
18495 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'
18497 # Archives containing C++ object files must be created using
18498 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18499 # necessary to make sure instantiated templates are included
18501 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18504 if test "$GXX" = yes; then
18505 if test "$with_gnu_ld" = no; then
18506 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'
18508 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'
18511 link_all_deplibs_CXX=yes
18514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18515 hardcode_libdir_separator_CXX=:
18516 inherit_rpath_CXX=yes
18519 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18520 case $cc_basename in
18522 # Kuck and Associates, Inc. (KAI) C++ Compiler
18524 # KCC will only create a shared library if the output file
18525 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18526 # to its proper name (with version) after linking.
18527 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'
18528 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'
18529 # Commands to make compiler produce verbose output that lists
18530 # what "hidden" libraries, object files and flags are used when
18531 # linking a shared library.
18533 # There doesn't appear to be a way to prevent this compiler from
18534 # explicitly linking system object files so we need to strip them
18535 # from the output so that they don't get included in the library
18537 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"'
18539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18540 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18542 # Archives containing C++ object files must be created using
18543 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18544 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18549 # version 8.0 and above of icpc choke on multiply defined symbols
18550 # if we add $predep_objects and $postdep_objects, however 7.1 and
18551 # earlier do not add the objects themselves.
18552 case `$CC -V 2>&1` in
18554 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18555 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'
18557 *) # Version 8.0 or newer
18560 ia64*) tmp_idyn=' -i_dynamic';;
18562 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18563 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'
18566 archive_cmds_need_lc_CXX=no
18567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18568 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18569 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18572 # Portland Group C++ compiler
18574 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18575 prelink_cmds_CXX='tpldir=Template.dir~
18577 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18578 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18579 old_archive_cmds_CXX='tpldir=Template.dir~
18581 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18582 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18584 archive_cmds_CXX='tpldir=Template.dir~
18586 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18587 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18588 archive_expsym_cmds_CXX='tpldir=Template.dir~
18590 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18591 $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'
18593 *) # Version 6 and above use weak symbols
18594 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18595 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'
18599 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18601 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'
18605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18606 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'
18608 runpath_var=LD_RUN_PATH
18609 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18610 hardcode_libdir_separator_CXX=:
18612 # Commands to make compiler produce verbose output that lists
18613 # what "hidden" libraries, object files and flags are used when
18614 # linking a shared library.
18616 # There doesn't appear to be a way to prevent this compiler from
18617 # explicitly linking system object files so we need to strip them
18618 # from the output so that they don't get included in the library
18620 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'
18622 xl* | mpixl* | bgxl*)
18623 # IBM XL 8.0 on PPC, with GNU ld
18624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18626 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18627 if test "x$supports_anon_versioning" = xyes; then
18628 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18630 echo "local: *; };" >> $output_objdir/$libname.ver~
18631 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18635 case `$CC -V 2>&1 | sed 5q` in
18638 no_undefined_flag_CXX=' -zdefs'
18639 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18640 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'
18641 hardcode_libdir_flag_spec_CXX='-R$libdir'
18642 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'
18643 compiler_needs_object_CXX=yes
18645 # Not sure whether something based on
18646 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18648 output_verbose_link_cmd='func_echo_all'
18650 # Archives containing C++ object files must be created using
18651 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18652 # necessary to make sure instantiated templates are included
18654 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18662 # FIXME: insert proper C++ library support
18667 # FIXME: insert proper C++ library support
18672 case $cc_basename in
18674 # FIXME: insert proper C++ library support
18678 # FIXME: insert proper C++ library support
18685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18686 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18688 hardcode_libdir_flag_spec_CXX='-R$libdir'
18689 hardcode_direct_CXX=yes
18690 hardcode_shlibpath_var_CXX=no
18692 # Workaround some broken pre-1.5 toolchains
18693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18701 # C++ shared libraries are fairly broken
18706 if test -f /usr/libexec/ld.so; then
18707 hardcode_direct_CXX=yes
18708 hardcode_shlibpath_var_CXX=no
18709 hardcode_direct_absolute_CXX=yes
18710 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18713 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18714 export_dynamic_flag_spec_CXX='${wl}-E'
18715 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18717 output_verbose_link_cmd=func_echo_all
18723 osf3* | osf4* | osf5*)
18724 case $cc_basename in
18726 # Kuck and Associates, Inc. (KAI) C++ Compiler
18728 # KCC will only create a shared library if the output file
18729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18730 # to its proper name (with version) after linking.
18731 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18734 hardcode_libdir_separator_CXX=:
18736 # Archives containing C++ object files must be created using
18737 # the KAI C++ compiler.
18739 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18740 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18744 # Rational C++ 2.4.1
18745 # FIXME: insert proper C++ library support
18751 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18752 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'
18753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18756 allow_undefined_flag_CXX=' -expect_unresolved \*'
18757 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'
18758 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18759 echo "-hidden">> $lib.exp~
18760 $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~
18762 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18766 hardcode_libdir_separator_CXX=:
18768 # Commands to make compiler produce verbose output that lists
18769 # what "hidden" libraries, object files and flags are used when
18770 # linking a shared library.
18772 # There doesn't appear to be a way to prevent this compiler from
18773 # explicitly linking system object files so we need to strip them
18774 # from the output so that they don't get included in the library
18776 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"'
18779 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18780 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18783 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'
18786 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'
18790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18791 hardcode_libdir_separator_CXX=:
18793 # Commands to make compiler produce verbose output that lists
18794 # what "hidden" libraries, object files and flags are used when
18795 # linking a shared library.
18796 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18799 # FIXME: insert proper C++ library support
18807 # FIXME: insert proper C++ library support
18812 case $cc_basename in
18815 # FIXME: insert proper C++ library support
18820 # FIXME: insert proper C++ library support
18824 # FIXME: insert proper C++ library support
18831 case $cc_basename in
18833 # Sun C++ 4.2, 5.x and Centerline C++
18834 archive_cmds_need_lc_CXX=yes
18835 no_undefined_flag_CXX=' -zdefs'
18836 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18837 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18838 $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'
18840 hardcode_libdir_flag_spec_CXX='-R$libdir'
18841 hardcode_shlibpath_var_CXX=no
18843 solaris2.[0-5] | solaris2.[0-5].*) ;;
18845 # The compiler driver will combine and reorder linker options,
18846 # but understands `-z linker_flag'.
18847 # Supported since Solaris 2.6 (maybe 2.5.1?)
18848 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18851 link_all_deplibs_CXX=yes
18853 output_verbose_link_cmd='func_echo_all'
18855 # Archives containing C++ object files must be created using
18856 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18857 # necessary to make sure instantiated templates are included
18859 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18862 # Green Hills C++ Compiler
18863 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18865 # The C++ compiler must be used to create the archive.
18866 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18869 # GNU C++ compiler with Solaris linker
18870 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18871 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18872 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18873 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18874 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18875 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18877 # Commands to make compiler produce verbose output that lists
18878 # what "hidden" libraries, object files and flags are used when
18879 # linking a shared library.
18880 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18882 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18884 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18885 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18886 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18888 # Commands to make compiler produce verbose output that lists
18889 # what "hidden" libraries, object files and flags are used when
18890 # linking a shared library.
18891 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18894 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18896 solaris2.[0-5] | solaris2.[0-5].*) ;;
18898 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18907 no_undefined_flag_CXX='${wl}-z,text'
18908 archive_cmds_need_lc_CXX=no
18909 hardcode_shlibpath_var_CXX=no
18910 runpath_var='LD_RUN_PATH'
18912 case $cc_basename in
18914 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18915 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18918 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18919 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18924 sysv5* | sco3.2v5* | sco5v6*)
18925 # Note: We can NOT use -z defs as we might desire, because we do not
18926 # link with -lc, and that would cause any symbols used from libc to
18927 # always be unresolved, which means just about no library would
18928 # ever link correctly. If we're not using GNU ld we use -z text
18929 # though, which does catch some bad symbols but isn't as heavy-handed
18931 no_undefined_flag_CXX='${wl}-z,text'
18932 allow_undefined_flag_CXX='${wl}-z,nodefs'
18933 archive_cmds_need_lc_CXX=no
18934 hardcode_shlibpath_var_CXX=no
18935 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18936 hardcode_libdir_separator_CXX=':'
18937 link_all_deplibs_CXX=yes
18938 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18939 runpath_var='LD_RUN_PATH'
18941 case $cc_basename in
18943 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18944 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18945 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18946 '"$old_archive_cmds_CXX"
18947 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18948 '"$reload_cmds_CXX"
18951 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18952 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18958 case $cc_basename in
18960 # NonStop-UX NCC 3.20
18961 # FIXME: insert proper C++ library support
18965 # FIXME: insert proper C++ library support
18972 # FIXME: insert proper C++ library support
18977 # FIXME: insert proper C++ library support
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18983 $as_echo "$ld_shlibs_CXX" >&6; }
18984 test "$ld_shlibs_CXX" = no && can_build_shared=no
18990 ## There is no encapsulation within the following macros, do not change
18991 ## the running order or otherwise move them around unless you know exactly
18992 ## what you are doing...
18993 # Dependencies to place before and after the object being linked:
18994 predep_objects_CXX=
18995 postdep_objects_CXX=
18998 compiler_lib_search_path_CXX=
19000 cat > conftest.$ac_ext <<_LT_EOF
19004 Foo (void) { a = 0; }
19010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19011 (eval $ac_compile) 2>&5
19013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19014 test $ac_status = 0; }; then
19015 # Parse the compiler output and extract the necessary
19016 # objects, libraries and library flags.
19018 # Sentinel used to keep track of whether or not we are before
19019 # the conftest object file.
19020 pre_test_object_deps_done=no
19022 for p in `eval "$output_verbose_link_cmd"`; do
19026 # Some compilers place space between "-{L,R}" and the path.
19027 # Remove the space.
19028 if test $p = "-L" ||
19029 test $p = "-R"; then
19036 if test "$pre_test_object_deps_done" = no; then
19039 # Internal compiler library paths should come after those
19040 # provided the user. The postdeps already come after the
19041 # user supplied libs so there is no need to process them.
19042 if test -z "$compiler_lib_search_path_CXX"; then
19043 compiler_lib_search_path_CXX="${prev}${p}"
19045 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19048 # The "-l" case would never come before the object being
19049 # linked, so don't bother handling this case.
19052 if test -z "$postdeps_CXX"; then
19053 postdeps_CXX="${prev}${p}"
19055 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19061 # This assumes that the test object file only shows up
19062 # once in the compiler output.
19063 if test "$p" = "conftest.$objext"; then
19064 pre_test_object_deps_done=yes
19068 if test "$pre_test_object_deps_done" = no; then
19069 if test -z "$predep_objects_CXX"; then
19070 predep_objects_CXX="$p"
19072 predep_objects_CXX="$predep_objects_CXX $p"
19075 if test -z "$postdep_objects_CXX"; then
19076 postdep_objects_CXX="$p"
19078 postdep_objects_CXX="$postdep_objects_CXX $p"
19083 *) ;; # Ignore the rest.
19091 echo "libtool.m4: error: problem compiling CXX test program"
19094 $RM -f confest.$objext
19096 # PORTME: override above test on systems where it is broken
19099 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19100 # hack all around it, let's just trust "g++" to DTRT.
19101 predep_objects_CXX=
19102 postdep_objects_CXX=
19107 case `$CC -V 2>&1 | sed 5q` in
19111 # The more standards-conforming stlport4 library is
19112 # incompatible with the Cstd library. Avoid specifying
19113 # it if it's in CXXFLAGS. Ignore libCrun as
19114 # -library=stlport4 depends on it.
19115 case " $CXX $CXXFLAGS " in
19116 *" -library=stlport4 "*)
19117 solaris_use_stlport4=yes
19121 if test "$solaris_use_stlport4" != yes; then
19122 postdeps_CXX='-library=Cstd -library=Crun'
19129 case $cc_basename in
19131 # The more standards-conforming stlport4 library is
19132 # incompatible with the Cstd library. Avoid specifying
19133 # it if it's in CXXFLAGS. Ignore libCrun as
19134 # -library=stlport4 depends on it.
19135 case " $CXX $CXXFLAGS " in
19136 *" -library=stlport4 "*)
19137 solaris_use_stlport4=yes
19141 # Adding this requires a known-good setup of shared libraries for
19142 # Sun compiler versions before 5.6, else PIC objects from an old
19143 # archive will be linked into the output, leading to subtle bugs.
19144 if test "$solaris_use_stlport4" != yes; then
19145 postdeps_CXX='-library=Cstd -library=Crun'
19153 case " $postdeps_CXX " in
19154 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19156 compiler_lib_search_dirs_CXX=
19157 if test -n "${compiler_lib_search_path_CXX}"; then
19158 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19191 lt_prog_compiler_wl_CXX=
19192 lt_prog_compiler_pic_CXX=
19193 lt_prog_compiler_static_CXX=
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19196 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19198 # C++ specific cases for pic, static, wl, etc.
19199 if test "$GXX" = yes; then
19200 lt_prog_compiler_wl_CXX='-Wl,'
19201 lt_prog_compiler_static_CXX='-static'
19205 # All AIX code is PIC.
19206 if test "$host_cpu" = ia64; then
19207 # AIX 5 now supports IA64 processor
19208 lt_prog_compiler_static_CXX='-Bstatic'
19215 # see comment about AmigaOS4 .so support
19216 lt_prog_compiler_pic_CXX='-fPIC'
19219 # FIXME: we need at least 68020 code to build shared libraries, but
19220 # adding the `-m68020' flag to GCC prevents building anything better,
19222 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19227 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19228 # PIC is the default for these OSes.
19230 mingw* | cygwin* | os2* | pw32* | cegcc*)
19231 # This hack is so that the source file can tell whether it is being
19232 # built for inclusion in a dll (and should export symbols for example).
19233 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19234 # (--disable-auto-import) libraries
19235 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19237 darwin* | rhapsody*)
19238 # PIC is the default on this platform
19239 # Common symbols not allowed in MH_DYLIB files
19240 lt_prog_compiler_pic_CXX='-fno-common'
19243 # DJGPP does not support shared libraries at all
19244 lt_prog_compiler_pic_CXX=
19247 # PIC is the default for Haiku.
19248 # The "-static" flag exists, but is broken.
19249 lt_prog_compiler_static_CXX=
19252 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19253 # Instead, we relocate shared libraries at runtime.
19256 if test -d /usr/nec; then
19257 lt_prog_compiler_pic_CXX=-Kconform_pic
19261 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19262 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19263 # sets the default TLS model and affects inlining.
19268 lt_prog_compiler_pic_CXX='-fPIC'
19273 # QNX uses GNU C++, but need to define -shared option too, otherwise
19274 # it will coredump.
19275 lt_prog_compiler_pic_CXX='-fPIC -shared'
19278 lt_prog_compiler_pic_CXX='-fPIC'
19284 # All AIX code is PIC.
19285 if test "$host_cpu" = ia64; then
19286 # AIX 5 now supports IA64 processor
19287 lt_prog_compiler_static_CXX='-Bstatic'
19289 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19293 case $cc_basename in
19295 # Green Hills C++ Compiler
19296 # _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"
19301 case $cc_basename in
19303 lt_prog_compiler_pic_CXX='-KPIC'
19306 # Green Hills C++ Compiler
19307 lt_prog_compiler_pic_CXX='-pic'
19313 freebsd* | dragonfly*)
19314 # FreeBSD uses GNU C++
19316 hpux9* | hpux10* | hpux11*)
19317 case $cc_basename in
19319 lt_prog_compiler_wl_CXX='-Wl,'
19320 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19321 if test "$host_cpu" != ia64; then
19322 lt_prog_compiler_pic_CXX='+Z'
19326 lt_prog_compiler_wl_CXX='-Wl,'
19327 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19333 lt_prog_compiler_pic_CXX='+Z'
19342 # This is c89, which is MS Visual C++ (no shared libs)
19343 # Anyone wants to do a port?
19345 irix5* | irix6* | nonstopux*)
19346 case $cc_basename in
19348 lt_prog_compiler_wl_CXX='-Wl,'
19349 lt_prog_compiler_static_CXX='-non_shared'
19350 # CC pic flag -KPIC is the default.
19356 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19357 case $cc_basename in
19360 lt_prog_compiler_wl_CXX='--backend -Wl,'
19361 lt_prog_compiler_pic_CXX='-fPIC'
19364 # old Intel C++ for x86_64 which still supported -KPIC.
19365 lt_prog_compiler_wl_CXX='-Wl,'
19366 lt_prog_compiler_pic_CXX='-KPIC'
19367 lt_prog_compiler_static_CXX='-static'
19370 # Intel C++, used to be incompatible with GCC.
19371 # ICC 10 doesn't accept -KPIC any more.
19372 lt_prog_compiler_wl_CXX='-Wl,'
19373 lt_prog_compiler_pic_CXX='-fPIC'
19374 lt_prog_compiler_static_CXX='-static'
19377 # Portland Group C++ compiler
19378 lt_prog_compiler_wl_CXX='-Wl,'
19379 lt_prog_compiler_pic_CXX='-fpic'
19380 lt_prog_compiler_static_CXX='-Bstatic'
19384 # Make sure the PIC flag is empty. It appears that all Alpha
19385 # Linux and Compaq Tru64 Unix objects are PIC.
19386 lt_prog_compiler_pic_CXX=
19387 lt_prog_compiler_static_CXX='-non_shared'
19389 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19390 # IBM XL 8.0, 9.0 on PPC and BlueGene
19391 lt_prog_compiler_wl_CXX='-Wl,'
19392 lt_prog_compiler_pic_CXX='-qpic'
19393 lt_prog_compiler_static_CXX='-qstaticlink'
19396 case `$CC -V 2>&1 | sed 5q` in
19399 lt_prog_compiler_pic_CXX='-KPIC'
19400 lt_prog_compiler_static_CXX='-Bstatic'
19401 lt_prog_compiler_wl_CXX='-Qoption ld '
19412 case $cc_basename in
19414 lt_prog_compiler_pic_CXX='-W c,exportall'
19423 # QNX uses GNU C++, but need to define -shared option too, otherwise
19424 # it will coredump.
19425 lt_prog_compiler_pic_CXX='-fPIC -shared'
19427 osf3* | osf4* | osf5*)
19428 case $cc_basename in
19430 lt_prog_compiler_wl_CXX='--backend -Wl,'
19433 # Rational C++ 2.4.1
19434 lt_prog_compiler_pic_CXX='-pic'
19437 # Digital/Compaq C++
19438 lt_prog_compiler_wl_CXX='-Wl,'
19439 # Make sure the PIC flag is empty. It appears that all Alpha
19440 # Linux and Compaq Tru64 Unix objects are PIC.
19441 lt_prog_compiler_pic_CXX=
19442 lt_prog_compiler_static_CXX='-non_shared'
19451 case $cc_basename in
19453 # Sun C++ 4.2, 5.x and Centerline C++
19454 lt_prog_compiler_pic_CXX='-KPIC'
19455 lt_prog_compiler_static_CXX='-Bstatic'
19456 lt_prog_compiler_wl_CXX='-Qoption ld '
19459 # Green Hills C++ Compiler
19460 lt_prog_compiler_pic_CXX='-PIC'
19467 case $cc_basename in
19470 lt_prog_compiler_pic_CXX='-pic'
19471 lt_prog_compiler_static_CXX='-Bstatic'
19475 lt_prog_compiler_pic_CXX='-pic'
19481 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19482 case $cc_basename in
19484 lt_prog_compiler_wl_CXX='-Wl,'
19485 lt_prog_compiler_pic_CXX='-KPIC'
19486 lt_prog_compiler_static_CXX='-Bstatic'
19491 case $cc_basename in
19493 # NonStop-UX NCC 3.20
19494 lt_prog_compiler_pic_CXX='-KPIC'
19503 lt_prog_compiler_can_build_shared_CXX=no
19509 # For platforms which do not support PIC, -DPIC is meaningless:
19511 lt_prog_compiler_pic_CXX=
19514 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19518 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19523 # Check to make sure the PIC flag actually works.
19525 if test -n "$lt_prog_compiler_pic_CXX"; then
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19527 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19528 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19529 $as_echo_n "(cached) " >&6
19531 lt_cv_prog_compiler_pic_works_CXX=no
19532 ac_outfile=conftest.$ac_objext
19533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19534 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19535 # Insert the option either (1) after the last *FLAGS variable, or
19536 # (2) before a word containing "conftest.", or (3) at the end.
19537 # Note that $ac_compile itself does not contain backslashes and begins
19538 # with a dollar sign (not a hyphen), so the echo should work correctly.
19539 # The option is referenced via a variable to avoid confusing sed.
19540 lt_compile=`echo "$ac_compile" | $SED \
19541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19543 -e 's:$: $lt_compiler_flag:'`
19544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19545 (eval "$lt_compile" 2>conftest.err)
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 if (exit $ac_status) && test -s "$ac_outfile"; then
19550 # The compiler can only warn and ignore the option if not recognized
19551 # So say no if there are warnings other than the usual output.
19552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19555 lt_cv_prog_compiler_pic_works_CXX=yes
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19562 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19564 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19565 case $lt_prog_compiler_pic_CXX in
19567 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19570 lt_prog_compiler_pic_CXX=
19571 lt_prog_compiler_can_build_shared_CXX=no
19579 # Check to make sure the static flag actually works.
19581 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19583 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19584 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19585 $as_echo_n "(cached) " >&6
19587 lt_cv_prog_compiler_static_works_CXX=no
19588 save_LDFLAGS="$LDFLAGS"
19589 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19590 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19591 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19592 # The linker can only warn and ignore the option if not recognized
19593 # So say no if there are warnings
19594 if test -s conftest.err; then
19595 # Append any errors to the config.log.
19596 cat conftest.err 1>&5
19597 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19599 if diff conftest.exp conftest.er2 >/dev/null; then
19600 lt_cv_prog_compiler_static_works_CXX=yes
19603 lt_cv_prog_compiler_static_works_CXX=yes
19607 LDFLAGS="$save_LDFLAGS"
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19611 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19613 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19616 lt_prog_compiler_static_CXX=
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19623 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19624 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19625 $as_echo_n "(cached) " >&6
19627 lt_cv_prog_compiler_c_o_CXX=no
19628 $RM -r conftest 2>/dev/null
19632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19634 lt_compiler_flag="-o out/conftest2.$ac_objext"
19635 # Insert the option either (1) after the last *FLAGS variable, or
19636 # (2) before a word containing "conftest.", or (3) at the end.
19637 # Note that $ac_compile itself does not contain backslashes and begins
19638 # with a dollar sign (not a hyphen), so the echo should work correctly.
19639 lt_compile=`echo "$ac_compile" | $SED \
19640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19642 -e 's:$: $lt_compiler_flag:'`
19643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19644 (eval "$lt_compile" 2>out/conftest.err)
19646 cat out/conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19650 # The compiler can only warn and ignore the option if not recognized
19651 # So say no if there are warnings
19652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19655 lt_cv_prog_compiler_c_o_CXX=yes
19660 # SGI C++ compiler will create directory out/ii_files/ for
19661 # template instantiation
19662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19663 $RM out/* && rmdir out
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19670 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19675 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19676 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19677 $as_echo_n "(cached) " >&6
19679 lt_cv_prog_compiler_c_o_CXX=no
19680 $RM -r conftest 2>/dev/null
19684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19686 lt_compiler_flag="-o out/conftest2.$ac_objext"
19687 # Insert the option either (1) after the last *FLAGS variable, or
19688 # (2) before a word containing "conftest.", or (3) at the end.
19689 # Note that $ac_compile itself does not contain backslashes and begins
19690 # with a dollar sign (not a hyphen), so the echo should work correctly.
19691 lt_compile=`echo "$ac_compile" | $SED \
19692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19694 -e 's:$: $lt_compiler_flag:'`
19695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19696 (eval "$lt_compile" 2>out/conftest.err)
19698 cat out/conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19702 # The compiler can only warn and ignore the option if not recognized
19703 # So say no if there are warnings
19704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19707 lt_cv_prog_compiler_c_o_CXX=yes
19712 # SGI C++ compiler will create directory out/ii_files/ for
19713 # template instantiation
19714 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19715 $RM out/* && rmdir out
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19722 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19727 hard_links="nottested"
19728 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19729 # do not overwrite the value of need_locks provided by the user
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19731 $as_echo_n "checking if we can lock with hard links... " >&6; }
19734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19736 ln conftest.a conftest.b 2>&5 || hard_links=no
19737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19739 $as_echo "$hard_links" >&6; }
19740 if test "$hard_links" = no; then
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19742 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19752 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19754 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19757 # If we're using GNU nm, then we don't want the "-C" option.
19758 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19759 # Also, AIX nm treats weak defined symbols like other global defined
19760 # symbols, whereas GNU nm marks them as "W".
19761 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19762 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'
19764 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'
19768 export_symbols_cmds_CXX="$ltdll_cmds"
19770 cygwin* | mingw* | cegcc*)
19771 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'
19774 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19777 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19780 $as_echo "$ld_shlibs_CXX" >&6; }
19781 test "$ld_shlibs_CXX" = no && can_build_shared=no
19783 with_gnu_ld_CXX=$with_gnu_ld
19791 # Do we need to explicitly link libc?
19793 case "x$archive_cmds_need_lc_CXX" in
19795 # Assume -lc should be added
19796 archive_cmds_need_lc_CXX=yes
19798 if test "$enable_shared" = yes && test "$GCC" = yes; then
19799 case $archive_cmds_CXX in
19801 # FIXME: we may have to deal with multi-command sequences.
19804 # Test whether the compiler implicitly links with -lc since on some
19805 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19806 # to ld, don't add -lc before -lgcc.
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19808 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19809 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19810 $as_echo_n "(cached) " >&6
19813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19816 (eval $ac_compile) 2>&5
19818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19819 test $ac_status = 0; } 2>conftest.err; then
19822 libobjs=conftest.$ac_objext
19824 wl=$lt_prog_compiler_wl_CXX
19825 pic_flag=$lt_prog_compiler_pic_CXX
19831 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19832 allow_undefined_flag_CXX=
19833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19834 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19837 test $ac_status = 0; }
19839 lt_cv_archive_cmds_need_lc_CXX=no
19841 lt_cv_archive_cmds_need_lc_CXX=yes
19843 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19845 cat conftest.err 1>&5
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19851 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19852 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19923 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19925 library_names_spec=
19926 libname_spec='lib$name'
19930 postuninstall_cmds=
19934 shlibpath_overrides_runpath=unknown
19936 dynamic_linker="$host_os ld.so"
19937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19938 need_lib_prefix=unknown
19939 hardcode_into_libs=no
19941 # when you set need_version to no, make sure it does not cause -set_version
19942 # flags to be left without arguments
19943 need_version=unknown
19948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19949 shlibpath_var=LIBPATH
19951 # AIX 3 has no versioning support, so we append a major version to the name.
19952 soname_spec='${libname}${release}${shared_ext}$major'
19959 hardcode_into_libs=yes
19960 if test "$host_cpu" = ia64; then
19961 # AIX 5 supports IA64
19962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19963 shlibpath_var=LD_LIBRARY_PATH
19965 # With GCC up to 2.95.x, collect2 would create an import file
19966 # for dependence libraries. The import file would start with
19967 # the line `#! .'. This would cause the generated library to
19968 # depend on `.', always an invalid library. This was fixed in
19969 # development snapshots of GCC prior to 3.0.
19971 aix4 | aix4.[01] | aix4.[01].*)
19972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19974 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19977 can_build_shared=no
19981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19982 # soname into executable. Probably we can add versioning support to
19983 # collect2, so additional links can be useful in future.
19984 if test "$aix_use_runtimelinking" = yes; then
19985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19986 # instead of lib<name>.a to let people know that these are not
19987 # typical AIX shared libraries.
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990 # We preserve .a as extension for shared libraries through AIX4.2
19991 # and later when we are not doing run time linking.
19992 library_names_spec='${libname}${release}.a $libname.a'
19993 soname_spec='${libname}${release}${shared_ext}$major'
19995 shlibpath_var=LIBPATH
20002 # Since July 2007 AmigaOS4 officially supports .so libraries.
20003 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20007 library_names_spec='$libname.ixlibrary $libname.a'
20008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20009 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'
20015 library_names_spec='${libname}${shared_ext}'
20016 dynamic_linker="$host_os ld.so"
20017 shlibpath_var=LIBRARY_PATH
20023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20024 soname_spec='${libname}${release}${shared_ext}$major'
20025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20026 shlibpath_var=LD_LIBRARY_PATH
20027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20029 # the default ld.so.conf also contains /usr/contrib/lib and
20030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20031 # libtool to hard-code these into programs
20034 cygwin* | mingw* | pw32* | cegcc*)
20035 version_type=windows
20040 case $GCC,$host_os in
20041 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20042 library_names_spec='$libname.dll.a'
20043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20044 postinstall_cmds='base_file=`basename \${file}`~
20045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20046 dldir=$destdir/`dirname \$dlpath`~
20047 test -d \$dldir || mkdir -p \$dldir~
20048 $install_prog $dir/$dlname \$dldir/$dlname~
20049 chmod a+x \$dldir/$dlname~
20050 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20051 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20053 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20054 dlpath=$dir/\$dldll~
20056 shlibpath_overrides_runpath=yes
20060 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20061 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20065 # MinGW DLLs use traditional 'lib' prefix
20066 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20069 # pw32 DLLs use 'pw' prefix rather than 'lib'
20070 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20076 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20079 dynamic_linker='Win32 ld.exe'
20080 # FIXME: first we should search . and the directory the executable is in
20084 darwin* | rhapsody*)
20085 dynamic_linker="$host_os dyld"
20086 version_type=darwin
20089 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20090 soname_spec='${libname}${release}${major}$shared_ext'
20091 shlibpath_overrides_runpath=yes
20092 shlibpath_var=DYLD_LIBRARY_PATH
20093 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20103 soname_spec='${libname}${release}${shared_ext}$major'
20104 shlibpath_var=LD_LIBRARY_PATH
20111 freebsd* | dragonfly*)
20112 # DragonFly does not have aout. When/if they implement a new
20113 # versioning mechanism, adjust this.
20114 if test -x /usr/bin/objformat; then
20115 objformat=`/usr/bin/objformat`
20118 freebsd[123]*) objformat=aout ;;
20119 *) objformat=elf ;;
20122 version_type=freebsd-$objformat
20123 case $version_type in
20125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20134 shlibpath_var=LD_LIBRARY_PATH
20137 shlibpath_overrides_runpath=yes
20139 freebsd3.[01]* | freebsdelf3.[01]*)
20140 shlibpath_overrides_runpath=yes
20141 hardcode_into_libs=yes
20143 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20144 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20145 shlibpath_overrides_runpath=no
20146 hardcode_into_libs=yes
20148 *) # from 4.6 on, and DragonFly
20149 shlibpath_overrides_runpath=yes
20150 hardcode_into_libs=yes
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 shlibpath_var=LD_LIBRARY_PATH
20162 hardcode_into_libs=yes
20169 dynamic_linker="$host_os runtime_loader"
20170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20171 soname_spec='${libname}${release}${shared_ext}$major'
20172 shlibpath_var=LIBRARY_PATH
20173 shlibpath_overrides_runpath=yes
20174 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20175 hardcode_into_libs=yes
20178 hpux9* | hpux10* | hpux11*)
20179 # Give a soname corresponding to the major version so that dld.sl refuses to
20180 # link against other versions.
20187 hardcode_into_libs=yes
20188 dynamic_linker="$host_os dld.so"
20189 shlibpath_var=LD_LIBRARY_PATH
20190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20192 soname_spec='${libname}${release}${shared_ext}$major'
20193 if test "X$HPUX_IA64_MODE" = X32; then
20194 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20196 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20202 hardcode_into_libs=yes
20203 dynamic_linker="$host_os dld.sl"
20204 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207 soname_spec='${libname}${release}${shared_ext}$major'
20208 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20213 dynamic_linker="$host_os dld.sl"
20214 shlibpath_var=SHLIB_PATH
20215 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20217 soname_spec='${libname}${release}${shared_ext}$major'
20220 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20221 postinstall_cmds='chmod 555 $lib'
20222 # or fails outright, so override atomically:
20223 install_override_mode=555
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20231 soname_spec='${libname}${release}${shared_ext}$major'
20232 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=no
20235 hardcode_into_libs=yes
20238 irix5* | irix6* | nonstopux*)
20240 nonstopux*) version_type=nonstopux ;;
20242 if test "$lt_cv_prog_gnu_ld" = yes; then
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20253 irix5* | nonstopux*)
20254 libsuff= shlibsuff=
20257 case $LD in # libtool.m4 will add one of these switches to LD
20258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20259 libsuff= shlibsuff= libmagic=32-bit;;
20260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20261 libsuff=32 shlibsuff=N32 libmagic=N32;;
20262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20263 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20264 *) libsuff= shlibsuff= libmagic=never-match;;
20268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20269 shlibpath_overrides_runpath=no
20270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20272 hardcode_into_libs=yes
20275 # No shared lib support for Linux oldld, aout, or coff.
20276 linux*oldld* | linux*aout* | linux*coff*)
20280 # This must be Linux ELF.
20281 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 shlibpath_overrides_runpath=no
20291 # Some binutils ld are patched to set DT_RUNPATH
20292 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20295 lt_cv_shlibpath_overrides_runpath=no
20296 save_LDFLAGS=$LDFLAGS
20297 save_libdir=$libdir
20298 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20299 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h. */
20311 if ac_fn_cxx_try_link "$LINENO"; then :
20312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20313 lt_cv_shlibpath_overrides_runpath=yes
20316 rm -f core conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
20318 LDFLAGS=$save_LDFLAGS
20319 libdir=$save_libdir
20323 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20325 # This implies no fast_install, which is unacceptable.
20326 # Some rework will be needed to allow for fast_install
20327 # before this can be enabled.
20328 hardcode_into_libs=yes
20330 # Append ld.so.conf contents to the search path
20331 if test -f /etc/ld.so.conf; then
20332 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' ' '`
20333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20336 # We used to test for /lib/ld.so.1 and disable shared libraries on
20337 # powerpc, because MkLinux only supported shared libraries with the
20338 # GNU dynamic linker. Since this was broken with cross compilers,
20339 # most powerpc-linux boxes support dynamic linking these days and
20340 # people can always --disable-shared, the test was removed, and we
20341 # assume the GNU/Linux dynamic linker is in use.
20342 dynamic_linker='GNU/Linux ld.so'
20349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352 dynamic_linker='NetBSD (a.out) ld.so'
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 dynamic_linker='NetBSD ld.elf_so'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=yes
20360 hardcode_into_libs=yes
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 shlibpath_overrides_runpath=yes
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375 soname_spec='${libname}${release}${shared_ext}$major'
20376 shlibpath_var=LD_LIBRARY_PATH
20377 shlibpath_overrides_runpath=no
20378 hardcode_into_libs=yes
20379 dynamic_linker='ldqnx.so'
20384 sys_lib_dlsearch_path_spec="/usr/lib"
20386 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20388 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20389 *) need_version=no ;;
20391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20393 shlibpath_var=LD_LIBRARY_PATH
20394 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20396 openbsd2.[89] | openbsd2.[89].*)
20397 shlibpath_overrides_runpath=no
20400 shlibpath_overrides_runpath=yes
20404 shlibpath_overrides_runpath=yes
20409 libname_spec='$name'
20412 library_names_spec='$libname${shared_ext} $libname.a'
20413 dynamic_linker='OS/2 ld.exe'
20414 shlibpath_var=LIBPATH
20417 osf3* | osf4* | osf5*)
20421 soname_spec='${libname}${release}${shared_ext}$major'
20422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20425 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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 shlibpath_var=LD_LIBRARY_PATH
20439 shlibpath_overrides_runpath=yes
20440 hardcode_into_libs=yes
20441 # ldd complains unless libraries are executable
20442 postinstall_cmds='chmod +x $lib'
20447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20449 shlibpath_var=LD_LIBRARY_PATH
20450 shlibpath_overrides_runpath=yes
20451 if test "$with_gnu_ld" = yes; then
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20460 soname_spec='${libname}${release}${shared_ext}$major'
20461 shlibpath_var=LD_LIBRARY_PATH
20462 case $host_vendor in
20464 shlibpath_overrides_runpath=no
20466 runpath_var=LD_RUN_PATH
20474 shlibpath_overrides_runpath=no
20475 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20481 if test -d /usr/nec ;then
20483 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20484 soname_spec='$libname${shared_ext}.$major'
20485 shlibpath_var=LD_LIBRARY_PATH
20489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20490 version_type=freebsd-elf
20493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20494 soname_spec='${libname}${release}${shared_ext}$major'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 shlibpath_overrides_runpath=yes
20497 hardcode_into_libs=yes
20498 if test "$with_gnu_ld" = yes; then
20499 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20501 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20504 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20508 sys_lib_dlsearch_path_spec='/usr/lib'
20512 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20517 shlibpath_var=LD_LIBRARY_PATH
20518 shlibpath_overrides_runpath=no
20519 hardcode_into_libs=yes
20524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525 soname_spec='${libname}${release}${shared_ext}$major'
20526 shlibpath_var=LD_LIBRARY_PATH
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20534 $as_echo "$dynamic_linker" >&6; }
20535 test "$dynamic_linker" = no && can_build_shared=no
20537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20538 if test "$GCC" = yes; then
20539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20542 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20543 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20545 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20546 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20587 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20588 hardcode_action_CXX=
20589 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20590 test -n "$runpath_var_CXX" ||
20591 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20593 # We can hardcode non-existent directories.
20594 if test "$hardcode_direct_CXX" != no &&
20595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20596 # have to relink, otherwise we might link with an installed library
20597 # when we should be linking with a yet-to-be-installed one
20598 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20599 test "$hardcode_minus_L_CXX" != no; then
20600 # Linking always hardcodes the temporary library directory.
20601 hardcode_action_CXX=relink
20603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20604 hardcode_action_CXX=immediate
20607 # We cannot hardcode anything, or else we can only hardcode existing
20609 hardcode_action_CXX=unsupported
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20612 $as_echo "$hardcode_action_CXX" >&6; }
20614 if test "$hardcode_action_CXX" = relink ||
20615 test "$inherit_rpath_CXX" = yes; then
20616 # Fast installation is not supported
20617 enable_fast_install=no
20618 elif test "$shlibpath_overrides_runpath" = yes ||
20619 test "$enable_shared" = no; then
20620 # Fast installation is not necessary
20621 enable_fast_install=needless
20630 fi # test -n "$compiler"
20636 with_gnu_ld=$lt_save_with_gnu_ld
20637 lt_cv_path_LDCXX=$lt_cv_path_LD
20638 lt_cv_path_LD=$lt_save_path_LD
20639 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20640 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20641 fi # test "$_lt_caught_CXX_error" != yes
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20664 # Only expand once:
20670 # Identify the assembler which will work hand-in-glove with the newly
20671 # built GCC, so that we can examine its features. This is the assembler
20672 # which will be driven by the driver program.
20674 # If build != host, and we aren't building gas in-tree, we identify a
20675 # build->target assembler and hope that it will have the same features
20676 # as the host->target assembler we'll be using.
20677 gcc_cv_gas_major_version=
20678 gcc_cv_gas_minor_version=
20679 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20681 if test "${gcc_cv_as+set}" = set; then :
20685 if test -x "$DEFAULT_ASSEMBLER"; then
20686 gcc_cv_as="$DEFAULT_ASSEMBLER"
20687 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20688 && test -f ../gas/Makefile \
20689 && test x$build = x$host; then
20690 gcc_cv_as=../gas/as-new$build_exeext
20691 elif test -x as$build_exeext; then
20692 # Build using assembler in the current directory.
20693 gcc_cv_as=./as$build_exeext
20694 elif test -x $AS_FOR_TARGET; then
20695 gcc_cv_as="$AS_FOR_TARGET"
20697 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20698 set dummy $AS_FOR_TARGET; ac_word=$2
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20700 $as_echo_n "checking for $ac_word... " >&6; }
20701 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20702 $as_echo_n "(cached) " >&6
20706 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20710 for as_dir in $PATH
20713 test -z "$as_dir" && as_dir=.
20714 for ac_exec_ext in '' $ac_executable_extensions; do
20715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20716 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20727 gcc_cv_as=$ac_cv_path_gcc_cv_as
20728 if test -n "$gcc_cv_as"; then
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20730 $as_echo "$gcc_cv_as" >&6; }
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20733 $as_echo "no" >&6; }
20740 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20742 case "$ORIGINAL_AS_FOR_TARGET" in
20743 ./as | ./as$build_exeext) ;;
20744 *) ac_config_files="$ac_config_files as:exec-tool.in"
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20749 $as_echo_n "checking what assembler to use... " >&6; }
20750 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20751 # Single tree build which includes gas. We want to prefer it
20752 # over whatever linker top-level may have detected, since
20753 # we'll use what we're building after installation anyway.
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20755 $as_echo "newly built gas" >&6; }
20757 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20758 for f in $gcc_cv_as_bfd_srcdir/configure \
20759 $gcc_cv_as_gas_srcdir/configure \
20760 $gcc_cv_as_gas_srcdir/configure.in \
20761 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20762 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20763 if test x$gcc_cv_gas_version != x; then
20767 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20768 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20769 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20770 case $gcc_cv_gas_patch_version in
20771 "") gcc_cv_gas_patch_version="0" ;;
20773 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20774 + $gcc_cv_gas_minor_version \) \* 1000 \
20775 + $gcc_cv_gas_patch_version`
20777 in_tree_gas_is_elf=no
20778 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20779 || (grep 'obj_format = multi' ../gas/Makefile \
20780 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20782 in_tree_gas_is_elf=yes
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20786 $as_echo "$gcc_cv_as" >&6; }
20790 # Identify the linker which will work hand-in-glove with the newly
20791 # built GCC, so that we can examine its features. This is the linker
20792 # which will be driven by the driver program.
20794 # If build != host, and we aren't building gas in-tree, we identify a
20795 # build->target linker and hope that it will have the same features
20796 # as the host->target linker we'll be using.
20797 gcc_cv_gld_major_version=
20798 gcc_cv_gld_minor_version=
20799 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20800 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20802 if test "${gcc_cv_ld+set}" = set; then :
20806 if test -x "$DEFAULT_LINKER"; then
20807 gcc_cv_ld="$DEFAULT_LINKER"
20808 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20809 && test -f ../ld/Makefile \
20810 && test x$build = x$host; then
20811 gcc_cv_ld=../ld/ld-new$build_exeext
20812 elif test -x collect-ld$build_exeext; then
20813 # Build using linker in the current directory.
20814 gcc_cv_ld=./collect-ld$build_exeext
20815 elif test -x $LD_FOR_TARGET; then
20816 gcc_cv_ld="$LD_FOR_TARGET"
20818 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20819 set dummy $LD_FOR_TARGET; ac_word=$2
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20821 $as_echo_n "checking for $ac_word... " >&6; }
20822 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20823 $as_echo_n "(cached) " >&6
20827 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20831 for as_dir in $PATH
20834 test -z "$as_dir" && as_dir=.
20835 for ac_exec_ext in '' $ac_executable_extensions; do
20836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20837 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20848 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20849 if test -n "$gcc_cv_ld"; then
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20851 $as_echo "$gcc_cv_ld" >&6; }
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20854 $as_echo "no" >&6; }
20861 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20862 PLUGIN_LD=`basename $gcc_cv_ld`
20864 # Check whether --with-plugin-ld was given.
20865 if test "${with_plugin_ld+set}" = set; then :
20866 withval=$with_plugin_ld; if test x"$withval" != x; then
20867 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20868 PLUGIN_LD="$withval"
20874 cat >>confdefs.h <<_ACEOF
20875 #define PLUGIN_LD "$PLUGIN_LD"
20879 # Check to see if we are using gold instead of ld
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20881 $as_echo_n "checking whether we are using gold... " >&6; }
20883 if test x$gcc_cv_ld != x; then
20884 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20885 | grep "GNU gold" > /dev/null; then
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20890 $as_echo "$ld_is_gold" >&6; }
20892 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20894 case "$ORIGINAL_LD_FOR_TARGET" in
20895 ./collect-ld | ./collect-ld$build_exeext) ;;
20896 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20901 $as_echo_n "checking what linker to use... " >&6; }
20902 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20903 # Single tree build which includes ld. We want to prefer it
20904 # over whatever linker top-level may have detected, since
20905 # we'll use what we're building after installation anyway.
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20907 $as_echo "newly built ld" >&6; }
20909 in_tree_ld_is_elf=no
20910 if (grep 'EMUL = .*elf' ../ld/Makefile \
20911 || grep 'EMUL = .*linux' ../ld/Makefile \
20912 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20913 in_tree_ld_is_elf=yes
20915 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
20917 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20918 if test x$gcc_cv_gld_version != x; then
20922 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20923 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20926 $as_echo "$gcc_cv_ld" >&6; }
20930 # Figure out what nm we will be using.
20931 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20932 if test "${gcc_cv_nm+set}" = set; then :
20936 if test -f $gcc_cv_binutils_srcdir/configure.in \
20937 && test -f ../binutils/Makefile \
20938 && test x$build = x$host; then
20939 gcc_cv_nm=../binutils/nm-new$build_exeext
20940 elif test -x nm$build_exeext; then
20941 gcc_cv_nm=./nm$build_exeext
20942 elif test -x $NM_FOR_TARGET; then
20943 gcc_cv_nm="$NM_FOR_TARGET"
20945 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20946 set dummy $NM_FOR_TARGET; ac_word=$2
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20948 $as_echo_n "checking for $ac_word... " >&6; }
20949 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20950 $as_echo_n "(cached) " >&6
20954 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20958 for as_dir in $PATH
20961 test -z "$as_dir" && as_dir=.
20962 for ac_exec_ext in '' $ac_executable_extensions; do
20963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20964 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20975 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20976 if test -n "$gcc_cv_nm"; then
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20978 $as_echo "$gcc_cv_nm" >&6; }
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981 $as_echo "no" >&6; }
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20989 $as_echo_n "checking what nm to use... " >&6; }
20990 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20991 # Single tree build which includes binutils.
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20993 $as_echo "newly built nm" >&6; }
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20997 $as_echo "$gcc_cv_nm" >&6; }
21001 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21003 case "$ORIGINAL_NM_FOR_TARGET" in
21004 ./nm | ./nm$build_exeext) ;;
21005 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21010 # Figure out what objdump we will be using.
21011 if test "${gcc_cv_objdump+set}" = set; then :
21015 if test -f $gcc_cv_binutils_srcdir/configure.in \
21016 && test -f ../binutils/Makefile \
21017 && test x$build = x$host; then
21018 # Single tree build which includes binutils.
21019 gcc_cv_objdump=../binutils/objdump$build_exeext
21020 elif test -x objdump$build_exeext; then
21021 gcc_cv_objdump=./objdump$build_exeext
21022 elif test -x $OBJDUMP_FOR_TARGET; then
21023 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21025 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21026 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21028 $as_echo_n "checking for $ac_word... " >&6; }
21029 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21030 $as_echo_n "(cached) " >&6
21032 case $gcc_cv_objdump in
21034 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21038 for as_dir in $PATH
21041 test -z "$as_dir" && as_dir=.
21042 for ac_exec_ext in '' $ac_executable_extensions; do
21043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21044 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21055 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21056 if test -n "$gcc_cv_objdump"; then
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21058 $as_echo "$gcc_cv_objdump" >&6; }
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061 $as_echo "no" >&6; }
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21069 $as_echo_n "checking what objdump to use... " >&6; }
21070 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21071 # Single tree build which includes binutils.
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21073 $as_echo "newly built objdump" >&6; }
21074 elif test x$gcc_cv_objdump = x; then
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21076 $as_echo "not found" >&6; }
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21079 $as_echo "$gcc_cv_objdump" >&6; }
21082 # Figure out what readelf we will be using.
21083 if test "${gcc_cv_readelf+set}" = set; then :
21087 if test -f $gcc_cv_binutils_srcdir/configure.in \
21088 && test -f ../binutils/Makefile \
21089 && test x$build = x$host; then
21090 # Single tree build which includes binutils.
21091 gcc_cv_readelf=../binutils/readelf$build_exeext
21092 elif test -x readelf$build_exeext; then
21093 gcc_cv_readelf=./readelf$build_exeext
21095 # Extract the first word of "readelf", so it can be a program name with args.
21096 set dummy readelf; ac_word=$2
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21098 $as_echo_n "checking for $ac_word... " >&6; }
21099 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21100 $as_echo_n "(cached) " >&6
21102 case $gcc_cv_readelf in
21104 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21108 for as_dir in $PATH
21111 test -z "$as_dir" && as_dir=.
21112 for ac_exec_ext in '' $ac_executable_extensions; do
21113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21114 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21125 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21126 if test -n "$gcc_cv_readelf"; then
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21128 $as_echo "$gcc_cv_readelf" >&6; }
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21131 $as_echo "no" >&6; }
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21139 $as_echo_n "checking what readelf to use... " >&6; }
21140 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21141 # Single tree build which includes binutils.
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21143 $as_echo "newly built readelf" >&6; }
21144 elif test x$gcc_cv_readelf = x; then
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21146 $as_echo "not found" >&6; }
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21149 $as_echo "$gcc_cv_readelf" >&6; }
21152 # Figure out what assembler alignment features are present.
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21154 $as_echo_n "checking assembler flags... " >&6; }
21155 if test "${gcc_cv_as_flags+set}" = set; then :
21156 $as_echo_n "(cached) " >&6
21159 i[34567]86-*-linux*)
21160 gcc_cv_as_flags="--32"
21163 gcc_cv_as_flags=" "
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21168 $as_echo "$gcc_cv_as_flags" >&6; }
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21171 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21172 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21173 $as_echo_n "(cached) " >&6
21175 gcc_cv_as_balign_and_p2align=no
21176 if test $in_tree_gas = yes; then
21177 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21178 then gcc_cv_as_balign_and_p2align=yes
21180 elif test x$gcc_cv_as != x; then
21182 .p2align 2' > conftest.s
21183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21185 (eval $ac_try) 2>&5
21187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21188 test $ac_status = 0; }; }
21190 gcc_cv_as_balign_and_p2align=yes
21192 echo "configure: failed program was" >&5
21195 rm -f conftest.o conftest.s
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21199 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21200 if test $gcc_cv_as_balign_and_p2align = yes; then
21202 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21207 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21208 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21209 $as_echo_n "(cached) " >&6
21211 gcc_cv_as_max_skip_p2align=no
21212 if test $in_tree_gas = yes; then
21213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21214 then gcc_cv_as_max_skip_p2align=yes
21216 elif test x$gcc_cv_as != x; then
21217 echo '.p2align 4,,7' > conftest.s
21218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21220 (eval $ac_try) 2>&5
21222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21223 test $ac_status = 0; }; }
21225 gcc_cv_as_max_skip_p2align=yes
21227 echo "configure: failed program was" >&5
21230 rm -f conftest.o conftest.s
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21234 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21235 if test $gcc_cv_as_max_skip_p2align = yes; then
21237 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21242 $as_echo_n "checking assembler for .literal16... " >&6; }
21243 if test "${gcc_cv_as_literal16+set}" = set; then :
21244 $as_echo_n "(cached) " >&6
21246 gcc_cv_as_literal16=no
21247 if test $in_tree_gas = yes; then
21248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21249 then gcc_cv_as_literal16=yes
21251 elif test x$gcc_cv_as != x; then
21252 echo '.literal16' > conftest.s
21253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21255 (eval $ac_try) 2>&5
21257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21258 test $ac_status = 0; }; }
21260 gcc_cv_as_literal16=yes
21262 echo "configure: failed program was" >&5
21265 rm -f conftest.o conftest.s
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21269 $as_echo "$gcc_cv_as_literal16" >&6; }
21270 if test $gcc_cv_as_literal16 = yes; then
21272 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21277 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21278 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21279 $as_echo_n "(cached) " >&6
21281 gcc_cv_as_subsection_m1=no
21282 if test $in_tree_gas = yes; then
21283 if test $in_tree_gas_is_elf = yes \
21284 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21285 then gcc_cv_as_subsection_m1=yes
21287 elif test x$gcc_cv_as != x; then
21288 echo 'conftest_label1: .word 0
21290 conftest_label2: .word 0
21291 .previous' > conftest.s
21292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21294 (eval $ac_try) 2>&5
21296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21297 test $ac_status = 0; }; }
21299 if test x$gcc_cv_nm != x; then
21300 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21301 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21302 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21304 else gcc_cv_as_subsection_m1=yes
21306 rm -f conftest.nm1 conftest.nm2
21309 echo "configure: failed program was" >&5
21312 rm -f conftest.o conftest.s
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21316 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21317 if test $gcc_cv_as_subsection_m1 = yes; then
21319 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21324 $as_echo_n "checking assembler for .weak... " >&6; }
21325 if test "${gcc_cv_as_weak+set}" = set; then :
21326 $as_echo_n "(cached) " >&6
21329 if test $in_tree_gas = yes; then
21330 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21331 then gcc_cv_as_weak=yes
21333 elif test x$gcc_cv_as != x; then
21334 echo ' .weak foobar' > conftest.s
21335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21337 (eval $ac_try) 2>&5
21339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21340 test $ac_status = 0; }; }
21344 echo "configure: failed program was" >&5
21347 rm -f conftest.o conftest.s
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21351 $as_echo "$gcc_cv_as_weak" >&6; }
21352 if test $gcc_cv_as_weak = yes; then
21354 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21359 $as_echo_n "checking assembler for .weakref... " >&6; }
21360 if test "${gcc_cv_as_weakref+set}" = set; then :
21361 $as_echo_n "(cached) " >&6
21363 gcc_cv_as_weakref=no
21364 if test $in_tree_gas = yes; then
21365 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21366 then gcc_cv_as_weakref=yes
21368 elif test x$gcc_cv_as != x; then
21369 echo ' .weakref foobar, barfnot' > conftest.s
21370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21372 (eval $ac_try) 2>&5
21374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21375 test $ac_status = 0; }; }
21377 gcc_cv_as_weakref=yes
21379 echo "configure: failed program was" >&5
21382 rm -f conftest.o conftest.s
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21386 $as_echo "$gcc_cv_as_weakref" >&6; }
21387 if test $gcc_cv_as_weakref = yes; then
21389 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21394 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21395 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21396 $as_echo_n "(cached) " >&6
21398 gcc_cv_as_nsubspa_comdat=no
21399 if test $in_tree_gas = yes; then
21400 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21401 then gcc_cv_as_nsubspa_comdat=yes
21403 elif test x$gcc_cv_as != x; then
21404 echo ' .SPACE $TEXT$
21405 .NSUBSPA $CODE$,COMDAT' > conftest.s
21406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21408 (eval $ac_try) 2>&5
21410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21411 test $ac_status = 0; }; }
21413 gcc_cv_as_nsubspa_comdat=yes
21415 echo "configure: failed program was" >&5
21418 rm -f conftest.o conftest.s
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21422 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21423 if test $gcc_cv_as_nsubspa_comdat = yes; then
21425 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21429 # .hidden needs to be supported in both the assembler and the linker,
21430 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21431 # This is irritatingly difficult to feature test for; we have to check the
21432 # date string after the version number. If we've got an in-tree
21433 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21435 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21437 $as_echo_n "checking assembler for .hidden... " >&6; }
21438 if test "${gcc_cv_as_hidden+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21441 gcc_cv_as_hidden=no
21442 if test $in_tree_gas = yes; then
21443 if test $in_tree_gas_is_elf = yes \
21444 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21445 then gcc_cv_as_hidden=yes
21447 elif test x$gcc_cv_as != x; then
21448 echo ' .hidden foobar
21449 foobar:' > conftest.s
21450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21452 (eval $ac_try) 2>&5
21454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21455 test $ac_status = 0; }; }
21458 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21459 # STV_HIDDEN, so disable .hidden support if so.
21460 case "${target}" in
21462 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21463 cat > conftest.s <<EOF
21468 .set default,hidden
21470 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21471 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21472 grep '\.hidden default' > /dev/null; then
21473 gcc_cv_as_hidden=no
21475 gcc_cv_as_hidden=yes
21478 # Assume bug is present if objdump is missing.
21479 gcc_cv_as_hidden=no
21483 gcc_cv_as_hidden=yes
21487 echo "configure: failed program was" >&5
21490 rm -f conftest.o conftest.s
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21494 $as_echo "$gcc_cv_as_hidden" >&6; }
21497 # gnu_indirect_function type is an extension proposed at
21498 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21499 # selection of function implementation
21500 # Check whether --enable-gnu-indirect-function was given.
21501 if test "${enable_gnu_indirect_function+set}" = set; then :
21502 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21504 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21505 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21508 enable_gnu_indirect_function="$default_gnu_indirect_function"
21511 if test x$enable_gnu_indirect_function = xyes; then
21513 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21517 if test $in_tree_ld != yes ; then
21518 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21519 if test x"$ld_is_gold" = xyes; then
21520 gcc_cv_ld_hidden=yes
21521 elif echo "$ld_ver" | grep GNU > /dev/null; then
21522 ld_vers=`echo $ld_ver | sed -n \
21523 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21524 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'`
21525 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21526 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21527 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21529 case "${target}" in
21532 # Solaris 2 ld -V output looks like this for a regular version:
21534 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21536 # but test versions add stuff at the end:
21538 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21540 ld_ver=`$gcc_cv_ld -V 2>&1`
21541 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21542 ld_vers=`echo $ld_ver | sed -n \
21543 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21544 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21545 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21553 $as_echo_n "checking linker for .hidden support... " >&6; }
21554 if test "${gcc_cv_ld_hidden+set}" = set; then :
21555 $as_echo_n "(cached) " >&6
21557 if test $in_tree_ld = yes ; then
21558 gcc_cv_ld_hidden=no
21559 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 \
21560 && test $in_tree_ld_is_elf = yes; then
21561 gcc_cv_ld_hidden=yes
21564 gcc_cv_ld_hidden=yes
21565 if echo "$ld_ver" | grep GNU > /dev/null; then
21566 if test 0"$ld_date" -lt 20020404; then
21567 if test -n "$ld_date"; then
21568 # If there was date string, but was earlier than 2002-04-04, fail
21569 gcc_cv_ld_hidden=no
21570 elif test -z "$ld_vers"; then
21571 # If there was no date string nor ld version number, something is wrong
21572 gcc_cv_ld_hidden=no
21574 test -z "$ld_vers_patch" && ld_vers_patch=0
21575 if test "$ld_vers_major" -lt 2; then
21576 gcc_cv_ld_hidden=no
21577 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21578 gcc_cv_ld_hidden="no"
21579 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21580 gcc_cv_ld_hidden=no
21585 case "${target}" in
21586 hppa64*-*-hpux* | ia64*-*-hpux*)
21587 gcc_cv_ld_hidden=yes
21590 # .hidden support was backported to Solaris 8, starting with ld
21592 if test "$ld_vers_minor" -ge 276; then
21593 gcc_cv_ld_hidden=yes
21595 gcc_cv_ld_hidden=no
21598 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21599 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21600 # .symbolic was only added in Solaris 9 12/02.
21601 gcc_cv_ld_hidden=yes
21604 gcc_cv_ld_hidden=no
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21611 $as_echo "$gcc_cv_ld_hidden" >&6; }
21612 libgcc_visibility=no
21615 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21616 libgcc_visibility=yes
21618 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21623 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21624 gcc_cv_ld_ro_rw_mix=unknown
21625 if test $in_tree_ld = yes ; then
21626 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 \
21627 && test $in_tree_ld_is_elf = yes; then
21628 gcc_cv_ld_ro_rw_mix=read-write
21630 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21631 echo '.section myfoosect, "a"' > conftest1.s
21632 echo '.section myfoosect, "aw"' > conftest2.s
21633 echo '.byte 1' >> conftest2.s
21634 echo '.section myfoosect, "a"' > conftest3.s
21635 echo '.byte 0' >> conftest3.s
21636 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21637 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21638 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21639 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21640 conftest2.o conftest3.o > /dev/null 2>&1; then
21641 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21642 | sed -e '/myfoosect/!d' -e N`
21643 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21644 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21645 gcc_cv_ld_ro_rw_mix=read-only
21647 gcc_cv_ld_ro_rw_mix=read-write
21651 rm -f conftest.* conftest[123].*
21653 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21655 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21659 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21661 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21663 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21664 if test "${gcc_cv_as_leb128+set}" = set; then :
21665 $as_echo_n "(cached) " >&6
21667 gcc_cv_as_leb128=no
21668 if test $in_tree_gas = yes; then
21669 if test $in_tree_gas_is_elf = yes \
21670 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21671 then gcc_cv_as_leb128=yes
21673 elif test x$gcc_cv_as != x; then
21680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21682 (eval $ac_try) 2>&5
21684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21685 test $ac_status = 0; }; }
21687 # GAS versions before 2.11 do not support uleb128,
21688 # despite appearing to.
21689 # ??? There exists an elf-specific test that will crash
21690 # the assembler. Perhaps it's better to figure out whether
21691 # arbitrary sections are supported and try the test.
21692 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21693 if echo "$as_ver" | grep GNU > /dev/null; then
21694 as_vers=`echo $as_ver | sed -n \
21695 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21696 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21697 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21698 if test $as_major -eq 2 && test $as_minor -lt 11
21700 else gcc_cv_as_leb128=yes
21704 echo "configure: failed program was" >&5
21707 rm -f conftest.o conftest.s
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21711 $as_echo "$gcc_cv_as_leb128" >&6; }
21712 if test $gcc_cv_as_leb128 = yes; then
21714 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21718 # Check if we have assembler support for unwind directives.
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21720 $as_echo_n "checking assembler for cfi directives... " >&6; }
21721 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21722 $as_echo_n "(cached) " >&6
21724 gcc_cv_as_cfi_directive=no
21725 if test x$gcc_cv_as != x; then
21731 .cfi_escape 1, 2, 3, 4, 5
21732 .cfi_endproc' > conftest.s
21733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21735 (eval $ac_try) 2>&5
21737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21738 test $ac_status = 0; }; }
21742 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21743 # read-only and read-write sections, we need to make sure that the
21744 # assembler used emits read-write .eh_frame sections.
21745 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21746 if test "x$gcc_cv_objdump" != x; then
21747 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21748 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21749 gcc_cv_as_cfi_directive=no
21752 i?86-*-solaris2.1[0-9]*)
21753 # On Solaris/x86, make sure that GCC and gas agree on using
21754 # read-only .eh_frame sections for 64-bit.
21755 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21756 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21757 sed -e /.eh_frame/!d -e N | \
21758 grep READONLY > /dev/null; then
21759 gcc_cv_as_cfi_directive=yes
21761 gcc_cv_as_cfi_directive=no
21765 gcc_cv_as_cfi_directive=yes
21770 # no objdump, err on the side of caution
21771 gcc_cv_as_cfi_directive=no
21774 gcc_cv_as_cfi_directive=yes
21778 gcc_cv_as_cfi_directive=yes
21782 echo "configure: failed program was" >&5
21785 rm -f conftest.o conftest.s
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21789 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21791 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21793 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21794 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21795 $as_echo_n "(cached) " >&6
21797 gcc_cv_as_cfi_advance_working=no
21798 if test x$gcc_cv_as != x; then
21801 .cfi_adjust_cfa_offset 64
21803 .cfi_adjust_cfa_offset 128
21804 .cfi_endproc' > conftest.s
21805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21807 (eval $ac_try) 2>&5
21809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21810 test $ac_status = 0; }; }
21813 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21814 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21815 gcc_cv_as_cfi_advance_working=yes
21819 echo "configure: failed program was" >&5
21822 rm -f conftest.o conftest.s
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21826 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21829 # no objdump, err on the side of caution
21830 gcc_cv_as_cfi_advance_working=no
21834 cat >>confdefs.h <<_ACEOF
21835 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21836 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21842 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21843 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21844 $as_echo_n "(cached) " >&6
21846 gcc_cv_as_cfi_personality_directive=no
21847 if test x$gcc_cv_as != x; then
21850 .cfi_personality 0, symbol
21851 .cfi_endproc' > conftest.s
21852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21854 (eval $ac_try) 2>&5
21856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21857 test $ac_status = 0; }; }
21859 gcc_cv_as_cfi_personality_directive=yes
21861 echo "configure: failed program was" >&5
21864 rm -f conftest.o conftest.s
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21868 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21871 cat >>confdefs.h <<_ACEOF
21872 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21873 then echo 1; else echo 0; fi`
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21878 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21879 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21880 $as_echo_n "(cached) " >&6
21882 gcc_cv_as_cfi_sections_directive=no
21883 if test x$gcc_cv_as != x; then
21885 .cfi_sections .debug_frame, .eh_frame
21887 .cfi_endproc' > conftest.s
21888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890 (eval $ac_try) 2>&5
21892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893 test $ac_status = 0; }; }
21896 win32 | pe | cygwin* | mingw32* | uwin*)
21897 # Need to check that we generated the correct relocation for the
21898 # .debug_frame section. This was fixed for binutils 2.21.
21899 gcc_cv_as_cfi_sections_directive=no
21900 if test "x$gcc_cv_objdump" != x; then
21901 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21902 grep secrel > /dev/null; then
21903 gcc_cv_as_cfi_sections_directive=yes
21908 gcc_cv_as_cfi_sections_directive=yes
21912 echo "configure: failed program was" >&5
21915 rm -f conftest.o conftest.s
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21919 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21923 cat >>confdefs.h <<_ACEOF
21924 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21925 then echo 1; else echo 0; fi`
21929 # GAS versions up to and including 2.11.0 may mis-optimize
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21932 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21933 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21934 $as_echo_n "(cached) " >&6
21936 gcc_cv_as_eh_frame=no
21937 if test $in_tree_gas = yes; then
21938 if test $in_tree_gas_is_elf = yes \
21939 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21940 then gcc_cv_as_eh_frame=yes
21942 elif test x$gcc_cv_as != x; then
21949 .section .eh_frame,"aw",@progbits
21951 .4byte .LECIE1-.LSCIE1
21965 .4byte .LEFDE1-.LASFDE1
21967 .4byte .LASFDE1-__FRAME_BEGIN__
21974 .LEFDE1:' > conftest.s
21975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21977 (eval $ac_try) 2>&5
21979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21980 test $ac_status = 0; }; }
21982 cat > conftest.lit <<EOF
21983 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21984 0010 01000000 12000000 18000000 00000000 ................
21985 0020 08000000 04080000 0044 .........D
21987 cat > conftest.big <<EOF
21988 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21989 0010 00000001 00000012 00000018 00000000 ................
21990 0020 00000008 04000000 0844 .........D
21992 # If the assembler didn't choke, and we can objdump,
21993 # and we got the correct data, then succeed.
21994 # The text in the here-document typically retains its unix-style line
21995 # endings, while the output of objdump will use host line endings.
21996 # Therefore, use diff -b for the comparisons.
21997 if test x$gcc_cv_objdump != x \
21998 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21999 | tail -3 > conftest.got \
22000 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22001 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22003 gcc_cv_as_eh_frame=yes
22004 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22006 (eval $ac_try) 2>&5
22008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22009 test $ac_status = 0; }; }; then
22010 gcc_cv_as_eh_frame=buggy
22012 # Uh oh, what do we do now?
22013 gcc_cv_as_eh_frame=no
22016 echo "configure: failed program was" >&5
22019 rm -f conftest.o conftest.s
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22023 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22026 if test $gcc_cv_as_eh_frame = buggy; then
22028 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22033 $as_echo_n "checking assembler for section merging support... " >&6; }
22034 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22035 $as_echo_n "(cached) " >&6
22037 gcc_cv_as_shf_merge=no
22038 if test $in_tree_gas = yes; then
22039 if test $in_tree_gas_is_elf = yes \
22040 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22041 then gcc_cv_as_shf_merge=yes
22043 elif test x$gcc_cv_as != x; then
22044 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22047 (eval $ac_try) 2>&5
22049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22050 test $ac_status = 0; }; }
22052 gcc_cv_as_shf_merge=yes
22054 echo "configure: failed program was" >&5
22057 rm -f conftest.o conftest.s
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22061 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22063 if test $gcc_cv_as_shf_merge = no; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22065 $as_echo_n "checking assembler for section merging support... " >&6; }
22066 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22069 gcc_cv_as_shf_merge=no
22070 if test $in_tree_gas = yes; then
22071 if test $in_tree_gas_is_elf = yes \
22072 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22073 then gcc_cv_as_shf_merge=yes
22075 elif test x$gcc_cv_as != x; then
22076 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22079 (eval $ac_try) 2>&5
22081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082 test $ac_status = 0; }; }
22084 gcc_cv_as_shf_merge=yes
22086 echo "configure: failed program was" >&5
22089 rm -f conftest.o conftest.s
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22093 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22097 cat >>confdefs.h <<_ACEOF
22098 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22103 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22104 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22105 $as_echo_n "(cached) " >&6
22107 gcc_cv_as_comdat_group=no
22108 if test $in_tree_gas = yes; then
22109 if test $in_tree_gas_is_elf = yes \
22110 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22111 then gcc_cv_as_comdat_group=yes
22113 elif test x$gcc_cv_as != x; then
22114 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22117 (eval $ac_try) 2>&5
22119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22120 test $ac_status = 0; }; }
22122 gcc_cv_as_comdat_group=yes
22124 echo "configure: failed program was" >&5
22127 rm -f conftest.o conftest.s
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22131 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22133 if test $gcc_cv_as_comdat_group = yes; then
22134 gcc_cv_as_comdat_group_percent=no
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22137 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22138 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22139 $as_echo_n "(cached) " >&6
22141 gcc_cv_as_comdat_group_percent=no
22142 if test $in_tree_gas = yes; then
22143 if test $in_tree_gas_is_elf = yes \
22144 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22145 then gcc_cv_as_comdat_group_percent=yes
22147 elif test x$gcc_cv_as != x; then
22148 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22151 (eval $ac_try) 2>&5
22153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22154 test $ac_status = 0; }; }
22156 gcc_cv_as_comdat_group_percent=yes
22158 echo "configure: failed program was" >&5
22161 rm -f conftest.o conftest.s
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22165 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22168 if test x"$ld_is_gold" = xyes; then
22170 elif test $in_tree_ld = yes ; then
22172 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 \
22173 && test $in_tree_ld_is_elf = yes; then
22176 elif echo "$ld_ver" | grep GNU > /dev/null; then
22178 if test 0"$ld_date" -lt 20050308; then
22179 if test -n "$ld_date"; then
22180 # If there was date string, but was earlier than 2005-03-08, fail
22182 elif test "$ld_vers_major" -lt 2; then
22184 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22189 case "${target}" in
22190 *-*-solaris2.1[1-9]*)
22191 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22192 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22195 # FIXME: Maybe need to refine later when COMDAT group support with
22196 # Sun as is implemented.
22197 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22204 # Assume linkers other than GNU ld don't support COMDAT group.
22209 # Allow overriding the automatic COMDAT group tests above.
22210 # Check whether --enable-comdat was given.
22211 if test "${enable_comdat+set}" = set; then :
22212 enableval=$enable_comdat; comdat_group="$enable_comdat"
22215 if test $comdat_group = no; then
22216 gcc_cv_as_comdat_group=no
22217 gcc_cv_as_comdat_group_percent=no
22220 cat >>confdefs.h <<_ACEOF
22221 #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`
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22226 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22227 if test "${gcc_cv_as_discriminator+set}" = set; then :
22228 $as_echo_n "(cached) " >&6
22230 gcc_cv_as_discriminator=no
22231 if test $in_tree_gas = yes; then
22232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22233 then gcc_cv_as_discriminator=yes
22235 elif test x$gcc_cv_as != x; then
22238 .loc 1 1 0 discriminator 1' > conftest.s
22239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22241 (eval $ac_try) 2>&5
22243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22244 test $ac_status = 0; }; }
22246 gcc_cv_as_discriminator=yes
22248 echo "configure: failed program was" >&5
22251 rm -f conftest.o conftest.s
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22255 $as_echo "$gcc_cv_as_discriminator" >&6; }
22256 if test $gcc_cv_as_discriminator = yes; then
22258 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22262 # Thread-local storage - the check is heavily parameterized.
22270 .section ".tdata","awT",@progbits
22273 ldq $27,__tls_get_addr($29) !literal!1
22274 lda $16,foo($29) !tlsgd!1
22275 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22276 ldq $27,__tls_get_addr($29) !literal!2
22277 lda $16,foo($29) !tlsldm!2
22278 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22279 ldq $1,foo($29) !gotdtprel
22280 ldah $2,foo($29) !dtprelhi
22281 lda $3,foo($2) !dtprello
22282 lda $4,foo($29) !dtprel
22283 ldq $1,foo($29) !gottprel
22284 ldah $2,foo($29) !tprelhi
22285 lda $3,foo($2) !tprello
22286 lda $4,foo($29) !tprel'
22289 tls_as_opt=--fatal-warnings
22291 cris-*-*|crisv32-*-*)
22293 .section ".tdata","awT",@progbits
22300 tls_as_opt=--fatal-warnings
22304 .section ".tdata","awT",@progbits
22307 call #gettlsoff(x)'
22316 .section ".tdata","awT",@progbits
22320 addil LT%foo-$tls_gdidx$,gp
22321 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22324 addil LT%foo-$tls_ldidx$,gp
22326 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22327 addil LR%foo-$tls_dtpoff$,%ret0
22328 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22330 addil LT%foo-$tls_ieoff$,gp
22331 ldw RT%foo-$tls_ieoff$(%r1),%t2
22334 addil LR%foo-$tls_leoff$,%t1
22335 ldo RR%foo-$tls_leoff$(%r1),%t2'
22338 tls_as_opt=--fatal-warnings
22342 .section ".tdata","awT",%progbits
22345 .word foo(gottpoff)
22355 i[34567]86-*-solaris2.*)
22357 tga_func=___tls_get_addr
22363 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22365 .section .tdata,"awt",@progbits'
22369 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22373 .section ".tdata","awT",@progbits'
22376 tls_as_opt="--fatal-warnings"
22378 conftest_s="$conftest_s
22382 leal foo@tlsgd(,%ebx,1), %eax
22383 leal foo@tlsldm(%ebx), %eax
22384 leal foo@dtpoff(%eax), %edx
22385 movl foo@gottpoff(%ebx), %eax
22386 subl foo@gottpoff(%ebx), %eax
22387 addl foo@gotntpoff(%ebx), %eax
22388 movl foo@indntpoff, %eax
22389 movl \$foo@tpoff, %eax
22390 subl \$foo@tpoff, %eax
22391 leal foo@ntpoff(%ecx), %eax"
22395 .section ".tdata","awT",@progbits
22399 leaq foo@TLSGD(%rip), %rdi
22400 leaq foo@TLSLD(%rip), %rdi
22401 leaq foo@DTPOFF(%rax), %rdx
22402 movq foo@GOTTPOFF(%rip), %rax
22403 movq $foo@TPOFF, %rax'
22406 tls_as_opt=--fatal-warnings
22410 .section ".tdata","awT",@progbits
22413 addl r16 = @ltoff(@dtpmod(foo#)), gp
22414 addl r17 = @ltoff(@dtprel(foo#)), gp
22415 addl r18 = @ltoff(@tprel(foo#)), gp
22416 addl r19 = @dtprel(foo#), gp
22417 adds r21 = @dtprel(foo#), r13
22418 movl r23 = @dtprel(foo#)
22419 addl r20 = @tprel(foo#), gp
22420 adds r22 = @tprel(foo#), r13
22421 movl r24 = @tprel(foo#)'
22424 tls_as_opt=--fatal-warnings
22428 .section .tdata,"awT",@progbits
22432 addiu $4, $28, %tlsgd(x)
22433 addiu $4, $28, %tlsldm(x)
22434 lui $4, %dtprel_hi(x)
22435 addiu $4, $4, %dtprel_lo(x)
22436 lw $4, %gottprel(x)($28)
22437 lui $4, %tprel_hi(x)
22438 addiu $4, $4, %tprel_lo(x)'
22441 tls_as_opt='-32 --fatal-warnings'
22445 .section .tdata,"awT",@progbits
22450 move.l x@TLSGD(%a5),%a0
22451 move.l x@TLSLDM(%a5),%a0
22452 move.l x@TLSLDO(%a5),%a0
22453 move.l x@TLSIE(%a5),%a0
22454 move.l x@TLSLE(%a5),%a0'
22457 tls_as_opt='--fatal-warnings'
22461 .section ".tdata","awT",@progbits
22469 addi 3,31,ld0@got@tlsgd
22471 addi 3,31,x1@got@tlsld
22474 addis 9,3,x2@dtprel@ha
22475 addi 9,9,x2@dtprel@l
22476 lwz 9,x3@got@tprel(31)
22479 addis 9,2,x2@tprel@ha
22480 addi 9,9,x2@tprel@l'
22483 tls_as_opt="-a32 --fatal-warnings"
22487 .section ".tdata","awT",@progbits
22495 addi 3,2,ld0@got@tlsgd
22501 addi 3,2,x1@got@tlsld
22507 addis 9,3,x2@dtprel@ha
22508 addi 9,9,x2@dtprel@l
22511 ld 9,x3@got@dtprel(2)
22517 tls_as_opt="-a64 --fatal-warnings"
22521 .section ".tdata","awT",@progbits
22528 .long foo@GOTNTPOFF
22529 .long foo@INDNTPOFF
22530 l %r1,foo@GOTNTPOFF(%r12)
22531 l %r1,0(%r1):tls_load:foo
22532 bas %r14,0(%r1,%r13):tls_gdcall:foo
22533 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22536 tls_as_opt="-m31 --fatal-warnings"
22540 .section ".tdata","awT",@progbits
22547 .quad foo@GOTNTPOFF
22548 lg %r1,foo@GOTNTPOFF(%r12)
22549 larl %r1,foo@INDNTPOFF
22550 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22551 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22554 tls_as_opt="-m64 -Aesame --fatal-warnings"
22556 sh-*-* | sh[34]-*-*)
22558 .section ".tdata","awT",@progbits
22568 tls_as_opt=--fatal-warnings
22572 sparc*-sun-solaris2.*)
22574 tga_func=__tls_get_addr
22580 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22582 .section ".tdata",#alloc,#write,#tls'
22587 .section ".tdata","awT",@progbits'
22590 tls_as_opt="-32 --fatal-warnings"
22592 conftest_s="$conftest_s
22595 sethi %tgd_hi22(foo), %o0
22596 add %o0, %tgd_lo10(foo), %o1
22597 add %l7, %o1, %o0, %tgd_add(foo)
22598 call __tls_get_addr, %tgd_call(foo)
22599 sethi %tldm_hi22(foo), %l1
22600 add %l1, %tldm_lo10(foo), %l2
22601 add %l7, %l2, %o0, %tldm_add(foo)
22602 call __tls_get_addr, %tldm_call(foo)
22603 sethi %tldo_hix22(foo), %l3
22604 xor %l3, %tldo_lox10(foo), %l4
22605 add %o0, %l4, %l5, %tldo_add(foo)
22606 sethi %tie_hi22(foo), %o3
22607 add %o3, %tie_lo10(foo), %o3
22608 ld [%l7 + %o3], %o2, %tie_ld(foo)
22609 add %g7, %o2, %o4, %tie_add(foo)
22610 sethi %tle_hix22(foo), %l1
22611 xor %l1, %tle_lox10(foo), %o5
22612 ld [%g7 + %o5], %o1"
22616 .section ".tdata","awT",@progbits
22619 movi a8, foo@TLSFUNC
22620 movi a10, foo@TLSARG
22621 callx8.tls a8, foo@TLSCALL'
22627 if test "x$enable_tls" = xno ; then
22628 : # TLS explicitly disabled.
22629 elif test "x$enable_tls" = xyes ; then
22630 set_have_as_tls=yes # TLS explicitly enabled.
22631 elif test -z "$tls_first_major"; then
22632 : # If we don't have a check, assume no support.
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22635 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22636 if test "${gcc_cv_as_tls+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22640 if test $in_tree_gas = yes; then
22641 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22642 then gcc_cv_as_tls=yes
22644 elif test x$gcc_cv_as != x; then
22645 echo "$conftest_s" > conftest.s
22646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22648 (eval $ac_try) 2>&5
22650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22651 test $ac_status = 0; }; }
22655 echo "configure: failed program was" >&5
22658 rm -f conftest.o conftest.s
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22662 $as_echo "$gcc_cv_as_tls" >&6; }
22663 if test $gcc_cv_as_tls = yes; then
22664 set_have_as_tls=yes
22669 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22670 # with TLS support are in use, native TLS cannot work.
22674 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22675 # gld with TLS support are in use, native TLS cannot work.
22678 # TLS was introduced in the Solaris 9 FCS release and backported to
22679 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22680 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22681 # ld and GCC don't support any longer.
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22684 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22686 # Check ld and ld.so.1 TLS support.
22687 if echo "$ld_ver" | grep GNU > /dev/null; then
22688 # Assume all interesting versions of GNU ld have TLS support.
22689 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22693 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22695 min_tls_ld_vers_minor=280
22697 # Solaris 8/SPARC ld has TLS support since version 1.272.
22698 sparc*-*-solaris2.8)
22699 min_tls_ld_vers_minor=272
22701 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22703 min_tls_ld_vers_minor=374
22705 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22706 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22707 min_tls_ld_vers_minor=343
22710 if test "$ld_vers_major" -gt 1 || \
22711 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22718 $as_echo "$ld_tls_support" >&6; }
22721 save_LDFLAGS="$LDFLAGS"
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22726 $as_echo_n "checking alternate thread library... " >&6; }
22728 # TLS support was backported to Solaris 8 patches, but only lives in
22729 # the alternate thread library which became the default in Solaris 9.
22730 # We want to always use that, irrespective of TLS support.
22732 # Take multilib subdir into account. There's no spec to handle
22733 # this. The 64 symlink exists since Solaris 8.
22734 lwp_dir=/usr/lib/lwp
22735 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22736 LDFLAGS="-L$lwp_dir -R$lwp_dir"
22743 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22745 cat >>confdefs.h <<_ACEOF
22746 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22750 $as_echo "$lwp_dir" >&6; }
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22753 $as_echo_n "checking library containing $tga_func... " >&6; }
22754 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22755 # (32-bit x86) only lived in libthread, so check for that. Keep
22756 # set_have_as_tls if found, disable if not.
22757 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22759 $as_echo_n "checking for library containing $tga_func... " >&6; }
22760 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22761 $as_echo_n "(cached) " >&6
22763 ac_func_search_save_LIBS=$LIBS
22764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765 /* end confdefs.h. */
22767 /* Override any GCC internal prototype to avoid an error.
22768 Use char because int might match the return type of a GCC
22769 builtin and then its argument prototype would still apply. */
22777 return $tga_func ();
22782 for ac_lib in '' thread; do
22783 if test -z "$ac_lib"; then
22784 ac_res="none required"
22787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22789 if ac_fn_c_try_link "$LINENO"; then :
22790 eval "$as_ac_Search=\$ac_res"
22792 rm -f core conftest.err conftest.$ac_objext \
22794 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22798 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22801 eval "$as_ac_Search=no"
22803 rm conftest.$ac_ext
22804 LIBS=$ac_func_search_save_LIBS
22806 eval ac_res=\$$as_ac_Search
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22808 $as_echo "$ac_res" >&6; }
22809 eval ac_res=\$$as_ac_Search
22810 if test "$ac_res" != no; then :
22811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22817 # Clear LIBS if we cannot support TLS.
22818 if test $set_have_as_tls = no; then
22821 # Always define LIB_TLS_SPEC, even without TLS support.
22823 cat >>confdefs.h <<_ACEOF
22824 #define LIB_TLS_SPEC "$LIBS"
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22828 $as_echo "$LIBS" >&6; }
22831 LDFLAGS="$save_LDFLAGS"
22834 if test $set_have_as_tls = yes ; then
22836 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22840 # Target-specific assembler checks.
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22843 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22844 gcc_cv_ld_static_dynamic=no
22845 if test $in_tree_ld = yes ; then
22846 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
22847 gcc_cv_ld_static_dynamic=yes
22849 elif test x$gcc_cv_ld != x; then
22850 # Check if linker supports -Bstatic/-Bdynamic option
22851 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22852 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22853 gcc_cv_ld_static_dynamic=yes
22856 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22858 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22862 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22864 if test x"$demangler_in_ld" = xyes; then
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22866 $as_echo_n "checking linker --demangle support... " >&6; }
22867 gcc_cv_ld_demangle=no
22868 if test $in_tree_ld = yes; then
22869 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 \
22870 gcc_cv_ld_demangle=yes
22872 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22873 # Check if the GNU linker supports --demangle option
22874 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22875 gcc_cv_ld_demangle=yes
22878 if test x"$gcc_cv_ld_demangle" = xyes; then
22880 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22884 $as_echo "$gcc_cv_ld_demangle" >&6; }
22888 # All TARGET_ABI_OSF targets.
22889 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22891 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22892 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22893 $as_echo_n "(cached) " >&6
22895 gcc_cv_as_alpha_explicit_relocs=no
22896 if test $in_tree_gas = yes; then
22897 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22898 then gcc_cv_as_alpha_explicit_relocs=yes
22900 elif test x$gcc_cv_as != x; then
22901 echo ' .set nomacro
22903 extbl $3, $2, $3 !lituse_bytoff!1
22904 ldq $2, a($29) !literal!1
22905 ldq $4, b($29) !literal!2
22906 ldq_u $3, 0($2) !lituse_base!1
22907 ldq $27, f($29) !literal!5
22908 jsr $26, ($27), f !lituse_jsr!5
22909 ldah $29, 0($26) !gpdisp!3
22910 lda $0, c($29) !gprel
22911 ldah $1, d($29) !gprelhigh
22912 lda $1, d($1) !gprellow
22913 lda $29, 0($29) !gpdisp!3' > conftest.s
22914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22916 (eval $ac_try) 2>&5
22918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22919 test $ac_status = 0; }; }
22921 gcc_cv_as_alpha_explicit_relocs=yes
22923 echo "configure: failed program was" >&5
22926 rm -f conftest.o conftest.s
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22930 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22931 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22933 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22937 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22938 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22941 gcc_cv_as_alpha_jsrdirect_relocs=no
22942 if test $in_tree_gas = yes; then
22943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22944 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22946 elif test x$gcc_cv_as != x; then
22947 echo ' .set nomacro
22949 ldq $27, a($29) !literal!1
22950 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22953 (eval $ac_try) 2>&5
22955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22956 test $ac_status = 0; }; }
22958 gcc_cv_as_alpha_jsrdirect_relocs=yes
22960 echo "configure: failed program was" >&5
22963 rm -f conftest.o conftest.s
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22967 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22968 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22970 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22977 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22978 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22979 $as_echo_n "(cached) " >&6
22981 gcc_cv_as_cris_no_mul_bug=no
22982 if test $in_tree_gas = yes; then
22983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22984 then gcc_cv_as_cris_no_mul_bug=yes
22986 elif test x$gcc_cv_as != x; then
22987 echo '.text' > conftest.s
22988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22990 (eval $ac_try) 2>&5
22992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993 test $ac_status = 0; }; }
22995 gcc_cv_as_cris_no_mul_bug=yes
22997 echo "configure: failed program was" >&5
23000 rm -f conftest.o conftest.s
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23004 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23005 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23007 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23014 $as_echo_n "checking assembler for .register... " >&6; }
23015 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23016 $as_echo_n "(cached) " >&6
23018 gcc_cv_as_sparc_register_op=no
23019 if test x$gcc_cv_as != x; then
23020 echo '.register %g2, #scratch' > conftest.s
23021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23023 (eval $ac_try) 2>&5
23025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23026 test $ac_status = 0; }; }
23028 gcc_cv_as_sparc_register_op=yes
23030 echo "configure: failed program was" >&5
23033 rm -f conftest.o conftest.s
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23037 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23038 if test $gcc_cv_as_sparc_register_op = yes; then
23040 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23045 $as_echo_n "checking assembler for -relax option... " >&6; }
23046 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23047 $as_echo_n "(cached) " >&6
23049 gcc_cv_as_sparc_relax=no
23050 if test x$gcc_cv_as != x; then
23051 echo '.text' > conftest.s
23052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23054 (eval $ac_try) 2>&5
23056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23057 test $ac_status = 0; }; }
23059 gcc_cv_as_sparc_relax=yes
23061 echo "configure: failed program was" >&5
23064 rm -f conftest.o conftest.s
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23068 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23069 if test $gcc_cv_as_sparc_relax = yes; then
23071 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23076 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23077 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23078 $as_echo_n "(cached) " >&6
23080 gcc_cv_as_sparc_gotdata_op=no
23081 if test x$gcc_cv_as != x; then
23086 sethi %gdop_hix22(foo), %g1
23087 xor %g1, %gdop_lox10(foo), %g1
23088 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23091 (eval $ac_try) 2>&5
23093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23094 test $ac_status = 0; }; }
23096 if test x$gcc_cv_ld != x \
23097 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23098 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23099 if test x$gcc_cv_objdump != x; then
23100 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23101 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23102 gcc_cv_as_sparc_gotdata_op=no
23104 gcc_cv_as_sparc_gotdata_op=yes
23108 gcc_cv_as_sparc_gotdata_op=yes
23113 echo "configure: failed program was" >&5
23116 rm -f conftest.o conftest.s
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23120 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23121 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23123 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23128 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23129 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23130 $as_echo_n "(cached) " >&6
23132 gcc_cv_as_sparc_ua_pcrel=no
23133 if test x$gcc_cv_as != x; then
23140 .uaword %r_disp32(foo)' > conftest.s
23141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23143 (eval $ac_try) 2>&5
23145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23146 test $ac_status = 0; }; }
23148 if test x$gcc_cv_ld != x \
23149 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23150 gcc_cv_as_sparc_ua_pcrel=yes
23154 echo "configure: failed program was" >&5
23157 rm -f conftest.o conftest.s
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23161 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23162 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23164 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23168 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23169 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23170 $as_echo_n "(cached) " >&6
23172 gcc_cv_as_sparc_ua_pcrel_hidden=no
23173 if test x$gcc_cv_as != x; then
23177 .uaword %r_disp32(foo)
23178 .byte 0x32, 0x33, 0x34
23182 .skip 4' > conftest.s
23183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23185 (eval $ac_try) 2>&5
23187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23188 test $ac_status = 0; }; }
23190 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23191 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23192 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23193 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23194 if $gcc_cv_objdump -R conftest 2> /dev/null \
23195 | grep 'DISP32' > /dev/null 2>&1; then
23198 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23203 echo "configure: failed program was" >&5
23206 rm -f conftest.o conftest.s
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23210 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23211 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23213 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23217 fi # unaligned pcrel relocs
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23220 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23221 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23222 $as_echo_n "(cached) " >&6
23224 gcc_cv_as_sparc_offsetable_lo10=no
23225 if test x$gcc_cv_as != x; then
23227 or %g1, %lo(ab) + 12, %g1
23228 or %g1, %lo(ab + 12), %g1' > conftest.s
23229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23231 (eval $ac_try) 2>&5
23233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23234 test $ac_status = 0; }; }
23236 if test x$gcc_cv_objdump != x \
23237 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23238 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23239 gcc_cv_as_sparc_offsetable_lo10=yes
23242 echo "configure: failed program was" >&5
23245 rm -f conftest.o conftest.s
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23249 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23250 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23252 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23257 i[34567]86-*-* | x86_64-*-*)
23260 # Full C++ conformance when using a shared libstdc++-v3 requires some
23261 # support from the Cygwin DLL, which in more recent versions exports
23262 # wrappers to aid in interposing and redirecting operators new, delete,
23263 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23264 # are configuring for a version of Cygwin that exports the wrappers.
23265 if test x$host = x$target; then
23266 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23267 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23268 gcc_ac_cygwin_dll_wrappers=yes
23270 gcc_ac_cygwin_dll_wrappers=no
23274 # Can't check presence of libc functions during cross-compile, so
23275 # we just have to assume we're building for an up-to-date target.
23276 gcc_ac_cygwin_dll_wrappers=yes
23279 cat >>confdefs.h <<_ACEOF
23280 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23285 cygwin* | pe | mingw32*)
23286 # Recent binutils allows the three-operand form of ".comm" on PE. This
23287 # definition is used unconditionally to initialise the default state of
23288 # the target option variable that governs usage of the feature.
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23290 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23291 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23292 $as_echo_n "(cached) " >&6
23294 gcc_cv_as_comm_has_align=no
23295 if test $in_tree_gas = yes; then
23296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23297 then gcc_cv_as_comm_has_align=yes
23299 elif test x$gcc_cv_as != x; then
23300 echo '.comm foo,1,32' > conftest.s
23301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23303 (eval $ac_try) 2>&5
23305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23306 test $ac_status = 0; }; }
23308 gcc_cv_as_comm_has_align=yes
23310 echo "configure: failed program was" >&5
23313 rm -f conftest.o conftest.s
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23317 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23320 cat >>confdefs.h <<_ACEOF
23321 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23324 # Used for DWARF 2 in PE
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23326 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23327 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23328 $as_echo_n "(cached) " >&6
23330 gcc_cv_as_ix86_pe_secrel32=no
23331 if test $in_tree_gas = yes; then
23332 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23333 then gcc_cv_as_ix86_pe_secrel32=yes
23335 elif test x$gcc_cv_as != x; then
23339 .secrel32 foo' > conftest.s
23340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 if test x$gcc_cv_ld != x \
23348 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23349 gcc_cv_as_ix86_pe_secrel32=yes
23353 echo "configure: failed program was" >&5
23356 rm -f conftest.o conftest.s
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23360 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23361 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23363 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23366 # Test if the assembler supports the extended form of the .section
23367 # directive that specifies section alignment. LTO support uses this,
23368 # but normally only after installation, so we warn but don't fail the
23369 # configure if LTO is enabled but the assembler does not support it.
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23371 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23372 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23373 $as_echo_n "(cached) " >&6
23375 gcc_cv_as_section_has_align=no
23376 if test $in_tree_gas = yes; then
23377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23378 then gcc_cv_as_section_has_align=yes
23380 elif test x$gcc_cv_as != x; then
23381 echo '.section lto_test,"dr0"' > conftest.s
23382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23384 (eval $ac_try) 2>&5
23386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23387 test $ac_status = 0; }; }
23389 gcc_cv_as_section_has_align=yes
23391 echo "configure: failed program was" >&5
23394 rm -f conftest.o conftest.s
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23398 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23400 if test x$gcc_cv_as_section_has_align != xyes; then
23401 case ",$enable_languages," in
23403 { $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
23404 $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;}
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23412 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23413 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23414 $as_echo_n "(cached) " >&6
23416 gcc_cv_as_ix86_filds=no
23417 if test x$gcc_cv_as != x; then
23418 echo 'filds mem; fists mem' > conftest.s
23419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23421 (eval $ac_try) 2>&5
23423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; }
23426 gcc_cv_as_ix86_filds=yes
23428 echo "configure: failed program was" >&5
23431 rm -f conftest.o conftest.s
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23435 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23436 if test $gcc_cv_as_ix86_filds = yes; then
23438 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23443 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23444 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23445 $as_echo_n "(cached) " >&6
23447 gcc_cv_as_ix86_fildq=no
23448 if test x$gcc_cv_as != x; then
23449 echo 'fildq mem; fistpq mem' > conftest.s
23450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23452 (eval $ac_try) 2>&5
23454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455 test $ac_status = 0; }; }
23457 gcc_cv_as_ix86_fildq=yes
23459 echo "configure: failed program was" >&5
23462 rm -f conftest.o conftest.s
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23466 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23467 if test $gcc_cv_as_ix86_fildq = yes; then
23469 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23474 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23475 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23476 $as_echo_n "(cached) " >&6
23478 gcc_cv_as_ix86_cmov_sun_syntax=no
23479 if test x$gcc_cv_as != x; then
23480 echo 'cmovl.l %edx, %eax' > conftest.s
23481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23483 (eval $ac_try) 2>&5
23485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23486 test $ac_status = 0; }; }
23488 gcc_cv_as_ix86_cmov_sun_syntax=yes
23490 echo "configure: failed program was" >&5
23493 rm -f conftest.o conftest.s
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23497 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23498 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23500 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23505 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23506 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23507 $as_echo_n "(cached) " >&6
23509 gcc_cv_as_ix86_ffreep=no
23510 if test x$gcc_cv_as != x; then
23511 echo 'ffreep %st(1)' > conftest.s
23512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23514 (eval $ac_try) 2>&5
23516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23517 test $ac_status = 0; }; }
23519 gcc_cv_as_ix86_ffreep=yes
23521 echo "configure: failed program was" >&5
23524 rm -f conftest.o conftest.s
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23528 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23529 if test $gcc_cv_as_ix86_ffreep = yes; then
23531 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23536 $as_echo_n "checking assembler for .quad directive... " >&6; }
23537 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23538 $as_echo_n "(cached) " >&6
23540 gcc_cv_as_ix86_quad=no
23541 if test x$gcc_cv_as != x; then
23542 echo '.quad 0' > conftest.s
23543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23545 (eval $ac_try) 2>&5
23547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23548 test $ac_status = 0; }; }
23550 gcc_cv_as_ix86_quad=yes
23552 echo "configure: failed program was" >&5
23555 rm -f conftest.o conftest.s
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23559 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23560 if test $gcc_cv_as_ix86_quad = yes; then
23562 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23567 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23568 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23569 $as_echo_n "(cached) " >&6
23571 gcc_cv_as_ix86_sahf=no
23572 if test x$gcc_cv_as != x; then
23575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23577 (eval $ac_try) 2>&5
23579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23580 test $ac_status = 0; }; }
23582 gcc_cv_as_ix86_sahf=yes
23584 echo "configure: failed program was" >&5
23587 rm -f conftest.o conftest.s
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23591 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23592 if test $gcc_cv_as_ix86_sahf = yes; then
23594 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23599 $as_echo_n "checking assembler for swap suffix... " >&6; }
23600 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23601 $as_echo_n "(cached) " >&6
23603 gcc_cv_as_ix86_swap=no
23604 if test x$gcc_cv_as != x; then
23605 echo 'movl.s %esp, %ebp' > conftest.s
23606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23608 (eval $ac_try) 2>&5
23610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23611 test $ac_status = 0; }; }
23613 gcc_cv_as_ix86_swap=yes
23615 echo "configure: failed program was" >&5
23618 rm -f conftest.o conftest.s
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23622 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23623 if test $gcc_cv_as_ix86_swap = yes; then
23625 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23630 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23631 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23632 $as_echo_n "(cached) " >&6
23634 gcc_cv_as_ix86_diff_sect_delta=no
23635 if test x$gcc_cv_as != x; then
23636 echo '.section .rodata
23642 .L2: nop' > conftest.s
23643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23645 (eval $ac_try) 2>&5
23647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23648 test $ac_status = 0; }; }
23650 gcc_cv_as_ix86_diff_sect_delta=yes
23652 echo "configure: failed program was" >&5
23655 rm -f conftest.o conftest.s
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23659 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23660 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23662 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23666 # These two are used unconditionally by i386.[ch]; it is to be defined
23667 # to 1 if the feature is present, 0 otherwise.
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23669 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23670 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23671 $as_echo_n "(cached) " >&6
23673 gcc_cv_as_ix86_gotoff_in_data=no
23674 if test $in_tree_gas = yes; then
23675 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23676 then gcc_cv_as_ix86_gotoff_in_data=yes
23678 elif test x$gcc_cv_as != x; then
23683 .long .L0@GOTOFF' > conftest.s
23684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23686 (eval $ac_try) 2>&5
23688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23689 test $ac_status = 0; }; }
23691 gcc_cv_as_ix86_gotoff_in_data=yes
23693 echo "configure: failed program was" >&5
23696 rm -f conftest.o conftest.s
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23700 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23703 cat >>confdefs.h <<_ACEOF
23704 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23709 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23710 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23711 $as_echo_n "(cached) " >&6
23713 gcc_cv_as_ix86_rep_lock_prefix=no
23714 if test x$gcc_cv_as != x; then
23716 lock addl %edi, (%eax,%esi)
23717 lock orl $0, (%esp)' > conftest.s
23718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23720 (eval $ac_try) 2>&5
23722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23723 test $ac_status = 0; }; }
23725 gcc_cv_as_ix86_rep_lock_prefix=yes
23727 echo "configure: failed program was" >&5
23730 rm -f conftest.o conftest.s
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23734 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23735 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23737 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23745 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23746 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23747 $as_echo_n "(cached) " >&6
23749 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23750 if test $in_tree_gas = yes; then
23751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23752 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23754 elif test x$gcc_cv_as != x; then
23756 addl r15 = @ltoffx(x#), gp
23758 ld8.mov r16 = [r15], x#' > conftest.s
23759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23761 (eval $ac_try) 2>&5
23763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23764 test $ac_status = 0; }; }
23766 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23768 echo "configure: failed program was" >&5
23771 rm -f conftest.o conftest.s
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23775 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23776 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23778 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23786 *-*-aix*) conftest_s=' .machine "pwr5"
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23791 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23792 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23793 $as_echo_n "(cached) " >&6
23795 gcc_cv_as_machine_directive=no
23796 if test x$gcc_cv_as != x; then
23797 echo ' .machine ppc7400' > conftest.s
23798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23800 (eval $ac_try) 2>&5
23802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23803 test $ac_status = 0; }; }
23805 gcc_cv_as_machine_directive=yes
23807 echo "configure: failed program was" >&5
23810 rm -f conftest.o conftest.s
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23814 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23816 if test x$gcc_cv_as_machine_directive != xyes; then
23817 echo "*** This target requires an assembler supporting \".machine\"" >&2
23818 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23819 test x$build = x$target && exit 1
23823 *) conftest_s=' .machine power4
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23829 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23830 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23831 $as_echo_n "(cached) " >&6
23833 gcc_cv_as_powerpc_mfcrf=no
23834 if test $in_tree_gas = yes; then
23835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23836 then gcc_cv_as_powerpc_mfcrf=yes
23838 elif test x$gcc_cv_as != x; then
23839 echo "$conftest_s" > conftest.s
23840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23842 (eval $ac_try) 2>&5
23844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23845 test $ac_status = 0; }; }
23847 gcc_cv_as_powerpc_mfcrf=yes
23849 echo "configure: failed program was" >&5
23852 rm -f conftest.o conftest.s
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23856 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23857 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23859 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23864 *-*-aix*) conftest_s=' .machine "pwr5"
23867 *) conftest_s=' .machine power5
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23873 $as_echo_n "checking assembler for popcntb support... " >&6; }
23874 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23875 $as_echo_n "(cached) " >&6
23877 gcc_cv_as_powerpc_popcntb=no
23878 if test $in_tree_gas = yes; then
23879 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23880 then gcc_cv_as_powerpc_popcntb=yes
23882 elif test x$gcc_cv_as != x; then
23883 echo "$conftest_s" > conftest.s
23884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23886 (eval $ac_try) 2>&5
23888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889 test $ac_status = 0; }; }
23891 gcc_cv_as_powerpc_popcntb=yes
23893 echo "configure: failed program was" >&5
23896 rm -f conftest.o conftest.s
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23900 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23901 if test $gcc_cv_as_powerpc_popcntb = yes; then
23903 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23908 *-*-aix*) conftest_s=' .machine "pwr5x"
23911 *) conftest_s=' .machine power5
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23917 $as_echo_n "checking assembler for fp round support... " >&6; }
23918 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23919 $as_echo_n "(cached) " >&6
23921 gcc_cv_as_powerpc_fprnd=no
23922 if test $in_tree_gas = yes; then
23923 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23924 then gcc_cv_as_powerpc_fprnd=yes
23926 elif test x$gcc_cv_as != x; then
23927 echo "$conftest_s" > 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_powerpc_fprnd=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_powerpc_fprnd" >&5
23944 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23945 if test $gcc_cv_as_powerpc_fprnd = yes; then
23947 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23952 *-*-aix*) conftest_s=' .machine "pwr6"
23955 *) conftest_s=' .machine power6
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23961 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23962 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23963 $as_echo_n "(cached) " >&6
23965 gcc_cv_as_powerpc_mfpgpr=no
23966 if test $in_tree_gas = yes; then
23967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23968 then gcc_cv_as_powerpc_mfpgpr=yes
23970 elif test x$gcc_cv_as != x; then
23971 echo "$conftest_s" > conftest.s
23972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23974 (eval $ac_try) 2>&5
23976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23977 test $ac_status = 0; }; }
23979 gcc_cv_as_powerpc_mfpgpr=yes
23981 echo "configure: failed program was" >&5
23984 rm -f conftest.o conftest.s
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23988 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23989 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23991 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23996 *-*-aix*) conftest_s=' .csect .text[PR]
23998 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24002 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24003 *) conftest_s=' .text
24005 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24009 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24010 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24011 $as_echo_n "(cached) " >&6
24013 gcc_cv_as_powerpc_rel16=no
24014 if test $in_tree_gas = yes; then
24015 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24016 then gcc_cv_as_powerpc_rel16=yes
24018 elif test x$gcc_cv_as != x; then
24019 echo "$conftest_s" > conftest.s
24020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24022 (eval $ac_try) 2>&5
24024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24025 test $ac_status = 0; }; }
24027 gcc_cv_as_powerpc_rel16=yes
24029 echo "configure: failed program was" >&5
24032 rm -f conftest.o conftest.s
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24036 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24037 if test $gcc_cv_as_powerpc_rel16 = yes; then
24039 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24044 *-*-aix*) conftest_s=' .machine "pwr6"
24047 *) conftest_s=' .machine power6
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24053 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24054 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24055 $as_echo_n "(cached) " >&6
24057 gcc_cv_as_powerpc_cmpb=no
24058 if test $in_tree_gas = yes; then
24059 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24060 then gcc_cv_as_powerpc_cmpb=yes
24062 elif test x$gcc_cv_as != x; then
24063 echo "$conftest_s" > conftest.s
24064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066 (eval $ac_try) 2>&5
24068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069 test $ac_status = 0; }; }
24071 gcc_cv_as_powerpc_cmpb=yes
24073 echo "configure: failed program was" >&5
24076 rm -f conftest.o conftest.s
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24080 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24081 if test $gcc_cv_as_powerpc_cmpb = yes; then
24083 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24088 *-*-aix*) conftest_s=' .machine "pwr6"
24091 *) conftest_s=' .machine power6
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24097 $as_echo_n "checking assembler for decimal float support... " >&6; }
24098 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24101 gcc_cv_as_powerpc_dfp=no
24102 if test $in_tree_gas = yes; then
24103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24104 then gcc_cv_as_powerpc_dfp=yes
24106 elif test x$gcc_cv_as != x; then
24107 echo "$conftest_s" > conftest.s
24108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24110 (eval $ac_try) 2>&5
24112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24113 test $ac_status = 0; }; }
24115 gcc_cv_as_powerpc_dfp=yes
24117 echo "configure: failed program was" >&5
24120 rm -f conftest.o conftest.s
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24124 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24125 if test $gcc_cv_as_powerpc_dfp = yes; then
24127 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24132 *-*-aix*) conftest_s=' .machine "pwr7"
24135 *) conftest_s=' .machine power7
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24141 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24142 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24143 $as_echo_n "(cached) " >&6
24145 gcc_cv_as_powerpc_vsx=no
24146 if test $in_tree_gas = yes; then
24147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24148 then gcc_cv_as_powerpc_vsx=yes
24150 elif test x$gcc_cv_as != x; then
24151 echo "$conftest_s" > conftest.s
24152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24154 (eval $ac_try) 2>&5
24156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24157 test $ac_status = 0; }; }
24159 gcc_cv_as_powerpc_vsx=yes
24161 echo "configure: failed program was" >&5
24164 rm -f conftest.o conftest.s
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24168 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24169 if test $gcc_cv_as_powerpc_vsx = yes; then
24171 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24176 *-*-aix*) conftest_s=' .machine "pwr7"
24179 *) conftest_s=' .machine power7
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24185 $as_echo_n "checking assembler for popcntd support... " >&6; }
24186 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24187 $as_echo_n "(cached) " >&6
24189 gcc_cv_as_powerpc_popcntd=no
24190 if test $in_tree_gas = yes; then
24191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24192 then gcc_cv_as_powerpc_popcntd=yes
24194 elif test x$gcc_cv_as != x; then
24195 echo "$conftest_s" > conftest.s
24196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24198 (eval $ac_try) 2>&5
24200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24201 test $ac_status = 0; }; }
24203 gcc_cv_as_powerpc_popcntd=yes
24205 echo "configure: failed program was" >&5
24208 rm -f conftest.o conftest.s
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24212 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24213 if test $gcc_cv_as_powerpc_popcntd = yes; then
24215 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24220 *-*-aix*) conftest_s=' .csect .text[PR]
24222 *) conftest_s=' .text
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24227 $as_echo_n "checking assembler for lwsync support... " >&6; }
24228 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24229 $as_echo_n "(cached) " >&6
24231 gcc_cv_as_powerpc_lwsync=no
24232 if test $in_tree_gas = yes; then
24233 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24234 then gcc_cv_as_powerpc_lwsync=yes
24236 elif test x$gcc_cv_as != x; then
24237 echo "$conftest_s" > conftest.s
24238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24240 (eval $ac_try) 2>&5
24242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24243 test $ac_status = 0; }; }
24245 gcc_cv_as_powerpc_lwsync=yes
24247 echo "configure: failed program was" >&5
24250 rm -f conftest.o conftest.s
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24254 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24255 if test $gcc_cv_as_powerpc_lwsync = yes; then
24257 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24262 *-*-aix*) conftest_s=' .machine "476"
24265 *) conftest_s=' .machine "476"
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24271 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24272 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24273 $as_echo_n "(cached) " >&6
24275 gcc_cv_as_powerpc_dci=no
24276 if test $in_tree_gas = yes; then
24277 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24278 then gcc_cv_as_powerpc_dci=yes
24280 elif test x$gcc_cv_as != x; then
24281 echo "$conftest_s" > conftest.s
24282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24284 (eval $ac_try) 2>&5
24286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24287 test $ac_status = 0; }; }
24289 gcc_cv_as_powerpc_dci=yes
24291 echo "configure: failed program was" >&5
24294 rm -f conftest.o conftest.s
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24298 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24299 if test $gcc_cv_as_powerpc_dci = yes; then
24301 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24306 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24307 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24308 $as_echo_n "(cached) " >&6
24310 gcc_cv_as_powerpc_gnu_attribute=no
24311 if test $in_tree_gas = yes; then
24312 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24313 then gcc_cv_as_powerpc_gnu_attribute=yes
24315 elif test x$gcc_cv_as != x; then
24316 echo '.gnu_attribute 4,1' > conftest.s
24317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24319 (eval $ac_try) 2>&5
24321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24322 test $ac_status = 0; }; }
24324 gcc_cv_as_powerpc_gnu_attribute=yes
24326 echo "configure: failed program was" >&5
24329 rm -f conftest.o conftest.s
24332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24333 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24334 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24336 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24341 $as_echo_n "checking assembler for tls marker support... " >&6; }
24342 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24343 $as_echo_n "(cached) " >&6
24345 gcc_cv_as_powerpc_tls_markers=no
24346 if test $in_tree_gas = yes; then
24347 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24348 then gcc_cv_as_powerpc_tls_markers=yes
24350 elif test x$gcc_cv_as != x; then
24351 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24354 (eval $ac_try) 2>&5
24356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24357 test $ac_status = 0; }; }
24359 gcc_cv_as_powerpc_tls_markers=yes
24361 echo "configure: failed program was" >&5
24364 rm -f conftest.o conftest.s
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24368 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24369 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24371 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24378 $as_echo_n "checking assembler for .ref support... " >&6; }
24379 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24380 $as_echo_n "(cached) " >&6
24382 gcc_cv_as_aix_ref=no
24383 if test $in_tree_gas = yes; then
24384 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24387 elif test x$gcc_cv_as != x; then
24388 echo ' .csect stuff[rw]
24394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24396 (eval $ac_try) 2>&5
24398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24399 test $ac_status = 0; }; }
24401 gcc_cv_as_aix_ref=yes
24403 echo "configure: failed program was" >&5
24406 rm -f conftest.o conftest.s
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24410 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24411 if test $gcc_cv_as_aix_ref = yes; then
24413 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24422 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24423 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24424 $as_echo_n "(cached) " >&6
24426 gcc_cv_as_mips_explicit_relocs=no
24427 if test $in_tree_gas = yes; then
24428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24429 then gcc_cv_as_mips_explicit_relocs=yes
24431 elif test x$gcc_cv_as != x; then
24432 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24433 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24435 (eval $ac_try) 2>&5
24437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24438 test $ac_status = 0; }; }
24440 gcc_cv_as_mips_explicit_relocs=yes
24442 echo "configure: failed program was" >&5
24445 rm -f conftest.o conftest.s
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24449 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24450 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24451 if test x$target_cpu_default = x
24452 then target_cpu_default=MASK_EXPLICIT_RELOCS
24453 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24457 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24458 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24459 $as_echo_n "(cached) " >&6
24461 gcc_cv_as_mips_no_shared=no
24462 if test $in_tree_gas = yes; then
24463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24464 then gcc_cv_as_mips_no_shared=yes
24466 elif test x$gcc_cv_as != x; then
24467 echo 'nop' > conftest.s
24468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24470 (eval $ac_try) 2>&5
24472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24473 test $ac_status = 0; }; }
24475 gcc_cv_as_mips_no_shared=yes
24477 echo "configure: failed program was" >&5
24480 rm -f conftest.o conftest.s
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24484 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24485 if test $gcc_cv_as_mips_no_shared = yes; then
24487 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24492 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24493 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24496 gcc_cv_as_mips_gnu_attribute=no
24497 if test $in_tree_gas = yes; then
24498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24499 then gcc_cv_as_mips_gnu_attribute=yes
24501 elif test x$gcc_cv_as != x; then
24502 echo '.gnu_attribute 4,1' > conftest.s
24503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505 (eval $ac_try) 2>&5
24507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508 test $ac_status = 0; }; }
24510 gcc_cv_as_mips_gnu_attribute=yes
24512 echo "configure: failed program was" >&5
24515 rm -f conftest.o conftest.s
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24519 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24520 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24522 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24527 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24528 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24531 gcc_cv_as_mips_dtprelword=no
24532 if test $in_tree_gas = yes; then
24533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24534 then gcc_cv_as_mips_dtprelword=yes
24536 elif test x$gcc_cv_as != x; then
24537 echo '.section .tdata,"awT",@progbits
24541 .dtprelword x+0x8000' > conftest.s
24542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24549 gcc_cv_as_mips_dtprelword=yes
24551 echo "configure: failed program was" >&5
24554 rm -f conftest.o conftest.s
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24558 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24559 if test $gcc_cv_as_mips_dtprelword = yes; then
24561 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24566 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24567 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24568 $as_echo_n "(cached) " >&6
24570 gcc_cv_as_mips_dspr1_mult=no
24571 if test x$gcc_cv_as != x; then
24572 echo ' .set mips32r2
24580 multu $ac3,$4,$5' > conftest.s
24581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24583 (eval $ac_try) 2>&5
24585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24586 test $ac_status = 0; }; }
24588 gcc_cv_as_mips_dspr1_mult=yes
24590 echo "configure: failed program was" >&5
24593 rm -f conftest.o conftest.s
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24597 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24598 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24600 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24605 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24606 gcc_cv_as_ld_jalr_reloc=no
24607 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24608 if test $in_tree_ld = yes ; then
24609 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 \
24610 && test $in_tree_ld_is_elf = yes; then
24611 gcc_cv_as_ld_jalr_reloc=yes
24613 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24614 echo ' .ent x' > conftest.s
24615 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24616 echo ' ld $25,%call16(y)($28)' >> conftest.s
24617 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24618 echo '1: jalr $25' >> conftest.s
24619 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24620 echo '1: jalr $25' >> conftest.s
24621 echo ' .end x' >> conftest.s
24622 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24623 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24624 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24625 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24626 gcc_cv_as_ld_jalr_reloc=yes
24632 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24633 if test x$target_cpu_default = x; then
24634 target_cpu_default=MASK_RELAX_PIC_CALLS
24636 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24640 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24643 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24644 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24645 $as_echo_n "(cached) " >&6
24647 gcc_cv_ld_mips_personality_relaxation=no
24648 if test $in_tree_ld = yes ; then
24649 if test "$gcc_cv_gld_major_version" -eq 2 \
24650 -a "$gcc_cv_gld_minor_version" -ge 21 \
24651 -o "$gcc_cv_gld_major_version" -gt 2; then
24652 gcc_cv_ld_mips_personality_relaxation=yes
24654 elif test x$gcc_cv_as != x \
24655 -a x$gcc_cv_ld != x \
24656 -a x$gcc_cv_readelf != x ; then
24657 cat > conftest.s <<EOF
24659 .cfi_personality 0x80,indirect_ptr
24666 .section .data,"aw",@progbits
24670 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24671 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24672 if $gcc_cv_readelf -d conftest 2>&1 \
24673 | grep TEXTREL > /dev/null 2>&1; then
24675 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24676 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24679 gcc_cv_ld_mips_personality_relaxation=yes
24683 rm -f conftest.s conftest.o conftest
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24686 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24687 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24689 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24695 # Mips and HP-UX need the GNU assembler.
24696 # Linux on IA64 might be able to use the Intel assembler.
24699 mips*-*-* | *-*-hpux* )
24700 if test x$gas_flag = xyes \
24701 || test x"$host" != x"$build" \
24702 || test ! -x "$gcc_cv_as" \
24703 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24706 echo "*** This configuration requires the GNU assembler" >&2
24712 # ??? Not all targets support dwarf2 debug_line, even within a version
24713 # of gas. Moreover, we need to emit a valid instruction to trigger any
24714 # info to the output file. So, as supported targets are added to gas 2.11,
24715 # add some instruction here to (also) show we expect this might work.
24716 # ??? Once 2.11 is released, probably need to add first known working
24717 # version to the per-target configury.
24718 case "$cpu_type" in
24719 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24720 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24730 if test x"$insn" != x; then
24732 .file 1 \"conftest.s\"
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24736 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24737 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24738 $as_echo_n "(cached) " >&6
24740 gcc_cv_as_dwarf2_debug_line=no
24741 if test $in_tree_gas = yes; then
24742 if test $in_tree_gas_is_elf = yes \
24743 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24744 then gcc_cv_as_dwarf2_debug_line=yes
24746 elif test x$gcc_cv_as != x; then
24747 echo "$conftest_s" > conftest.s
24748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750 (eval $ac_try) 2>&5
24752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753 test $ac_status = 0; }; }
24755 if test x$gcc_cv_objdump != x \
24756 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24757 | grep debug_line > /dev/null 2>&1; then
24758 gcc_cv_as_dwarf2_debug_line=yes
24761 echo "configure: failed program was" >&5
24764 rm -f conftest.o conftest.s
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24768 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24771 # The .debug_line file table must be in the exact order that
24772 # we specified the files, since these indices are also used
24773 # by DW_AT_decl_file. Approximate this test by testing if
24774 # the assembler bitches if the same index is assigned twice.
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24776 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24777 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24778 $as_echo_n "(cached) " >&6
24780 gcc_cv_as_dwarf2_file_buggy=no
24781 if test x$gcc_cv_as != x; then
24782 echo ' .file 1 "foo.s"
24783 .file 1 "bar.s"' > conftest.s
24784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24786 (eval $ac_try) 2>&5
24788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24789 test $ac_status = 0; }; }
24791 gcc_cv_as_dwarf2_file_buggy=yes
24793 echo "configure: failed program was" >&5
24796 rm -f conftest.o conftest.s
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24800 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24803 if test $gcc_cv_as_dwarf2_debug_line = yes \
24804 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24806 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24811 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24812 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24813 $as_echo_n "(cached) " >&6
24815 gcc_cv_as_gdwarf2_flag=no
24816 if test $in_tree_gas = yes; then
24817 if test $in_tree_gas_is_elf = yes \
24818 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24819 then gcc_cv_as_gdwarf2_flag=yes
24821 elif test x$gcc_cv_as != x; then
24822 echo "$insn" > conftest.s
24823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24825 (eval $ac_try) 2>&5
24827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24828 test $ac_status = 0; }; }
24830 gcc_cv_as_gdwarf2_flag=yes
24832 echo "configure: failed program was" >&5
24835 rm -f conftest.o conftest.s
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24839 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24840 if test $gcc_cv_as_gdwarf2_flag = yes; then
24842 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24847 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24848 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24849 $as_echo_n "(cached) " >&6
24851 gcc_cv_as_gstabs_flag=no
24852 if test $in_tree_gas = yes; then
24853 if test $in_tree_gas_is_elf = yes \
24854 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24855 then gcc_cv_as_gstabs_flag=yes
24857 elif test x$gcc_cv_as != x; then
24858 echo "$insn" > conftest.s
24859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861 (eval $ac_try) 2>&5
24863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864 test $ac_status = 0; }; }
24866 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24867 # and warns about it, but still exits successfully. So check for
24869 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24871 (eval $ac_try) 2>&5
24873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24874 test $ac_status = 0; }; }
24876 else gcc_cv_as_gstabs_flag=yes
24879 echo "configure: failed program was" >&5
24882 rm -f conftest.o conftest.s
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24886 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24887 if test $gcc_cv_as_gstabs_flag = yes; then
24889 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24894 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24895 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24898 gcc_cv_as_debug_prefix_map_flag=no
24899 if test $in_tree_gas = yes; then
24900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24901 then gcc_cv_as_debug_prefix_map_flag=yes
24903 elif test x$gcc_cv_as != x; then
24904 echo "$insn" > conftest.s
24905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24907 (eval $ac_try) 2>&5
24909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24910 test $ac_status = 0; }; }
24912 gcc_cv_as_debug_prefix_map_flag=yes
24914 echo "configure: failed program was" >&5
24917 rm -f conftest.o conftest.s
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24921 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24922 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24924 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24930 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24931 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24932 $as_echo_n "(cached) " >&6
24934 gcc_cv_as_lcomm_with_alignment=no
24935 if test x$gcc_cv_as != x; then
24936 echo '.lcomm bar,4,16' > conftest.s
24937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24939 (eval $ac_try) 2>&5
24941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24942 test $ac_status = 0; }; }
24944 gcc_cv_as_lcomm_with_alignment=yes
24946 echo "configure: failed program was" >&5
24949 rm -f conftest.o conftest.s
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24953 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24954 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24956 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24960 # Check whether --enable-gnu-unique-object was given.
24961 if test "${enable_gnu_unique_object+set}" = set; then :
24962 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24964 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24965 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24969 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24970 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24971 $as_echo_n "(cached) " >&6
24973 gcc_cv_as_gnu_unique_object=no
24974 if test $in_tree_gas = yes; then
24975 if test $in_tree_gas_is_elf = yes \
24976 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24977 then gcc_cv_as_gnu_unique_object=yes
24979 elif test x$gcc_cv_as != x; then
24980 echo '.type foo, @gnu_unique_object' > conftest.s
24981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983 (eval $ac_try) 2>&5
24985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986 test $ac_status = 0; }; }
24988 gcc_cv_as_gnu_unique_object=yes
24990 echo "configure: failed program was" >&5
24993 rm -f conftest.o conftest.s
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24997 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24998 if test $gcc_cv_as_gnu_unique_object = yes; then
24999 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25000 if test x$host = x$build -a x$host = x$target &&
25001 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25002 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25003 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25004 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25005 if test "$glibcnum" -ge 2011 ; then
25006 enable_gnu_unique_object=yes
25012 if test x$enable_gnu_unique_object = xyes; then
25014 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25019 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25020 if test "${gcc_cv_as_line_zero+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25023 gcc_cv_as_line_zero=no
25024 if test $in_tree_gas = yes; then
25025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25026 then gcc_cv_as_line_zero=yes
25028 elif test "x$gcc_cv_as" != x; then
25029 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25030 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25032 (eval $ac_try) 2>&5
25034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25035 test $ac_status = 0; }; } &&
25036 test "x`cat conftest.out`" = x
25038 gcc_cv_as_line_zero=yes
25040 echo "configure: failed program was" >&5
25042 echo "configure: error output was" >&5
25043 cat conftest.out >&5
25045 rm -f conftest.o conftest.s conftest.out
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25049 $as_echo "$gcc_cv_as_line_zero" >&6; }
25050 if test "x$gcc_cv_as_line_zero" = xyes; then
25052 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25057 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25058 gcc_cv_ld_eh_frame_hdr=no
25059 if test $in_tree_ld = yes ; then
25060 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 \
25061 && test $in_tree_ld_is_elf = yes; then
25062 gcc_cv_ld_eh_frame_hdr=yes
25064 elif test x$gcc_cv_ld != x; then
25065 # Check if linker supports --eh-frame-hdr option
25066 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25067 gcc_cv_ld_eh_frame_hdr=yes
25071 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25073 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25077 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25080 $as_echo_n "checking linker position independent executable support... " >&6; }
25082 if test $in_tree_ld = yes ; then
25083 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 \
25084 && test $in_tree_ld_is_elf = yes; then
25087 elif test x$gcc_cv_ld != x; then
25088 # Check if linker supports -pie option
25089 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25093 if test x"$gcc_cv_ld_pie" = xyes; then
25095 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25099 $as_echo "$gcc_cv_ld_pie" >&6; }
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25102 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25103 gcc_cv_ld_eh_gc_sections=no
25104 if test $in_tree_ld = yes ; then
25105 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 \
25106 && test $in_tree_ld_is_elf = yes; then
25107 gcc_cv_ld_eh_gc_sections=yes
25109 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25110 cat > conftest.s <<EOF
25113 .type _start, @function
25116 .size _start, .-_start
25117 .section .text.foo,"ax",@progbits
25118 .type foo, @function
25122 .section .gcc_except_table.foo,"a",@progbits
25125 .section .eh_frame,"a",@progbits
25128 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25129 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25130 | grep "gc-sections option ignored" > /dev/null; then
25131 gcc_cv_ld_eh_gc_sections=no
25132 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25133 | grep gcc_except_table > /dev/null; then
25134 gcc_cv_ld_eh_gc_sections=yes
25135 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25136 if test x$gcc_cv_as_comdat_group != xyes; then
25137 gcc_cv_ld_eh_gc_sections=no
25138 cat > conftest.s <<EOF
25141 .type _start, @function
25144 .size _start, .-_start
25145 .section .gnu.linkonce.t.foo,"ax",@progbits
25146 .type foo, @function
25150 .section .gcc_except_table.foo,"a",@progbits
25153 .section .eh_frame,"a",@progbits
25156 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25157 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25158 | grep "gc-sections option ignored" > /dev/null; then
25159 gcc_cv_ld_eh_gc_sections=no
25160 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25161 | grep gcc_except_table > /dev/null; then
25162 gcc_cv_ld_eh_gc_sections=yes
25168 rm -f conftest.s conftest.o conftest
25172 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25173 gcc_cv_ld_eh_gc_sections=no
25176 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25178 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25182 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25189 $as_echo_n "checking linker --as-needed support... " >&6; }
25190 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25191 $as_echo_n "(cached) " >&6
25193 gcc_cv_ld_as_needed=no
25194 if test $in_tree_ld = yes ; then
25195 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 \
25196 && test $in_tree_ld_is_elf = yes; then
25197 gcc_cv_ld_as_needed=yes
25199 elif test x$gcc_cv_ld != x; then
25200 # Check if linker supports --as-needed and --no-as-needed options
25201 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25202 gcc_cv_ld_as_needed=yes
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25208 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25209 if test x"$gcc_cv_ld_as_needed" = xyes; then
25211 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25215 case "$target:$tm_file" in
25216 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25218 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25219 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25220 $as_echo_n "(cached) " >&6
25222 gcc_cv_ld_no_dot_syms=no
25223 if test $in_tree_ld = yes ; then
25224 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
25225 gcc_cv_ld_no_dot_syms=yes
25227 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25228 cat > conftest1.s <<EOF
25232 cat > conftest2.s <<EOF
25233 .section ".opd","aw"
25236 .type foo,@function
25238 .quad .LEfoo,.TOC.@tocbase,0
25244 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25245 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25246 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25247 gcc_cv_ld_no_dot_syms=yes
25249 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25254 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25255 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25257 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25262 $as_echo_n "checking linker large toc support... " >&6; }
25263 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25264 $as_echo_n "(cached) " >&6
25266 gcc_cv_ld_large_toc=no
25267 if test $in_tree_ld = yes ; then
25268 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
25269 gcc_cv_ld_large_toc=yes
25271 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25272 cat > conftest.s <<EOF
25273 .section ".tbss","awT",@nobits
25279 addis 9,13,ie0@got@tprel@ha
25280 ld 9,ie0@got@tprel@l(9)
25282 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25283 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25284 gcc_cv_ld_large_toc=yes
25286 rm -f conftest conftest.o conftest.s
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25291 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25292 if test x"$gcc_cv_ld_large_toc" = xyes; then
25294 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25301 $as_echo_n "checking linker --build-id support... " >&6; }
25302 if test "${gcc_cv_ld_buildid+set}" = set; then :
25303 $as_echo_n "(cached) " >&6
25305 gcc_cv_ld_buildid=no
25306 if test $in_tree_ld = yes ; then
25307 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25308 "$gcc_cv_gld_minor_version" -ge 18 -o \
25309 "$gcc_cv_gld_major_version" -gt 2 \
25310 && test $in_tree_ld_is_elf = yes; then
25311 gcc_cv_ld_buildid=yes
25313 elif test x$gcc_cv_ld != x; then
25314 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25315 gcc_cv_ld_buildid=yes
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25320 $as_echo "$gcc_cv_ld_buildid" >&6; }
25321 if test x"$gcc_cv_ld_buildid" = xyes; then
25323 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25327 # Check whether --enable-linker-build-id was given.
25328 if test "${enable_linker_build_id+set}" = set; then :
25329 enableval=$enable_linker_build_id;
25331 enable_linker_build_id=no
25335 if test x"$enable_linker_build_id" = xyes; then
25336 if test x"$gcc_cv_ld_buildid" = xyes; then
25338 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25342 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25346 # In binutils 2.21, GNU ld gained support for new emulations fully
25347 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25349 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25350 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25353 gcc_cv_ld_sol2_emulation=no
25354 if test $in_tree_ld = yes ; then
25355 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25356 "$gcc_cv_gld_minor_version" -ge 21 -o \
25357 "$gcc_cv_gld_major_version" -gt 2 \
25358 && test $in_tree_ld_is_elf = yes; then
25359 gcc_cv_ld_sol2_emulation=yes
25361 elif test x$gcc_cv_ld != x; then
25362 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25363 grep _sol2 > /dev/null; then
25364 gcc_cv_ld_sol2_emulation=yes
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25369 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25370 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25372 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25377 $as_echo_n "checking linker --sysroot support... " >&6; }
25378 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25379 $as_echo_n "(cached) " >&6
25381 gcc_cv_ld_sysroot=no
25382 if test $in_tree_ld = yes ; then
25383 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
25384 gcc_cv_ld_sysroot=yes
25386 elif test x$gcc_cv_ld != x; then
25387 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25388 gcc_cv_ld_sysroot=yes
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25393 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25394 if test x"$gcc_cv_ld_sysroot" = xyes; then
25396 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25400 if test x$with_sysroot = x && test x$host = x$target \
25401 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25402 && test "$prefix" != "NONE"; then
25404 cat >>confdefs.h <<_ACEOF
25405 #define PREFIX_INCLUDE_DIR "$prefix/include"
25410 # Test for stack protector support in target C library.
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25412 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25413 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25414 $as_echo_n "(cached) " >&6
25416 gcc_cv_libc_provides_ssp=no
25418 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25419 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25420 if test "x$with_headers" != x; then
25421 glibc_header_dir=$with_headers
25422 elif test "x$with_sysroot" = x; then
25423 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25424 elif test "x$with_build_sysroot" != "x"; then
25425 glibc_header_dir="${with_build_sysroot}/usr/include"
25426 elif test "x$with_sysroot" = xyes; then
25427 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25429 glibc_header_dir="${with_sysroot}/usr/include"
25432 glibc_header_dir=/usr/include
25434 # glibc 2.4 and later provides __stack_chk_fail and
25435 # either __stack_chk_guard, or TLS access to stack guard canary.
25436 if test -f $glibc_header_dir/features.h \
25437 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25438 $glibc_header_dir/features.h > /dev/null; then
25439 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25440 $glibc_header_dir/features.h > /dev/null; then
25441 gcc_cv_libc_provides_ssp=yes
25442 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25443 $glibc_header_dir/features.h > /dev/null \
25444 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25445 $glibc_header_dir/features.h > /dev/null; then
25446 gcc_cv_libc_provides_ssp=yes
25447 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25448 $glibc_header_dir/features.h > /dev/null && \
25449 test -f $glibc_header_dir/bits/uClibc_config.h && \
25450 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25451 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25452 gcc_cv_libc_provides_ssp=yes
25457 # Avoid complicated tests (see
25458 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25459 # simply assert that glibc does provide this, which is true for all
25460 # realistically usable GNU/Hurd configurations.
25461 gcc_cv_libc_provides_ssp=yes;;
25462 *-*-darwin* | *-*-freebsd*)
25463 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25464 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25465 gcc_cv_libc_provides_ssp=yes
25467 echo "no __stack_chk_fail on this target"
25471 *) gcc_cv_libc_provides_ssp=no ;;
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25475 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25477 if test x$gcc_cv_libc_provides_ssp = xyes; then
25479 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25483 # Check if TFmode long double should be used by default or not.
25484 # Some glibc targets used DFmode long double, but with glibc 2.4
25485 # and later they can use TFmode.
25487 powerpc*-*-linux* | \
25488 powerpc*-*-gnu* | \
25489 sparc*-*-linux* | \
25493 # Check whether --with-long-double-128 was given.
25494 if test "${with_long_double_128+set}" = set; then :
25495 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25497 gcc_cv_target_ldbl128=no
25498 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25499 if test "x$with_sysroot" = x; then
25500 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25501 elif test "x$with_build_sysroot" != "x"; then
25502 glibc_header_dir="${with_build_sysroot}/usr/include"
25503 elif test "x$with_sysroot" = xyes; then
25504 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25506 glibc_header_dir="${with_sysroot}/usr/include"
25509 glibc_header_dir=/usr/include
25511 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25512 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25513 && gcc_cv_target_ldbl128=yes
25519 if test x$gcc_cv_target_ldbl128 = xyes; then
25521 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25525 # Find out what GC implementation we want, or may, use.
25527 # Check whether --with-gc was given.
25528 if test "${with_gc+set}" = set; then :
25529 withval=$with_gc; case "$withval" in
25536 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25540 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25548 echo "Using $GGC for garbage collection."
25550 # Libraries to use on the host. This will normally be set by the top
25551 # level Makefile. Here we simply capture the value for our Makefile.
25552 if test -z "${HOST_LIBS+set}"; then
25557 # Use the system's zlib library.
25559 zlibinc="-I\$(srcdir)/../zlib"
25561 # Check whether --with-system-zlib was given.
25562 if test "${with_system_zlib+set}" = set; then :
25563 withval=$with_system_zlib; zlibdir=
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25573 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25574 # Check whether --enable-maintainer-mode was given.
25575 if test "${enable_maintainer_mode+set}" = set; then :
25576 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25583 $as_echo "$maintainer_mode" >&6; }
25585 if test "$maintainer_mode" = "yes"; then
25595 # Make empty files to contain the specs and options for each language.
25596 # Then add #include lines to for a compiler that has specs and/or options.
25602 # These (without "all_") are set in each config-lang.in.
25603 # `language' must be a single word so is spelled singularly.
25606 all_outputs='Makefile'
25607 # List of language makefile fragments.
25608 all_lang_makefrags=
25609 # Additional files for gengtype
25610 all_gtfiles="$target_gtfiles"
25612 # These are the languages that are set in --enable-languages,
25613 # and are available in the GCC tree.
25614 all_selected_languages=
25616 # Add the language fragments.
25617 # Languages are added via two mechanisms. Some information must be
25618 # recorded in makefile variables, these are defined in config-lang.in.
25619 # We accumulate them and plug them into the main Makefile.
25620 # The other mechanism is a set of hooks for each of the main targets
25621 # like `clean', `install', etc.
25623 language_hooks="Make-hooks"
25625 for lang in ${srcdir}/*/config-lang.in
25627 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25629 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25630 if test "x$lang_alias" = x
25632 echo "$lang doesn't set \$language." 1>&2
25635 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25636 subdirs="$subdirs $subdir"
25638 # $gcc_subdir is where the gcc integration files are to be found
25639 # for a language, both for internal compiler purposes (compiler
25640 # sources implementing front-end to GCC tree converters), and for
25641 # build infrastructure purposes (Make-lang.in, etc.)
25643 # This will be <subdir> (relative to $srcdir) if a line like
25644 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25645 # is found in <langdir>/config-lang.in, and will remain <langdir>
25648 # Except for the language alias (fetched above), the regular
25649 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25650 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25651 # only this and the language alias.
25653 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25654 if [ "$gcc_subdir" = "" ]; then
25655 gcc_subdir="$subdir"
25658 case ",$enable_languages," in
25660 all_selected_languages="$all_selected_languages $lang_alias"
25661 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25662 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25673 . ${srcdir}/$gcc_subdir/config-lang.in
25674 if test "x$language" = x
25676 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25681 case ",$enable_languages," in
25682 *,$lang_alias,*) ;;
25684 for i in $subdir_requires; do
25685 test -f "${srcdir}/$i/config-lang.in" && continue
25693 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25694 if test -f $srcdir/$gcc_subdir/lang.opt; then
25695 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25696 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
25698 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25699 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25701 all_languages="$all_languages $language"
25702 all_compilers="$all_compilers $compilers"
25703 all_outputs="$all_outputs $outputs"
25704 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25705 case ",$enable_languages," in
25708 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25717 # Pick up gtfiles for c
25719 . ${srcdir}/c-config-lang.in
25720 all_gtfiles="$all_gtfiles [c] $gtfiles"
25723 for language in $all_selected_languages
25725 check_languages="$check_languages check-$language"
25728 # We link each language in with a set of hooks, reached indirectly via
25729 # lang.${target}. Only do so for selected languages.
25733 target_list="all.cross start.encap rest.encap tags \
25734 install-common install-man install-info install-pdf install-html dvi \
25735 pdf html uninstall info man srcextra srcman srcinfo \
25736 mostlyclean clean distclean maintainer-clean install-plugin"
25738 for t in $target_list
25741 for lang in $all_selected_languages
25745 echo "lang.$t: $x" >> Make-hooks
25749 # Option include files
25752 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
25753 option_includes="option-includes.mk"
25762 echo "dir ." > .gdbinit
25763 echo "dir ${srcdir}" >> .gdbinit
25764 if test x$gdb_needs_out_file_path = xyes
25766 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25768 if test "x$subdirs" != x; then
25771 echo "dir ${srcdir}/$s" >> .gdbinit
25774 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25776 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25780 # Find a directory in which to install a shared libgcc.
25782 # Check whether --enable-version-specific-runtime-libs was given.
25783 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25784 enableval=$enable_version_specific_runtime_libs;
25789 # Check whether --with-slibdir was given.
25790 if test "${with_slibdir+set}" = set; then :
25791 withval=$with_slibdir; slibdir="$with_slibdir"
25793 if test "${enable_version_specific_runtime_libs+set}" = set; then
25794 slibdir='$(libsubdir)'
25795 elif test "$host" != "$target"; then
25796 slibdir='$(build_tooldir)/lib'
25798 slibdir='$(libdir)'
25804 # Substitute configuration variables
25868 if test x${build} = x${host} ; then
25869 if test x${host} = x${target} ; then
25870 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25872 echo "Links are now set up to build a cross-compiler" 1>&2
25873 echo " from ${host} to ${target}." 1>&2
25876 if test x${host} = x${target} ; then
25877 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25878 echo " for ${target}." 1>&2
25880 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25881 echo " from ${host} to ${target}." 1>&2
25893 if test "x${CLOOGLIBS}" != "x" ; then
25895 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25899 # Check for plugin support
25900 # Check whether --enable-plugin was given.
25901 if test "${enable_plugin+set}" = set; then :
25902 enableval=$enable_plugin; enable_plugin=$enableval
25904 enable_plugin=yes; default_plugin=yes
25912 if test x$build = x$host; then
25913 export_sym_check="nm${exeext} -g"
25914 elif test x$host = x$target; then
25915 export_sym_check="$gcc_cv_nm -g"
25921 if test x$build = x$host; then
25922 export_sym_check="objdump${exeext} -T"
25923 elif test x$host = x$target; then
25924 export_sym_check="$gcc_cv_objdump -T"
25931 if test x"$enable_plugin" = x"yes"; then
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25934 $as_echo_n "checking for exported symbols... " >&6; }
25935 if test "x$export_sym_check" != x; then
25936 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25937 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25938 if $export_sym_check conftest | grep foobar > /dev/null; then
25939 : # No need to use a flag
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25941 $as_echo "yes" >&6; }
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25944 $as_echo "yes" >&6; }
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25946 $as_echo_n "checking for -rdynamic... " >&6; }
25947 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25948 if $export_sym_check conftest | grep foobar > /dev/null; then
25949 plugin_rdynamic=yes
25950 pluginlibs="-rdynamic"
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25956 $as_echo "$plugin_rdynamic" >&6; }
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25960 $as_echo "unable to check" >&6; }
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25966 $as_echo_n "checking for library containing dlopen... " >&6; }
25967 if test "${ac_cv_search_dlopen+set}" = set; then :
25968 $as_echo_n "(cached) " >&6
25970 ac_func_search_save_LIBS=$LIBS
25971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25972 /* end confdefs.h. */
25974 /* Override any GCC internal prototype to avoid an error.
25975 Use char because int might match the return type of a GCC
25976 builtin and then its argument prototype would still apply. */
25989 for ac_lib in '' dl; do
25990 if test -z "$ac_lib"; then
25991 ac_res="none required"
25994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25996 if ac_fn_c_try_link "$LINENO"; then :
25997 ac_cv_search_dlopen=$ac_res
25999 rm -f core conftest.err conftest.$ac_objext \
26001 if test "${ac_cv_search_dlopen+set}" = set; then :
26005 if test "${ac_cv_search_dlopen+set}" = set; then :
26008 ac_cv_search_dlopen=no
26010 rm conftest.$ac_ext
26011 LIBS=$ac_func_search_save_LIBS
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26014 $as_echo "$ac_cv_search_dlopen" >&6; }
26015 ac_res=$ac_cv_search_dlopen
26016 if test "$ac_res" != no; then :
26017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26021 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26022 pluginlibs="$pluginlibs -ldl"
26026 # Check that we can build shared objects with -fPIC -shared
26027 saved_LDFLAGS="$LDFLAGS"
26028 saved_CFLAGS="$CFLAGS"
26031 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26032 CFLAGS="$CFLAGS -fPIC"
26033 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26036 CFLAGS="$CFLAGS -fPIC"
26037 LDFLAGS="$LDFLAGS -fPIC -shared"
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26041 $as_echo_n "checking for -fPIC -shared... " >&6; }
26042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26043 /* end confdefs.h. */
26053 if ac_fn_c_try_link "$LINENO"; then :
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26055 $as_echo "yes" >&6; }; have_pic_shared=yes
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26058 $as_echo "no" >&6; }; have_pic_shared=no
26060 rm -f core conftest.err conftest.$ac_objext \
26061 conftest$ac_exeext conftest.$ac_ext
26062 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26066 LDFLAGS="$saved_LDFLAGS"
26067 CFLAGS="$saved_CFLAGS"
26069 # If plugin support had been requested but not available, fail.
26070 if test x"$enable_plugin" = x"no" ; then
26071 if test x"$default_plugin" != x"yes"; then
26073 Building GCC with plugin support requires a host that supports
26074 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26081 if test x"$enable_plugin" = x"yes"; then
26083 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26087 # Configure the subdirectories
26088 # AC_CONFIG_SUBDIRS($subdirs)
26090 # Create the Makefile
26091 # and configure language subdirectories
26092 ac_config_files="$ac_config_files $all_outputs"
26095 ac_config_commands="$ac_config_commands default"
26097 cat >confcache <<\_ACEOF
26098 # This file is a shell script that caches the results of configure
26099 # tests run on this system so they can be shared between configure
26100 # scripts and configure runs, see configure's option --config-cache.
26101 # It is not useful on other systems. If it contains results you don't
26102 # want to keep, you may remove or edit it.
26104 # config.status only pays attention to the cache file if you give it
26105 # the --recheck option to rerun configure.
26107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26109 # following values.
26113 # The following way of writing the cache mishandles newlines in values,
26114 # but we know of no workaround that is simple, portable, and efficient.
26115 # So, we kill variables containing newlines.
26116 # Ultrix sh set writes to stderr and can't be redirected directly,
26117 # and sets the high bit in the cache file unless we assign to the vars.
26119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26120 eval ac_val=\$$ac_var
26124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26128 _ | IFS | as_nl) ;; #(
26129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26130 *) { eval $ac_var=; unset $ac_var;} ;;
26136 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26137 *${as_nl}ac_space=\ *)
26138 # `set' does not quote correctly, so add quotes: double-quote
26139 # substitution turns \\\\ into \\, and sed turns \\ into \.
26142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26145 # `set' quotes correctly as required by POSIX, so do not add quotes.
26146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26160 if test -w "$cache_file"; then
26161 test "x$cache_file" != "x/dev/null" &&
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26163 $as_echo "$as_me: updating cache $cache_file" >&6;}
26164 cat confcache >$cache_file
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26167 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26172 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26173 # Let make expand exec_prefix.
26174 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26176 DEFS=-DHAVE_CONFIG_H
26180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26181 # 1. Remove the extension, and $U if already installed.
26182 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26183 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26184 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26185 # will be set to the directory where LIBOBJS objects are built.
26186 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26187 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26189 LIBOBJS=$ac_libobjs
26191 LTLIBOBJS=$ac_ltlibobjs
26196 : ${CONFIG_STATUS=./config.status}
26198 ac_clean_files_save=$ac_clean_files
26199 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26201 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26203 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26205 # Generated by $as_me.
26206 # Run this file to recreate the current configuration.
26207 # Compiler output produced by configure, useful for debugging
26208 # configure, is in config.log if it exists.
26211 ac_cs_recheck=false
26214 SHELL=\${CONFIG_SHELL-$SHELL}
26217 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26218 ## -------------------- ##
26219 ## M4sh Initialization. ##
26220 ## -------------------- ##
26222 # Be more Bourne compatible
26223 DUALCASE=1; export DUALCASE # for MKS sh
26224 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26227 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26228 # is contrary to our usage. Disable this feature.
26229 alias -g '${1+"$@"}'='"$@"'
26230 setopt NO_GLOB_SUBST
26232 case `(set -o) 2>/dev/null` in #(
26244 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26245 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26248 # Prefer a ksh shell builtin over an external printf program on Solaris,
26249 # but without wasting forks for bash or zsh.
26250 if test -z "$BASH_VERSION$ZSH_VERSION" \
26251 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26252 as_echo='print -r --'
26253 as_echo_n='print -rn --'
26254 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26255 as_echo='printf %s\n'
26256 as_echo_n='printf %s'
26258 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26259 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26260 as_echo_n='/usr/ucb/echo -n'
26262 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26263 as_echo_n_body='eval
26267 expr "X$arg" : "X\\(.*\\)$as_nl";
26268 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26270 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26272 export as_echo_n_body
26273 as_echo_n='sh -c $as_echo_n_body as_echo'
26275 export as_echo_body
26276 as_echo='sh -c $as_echo_body as_echo'
26279 # The user is always right.
26280 if test "${PATH_SEPARATOR+set}" != set; then
26282 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26283 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26290 # We need space, tab and new line, in precisely that order. Quoting is
26291 # there to prevent editors from complaining about space-tab.
26292 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26293 # splitting by setting IFS to empty value.)
26296 # Find who we are. Look in the path if we contain no directory separator.
26298 *[\\/]* ) as_myself=$0 ;;
26299 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26300 for as_dir in $PATH
26303 test -z "$as_dir" && as_dir=.
26304 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26310 # We did not find ourselves, most probably we were run as `sh COMMAND'
26311 # in which case we are not to be found in the path.
26312 if test "x$as_myself" = x; then
26315 if test ! -f "$as_myself"; then
26316 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26320 # Unset variables that we do not need and which cause bugs (e.g. in
26321 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26322 # suppresses any "Segmentation fault" message there. '((' could
26323 # trigger a bug in pdksh 5.2.14.
26324 for as_var in BASH_ENV ENV MAIL MAILPATH
26325 do eval test x\${$as_var+set} = xset \
26326 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26339 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26342 # as_fn_error ERROR [LINENO LOG_FD]
26343 # ---------------------------------
26344 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26345 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26346 # script with status $?, using 1 if that was 0.
26349 as_status=$?; test $as_status -eq 0 && as_status=1
26351 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26352 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26354 $as_echo "$as_me: error: $1" >&2
26355 as_fn_exit $as_status
26359 # as_fn_set_status STATUS
26360 # -----------------------
26361 # Set $? to STATUS, without forking.
26362 as_fn_set_status ()
26365 } # as_fn_set_status
26367 # as_fn_exit STATUS
26368 # -----------------
26369 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26373 as_fn_set_status $1
26379 # Portably unset VAR.
26382 { eval $1=; unset $1;}
26384 as_unset=as_fn_unset
26385 # as_fn_append VAR VALUE
26386 # ----------------------
26387 # Append the text in VALUE to the end of the definition contained in VAR. Take
26388 # advantage of any shell optimizations that allow amortized linear growth over
26389 # repeated appends, instead of the typical quadratic growth present in naive
26391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26392 eval 'as_fn_append ()
26403 # as_fn_arith ARG...
26404 # ------------------
26405 # Perform arithmetic evaluation on the ARGs, and store the result in the
26406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26407 # must be portable across $(()) and expr.
26408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26409 eval 'as_fn_arith ()
26416 as_val=`expr "$@" || test $? -eq 1`
26421 if expr a : '\(a\)' >/dev/null 2>&1 &&
26422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26429 as_basename=basename
26434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26440 as_me=`$as_basename -- "$0" ||
26441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26442 X"$0" : 'X\(//\)$' \| \
26443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26445 sed '/^.*\/\([^/][^/]*\)\/*$/{
26459 # Avoid depending upon Character Ranges.
26460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26463 as_cr_digits='0123456789'
26464 as_cr_alnum=$as_cr_Letters$as_cr_digits
26466 ECHO_C= ECHO_N= ECHO_T=
26467 case `echo -n x` in #(((((
26469 case `echo 'xy\c'` in
26470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26472 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26479 rm -f conf$$ conf$$.exe conf$$.file
26480 if test -d conf$$.dir; then
26481 rm -f conf$$.dir/conf$$.file
26484 mkdir conf$$.dir 2>/dev/null
26486 if (echo >conf$$.file) 2>/dev/null; then
26487 if ln -s conf$$.file conf$$ 2>/dev/null; then
26489 # ... but there are two gotchas:
26490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26492 # In both cases, we have to default to `cp -p'.
26493 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26495 elif ln conf$$.file conf$$ 2>/dev/null; then
26503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26504 rmdir conf$$.dir 2>/dev/null
26509 # Create "$as_dir" as a directory, including parents if necessary.
26514 -*) as_dir=./$as_dir;;
26516 test -d "$as_dir" || eval $as_mkdir_p || {
26520 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26521 *) as_qdir=$as_dir;;
26523 as_dirs="'$as_qdir' $as_dirs"
26524 as_dir=`$as_dirname -- "$as_dir" ||
26525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26526 X"$as_dir" : 'X\(//\)[^/]' \| \
26527 X"$as_dir" : 'X\(//\)$' \| \
26528 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26529 $as_echo X"$as_dir" |
26530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26534 /^X\(\/\/\)[^/].*/{
26547 test -d "$as_dir" && break
26549 test -z "$as_dirs" || eval "mkdir $as_dirs"
26550 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26554 if mkdir -p . 2>/dev/null; then
26555 as_mkdir_p='mkdir -p "$as_dir"'
26557 test -d ./-p && rmdir ./-p
26561 if test -x / >/dev/null 2>&1; then
26562 as_test_x='test -x'
26564 if ls -dL / >/dev/null 2>&1; then
26571 if test -d "$1"; then
26577 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26578 ???[sx]*):;;*)false;;esac;fi
26582 as_executable_p=$as_test_x
26584 # Sed expression to map a string onto a valid CPP name.
26585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26587 # Sed expression to map a string onto a valid variable name.
26588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26592 ## ----------------------------------- ##
26593 ## Main body of $CONFIG_STATUS script. ##
26594 ## ----------------------------------- ##
26596 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26599 # Save the log message, to keep $0 and so on meaningful, and to
26600 # report actual input values of CONFIG_FILES etc. instead of their
26601 # values after options handling.
26603 This file was extended by $as_me, which was
26604 generated by GNU Autoconf 2.64. Invocation command line was
26606 CONFIG_FILES = $CONFIG_FILES
26607 CONFIG_HEADERS = $CONFIG_HEADERS
26608 CONFIG_LINKS = $CONFIG_LINKS
26609 CONFIG_COMMANDS = $CONFIG_COMMANDS
26612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26617 case $ac_config_files in *"
26618 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26621 case $ac_config_headers in *"
26622 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26627 # Files that config.status was made for.
26628 config_files="$ac_config_files"
26629 config_headers="$ac_config_headers"
26630 config_commands="$ac_config_commands"
26634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26636 \`$as_me' instantiates files and other configuration actions
26637 from templates according to the current configuration. Unless the files
26638 and actions are specified as TAGs, all are instantiated by default.
26640 Usage: $0 [OPTION]... [TAG]...
26642 -h, --help print this help, then exit
26643 -V, --version print version number and configuration settings, then exit
26644 -q, --quiet, --silent
26645 do not print progress messages
26646 -d, --debug don't remove temporary files
26647 --recheck update $as_me by reconfiguring in the same conditions
26648 --file=FILE[:TEMPLATE]
26649 instantiate the configuration file FILE
26650 --header=FILE[:TEMPLATE]
26651 instantiate the configuration header FILE
26653 Configuration files:
26656 Configuration headers:
26659 Configuration commands:
26662 Report bugs to the package provider."
26665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26668 configured by $0, generated by GNU Autoconf 2.64,
26669 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26671 Copyright (C) 2009 Free Software Foundation, Inc.
26672 This config.status script is free software; the Free Software Foundation
26673 gives unlimited permission to copy, distribute and modify it."
26678 test -n "\$AWK" || AWK=awk
26681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26682 # The default lists apply if the user does not specify any file.
26688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26700 # Handling of the options.
26701 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26703 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26704 $as_echo "$ac_cs_version"; exit ;;
26705 --debug | --debu | --deb | --de | --d | -d )
26707 --file | --fil | --fi | --f )
26710 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26712 as_fn_append CONFIG_FILES " '$ac_optarg'"
26713 ac_need_defaults=false;;
26714 --header | --heade | --head | --hea )
26717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26719 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26720 ac_need_defaults=false;;
26722 # Conflict between --help and --header
26723 as_fn_error "ambiguous option: \`$1'
26724 Try \`$0 --help' for more information.";;
26725 --help | --hel | -h )
26726 $as_echo "$ac_cs_usage"; exit ;;
26727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26728 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26731 # This is an error.
26732 -*) as_fn_error "unrecognized option: \`$1'
26733 Try \`$0 --help' for more information." ;;
26735 *) as_fn_append ac_config_targets " $1"
26736 ac_need_defaults=false ;;
26742 ac_configure_extra_args=
26744 if $ac_cs_silent; then
26746 ac_configure_extra_args="$ac_configure_extra_args --silent"
26750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26751 if \$ac_cs_recheck; then
26752 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26754 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26755 CONFIG_SHELL='$SHELL'
26756 export CONFIG_SHELL
26761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26766 ## Running $as_me. ##
26772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26782 # Handling of arguments.
26783 for ac_config_target in $ac_config_targets
26785 case $ac_config_target in
26786 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26787 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26788 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26789 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26790 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26791 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26793 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26798 # If the user did not use the arguments to specify the items to instantiate,
26799 # then the envvar interface is used. Set only those that are not.
26800 # We use the long form for the default assignment because of an extremely
26801 # bizarre bug on SunOS 4.1.3.
26802 if $ac_need_defaults; then
26803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26808 # Have a temporary directory for convenience. Make it in the build tree
26809 # simply because there is no reason against having it here, and in addition,
26810 # creating and moving files from /tmp can sometimes cause problems.
26811 # Hook for its removal unless debugging.
26812 # Note that there is a small window in which the directory will not be cleaned:
26813 # after its creation but before its name has been assigned to `$tmp'.
26817 trap 'exit_status=$?
26818 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26820 trap 'as_fn_exit 1' 1 2 13 15
26822 # Create a (secure) tmp directory for tmp files.
26825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26826 test -n "$tmp" && test -d "$tmp"
26829 tmp=./conf$$-$RANDOM
26830 (umask 077 && mkdir "$tmp")
26831 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26833 # Set up the scripts for CONFIG_FILES section.
26834 # No need to generate them if there are no CONFIG_FILES.
26835 # This happens for instance with `./config.status config.h'.
26836 if test -n "$CONFIG_FILES"; then
26838 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26839 ac_cs_awk_getline=:
26840 ac_cs_awk_pipe_init=
26841 ac_cs_awk_read_file='
26842 while ((getline aline < (F[key])) > 0)
26845 ac_cs_awk_pipe_fini=
26847 ac_cs_awk_getline=false
26848 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26849 ac_cs_awk_read_file='
26851 print "cat " F[key] " &&"
26852 '$ac_cs_awk_pipe_init
26853 # The final `:' finishes the AND list.
26854 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26856 ac_cr=`echo X | tr X '\015'`
26857 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26858 # But we know of no other shell where ac_cr would be empty at this
26859 # point, so we can use a bashism as a fallback.
26860 if test "x$ac_cr" = x; then
26861 eval ac_cr=\$\'\\r\'
26863 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26864 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26867 ac_cs_awk_cr=$ac_cr
26870 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26873 # Create commands to substitute file output variables.
26875 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26876 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26877 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26880 } >conf$$files.sh &&
26881 . ./conf$$files.sh ||
26882 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26883 rm -f conf$$files.sh
26886 echo "cat >conf$$subs.awk <<_ACEOF" &&
26887 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26889 } >conf$$subs.sh ||
26890 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26891 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26893 for ac_last_try in false false false false false :; do
26894 . ./conf$$subs.sh ||
26895 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26897 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26898 if test $ac_delim_n = $ac_delim_num; then
26900 elif $ac_last_try; then
26901 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26906 rm -f conf$$subs.sh
26908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26909 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26913 s/^/S["/; s/!.*/"]=/
26923 s/\(.\{148\}\).*/\1/
26925 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26930 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26937 s/\(.\{148\}\).*/\1/
26939 s/["\\]/\\&/g; s/^/"/; s/$/"/
26943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26948 ' <conf$$subs.awk | sed '
26953 ' >>$CONFIG_STATUS || ac_write_fail=1
26954 rm -f conf$$subs.awk
26955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26957 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26958 for (key in S) S_is_set[key] = 1
26960 \$ac_cs_awk_pipe_init
26964 nfields = split(line, field, "@")
26966 len = length(field[1])
26967 for (i = 2; i < nfields; i++) {
26969 keylen = length(key)
26970 if (S_is_set[key]) {
26972 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26973 len += length(value) + length(field[++i])
26978 if (nfields == 3 && !substed) {
26980 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26981 \$ac_cs_awk_read_file
26987 \$ac_cs_awk_pipe_fini
26990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26991 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26992 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26995 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26996 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26999 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27000 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27001 # trailing colons and then remove the whole line if VPATH becomes empty
27002 # (actually we leave an empty line to preserve line numbers).
27003 if test "x$srcdir" = x.; then
27004 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27005 s/:*\$(srcdir):*/:/
27006 s/:*\${srcdir}:*/:/
27008 s/^\([^=]*=[ ]*\):*/\1/
27014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27015 fi # test -n "$CONFIG_FILES"
27017 # Set up the scripts for CONFIG_HEADERS section.
27018 # No need to generate them if there are no CONFIG_HEADERS.
27019 # This happens for instance with `./config.status Makefile'.
27020 if test -n "$CONFIG_HEADERS"; then
27021 cat >"$tmp/defines.awk" <<\_ACAWK ||
27025 # Transform confdefs.h into an awk script `defines.awk', embedded as
27026 # here-document in config.status, that substitutes the proper values into
27027 # config.h.in to produce config.h.
27029 # Create a delimiter string that does not exist in confdefs.h, to ease
27030 # handling of long lines.
27032 for ac_last_try in false false :; do
27033 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27034 if test -z "$ac_t"; then
27036 elif $ac_last_try; then
27037 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27039 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27043 # For the awk script, D is an array of macro values keyed by name,
27044 # likewise P contains macro parameters if any. Preserve backslash
27045 # newline sequences.
27047 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27049 s/.\{148\}/&'"$ac_delim"'/g
27052 s/^[ ]*#[ ]*define[ ][ ]*/ /
27059 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27061 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27065 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27066 D["\1"]=" \3\\\\\\n"\\/p
27068 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27073 s/.\{148\}/&'"$ac_delim"'/g
27078 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27081 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27083 ' <confdefs.h | sed '
27084 s/'"$ac_delim"'/"\\\
27085 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27088 for (key in D) D_is_set[key] = 1
27091 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27093 split(line, arg, " ")
27094 if (arg[1] == "#") {
27098 defundef = substr(arg[1], 2)
27101 split(mac1, mac2, "(") #)
27103 prefix = substr(line, 1, index(line, defundef) - 1)
27104 if (D_is_set[macro]) {
27105 # Preserve the white space surrounding the "#".
27106 print prefix "define", macro P[macro] D[macro]
27109 # Replace #undef with comments. This is necessary, for example,
27110 # in the case of _POSIX_SOURCE, which is predefined and required
27111 # on some systems where configure will not decide to define it.
27112 if (defundef == "undef") {
27113 print "/*", prefix defundef, macro, "*/"
27121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27122 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27123 fi # test -n "$CONFIG_HEADERS"
27126 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27131 :[FHLC]) ac_mode=$ac_tag; continue;;
27133 case $ac_mode$ac_tag in
27135 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27136 :[FH]-) ac_tag=-:-;;
27137 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27154 -) ac_f="$tmp/stdin";;
27155 *) # Look for the file first in the build tree, then in the source tree
27156 # (if the path is not absolute). The absolute path cannot be DOS-style,
27157 # because $ac_f cannot contain `:'.
27161 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27163 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27165 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27166 as_fn_append ac_file_inputs " '$ac_f'"
27169 # Let's still pretend it is `configure' which instantiates (i.e., don't
27170 # use $as_me), people would be surprised to read:
27171 # /* config.h. Generated by config.status. */
27172 configure_input='Generated from '`
27173 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27175 if test x"$ac_file" != x-; then
27176 configure_input="$ac_file. $configure_input"
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27178 $as_echo "$as_me: creating $ac_file" >&6;}
27180 # Neutralize special characters interpreted by sed in replacement strings.
27181 case $configure_input in #(
27182 *\&* | *\|* | *\\* )
27183 ac_sed_conf_input=`$as_echo "$configure_input" |
27184 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27185 *) ac_sed_conf_input=$configure_input;;
27189 *:-:* | *:-) cat >"$tmp/stdin" \
27190 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27195 ac_dir=`$as_dirname -- "$ac_file" ||
27196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27197 X"$ac_file" : 'X\(//\)[^/]' \| \
27198 X"$ac_file" : 'X\(//\)$' \| \
27199 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27200 $as_echo X"$ac_file" |
27201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27205 /^X\(\/\/\)[^/].*/{
27218 as_dir="$ac_dir"; as_fn_mkdir_p
27222 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27224 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27225 # A ".." for each directory in $ac_dir_suffix.
27226 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27227 case $ac_top_builddir_sub in
27228 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27229 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27232 ac_abs_top_builddir=$ac_pwd
27233 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27234 # for backward compatibility:
27235 ac_top_builddir=$ac_top_build_prefix
27238 .) # We are building in place.
27240 ac_top_srcdir=$ac_top_builddir_sub
27241 ac_abs_top_srcdir=$ac_pwd ;;
27242 [\\/]* | ?:[\\/]* ) # Absolute name.
27243 ac_srcdir=$srcdir$ac_dir_suffix;
27244 ac_top_srcdir=$srcdir
27245 ac_abs_top_srcdir=$srcdir ;;
27246 *) # Relative name.
27247 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27248 ac_top_srcdir=$ac_top_build_prefix$srcdir
27249 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27251 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27263 # If the template does not know about datarootdir, expand it.
27264 # FIXME: This hack should be removed a few years after 2.60.
27265 ac_datarootdir_hack=; ac_datarootdir_seen=
27276 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27277 *datarootdir*) ac_datarootdir_seen=yes;;
27278 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27280 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27283 ac_datarootdir_hack='
27284 s&@datadir@&$datadir&g
27285 s&@docdir@&$docdir&g
27286 s&@infodir@&$infodir&g
27287 s&@localedir@&$localedir&g
27288 s&@mandir@&$mandir&g
27289 s&\\\${datarootdir}&$datarootdir&g' ;;
27293 # Neutralize VPATH when `$srcdir' = `.'.
27294 # Shell code in configure.ac might set extrasub.
27295 # FIXME: do we really want to maintain this feature?
27296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27297 ac_sed_extra="$ac_vpsub
27300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27303 s|@configure_input@|$ac_sed_conf_input|;t t
27304 s&@top_builddir@&$ac_top_builddir_sub&;t t
27305 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27306 s&@srcdir@&$ac_srcdir&;t t
27307 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27308 s&@top_srcdir@&$ac_top_srcdir&;t t
27309 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27310 s&@builddir@&$ac_builddir&;t t
27311 s&@abs_builddir@&$ac_abs_builddir&;t t
27312 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27313 $ac_datarootdir_hack
27315 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27316 if $ac_cs_awk_getline; then
27317 $AWK -f "$tmp/subs.awk"
27319 $AWK -f "$tmp/subs.awk" | $SHELL
27321 || as_fn_error "could not create $ac_file" "$LINENO" 5
27323 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27324 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27325 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27327 which seems to be undefined. Please make sure it is defined." >&5
27328 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27329 which seems to be undefined. Please make sure it is defined." >&2;}
27333 -) cat "$tmp/out" && rm -f "$tmp/out";;
27334 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27336 || as_fn_error "could not create $ac_file" "$LINENO" 5
27342 if test x"$ac_file" != x-; then
27344 $as_echo "/* $configure_input */" \
27345 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27346 } >"$tmp/config.h" \
27347 || as_fn_error "could not create $ac_file" "$LINENO" 5
27348 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27350 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27353 mv "$tmp/config.h" "$ac_file" \
27354 || as_fn_error "could not create $ac_file" "$LINENO" 5
27357 $as_echo "/* $configure_input */" \
27358 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27359 || as_fn_error "could not create -" "$LINENO" 5
27363 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27364 $as_echo "$as_me: executing $ac_file commands" >&6;}
27369 case $ac_file$ac_mode in
27370 "as":F) chmod +x as ;;
27371 "collect-ld":F) chmod +x collect-ld ;;
27372 "nm":F) chmod +x nm ;;
27374 case ${CONFIG_HEADERS} in
27375 *auto-host.h:config.in*)
27378 # Make sure all the subdirs exist.
27379 for d in $subdirs doc build c-family
27381 test -d $d || mkdir $d
27391 ac_clean_files=$ac_clean_files_save
27393 test $ac_write_fail = 0 ||
27394 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27397 # configure is writing to config.log, and then calls config.status.
27398 # config.status does its own redirection, appending to config.log.
27399 # Unfortunately, on DOS this fails, as config.log is still kept open
27400 # by configure, so config.status won't be able to write to it; its
27401 # output is simply discarded. So we exec the FD to /dev/null,
27402 # effectively closing config.log, so it can be properly (re)opened and
27403 # appended to by config.status. When coming back to configure, we
27404 # need to make the FD available again.
27405 if test "$no_create" != yes; then
27407 ac_config_status_args=
27408 test "$silent" = yes &&
27409 ac_config_status_args="$ac_config_status_args --quiet"
27411 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27413 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27414 # would make configure fail if this is the last instruction.
27415 $ac_cs_success || as_fn_exit $?
27417 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27419 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}