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; dwarf2="$with_dwarf2"
6999 # Check whether --enable-shared was given.
7000 if test "${enable_shared+set}" = set; then :
7001 enableval=$enable_shared;
7002 case $enable_shared in
7006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7007 for pkg in $enableval; do
7008 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7023 # Check whether --with-build-sysroot was given.
7024 if test "${with_build_sysroot+set}" = set; then :
7025 withval=$with_build_sysroot;
7030 # Check whether --with-sysroot was given.
7031 if test "${with_sysroot+set}" = set; then :
7032 withval=$with_sysroot;
7033 case ${with_sysroot} in
7034 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7035 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7038 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7039 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7041 if test "x$prefix" = xNONE; then
7042 test_prefix=/usr/local
7046 if test "x$exec_prefix" = xNONE; then
7047 test_exec_prefix=$test_prefix
7049 test_exec_prefix=$exec_prefix
7051 case ${TARGET_SYSTEM_ROOT} in
7052 "${test_prefix}"|"${test_prefix}/"*|\
7053 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7054 '${prefix}'|'${prefix}/'*|\
7055 '${exec_prefix}'|'${exec_prefix}/'*)
7056 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7057 TARGET_SYSTEM_ROOT_DEFINE="$t"
7064 TARGET_SYSTEM_ROOT_DEFINE=
7065 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7074 # Check whether --with-specs was given.
7075 if test "${with_specs+set}" = set; then :
7076 withval=$with_specs; CONFIGURE_SPECS=$withval
7086 # Check whether --with-pkgversion was given.
7087 if test "${with_pkgversion+set}" = set; then :
7088 withval=$with_pkgversion; case "$withval" in
7089 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7091 *) PKGVERSION="($withval) " ;;
7102 # Check whether --with-bugurl was given.
7103 if test "${with_bugurl+set}" = set; then :
7104 withval=$with_bugurl; case "$withval" in
7105 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7108 *) BUGURL="$withval"
7112 BUGURL="http://gcc.gnu.org/bugs.html"
7122 REPORT_BUGS_TO="<$BUGURL>"
7123 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7130 # Sanity check enable_languages in case someone does not run the toplevel
7131 # configure # script.
7132 # Check whether --enable-languages was given.
7133 if test "${enable_languages+set}" = set; then :
7134 enableval=$enable_languages; case ,${enable_languages}, in
7136 # go safe -- we cannot be much sure without the toplevel
7138 # analysis of which target libs are present and usable
7142 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7147 enable_languages=c,${enable_languages}
7156 # Check whether --with-multilib-list was given.
7157 if test "${with_multilib_list+set}" = set; then :
7158 withval=$with_multilib_list; :
7160 with_multilib_list=default
7164 # -------------------------
7165 # Checks for other programs
7166 # -------------------------
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7169 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7171 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7172 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7173 $as_echo_n "(cached) " >&6
7175 cat >conftest.make <<\_ACEOF
7178 @echo '@@@%%%=$(MAKE)=@@@%%%'
7180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7181 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7183 eval ac_cv_prog_make_${ac_make}_set=yes;;
7185 eval ac_cv_prog_make_${ac_make}_set=no;;
7189 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7191 $as_echo "yes" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 SET_MAKE="MAKE=${MAKE-make}"
7200 # Find some useful tools
7201 for ac_prog in gawk mawk nawk awk
7203 # Extract the first word of "$ac_prog", so it can be a program name with args.
7204 set dummy $ac_prog; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_prog_AWK+set}" = set; then :
7208 $as_echo_n "(cached) " >&6
7210 if test -n "$AWK"; then
7211 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_prog_AWK="$ac_prog"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 if test -n "$AWK"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7233 $as_echo "$AWK" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7240 test -n "$AWK" && break
7243 # We need awk to create options.c and options.h.
7244 # Bail out if it's missing.
7246 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7250 $as_echo_n "checking whether ln -s works... " >&6; }
7251 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
7254 rm -f conftestdata_t
7255 echo >conftestdata_f
7256 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7258 gcc_cv_prog_LN_S="ln -s"
7260 if ln conftestdata_f conftestdata_t 2>/dev/null
7264 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7266 gcc_cv_prog_LN_S="cp -p"
7272 rm -f conftestdata_f conftestdata_t
7275 LN_S="$gcc_cv_prog_LN_S"
7276 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7278 $as_echo "yes" >&6; }
7280 if test "$gcc_cv_prog_LN_S" = "ln"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7282 $as_echo "no, using ln" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7285 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7290 $as_echo_n "checking whether ln works... " >&6; }
7291 if test "${acx_cv_prog_LN+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7294 rm -f conftestdata_t
7295 echo >conftestdata_f
7296 if ln conftestdata_f conftestdata_t 2>/dev/null
7302 rm -f conftestdata_f conftestdata_t
7305 if test $acx_cv_prog_LN = no; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7308 $as_echo "no, using $LN" >&6; }
7310 LN="$acx_cv_prog_LN"
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7312 $as_echo "yes" >&6; }
7315 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7321 $as_echo_n "(cached) " >&6
7323 if test -n "$RANLIB"; then
7324 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 RANLIB=$ac_cv_prog_RANLIB
7344 if test -n "$RANLIB"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7346 $as_echo "$RANLIB" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7354 if test -z "$ac_cv_prog_RANLIB"; then
7355 ac_ct_RANLIB=$RANLIB
7356 # Extract the first word of "ranlib", so it can be a program name with args.
7357 set dummy ranlib; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7363 if test -n "$ac_ct_RANLIB"; then
7364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_prog_ac_ct_RANLIB="ranlib"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7384 if test -n "$ac_ct_RANLIB"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7386 $as_echo "$ac_ct_RANLIB" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7392 if test "x$ac_ct_RANLIB" = x; then
7395 case $cross_compiling:$ac_tool_warned in
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7401 RANLIB=$ac_ct_RANLIB
7404 RANLIB="$ac_cv_prog_RANLIB"
7409 # By default, the Darwin ranlib will not treat common symbols as
7410 # definitions when building the archive table of contents. Other
7411 # ranlibs do that; pass an option to the Darwin ranlib that makes
7412 # it behave similarly.
7420 # Find a good install program. We prefer a C program (faster),
7421 # so one script is as good as another. But avoid the broken or
7422 # incompatible versions:
7423 # SysV /etc/install, /usr/sbin/install
7424 # SunOS /usr/etc/install
7425 # IRIX /sbin/install
7427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7429 # ./install, which can be erroneously created by make from ./install.sh.
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7431 $as_echo_n "checking for a BSD compatible install... " >&6; }
7432 if test -z "$INSTALL"; then
7433 if test "${ac_cv_path_install+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7436 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7437 for ac_dir in $PATH; do
7438 # Account for people who put trailing slashes in PATH elements.
7440 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7442 # OSF1 and SCO ODT 3.0 have their own names for install.
7443 for ac_prog in ginstall scoinst install; do
7444 if test -f $ac_dir/$ac_prog; then
7445 if test $ac_prog = install &&
7446 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7447 # AIX install. It has an incompatible calling convention.
7448 # OSF/1 installbsd also uses dspmsg, but is usable.
7451 ac_cv_path_install="$ac_dir/$ac_prog -c"
7462 if test "${ac_cv_path_install+set}" = set; then
7463 INSTALL="$ac_cv_path_install"
7465 # As a last resort, use the slow shell script. We don't cache a
7466 # path for INSTALL within a source directory, because that will
7467 # break other packages using the cache if that directory is
7468 # removed, or if the path is relative.
7469 INSTALL="$ac_install_sh"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7473 $as_echo "$INSTALL" >&6; }
7475 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7476 # It thinks the first close brace ends the variable substitution.
7477 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7479 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7482 # See if cmp has --ignore-initial.
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7484 $as_echo_n "checking for cmp's capabilities... " >&6; }
7485 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7490 gcc_cv_prog_cmp_skip=slowcompare
7491 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7492 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7495 gcc_cv_prog_cmp_skip=gnucompare
7498 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7499 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7500 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7503 gcc_cv_prog_cmp_skip=fastcompare
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7511 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7512 make_compare_target=$gcc_cv_prog_cmp_skip
7516 # See if we have the mktemp command.
7517 # Extract the first word of "mktemp", so it can be a program name with args.
7518 set dummy mktemp; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7524 if test -n "$have_mktemp_command"; then
7525 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534 ac_cv_prog_have_mktemp_command="yes"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7545 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7546 if test -n "$have_mktemp_command"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7548 $as_echo "$have_mktemp_command" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7556 # See if makeinfo has been installed and is modern enough
7557 # that we can use it.
7559 # Extract the first word of "makeinfo", so it can be a program name with args.
7560 set dummy makeinfo; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7566 if test -n "$MAKEINFO"; then
7567 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_MAKEINFO="makeinfo"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 MAKEINFO=$ac_cv_prog_MAKEINFO
7587 if test -n "$MAKEINFO"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7589 $as_echo "$MAKEINFO" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7596 if test -n "$MAKEINFO"; then
7597 # Found it, now check the version.
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7599 $as_echo_n "checking for modern makeinfo... " >&6; }
7600 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
7603 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7604 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7606 case $ac_prog_version in
7607 '') gcc_cv_prog_makeinfo_modern=no;;
7608 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7609 *) gcc_cv_prog_makeinfo_modern=no;;
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7614 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7616 gcc_cv_prog_makeinfo_modern=no
7618 if test $gcc_cv_prog_makeinfo_modern = no; then
7619 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7622 if test $gcc_cv_prog_makeinfo_modern = no; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7624 *** Makeinfo is missing or too old.
7625 *** Info documentation will not be built." >&5
7626 $as_echo "$as_me: WARNING:
7627 *** Makeinfo is missing or too old.
7628 *** Info documentation will not be built." >&2;}
7635 # Is pod2man recent enough to regenerate manpages?
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7637 $as_echo_n "checking for recent Pod::Man... " >&6; }
7638 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7640 $as_echo "yes" >&6; }
7641 GENERATED_MANPAGES=generated-manpages
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7649 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_FLEX+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7661 if test -n "$FLEX"; then
7662 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_FLEX="$ac_prog"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 FLEX=$ac_cv_prog_FLEX
7682 if test -n "$FLEX"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7684 $as_echo "$FLEX" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7691 test -n "$FLEX" && break
7693 test -n "$FLEX" || FLEX="$MISSING flex"
7697 for ac_prog in bison
7699 # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if test "${ac_cv_prog_BISON+set}" = set; then :
7704 $as_echo_n "(cached) " >&6
7706 if test -n "$BISON"; then
7707 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_prog_BISON="$ac_prog"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 BISON=$ac_cv_prog_BISON
7727 if test -n "$BISON"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7729 $as_echo "$BISON" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7736 test -n "$BISON" && break
7738 test -n "$BISON" || BISON="$MISSING bison"
7741 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7742 # check for build == host before using them.
7745 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7746 && test -d ../binutils ; then
7747 NM='${objdir}/../binutils/nm-new'
7749 # Extract the first word of "nm", so it can be a program name with args.
7750 set dummy nm; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_NM+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7756 if test -n "$NM"; then
7757 ac_cv_prog_NM="$NM" # Let the user override the test.
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7778 if test -n "$NM"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7780 $as_echo "$NM" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7790 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7791 && test -d ../binutils ; then
7792 AR='${objdir}/../binutils/ar'
7794 # Extract the first word of "ar", so it can be a program name with args.
7795 set dummy ar; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_AR+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7801 if test -n "$AR"; then
7802 ac_cv_prog_AR="$AR" # Let the user override the test.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7823 if test -n "$AR"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7825 $as_echo "$AR" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7835 # --------------------
7836 # Checks for C headers
7837 # --------------------
7839 # Need to reject headers which give warnings, so that the -Werror bootstrap
7840 # works later. *sigh* This needs to come before all header checks.
7842 ac_c_preproc_warn_flag=yes
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7845 $as_echo_n "checking for ANSI C header files... " >&6; }
7846 if test "${ac_cv_header_stdc+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7864 if ac_fn_c_try_compile "$LINENO"; then :
7865 ac_cv_header_stdc=yes
7867 ac_cv_header_stdc=no
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 if test $ac_cv_header_stdc = yes; then
7872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7879 $EGREP "memchr" >/dev/null 2>&1; then :
7882 ac_cv_header_stdc=no
7888 if test $ac_cv_header_stdc = yes; then
7889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7896 $EGREP "free" >/dev/null 2>&1; then :
7899 ac_cv_header_stdc=no
7905 if test $ac_cv_header_stdc = yes; then
7906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7907 if test "$cross_compiling" = yes; then :
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7914 #if ((' ' & 0x0FF) == 0x020)
7915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7918 # define ISLOWER(c) \
7919 (('a' <= (c) && (c) <= 'i') \
7920 || ('j' <= (c) && (c) <= 'r') \
7921 || ('s' <= (c) && (c) <= 'z'))
7922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7930 for (i = 0; i < 256; i++)
7931 if (XOR (islower (i), ISLOWER (i))
7932 || toupper (i) != TOUPPER (i))
7937 if ac_fn_c_try_run "$LINENO"; then :
7940 ac_cv_header_stdc=no
7942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7943 conftest.$ac_objext conftest.beam conftest.$ac_ext
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7949 $as_echo "$ac_cv_header_stdc" >&6; }
7950 if test $ac_cv_header_stdc = yes; then
7952 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7957 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7958 if test "${ac_cv_header_time+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 #include <sys/types.h>
7964 #include <sys/time.h>
7970 if ((struct tm *) 0)
7976 if ac_fn_c_try_compile "$LINENO"; then :
7977 ac_cv_header_time=yes
7979 ac_cv_header_time=no
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7984 $as_echo "$ac_cv_header_time" >&6; }
7985 if test $ac_cv_header_time = yes; then
7987 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7992 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7993 if test "${gcc_cv_header_string+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7999 #include <strings.h>
8008 if ac_fn_c_try_compile "$LINENO"; then :
8009 gcc_cv_header_string=yes
8011 gcc_cv_header_string=no
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8016 $as_echo "$gcc_cv_header_string" >&6; }
8017 if test $gcc_cv_header_string = yes; then
8019 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8024 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8025 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #include <sys/types.h>
8031 #include <sys/wait.h>
8033 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8036 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8044 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8049 if ac_fn_c_try_compile "$LINENO"; then :
8050 ac_cv_header_sys_wait_h=yes
8052 ac_cv_header_sys_wait_h=no
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8057 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8058 if test $ac_cv_header_sys_wait_h = yes; then
8060 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8064 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8065 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8066 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8067 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8070 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8071 eval as_val=\$$as_ac_Header
8072 if test "x$as_val" = x""yes; then :
8073 cat >>confdefs.h <<_ACEOF
8074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8081 # Check for thread headers.
8082 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8083 if test "x$ac_cv_header_thread_h" = x""yes; then :
8089 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8090 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8097 # These tests can't be done till we know if we have limits.h.
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8099 $as_echo_n "checking for CHAR_BIT... " >&6; }
8100 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 #ifdef HAVE_LIMITS_H
8112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8113 $EGREP "found" >/dev/null 2>&1; then :
8114 gcc_cv_decl_char_bit=yes
8116 gcc_cv_decl_char_bit=no
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8123 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8124 if test $gcc_cv_decl_char_bit = no; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8126 $as_echo_n "checking number of bits in a byte... " >&6; }
8127 if test "${gcc_cv_c_nbby+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
8132 while test $i -lt 65; do
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8140 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8141 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8147 if ac_fn_c_try_compile "$LINENO"; then :
8148 gcc_cv_c_nbby=$i; break
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8157 $as_echo "$gcc_cv_c_nbby" >&6; }
8158 if test $gcc_cv_c_nbby = failed; then
8159 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8162 cat >>confdefs.h <<_ACEOF
8163 #define CHAR_BIT $gcc_cv_c_nbby
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8169 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8170 if test "${ac_cv_c_bigendian+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8173 ac_cv_c_bigendian=unknown
8174 # See if we're dealing with a universal compiler.
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 #ifndef __APPLE_CC__
8178 not a universal capable compiler
8183 if ac_fn_c_try_compile "$LINENO"; then :
8185 # Check for potential -arch flags. It is not universal unless
8186 # there are at least two -arch flags with different values.
8189 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8190 if test -n "$ac_prev"; then
8192 i?86 | x86_64 | ppc | ppc64)
8193 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8196 ac_cv_c_bigendian=universal
8202 elif test "x$ac_word" = "x-arch"; then
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 if test $ac_cv_c_bigendian = unknown; then
8209 # See if sys/param.h defines the BYTE_ORDER macro.
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8212 #include <sys/types.h>
8213 #include <sys/param.h>
8218 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8219 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229 # It does; now see whether it defined to BIG_ENDIAN or not.
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 #include <sys/types.h>
8233 #include <sys/param.h>
8238 #if BYTE_ORDER != BIG_ENDIAN
8246 if ac_fn_c_try_compile "$LINENO"; then :
8247 ac_cv_c_bigendian=yes
8249 ac_cv_c_bigendian=no
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 if test $ac_cv_c_bigendian = unknown; then
8256 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8264 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8272 if ac_fn_c_try_compile "$LINENO"; then :
8273 # It does; now see whether it defined to _BIG_ENDIAN or not.
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8289 if ac_fn_c_try_compile "$LINENO"; then :
8290 ac_cv_c_bigendian=yes
8292 ac_cv_c_bigendian=no
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 if test $ac_cv_c_bigendian = unknown; then
8299 # Compile a test program.
8300 if test "$cross_compiling" = yes; then :
8301 # Try to guess by grepping values from an object file.
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 short int ascii_mm[] =
8305 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8306 short int ascii_ii[] =
8307 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8308 int use_ascii (int i) {
8309 return ascii_mm[i] + ascii_ii[i];
8311 short int ebcdic_ii[] =
8312 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8313 short int ebcdic_mm[] =
8314 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8315 int use_ebcdic (int i) {
8316 return ebcdic_mm[i] + ebcdic_ii[i];
8323 return use_ascii (foo) == use_ebcdic (foo);
8328 if ac_fn_c_try_compile "$LINENO"; then :
8329 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8330 ac_cv_c_bigendian=yes
8332 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8333 if test "$ac_cv_c_bigendian" = unknown; then
8334 ac_cv_c_bigendian=no
8336 # finding both strings is unlikely to happen, but who knows?
8337 ac_cv_c_bigendian=unknown
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8345 $ac_includes_default
8350 /* Are we little or big endian? From Harbison&Steele. */
8354 char c[sizeof (long int)];
8357 return u.c[sizeof (long int) - 1] == 1;
8363 if ac_fn_c_try_run "$LINENO"; then :
8364 ac_cv_c_bigendian=no
8366 ac_cv_c_bigendian=yes
8368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8369 conftest.$ac_objext conftest.beam conftest.$ac_ext
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8375 $as_echo "$ac_cv_c_bigendian" >&6; }
8376 case $ac_cv_c_bigendian in #(
8378 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8384 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8388 as_fn_error "unknown endianness
8389 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8398 # These libraries may be used by collect2.
8399 # We may need a special search path to get them linked.
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8401 $as_echo_n "checking for collect2 libraries... " >&6; }
8402 if test "${gcc_cv_collect2_libs+set}" = set; then :
8403 $as_echo_n "(cached) " >&6
8406 for libs in '' -lld -lmld \
8407 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8408 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8429 if ac_fn_c_try_link "$LINENO"; then :
8430 gcc_cv_collect2_libs="$libs"; break
8432 rm -f core conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext conftest.$ac_ext
8436 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8439 $as_echo "$gcc_cv_collect2_libs" >&6; }
8440 case $gcc_cv_collect2_libs in
8442 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8446 # When building Ada code on Alpha, we need exc_resume which is usually in
8447 # -lexc. So test for it.
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8451 $as_echo_n "checking for library containing exc_resume... " >&6; }
8452 if test "${ac_cv_search_exc_resume+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
8455 ac_func_search_save_LIBS=$LIBS
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8459 /* Override any GCC internal prototype to avoid an error.
8460 Use char because int might match the return type of a GCC
8461 builtin and then its argument prototype would still apply. */
8469 return exc_resume ();
8474 for ac_lib in '' exc; do
8475 if test -z "$ac_lib"; then
8476 ac_res="none required"
8479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 ac_cv_search_exc_resume=$ac_res
8484 rm -f core conftest.err conftest.$ac_objext \
8486 if test "${ac_cv_search_exc_resume+set}" = set; then :
8490 if test "${ac_cv_search_exc_resume+set}" = set; then :
8493 ac_cv_search_exc_resume=no
8496 LIBS=$ac_func_search_save_LIBS
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8499 $as_echo "$ac_cv_search_exc_resume" >&6; }
8500 ac_res=$ac_cv_search_exc_resume
8501 if test "$ac_res" != no; then :
8502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8510 # Some systems put ldexp and frexp in libm instead of libc; assume
8511 # they're both in the same place. jcf-dump needs them.
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8515 $as_echo_n "checking for library containing ldexp... " >&6; }
8516 if test "${ac_cv_search_ldexp+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8519 ac_func_search_save_LIBS=$LIBS
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8523 /* Override any GCC internal prototype to avoid an error.
8524 Use char because int might match the return type of a GCC
8525 builtin and then its argument prototype would still apply. */
8538 for ac_lib in '' m; do
8539 if test -z "$ac_lib"; then
8540 ac_res="none required"
8543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8545 if ac_fn_c_try_link "$LINENO"; then :
8546 ac_cv_search_ldexp=$ac_res
8548 rm -f core conftest.err conftest.$ac_objext \
8550 if test "${ac_cv_search_ldexp+set}" = set; then :
8554 if test "${ac_cv_search_ldexp+set}" = set; then :
8557 ac_cv_search_ldexp=no
8560 LIBS=$ac_func_search_save_LIBS
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8563 $as_echo "$ac_cv_search_ldexp" >&6; }
8564 ac_res=$ac_cv_search_ldexp
8565 if test "$ac_res" != no; then :
8566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8574 # Use <inttypes.h> only if it exists,
8575 # doesn't clash with <sys/types.h>, and declares intmax_t.
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8577 $as_echo_n "checking for inttypes.h... " >&6; }
8578 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8579 $as_echo_n "(cached) " >&6
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 #include <sys/types.h>
8584 #include <inttypes.h>
8593 if ac_fn_c_try_compile "$LINENO"; then :
8594 gcc_cv_header_inttypes_h=yes
8596 gcc_cv_header_inttypes_h=no
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8602 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8603 if test $gcc_cv_header_inttypes_h = yes; then
8605 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8611 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8612 sysconf strsignal getrusage nl_langinfo \
8613 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8614 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
8616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8617 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8618 eval as_val=\$$as_ac_var
8619 if test "x$as_val" = x""yes; then :
8620 cat >>confdefs.h <<_ACEOF
8621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8628 if test x$ac_cv_func_mbstowcs = xyes; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8630 $as_echo_n "checking whether mbstowcs works... " >&6; }
8631 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8634 if test "$cross_compiling" = yes; then :
8635 gcc_cv_func_mbstowcs_works=yes
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8646 if ac_fn_c_try_run "$LINENO"; then :
8647 gcc_cv_func_mbstowcs_works=yes
8649 gcc_cv_func_mbstowcs_works=no
8651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8652 conftest.$ac_objext conftest.beam conftest.$ac_ext
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8657 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8658 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8660 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8665 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8666 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8670 cat >>confdefs.h <<_ACEOF
8676 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8677 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8681 cat >>confdefs.h <<_ACEOF
8682 #define caddr_t char *
8689 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8690 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8691 gcc_header_sys_mman_h=yes
8693 gcc_header_sys_mman_h=no
8696 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8697 if test "x$ac_cv_func_mmap" = x""yes; then :
8703 if test "$gcc_header_sys_mman_h" != yes \
8704 || test "$gcc_func_mmap" != yes; then
8705 gcc_cv_func_mmap_file=no
8706 gcc_cv_func_mmap_dev_zero=no
8707 gcc_cv_func_mmap_anon=no
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8710 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8711 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8712 $as_echo_n "(cached) " >&6
8714 # Add a system to this blacklist if
8715 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8716 # memory area containing the same data that you'd get if you applied
8717 # read() to the same fd. The only system known to have a problem here
8718 # is VMS, where text files have record structure.
8721 gcc_cv_func_mmap_file=no ;;
8723 gcc_cv_func_mmap_file=yes;;
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8727 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8729 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8730 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8733 # Add a system to this blacklist if it has mmap() but /dev/zero
8734 # does not exist, or if mmapping /dev/zero does not give anonymous
8735 # zeroed pages with both the following properties:
8736 # 1. If you map N consecutive pages in with one call, and then
8737 # unmap any subset of those pages, the pages that were not
8738 # explicitly unmapped remain accessible.
8739 # 2. If you map two adjacent blocks of memory and then unmap them
8740 # both at once, they must both go away.
8741 # Systems known to be in this category are Windows (all variants),
8744 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8745 gcc_cv_func_mmap_dev_zero=no ;;
8747 gcc_cv_func_mmap_dev_zero=yes;;
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8751 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8753 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8755 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8756 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 #include <sys/types.h>
8762 #include <sys/mman.h>
8765 #ifndef MAP_ANONYMOUS
8766 #define MAP_ANONYMOUS MAP_ANON
8772 int n = MAP_ANONYMOUS;
8777 if ac_fn_c_try_compile "$LINENO"; then :
8778 gcc_cv_decl_map_anon=yes
8780 gcc_cv_decl_map_anon=no
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8785 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8787 if test $gcc_cv_decl_map_anon = no; then
8788 gcc_cv_func_mmap_anon=no
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8791 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8792 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8793 $as_echo_n "(cached) " >&6
8795 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8796 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8797 # doesn't give anonymous zeroed pages with the same properties listed
8798 # above for use of /dev/zero.
8799 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8801 vms* | cygwin* | pe | mingw* | sco* | udk* )
8802 gcc_cv_func_mmap_anon=no ;;
8804 gcc_cv_func_mmap_anon=yes;;
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8808 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8812 if test $gcc_cv_func_mmap_file = yes; then
8814 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8817 if test $gcc_cv_func_mmap_dev_zero = yes; then
8819 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8822 if test $gcc_cv_func_mmap_anon = yes; then
8824 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8831 # Under VMS, vfork works very differently than on Unix. The standard test
8832 # won't work, and it isn't easily adaptable. It makes more sense to
8834 ac_cv_func_vfork_works=yes
8837 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8838 if test "x$ac_cv_type_pid_t" = x""yes; then :
8842 cat >>confdefs.h <<_ACEOF
8848 for ac_header in vfork.h
8850 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8851 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8852 cat >>confdefs.h <<_ACEOF
8853 #define HAVE_VFORK_H 1
8859 for ac_func in fork vfork
8861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8863 eval as_val=\$$as_ac_var
8864 if test "x$as_val" = x""yes; then :
8865 cat >>confdefs.h <<_ACEOF
8866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8872 if test "x$ac_cv_func_fork" = xyes; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8874 $as_echo_n "checking for working fork... " >&6; }
8875 if test "${ac_cv_func_fork_works+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8878 if test "$cross_compiling" = yes; then :
8879 ac_cv_func_fork_works=cross
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 $ac_includes_default
8888 /* By Ruediger Kuhlmann. */
8895 if ac_fn_c_try_run "$LINENO"; then :
8896 ac_cv_func_fork_works=yes
8898 ac_cv_func_fork_works=no
8900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8901 conftest.$ac_objext conftest.beam conftest.$ac_ext
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8906 $as_echo "$ac_cv_func_fork_works" >&6; }
8909 ac_cv_func_fork_works=$ac_cv_func_fork
8911 if test "x$ac_cv_func_fork_works" = xcross; then
8913 *-*-amigaos* | *-*-msdosdjgpp*)
8914 # Override, as these systems have only a dummy fork() stub
8915 ac_cv_func_fork_works=no
8918 ac_cv_func_fork_works=yes
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8922 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8924 ac_cv_func_vfork_works=$ac_cv_func_vfork
8925 if test "x$ac_cv_func_vfork" = xyes; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8927 $as_echo_n "checking for working vfork... " >&6; }
8928 if test "${ac_cv_func_vfork_works+set}" = set; then :
8929 $as_echo_n "(cached) " >&6
8931 if test "$cross_compiling" = yes; then :
8932 ac_cv_func_vfork_works=cross
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936 /* Thanks to Paul Eggert for this test. */
8937 $ac_includes_default
8938 #include <sys/wait.h>
8942 /* On some sparc systems, changes by the child to local and incoming
8943 argument registers are propagated back to the parent. The compiler
8944 is told about this with #include <vfork.h>, but some compilers
8945 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8946 static variable whose address is put into a register that is
8947 clobbered by the vfork. */
8950 sparc_address_test (int arg)
8952 sparc_address_test (arg) int arg;
8973 pid_t parent = getpid ();
8976 sparc_address_test (0);
8981 /* Here is another test for sparc vfork register problems. This
8982 test uses lots of local variables, at least as many local
8983 variables as main has allocated so far including compiler
8984 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8985 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8986 reuse the register of parent for one of the local variables,
8987 since it will think that parent can't possibly be used any more
8988 in this routine. Assigning to the local variable will thus
8989 munge parent in the parent process. */
8991 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8992 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8993 /* Convince the compiler that p..p7 are live; otherwise, it might
8994 use the same hardware register for all 8 local variables. */
8995 if (p != p1 || p != p2 || p != p3 || p != p4
8996 || p != p5 || p != p6 || p != p7)
8999 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9000 from child file descriptors. If the child closes a descriptor
9001 before it execs or exits, this munges the parent's descriptor
9002 as well. Test for this by closing stdout in the child. */
9003 _exit(close(fileno(stdout)) != 0);
9008 while (wait(&status) != child)
9011 /* Was there some problem with vforking? */
9014 /* Did the child fail? (This shouldn't happen.) */
9017 /* Did the vfork/compiler bug occur? */
9018 || parent != getpid()
9020 /* Did the file descriptor bug occur? */
9021 || fstat(fileno(stdout), &st) != 0
9026 if ac_fn_c_try_run "$LINENO"; then :
9027 ac_cv_func_vfork_works=yes
9029 ac_cv_func_vfork_works=no
9031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9032 conftest.$ac_objext conftest.beam conftest.$ac_ext
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9037 $as_echo "$ac_cv_func_vfork_works" >&6; }
9040 if test "x$ac_cv_func_fork_works" = xcross; then
9041 ac_cv_func_vfork_works=$ac_cv_func_vfork
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9043 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9046 if test "x$ac_cv_func_vfork_works" = xyes; then
9048 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9052 $as_echo "#define vfork fork" >>confdefs.h
9055 if test "x$ac_cv_func_fork_works" = xyes; then
9057 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9063 if test "X$prefix" = "XNONE"; then
9064 acl_final_prefix="$ac_default_prefix"
9066 acl_final_prefix="$prefix"
9068 if test "X$exec_prefix" = "XNONE"; then
9069 acl_final_exec_prefix='${prefix}'
9071 acl_final_exec_prefix="$exec_prefix"
9073 acl_save_prefix="$prefix"
9074 prefix="$acl_final_prefix"
9075 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9076 prefix="$acl_save_prefix"
9079 # Check whether --with-gnu-ld was given.
9080 if test "${with_gnu_ld+set}" = set; then :
9081 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9086 # Prepare PATH_SEPARATOR.
9087 # The user is always right.
9088 if test "${PATH_SEPARATOR+set}" != set; then
9089 echo "#! /bin/sh" >conf$$.sh
9090 echo "exit 0" >>conf$$.sh
9092 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9100 if test "$GCC" = yes; then
9101 # Check if gcc -print-prog-name=ld gives a path.
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9103 $as_echo_n "checking for ld used by GCC... " >&6; }
9106 # gcc leaves a trailing carriage return which upsets mingw
9107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9112 # Accept absolute paths.
9113 [\\/]* | [A-Za-z]:[\\/]*)
9114 re_direlt='/[^/][^/]*/\.\./'
9115 # Canonicalize the path of ld
9116 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9118 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9120 test -z "$LD" && LD="$ac_prog"
9123 # If it fails, then pretend we aren't using GCC.
9127 # If it is relative, then search for the first ld in PATH.
9131 elif test "$with_gnu_ld" = yes; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9133 $as_echo_n "checking for GNU ld... " >&6; }
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9136 $as_echo_n "checking for non-GNU ld... " >&6; }
9138 if test "${acl_cv_path_LD+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9141 if test -z "$LD"; then
9142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9143 for ac_dir in $PATH; do
9144 test -z "$ac_dir" && ac_dir=.
9145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9146 acl_cv_path_LD="$ac_dir/$ac_prog"
9147 # Check to see if the program is GNU ld. I'd rather use --version,
9148 # but apparently some GNU ld's only accept -v.
9149 # Break only if it was the GNU/non-GNU ld that we prefer.
9150 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9151 test "$with_gnu_ld" != no && break
9153 test "$with_gnu_ld" != yes && break
9159 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9163 LD="$acl_cv_path_LD"
9164 if test -n "$LD"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9166 $as_echo "$LD" >&6; }
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9171 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9173 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9174 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9175 $as_echo_n "(cached) " >&6
9177 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9178 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9179 acl_cv_prog_gnu_ld=yes
9181 acl_cv_prog_gnu_ld=no
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9185 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9186 with_gnu_ld=$acl_cv_prog_gnu_ld
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9191 $as_echo_n "checking for shared library run path origin... " >&6; }
9192 if test "${acl_cv_rpath+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9196 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9197 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9204 $as_echo "$acl_cv_rpath" >&6; }
9206 libext="$acl_cv_libext"
9207 shlibext="$acl_cv_shlibext"
9208 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9209 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9210 hardcode_direct="$acl_cv_hardcode_direct"
9211 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9212 # Check whether --enable-rpath was given.
9213 if test "${enable_rpath+set}" = set; then :
9214 enableval=$enable_rpath; :
9228 acl_save_prefix="$prefix"
9229 prefix="$acl_final_prefix"
9230 acl_save_exec_prefix="$exec_prefix"
9231 exec_prefix="$acl_final_exec_prefix"
9233 eval additional_includedir=\"$includedir\"
9234 eval additional_libdir=\"$libdir\"
9236 exec_prefix="$acl_save_exec_prefix"
9237 prefix="$acl_save_prefix"
9240 # Check whether --with-libiconv-prefix was given.
9241 if test "${with_libiconv_prefix+set}" = set; then :
9242 withval=$with_libiconv_prefix;
9243 if test "X$withval" = "Xno"; then
9246 if test "X$withval" = "X"; then
9248 acl_save_prefix="$prefix"
9249 prefix="$acl_final_prefix"
9250 acl_save_exec_prefix="$exec_prefix"
9251 exec_prefix="$acl_final_exec_prefix"
9253 eval additional_includedir=\"$includedir\"
9254 eval additional_libdir=\"$libdir\"
9256 exec_prefix="$acl_save_exec_prefix"
9257 prefix="$acl_save_prefix"
9260 additional_includedir="$withval/include"
9261 additional_libdir="$withval/lib"
9272 names_already_handled=
9273 names_next_round='iconv '
9274 while test -n "$names_next_round"; do
9275 names_this_round="$names_next_round"
9277 for name in $names_this_round; do
9279 for n in $names_already_handled; do
9280 if test "$n" = "$name"; then
9285 if test -z "$already_handled"; then
9286 names_already_handled="$names_already_handled $name"
9287 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9288 eval value=\"\$HAVE_LIB$uppername\"
9289 if test -n "$value"; then
9290 if test "$value" = yes; then
9291 eval value=\"\$LIB$uppername\"
9292 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9293 eval value=\"\$LTLIB$uppername\"
9294 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9303 if test $use_additional = yes; then
9304 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9305 found_dir="$additional_libdir"
9306 found_so="$additional_libdir/lib$name.$shlibext"
9307 if test -f "$additional_libdir/lib$name.la"; then
9308 found_la="$additional_libdir/lib$name.la"
9311 if test -f "$additional_libdir/lib$name.$libext"; then
9312 found_dir="$additional_libdir"
9313 found_a="$additional_libdir/lib$name.$libext"
9314 if test -f "$additional_libdir/lib$name.la"; then
9315 found_la="$additional_libdir/lib$name.la"
9320 if test "X$found_dir" = "X"; then
9321 for x in $LDFLAGS $LTLIBICONV; do
9323 acl_save_prefix="$prefix"
9324 prefix="$acl_final_prefix"
9325 acl_save_exec_prefix="$exec_prefix"
9326 exec_prefix="$acl_final_exec_prefix"
9328 exec_prefix="$acl_save_exec_prefix"
9329 prefix="$acl_save_prefix"
9333 dir=`echo "X$x" | sed -e 's/^X-L//'`
9334 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9336 found_so="$dir/lib$name.$shlibext"
9337 if test -f "$dir/lib$name.la"; then
9338 found_la="$dir/lib$name.la"
9341 if test -f "$dir/lib$name.$libext"; then
9343 found_a="$dir/lib$name.$libext"
9344 if test -f "$dir/lib$name.la"; then
9345 found_la="$dir/lib$name.la"
9351 if test "X$found_dir" != "X"; then
9356 if test "X$found_dir" != "X"; then
9357 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9358 if test "X$found_so" != "X"; then
9359 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9363 for x in $ltrpathdirs; do
9364 if test "X$x" = "X$found_dir"; then
9369 if test -z "$haveit"; then
9370 ltrpathdirs="$ltrpathdirs $found_dir"
9372 if test "$hardcode_direct" = yes; then
9373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9375 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9376 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9378 for x in $rpathdirs; do
9379 if test "X$x" = "X$found_dir"; then
9384 if test -z "$haveit"; then
9385 rpathdirs="$rpathdirs $found_dir"
9389 for x in $LDFLAGS $LIBICONV; do
9391 acl_save_prefix="$prefix"
9392 prefix="$acl_final_prefix"
9393 acl_save_exec_prefix="$exec_prefix"
9394 exec_prefix="$acl_final_exec_prefix"
9396 exec_prefix="$acl_save_exec_prefix"
9397 prefix="$acl_save_prefix"
9399 if test "X$x" = "X-L$found_dir"; then
9404 if test -z "$haveit"; then
9405 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9407 if test "$hardcode_minus_L" != no; then
9408 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9410 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9416 if test "X$found_a" != "X"; then
9417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9419 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9422 additional_includedir=
9423 case "$found_dir" in
9425 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9426 additional_includedir="$basedir/include"
9429 if test "X$additional_includedir" != "X"; then
9430 if test "X$additional_includedir" != "X/usr/include"; then
9432 if test "X$additional_includedir" = "X/usr/local/include"; then
9433 if test -n "$GCC"; then
9435 linux*) haveit=yes;;
9439 if test -z "$haveit"; then
9440 for x in $CPPFLAGS $INCICONV; do
9442 acl_save_prefix="$prefix"
9443 prefix="$acl_final_prefix"
9444 acl_save_exec_prefix="$exec_prefix"
9445 exec_prefix="$acl_final_exec_prefix"
9447 exec_prefix="$acl_save_exec_prefix"
9448 prefix="$acl_save_prefix"
9450 if test "X$x" = "X-I$additional_includedir"; then
9455 if test -z "$haveit"; then
9456 if test -d "$additional_includedir"; then
9457 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9463 if test -n "$found_la"; then
9464 save_libdir="$libdir"
9466 */* | *\\*) . "$found_la" ;;
9467 *) . "./$found_la" ;;
9469 libdir="$save_libdir"
9470 for dep in $dependency_libs; do
9473 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9474 if test "X$additional_libdir" != "X/usr/lib"; then
9476 if test "X$additional_libdir" = "X/usr/local/lib"; then
9477 if test -n "$GCC"; then
9479 linux*) haveit=yes;;
9483 if test -z "$haveit"; then
9485 for x in $LDFLAGS $LIBICONV; do
9487 acl_save_prefix="$prefix"
9488 prefix="$acl_final_prefix"
9489 acl_save_exec_prefix="$exec_prefix"
9490 exec_prefix="$acl_final_exec_prefix"
9492 exec_prefix="$acl_save_exec_prefix"
9493 prefix="$acl_save_prefix"
9495 if test "X$x" = "X-L$additional_libdir"; then
9500 if test -z "$haveit"; then
9501 if test -d "$additional_libdir"; then
9502 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9506 for x in $LDFLAGS $LTLIBICONV; do
9508 acl_save_prefix="$prefix"
9509 prefix="$acl_final_prefix"
9510 acl_save_exec_prefix="$exec_prefix"
9511 exec_prefix="$acl_final_exec_prefix"
9513 exec_prefix="$acl_save_exec_prefix"
9514 prefix="$acl_save_prefix"
9516 if test "X$x" = "X-L$additional_libdir"; then
9521 if test -z "$haveit"; then
9522 if test -d "$additional_libdir"; then
9523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9530 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9531 if test "$enable_rpath" != no; then
9533 for x in $rpathdirs; do
9534 if test "X$x" = "X$dir"; then
9539 if test -z "$haveit"; then
9540 rpathdirs="$rpathdirs $dir"
9543 for x in $ltrpathdirs; do
9544 if test "X$x" = "X$dir"; then
9549 if test -z "$haveit"; then
9550 ltrpathdirs="$ltrpathdirs $dir"
9555 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9558 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9561 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9562 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9568 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9569 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9575 if test "X$rpathdirs" != "X"; then
9576 if test -n "$hardcode_libdir_separator"; then
9578 for found_dir in $rpathdirs; do
9579 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9581 acl_save_libdir="$libdir"
9583 eval flag=\"$hardcode_libdir_flag_spec\"
9584 libdir="$acl_save_libdir"
9585 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9587 for found_dir in $rpathdirs; do
9588 acl_save_libdir="$libdir"
9590 eval flag=\"$hardcode_libdir_flag_spec\"
9591 libdir="$acl_save_libdir"
9592 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9596 if test "X$ltrpathdirs" != "X"; then
9597 for found_dir in $ltrpathdirs; do
9598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9608 am_save_CPPFLAGS="$CPPFLAGS"
9610 for element in $INCICONV; do
9612 for x in $CPPFLAGS; do
9614 acl_save_prefix="$prefix"
9615 prefix="$acl_final_prefix"
9616 acl_save_exec_prefix="$exec_prefix"
9617 exec_prefix="$acl_final_exec_prefix"
9619 exec_prefix="$acl_save_exec_prefix"
9620 prefix="$acl_save_prefix"
9622 if test "X$x" = "X$element"; then
9627 if test -z "$haveit"; then
9628 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9634 $as_echo_n "checking for iconv... " >&6; }
9635 if test "${am_cv_func_iconv+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9639 am_cv_func_iconv="no, consider installing GNU libiconv"
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9648 iconv_t cd = iconv_open("","");
9649 iconv(cd,NULL,NULL,NULL,NULL);
9655 if ac_fn_c_try_link "$LINENO"; then :
9656 am_cv_func_iconv=yes
9658 rm -f core conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 if test "$am_cv_func_iconv" != yes; then
9661 am_save_LIBS="$LIBS"
9662 LIBS="$LIBS $LIBICONV"
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h. */
9670 iconv_t cd = iconv_open("","");
9671 iconv(cd,NULL,NULL,NULL,NULL);
9677 if ac_fn_c_try_link "$LINENO"; then :
9679 am_cv_func_iconv=yes
9681 rm -f core conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9683 LIBS="$am_save_LIBS"
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9688 $as_echo "$am_cv_func_iconv" >&6; }
9689 if test "$am_cv_func_iconv" = yes; then
9691 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9694 if test "$am_cv_lib_iconv" = yes; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9696 $as_echo_n "checking how to link with libiconv... " >&6; }
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9698 $as_echo "$LIBICONV" >&6; }
9700 CPPFLAGS="$am_save_CPPFLAGS"
9707 if test "$am_cv_func_iconv" = yes; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9709 $as_echo_n "checking for iconv declaration... " >&6; }
9710 if test "${am_cv_proto_iconv+set}" = set; then :
9711 $as_echo_n "(cached) " >&6
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9723 #if defined(__STDC__) || defined(__cplusplus)
9724 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9737 if ac_fn_c_try_compile "$LINENO"; then :
9738 am_cv_proto_iconv_arg1=""
9740 am_cv_proto_iconv_arg1="const"
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 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);"
9746 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9748 }$am_cv_proto_iconv" >&5
9750 }$am_cv_proto_iconv" >&6; }
9752 cat >>confdefs.h <<_ACEOF
9753 #define ICONV_CONST $am_cv_proto_iconv_arg1
9758 # Until we have in-tree GNU iconv:
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9764 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9765 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9779 if ac_fn_c_try_link "$LINENO"; then :
9780 am_cv_val_LC_MESSAGES=yes
9782 am_cv_val_LC_MESSAGES=no
9784 rm -f core conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9788 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9789 if test $am_cv_val_LC_MESSAGES = yes; then
9791 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9798 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9799 if test "${am_cv_langinfo_codeset+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 #include <langinfo.h>
9808 char* cs = nl_langinfo(CODESET);
9813 if ac_fn_c_try_link "$LINENO"; then :
9814 am_cv_langinfo_codeset=yes
9816 am_cv_langinfo_codeset=no
9818 rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9823 $as_echo "$am_cv_langinfo_codeset" >&6; }
9824 if test $am_cv_langinfo_codeset = yes; then
9826 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9831 # We will need to find libiberty.h and ansidecl.h
9832 saved_CFLAGS="$CFLAGS"
9833 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9834 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9835 strsignal strstr strverscmp \
9836 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9837 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
9839 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9841 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9842 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9843 $as_echo_n "(cached) " >&6
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9848 #define $ac_tr_decl 1
9850 #include "ansidecl.h"
9857 char *(*pfn) = (char *(*)) $ac_func ;
9863 if ac_fn_c_try_compile "$LINENO"; then :
9864 eval "gcc_cv_have_decl_$ac_func=yes"
9866 eval "gcc_cv_have_decl_$ac_func=no"
9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9873 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9874 #define $ac_tr_decl 1
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9880 #define $ac_tr_decl 0
9888 for ac_func in getrlimit setrlimit getrusage
9890 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9892 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9893 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9894 $as_echo_n "(cached) " >&6
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9899 #define $ac_tr_decl 1
9901 #include "ansidecl.h"
9903 #ifdef HAVE_SYS_RESOURCE_H
9904 #include <sys/resource.h>
9912 char *(*pfn) = (char *(*)) $ac_func ;
9918 if ac_fn_c_try_compile "$LINENO"; then :
9919 eval "gcc_cv_have_decl_$ac_func=yes"
9921 eval "gcc_cv_have_decl_$ac_func=no"
9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9928 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9929 #define $ac_tr_decl 1
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9935 #define $ac_tr_decl 0
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9946 #include "ansidecl.h"
9948 #ifdef HAVE_SYS_RESOURCE_H
9949 #include <sys/resource.h>
9960 if ac_fn_c_try_compile "$LINENO"; then :
9964 $as_echo "#define rlim_t long" >>confdefs.h
9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9969 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9970 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9971 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9972 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9973 for ac_func in ldgetname
9975 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9977 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9978 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9979 $as_echo_n "(cached) " >&6
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9984 #define $ac_tr_decl 1
9986 #include "ansidecl.h"
9999 char *(*pfn) = (char *(*)) $ac_func ;
10005 if ac_fn_c_try_compile "$LINENO"; then :
10006 eval "gcc_cv_have_decl_$ac_func=yes"
10008 eval "gcc_cv_have_decl_$ac_func=no"
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10015 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10016 #define $ac_tr_decl 1
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10022 #define $ac_tr_decl 0
10030 for ac_func in times
10032 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10034 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10035 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10036 $as_echo_n "(cached) " >&6
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10041 #define $ac_tr_decl 1
10043 #include "ansidecl.h"
10044 #include "system.h"
10045 #ifdef HAVE_SYS_TIMES_H
10046 #include <sys/times.h>
10054 char *(*pfn) = (char *(*)) $ac_func ;
10060 if ac_fn_c_try_compile "$LINENO"; then :
10061 eval "gcc_cv_have_decl_$ac_func=yes"
10063 eval "gcc_cv_have_decl_$ac_func=no"
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10070 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10071 #define $ac_tr_decl 1
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10077 #define $ac_tr_decl 0
10085 for ac_func in sigaltstack
10087 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10089 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10090 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10091 $as_echo_n "(cached) " >&6
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10096 #define $ac_tr_decl 1
10098 #include "ansidecl.h"
10099 #include "system.h"
10100 #include <signal.h>
10107 char *(*pfn) = (char *(*)) $ac_func ;
10113 if ac_fn_c_try_compile "$LINENO"; then :
10114 eval "gcc_cv_have_decl_$ac_func=yes"
10116 eval "gcc_cv_have_decl_$ac_func=no"
10118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10121 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10123 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10124 #define $ac_tr_decl 1
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10130 #define $ac_tr_decl 0
10138 # More time-related stuff.
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10140 $as_echo_n "checking for struct tms... " >&6; }
10141 if test "${ac_cv_struct_tms+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10148 #include "ansidecl.h"
10149 #include "system.h"
10150 #ifdef HAVE_SYS_TIMES_H
10151 #include <sys/times.h>
10162 if ac_fn_c_try_compile "$LINENO"; then :
10163 ac_cv_struct_tms=yes
10165 ac_cv_struct_tms=no
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10170 $as_echo "$ac_cv_struct_tms" >&6; }
10171 if test $ac_cv_struct_tms = yes; then
10173 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10177 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10178 # revisit after autoconf 2.50.
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10180 $as_echo_n "checking for clock_t... " >&6; }
10181 if test "${gcc_cv_type_clock_t+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10188 #include "ansidecl.h"
10189 #include "system.h"
10199 if ac_fn_c_try_compile "$LINENO"; then :
10200 gcc_cv_type_clock_t=yes
10202 gcc_cv_type_clock_t=no
10204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10207 $as_echo "$gcc_cv_type_clock_t" >&6; }
10208 if test $gcc_cv_type_clock_t = yes; then
10210 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10214 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10215 CFLAGS="$saved_CFLAGS"
10217 # Check whether --enable-initfini-array was given.
10218 if test "${enable_initfini_array+set}" = set; then :
10219 enableval=$enable_initfini_array;
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10223 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10224 if test "${gcc_cv_initfini_array+set}" = set; then :
10225 $as_echo_n "(cached) " >&6
10227 if test "$cross_compiling" = yes; then :
10228 gcc_cv_initfini_array=no
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10234 int main (void) { return x; }
10235 int foo (void) { x = 0; }
10236 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10238 if ac_fn_c_try_run "$LINENO"; then :
10239 gcc_cv_initfini_array=yes
10241 gcc_cv_initfini_array=no
10243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10244 conftest.$ac_objext conftest.beam conftest.$ac_ext
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10249 $as_echo "$gcc_cv_initfini_array" >&6; }
10250 enable_initfini_array=$gcc_cv_initfini_array
10254 if test $enable_initfini_array = yes; then
10256 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10260 # mkdir takes a single argument on some systems.
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10262 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10263 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10269 #include <sys/types.h>
10270 #ifdef HAVE_SYS_STAT_H
10271 # include <sys/stat.h>
10273 #ifdef HAVE_UNISTD_H
10274 # include <unistd.h>
10276 #ifdef HAVE_DIRECT_H
10277 # include <direct.h>
10287 if ac_fn_c_try_compile "$LINENO"; then :
10288 gcc_cv_mkdir_takes_one_arg=no
10290 gcc_cv_mkdir_takes_one_arg=yes
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10295 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10296 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10298 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10309 # With Setjmp/Longjmp based exception handling.
10310 # Check whether --enable-sjlj-exceptions was given.
10311 if test "${enable_sjlj_exceptions+set}" = set; then :
10312 enableval=$enable_sjlj_exceptions; case $target in
10314 if test $enableval != yes; then
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10316 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10321 force_sjlj_exceptions=yes
10325 force_sjlj_exceptions=yes
10329 force_sjlj_exceptions=no
10334 if test $force_sjlj_exceptions = yes; then
10335 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10337 cat >>confdefs.h <<_ACEOF
10338 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10343 # For platforms with the unwind ABI which includes an unwind library,
10344 # libunwind, we can choose to use the system libunwind.
10345 # config.gcc also contains tests of with_system_libunwind.
10348 # Check whether --with-system-libunwind was given.
10349 if test "${with_system_libunwind+set}" = set; then :
10350 withval=$with_system_libunwind;
10353 # If system-libunwind was not specifically set, pick a default setting.
10354 if test x$with_system_libunwind = x; then
10356 ia64-*-hpux*) with_system_libunwind=yes ;;
10357 *) with_system_libunwind=no ;;
10360 # Based on system-libunwind and target, do we have ipinfo?
10361 if test x$with_system_libunwind = xyes; then
10363 ia64-*-*) have_unwind_getipinfo=no ;;
10364 *) have_unwind_getipinfo=yes ;;
10367 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10370 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10371 *) have_unwind_getipinfo=yes ;;
10376 if test x$have_unwind_getipinfo = xyes; then
10378 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10383 # --------------------------------------------------------
10384 # Build, host, and target specific configuration fragments
10385 # --------------------------------------------------------
10387 # Collect build-machine-specific information.
10388 . ${srcdir}/config.build
10390 # Collect host-machine-specific information.
10391 . ${srcdir}/config.host
10395 # Collect target-machine-specific information.
10396 . ${srcdir}/config.gcc
10398 extra_objs="${host_extra_objs} ${extra_objs}"
10399 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10401 # Default the target-machine variables that were not explicitly set.
10402 if test x"$tm_file" = x
10403 then tm_file=$cpu_type/$cpu_type.h; fi
10405 if test x"$extra_headers" = x
10406 then extra_headers=; fi
10408 if test x$md_file = x
10409 then md_file=$cpu_type/$cpu_type.md; fi
10411 if test x$out_file = x
10412 then out_file=$cpu_type/$cpu_type.c; fi
10414 if test x"$tmake_file" = x
10415 then tmake_file=$cpu_type/t-$cpu_type
10418 if test x"$dwarf2" = xyes
10419 then tm_file="$tm_file tm-dwarf2.h"
10422 # Say what files are being used for the output code and MD file.
10423 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10424 echo "Using \`$srcdir/config/$md_file' as machine description file."
10426 # If any of the xm_file variables contain nonexistent files, warn
10427 # about them and drop them.
10430 for x in $build_xm_file; do
10431 if test -f $srcdir/config/$x
10433 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10434 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10437 build_xm_file="$bx"
10440 for x in $host_xm_file; do
10441 if test -f $srcdir/config/$x
10443 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10444 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10450 for x in $xm_file; do
10451 if test -f $srcdir/config/$x
10453 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10454 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10460 for f in $tm_file; do
10463 if test $count = ax; then
10464 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10466 echo "Using the following target machine macro files:"
10467 for f in $tm_file; do
10468 echo " $srcdir/config/$f"
10472 if test x$need_64bit_hwint = xyes; then
10474 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10478 if test x$use_long_long_for_widest_fast_int = xyes; then
10480 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10485 for f in $host_xm_file; do
10488 if test $count = a; then
10490 elif test $count = ax; then
10491 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10493 echo "Using the following host machine macro files:"
10494 for f in $host_xm_file; do
10495 echo " $srcdir/config/$f"
10498 echo "Using ${out_host_hook_obj} for host machine hooks."
10500 if test "$host_xm_file" != "$build_xm_file"; then
10502 for f in $build_xm_file; do
10505 if test $count = a; then
10507 elif test $count = ax; then
10508 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10510 echo "Using the following build machine macro files:"
10511 for f in $build_xm_file; do
10512 echo " $srcdir/config/$f"
10518 powerpc*-*-darwin*)
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10520 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10521 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 #include <sys/cdefs.h>
10528 #include <sys/signal.h>
10529 #include <ucontext.h>
10530 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10533 if ac_fn_c_try_compile "$LINENO"; then :
10534 gcc_cv_mcontext_underscores=no
10536 gcc_cv_mcontext_underscores=yes
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10541 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10542 if test $gcc_cv_mcontext_underscores = yes; then
10544 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10554 # Check if a valid thread package
10555 case ${enable_threads} in
10558 target_thread_file='single'
10562 target_thread_file='single'
10564 aix | dce | gnat | irix | posix | posix95 | rtems | \
10565 single | solaris | vxworks | win32 | mipssde)
10566 target_thread_file=${enable_threads}
10569 echo "${enable_threads} is an unknown thread package" 1>&2
10574 if test x${thread_file} = x; then
10575 # No thread file set by target-specific clauses in config.gcc,
10576 # so use file chosen by default logic above
10577 thread_file=${target_thread_file}
10580 # Make gthr-default.h if we have a thread file.
10582 if test $thread_file != single; then
10583 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10584 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10585 rm -f gthr-default.h-t
10587 mv -f gthr-default.h-t gthr-default.h
10589 gthread_flags=-DHAVE_GTHR_DEFAULT
10598 if test x$enable___cxa_atexit = xyes || \
10599 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10600 if test x$host = x$target; then
10602 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10603 # keyed to flag_use_cxa_atexit
10608 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10609 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10612 echo "__cxa_atexit can't be enabled on this target"
10618 # We can't check for __cxa_atexit when building a cross, so assume
10622 if test x$use_cxa_atexit = xyes; then
10624 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10629 # Look for a file containing extra machine modes.
10630 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10631 extra_modes_file='$(srcdir)'/config/${extra_modes}
10634 cat >>confdefs.h <<_ACEOF
10635 #define EXTRA_MODES_FILE "config/$extra_modes"
10640 # Convert extra_options into a form suitable for Makefile use.
10643 for f in $extra_options; do
10644 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10645 all_opt_files="$all_opt_files $srcdir/config/$f"
10649 # auto-host.h is the file containing items generated by autoconf and is
10650 # the first file included by config.h.
10651 # If host=build, it is correct to have bconfig include auto-host.h
10652 # as well. If host!=build, we are in error and need to do more
10653 # work to find out the build config parameters.
10654 if test x$host = x$build
10656 build_auto=auto-host.h
10658 # We create a subdir, then run autoconf in the subdir.
10659 # To prevent recursion we set host and build for the new
10660 # invocation of configure to the build for this invocation
10667 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10668 *) realsrcdir=../${srcdir};;
10670 saved_CFLAGS="${CFLAGS}"
10671 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10672 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10673 ${realsrcdir}/configure \
10674 --enable-languages=${enable_languages-all} \
10675 --target=$target_alias --host=$build_alias --build=$build_alias
10676 CFLAGS="${saved_CFLAGS}"
10678 # We just finished tests for the build machine, so rename
10679 # the file auto-build.h in the gcc directory.
10680 mv auto-host.h ../auto-build.h
10683 build_auto=auto-build.h
10687 tm_file="${tm_file} defaults.h"
10688 tm_p_file="${tm_p_file} tm-preds.h"
10689 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10690 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10691 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10692 # put this back in temporarily.
10693 xm_file="auto-host.h ansidecl.h ${xm_file}"
10699 # Compile in configure arguments.
10700 if test -f configargs.h ; then
10701 # Being re-configured.
10702 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10703 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10705 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10708 # Double all backslashes and backslash all quotes to turn
10709 # gcc_config_arguments into a C string.
10710 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10711 $gcc_config_arguments
10713 gcc_config_arguments_str=`cat conftest.out`
10716 cat > configargs.h <<EOF
10717 /* Generated automatically. */
10718 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10719 static const char thread_model[] = "$thread_file";
10721 static const struct {
10722 const char *name, *value;
10723 } configure_default_options[] = $configure_default_options;
10726 gcc_BASEVER=`cat $srcdir/BASE-VER`
10727 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10728 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10729 if test -f $srcdir/REVISION ; then
10730 gcc_REVISION=`cat $srcdir/REVISION`
10734 cat > plugin-version.h <<EOF
10735 #include "configargs.h"
10737 static char basever[] = "$gcc_BASEVER";
10738 static char datestamp[] = "$gcc_DATESTAMP";
10739 static char devphase[] = "$gcc_DEVPHASE";
10740 static char revision[] = "$gcc_REVISION";
10742 /* FIXME plugins: We should make the version information more precise.
10743 One way to do is to add a checksum. */
10745 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10746 devphase, revision,
10747 configuration_arguments};
10750 # Internationalization
10751 # If we haven't got the data from the intl directory,
10752 # assume NLS is disabled.
10761 if test -f ../intl/config.intl; then
10762 . ../intl/config.intl
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10765 $as_echo_n "checking whether NLS is requested... " >&6; }
10766 if test x"$USE_NLS" != xyes; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10771 $as_echo "yes" >&6; }
10773 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10777 $as_echo_n "checking for catalogs to be installed... " >&6; }
10778 # Look for .po and .gmo files in the source directory.
10781 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10782 # If there aren't any .gmo files the shell will give us the
10783 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10785 case "$cat" in *\**)
10788 # The quadruple backslash is collapsed to a double backslash
10789 # by the backticks, then collapsed again by the double quotes,
10790 # leaving us with one backslash in the sed expression (right
10791 # before the dot that mustn't act as a wildcard).
10792 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10793 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10794 # The user is allowed to set LINGUAS to a list of languages to
10795 # install catalogs for. If it's empty that means "all of them."
10796 if test "x$LINGUAS" = x; then
10797 CATALOGS="$CATALOGS $cat"
10798 XLINGUAS="$XLINGUAS $lang"
10800 case "$LINGUAS" in *$lang*)
10801 CATALOGS="$CATALOGS $cat"
10802 XLINGUAS="$XLINGUAS $lang"
10807 LINGUAS="$XLINGUAS"
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10809 $as_echo "$LINGUAS" >&6; }
10822 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10823 # -liconv on the link line twice.
10824 case "$LIBINTL" in *$LIBICONV*)
10828 # Check whether --enable-secureplt was given.
10829 if test "${enable_secureplt+set}" = set; then :
10830 enableval=$enable_secureplt;
10834 # Check whether --enable-leading-mingw64-underscores was given.
10835 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10836 enableval=$enable_leading_mingw64_underscores;
10839 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
10841 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10845 # Check whether --enable-cld was given.
10846 if test "${enable_cld+set}" = set; then :
10847 enableval=$enable_cld;
10853 # Check whether --enable-frame-pointer was given.
10854 if test "${enable_frame_pointer+set}" = set; then :
10855 enableval=$enable_frame_pointer;
10859 linux* | darwin[8912]*)
10860 # Enable -fomit-frame-pointer by default for Linux and Darwin with
10862 enable_frame_pointer=no
10865 enable_frame_pointer=yes
10872 # Windows32 Registry support for specifying GCC installation paths.
10873 # Check whether --enable-win32-registry was given.
10874 if test "${enable_win32_registry+set}" = set; then :
10875 enableval=$enable_win32_registry;
10880 win32 | pe | cygwin* | mingw32* | uwin*)
10881 if test "x$enable_win32_registry" != xno; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10883 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10884 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10887 ac_func_search_save_LIBS=$LIBS
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10897 char RegOpenKeyExA ();
10901 return RegOpenKeyExA ();
10906 for ac_lib in '' advapi32; do
10907 if test -z "$ac_lib"; then
10908 ac_res="none required"
10911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10913 if ac_fn_c_try_link "$LINENO"; then :
10914 ac_cv_search_RegOpenKeyExA=$ac_res
10916 rm -f core conftest.err conftest.$ac_objext \
10918 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10922 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10925 ac_cv_search_RegOpenKeyExA=no
10927 rm conftest.$ac_ext
10928 LIBS=$ac_func_search_save_LIBS
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10931 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10932 ac_res=$ac_cv_search_RegOpenKeyExA
10933 if test "$ac_res" != no; then :
10934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10937 enable_win32_registry=no
10942 if test "x$enable_win32_registry" != xno; then
10944 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10947 if test "x$enable_win32_registry" != xyes \
10948 && test "x$enable_win32_registry" != x; then
10950 cat >>confdefs.h <<_ACEOF
10951 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10959 # Get an absolute path to the GCC top-level source directory
10960 holddir=`${PWDCMD-pwd}`
10962 topdir=`${PWDCMD-pwd}`
10965 # Conditionalize the makefile for this host machine.
10967 for f in ${host_xmake_file}
10969 if test -f ${srcdir}/config/$f
10971 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10975 # Conditionalize the makefile for this target machine.
10977 for f in ${tmake_file}
10979 if test -f ${srcdir}/config/$f
10981 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10984 tmake_file="${tmake_file_}"
10986 out_object_file=`basename $out_file .c`.o
10988 tm_file_list="options.h"
10989 tm_include_list="options.h insn-constants.h"
10990 for f in $tm_file; do
10993 f=`echo $f | sed 's/^..//'`
10994 tm_file_list="${tm_file_list} $f"
10995 tm_include_list="${tm_include_list} $f"
10998 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10999 tm_include_list="${tm_include_list} $f"
11002 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11003 tm_include_list="${tm_include_list} config/$f"
11010 for f in $tm_p_file; do
11013 tm_p_file_list="${tm_p_file_list} $f"
11014 tm_p_include_list="${tm_p_include_list} $f"
11017 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11018 tm_p_include_list="${tm_p_include_list} config/$f"
11024 for f in $xm_file; do
11027 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11028 xm_include_list="${xm_include_list} $f"
11031 xm_file_list="${xm_file_list} $f"
11032 xm_include_list="${xm_include_list} $f"
11035 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11036 xm_include_list="${xm_include_list} config/$f"
11042 host_xm_include_list=
11043 for f in $host_xm_file; do
11046 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11047 host_xm_include_list="${host_xm_include_list} $f"
11050 host_xm_file_list="${host_xm_file_list} $f"
11051 host_xm_include_list="${host_xm_include_list} $f"
11054 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11055 host_xm_include_list="${host_xm_include_list} config/$f"
11060 build_xm_file_list=
11061 for f in $build_xm_file; do
11064 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11065 build_xm_include_list="${build_xm_include_list} $f"
11067 auto-build.h | auto-host.h )
11068 build_xm_file_list="${build_xm_file_list} $f"
11069 build_xm_include_list="${build_xm_include_list} $f"
11072 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11073 build_xm_include_list="${build_xm_include_list} config/$f"
11078 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11079 # cross-compiler which does not use the native headers and libraries.
11080 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11083 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11085 if test "x$with_build_sysroot" != x; then
11086 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11088 # This value is used, even on a native system, because
11089 # CROSS_SYSTEM_HEADER_DIR is just
11090 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11091 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11094 if test x$host != x$target
11096 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11098 SYSTEM_HEADER_DIR=$build_system_header_dir
11099 case "$host","$target" in
11100 # Darwin crosses can use the host system's libraries and headers,
11101 # because of the fat library support. Of course, it must be the
11102 # same version of Darwin on both sides. Allow the user to
11103 # just say --target=foo-darwin without a version number to mean
11104 # "the version on this system".
11105 *-*-darwin*,*-*-darwin*)
11106 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11107 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11108 if test $hostos = $targetos -o $targetos = darwin ; then
11110 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11115 i?86-*-*,x86_64-*-* \
11116 | powerpc*-*-*,powerpc64*-*-*)
11117 CROSS="$CROSS -DNATIVE_CROSS" ;;
11122 if test "x$with_headers" = x; then
11129 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11130 SYSTEM_HEADER_DIR=$build_system_header_dir
11133 # If this is a cross-compiler that does not
11134 # have its own set of headers then define
11137 # If this is using newlib, without having the headers available now,
11138 # then define inhibit_libc in LIBGCC2_CFLAGS.
11139 # This prevents libgcc2 from containing any code which requires libc
11141 : ${inhibit_libc=false}
11142 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11143 test x$with_newlib = xyes ; } &&
11144 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11149 # When building gcc with a cross-compiler, we need to adjust things so
11150 # that the generator programs are still built with the native compiler.
11151 # Also, we cannot run fixincludes.
11153 # These are the normal (build=host) settings:
11154 CC_FOR_BUILD='$(CC)'
11155 BUILD_CFLAGS='$(ALL_CFLAGS)'
11156 BUILD_LDFLAGS='$(LDFLAGS)'
11157 STMP_FIXINC=stmp-fixinc
11159 # And these apply if build != host, or we are generating coverage data
11160 if test x$build != x$host || test "x$coverage_flags" != x
11162 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11163 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11166 # Expand extra_headers to include complete path.
11167 # This substitutes for lots of t-* files.
11168 extra_headers_list=
11169 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11170 for file in ${extra_headers} ; do
11171 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11174 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11175 if test x"$use_gcc_tgmath" = xyes
11176 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11179 # Define collect2 in Makefile.
11180 case $host_can_use_collect2 in
11182 *) collect2='collect2$(exeext)' ;;
11186 # Add a definition of USE_COLLECT2 if system wants one.
11187 case $use_collect2 in
11188 no) use_collect2= ;;
11191 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11192 xm_defines="${xm_defines} USE_COLLECT2"
11193 case $host_can_use_collect2 in
11195 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11202 cat >>confdefs.h <<_ACEOF
11203 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11207 # ---------------------------
11208 # Assembler & linker features
11209 # ---------------------------
11211 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11212 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11213 # However when ld-new is first executed from the build tree, libtool will
11214 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11215 # to the build tree. While doing this we need to use the previous-stage
11216 # linker, or we have an infinite loop. The presence of a shell script as
11217 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11218 # the gcc/collect-ld script. So we need to know how libtool works, or
11219 # exec-tool will fail.
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11225 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11230 macro_version='2.2.7a'
11231 macro_revision='1.3134'
11245 ltmain="$ac_aux_dir/ltmain.sh"
11247 # Backslashify metacharacters that are still active within
11248 # double-quoted strings.
11249 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11251 # Same as above, but do not quote variable references.
11252 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11254 # Sed substitution to delay expansion of an escaped shell variable in a
11255 # double_quote_subst'ed string.
11256 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11258 # Sed substitution to delay expansion of an escaped single quote.
11259 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11261 # Sed substitution to avoid accidental globbing in evaled expressions
11262 no_glob_subst='s/\*/\\\*/g'
11264 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11265 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11266 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11269 $as_echo_n "checking how to print strings... " >&6; }
11270 # Test print first, because it will be a builtin if present.
11271 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11272 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11274 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11277 # Use this function as a fallback that always works.
11278 func_fallback_echo ()
11280 eval 'cat <<_LTECHO_EOF
11284 ECHO='func_fallback_echo'
11287 # func_echo_all arg...
11288 # Invoke $ECHO with all args, space-separated.
11295 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11296 $as_echo "printf" >&6; } ;;
11297 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11298 $as_echo "print -r" >&6; } ;;
11299 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11300 $as_echo "cat" >&6; } ;;
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11317 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11318 if test "${ac_cv_path_SED+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11321 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11322 for ac_i in 1 2 3 4 5 6 7; do
11323 ac_script="$ac_script$as_nl$ac_script"
11325 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11326 { ac_script=; unset ac_script;}
11327 if test -z "$SED"; then
11328 ac_path_SED_found=false
11329 # Loop through the user's path and test for each of PROGNAME-LIST
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11334 test -z "$as_dir" && as_dir=.
11335 for ac_prog in sed gsed; do
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11338 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11339 # Check for GNU ac_path_SED and select it if it is found.
11340 # Check for GNU $ac_path_SED
11341 case `"$ac_path_SED" --version 2>&1` in
11343 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11346 $as_echo_n 0123456789 >"conftest.in"
11349 cat "conftest.in" "conftest.in" >"conftest.tmp"
11350 mv "conftest.tmp" "conftest.in"
11351 cp "conftest.in" "conftest.nl"
11352 $as_echo '' >> "conftest.nl"
11353 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11355 as_fn_arith $ac_count + 1 && ac_count=$as_val
11356 if test $ac_count -gt ${ac_path_SED_max-0}; then
11357 # Best one so far, save it but keep looking for a better one
11358 ac_cv_path_SED="$ac_path_SED"
11359 ac_path_SED_max=$ac_count
11361 # 10*(2^10) chars as input seems more than enough
11362 test $ac_count -gt 10 && break
11364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11367 $ac_path_SED_found && break 3
11372 if test -z "$ac_cv_path_SED"; then
11373 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11376 ac_cv_path_SED=$SED
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11381 $as_echo "$ac_cv_path_SED" >&6; }
11382 SED="$ac_cv_path_SED"
11385 test -z "$SED" && SED=sed
11386 Xsed="$SED -e 1s/^X//"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11399 $as_echo_n "checking for fgrep... " >&6; }
11400 if test "${ac_cv_path_FGREP+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11403 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11404 then ac_cv_path_FGREP="$GREP -F"
11406 if test -z "$FGREP"; then
11407 ac_path_FGREP_found=false
11408 # Loop through the user's path and test for each of PROGNAME-LIST
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11413 test -z "$as_dir" && as_dir=.
11414 for ac_prog in fgrep; do
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11417 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11418 # Check for GNU ac_path_FGREP and select it if it is found.
11419 # Check for GNU $ac_path_FGREP
11420 case `"$ac_path_FGREP" --version 2>&1` in
11422 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11425 $as_echo_n 0123456789 >"conftest.in"
11428 cat "conftest.in" "conftest.in" >"conftest.tmp"
11429 mv "conftest.tmp" "conftest.in"
11430 cp "conftest.in" "conftest.nl"
11431 $as_echo 'FGREP' >> "conftest.nl"
11432 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11433 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11434 as_fn_arith $ac_count + 1 && ac_count=$as_val
11435 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11436 # Best one so far, save it but keep looking for a better one
11437 ac_cv_path_FGREP="$ac_path_FGREP"
11438 ac_path_FGREP_max=$ac_count
11440 # 10*(2^10) chars as input seems more than enough
11441 test $ac_count -gt 10 && break
11443 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11446 $ac_path_FGREP_found && break 3
11451 if test -z "$ac_cv_path_FGREP"; then
11452 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11455 ac_cv_path_FGREP=$FGREP
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11461 $as_echo "$ac_cv_path_FGREP" >&6; }
11462 FGREP="$ac_cv_path_FGREP"
11465 test -z "$GREP" && GREP=grep
11485 # Check whether --with-gnu-ld was given.
11486 if test "${with_gnu_ld+set}" = set; then :
11487 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11493 if test "$GCC" = yes; then
11494 # Check if gcc -print-prog-name=ld gives a path.
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11496 $as_echo_n "checking for ld used by $CC... " >&6; }
11499 # gcc leaves a trailing carriage return which upsets mingw
11500 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11502 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11505 # Accept absolute paths.
11507 re_direlt='/[^/][^/]*/\.\./'
11508 # Canonicalize the pathname of ld
11509 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11510 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11511 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11513 test -z "$LD" && LD="$ac_prog"
11516 # If it fails, then pretend we aren't using GCC.
11520 # If it is relative, then search for the first ld in PATH.
11521 with_gnu_ld=unknown
11524 elif test "$with_gnu_ld" = yes; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11526 $as_echo_n "checking for GNU ld... " >&6; }
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11529 $as_echo_n "checking for non-GNU ld... " >&6; }
11531 if test "${lt_cv_path_LD+set}" = set; then :
11532 $as_echo_n "(cached) " >&6
11534 if test -z "$LD"; then
11535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11536 for ac_dir in $PATH; do
11538 test -z "$ac_dir" && ac_dir=.
11539 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11540 lt_cv_path_LD="$ac_dir/$ac_prog"
11541 # Check to see if the program is GNU ld. I'd rather use --version,
11542 # but apparently some variants of GNU ld only accept -v.
11543 # Break only if it was the GNU/non-GNU ld that we prefer.
11544 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11545 *GNU* | *'with BFD'*)
11546 test "$with_gnu_ld" != no && break
11549 test "$with_gnu_ld" != yes && break
11556 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11560 LD="$lt_cv_path_LD"
11561 if test -n "$LD"; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11563 $as_echo "$LD" >&6; }
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11568 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11570 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11571 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11574 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11575 case `$LD -v 2>&1 </dev/null` in
11576 *GNU* | *'with BFD'*)
11577 lt_cv_prog_gnu_ld=yes
11580 lt_cv_prog_gnu_ld=no
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11585 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11586 with_gnu_ld=$lt_cv_prog_gnu_ld
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11597 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11598 if test "${lt_cv_path_NM+set}" = set; then :
11599 $as_echo_n "(cached) " >&6
11601 if test -n "$NM"; then
11602 # Let the user override the test.
11603 lt_cv_path_NM="$NM"
11605 lt_nm_to_check="${ac_tool_prefix}nm"
11606 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11607 lt_nm_to_check="$lt_nm_to_check nm"
11609 for lt_tmp_nm in $lt_nm_to_check; do
11610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11611 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11613 test -z "$ac_dir" && ac_dir=.
11614 tmp_nm="$ac_dir/$lt_tmp_nm"
11615 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11616 # Check to see if the nm accepts a BSD-compat flag.
11617 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11618 # nm: unknown option "B" ignored
11619 # Tru64's nm complains that /dev/null is an invalid object file
11620 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11621 */dev/null* | *'Invalid file or object type'*)
11622 lt_cv_path_NM="$tmp_nm -B"
11626 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11628 lt_cv_path_NM="$tmp_nm -p"
11632 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11633 continue # so that we can try to find one that supports BSD flags
11642 : ${lt_cv_path_NM=no}
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11646 $as_echo "$lt_cv_path_NM" >&6; }
11647 if test "$lt_cv_path_NM" != "no"; then
11648 NM="$lt_cv_path_NM"
11650 # Didn't find any BSD compatible name lister, look for dumpbin.
11651 if test -n "$DUMPBIN"; then :
11652 # Let the user override the test.
11654 if test -n "$ac_tool_prefix"; then
11655 for ac_prog in dumpbin "link -dump"
11657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660 $as_echo_n "checking for $ac_word... " >&6; }
11661 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11664 if test -n "$DUMPBIN"; then
11665 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668 for as_dir in $PATH
11671 test -z "$as_dir" && as_dir=.
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11674 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 DUMPBIN=$ac_cv_prog_DUMPBIN
11685 if test -n "$DUMPBIN"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11687 $as_echo "$DUMPBIN" >&6; }
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11694 test -n "$DUMPBIN" && break
11697 if test -z "$DUMPBIN"; then
11698 ac_ct_DUMPBIN=$DUMPBIN
11699 for ac_prog in dumpbin "link -dump"
11701 # Extract the first word of "$ac_prog", so it can be a program name with args.
11702 set dummy $ac_prog; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11708 if test -n "$ac_ct_DUMPBIN"; then
11709 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11715 test -z "$as_dir" && as_dir=.
11716 for ac_exec_ext in '' $ac_executable_extensions; do
11717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11718 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11729 if test -n "$ac_ct_DUMPBIN"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11731 $as_echo "$ac_ct_DUMPBIN" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11738 test -n "$ac_ct_DUMPBIN" && break
11741 if test "x$ac_ct_DUMPBIN" = x; then
11744 case $cross_compiling:$ac_tool_warned in
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11748 ac_tool_warned=yes ;;
11750 DUMPBIN=$ac_ct_DUMPBIN
11754 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11756 DUMPBIN="$DUMPBIN -symbols"
11764 if test "$DUMPBIN" != ":"; then
11768 test -z "$NM" && NM=nm
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11776 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11777 if test "${lt_cv_nm_interface+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
11780 lt_cv_nm_interface="BSD nm"
11781 echo "int some_variable = 0;" > conftest.$ac_ext
11782 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11783 (eval "$ac_compile" 2>conftest.err)
11784 cat conftest.err >&5
11785 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11786 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11787 cat conftest.err >&5
11788 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11789 cat conftest.out >&5
11790 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11791 lt_cv_nm_interface="MS dumpbin"
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11796 $as_echo "$lt_cv_nm_interface" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11799 $as_echo_n "checking whether ln -s works... " >&6; }
11801 if test "$LN_S" = "ln -s"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11803 $as_echo "yes" >&6; }
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11806 $as_echo "no, using $LN_S" >&6; }
11809 # find the maximum length of command line arguments
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11811 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11812 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11820 # On DJGPP, this test can blow up pretty badly due to problems in libc
11821 # (any single argument exceeding 2000 bytes causes a buffer overrun
11822 # during glob expansion). Even if it were fixed, the result of this
11823 # check would be larger than it should be.
11824 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11828 # Under GNU Hurd, this test is not required because there is
11829 # no limit to the length of command line arguments.
11830 # Libtool will interpret -1 as no limit whatsoever
11831 lt_cv_sys_max_cmd_len=-1;
11834 cygwin* | mingw* | cegcc*)
11835 # On Win9x/ME, this test blows up -- it succeeds, but takes
11836 # about 5 minutes as the teststring grows exponentially.
11837 # Worse, since 9x/ME are not pre-emptively multitasking,
11838 # you end up with a "frozen" computer, even though with patience
11839 # the test eventually succeeds (with a max line length of 256k).
11840 # Instead, let's just punt: use the minimum linelength reported by
11841 # all of the supported platforms: 8192 (on NT/2K/XP).
11842 lt_cv_sys_max_cmd_len=8192;
11846 # On MiNT this can take a long time and run out of memory.
11847 lt_cv_sys_max_cmd_len=8192;
11851 # On AmigaOS with pdksh, this test takes hours, literally.
11852 # So we just punt and use a minimum line length of 8192.
11853 lt_cv_sys_max_cmd_len=8192;
11856 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11857 # This has been around since 386BSD, at least. Likely further.
11858 if test -x /sbin/sysctl; then
11859 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11860 elif test -x /usr/sbin/sysctl; then
11861 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11863 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11865 # And add a safety zone
11866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11871 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11872 lt_cv_sys_max_cmd_len=196608
11876 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11877 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11878 # nice to cause kernel panics so lets avoid the loop below.
11879 # First set a reasonable default.
11880 lt_cv_sys_max_cmd_len=16384
11882 if test -x /sbin/sysconfig; then
11883 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11884 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11889 lt_cv_sys_max_cmd_len=102400
11891 sysv5* | sco5v6* | sysv4.2uw2*)
11892 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11893 if test -n "$kargmax"; then
11894 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11896 lt_cv_sys_max_cmd_len=32768
11900 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11901 if test -n "$lt_cv_sys_max_cmd_len"; then
11902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11905 # Make teststring a little bigger before we do anything with it.
11906 # a 1K string should be a reasonable start.
11907 for i in 1 2 3 4 5 6 7 8 ; do
11908 teststring=$teststring$teststring
11910 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11911 # If test is not a shell built-in, we'll probably end up computing a
11912 # maximum length that is only half of the actual maximum length, but
11914 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11915 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11916 test $i != 17 # 1/2 MB should be enough
11919 teststring=$teststring$teststring
11921 # Only check the string length outside the loop.
11922 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11924 # Add a significant safety factor because C++ compilers can tack on
11925 # massive amounts of additional arguments before passing them to the
11926 # linker. It appears as though 1/2 is a usable value.
11927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11934 if test -n $lt_cv_sys_max_cmd_len ; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11936 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11939 $as_echo "none" >&6; }
11941 max_cmd_len=$lt_cv_sys_max_cmd_len
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11953 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11954 # Try some XSI features
11956 ( _lt_dummy="a/b/c"
11957 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11959 && eval 'test $(( 1 + 1 )) -eq 2 \
11960 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11963 $as_echo "$xsi_shell" >&6; }
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11967 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11969 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11971 && lt_shell_append=yes
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11973 $as_echo "$lt_shell_append" >&6; }
11976 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11986 # test EBCDIC or ASCII
11987 case `echo X|tr X '\101'` in
11988 A) # ASCII based system
11989 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11990 lt_SP2NL='tr \040 \012'
11991 lt_NL2SP='tr \015\012 \040\040'
11993 *) # EBCDIC based system
11994 lt_SP2NL='tr \100 \n'
11995 lt_NL2SP='tr \r\n \100\100'
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12008 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12009 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12012 lt_cv_ld_reload_flag='-r'
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12015 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12016 reload_flag=$lt_cv_ld_reload_flag
12017 case $reload_flag in
12019 *) reload_flag=" $reload_flag" ;;
12021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12024 if test "$GCC" = yes; then
12025 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12040 if test -n "$ac_tool_prefix"; then
12041 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12042 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
12048 if test -n "$OBJDUMP"; then
12049 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12058 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 OBJDUMP=$ac_cv_prog_OBJDUMP
12069 if test -n "$OBJDUMP"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12071 $as_echo "$OBJDUMP" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12079 if test -z "$ac_cv_prog_OBJDUMP"; then
12080 ac_ct_OBJDUMP=$OBJDUMP
12081 # Extract the first word of "objdump", so it can be a program name with args.
12082 set dummy objdump; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12088 if test -n "$ac_ct_OBJDUMP"; then
12089 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12098 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12109 if test -n "$ac_ct_OBJDUMP"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12111 $as_echo "$ac_ct_OBJDUMP" >&6; }
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12117 if test "x$ac_ct_OBJDUMP" = x; then
12120 case $cross_compiling:$ac_tool_warned in
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12124 ac_tool_warned=yes ;;
12126 OBJDUMP=$ac_ct_OBJDUMP
12129 OBJDUMP="$ac_cv_prog_OBJDUMP"
12132 test -z "$OBJDUMP" && OBJDUMP=objdump
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12143 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12144 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
12147 lt_cv_file_magic_cmd='$MAGIC_CMD'
12148 lt_cv_file_magic_test_file=
12149 lt_cv_deplibs_check_method='unknown'
12150 # Need to set the preceding variable on all platforms that support
12151 # interlibrary dependencies.
12152 # 'none' -- dependencies not supported.
12153 # `unknown' -- same as none, but documents that we really don't know.
12154 # 'pass_all' -- all dependencies passed with no checks.
12155 # 'test_compile' -- check by making test program.
12156 # 'file_magic [[regex]]' -- check by looking for files in library path
12157 # which responds to the $file_magic_cmd with a given extended regex.
12158 # If you have `file' or equivalent on your system and you're not sure
12159 # whether `pass_all' will *always* work, you probably want this one.
12163 lt_cv_deplibs_check_method=pass_all
12167 lt_cv_deplibs_check_method=pass_all
12171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12172 lt_cv_file_magic_cmd='/usr/bin/file -L'
12173 lt_cv_file_magic_test_file=/shlib/libc.so
12177 # func_win32_libid is a shell function defined in ltmain.sh
12178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12179 lt_cv_file_magic_cmd='func_win32_libid'
12183 # Base MSYS/MinGW do not provide the 'file' command needed by
12184 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12185 # unless we find 'file', for example because we are cross-compiling.
12186 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12187 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12188 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12189 lt_cv_file_magic_cmd='func_win32_libid'
12191 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12192 lt_cv_file_magic_cmd='$OBJDUMP -f'
12197 # use the weaker test based on 'objdump'. See mingw*.
12198 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12199 lt_cv_file_magic_cmd='$OBJDUMP -f'
12202 darwin* | rhapsody*)
12203 lt_cv_deplibs_check_method=pass_all
12206 freebsd* | dragonfly*)
12207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12210 # Not sure whether the presence of OpenBSD here was a mistake.
12211 # Let's accept both of them until this is cleared up.
12212 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12213 lt_cv_file_magic_cmd=/usr/bin/file
12214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12218 lt_cv_deplibs_check_method=pass_all
12223 lt_cv_deplibs_check_method=pass_all
12227 lt_cv_deplibs_check_method=pass_all
12230 hpux10.20* | hpux11*)
12231 lt_cv_file_magic_cmd=/usr/bin/file
12234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12235 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12238 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]'
12239 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12242 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12243 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12249 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12253 irix5* | irix6* | nonstopux*)
12255 *-32|*"-32 ") libmagic=32-bit;;
12256 *-n32|*"-n32 ") libmagic=N32;;
12257 *-64|*"-64 ") libmagic=64-bit;;
12258 *) libmagic=never-match;;
12260 lt_cv_deplibs_check_method=pass_all
12263 # This must be Linux ELF.
12264 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12265 lt_cv_deplibs_check_method=pass_all
12269 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12278 lt_cv_file_magic_cmd=/usr/bin/file
12279 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12283 lt_cv_deplibs_check_method=pass_all
12287 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12294 osf3* | osf4* | osf5*)
12295 lt_cv_deplibs_check_method=pass_all
12299 lt_cv_deplibs_check_method=pass_all
12303 lt_cv_deplibs_check_method=pass_all
12306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12307 lt_cv_deplibs_check_method=pass_all
12311 case $host_vendor in
12313 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]'
12314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12317 lt_cv_deplibs_check_method=pass_all
12320 lt_cv_file_magic_cmd='/bin/file'
12321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12324 lt_cv_file_magic_cmd='/bin/file'
12325 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12326 lt_cv_file_magic_test_file=/lib/libc.so
12329 lt_cv_deplibs_check_method=pass_all
12332 lt_cv_deplibs_check_method=pass_all
12338 lt_cv_deplibs_check_method=pass_all
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12344 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12345 file_magic_cmd=$lt_cv_file_magic_cmd
12346 deplibs_check_method=$lt_cv_deplibs_check_method
12347 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12360 if test -n "$ac_tool_prefix"; then
12361 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12362 set dummy ${ac_tool_prefix}ar; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if test "${ac_cv_prog_AR+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12368 if test -n "$AR"; then
12369 ac_cv_prog_AR="$AR" # Let the user override the test.
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_prog_AR="${ac_tool_prefix}ar"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 if test -n "$AR"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12391 $as_echo "$AR" >&6; }
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12399 if test -z "$ac_cv_prog_AR"; then
12401 # Extract the first word of "ar", so it can be a program name with args.
12402 set dummy ar; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12408 if test -n "$ac_ct_AR"; then
12409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12415 test -z "$as_dir" && as_dir=.
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12418 ac_cv_prog_ac_ct_AR="ar"
12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12429 if test -n "$ac_ct_AR"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12431 $as_echo "$ac_ct_AR" >&6; }
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12437 if test "x$ac_ct_AR" = x; then
12440 case $cross_compiling:$ac_tool_warned in
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12444 ac_tool_warned=yes ;;
12449 AR="$ac_cv_prog_AR"
12452 test -z "$AR" && AR=ar
12453 test -z "$AR_FLAGS" && AR_FLAGS=cru
12465 if test -n "$ac_tool_prefix"; then
12466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12467 set dummy ${ac_tool_prefix}strip; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if test "${ac_cv_prog_STRIP+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12473 if test -n "$STRIP"; then
12474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 STRIP=$ac_cv_prog_STRIP
12494 if test -n "$STRIP"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12496 $as_echo "$STRIP" >&6; }
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12504 if test -z "$ac_cv_prog_STRIP"; then
12506 # Extract the first word of "strip", so it can be a program name with args.
12507 set dummy strip; ac_word=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12513 if test -n "$ac_ct_STRIP"; then
12514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517 for as_dir in $PATH
12520 test -z "$as_dir" && as_dir=.
12521 for ac_exec_ext in '' $ac_executable_extensions; do
12522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12523 ac_cv_prog_ac_ct_STRIP="strip"
12524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12534 if test -n "$ac_ct_STRIP"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12536 $as_echo "$ac_ct_STRIP" >&6; }
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12542 if test "x$ac_ct_STRIP" = x; then
12545 case $cross_compiling:$ac_tool_warned in
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12549 ac_tool_warned=yes ;;
12554 STRIP="$ac_cv_prog_STRIP"
12557 test -z "$STRIP" && STRIP=:
12564 if test -n "$ac_tool_prefix"; then
12565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12572 if test -n "$RANLIB"; then
12573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576 for as_dir in $PATH
12579 test -z "$as_dir" && as_dir=.
12580 for ac_exec_ext in '' $ac_executable_extensions; do
12581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 RANLIB=$ac_cv_prog_RANLIB
12593 if test -n "$RANLIB"; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12595 $as_echo "$RANLIB" >&6; }
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; }
12603 if test -z "$ac_cv_prog_RANLIB"; then
12604 ac_ct_RANLIB=$RANLIB
12605 # Extract the first word of "ranlib", so it can be a program name with args.
12606 set dummy ranlib; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12612 if test -n "$ac_ct_RANLIB"; then
12613 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12619 test -z "$as_dir" && as_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
12621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12622 ac_cv_prog_ac_ct_RANLIB="ranlib"
12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12633 if test -n "$ac_ct_RANLIB"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12635 $as_echo "$ac_ct_RANLIB" >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12641 if test "x$ac_ct_RANLIB" = x; then
12644 case $cross_compiling:$ac_tool_warned in
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12648 ac_tool_warned=yes ;;
12650 RANLIB=$ac_ct_RANLIB
12653 RANLIB="$ac_cv_prog_RANLIB"
12656 test -z "$RANLIB" && RANLIB=:
12663 # Determine commands to create old-style static archives.
12664 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12665 old_postinstall_cmds='chmod 644 $oldlib'
12666 old_postuninstall_cmds=
12668 if test -n "$RANLIB"; then
12671 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12674 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12677 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12682 lock_old_archive_extraction=yes ;;
12684 lock_old_archive_extraction=no ;;
12725 # If no C compiler was specified, use CC.
12728 # If no C compiler flags were specified, use CFLAGS.
12729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12731 # Allow CC to be a program name with arguments.
12735 # Check for command to grab the raw symbol name followed by C symbol from nm.
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12737 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12738 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12742 # These are sane defaults that work on at least a few old systems.
12743 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12745 # Character class describing NM global symbol codes.
12746 symcode='[BCDEGRST]'
12748 # Regexp to match symbols that can be accessed directly from C.
12749 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12751 # Define system-specific variables.
12756 cygwin* | mingw* | pw32* | cegcc*)
12757 symcode='[ABCDGISTW]'
12760 if test "$host_cpu" = ia64; then
12761 symcode='[ABCDEGRST]'
12764 irix* | nonstopux*)
12765 symcode='[BCDEGRST]'
12768 symcode='[BCDEGQRST]'
12779 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12787 # If we're using GNU nm, then use its standard symbol codes.
12788 case `$NM -V 2>&1` in
12789 *GNU* | *'with BFD'*)
12790 symcode='[ABCDGIRSTW]' ;;
12793 # Transform an extracted symbol line into a proper C declaration.
12794 # Some systems (esp. on ia64) link data and code symbols differently,
12795 # so use this general approach.
12796 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12798 # Transform an extracted symbol line into symbol name and symbol address
12799 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12800 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'"
12802 # Handle CRLF in mingw tool chain
12806 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12810 # Try without a prefix underscore, then with it.
12811 for ac_symprfx in "" "_"; do
12813 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12814 symxfrm="\\1 $ac_symprfx\\2 \\2"
12816 # Write the raw and C identifiers.
12817 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12818 # Fake it for dumpbin and say T for any non-static function
12819 # and D for any global variable.
12820 # Also find C++ and __fastcall symbols from MSVC++,
12821 # which start with @ or ?.
12822 lt_cv_sys_global_symbol_pipe="$AWK '"\
12823 " {last_section=section; section=\$ 3};"\
12824 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12825 " \$ 0!~/External *\|/{next};"\
12826 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12827 " {if(hide[section]) next};"\
12828 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12829 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12830 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12831 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12832 " ' prfx=^$ac_symprfx"
12834 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12837 # Check to see that the pipe works correctly.
12841 cat > conftest.$ac_ext <<_LT_EOF
12846 void nm_test_func(void);
12847 void nm_test_func(void){}
12851 int main(){nm_test_var='a';nm_test_func();return(0);}
12854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12855 (eval $ac_compile) 2>&5
12857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12858 test $ac_status = 0; }; then
12859 # Now try to grab the symbols.
12861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12862 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12865 test $ac_status = 0; } && test -s "$nlist"; then
12866 # Try sorting and uniquifying the output.
12867 if sort "$nlist" | uniq > "$nlist"T; then
12868 mv -f "$nlist"T "$nlist"
12873 # Make sure that we snagged all the symbols we need.
12874 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12875 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12876 cat <<_LT_EOF > conftest.$ac_ext
12882 # Now generate the symbol file.
12883 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12885 cat <<_LT_EOF >> conftest.$ac_ext
12887 /* The mapping between symbol names and symbols. */
12892 lt__PROGRAM__LTX_preloaded_symbols[] =
12894 { "@PROGRAM@", (void *) 0 },
12896 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12897 cat <<\_LT_EOF >> conftest.$ac_ext
12901 /* This works around a problem in FreeBSD linker */
12902 #ifdef FREEBSD_WORKAROUND
12903 static const void *lt_preloaded_setup() {
12904 return lt__PROGRAM__LTX_preloaded_symbols;
12912 # Now try linking the two files.
12913 mv conftest.$ac_objext conftstm.$ac_objext
12914 lt_save_LIBS="$LIBS"
12915 lt_save_CFLAGS="$CFLAGS"
12916 LIBS="conftstm.$ac_objext"
12917 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12919 (eval $ac_link) 2>&5
12921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12925 LIBS="$lt_save_LIBS"
12926 CFLAGS="$lt_save_CFLAGS"
12928 echo "cannot find nm_test_func in $nlist" >&5
12931 echo "cannot find nm_test_var in $nlist" >&5
12934 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12937 echo "$progname: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12940 rm -rf conftest* conftst*
12942 # Do not use the global_symbol_pipe unless it works.
12943 if test "$pipe_works" = yes; then
12946 lt_cv_sys_global_symbol_pipe=
12952 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12953 lt_cv_sys_global_symbol_to_cdecl=
12955 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12957 $as_echo "failed" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12960 $as_echo "ok" >&6; }
12984 # Check whether --enable-libtool-lock was given.
12985 if test "${enable_libtool_lock+set}" = set; then :
12986 enableval=$enable_libtool_lock;
12989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12991 # Some flags need to be propagated to the compiler or linker for good
12995 # Find out which ABI we are using.
12996 echo 'int i;' > conftest.$ac_ext
12997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12998 (eval $ac_compile) 2>&5
13000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001 test $ac_status = 0; }; then
13002 case `/usr/bin/file conftest.$ac_objext` in
13004 HPUX_IA64_MODE="32"
13007 HPUX_IA64_MODE="64"
13014 # Find out which ABI we are using.
13015 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13017 (eval $ac_compile) 2>&5
13019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13020 test $ac_status = 0; }; then
13021 if test "$lt_cv_prog_gnu_ld" = yes; then
13022 case `/usr/bin/file conftest.$ac_objext` in
13024 LD="${LD-ld} -melf32bsmip"
13027 LD="${LD-ld} -melf32bmipn32"
13030 LD="${LD-ld} -melf64bmip"
13034 case `/usr/bin/file conftest.$ac_objext` in
13050 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13051 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13052 # Find out which ABI we are using.
13053 echo 'int i;' > conftest.$ac_ext
13054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13055 (eval $ac_compile) 2>&5
13057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13058 test $ac_status = 0; }; then
13059 case `/usr/bin/file conftest.o` in
13062 x86_64-*kfreebsd*-gnu)
13063 LD="${LD-ld} -m elf_i386_fbsd"
13066 LD="${LD-ld} -m elf_i386"
13068 ppc64-*linux*|powerpc64-*linux*)
13069 LD="${LD-ld} -m elf32ppclinux"
13072 LD="${LD-ld} -m elf_s390"
13075 LD="${LD-ld} -m elf32_sparc"
13081 x86_64-*kfreebsd*-gnu)
13082 LD="${LD-ld} -m elf_x86_64_fbsd"
13085 LD="${LD-ld} -m elf_x86_64"
13087 ppc*-*linux*|powerpc*-*linux*)
13088 LD="${LD-ld} -m elf64ppc"
13090 s390*-*linux*|s390*-*tpf*)
13091 LD="${LD-ld} -m elf64_s390"
13094 LD="${LD-ld} -m elf64_sparc"
13104 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13105 SAVE_CFLAGS="$CFLAGS"
13106 CFLAGS="$CFLAGS -belf"
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13108 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13109 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13113 ac_cpp='$CPP $CPPFLAGS'
13114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13129 if ac_fn_c_try_link "$LINENO"; then :
13130 lt_cv_cc_needs_belf=yes
13132 lt_cv_cc_needs_belf=no
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13137 ac_cpp='$CPP $CPPFLAGS'
13138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13144 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13145 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13146 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13147 CFLAGS="$SAVE_CFLAGS"
13151 # Find out which ABI we are using.
13152 echo 'int i;' > conftest.$ac_ext
13153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13154 (eval $ac_compile) 2>&5
13156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13157 test $ac_status = 0; }; then
13158 case `/usr/bin/file conftest.o` in
13160 case $lt_cv_prog_gnu_ld in
13161 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13163 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13175 need_locks="$enable_libtool_lock"
13179 rhapsody* | darwin*)
13180 if test -n "$ac_tool_prefix"; then
13181 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13182 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184 $as_echo_n "checking for $ac_word... " >&6; }
13185 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13186 $as_echo_n "(cached) " >&6
13188 if test -n "$DSYMUTIL"; then
13189 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13195 test -z "$as_dir" && as_dir=.
13196 for ac_exec_ext in '' $ac_executable_extensions; do
13197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13198 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13209 if test -n "$DSYMUTIL"; then
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13211 $as_echo "$DSYMUTIL" >&6; }
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13219 if test -z "$ac_cv_prog_DSYMUTIL"; then
13220 ac_ct_DSYMUTIL=$DSYMUTIL
13221 # Extract the first word of "dsymutil", so it can be a program name with args.
13222 set dummy dsymutil; ac_word=$2
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224 $as_echo_n "checking for $ac_word... " >&6; }
13225 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13226 $as_echo_n "(cached) " >&6
13228 if test -n "$ac_ct_DSYMUTIL"; then
13229 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $PATH
13235 test -z "$as_dir" && as_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13238 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13249 if test -n "$ac_ct_DSYMUTIL"; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13251 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13257 if test "x$ac_ct_DSYMUTIL" = x; then
13260 case $cross_compiling:$ac_tool_warned in
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13264 ac_tool_warned=yes ;;
13266 DSYMUTIL=$ac_ct_DSYMUTIL
13269 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13272 if test -n "$ac_tool_prefix"; then
13273 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13274 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13280 if test -n "$NMEDIT"; then
13281 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13300 NMEDIT=$ac_cv_prog_NMEDIT
13301 if test -n "$NMEDIT"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13303 $as_echo "$NMEDIT" >&6; }
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13311 if test -z "$ac_cv_prog_NMEDIT"; then
13312 ac_ct_NMEDIT=$NMEDIT
13313 # Extract the first word of "nmedit", so it can be a program name with args.
13314 set dummy nmedit; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13318 $as_echo_n "(cached) " >&6
13320 if test -n "$ac_ct_NMEDIT"; then
13321 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
13329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13330 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13341 if test -n "$ac_ct_NMEDIT"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13343 $as_echo "$ac_ct_NMEDIT" >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13349 if test "x$ac_ct_NMEDIT" = x; then
13352 case $cross_compiling:$ac_tool_warned in
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13356 ac_tool_warned=yes ;;
13358 NMEDIT=$ac_ct_NMEDIT
13361 NMEDIT="$ac_cv_prog_NMEDIT"
13364 if test -n "$ac_tool_prefix"; then
13365 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13366 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if test "${ac_cv_prog_LIPO+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13372 if test -n "$LIPO"; then
13373 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13379 test -z "$as_dir" && as_dir=.
13380 for ac_exec_ext in '' $ac_executable_extensions; do
13381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 LIPO=$ac_cv_prog_LIPO
13393 if test -n "$LIPO"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13395 $as_echo "$LIPO" >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13403 if test -z "$ac_cv_prog_LIPO"; then
13405 # Extract the first word of "lipo", so it can be a program name with args.
13406 set dummy lipo; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13412 if test -n "$ac_ct_LIPO"; then
13413 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH
13419 test -z "$as_dir" && as_dir=.
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13422 ac_cv_prog_ac_ct_LIPO="lipo"
13423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13432 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13433 if test -n "$ac_ct_LIPO"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13435 $as_echo "$ac_ct_LIPO" >&6; }
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13441 if test "x$ac_ct_LIPO" = x; then
13444 case $cross_compiling:$ac_tool_warned in
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13448 ac_tool_warned=yes ;;
13453 LIPO="$ac_cv_prog_LIPO"
13456 if test -n "$ac_tool_prefix"; then
13457 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13458 set dummy ${ac_tool_prefix}otool; ac_word=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460 $as_echo_n "checking for $ac_word... " >&6; }
13461 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13464 if test -n "$OTOOL"; then
13465 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468 for as_dir in $PATH
13471 test -z "$as_dir" && as_dir=.
13472 for ac_exec_ext in '' $ac_executable_extensions; do
13473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13474 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484 OTOOL=$ac_cv_prog_OTOOL
13485 if test -n "$OTOOL"; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13487 $as_echo "$OTOOL" >&6; }
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13495 if test -z "$ac_cv_prog_OTOOL"; then
13497 # Extract the first word of "otool", so it can be a program name with args.
13498 set dummy otool; ac_word=$2
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 $as_echo_n "checking for $ac_word... " >&6; }
13501 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
13504 if test -n "$ac_ct_OTOOL"; then
13505 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13514 ac_cv_prog_ac_ct_OTOOL="otool"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13525 if test -n "$ac_ct_OTOOL"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13527 $as_echo "$ac_ct_OTOOL" >&6; }
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13533 if test "x$ac_ct_OTOOL" = x; then
13536 case $cross_compiling:$ac_tool_warned in
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13540 ac_tool_warned=yes ;;
13545 OTOOL="$ac_cv_prog_OTOOL"
13548 if test -n "$ac_tool_prefix"; then
13549 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13550 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552 $as_echo_n "checking for $ac_word... " >&6; }
13553 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13556 if test -n "$OTOOL64"; then
13557 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13566 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13576 OTOOL64=$ac_cv_prog_OTOOL64
13577 if test -n "$OTOOL64"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13579 $as_echo "$OTOOL64" >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13587 if test -z "$ac_cv_prog_OTOOL64"; then
13588 ac_ct_OTOOL64=$OTOOL64
13589 # Extract the first word of "otool64", so it can be a program name with args.
13590 set dummy otool64; ac_word=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13594 $as_echo_n "(cached) " >&6
13596 if test -n "$ac_ct_OTOOL64"; then
13597 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $PATH
13603 test -z "$as_dir" && as_dir=.
13604 for ac_exec_ext in '' $ac_executable_extensions; do
13605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13606 ac_cv_prog_ac_ct_OTOOL64="otool64"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13617 if test -n "$ac_ct_OTOOL64"; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13619 $as_echo "$ac_ct_OTOOL64" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13625 if test "x$ac_ct_OTOOL64" = x; then
13628 case $cross_compiling:$ac_tool_warned in
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13632 ac_tool_warned=yes ;;
13634 OTOOL64=$ac_ct_OTOOL64
13637 OTOOL64="$ac_cv_prog_OTOOL64"
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13667 $as_echo_n "checking for -single_module linker flag... " >&6; }
13668 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13669 $as_echo_n "(cached) " >&6
13671 lt_cv_apple_cc_single_mod=no
13672 if test -z "${LT_MULTI_MODULE}"; then
13673 # By default we will add the -single_module flag. You can override
13674 # by either setting the environment variable LT_MULTI_MODULE
13675 # non-empty at configure time, or by adding -multi_module to the
13677 rm -rf libconftest.dylib*
13678 echo "int foo(void){return 1;}" > conftest.c
13679 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13680 -dynamiclib -Wl,-single_module conftest.c" >&5
13681 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13682 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13684 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13685 lt_cv_apple_cc_single_mod=yes
13687 cat conftest.err >&5
13689 rm -rf libconftest.dylib*
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13694 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13696 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13697 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13700 lt_cv_ld_exported_symbols_list=no
13701 save_LDFLAGS=$LDFLAGS
13702 echo "_main" > conftest.sym
13703 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13715 if ac_fn_c_try_link "$LINENO"; then :
13716 lt_cv_ld_exported_symbols_list=yes
13718 lt_cv_ld_exported_symbols_list=no
13720 rm -f core conftest.err conftest.$ac_objext \
13721 conftest$ac_exeext conftest.$ac_ext
13722 LDFLAGS="$save_LDFLAGS"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13726 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13728 $as_echo_n "checking for -force_load linker flag... " >&6; }
13729 if test "${lt_cv_ld_force_load+set}" = set; then :
13730 $as_echo_n "(cached) " >&6
13732 lt_cv_ld_force_load=no
13733 cat > conftest.c << _LT_EOF
13734 int forced_loaded() { return 2;}
13736 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13737 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13738 echo "$AR cru libconftest.a conftest.o" >&5
13739 $AR cru libconftest.a conftest.o 2>&5
13740 cat > conftest.c << _LT_EOF
13741 int main() { return 0;}
13743 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13744 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13746 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13747 lt_cv_ld_force_load=yes
13749 cat conftest.err >&5
13751 rm -f conftest.err libconftest.a conftest conftest.c
13752 rm -rf conftest.dSYM
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13756 $as_echo "$lt_cv_ld_force_load" >&6; }
13758 rhapsody* | darwin1.[012])
13759 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13761 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13762 darwin*) # darwin 5.x on
13763 # if running on 10.5 or later, the deployment target defaults
13764 # to the OS version, if on x86, and 10.4, the deployment
13765 # target defaults to 10.4. Don't you love it?
13766 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13767 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13768 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13770 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13772 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13776 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13777 _lt_dar_single_mod='$single_module'
13779 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13780 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13782 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13784 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13785 _lt_dsymutil='~$DSYMUTIL $lib || :'
13792 for ac_header in dlfcn.h
13794 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13795 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13796 cat >>confdefs.h <<_ACEOF
13797 #define HAVE_DLFCN_H 1
13815 enable_win32_dll=no
13818 # Check whether --enable-shared was given.
13819 if test "${enable_shared+set}" = set; then :
13820 enableval=$enable_shared; p=${PACKAGE-default}
13822 yes) enable_shared=yes ;;
13823 no) enable_shared=no ;;
13826 # Look at the argument we got. We use all the common list separators.
13827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13828 for pkg in $enableval; do
13830 if test "X$pkg" = "X$p"; then
13849 # Check whether --enable-static was given.
13850 if test "${enable_static+set}" = set; then :
13851 enableval=$enable_static; p=${PACKAGE-default}
13853 yes) enable_static=yes ;;
13854 no) enable_static=no ;;
13857 # Look at the argument we got. We use all the common list separators.
13858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13859 for pkg in $enableval; do
13861 if test "X$pkg" = "X$p"; then
13881 # Check whether --with-pic was given.
13882 if test "${with_pic+set}" = set; then :
13883 withval=$with_pic; pic_mode="$withval"
13889 test -z "$pic_mode" && pic_mode=default
13897 # Check whether --enable-fast-install was given.
13898 if test "${enable_fast_install+set}" = set; then :
13899 enableval=$enable_fast_install; p=${PACKAGE-default}
13901 yes) enable_fast_install=yes ;;
13902 no) enable_fast_install=no ;;
13904 enable_fast_install=no
13905 # Look at the argument we got. We use all the common list separators.
13906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13907 for pkg in $enableval; do
13909 if test "X$pkg" = "X$p"; then
13910 enable_fast_install=yes
13917 enable_fast_install=yes
13930 # This can be used to rebuild libtool when needed
13931 LIBTOOL_DEPS="$ltmain"
13933 # Always use our own libtool.
13934 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13961 test -z "$LN_S" && LN_S="ln -s"
13976 if test -n "${ZSH_VERSION+set}" ; then
13977 setopt NO_GLOB_SUBST
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13981 $as_echo_n "checking for objdir... " >&6; }
13982 if test "${lt_cv_objdir+set}" = set; then :
13983 $as_echo_n "(cached) " >&6
13985 rm -f .libs 2>/dev/null
13986 mkdir .libs 2>/dev/null
13987 if test -d .libs; then
13990 # MS-DOS does not allow filenames that begin with a dot.
13993 rmdir .libs 2>/dev/null
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13996 $as_echo "$lt_cv_objdir" >&6; }
13997 objdir=$lt_cv_objdir
14003 cat >>confdefs.h <<_ACEOF
14004 #define LT_OBJDIR "$lt_cv_objdir/"
14012 # AIX sometimes has problems with the GCC collect2 program. For some
14013 # reason, if we set the COLLECT_NAMES environment variable, the problems
14014 # vanish in a puff of smoke.
14015 if test "X${COLLECT_NAMES+set}" != Xset; then
14017 export COLLECT_NAMES
14022 # Global variables:
14024 can_build_shared=yes
14026 # All known linkers require a `.a' archive for static linking (except MSVC,
14027 # which needs '.lib').
14030 with_gnu_ld="$lt_cv_prog_gnu_ld"
14033 old_CFLAGS="$CFLAGS"
14035 # Set sane defaults for various variables
14036 test -z "$CC" && CC=cc
14037 test -z "$LTCC" && LTCC=$CC
14038 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14039 test -z "$LD" && LD=ld
14040 test -z "$ac_objext" && ac_objext=o
14042 for cc_temp in $compiler""; do
14044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14050 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14053 # Only perform the check for file, if the check method requires it
14054 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14055 case $deplibs_check_method in
14057 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14059 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14060 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14065 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14068 lt_save_MAGIC_CMD="$MAGIC_CMD"
14069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14070 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14071 for ac_dir in $ac_dummy; do
14073 test -z "$ac_dir" && ac_dir=.
14074 if test -f $ac_dir/${ac_tool_prefix}file; then
14075 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14076 if test -n "$file_magic_test_file"; then
14077 case $deplibs_check_method in
14079 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14081 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14082 $EGREP "$file_magic_regex" > /dev/null; then
14087 *** Warning: the command libtool uses to detect shared libraries,
14088 *** $file_magic_cmd, produces output that libtool cannot recognize.
14089 *** The result is that libtool may fail to recognize shared libraries
14090 *** as such. This will affect the creation of libtool libraries that
14091 *** depend on shared libraries, but programs linked with such libtool
14092 *** libraries will work regardless of this problem. Nevertheless, you
14093 *** may want to report the problem to your system manager and/or to
14094 *** bug-libtool@gnu.org
14104 MAGIC_CMD="$lt_save_MAGIC_CMD"
14109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14110 if test -n "$MAGIC_CMD"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14112 $as_echo "$MAGIC_CMD" >&6; }
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14122 if test -z "$lt_cv_path_MAGIC_CMD"; then
14123 if test -n "$ac_tool_prefix"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14125 $as_echo_n "checking for file... " >&6; }
14126 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14127 $as_echo_n "(cached) " >&6
14131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14134 lt_save_MAGIC_CMD="$MAGIC_CMD"
14135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14137 for ac_dir in $ac_dummy; do
14139 test -z "$ac_dir" && ac_dir=.
14140 if test -f $ac_dir/file; then
14141 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14142 if test -n "$file_magic_test_file"; then
14143 case $deplibs_check_method in
14145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14148 $EGREP "$file_magic_regex" > /dev/null; then
14153 *** Warning: the command libtool uses to detect shared libraries,
14154 *** $file_magic_cmd, produces output that libtool cannot recognize.
14155 *** The result is that libtool may fail to recognize shared libraries
14156 *** as such. This will affect the creation of libtool libraries that
14157 *** depend on shared libraries, but programs linked with such libtool
14158 *** libraries will work regardless of this problem. Nevertheless, you
14159 *** may want to report the problem to your system manager and/or to
14160 *** bug-libtool@gnu.org
14170 MAGIC_CMD="$lt_save_MAGIC_CMD"
14175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14176 if test -n "$MAGIC_CMD"; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14178 $as_echo "$MAGIC_CMD" >&6; }
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14194 # Use C for the default configuration in the libtool script
14198 ac_cpp='$CPP $CPPFLAGS'
14199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14204 # Source file extension for C test sources.
14207 # Object file extension for compiled C test sources.
14211 # Code to be used in simple compile tests
14212 lt_simple_compile_test_code="int some_variable = 0;"
14214 # Code to be used in simple link tests
14215 lt_simple_link_test_code='int main(){return(0);}'
14223 # If no C compiler was specified, use CC.
14226 # If no C compiler flags were specified, use CFLAGS.
14227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14229 # Allow CC to be a program name with arguments.
14232 # Save the default compiler, since it gets overwritten when the other
14233 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14234 compiler_DEFAULT=$CC
14236 # save warnings/boilerplate of simple test code
14237 ac_outfile=conftest.$ac_objext
14238 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14240 _lt_compiler_boilerplate=`cat conftest.err`
14243 ac_outfile=conftest.$ac_objext
14244 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14246 _lt_linker_boilerplate=`cat conftest.err`
14251 ## There is no encapsulation within the following macros, do not change
14252 ## the running order or otherwise move them around unless you know exactly
14253 ## what you are doing...
14254 if test -n "$compiler"; then
14256 lt_prog_compiler_no_builtin_flag=
14258 if test "$GCC" = yes; then
14259 case $cc_basename in
14261 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14263 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14267 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14268 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14269 $as_echo_n "(cached) " >&6
14271 lt_cv_prog_compiler_rtti_exceptions=no
14272 ac_outfile=conftest.$ac_objext
14273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14274 lt_compiler_flag="-fno-rtti -fno-exceptions"
14275 # Insert the option either (1) after the last *FLAGS variable, or
14276 # (2) before a word containing "conftest.", or (3) at the end.
14277 # Note that $ac_compile itself does not contain backslashes and begins
14278 # with a dollar sign (not a hyphen), so the echo should work correctly.
14279 # The option is referenced via a variable to avoid confusing sed.
14280 lt_compile=`echo "$ac_compile" | $SED \
14281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14283 -e 's:$: $lt_compiler_flag:'`
14284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14285 (eval "$lt_compile" 2>conftest.err)
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 if (exit $ac_status) && test -s "$ac_outfile"; then
14290 # The compiler can only warn and ignore the option if not recognized
14291 # So say no if there are warnings other than the usual output.
14292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14295 lt_cv_prog_compiler_rtti_exceptions=yes
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14302 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14304 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14305 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14317 lt_prog_compiler_wl=
14318 lt_prog_compiler_pic=
14319 lt_prog_compiler_static=
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14322 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14324 if test "$GCC" = yes; then
14325 lt_prog_compiler_wl='-Wl,'
14326 lt_prog_compiler_static='-static'
14330 # All AIX code is PIC.
14331 if test "$host_cpu" = ia64; then
14332 # AIX 5 now supports IA64 processor
14333 lt_prog_compiler_static='-Bstatic'
14340 # see comment about AmigaOS4 .so support
14341 lt_prog_compiler_pic='-fPIC'
14344 # FIXME: we need at least 68020 code to build shared libraries, but
14345 # adding the `-m68020' flag to GCC prevents building anything better,
14347 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14352 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14353 # PIC is the default for these OSes.
14356 mingw* | cygwin* | pw32* | os2* | cegcc*)
14357 # This hack is so that the source file can tell whether it is being
14358 # built for inclusion in a dll (and should export symbols for example).
14359 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14360 # (--disable-auto-import) libraries
14361 lt_prog_compiler_pic='-DDLL_EXPORT'
14364 darwin* | rhapsody*)
14365 # PIC is the default on this platform
14366 # Common symbols not allowed in MH_DYLIB files
14367 lt_prog_compiler_pic='-fno-common'
14371 # PIC is the default for Haiku.
14372 # The "-static" flag exists, but is broken.
14373 lt_prog_compiler_static=
14377 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14378 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14379 # sets the default TLS model and affects inlining.
14385 lt_prog_compiler_pic='-fPIC'
14391 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14392 # Instead, we relocate shared libraries at runtime.
14396 # Just because we use GCC doesn't mean we suddenly get shared libraries
14397 # on systems that don't support them.
14398 lt_prog_compiler_can_build_shared=no
14403 # QNX uses GNU C++, but need to define -shared option too, otherwise
14404 # it will coredump.
14405 lt_prog_compiler_pic='-fPIC -shared'
14409 if test -d /usr/nec; then
14410 lt_prog_compiler_pic=-Kconform_pic
14415 lt_prog_compiler_pic='-fPIC'
14419 case $cc_basename in
14420 nvcc*) # Cuda Compiler Driver 2.2
14421 lt_prog_compiler_wl='-Xlinker '
14422 lt_prog_compiler_pic='-Xcompiler -fPIC'
14426 # PORTME Check for flag to pass linker flags through the system compiler.
14429 lt_prog_compiler_wl='-Wl,'
14430 if test "$host_cpu" = ia64; then
14431 # AIX 5 now supports IA64 processor
14432 lt_prog_compiler_static='-Bstatic'
14434 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14438 mingw* | cygwin* | pw32* | os2* | cegcc*)
14439 # This hack is so that the source file can tell whether it is being
14440 # built for inclusion in a dll (and should export symbols for example).
14441 lt_prog_compiler_pic='-DDLL_EXPORT'
14444 hpux9* | hpux10* | hpux11*)
14445 lt_prog_compiler_wl='-Wl,'
14446 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14447 # not for PA HP-UX.
14453 lt_prog_compiler_pic='+Z'
14456 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14457 lt_prog_compiler_static='${wl}-a ${wl}archive'
14460 irix5* | irix6* | nonstopux*)
14461 lt_prog_compiler_wl='-Wl,'
14462 # PIC (with -KPIC) is the default.
14463 lt_prog_compiler_static='-non_shared'
14466 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14467 case $cc_basename in
14468 # old Intel for x86_64 which still supported -KPIC.
14470 lt_prog_compiler_wl='-Wl,'
14471 lt_prog_compiler_pic='-KPIC'
14472 lt_prog_compiler_static='-static'
14474 # icc used to be incompatible with GCC.
14475 # ICC 10 doesn't accept -KPIC any more.
14477 lt_prog_compiler_wl='-Wl,'
14478 lt_prog_compiler_pic='-fPIC'
14479 lt_prog_compiler_static='-static'
14481 # Lahey Fortran 8.1.
14483 lt_prog_compiler_wl='-Wl,'
14484 lt_prog_compiler_pic='--shared'
14485 lt_prog_compiler_static='--static'
14487 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14488 # Portland Group compilers (*not* the Pentium gcc compiler,
14489 # which looks to be a dead project)
14490 lt_prog_compiler_wl='-Wl,'
14491 lt_prog_compiler_pic='-fpic'
14492 lt_prog_compiler_static='-Bstatic'
14495 lt_prog_compiler_wl='-Wl,'
14496 # All Alpha code is PIC.
14497 lt_prog_compiler_static='-non_shared'
14499 xl* | bgxl* | bgf* | mpixl*)
14500 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14501 lt_prog_compiler_wl='-Wl,'
14502 lt_prog_compiler_pic='-qpic'
14503 lt_prog_compiler_static='-qstaticlink'
14506 case `$CC -V 2>&1 | sed 5q` in
14507 *Sun\ F* | *Sun*Fortran*)
14508 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14509 lt_prog_compiler_pic='-KPIC'
14510 lt_prog_compiler_static='-Bstatic'
14511 lt_prog_compiler_wl=''
14515 lt_prog_compiler_pic='-KPIC'
14516 lt_prog_compiler_static='-Bstatic'
14517 lt_prog_compiler_wl='-Wl,'
14525 lt_prog_compiler_pic='-KPIC'
14526 lt_prog_compiler_static='-Bstatic'
14530 # QNX uses GNU C++, but need to define -shared option too, otherwise
14531 # it will coredump.
14532 lt_prog_compiler_pic='-fPIC -shared'
14535 osf3* | osf4* | osf5*)
14536 lt_prog_compiler_wl='-Wl,'
14537 # All OSF/1 code is PIC.
14538 lt_prog_compiler_static='-non_shared'
14542 lt_prog_compiler_static='-non_shared'
14546 lt_prog_compiler_pic='-KPIC'
14547 lt_prog_compiler_static='-Bstatic'
14548 case $cc_basename in
14549 f77* | f90* | f95*)
14550 lt_prog_compiler_wl='-Qoption ld ';;
14552 lt_prog_compiler_wl='-Wl,';;
14557 lt_prog_compiler_wl='-Qoption ld '
14558 lt_prog_compiler_pic='-PIC'
14559 lt_prog_compiler_static='-Bstatic'
14562 sysv4 | sysv4.2uw2* | sysv4.3*)
14563 lt_prog_compiler_wl='-Wl,'
14564 lt_prog_compiler_pic='-KPIC'
14565 lt_prog_compiler_static='-Bstatic'
14569 if test -d /usr/nec ;then
14570 lt_prog_compiler_pic='-Kconform_pic'
14571 lt_prog_compiler_static='-Bstatic'
14575 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14576 lt_prog_compiler_wl='-Wl,'
14577 lt_prog_compiler_pic='-KPIC'
14578 lt_prog_compiler_static='-Bstatic'
14582 lt_prog_compiler_wl='-Wl,'
14583 lt_prog_compiler_can_build_shared=no
14587 lt_prog_compiler_pic='-pic'
14588 lt_prog_compiler_static='-Bstatic'
14592 lt_prog_compiler_can_build_shared=no
14598 # For platforms which do not support PIC, -DPIC is meaningless:
14600 lt_prog_compiler_pic=
14603 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14607 $as_echo "$lt_prog_compiler_pic" >&6; }
14615 # Check to make sure the PIC flag actually works.
14617 if test -n "$lt_prog_compiler_pic"; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14619 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14620 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14621 $as_echo_n "(cached) " >&6
14623 lt_cv_prog_compiler_pic_works=no
14624 ac_outfile=conftest.$ac_objext
14625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14626 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14627 # Insert the option either (1) after the last *FLAGS variable, or
14628 # (2) before a word containing "conftest.", or (3) at the end.
14629 # Note that $ac_compile itself does not contain backslashes and begins
14630 # with a dollar sign (not a hyphen), so the echo should work correctly.
14631 # The option is referenced via a variable to avoid confusing sed.
14632 lt_compile=`echo "$ac_compile" | $SED \
14633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14635 -e 's:$: $lt_compiler_flag:'`
14636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14637 (eval "$lt_compile" 2>conftest.err)
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 if (exit $ac_status) && test -s "$ac_outfile"; then
14642 # The compiler can only warn and ignore the option if not recognized
14643 # So say no if there are warnings other than the usual output.
14644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14647 lt_cv_prog_compiler_pic_works=yes
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14654 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14656 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14657 case $lt_prog_compiler_pic in
14659 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14662 lt_prog_compiler_pic=
14663 lt_prog_compiler_can_build_shared=no
14674 # Check to make sure the static flag actually works.
14676 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14678 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14679 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14680 $as_echo_n "(cached) " >&6
14682 lt_cv_prog_compiler_static_works=no
14683 save_LDFLAGS="$LDFLAGS"
14684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14687 # The linker can only warn and ignore the option if not recognized
14688 # So say no if there are warnings
14689 if test -s conftest.err; then
14690 # Append any errors to the config.log.
14691 cat conftest.err 1>&5
14692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14694 if diff conftest.exp conftest.er2 >/dev/null; then
14695 lt_cv_prog_compiler_static_works=yes
14698 lt_cv_prog_compiler_static_works=yes
14702 LDFLAGS="$save_LDFLAGS"
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14706 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14708 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14711 lt_prog_compiler_static=
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14721 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14722 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14723 $as_echo_n "(cached) " >&6
14725 lt_cv_prog_compiler_c_o=no
14726 $RM -r conftest 2>/dev/null
14730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14732 lt_compiler_flag="-o out/conftest2.$ac_objext"
14733 # Insert the option either (1) after the last *FLAGS variable, or
14734 # (2) before a word containing "conftest.", or (3) at the end.
14735 # Note that $ac_compile itself does not contain backslashes and begins
14736 # with a dollar sign (not a hyphen), so the echo should work correctly.
14737 lt_compile=`echo "$ac_compile" | $SED \
14738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14740 -e 's:$: $lt_compiler_flag:'`
14741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14742 (eval "$lt_compile" 2>out/conftest.err)
14744 cat out/conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14748 # The compiler can only warn and ignore the option if not recognized
14749 # So say no if there are warnings
14750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14753 lt_cv_prog_compiler_c_o=yes
14758 # SGI C++ compiler will create directory out/ii_files/ for
14759 # template instantiation
14760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14761 $RM out/* && rmdir out
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14768 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14776 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14777 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14780 lt_cv_prog_compiler_c_o=no
14781 $RM -r conftest 2>/dev/null
14785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14787 lt_compiler_flag="-o out/conftest2.$ac_objext"
14788 # Insert the option either (1) after the last *FLAGS variable, or
14789 # (2) before a word containing "conftest.", or (3) at the end.
14790 # Note that $ac_compile itself does not contain backslashes and begins
14791 # with a dollar sign (not a hyphen), so the echo should work correctly.
14792 lt_compile=`echo "$ac_compile" | $SED \
14793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795 -e 's:$: $lt_compiler_flag:'`
14796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14797 (eval "$lt_compile" 2>out/conftest.err)
14799 cat out/conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14803 # The compiler can only warn and ignore the option if not recognized
14804 # So say no if there are warnings
14805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14808 lt_cv_prog_compiler_c_o=yes
14813 # SGI C++ compiler will create directory out/ii_files/ for
14814 # template instantiation
14815 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14816 $RM out/* && rmdir out
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14823 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14828 hard_links="nottested"
14829 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14830 # do not overwrite the value of need_locks provided by the user
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14832 $as_echo_n "checking if we can lock with hard links... " >&6; }
14835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14837 ln conftest.a conftest.b 2>&5 || hard_links=no
14838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14840 $as_echo "$hard_links" >&6; }
14841 if test "$hard_links" = no; then
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14843 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14856 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14859 allow_undefined_flag=
14860 always_export_symbols=no
14862 archive_expsym_cmds=
14863 compiler_needs_object=no
14864 enable_shared_with_static_runtimes=no
14865 export_dynamic_flag_spec=
14866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14867 hardcode_automatic=no
14869 hardcode_direct_absolute=no
14870 hardcode_libdir_flag_spec=
14871 hardcode_libdir_flag_spec_ld=
14872 hardcode_libdir_separator=
14873 hardcode_minus_L=no
14874 hardcode_shlibpath_var=unsupported
14876 link_all_deplibs=unknown
14878 module_expsym_cmds=
14879 old_archive_from_new_cmds=
14880 old_archive_from_expsyms_cmds=
14881 thread_safe_flag_spec=
14882 whole_archive_flag_spec=
14883 # include_expsyms should be a list of space-separated symbols to be *always*
14884 # included in the symbol list
14886 # exclude_expsyms can be an extended regexp of symbols to exclude
14887 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14888 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14889 # as well as any symbol that contains `d'.
14890 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14891 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14892 # platforms (ab)use it in PIC code, but their linkers get confused if
14893 # the symbol is explicitly referenced. Since portable code cannot
14894 # rely on this symbol name, it's probably fine to never include it in
14895 # preloaded symbol tables.
14896 # Exclude shared library initialization/finalization symbols.
14897 extract_expsyms_cmds=
14900 cygwin* | mingw* | pw32* | cegcc*)
14901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14902 # When not using gcc, we currently assume that we are using
14903 # Microsoft Visual C++.
14904 if test "$GCC" != yes; then
14909 # we just hope/assume this is gcc and not c89 (= MSVC++)
14919 # On some targets, GNU ld is compatible enough with the native linker
14920 # that we're better off using the native interface for both.
14921 lt_use_gnu_ld_interface=no
14922 if test "$with_gnu_ld" = yes; then
14925 # The AIX port of GNU ld has always aspired to compatibility
14926 # with the native linker. However, as the warning in the GNU ld
14927 # block says, versions before 2.19.5* couldn't really create working
14928 # shared libraries, regardless of the interface used.
14929 case `$LD -v 2>&1` in
14930 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14931 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14932 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14934 lt_use_gnu_ld_interface=yes
14939 lt_use_gnu_ld_interface=yes
14944 if test "$lt_use_gnu_ld_interface" = yes; then
14945 # If archive_cmds runs LD, not CC, wlarc should be empty
14948 # Set some defaults for GNU ld with shared library support. These
14949 # are reset later if shared libraries are not supported. Putting them
14950 # here allows them to be overridden if necessary.
14951 runpath_var=LD_RUN_PATH
14952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14953 export_dynamic_flag_spec='${wl}--export-dynamic'
14954 # ancient GNU ld didn't support --whole-archive et. al.
14955 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14956 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14958 whole_archive_flag_spec=
14960 supports_anon_versioning=no
14961 case `$LD -v 2>&1` in
14962 *GNU\ gold*) supports_anon_versioning=yes ;;
14963 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14964 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14965 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14966 *\ 2.11.*) ;; # other 2.11 versions
14967 *) supports_anon_versioning=yes ;;
14970 # See if GNU ld supports shared libraries.
14973 # On AIX/PPC, the GNU linker is very broken
14974 if test "$host_cpu" != ia64; then
14978 *** Warning: the GNU linker, at least up to release 2.19, is reported
14979 *** to be unable to reliably create shared libraries on AIX.
14980 *** Therefore, libtool is disabling shared libraries support. If you
14981 *** really care for shared libraries, you may want to install binutils
14982 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14983 *** You will then need to restart the configuration process.
14992 # see comment about AmigaOS4 .so support
14993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994 archive_expsym_cmds=''
14997 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)'
14998 hardcode_libdir_flag_spec='-L$libdir'
14999 hardcode_minus_L=yes
15005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15006 allow_undefined_flag=unsupported
15007 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15008 # support --undefined. This deserves some investigation. FIXME
15009 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015 cygwin* | mingw* | pw32* | cegcc*)
15016 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15017 # as there is no search path for DLLs.
15018 hardcode_libdir_flag_spec='-L$libdir'
15019 export_dynamic_flag_spec='${wl}--export-all-symbols'
15020 allow_undefined_flag=unsupported
15021 always_export_symbols=no
15022 enable_shared_with_static_runtimes=yes
15023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15027 # If the export-symbols file already is a .def file (1st line
15028 # is EXPORTS), use it as is; otherwise, prepend...
15029 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15030 cp $export_symbols $output_objdir/$soname.def;
15032 echo EXPORTS > $output_objdir/$soname.def;
15033 cat $export_symbols >> $output_objdir/$soname.def;
15035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043 link_all_deplibs=yes
15048 hardcode_shlibpath_var=no
15049 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15050 export_dynamic_flag_spec='${wl}-E'
15051 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15052 # Instead, shared libraries are loaded at an image base (0x10000000 by
15053 # default) and relocated if they conflict, which is a slow very memory
15054 # consuming and fragmenting process. To avoid this, we pick a random,
15055 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15056 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15058 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'
15061 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15063 if test "$host_os" = linux-dietlibc; then
15064 case $cc_basename in
15065 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15068 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15069 && test "$tmp_diet" = no
15072 tmp_sharedflag='-shared'
15073 case $cc_basename,$host_cpu in
15074 pgcc*) # Portland Group C compiler
15075 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'
15076 tmp_addflag=' $pic_flag'
15078 pgf77* | pgf90* | pgf95* | pgfortran*)
15079 # Portland Group f77 and f90 compilers
15080 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'
15081 tmp_addflag=' $pic_flag -Mnomain' ;;
15082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15083 tmp_addflag=' -i_dynamic' ;;
15084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15085 tmp_addflag=' -i_dynamic -nofor_main' ;;
15086 ifc* | ifort*) # Intel Fortran compiler
15087 tmp_addflag=' -nofor_main' ;;
15088 lf95*) # Lahey Fortran 8.1
15089 whole_archive_flag_spec=
15090 tmp_sharedflag='--shared' ;;
15091 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15092 tmp_sharedflag='-qmkshrobj'
15094 nvcc*) # Cuda Compiler Driver 2.2
15095 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'
15096 compiler_needs_object=yes
15099 case `$CC -V 2>&1 | sed 5q` in
15100 *Sun\ C*) # Sun C 5.9
15101 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'
15102 compiler_needs_object=yes
15103 tmp_sharedflag='-G' ;;
15104 *Sun\ F*) # Sun Fortran 8.3
15105 tmp_sharedflag='-G' ;;
15107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15109 if test "x$supports_anon_versioning" = xyes; then
15110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15112 echo "local: *; };" >> $output_objdir/$libname.ver~
15113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15116 case $cc_basename in
15117 xlf* | bgf* | bgxlf* | mpixlf*)
15118 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15119 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15120 hardcode_libdir_flag_spec=
15121 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15122 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15123 if test "x$supports_anon_versioning" = xyes; then
15124 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15125 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15126 echo "local: *; };" >> $output_objdir/$libname.ver~
15127 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15138 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15147 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15151 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15152 *** create shared libraries on Solaris systems. Therefore, libtool
15153 *** is disabling shared libraries support. We urge you to upgrade GNU
15154 *** binutils to release 2.9.1 or newer. Another option is to modify
15155 *** your PATH or compiler configuration so that the native linker is
15156 *** used, and then restart.
15159 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15168 case `$LD -v 2>&1` in
15169 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15173 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15174 *** reliably create shared libraries on SCO systems. Therefore, libtool
15175 *** is disabling shared libraries support. We urge you to upgrade GNU
15176 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15177 *** your PATH or compiler configuration so that the native linker is
15178 *** used, and then restart.
15183 # For security reasons, it is highly recommended that you always
15184 # use absolute paths for naming shared libraries, and exclude the
15185 # DT_RUNPATH tag from executables and libraries. But doing so
15186 # requires that you compile everything twice, which is a pain.
15187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15199 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15201 hardcode_direct=yes
15202 hardcode_shlibpath_var=no
15206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
15215 if test "$ld_shlibs" = no; then
15217 hardcode_libdir_flag_spec=
15218 export_dynamic_flag_spec=
15219 whole_archive_flag_spec=
15222 # PORTME fill in a description of your system's linker (not GNU ld)
15225 allow_undefined_flag=unsupported
15226 always_export_symbols=yes
15227 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'
15228 # Note: this linker hardcodes the directories in LIBPATH if there
15229 # are no directories specified by -L.
15230 hardcode_minus_L=yes
15231 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15232 # Neither direct hardcoding nor static linking is supported with a
15234 hardcode_direct=unsupported
15239 if test "$host_cpu" = ia64; then
15240 # On IA64, the linker does run time linking by default, so we don't
15241 # have to do anything special.
15242 aix_use_runtimelinking=no
15243 exp_sym_flag='-Bexport'
15246 # If we're using GNU nm, then we don't want the "-C" option.
15247 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15248 # Also, AIX nm treats weak defined symbols like other global
15249 # defined symbols, whereas GNU nm marks them as "W".
15250 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15251 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'
15253 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'
15255 aix_use_runtimelinking=no
15257 # Test if we are trying to use run time linking or normal
15258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15259 # need to do runtime linking.
15260 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15261 for ld_flag in $LDFLAGS; do
15262 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15263 aix_use_runtimelinking=yes
15270 exp_sym_flag='-bexport'
15271 no_entry_flag='-bnoentry'
15274 # When large executables or shared objects are built, AIX ld can
15275 # have problems creating the table of contents. If linking a library
15276 # or program results in "error TOC overflow" add -mminimal-toc to
15277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15281 hardcode_direct=yes
15282 hardcode_direct_absolute=yes
15283 hardcode_libdir_separator=':'
15284 link_all_deplibs=yes
15285 file_list_spec='${wl}-f,'
15287 if test "$GCC" = yes; then
15288 case $host_os in aix4.[012]|aix4.[012].*)
15289 # We only want to do this on AIX 4.2 and lower, the check
15290 # below for broken collect2 doesn't work under 4.3+
15291 collect2name=`${CC} -print-prog-name=collect2`
15292 if test -f "$collect2name" &&
15293 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15295 # We have reworked collect2
15298 # We have old collect2
15299 hardcode_direct=unsupported
15300 # It fails to find uninstalled libraries when the uninstalled
15301 # path is not listed in the libpath. Setting hardcode_minus_L
15302 # to unsupported forces relinking
15303 hardcode_minus_L=yes
15304 hardcode_libdir_flag_spec='-L$libdir'
15305 hardcode_libdir_separator=
15309 shared_flag='-shared'
15310 if test "$aix_use_runtimelinking" = yes; then
15311 shared_flag="$shared_flag "'${wl}-G'
15315 if test "$host_cpu" = ia64; then
15316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15317 # chokes on -Wl,-G. The following line is correct:
15320 if test "$aix_use_runtimelinking" = yes; then
15321 shared_flag='${wl}-G'
15323 shared_flag='${wl}-bM:SRE'
15328 export_dynamic_flag_spec='${wl}-bexpall'
15329 # It seems that -bexpall does not export symbols beginning with
15330 # underscore (_), so it is better to generate a list of symbols to export.
15331 always_export_symbols=yes
15332 if test "$aix_use_runtimelinking" = yes; then
15333 # Warning - without using the other runtime loading flags (-brtl),
15334 # -berok will link without error, but may produce a broken library.
15335 allow_undefined_flag='-berok'
15336 # Determine the default libpath from the value encoded in an
15337 # empty executable.
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15349 if ac_fn_c_try_link "$LINENO"; then :
15351 lt_aix_libpath_sed='
15352 /Import File Strings/,/^$/ {
15358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15359 # Check for a 64-bit object if we didn't find anything.
15360 if test -z "$aix_libpath"; then
15361 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15364 rm -f core conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15369 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"
15371 if test "$host_cpu" = ia64; then
15372 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15373 allow_undefined_flag="-z nodefs"
15374 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"
15376 # Determine the default libpath from the value encoded in an
15377 # empty executable.
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15389 if ac_fn_c_try_link "$LINENO"; then :
15391 lt_aix_libpath_sed='
15392 /Import File Strings/,/^$/ {
15398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15399 # Check for a 64-bit object if we didn't find anything.
15400 if test -z "$aix_libpath"; then
15401 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15404 rm -f core conftest.err conftest.$ac_objext \
15405 conftest$ac_exeext conftest.$ac_ext
15406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15409 # Warning - without using the other run time loading flags,
15410 # -berok will link without error, but may produce a broken library.
15411 no_undefined_flag=' ${wl}-bernotok'
15412 allow_undefined_flag=' ${wl}-berok'
15413 if test "$with_gnu_ld" = yes; then
15414 # We only use this code for GNU lds that support --whole-archive.
15415 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15417 # Exported symbols can be pulled into shared objects from archives
15418 whole_archive_flag_spec='$convenience'
15420 archive_cmds_need_lc=yes
15421 # This is similar to how AIX traditionally builds its shared libraries.
15422 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'
15430 # see comment about AmigaOS4 .so support
15431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432 archive_expsym_cmds=''
15435 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)'
15436 hardcode_libdir_flag_spec='-L$libdir'
15437 hardcode_minus_L=yes
15443 export_dynamic_flag_spec=-rdynamic
15446 cygwin* | mingw* | pw32* | cegcc*)
15447 # When not using gcc, we currently assume that we are using
15448 # Microsoft Visual C++.
15449 # hardcode_libdir_flag_spec is actually meaningless, as there is
15450 # no search path for DLLs.
15451 hardcode_libdir_flag_spec=' '
15452 allow_undefined_flag=unsupported
15453 # Tell ltmain to make .lib files, not .a files.
15455 # Tell ltmain to make .dll files, not .so files.
15457 # FIXME: Setting linknames here is a bad hack.
15458 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15459 # The linker will automatically build a .lib file if we build a DLL.
15460 old_archive_from_new_cmds='true'
15461 # FIXME: Should let the user specify the lib program.
15462 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15463 fix_srcfile_path='`cygpath -w "$srcfile"`'
15464 enable_shared_with_static_runtimes=yes
15467 darwin* | rhapsody*)
15470 archive_cmds_need_lc=no
15472 hardcode_automatic=yes
15473 hardcode_shlibpath_var=unsupported
15474 if test "$lt_cv_ld_force_load" = "yes"; then
15475 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\"`'
15477 whole_archive_flag_spec=''
15479 link_all_deplibs=yes
15480 allow_undefined_flag="$_lt_dar_allow_undefined"
15481 case $cc_basename in
15482 ifort*) _lt_dar_can_shared=yes ;;
15483 *) _lt_dar_can_shared=$GCC ;;
15485 if test "$_lt_dar_can_shared" = "yes"; then
15486 output_verbose_link_cmd=func_echo_all
15487 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15488 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15489 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}"
15490 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}"
15499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500 hardcode_libdir_flag_spec='-L$libdir'
15501 hardcode_shlibpath_var=no
15508 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15509 # support. Future versions do this automatically, but an explicit c++rt0.o
15510 # does not break anything, and helps significantly (at the cost of a little
15513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15514 hardcode_libdir_flag_spec='-R$libdir'
15515 hardcode_direct=yes
15516 hardcode_shlibpath_var=no
15519 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15522 hardcode_direct=yes
15523 hardcode_minus_L=yes
15524 hardcode_shlibpath_var=no
15527 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15528 freebsd* | dragonfly*)
15529 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15530 hardcode_libdir_flag_spec='-R$libdir'
15531 hardcode_direct=yes
15532 hardcode_shlibpath_var=no
15536 if test "$GCC" = yes; then
15537 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'
15539 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'
15541 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15542 hardcode_libdir_separator=:
15543 hardcode_direct=yes
15545 # hardcode_minus_L: Not really in the search PATH,
15546 # but as the default location of the library.
15547 hardcode_minus_L=yes
15548 export_dynamic_flag_spec='${wl}-E'
15552 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15555 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15557 if test "$with_gnu_ld" = no; then
15558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15559 hardcode_libdir_flag_spec_ld='+b $libdir'
15560 hardcode_libdir_separator=:
15561 hardcode_direct=yes
15562 hardcode_direct_absolute=yes
15563 export_dynamic_flag_spec='${wl}-E'
15564 # hardcode_minus_L: Not really in the search PATH,
15565 # but as the default location of the library.
15566 hardcode_minus_L=yes
15571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15574 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15577 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15580 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15589 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15593 # Older versions of the 11.00 compiler do not understand -b yet
15594 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15596 $as_echo_n "checking if $CC understands -b... " >&6; }
15597 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15598 $as_echo_n "(cached) " >&6
15600 lt_cv_prog_compiler__b=no
15601 save_LDFLAGS="$LDFLAGS"
15602 LDFLAGS="$LDFLAGS -b"
15603 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15605 # The linker can only warn and ignore the option if not recognized
15606 # So say no if there are warnings
15607 if test -s conftest.err; then
15608 # Append any errors to the config.log.
15609 cat conftest.err 1>&5
15610 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15612 if diff conftest.exp conftest.er2 >/dev/null; then
15613 lt_cv_prog_compiler__b=yes
15616 lt_cv_prog_compiler__b=yes
15620 LDFLAGS="$save_LDFLAGS"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15624 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15626 if test x"$lt_cv_prog_compiler__b" = xyes; then
15627 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15629 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15635 if test "$with_gnu_ld" = no; then
15636 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15637 hardcode_libdir_separator=:
15642 hardcode_shlibpath_var=no
15645 hardcode_direct=yes
15646 hardcode_direct_absolute=yes
15647 export_dynamic_flag_spec='${wl}-E'
15649 # hardcode_minus_L: Not really in the search PATH,
15650 # but as the default location of the library.
15651 hardcode_minus_L=yes
15657 irix5* | irix6* | nonstopux*)
15658 if test "$GCC" = yes; then
15659 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'
15660 # Try to use the -exported_symbol ld option, if it does not
15661 # work, assume that -exports_file does not work either and
15662 # implicitly export all symbols.
15663 save_LDFLAGS="$LDFLAGS"
15664 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15669 if ac_fn_c_try_link "$LINENO"; then :
15670 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'
15673 rm -f core conftest.err conftest.$ac_objext \
15674 conftest$ac_exeext conftest.$ac_ext
15675 LDFLAGS="$save_LDFLAGS"
15677 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'
15678 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'
15680 archive_cmds_need_lc='no'
15681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15682 hardcode_libdir_separator=:
15684 link_all_deplibs=yes
15688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15691 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15693 hardcode_libdir_flag_spec='-R$libdir'
15694 hardcode_direct=yes
15695 hardcode_shlibpath_var=no
15699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700 hardcode_direct=yes
15701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15702 hardcode_libdir_separator=:
15703 hardcode_shlibpath_var=no
15710 if test -f /usr/libexec/ld.so; then
15711 hardcode_direct=yes
15712 hardcode_shlibpath_var=no
15713 hardcode_direct_absolute=yes
15714 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15716 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15718 export_dynamic_flag_spec='${wl}-E'
15721 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723 hardcode_libdir_flag_spec='-R$libdir'
15726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15737 hardcode_libdir_flag_spec='-L$libdir'
15738 hardcode_minus_L=yes
15739 allow_undefined_flag=unsupported
15740 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'
15741 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15745 if test "$GCC" = yes; then
15746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15747 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'
15749 allow_undefined_flag=' -expect_unresolved \*'
15750 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'
15752 archive_cmds_need_lc='no'
15753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15754 hardcode_libdir_separator=:
15757 osf4* | osf5*) # as osf3* with the addition of -msym flag
15758 if test "$GCC" = yes; then
15759 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15760 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'
15761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763 allow_undefined_flag=' -expect_unresolved \*'
15764 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'
15765 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~
15766 $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'
15768 # Both c and cxx compiler support -rpath directly
15769 hardcode_libdir_flag_spec='-rpath $libdir'
15771 archive_cmds_need_lc='no'
15772 hardcode_libdir_separator=:
15776 no_undefined_flag=' -z defs'
15777 if test "$GCC" = yes; then
15779 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15781 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15783 case `$CC -V 2>&1` in
15786 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15792 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15794 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15798 hardcode_libdir_flag_spec='-R$libdir'
15799 hardcode_shlibpath_var=no
15801 solaris2.[0-5] | solaris2.[0-5].*) ;;
15803 # The compiler driver will combine and reorder linker options,
15804 # but understands `-z linker_flag'. GCC discards it without `$wl',
15805 # but is careful enough not to reorder.
15806 # Supported since Solaris 2.6 (maybe 2.5.1?)
15807 if test "$GCC" = yes; then
15808 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15810 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15814 link_all_deplibs=yes
15818 if test "x$host_vendor" = xsequent; then
15819 # Use $CC to link under sequent, because it throws in some extra .o
15820 # files that make .init and .fini sections work.
15821 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15823 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15825 hardcode_libdir_flag_spec='-L$libdir'
15826 hardcode_direct=yes
15827 hardcode_minus_L=yes
15828 hardcode_shlibpath_var=no
15832 case $host_vendor in
15834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_direct=yes # is this really true???
15838 ## LD is ld it makes a PLAMLIB
15839 ## CC just makes a GrossModule.
15840 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15841 reload_cmds='$CC -r -o $output$reload_objs'
15845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15849 runpath_var='LD_RUN_PATH'
15850 hardcode_shlibpath_var=no
15854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855 hardcode_shlibpath_var=no
15856 export_dynamic_flag_spec='-Bexport'
15860 if test -d /usr/nec; then
15861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15862 hardcode_shlibpath_var=no
15863 runpath_var=LD_RUN_PATH
15864 hardcode_runpath_var=yes
15869 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15870 no_undefined_flag='${wl}-z,text'
15871 archive_cmds_need_lc=no
15872 hardcode_shlibpath_var=no
15873 runpath_var='LD_RUN_PATH'
15875 if test "$GCC" = yes; then
15876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15884 sysv5* | sco3.2v5* | sco5v6*)
15885 # Note: We can NOT use -z defs as we might desire, because we do not
15886 # link with -lc, and that would cause any symbols used from libc to
15887 # always be unresolved, which means just about no library would
15888 # ever link correctly. If we're not using GNU ld we use -z text
15889 # though, which does catch some bad symbols but isn't as heavy-handed
15891 no_undefined_flag='${wl}-z,text'
15892 allow_undefined_flag='${wl}-z,nodefs'
15893 archive_cmds_need_lc=no
15894 hardcode_shlibpath_var=no
15895 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15896 hardcode_libdir_separator=':'
15897 link_all_deplibs=yes
15898 export_dynamic_flag_spec='${wl}-Bexport'
15899 runpath_var='LD_RUN_PATH'
15901 if test "$GCC" = yes; then
15902 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912 hardcode_libdir_flag_spec='-L$libdir'
15913 hardcode_shlibpath_var=no
15921 if test x$host_vendor = xsni; then
15923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15924 export_dynamic_flag_spec='${wl}-Blargedynsym'
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15931 $as_echo "$ld_shlibs" >&6; }
15932 test "$ld_shlibs" = no && can_build_shared=no
15934 with_gnu_ld=$with_gnu_ld
15951 # Do we need to explicitly link libc?
15953 case "x$archive_cmds_need_lc" in
15955 # Assume -lc should be added
15956 archive_cmds_need_lc=yes
15958 if test "$enable_shared" = yes && test "$GCC" = yes; then
15959 case $archive_cmds in
15961 # FIXME: we may have to deal with multi-command sequences.
15964 # Test whether the compiler implicitly links with -lc since on some
15965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15966 # to ld, don't add -lc before -lgcc.
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15968 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15969 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15970 $as_echo_n "(cached) " >&6
15973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15976 (eval $ac_compile) 2>&5
15978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15979 test $ac_status = 0; } 2>conftest.err; then
15982 libobjs=conftest.$ac_objext
15984 wl=$lt_prog_compiler_wl
15985 pic_flag=$lt_prog_compiler_pic
15991 lt_save_allow_undefined_flag=$allow_undefined_flag
15992 allow_undefined_flag=
15993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15994 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997 test $ac_status = 0; }
15999 lt_cv_archive_cmds_need_lc=no
16001 lt_cv_archive_cmds_need_lc=yes
16003 allow_undefined_flag=$lt_save_allow_undefined_flag
16005 cat conftest.err 1>&5
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16011 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16012 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16176 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16178 if test "$GCC" = yes; then
16180 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16181 *) lt_awk_arg="/^libraries:/" ;;
16184 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16185 *) lt_sed_strip_eq="s,=/,/,g" ;;
16187 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16188 case $lt_search_path_spec in
16190 # if the path contains ";" then we assume it to be the separator
16191 # otherwise default to the standard path separator (i.e. ":") - it is
16192 # assumed that no part of a normal pathname contains ";" but that should
16193 # okay in the real world where ";" in dirpaths is itself problematic.
16194 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16197 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16200 # Ok, now we have the path, separated by spaces, we can step through it
16201 # and add multilib dir if necessary.
16202 lt_tmp_lt_search_path_spec=
16203 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16204 for lt_sys_path in $lt_search_path_spec; do
16205 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16208 test -d "$lt_sys_path" && \
16209 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16212 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16213 BEGIN {RS=" "; FS="/|\n";} {
16216 for (lt_i = NF; lt_i > 0; lt_i--) {
16217 if ($lt_i != "" && $lt_i != ".") {
16218 if ($lt_i == "..") {
16221 if (lt_count == 0) {
16222 lt_foo="/" $lt_i lt_foo;
16229 if (lt_foo != "") { lt_freq[lt_foo]++; }
16230 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16232 # AWK program above erroneously prepends '/' to C:/dos/paths
16235 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16236 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16238 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16242 library_names_spec=
16243 libname_spec='lib$name'
16247 postuninstall_cmds=
16251 shlibpath_overrides_runpath=unknown
16253 dynamic_linker="$host_os ld.so"
16254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16255 need_lib_prefix=unknown
16256 hardcode_into_libs=no
16258 # when you set need_version to no, make sure it does not cause -set_version
16259 # flags to be left without arguments
16260 need_version=unknown
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16266 shlibpath_var=LIBPATH
16268 # AIX 3 has no versioning support, so we append a major version to the name.
16269 soname_spec='${libname}${release}${shared_ext}$major'
16276 hardcode_into_libs=yes
16277 if test "$host_cpu" = ia64; then
16278 # AIX 5 supports IA64
16279 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16280 shlibpath_var=LD_LIBRARY_PATH
16282 # With GCC up to 2.95.x, collect2 would create an import file
16283 # for dependence libraries. The import file would start with
16284 # the line `#! .'. This would cause the generated library to
16285 # depend on `.', always an invalid library. This was fixed in
16286 # development snapshots of GCC prior to 3.0.
16288 aix4 | aix4.[01] | aix4.[01].*)
16289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16291 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16294 can_build_shared=no
16298 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16299 # soname into executable. Probably we can add versioning support to
16300 # collect2, so additional links can be useful in future.
16301 if test "$aix_use_runtimelinking" = yes; then
16302 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16303 # instead of lib<name>.a to let people know that these are not
16304 # typical AIX shared libraries.
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16307 # We preserve .a as extension for shared libraries through AIX4.2
16308 # and later when we are not doing run time linking.
16309 library_names_spec='${libname}${release}.a $libname.a'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16312 shlibpath_var=LIBPATH
16319 # Since July 2007 AmigaOS4 officially supports .so libraries.
16320 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324 library_names_spec='$libname.ixlibrary $libname.a'
16325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16326 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'
16332 library_names_spec='${libname}${shared_ext}'
16333 dynamic_linker="$host_os ld.so"
16334 shlibpath_var=LIBRARY_PATH
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341 soname_spec='${libname}${release}${shared_ext}$major'
16342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16343 shlibpath_var=LD_LIBRARY_PATH
16344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16346 # the default ld.so.conf also contains /usr/contrib/lib and
16347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16348 # libtool to hard-code these into programs
16351 cygwin* | mingw* | pw32* | cegcc*)
16352 version_type=windows
16357 case $GCC,$host_os in
16358 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16359 library_names_spec='$libname.dll.a'
16360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16361 postinstall_cmds='base_file=`basename \${file}`~
16362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16363 dldir=$destdir/`dirname \$dlpath`~
16364 test -d \$dldir || mkdir -p \$dldir~
16365 $install_prog $dir/$dlname \$dldir/$dlname~
16366 chmod a+x \$dldir/$dlname~
16367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16371 dlpath=$dir/\$dldll~
16373 shlibpath_overrides_runpath=yes
16377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16383 # MinGW DLLs use traditional 'lib' prefix
16384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16387 # pw32 DLLs use 'pw' prefix rather than 'lib'
16388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16397 dynamic_linker='Win32 ld.exe'
16398 # FIXME: first we should search . and the directory the executable is in
16402 darwin* | rhapsody*)
16403 dynamic_linker="$host_os dyld"
16404 version_type=darwin
16407 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16408 soname_spec='${libname}${release}${major}$shared_ext'
16409 shlibpath_overrides_runpath=yes
16410 shlibpath_var=DYLD_LIBRARY_PATH
16411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 shlibpath_var=LD_LIBRARY_PATH
16430 freebsd* | dragonfly*)
16431 # DragonFly does not have aout. When/if they implement a new
16432 # versioning mechanism, adjust this.
16433 if test -x /usr/bin/objformat; then
16434 objformat=`/usr/bin/objformat`
16437 freebsd[123]*) objformat=aout ;;
16438 *) objformat=elf ;;
16441 version_type=freebsd-$objformat
16442 case $version_type in
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16453 shlibpath_var=LD_LIBRARY_PATH
16456 shlibpath_overrides_runpath=yes
16458 freebsd3.[01]* | freebsdelf3.[01]*)
16459 shlibpath_overrides_runpath=yes
16460 hardcode_into_libs=yes
16462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16464 shlibpath_overrides_runpath=no
16465 hardcode_into_libs=yes
16467 *) # from 4.6 on, and DragonFly
16468 shlibpath_overrides_runpath=yes
16469 hardcode_into_libs=yes
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 hardcode_into_libs=yes
16488 dynamic_linker="$host_os runtime_loader"
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 shlibpath_var=LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16493 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16494 hardcode_into_libs=yes
16497 hpux9* | hpux10* | hpux11*)
16498 # Give a soname corresponding to the major version so that dld.sl refuses to
16499 # link against other versions.
16506 hardcode_into_libs=yes
16507 dynamic_linker="$host_os dld.so"
16508 shlibpath_var=LD_LIBRARY_PATH
16509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16511 soname_spec='${libname}${release}${shared_ext}$major'
16512 if test "X$HPUX_IA64_MODE" = X32; then
16513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16521 hardcode_into_libs=yes
16522 dynamic_linker="$host_os dld.sl"
16523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16532 dynamic_linker="$host_os dld.sl"
16533 shlibpath_var=SHLIB_PATH
16534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536 soname_spec='${libname}${release}${shared_ext}$major'
16539 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16540 postinstall_cmds='chmod 555 $lib'
16541 # or fails outright, so override atomically:
16542 install_override_mode=555
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16552 shlibpath_var=LD_LIBRARY_PATH
16553 shlibpath_overrides_runpath=no
16554 hardcode_into_libs=yes
16557 irix5* | irix6* | nonstopux*)
16559 nonstopux*) version_type=nonstopux ;;
16561 if test "$lt_cv_prog_gnu_ld" = yes; then
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16572 irix5* | nonstopux*)
16573 libsuff= shlibsuff=
16576 case $LD in # libtool.m4 will add one of these switches to LD
16577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16578 libsuff= shlibsuff= libmagic=32-bit;;
16579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16580 libsuff=32 shlibsuff=N32 libmagic=N32;;
16581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16582 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16583 *) libsuff= shlibsuff= libmagic=never-match;;
16587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16588 shlibpath_overrides_runpath=no
16589 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16590 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16591 hardcode_into_libs=yes
16594 # No shared lib support for Linux oldld, aout, or coff.
16595 linux*oldld* | linux*aout* | linux*coff*)
16599 # This must be Linux ELF.
16600 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605 soname_spec='${libname}${release}${shared_ext}$major'
16606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 shlibpath_overrides_runpath=no
16610 # Some binutils ld are patched to set DT_RUNPATH
16611 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16612 $as_echo_n "(cached) " >&6
16614 lt_cv_shlibpath_overrides_runpath=no
16615 save_LDFLAGS=$LDFLAGS
16616 save_libdir=$libdir
16617 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16618 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16630 if ac_fn_c_try_link "$LINENO"; then :
16631 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16632 lt_cv_shlibpath_overrides_runpath=yes
16635 rm -f core conftest.err conftest.$ac_objext \
16636 conftest$ac_exeext conftest.$ac_ext
16637 LDFLAGS=$save_LDFLAGS
16638 libdir=$save_libdir
16642 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16644 # This implies no fast_install, which is unacceptable.
16645 # Some rework will be needed to allow for fast_install
16646 # before this can be enabled.
16647 hardcode_into_libs=yes
16649 # Append ld.so.conf contents to the search path
16650 if test -f /etc/ld.so.conf; then
16651 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' ' '`
16652 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16655 # We used to test for /lib/ld.so.1 and disable shared libraries on
16656 # powerpc, because MkLinux only supported shared libraries with the
16657 # GNU dynamic linker. Since this was broken with cross compilers,
16658 # most powerpc-linux boxes support dynamic linking these days and
16659 # people can always --disable-shared, the test was removed, and we
16660 # assume the GNU/Linux dynamic linker is in use.
16661 dynamic_linker='GNU/Linux ld.so'
16668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16671 dynamic_linker='NetBSD (a.out) ld.so'
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 dynamic_linker='NetBSD ld.elf_so'
16677 shlibpath_var=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath=yes
16679 hardcode_into_libs=yes
16684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685 shlibpath_var=LD_LIBRARY_PATH
16686 shlibpath_overrides_runpath=yes
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694 soname_spec='${libname}${release}${shared_ext}$major'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=no
16697 hardcode_into_libs=yes
16698 dynamic_linker='ldqnx.so'
16703 sys_lib_dlsearch_path_spec="/usr/lib"
16705 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16707 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16708 *) need_version=no ;;
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16712 shlibpath_var=LD_LIBRARY_PATH
16713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16715 openbsd2.[89] | openbsd2.[89].*)
16716 shlibpath_overrides_runpath=no
16719 shlibpath_overrides_runpath=yes
16723 shlibpath_overrides_runpath=yes
16728 libname_spec='$name'
16731 library_names_spec='$libname${shared_ext} $libname.a'
16732 dynamic_linker='OS/2 ld.exe'
16733 shlibpath_var=LIBPATH
16736 osf3* | osf4* | osf5*)
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 soname_spec='${libname}${release}${shared_ext}$major'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=yes
16759 hardcode_into_libs=yes
16760 # ldd complains unless libraries are executable
16761 postinstall_cmds='chmod +x $lib'
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath=yes
16770 if test "$with_gnu_ld" = yes; then
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779 soname_spec='${libname}${release}${shared_ext}$major'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 case $host_vendor in
16783 shlibpath_overrides_runpath=no
16785 runpath_var=LD_RUN_PATH
16793 shlibpath_overrides_runpath=no
16794 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16800 if test -d /usr/nec ;then
16802 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16803 soname_spec='$libname${shared_ext}.$major'
16804 shlibpath_var=LD_LIBRARY_PATH
16808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16809 version_type=freebsd-elf
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 shlibpath_overrides_runpath=yes
16816 hardcode_into_libs=yes
16817 if test "$with_gnu_ld" = yes; then
16818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16823 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16827 sys_lib_dlsearch_path_spec='/usr/lib'
16831 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 shlibpath_overrides_runpath=no
16838 hardcode_into_libs=yes
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
16845 shlibpath_var=LD_LIBRARY_PATH
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16853 $as_echo "$dynamic_linker" >&6; }
16854 test "$dynamic_linker" = no && can_build_shared=no
16856 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16857 if test "$GCC" = yes; then
16858 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16861 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16862 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16864 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16865 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16960 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16962 if test -n "$hardcode_libdir_flag_spec" ||
16963 test -n "$runpath_var" ||
16964 test "X$hardcode_automatic" = "Xyes" ; then
16966 # We can hardcode non-existent directories.
16967 if test "$hardcode_direct" != no &&
16968 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16969 # have to relink, otherwise we might link with an installed library
16970 # when we should be linking with a yet-to-be-installed one
16971 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16972 test "$hardcode_minus_L" != no; then
16973 # Linking always hardcodes the temporary library directory.
16974 hardcode_action=relink
16976 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16977 hardcode_action=immediate
16980 # We cannot hardcode anything, or else we can only hardcode existing
16982 hardcode_action=unsupported
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16985 $as_echo "$hardcode_action" >&6; }
16987 if test "$hardcode_action" = relink ||
16988 test "$inherit_rpath" = yes; then
16989 # Fast installation is not supported
16990 enable_fast_install=no
16991 elif test "$shlibpath_overrides_runpath" = yes ||
16992 test "$enable_shared" = no; then
16993 # Fast installation is not necessary
16994 enable_fast_install=needless
17002 if test "x$enable_dlopen" != xyes; then
17003 enable_dlopen=unknown
17004 enable_dlopen_self=unknown
17005 enable_dlopen_self_static=unknown
17012 lt_cv_dlopen="load_add_on"
17014 lt_cv_dlopen_self=yes
17017 mingw* | pw32* | cegcc*)
17018 lt_cv_dlopen="LoadLibrary"
17023 lt_cv_dlopen="dlopen"
17028 # if libdl is installed we need to link against it
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17030 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17031 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17032 $as_echo_n "(cached) " >&6
17034 ac_check_lib_save_LIBS=$LIBS
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17039 /* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17054 if ac_fn_c_try_link "$LINENO"; then :
17055 ac_cv_lib_dl_dlopen=yes
17057 ac_cv_lib_dl_dlopen=no
17059 rm -f core conftest.err conftest.$ac_objext \
17060 conftest$ac_exeext conftest.$ac_ext
17061 LIBS=$ac_check_lib_save_LIBS
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17064 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17065 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17069 lt_cv_dlopen="dyld"
17071 lt_cv_dlopen_self=yes
17078 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17079 if test "x$ac_cv_func_shl_load" = x""yes; then :
17080 lt_cv_dlopen="shl_load"
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17083 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17084 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17085 $as_echo_n "(cached) " >&6
17087 ac_check_lib_save_LIBS=$LIBS
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h. */
17092 /* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17102 return shl_load ();
17107 if ac_fn_c_try_link "$LINENO"; then :
17108 ac_cv_lib_dld_shl_load=yes
17110 ac_cv_lib_dld_shl_load=no
17112 rm -f core conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17114 LIBS=$ac_check_lib_save_LIBS
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17117 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17118 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17121 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17122 if test "x$ac_cv_func_dlopen" = x""yes; then :
17123 lt_cv_dlopen="dlopen"
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17126 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17127 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17128 $as_echo_n "(cached) " >&6
17130 ac_check_lib_save_LIBS=$LIBS
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17135 /* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17150 if ac_fn_c_try_link "$LINENO"; then :
17151 ac_cv_lib_dl_dlopen=yes
17153 ac_cv_lib_dl_dlopen=no
17155 rm -f core conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17157 LIBS=$ac_check_lib_save_LIBS
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17160 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17161 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17165 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17166 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17167 $as_echo_n "(cached) " >&6
17169 ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-lsvld $LIBS"
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17174 /* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply. */
17189 if ac_fn_c_try_link "$LINENO"; then :
17190 ac_cv_lib_svld_dlopen=yes
17192 ac_cv_lib_svld_dlopen=no
17194 rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17196 LIBS=$ac_check_lib_save_LIBS
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17199 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17200 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17204 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17205 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17206 $as_echo_n "(cached) " >&6
17208 ac_check_lib_save_LIBS=$LIBS
17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h. */
17213 /* Override any GCC internal prototype to avoid an error.
17214 Use char because int might match the return type of a GCC
17215 builtin and then its argument prototype would still apply. */
17223 return dld_link ();
17228 if ac_fn_c_try_link "$LINENO"; then :
17229 ac_cv_lib_dld_dld_link=yes
17231 ac_cv_lib_dld_dld_link=no
17233 rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17235 LIBS=$ac_check_lib_save_LIBS
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17238 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17239 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17240 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17261 if test "x$lt_cv_dlopen" != xno; then
17267 case $lt_cv_dlopen in
17269 save_CPPFLAGS="$CPPFLAGS"
17270 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17272 save_LDFLAGS="$LDFLAGS"
17273 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17276 LIBS="$lt_cv_dlopen_libs $LIBS"
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17279 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17280 if test "${lt_cv_dlopen_self+set}" = set; then :
17281 $as_echo_n "(cached) " >&6
17283 if test "$cross_compiling" = yes; then :
17284 lt_cv_dlopen_self=cross
17286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17287 lt_status=$lt_dlunknown
17288 cat > conftest.$ac_ext <<_LT_EOF
17289 #line 17289 "configure"
17290 #include "confdefs.h"
17299 # define LT_DLGLOBAL RTLD_GLOBAL
17302 # define LT_DLGLOBAL DL_GLOBAL
17304 # define LT_DLGLOBAL 0
17308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17309 find out it does not work in some platform. */
17310 #ifndef LT_DLLAZY_OR_NOW
17312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17315 # define LT_DLLAZY_OR_NOW DL_LAZY
17318 # define LT_DLLAZY_OR_NOW RTLD_NOW
17321 # define LT_DLLAZY_OR_NOW DL_NOW
17323 # define LT_DLLAZY_OR_NOW 0
17330 /* When -fvisbility=hidden is used, assume the code has been annotated
17331 correspondingly for the symbols needed. */
17332 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17333 void fnord () __attribute__((visibility("default")));
17336 void fnord () { int i=42; }
17339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17340 int status = $lt_dlunknown;
17344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17347 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17348 else puts (dlerror ());
17350 /* dlclose (self); */
17358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17359 (eval $ac_link) 2>&5
17361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17363 (./conftest; exit; ) >&5 2>/dev/null
17365 case x$lt_status in
17366 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17367 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17368 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17371 # compilation failed
17372 lt_cv_dlopen_self=no
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17380 $as_echo "$lt_cv_dlopen_self" >&6; }
17382 if test "x$lt_cv_dlopen_self" = xyes; then
17383 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17385 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17386 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17387 $as_echo_n "(cached) " >&6
17389 if test "$cross_compiling" = yes; then :
17390 lt_cv_dlopen_self_static=cross
17392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17393 lt_status=$lt_dlunknown
17394 cat > conftest.$ac_ext <<_LT_EOF
17395 #line 17395 "configure"
17396 #include "confdefs.h"
17405 # define LT_DLGLOBAL RTLD_GLOBAL
17408 # define LT_DLGLOBAL DL_GLOBAL
17410 # define LT_DLGLOBAL 0
17414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17415 find out it does not work in some platform. */
17416 #ifndef LT_DLLAZY_OR_NOW
17418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17421 # define LT_DLLAZY_OR_NOW DL_LAZY
17424 # define LT_DLLAZY_OR_NOW RTLD_NOW
17427 # define LT_DLLAZY_OR_NOW DL_NOW
17429 # define LT_DLLAZY_OR_NOW 0
17436 /* When -fvisbility=hidden is used, assume the code has been annotated
17437 correspondingly for the symbols needed. */
17438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17439 void fnord () __attribute__((visibility("default")));
17442 void fnord () { int i=42; }
17445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17446 int status = $lt_dlunknown;
17450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17454 else puts (dlerror ());
17456 /* dlclose (self); */
17464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17465 (eval $ac_link) 2>&5
17467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17469 (./conftest; exit; ) >&5 2>/dev/null
17471 case x$lt_status in
17472 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17473 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17474 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17477 # compilation failed
17478 lt_cv_dlopen_self_static=no
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17486 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17489 CPPFLAGS="$save_CPPFLAGS"
17490 LDFLAGS="$save_LDFLAGS"
17495 case $lt_cv_dlopen_self in
17496 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17497 *) enable_dlopen_self=unknown ;;
17500 case $lt_cv_dlopen_self_static in
17501 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17502 *) enable_dlopen_self_static=unknown ;;
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17525 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17526 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17527 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17528 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17530 $as_echo "yes" >&6; }
17532 # FIXME - insert some real tests, host_os isn't really good enough
17535 if test -n "$STRIP" ; then
17536 striplib="$STRIP -x"
17537 old_striplib="$STRIP -S"
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17539 $as_echo "yes" >&6; }
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542 $as_echo "no" >&6; }
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17547 $as_echo "no" >&6; }
17563 # Report which library types will actually be built
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17565 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17567 $as_echo "$can_build_shared" >&6; }
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17570 $as_echo_n "checking whether to build shared libraries... " >&6; }
17571 test "$can_build_shared" = "no" && enable_shared=no
17573 # On AIX, shared libraries and static libraries use the same namespace, and
17574 # are all built from PIC.
17577 test "$enable_shared" = yes && enable_static=no
17578 if test -n "$RANLIB"; then
17579 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17580 postinstall_cmds='$RANLIB $lib'
17585 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17586 test "$enable_shared" = yes && enable_static=no
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17591 $as_echo "$enable_shared" >&6; }
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17594 $as_echo_n "checking whether to build static libraries... " >&6; }
17595 # Make sure either enable_shared or enable_static is yes.
17596 test "$enable_shared" = yes || enable_static=yes
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17598 $as_echo "$enable_static" >&6; }
17605 ac_cpp='$CPP $CPPFLAGS'
17606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17612 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17613 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17614 (test "X$CXX" != "Xg++"))) ; then
17616 ac_cpp='$CXXCPP $CPPFLAGS'
17617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17621 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17622 if test -z "$CXXCPP"; then
17623 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17624 $as_echo_n "(cached) " >&6
17626 # Double quotes because CXXCPP needs to be expanded
17627 for CXXCPP in "$CXX -E" "/lib/cpp"
17629 ac_preproc_ok=false
17630 for ac_cxx_preproc_warn_flag in '' yes
17632 # Use a header file that comes with gcc, so configuring glibc
17633 # with a fresh cross-compiler works.
17634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635 # <limits.h> exists even on freestanding compilers.
17636 # On the NeXT, cc -E runs the code through the compiler's parser,
17637 # not just through cpp. "Syntax error" is here to catch this case.
17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h. */
17641 # include <limits.h>
17643 # include <assert.h>
17647 if ac_fn_cxx_try_cpp "$LINENO"; then :
17650 # Broken: fails on valid input.
17653 rm -f conftest.err conftest.$ac_ext
17655 # OK, works on sane cases. Now check whether nonexistent headers
17656 # can be detected and how.
17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659 #include <ac_nonexistent.h>
17661 if ac_fn_cxx_try_cpp "$LINENO"; then :
17662 # Broken: success on invalid input.
17665 # Passes both tests.
17669 rm -f conftest.err conftest.$ac_ext
17672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17673 rm -f conftest.err conftest.$ac_ext
17674 if $ac_preproc_ok; then :
17679 ac_cv_prog_CXXCPP=$CXXCPP
17682 CXXCPP=$ac_cv_prog_CXXCPP
17684 ac_cv_prog_CXXCPP=$CXXCPP
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17687 $as_echo "$CXXCPP" >&6; }
17688 ac_preproc_ok=false
17689 for ac_cxx_preproc_warn_flag in '' yes
17691 # Use a header file that comes with gcc, so configuring glibc
17692 # with a fresh cross-compiler works.
17693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694 # <limits.h> exists even on freestanding compilers.
17695 # On the NeXT, cc -E runs the code through the compiler's parser,
17696 # not just through cpp. "Syntax error" is here to catch this case.
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h. */
17700 # include <limits.h>
17702 # include <assert.h>
17706 if ac_fn_cxx_try_cpp "$LINENO"; then :
17709 # Broken: fails on valid input.
17712 rm -f conftest.err conftest.$ac_ext
17714 # OK, works on sane cases. Now check whether nonexistent headers
17715 # can be detected and how.
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17718 #include <ac_nonexistent.h>
17720 if ac_fn_cxx_try_cpp "$LINENO"; then :
17721 # Broken: success on invalid input.
17724 # Passes both tests.
17728 rm -f conftest.err conftest.$ac_ext
17731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17732 rm -f conftest.err conftest.$ac_ext
17733 if $ac_preproc_ok; then :
17736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17738 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17739 See \`config.log' for more details." "$LINENO" 5; }
17743 ac_cpp='$CPP $CPPFLAGS'
17744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17749 _lt_caught_CXX_error=yes
17753 ac_cpp='$CXXCPP $CPPFLAGS'
17754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17758 archive_cmds_need_lc_CXX=no
17759 allow_undefined_flag_CXX=
17760 always_export_symbols_CXX=no
17761 archive_expsym_cmds_CXX=
17762 compiler_needs_object_CXX=no
17763 export_dynamic_flag_spec_CXX=
17764 hardcode_direct_CXX=no
17765 hardcode_direct_absolute_CXX=no
17766 hardcode_libdir_flag_spec_CXX=
17767 hardcode_libdir_flag_spec_ld_CXX=
17768 hardcode_libdir_separator_CXX=
17769 hardcode_minus_L_CXX=no
17770 hardcode_shlibpath_var_CXX=unsupported
17771 hardcode_automatic_CXX=no
17772 inherit_rpath_CXX=no
17774 module_expsym_cmds_CXX=
17775 link_all_deplibs_CXX=unknown
17776 old_archive_cmds_CXX=$old_archive_cmds
17777 reload_flag_CXX=$reload_flag
17778 reload_cmds_CXX=$reload_cmds
17779 no_undefined_flag_CXX=
17780 whole_archive_flag_spec_CXX=
17781 enable_shared_with_static_runtimes_CXX=no
17783 # Source file extension for C++ test sources.
17786 # Object file extension for compiled C++ test sources.
17790 # No sense in running all these tests if we already determined that
17791 # the CXX compiler isn't working. Some variables (like enable_shared)
17792 # are currently assumed to apply to all compilers on this platform,
17793 # and will be corrupted by setting them based on a non-working compiler.
17794 if test "$_lt_caught_CXX_error" != yes; then
17795 # Code to be used in simple compile tests
17796 lt_simple_compile_test_code="int some_variable = 0;"
17798 # Code to be used in simple link tests
17799 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17808 # If no C compiler was specified, use CC.
17811 # If no C compiler flags were specified, use CFLAGS.
17812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17814 # Allow CC to be a program name with arguments.
17818 # save warnings/boilerplate of simple test code
17819 ac_outfile=conftest.$ac_objext
17820 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17821 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17822 _lt_compiler_boilerplate=`cat conftest.err`
17825 ac_outfile=conftest.$ac_objext
17826 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17828 _lt_linker_boilerplate=`cat conftest.err`
17832 # Allow CC to be a program name with arguments.
17837 lt_save_with_gnu_ld=$with_gnu_ld
17838 lt_save_path_LD=$lt_cv_path_LD
17839 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17840 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17842 $as_unset lt_cv_prog_gnu_ld
17844 if test -n "${lt_cv_path_LDCXX+set}"; then
17845 lt_cv_path_LD=$lt_cv_path_LDCXX
17847 $as_unset lt_cv_path_LD
17849 test -z "${LDCXX+set}" || LD=$LDCXX
17853 for cc_temp in $compiler""; do
17855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17861 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17864 if test -n "$compiler"; then
17865 # We don't want -fno-exception when compiling C++ code, so set the
17866 # no_builtin_flag separately
17867 if test "$GXX" = yes; then
17868 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17870 lt_prog_compiler_no_builtin_flag_CXX=
17873 if test "$GXX" = yes; then
17874 # Set up default GNU C++ configuration
17878 # Check whether --with-gnu-ld was given.
17879 if test "${with_gnu_ld+set}" = set; then :
17880 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17886 if test "$GCC" = yes; then
17887 # Check if gcc -print-prog-name=ld gives a path.
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17889 $as_echo_n "checking for ld used by $CC... " >&6; }
17892 # gcc leaves a trailing carriage return which upsets mingw
17893 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17895 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17898 # Accept absolute paths.
17900 re_direlt='/[^/][^/]*/\.\./'
17901 # Canonicalize the pathname of ld
17902 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17903 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17904 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17906 test -z "$LD" && LD="$ac_prog"
17909 # If it fails, then pretend we aren't using GCC.
17913 # If it is relative, then search for the first ld in PATH.
17914 with_gnu_ld=unknown
17917 elif test "$with_gnu_ld" = yes; then
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17919 $as_echo_n "checking for GNU ld... " >&6; }
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17922 $as_echo_n "checking for non-GNU ld... " >&6; }
17924 if test "${lt_cv_path_LD+set}" = set; then :
17925 $as_echo_n "(cached) " >&6
17927 if test -z "$LD"; then
17928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17929 for ac_dir in $PATH; do
17931 test -z "$ac_dir" && ac_dir=.
17932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17933 lt_cv_path_LD="$ac_dir/$ac_prog"
17934 # Check to see if the program is GNU ld. I'd rather use --version,
17935 # but apparently some variants of GNU ld only accept -v.
17936 # Break only if it was the GNU/non-GNU ld that we prefer.
17937 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17938 *GNU* | *'with BFD'*)
17939 test "$with_gnu_ld" != no && break
17942 test "$with_gnu_ld" != yes && break
17949 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17953 LD="$lt_cv_path_LD"
17954 if test -n "$LD"; then
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17956 $as_echo "$LD" >&6; }
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17959 $as_echo "no" >&6; }
17961 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17963 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17964 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17965 $as_echo_n "(cached) " >&6
17967 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17968 case `$LD -v 2>&1 </dev/null` in
17969 *GNU* | *'with BFD'*)
17970 lt_cv_prog_gnu_ld=yes
17973 lt_cv_prog_gnu_ld=no
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17978 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17979 with_gnu_ld=$lt_cv_prog_gnu_ld
17987 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17988 # archiving commands below assume that GNU ld is being used.
17989 if test "$with_gnu_ld" = yes; then
17990 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17991 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'
17993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17994 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17996 # If archive_cmds runs LD, not CC, wlarc should be empty
17997 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17998 # investigate it a little bit more. (MM)
18001 # ancient GNU ld didn't support --whole-archive et. al.
18002 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18003 $GREP 'no-whole-archive' > /dev/null; then
18004 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18006 whole_archive_flag_spec_CXX=
18012 # A generic and very simple default shared library creation
18013 # command for GNU C++ for the case where it uses the native
18014 # linker, instead of GNU ld. If possible, this setting should
18015 # overridden to take advantage of the native linker features on
18016 # the platform it is being used on.
18017 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18020 # Commands to make compiler produce verbose output that lists
18021 # what "hidden" libraries, object files and flags are used when
18022 # linking a shared library.
18023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18031 # PORTME: fill in a description of your system's C++ link characteristics
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18033 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18037 # FIXME: insert proper C++ library support
18041 if test "$host_cpu" = ia64; then
18042 # On IA64, the linker does run time linking by default, so we don't
18043 # have to do anything special.
18044 aix_use_runtimelinking=no
18045 exp_sym_flag='-Bexport'
18048 aix_use_runtimelinking=no
18050 # Test if we are trying to use run time linking or normal
18051 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18052 # need to do runtime linking.
18053 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18054 for ld_flag in $LDFLAGS; do
18057 aix_use_runtimelinking=yes
18065 exp_sym_flag='-bexport'
18066 no_entry_flag='-bnoentry'
18069 # When large executables or shared objects are built, AIX ld can
18070 # have problems creating the table of contents. If linking a library
18071 # or program results in "error TOC overflow" add -mminimal-toc to
18072 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18073 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18075 archive_cmds_CXX=''
18076 hardcode_direct_CXX=yes
18077 hardcode_direct_absolute_CXX=yes
18078 hardcode_libdir_separator_CXX=':'
18079 link_all_deplibs_CXX=yes
18080 file_list_spec_CXX='${wl}-f,'
18082 if test "$GXX" = yes; then
18083 case $host_os in aix4.[012]|aix4.[012].*)
18084 # We only want to do this on AIX 4.2 and lower, the check
18085 # below for broken collect2 doesn't work under 4.3+
18086 collect2name=`${CC} -print-prog-name=collect2`
18087 if test -f "$collect2name" &&
18088 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18090 # We have reworked collect2
18093 # We have old collect2
18094 hardcode_direct_CXX=unsupported
18095 # It fails to find uninstalled libraries when the uninstalled
18096 # path is not listed in the libpath. Setting hardcode_minus_L
18097 # to unsupported forces relinking
18098 hardcode_minus_L_CXX=yes
18099 hardcode_libdir_flag_spec_CXX='-L$libdir'
18100 hardcode_libdir_separator_CXX=
18103 shared_flag='-shared'
18104 if test "$aix_use_runtimelinking" = yes; then
18105 shared_flag="$shared_flag "'${wl}-G'
18109 if test "$host_cpu" = ia64; then
18110 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18111 # chokes on -Wl,-G. The following line is correct:
18114 if test "$aix_use_runtimelinking" = yes; then
18115 shared_flag='${wl}-G'
18117 shared_flag='${wl}-bM:SRE'
18122 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18123 # It seems that -bexpall does not export symbols beginning with
18124 # underscore (_), so it is better to generate a list of symbols to
18126 always_export_symbols_CXX=yes
18127 if test "$aix_use_runtimelinking" = yes; then
18128 # Warning - without using the other runtime loading flags (-brtl),
18129 # -berok will link without error, but may produce a broken library.
18130 allow_undefined_flag_CXX='-berok'
18131 # Determine the default libpath from the value encoded in an empty
18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h. */
18144 if ac_fn_cxx_try_link "$LINENO"; then :
18146 lt_aix_libpath_sed='
18147 /Import File Strings/,/^$/ {
18153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18154 # Check for a 64-bit object if we didn't find anything.
18155 if test -z "$aix_libpath"; then
18156 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18159 rm -f core conftest.err conftest.$ac_objext \
18160 conftest$ac_exeext conftest.$ac_ext
18161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18163 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18165 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"
18167 if test "$host_cpu" = ia64; then
18168 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18169 allow_undefined_flag_CXX="-z nodefs"
18170 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"
18172 # Determine the default libpath from the value encoded in an
18173 # empty executable.
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18185 if ac_fn_cxx_try_link "$LINENO"; then :
18187 lt_aix_libpath_sed='
18188 /Import File Strings/,/^$/ {
18194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18195 # Check for a 64-bit object if we didn't find anything.
18196 if test -z "$aix_libpath"; then
18197 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18200 rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18204 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18205 # Warning - without using the other run time loading flags,
18206 # -berok will link without error, but may produce a broken library.
18207 no_undefined_flag_CXX=' ${wl}-bernotok'
18208 allow_undefined_flag_CXX=' ${wl}-berok'
18209 if test "$with_gnu_ld" = yes; then
18210 # We only use this code for GNU lds that support --whole-archive.
18211 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18213 # Exported symbols can be pulled into shared objects from archives
18214 whole_archive_flag_spec_CXX='$convenience'
18216 archive_cmds_need_lc_CXX=yes
18217 # This is similar to how AIX traditionally builds its shared
18219 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'
18225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18226 allow_undefined_flag_CXX=unsupported
18227 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18228 # support --undefined. This deserves some investigation. FIXME
18229 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18236 case $cc_basename in
18238 # FIXME: insert proper C++ library support
18244 cygwin* | mingw* | pw32* | cegcc*)
18245 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18246 # as there is no search path for DLLs.
18247 hardcode_libdir_flag_spec_CXX='-L$libdir'
18248 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18249 allow_undefined_flag_CXX=unsupported
18250 always_export_symbols_CXX=no
18251 enable_shared_with_static_runtimes_CXX=yes
18253 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18254 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'
18255 # If the export-symbols file already is a .def file (1st line
18256 # is EXPORTS), use it as is; otherwise, prepend...
18257 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18258 cp $export_symbols $output_objdir/$soname.def;
18260 echo EXPORTS > $output_objdir/$soname.def;
18261 cat $export_symbols >> $output_objdir/$soname.def;
18263 $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'
18268 darwin* | rhapsody*)
18271 archive_cmds_need_lc_CXX=no
18272 hardcode_direct_CXX=no
18273 hardcode_automatic_CXX=yes
18274 hardcode_shlibpath_var_CXX=unsupported
18275 if test "$lt_cv_ld_force_load" = "yes"; then
18276 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\"`'
18278 whole_archive_flag_spec_CXX=''
18280 link_all_deplibs_CXX=yes
18281 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18282 case $cc_basename in
18283 ifort*) _lt_dar_can_shared=yes ;;
18284 *) _lt_dar_can_shared=$GCC ;;
18286 if test "$_lt_dar_can_shared" = "yes"; then
18287 output_verbose_link_cmd=func_echo_all
18288 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}"
18289 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18290 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}"
18291 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}"
18292 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18293 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}"
18294 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}"
18304 case $cc_basename in
18306 # FIXME: insert proper C++ library support
18310 # Green Hills C++ Compiler
18311 # FIXME: insert proper C++ library support
18315 # FIXME: insert proper C++ library support
18322 # C++ shared libraries reported to be fairly broken before
18328 archive_cmds_need_lc_CXX=no
18331 freebsd* | dragonfly*)
18332 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18341 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18342 link_all_deplibs_CXX=yes
18346 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18347 hardcode_libdir_separator_CXX=:
18348 export_dynamic_flag_spec_CXX='${wl}-E'
18349 hardcode_direct_CXX=yes
18350 hardcode_minus_L_CXX=yes # Not in the search PATH,
18351 # but as the default
18352 # location of the library.
18354 case $cc_basename in
18356 # FIXME: insert proper C++ library support
18360 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'
18361 # Commands to make compiler produce verbose output that lists
18362 # what "hidden" libraries, object files and flags are used when
18363 # linking a shared library.
18365 # There doesn't appear to be a way to prevent this compiler from
18366 # explicitly linking system object files so we need to strip them
18367 # from the output so that they don't get included in the library
18369 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"'
18372 if test "$GXX" = yes; then
18373 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'
18375 # FIXME: insert proper C++ library support
18383 if test $with_gnu_ld = no; then
18384 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18385 hardcode_libdir_separator_CXX=:
18391 export_dynamic_flag_spec_CXX='${wl}-E'
18397 hardcode_direct_CXX=no
18398 hardcode_shlibpath_var_CXX=no
18401 hardcode_direct_CXX=yes
18402 hardcode_direct_absolute_CXX=yes
18403 hardcode_minus_L_CXX=yes # Not in the search PATH,
18404 # but as the default
18405 # location of the library.
18409 case $cc_basename in
18411 # FIXME: insert proper C++ library support
18417 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18420 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18423 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18426 # Commands to make compiler produce verbose output that lists
18427 # what "hidden" libraries, object files and flags are used when
18428 # linking a shared library.
18430 # There doesn't appear to be a way to prevent this compiler from
18431 # explicitly linking system object files so we need to strip them
18432 # from the output so that they don't get included in the library
18434 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"'
18437 if test "$GXX" = yes; then
18438 if test $with_gnu_ld = no; then
18441 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18444 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18447 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'
18452 # FIXME: insert proper C++ library support
18460 hardcode_direct_CXX=no
18461 hardcode_shlibpath_var_CXX=no
18462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18463 export_dynamic_flag_spec_CXX='${wl}-E'
18464 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18465 # Instead, shared libraries are loaded at an image base (0x10000000 by
18466 # default) and relocated if they conflict, which is a slow very memory
18467 # consuming and fragmenting process. To avoid this, we pick a random,
18468 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18469 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18470 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'
18471 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'
18474 case $cc_basename in
18477 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'
18479 # Archives containing C++ object files must be created using
18480 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18481 # necessary to make sure instantiated templates are included
18483 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18486 if test "$GXX" = yes; then
18487 if test "$with_gnu_ld" = no; then
18488 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'
18490 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'
18493 link_all_deplibs_CXX=yes
18496 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18497 hardcode_libdir_separator_CXX=:
18498 inherit_rpath_CXX=yes
18501 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18502 case $cc_basename in
18504 # Kuck and Associates, Inc. (KAI) C++ Compiler
18506 # KCC will only create a shared library if the output file
18507 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18508 # to its proper name (with version) after linking.
18509 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'
18510 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'
18511 # Commands to make compiler produce verbose output that lists
18512 # what "hidden" libraries, object files and flags are used when
18513 # linking a shared library.
18515 # There doesn't appear to be a way to prevent this compiler from
18516 # explicitly linking system object files so we need to strip them
18517 # from the output so that they don't get included in the library
18519 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"'
18521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18522 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18524 # Archives containing C++ object files must be created using
18525 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18526 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18531 # version 8.0 and above of icpc choke on multiply defined symbols
18532 # if we add $predep_objects and $postdep_objects, however 7.1 and
18533 # earlier do not add the objects themselves.
18534 case `$CC -V 2>&1` in
18536 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537 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'
18539 *) # Version 8.0 or newer
18542 ia64*) tmp_idyn=' -i_dynamic';;
18544 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18545 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'
18548 archive_cmds_need_lc_CXX=no
18549 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18550 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18551 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18554 # Portland Group C++ compiler
18556 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18557 prelink_cmds_CXX='tpldir=Template.dir~
18559 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18560 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18561 old_archive_cmds_CXX='tpldir=Template.dir~
18563 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18564 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18566 archive_cmds_CXX='tpldir=Template.dir~
18568 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18569 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18570 archive_expsym_cmds_CXX='tpldir=Template.dir~
18572 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18573 $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'
18575 *) # Version 6 and above use weak symbols
18576 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18577 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'
18581 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18583 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'
18587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18588 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'
18590 runpath_var=LD_RUN_PATH
18591 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18592 hardcode_libdir_separator_CXX=:
18594 # Commands to make compiler produce verbose output that lists
18595 # what "hidden" libraries, object files and flags are used when
18596 # linking a shared library.
18598 # There doesn't appear to be a way to prevent this compiler from
18599 # explicitly linking system object files so we need to strip them
18600 # from the output so that they don't get included in the library
18602 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'
18604 xl* | mpixl* | bgxl*)
18605 # IBM XL 8.0 on PPC, with GNU ld
18606 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18608 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18609 if test "x$supports_anon_versioning" = xyes; then
18610 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18612 echo "local: *; };" >> $output_objdir/$libname.ver~
18613 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18617 case `$CC -V 2>&1 | sed 5q` in
18620 no_undefined_flag_CXX=' -zdefs'
18621 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18622 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'
18623 hardcode_libdir_flag_spec_CXX='-R$libdir'
18624 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'
18625 compiler_needs_object_CXX=yes
18627 # Not sure whether something based on
18628 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18630 output_verbose_link_cmd='func_echo_all'
18632 # Archives containing C++ object files must be created using
18633 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18634 # necessary to make sure instantiated templates are included
18636 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18644 # FIXME: insert proper C++ library support
18649 # FIXME: insert proper C++ library support
18654 case $cc_basename in
18656 # FIXME: insert proper C++ library support
18660 # FIXME: insert proper C++ library support
18667 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18668 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18670 hardcode_libdir_flag_spec_CXX='-R$libdir'
18671 hardcode_direct_CXX=yes
18672 hardcode_shlibpath_var_CXX=no
18674 # Workaround some broken pre-1.5 toolchains
18675 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18683 # C++ shared libraries are fairly broken
18688 if test -f /usr/libexec/ld.so; then
18689 hardcode_direct_CXX=yes
18690 hardcode_shlibpath_var_CXX=no
18691 hardcode_direct_absolute_CXX=yes
18692 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18695 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18696 export_dynamic_flag_spec_CXX='${wl}-E'
18697 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18699 output_verbose_link_cmd=func_echo_all
18705 osf3* | osf4* | osf5*)
18706 case $cc_basename in
18708 # Kuck and Associates, Inc. (KAI) C++ Compiler
18710 # KCC will only create a shared library if the output file
18711 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18712 # to its proper name (with version) after linking.
18713 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'
18715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18716 hardcode_libdir_separator_CXX=:
18718 # Archives containing C++ object files must be created using
18719 # the KAI C++ compiler.
18721 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18722 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18726 # Rational C++ 2.4.1
18727 # FIXME: insert proper C++ library support
18733 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18734 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'
18735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18738 allow_undefined_flag_CXX=' -expect_unresolved \*'
18739 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'
18740 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18741 echo "-hidden">> $lib.exp~
18742 $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~
18744 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18748 hardcode_libdir_separator_CXX=:
18750 # Commands to make compiler produce verbose output that lists
18751 # what "hidden" libraries, object files and flags are used when
18752 # linking a shared library.
18754 # There doesn't appear to be a way to prevent this compiler from
18755 # explicitly linking system object files so we need to strip them
18756 # from the output so that they don't get included in the library
18758 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"'
18761 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18762 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18765 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'
18768 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'
18772 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18773 hardcode_libdir_separator_CXX=:
18775 # Commands to make compiler produce verbose output that lists
18776 # what "hidden" libraries, object files and flags are used when
18777 # linking a shared library.
18778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18781 # FIXME: insert proper C++ library support
18789 # FIXME: insert proper C++ library support
18794 case $cc_basename in
18797 # FIXME: insert proper C++ library support
18802 # FIXME: insert proper C++ library support
18806 # FIXME: insert proper C++ library support
18813 case $cc_basename in
18815 # Sun C++ 4.2, 5.x and Centerline C++
18816 archive_cmds_need_lc_CXX=yes
18817 no_undefined_flag_CXX=' -zdefs'
18818 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18819 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18820 $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'
18822 hardcode_libdir_flag_spec_CXX='-R$libdir'
18823 hardcode_shlibpath_var_CXX=no
18825 solaris2.[0-5] | solaris2.[0-5].*) ;;
18827 # The compiler driver will combine and reorder linker options,
18828 # but understands `-z linker_flag'.
18829 # Supported since Solaris 2.6 (maybe 2.5.1?)
18830 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18833 link_all_deplibs_CXX=yes
18835 output_verbose_link_cmd='func_echo_all'
18837 # Archives containing C++ object files must be created using
18838 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18839 # necessary to make sure instantiated templates are included
18841 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18844 # Green Hills C++ Compiler
18845 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18847 # The C++ compiler must be used to create the archive.
18848 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18851 # GNU C++ compiler with Solaris linker
18852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18853 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18854 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18855 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18856 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18857 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18859 # Commands to make compiler produce verbose output that lists
18860 # what "hidden" libraries, object files and flags are used when
18861 # linking a shared library.
18862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18864 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18866 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18867 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18868 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18870 # Commands to make compiler produce verbose output that lists
18871 # what "hidden" libraries, object files and flags are used when
18872 # linking a shared library.
18873 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18876 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18878 solaris2.[0-5] | solaris2.[0-5].*) ;;
18880 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18888 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18889 no_undefined_flag_CXX='${wl}-z,text'
18890 archive_cmds_need_lc_CXX=no
18891 hardcode_shlibpath_var_CXX=no
18892 runpath_var='LD_RUN_PATH'
18894 case $cc_basename in
18896 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18897 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18900 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18901 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18906 sysv5* | sco3.2v5* | sco5v6*)
18907 # Note: We can NOT use -z defs as we might desire, because we do not
18908 # link with -lc, and that would cause any symbols used from libc to
18909 # always be unresolved, which means just about no library would
18910 # ever link correctly. If we're not using GNU ld we use -z text
18911 # though, which does catch some bad symbols but isn't as heavy-handed
18913 no_undefined_flag_CXX='${wl}-z,text'
18914 allow_undefined_flag_CXX='${wl}-z,nodefs'
18915 archive_cmds_need_lc_CXX=no
18916 hardcode_shlibpath_var_CXX=no
18917 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18918 hardcode_libdir_separator_CXX=':'
18919 link_all_deplibs_CXX=yes
18920 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18921 runpath_var='LD_RUN_PATH'
18923 case $cc_basename in
18925 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18926 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18927 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18928 '"$old_archive_cmds_CXX"
18929 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18930 '"$reload_cmds_CXX"
18933 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18934 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18940 case $cc_basename in
18942 # NonStop-UX NCC 3.20
18943 # FIXME: insert proper C++ library support
18947 # FIXME: insert proper C++ library support
18954 # FIXME: insert proper C++ library support
18959 # FIXME: insert proper C++ library support
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18965 $as_echo "$ld_shlibs_CXX" >&6; }
18966 test "$ld_shlibs_CXX" = no && can_build_shared=no
18972 ## There is no encapsulation within the following macros, do not change
18973 ## the running order or otherwise move them around unless you know exactly
18974 ## what you are doing...
18975 # Dependencies to place before and after the object being linked:
18976 predep_objects_CXX=
18977 postdep_objects_CXX=
18980 compiler_lib_search_path_CXX=
18982 cat > conftest.$ac_ext <<_LT_EOF
18986 Foo (void) { a = 0; }
18992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18993 (eval $ac_compile) 2>&5
18995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18996 test $ac_status = 0; }; then
18997 # Parse the compiler output and extract the necessary
18998 # objects, libraries and library flags.
19000 # Sentinel used to keep track of whether or not we are before
19001 # the conftest object file.
19002 pre_test_object_deps_done=no
19004 for p in `eval "$output_verbose_link_cmd"`; do
19008 # Some compilers place space between "-{L,R}" and the path.
19009 # Remove the space.
19010 if test $p = "-L" ||
19011 test $p = "-R"; then
19018 if test "$pre_test_object_deps_done" = no; then
19021 # Internal compiler library paths should come after those
19022 # provided the user. The postdeps already come after the
19023 # user supplied libs so there is no need to process them.
19024 if test -z "$compiler_lib_search_path_CXX"; then
19025 compiler_lib_search_path_CXX="${prev}${p}"
19027 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19030 # The "-l" case would never come before the object being
19031 # linked, so don't bother handling this case.
19034 if test -z "$postdeps_CXX"; then
19035 postdeps_CXX="${prev}${p}"
19037 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19043 # This assumes that the test object file only shows up
19044 # once in the compiler output.
19045 if test "$p" = "conftest.$objext"; then
19046 pre_test_object_deps_done=yes
19050 if test "$pre_test_object_deps_done" = no; then
19051 if test -z "$predep_objects_CXX"; then
19052 predep_objects_CXX="$p"
19054 predep_objects_CXX="$predep_objects_CXX $p"
19057 if test -z "$postdep_objects_CXX"; then
19058 postdep_objects_CXX="$p"
19060 postdep_objects_CXX="$postdep_objects_CXX $p"
19065 *) ;; # Ignore the rest.
19073 echo "libtool.m4: error: problem compiling CXX test program"
19076 $RM -f confest.$objext
19078 # PORTME: override above test on systems where it is broken
19081 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19082 # hack all around it, let's just trust "g++" to DTRT.
19083 predep_objects_CXX=
19084 postdep_objects_CXX=
19089 case `$CC -V 2>&1 | sed 5q` in
19093 # The more standards-conforming stlport4 library is
19094 # incompatible with the Cstd library. Avoid specifying
19095 # it if it's in CXXFLAGS. Ignore libCrun as
19096 # -library=stlport4 depends on it.
19097 case " $CXX $CXXFLAGS " in
19098 *" -library=stlport4 "*)
19099 solaris_use_stlport4=yes
19103 if test "$solaris_use_stlport4" != yes; then
19104 postdeps_CXX='-library=Cstd -library=Crun'
19111 case $cc_basename in
19113 # The more standards-conforming stlport4 library is
19114 # incompatible with the Cstd library. Avoid specifying
19115 # it if it's in CXXFLAGS. Ignore libCrun as
19116 # -library=stlport4 depends on it.
19117 case " $CXX $CXXFLAGS " in
19118 *" -library=stlport4 "*)
19119 solaris_use_stlport4=yes
19123 # Adding this requires a known-good setup of shared libraries for
19124 # Sun compiler versions before 5.6, else PIC objects from an old
19125 # archive will be linked into the output, leading to subtle bugs.
19126 if test "$solaris_use_stlport4" != yes; then
19127 postdeps_CXX='-library=Cstd -library=Crun'
19135 case " $postdeps_CXX " in
19136 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19138 compiler_lib_search_dirs_CXX=
19139 if test -n "${compiler_lib_search_path_CXX}"; then
19140 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19173 lt_prog_compiler_wl_CXX=
19174 lt_prog_compiler_pic_CXX=
19175 lt_prog_compiler_static_CXX=
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19178 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19180 # C++ specific cases for pic, static, wl, etc.
19181 if test "$GXX" = yes; then
19182 lt_prog_compiler_wl_CXX='-Wl,'
19183 lt_prog_compiler_static_CXX='-static'
19187 # All AIX code is PIC.
19188 if test "$host_cpu" = ia64; then
19189 # AIX 5 now supports IA64 processor
19190 lt_prog_compiler_static_CXX='-Bstatic'
19197 # see comment about AmigaOS4 .so support
19198 lt_prog_compiler_pic_CXX='-fPIC'
19201 # FIXME: we need at least 68020 code to build shared libraries, but
19202 # adding the `-m68020' flag to GCC prevents building anything better,
19204 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19209 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19210 # PIC is the default for these OSes.
19212 mingw* | cygwin* | os2* | pw32* | cegcc*)
19213 # This hack is so that the source file can tell whether it is being
19214 # built for inclusion in a dll (and should export symbols for example).
19215 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19216 # (--disable-auto-import) libraries
19217 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19219 darwin* | rhapsody*)
19220 # PIC is the default on this platform
19221 # Common symbols not allowed in MH_DYLIB files
19222 lt_prog_compiler_pic_CXX='-fno-common'
19225 # DJGPP does not support shared libraries at all
19226 lt_prog_compiler_pic_CXX=
19229 # PIC is the default for Haiku.
19230 # The "-static" flag exists, but is broken.
19231 lt_prog_compiler_static_CXX=
19234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19235 # Instead, we relocate shared libraries at runtime.
19238 if test -d /usr/nec; then
19239 lt_prog_compiler_pic_CXX=-Kconform_pic
19243 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19244 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19245 # sets the default TLS model and affects inlining.
19250 lt_prog_compiler_pic_CXX='-fPIC'
19255 # QNX uses GNU C++, but need to define -shared option too, otherwise
19256 # it will coredump.
19257 lt_prog_compiler_pic_CXX='-fPIC -shared'
19260 lt_prog_compiler_pic_CXX='-fPIC'
19266 # All AIX code is PIC.
19267 if test "$host_cpu" = ia64; then
19268 # AIX 5 now supports IA64 processor
19269 lt_prog_compiler_static_CXX='-Bstatic'
19271 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19275 case $cc_basename in
19277 # Green Hills C++ Compiler
19278 # _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"
19283 case $cc_basename in
19285 lt_prog_compiler_pic_CXX='-KPIC'
19288 # Green Hills C++ Compiler
19289 lt_prog_compiler_pic_CXX='-pic'
19295 freebsd* | dragonfly*)
19296 # FreeBSD uses GNU C++
19298 hpux9* | hpux10* | hpux11*)
19299 case $cc_basename in
19301 lt_prog_compiler_wl_CXX='-Wl,'
19302 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19303 if test "$host_cpu" != ia64; then
19304 lt_prog_compiler_pic_CXX='+Z'
19308 lt_prog_compiler_wl_CXX='-Wl,'
19309 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19315 lt_prog_compiler_pic_CXX='+Z'
19324 # This is c89, which is MS Visual C++ (no shared libs)
19325 # Anyone wants to do a port?
19327 irix5* | irix6* | nonstopux*)
19328 case $cc_basename in
19330 lt_prog_compiler_wl_CXX='-Wl,'
19331 lt_prog_compiler_static_CXX='-non_shared'
19332 # CC pic flag -KPIC is the default.
19338 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19339 case $cc_basename in
19342 lt_prog_compiler_wl_CXX='--backend -Wl,'
19343 lt_prog_compiler_pic_CXX='-fPIC'
19346 # old Intel C++ for x86_64 which still supported -KPIC.
19347 lt_prog_compiler_wl_CXX='-Wl,'
19348 lt_prog_compiler_pic_CXX='-KPIC'
19349 lt_prog_compiler_static_CXX='-static'
19352 # Intel C++, used to be incompatible with GCC.
19353 # ICC 10 doesn't accept -KPIC any more.
19354 lt_prog_compiler_wl_CXX='-Wl,'
19355 lt_prog_compiler_pic_CXX='-fPIC'
19356 lt_prog_compiler_static_CXX='-static'
19359 # Portland Group C++ compiler
19360 lt_prog_compiler_wl_CXX='-Wl,'
19361 lt_prog_compiler_pic_CXX='-fpic'
19362 lt_prog_compiler_static_CXX='-Bstatic'
19366 # Make sure the PIC flag is empty. It appears that all Alpha
19367 # Linux and Compaq Tru64 Unix objects are PIC.
19368 lt_prog_compiler_pic_CXX=
19369 lt_prog_compiler_static_CXX='-non_shared'
19371 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19372 # IBM XL 8.0, 9.0 on PPC and BlueGene
19373 lt_prog_compiler_wl_CXX='-Wl,'
19374 lt_prog_compiler_pic_CXX='-qpic'
19375 lt_prog_compiler_static_CXX='-qstaticlink'
19378 case `$CC -V 2>&1 | sed 5q` in
19381 lt_prog_compiler_pic_CXX='-KPIC'
19382 lt_prog_compiler_static_CXX='-Bstatic'
19383 lt_prog_compiler_wl_CXX='-Qoption ld '
19394 case $cc_basename in
19396 lt_prog_compiler_pic_CXX='-W c,exportall'
19405 # QNX uses GNU C++, but need to define -shared option too, otherwise
19406 # it will coredump.
19407 lt_prog_compiler_pic_CXX='-fPIC -shared'
19409 osf3* | osf4* | osf5*)
19410 case $cc_basename in
19412 lt_prog_compiler_wl_CXX='--backend -Wl,'
19415 # Rational C++ 2.4.1
19416 lt_prog_compiler_pic_CXX='-pic'
19419 # Digital/Compaq C++
19420 lt_prog_compiler_wl_CXX='-Wl,'
19421 # Make sure the PIC flag is empty. It appears that all Alpha
19422 # Linux and Compaq Tru64 Unix objects are PIC.
19423 lt_prog_compiler_pic_CXX=
19424 lt_prog_compiler_static_CXX='-non_shared'
19433 case $cc_basename in
19435 # Sun C++ 4.2, 5.x and Centerline C++
19436 lt_prog_compiler_pic_CXX='-KPIC'
19437 lt_prog_compiler_static_CXX='-Bstatic'
19438 lt_prog_compiler_wl_CXX='-Qoption ld '
19441 # Green Hills C++ Compiler
19442 lt_prog_compiler_pic_CXX='-PIC'
19449 case $cc_basename in
19452 lt_prog_compiler_pic_CXX='-pic'
19453 lt_prog_compiler_static_CXX='-Bstatic'
19457 lt_prog_compiler_pic_CXX='-pic'
19463 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19464 case $cc_basename in
19466 lt_prog_compiler_wl_CXX='-Wl,'
19467 lt_prog_compiler_pic_CXX='-KPIC'
19468 lt_prog_compiler_static_CXX='-Bstatic'
19473 case $cc_basename in
19475 # NonStop-UX NCC 3.20
19476 lt_prog_compiler_pic_CXX='-KPIC'
19485 lt_prog_compiler_can_build_shared_CXX=no
19491 # For platforms which do not support PIC, -DPIC is meaningless:
19493 lt_prog_compiler_pic_CXX=
19496 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19500 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19505 # Check to make sure the PIC flag actually works.
19507 if test -n "$lt_prog_compiler_pic_CXX"; then
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19509 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19510 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19511 $as_echo_n "(cached) " >&6
19513 lt_cv_prog_compiler_pic_works_CXX=no
19514 ac_outfile=conftest.$ac_objext
19515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19516 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19517 # Insert the option either (1) after the last *FLAGS variable, or
19518 # (2) before a word containing "conftest.", or (3) at the end.
19519 # Note that $ac_compile itself does not contain backslashes and begins
19520 # with a dollar sign (not a hyphen), so the echo should work correctly.
19521 # The option is referenced via a variable to avoid confusing sed.
19522 lt_compile=`echo "$ac_compile" | $SED \
19523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19525 -e 's:$: $lt_compiler_flag:'`
19526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19527 (eval "$lt_compile" 2>conftest.err)
19529 cat conftest.err >&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 if (exit $ac_status) && test -s "$ac_outfile"; then
19532 # The compiler can only warn and ignore the option if not recognized
19533 # So say no if there are warnings other than the usual output.
19534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19537 lt_cv_prog_compiler_pic_works_CXX=yes
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19544 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19546 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19547 case $lt_prog_compiler_pic_CXX in
19549 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19552 lt_prog_compiler_pic_CXX=
19553 lt_prog_compiler_can_build_shared_CXX=no
19561 # Check to make sure the static flag actually works.
19563 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19565 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19566 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19567 $as_echo_n "(cached) " >&6
19569 lt_cv_prog_compiler_static_works_CXX=no
19570 save_LDFLAGS="$LDFLAGS"
19571 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19572 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19573 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19574 # The linker can only warn and ignore the option if not recognized
19575 # So say no if there are warnings
19576 if test -s conftest.err; then
19577 # Append any errors to the config.log.
19578 cat conftest.err 1>&5
19579 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19581 if diff conftest.exp conftest.er2 >/dev/null; then
19582 lt_cv_prog_compiler_static_works_CXX=yes
19585 lt_cv_prog_compiler_static_works_CXX=yes
19589 LDFLAGS="$save_LDFLAGS"
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19593 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19595 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19598 lt_prog_compiler_static_CXX=
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19605 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19606 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19607 $as_echo_n "(cached) " >&6
19609 lt_cv_prog_compiler_c_o_CXX=no
19610 $RM -r conftest 2>/dev/null
19614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19616 lt_compiler_flag="-o out/conftest2.$ac_objext"
19617 # Insert the option either (1) after the last *FLAGS variable, or
19618 # (2) before a word containing "conftest.", or (3) at the end.
19619 # Note that $ac_compile itself does not contain backslashes and begins
19620 # with a dollar sign (not a hyphen), so the echo should work correctly.
19621 lt_compile=`echo "$ac_compile" | $SED \
19622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19624 -e 's:$: $lt_compiler_flag:'`
19625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19626 (eval "$lt_compile" 2>out/conftest.err)
19628 cat out/conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19632 # The compiler can only warn and ignore the option if not recognized
19633 # So say no if there are warnings
19634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19637 lt_cv_prog_compiler_c_o_CXX=yes
19642 # SGI C++ compiler will create directory out/ii_files/ for
19643 # template instantiation
19644 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19645 $RM out/* && rmdir out
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19652 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19658 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19659 $as_echo_n "(cached) " >&6
19661 lt_cv_prog_compiler_c_o_CXX=no
19662 $RM -r conftest 2>/dev/null
19666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19668 lt_compiler_flag="-o out/conftest2.$ac_objext"
19669 # Insert the option either (1) after the last *FLAGS variable, or
19670 # (2) before a word containing "conftest.", or (3) at the end.
19671 # Note that $ac_compile itself does not contain backslashes and begins
19672 # with a dollar sign (not a hyphen), so the echo should work correctly.
19673 lt_compile=`echo "$ac_compile" | $SED \
19674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19676 -e 's:$: $lt_compiler_flag:'`
19677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19678 (eval "$lt_compile" 2>out/conftest.err)
19680 cat out/conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19684 # The compiler can only warn and ignore the option if not recognized
19685 # So say no if there are warnings
19686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19689 lt_cv_prog_compiler_c_o_CXX=yes
19694 # SGI C++ compiler will create directory out/ii_files/ for
19695 # template instantiation
19696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19697 $RM out/* && rmdir out
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19704 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19709 hard_links="nottested"
19710 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19711 # do not overwrite the value of need_locks provided by the user
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19713 $as_echo_n "checking if we can lock with hard links... " >&6; }
19716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19718 ln conftest.a conftest.b 2>&5 || hard_links=no
19719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19721 $as_echo "$hard_links" >&6; }
19722 if test "$hard_links" = no; then
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19724 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19734 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19736 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19739 # If we're using GNU nm, then we don't want the "-C" option.
19740 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19741 # Also, AIX nm treats weak defined symbols like other global defined
19742 # symbols, whereas GNU nm marks them as "W".
19743 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19744 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'
19746 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'
19750 export_symbols_cmds_CXX="$ltdll_cmds"
19752 cygwin* | mingw* | cegcc*)
19753 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'
19756 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19759 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19762 $as_echo "$ld_shlibs_CXX" >&6; }
19763 test "$ld_shlibs_CXX" = no && can_build_shared=no
19765 with_gnu_ld_CXX=$with_gnu_ld
19773 # Do we need to explicitly link libc?
19775 case "x$archive_cmds_need_lc_CXX" in
19777 # Assume -lc should be added
19778 archive_cmds_need_lc_CXX=yes
19780 if test "$enable_shared" = yes && test "$GCC" = yes; then
19781 case $archive_cmds_CXX in
19783 # FIXME: we may have to deal with multi-command sequences.
19786 # Test whether the compiler implicitly links with -lc since on some
19787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19788 # to ld, don't add -lc before -lgcc.
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19791 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19792 $as_echo_n "(cached) " >&6
19795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19798 (eval $ac_compile) 2>&5
19800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19801 test $ac_status = 0; } 2>conftest.err; then
19804 libobjs=conftest.$ac_objext
19806 wl=$lt_prog_compiler_wl_CXX
19807 pic_flag=$lt_prog_compiler_pic_CXX
19813 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19814 allow_undefined_flag_CXX=
19815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19816 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19819 test $ac_status = 0; }
19821 lt_cv_archive_cmds_need_lc_CXX=no
19823 lt_cv_archive_cmds_need_lc_CXX=yes
19825 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19827 cat conftest.err 1>&5
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19833 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19834 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19905 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19907 library_names_spec=
19908 libname_spec='lib$name'
19912 postuninstall_cmds=
19916 shlibpath_overrides_runpath=unknown
19918 dynamic_linker="$host_os ld.so"
19919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19920 need_lib_prefix=unknown
19921 hardcode_into_libs=no
19923 # when you set need_version to no, make sure it does not cause -set_version
19924 # flags to be left without arguments
19925 need_version=unknown
19930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19931 shlibpath_var=LIBPATH
19933 # AIX 3 has no versioning support, so we append a major version to the name.
19934 soname_spec='${libname}${release}${shared_ext}$major'
19941 hardcode_into_libs=yes
19942 if test "$host_cpu" = ia64; then
19943 # AIX 5 supports IA64
19944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19945 shlibpath_var=LD_LIBRARY_PATH
19947 # With GCC up to 2.95.x, collect2 would create an import file
19948 # for dependence libraries. The import file would start with
19949 # the line `#! .'. This would cause the generated library to
19950 # depend on `.', always an invalid library. This was fixed in
19951 # development snapshots of GCC prior to 3.0.
19953 aix4 | aix4.[01] | aix4.[01].*)
19954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19956 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19959 can_build_shared=no
19963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19964 # soname into executable. Probably we can add versioning support to
19965 # collect2, so additional links can be useful in future.
19966 if test "$aix_use_runtimelinking" = yes; then
19967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19968 # instead of lib<name>.a to let people know that these are not
19969 # typical AIX shared libraries.
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19972 # We preserve .a as extension for shared libraries through AIX4.2
19973 # and later when we are not doing run time linking.
19974 library_names_spec='${libname}${release}.a $libname.a'
19975 soname_spec='${libname}${release}${shared_ext}$major'
19977 shlibpath_var=LIBPATH
19984 # Since July 2007 AmigaOS4 officially supports .so libraries.
19985 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19989 library_names_spec='$libname.ixlibrary $libname.a'
19990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19991 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'
19997 library_names_spec='${libname}${shared_ext}'
19998 dynamic_linker="$host_os ld.so"
19999 shlibpath_var=LIBRARY_PATH
20005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20006 soname_spec='${libname}${release}${shared_ext}$major'
20007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20008 shlibpath_var=LD_LIBRARY_PATH
20009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20011 # the default ld.so.conf also contains /usr/contrib/lib and
20012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20013 # libtool to hard-code these into programs
20016 cygwin* | mingw* | pw32* | cegcc*)
20017 version_type=windows
20022 case $GCC,$host_os in
20023 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20024 library_names_spec='$libname.dll.a'
20025 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20026 postinstall_cmds='base_file=`basename \${file}`~
20027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20028 dldir=$destdir/`dirname \$dlpath`~
20029 test -d \$dldir || mkdir -p \$dldir~
20030 $install_prog $dir/$dlname \$dldir/$dlname~
20031 chmod a+x \$dldir/$dlname~
20032 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20033 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20036 dlpath=$dir/\$dldll~
20038 shlibpath_overrides_runpath=yes
20042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20047 # MinGW DLLs use traditional 'lib' prefix
20048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20051 # pw32 DLLs use 'pw' prefix rather than 'lib'
20052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20061 dynamic_linker='Win32 ld.exe'
20062 # FIXME: first we should search . and the directory the executable is in
20066 darwin* | rhapsody*)
20067 dynamic_linker="$host_os dyld"
20068 version_type=darwin
20071 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20072 soname_spec='${libname}${release}${major}$shared_ext'
20073 shlibpath_overrides_runpath=yes
20074 shlibpath_var=DYLD_LIBRARY_PATH
20075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20085 soname_spec='${libname}${release}${shared_ext}$major'
20086 shlibpath_var=LD_LIBRARY_PATH
20093 freebsd* | dragonfly*)
20094 # DragonFly does not have aout. When/if they implement a new
20095 # versioning mechanism, adjust this.
20096 if test -x /usr/bin/objformat; then
20097 objformat=`/usr/bin/objformat`
20100 freebsd[123]*) objformat=aout ;;
20101 *) objformat=elf ;;
20104 version_type=freebsd-$objformat
20105 case $version_type in
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20116 shlibpath_var=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath=yes
20121 freebsd3.[01]* | freebsdelf3.[01]*)
20122 shlibpath_overrides_runpath=yes
20123 hardcode_into_libs=yes
20125 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20126 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20127 shlibpath_overrides_runpath=no
20128 hardcode_into_libs=yes
20130 *) # from 4.6 on, and DragonFly
20131 shlibpath_overrides_runpath=yes
20132 hardcode_into_libs=yes
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 shlibpath_var=LD_LIBRARY_PATH
20144 hardcode_into_libs=yes
20151 dynamic_linker="$host_os runtime_loader"
20152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20153 soname_spec='${libname}${release}${shared_ext}$major'
20154 shlibpath_var=LIBRARY_PATH
20155 shlibpath_overrides_runpath=yes
20156 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20157 hardcode_into_libs=yes
20160 hpux9* | hpux10* | hpux11*)
20161 # Give a soname corresponding to the major version so that dld.sl refuses to
20162 # link against other versions.
20169 hardcode_into_libs=yes
20170 dynamic_linker="$host_os dld.so"
20171 shlibpath_var=LD_LIBRARY_PATH
20172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20174 soname_spec='${libname}${release}${shared_ext}$major'
20175 if test "X$HPUX_IA64_MODE" = X32; then
20176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20178 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20184 hardcode_into_libs=yes
20185 dynamic_linker="$host_os dld.sl"
20186 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20189 soname_spec='${libname}${release}${shared_ext}$major'
20190 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20195 dynamic_linker="$host_os dld.sl"
20196 shlibpath_var=SHLIB_PATH
20197 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199 soname_spec='${libname}${release}${shared_ext}$major'
20202 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20203 postinstall_cmds='chmod 555 $lib'
20204 # or fails outright, so override atomically:
20205 install_override_mode=555
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20214 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20215 shlibpath_var=LD_LIBRARY_PATH
20216 shlibpath_overrides_runpath=no
20217 hardcode_into_libs=yes
20220 irix5* | irix6* | nonstopux*)
20222 nonstopux*) version_type=nonstopux ;;
20224 if test "$lt_cv_prog_gnu_ld" = yes; then
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20235 irix5* | nonstopux*)
20236 libsuff= shlibsuff=
20239 case $LD in # libtool.m4 will add one of these switches to LD
20240 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20241 libsuff= shlibsuff= libmagic=32-bit;;
20242 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20243 libsuff=32 shlibsuff=N32 libmagic=N32;;
20244 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20245 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20246 *) libsuff= shlibsuff= libmagic=never-match;;
20250 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20251 shlibpath_overrides_runpath=no
20252 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20253 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20254 hardcode_into_libs=yes
20257 # No shared lib support for Linux oldld, aout, or coff.
20258 linux*oldld* | linux*aout* | linux*coff*)
20262 # This must be Linux ELF.
20263 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 shlibpath_overrides_runpath=no
20273 # Some binutils ld are patched to set DT_RUNPATH
20274 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20275 $as_echo_n "(cached) " >&6
20277 lt_cv_shlibpath_overrides_runpath=no
20278 save_LDFLAGS=$LDFLAGS
20279 save_libdir=$libdir
20280 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20281 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h. */
20293 if ac_fn_cxx_try_link "$LINENO"; then :
20294 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20295 lt_cv_shlibpath_overrides_runpath=yes
20298 rm -f core conftest.err conftest.$ac_objext \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LDFLAGS=$save_LDFLAGS
20301 libdir=$save_libdir
20305 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20307 # This implies no fast_install, which is unacceptable.
20308 # Some rework will be needed to allow for fast_install
20309 # before this can be enabled.
20310 hardcode_into_libs=yes
20312 # Append ld.so.conf contents to the search path
20313 if test -f /etc/ld.so.conf; then
20314 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' ' '`
20315 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20318 # We used to test for /lib/ld.so.1 and disable shared libraries on
20319 # powerpc, because MkLinux only supported shared libraries with the
20320 # GNU dynamic linker. Since this was broken with cross compilers,
20321 # most powerpc-linux boxes support dynamic linking these days and
20322 # people can always --disable-shared, the test was removed, and we
20323 # assume the GNU/Linux dynamic linker is in use.
20324 dynamic_linker='GNU/Linux ld.so'
20331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20334 dynamic_linker='NetBSD (a.out) ld.so'
20336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20337 soname_spec='${libname}${release}${shared_ext}$major'
20338 dynamic_linker='NetBSD ld.elf_so'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 shlibpath_overrides_runpath=yes
20342 hardcode_into_libs=yes
20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348 shlibpath_var=LD_LIBRARY_PATH
20349 shlibpath_overrides_runpath=yes
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=no
20360 hardcode_into_libs=yes
20361 dynamic_linker='ldqnx.so'
20366 sys_lib_dlsearch_path_spec="/usr/lib"
20368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20371 *) need_version=no ;;
20373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20375 shlibpath_var=LD_LIBRARY_PATH
20376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20378 openbsd2.[89] | openbsd2.[89].*)
20379 shlibpath_overrides_runpath=no
20382 shlibpath_overrides_runpath=yes
20386 shlibpath_overrides_runpath=yes
20391 libname_spec='$name'
20394 library_names_spec='$libname${shared_ext} $libname.a'
20395 dynamic_linker='OS/2 ld.exe'
20396 shlibpath_var=LIBPATH
20399 osf3* | osf4* | osf5*)
20403 soname_spec='${libname}${release}${shared_ext}$major'
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20405 shlibpath_var=LD_LIBRARY_PATH
20406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 shlibpath_var=LD_LIBRARY_PATH
20421 shlibpath_overrides_runpath=yes
20422 hardcode_into_libs=yes
20423 # ldd complains unless libraries are executable
20424 postinstall_cmds='chmod +x $lib'
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 shlibpath_overrides_runpath=yes
20433 if test "$with_gnu_ld" = yes; then
20441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 case $host_vendor in
20446 shlibpath_overrides_runpath=no
20448 runpath_var=LD_RUN_PATH
20456 shlibpath_overrides_runpath=no
20457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20463 if test -d /usr/nec ;then
20465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20466 soname_spec='$libname${shared_ext}.$major'
20467 shlibpath_var=LD_LIBRARY_PATH
20471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20472 version_type=freebsd-elf
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20476 soname_spec='${libname}${release}${shared_ext}$major'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=yes
20479 hardcode_into_libs=yes
20480 if test "$with_gnu_ld" = yes; then
20481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20490 sys_lib_dlsearch_path_spec='/usr/lib'
20494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499 shlibpath_var=LD_LIBRARY_PATH
20500 shlibpath_overrides_runpath=no
20501 hardcode_into_libs=yes
20506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20507 soname_spec='${libname}${release}${shared_ext}$major'
20508 shlibpath_var=LD_LIBRARY_PATH
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20516 $as_echo "$dynamic_linker" >&6; }
20517 test "$dynamic_linker" = no && can_build_shared=no
20519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20520 if test "$GCC" = yes; then
20521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20524 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20527 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20569 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20570 hardcode_action_CXX=
20571 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20572 test -n "$runpath_var_CXX" ||
20573 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20575 # We can hardcode non-existent directories.
20576 if test "$hardcode_direct_CXX" != no &&
20577 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20578 # have to relink, otherwise we might link with an installed library
20579 # when we should be linking with a yet-to-be-installed one
20580 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20581 test "$hardcode_minus_L_CXX" != no; then
20582 # Linking always hardcodes the temporary library directory.
20583 hardcode_action_CXX=relink
20585 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20586 hardcode_action_CXX=immediate
20589 # We cannot hardcode anything, or else we can only hardcode existing
20591 hardcode_action_CXX=unsupported
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20594 $as_echo "$hardcode_action_CXX" >&6; }
20596 if test "$hardcode_action_CXX" = relink ||
20597 test "$inherit_rpath_CXX" = yes; then
20598 # Fast installation is not supported
20599 enable_fast_install=no
20600 elif test "$shlibpath_overrides_runpath" = yes ||
20601 test "$enable_shared" = no; then
20602 # Fast installation is not necessary
20603 enable_fast_install=needless
20612 fi # test -n "$compiler"
20618 with_gnu_ld=$lt_save_with_gnu_ld
20619 lt_cv_path_LDCXX=$lt_cv_path_LD
20620 lt_cv_path_LD=$lt_save_path_LD
20621 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20622 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20623 fi # test "$_lt_caught_CXX_error" != yes
20626 ac_cpp='$CPP $CPPFLAGS'
20627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20646 # Only expand once:
20652 # Identify the assembler which will work hand-in-glove with the newly
20653 # built GCC, so that we can examine its features. This is the assembler
20654 # which will be driven by the driver program.
20656 # If build != host, and we aren't building gas in-tree, we identify a
20657 # build->target assembler and hope that it will have the same features
20658 # as the host->target assembler we'll be using.
20659 gcc_cv_gas_major_version=
20660 gcc_cv_gas_minor_version=
20661 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20663 if test "${gcc_cv_as+set}" = set; then :
20667 if test -x "$DEFAULT_ASSEMBLER"; then
20668 gcc_cv_as="$DEFAULT_ASSEMBLER"
20669 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20670 && test -f ../gas/Makefile \
20671 && test x$build = x$host; then
20672 gcc_cv_as=../gas/as-new$build_exeext
20673 elif test -x as$build_exeext; then
20674 # Build using assembler in the current directory.
20675 gcc_cv_as=./as$build_exeext
20676 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20677 gcc_cv_as="$AS_FOR_TARGET"
20679 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20680 set dummy $AS_FOR_TARGET; ac_word=$2
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20682 $as_echo_n "checking for $ac_word... " >&6; }
20683 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20684 $as_echo_n "(cached) " >&6
20688 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20692 for as_dir in $PATH
20695 test -z "$as_dir" && as_dir=.
20696 for ac_exec_ext in '' $ac_executable_extensions; do
20697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20698 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20709 gcc_cv_as=$ac_cv_path_gcc_cv_as
20710 if test -n "$gcc_cv_as"; then
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20712 $as_echo "$gcc_cv_as" >&6; }
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20715 $as_echo "no" >&6; }
20722 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20724 case "$ORIGINAL_AS_FOR_TARGET" in
20725 ./as | ./as$build_exeext) ;;
20726 *) ac_config_files="$ac_config_files as:exec-tool.in"
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20731 $as_echo_n "checking what assembler to use... " >&6; }
20732 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20733 # Single tree build which includes gas. We want to prefer it
20734 # over whatever linker top-level may have detected, since
20735 # we'll use what we're building after installation anyway.
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20737 $as_echo "newly built gas" >&6; }
20739 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20740 for f in $gcc_cv_as_bfd_srcdir/configure \
20741 $gcc_cv_as_gas_srcdir/configure \
20742 $gcc_cv_as_gas_srcdir/configure.in \
20743 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20744 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20745 if test x$gcc_cv_gas_version != x; then
20749 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20750 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20751 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20752 case $gcc_cv_gas_patch_version in
20753 "") gcc_cv_gas_patch_version="0" ;;
20755 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20756 + $gcc_cv_gas_minor_version \) \* 1000 \
20757 + $gcc_cv_gas_patch_version`
20759 in_tree_gas_is_elf=no
20760 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20761 || (grep 'obj_format = multi' ../gas/Makefile \
20762 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20764 in_tree_gas_is_elf=yes
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20768 $as_echo "$gcc_cv_as" >&6; }
20772 # Identify the linker which will work hand-in-glove with the newly
20773 # built GCC, so that we can examine its features. This is the linker
20774 # which will be driven by the driver program.
20776 # If build != host, and we aren't building gas in-tree, we identify a
20777 # build->target linker and hope that it will have the same features
20778 # as the host->target linker we'll be using.
20779 gcc_cv_gld_major_version=
20780 gcc_cv_gld_minor_version=
20781 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20782 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20784 if test "${gcc_cv_ld+set}" = set; then :
20788 if test -x "$DEFAULT_LINKER"; then
20789 gcc_cv_ld="$DEFAULT_LINKER"
20790 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20791 && test -f ../ld/Makefile \
20792 && test x$build = x$host; then
20793 gcc_cv_ld=../ld/ld-new$build_exeext
20794 elif test -x collect-ld$build_exeext; then
20795 # Build using linker in the current directory.
20796 gcc_cv_ld=./collect-ld$build_exeext
20797 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
20798 gcc_cv_ld="$LD_FOR_TARGET"
20800 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20801 set dummy $LD_FOR_TARGET; ac_word=$2
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20803 $as_echo_n "checking for $ac_word... " >&6; }
20804 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20805 $as_echo_n "(cached) " >&6
20809 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20813 for as_dir in $PATH
20816 test -z "$as_dir" && as_dir=.
20817 for ac_exec_ext in '' $ac_executable_extensions; do
20818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20819 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20830 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20831 if test -n "$gcc_cv_ld"; then
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20833 $as_echo "$gcc_cv_ld" >&6; }
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20836 $as_echo "no" >&6; }
20843 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20844 PLUGIN_LD=`basename $gcc_cv_ld`
20846 # Check whether --with-plugin-ld was given.
20847 if test "${with_plugin_ld+set}" = set; then :
20848 withval=$with_plugin_ld; if test x"$withval" != x; then
20849 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20850 PLUGIN_LD="$withval"
20856 cat >>confdefs.h <<_ACEOF
20857 #define PLUGIN_LD "$PLUGIN_LD"
20861 # Check to see if we are using gold instead of ld
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20863 $as_echo_n "checking whether we are using gold... " >&6; }
20865 if test x$gcc_cv_ld != x; then
20866 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20867 | grep "GNU gold" > /dev/null; then
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20872 $as_echo "$ld_is_gold" >&6; }
20874 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20876 case "$ORIGINAL_LD_FOR_TARGET" in
20877 ./collect-ld | ./collect-ld$build_exeext) ;;
20878 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20883 $as_echo_n "checking what linker to use... " >&6; }
20884 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20885 # Single tree build which includes ld. We want to prefer it
20886 # over whatever linker top-level may have detected, since
20887 # we'll use what we're building after installation anyway.
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20889 $as_echo "newly built ld" >&6; }
20891 in_tree_ld_is_elf=no
20892 if (grep 'EMUL = .*elf' ../ld/Makefile \
20893 || grep 'EMUL = .*linux' ../ld/Makefile \
20894 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20895 in_tree_ld_is_elf=yes
20897 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
20899 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20900 if test x$gcc_cv_gld_version != x; then
20904 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20905 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20908 $as_echo "$gcc_cv_ld" >&6; }
20912 # Figure out what nm we will be using.
20913 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20914 if test "${gcc_cv_nm+set}" = set; then :
20918 if test -f $gcc_cv_binutils_srcdir/configure.in \
20919 && test -f ../binutils/Makefile \
20920 && test x$build = x$host; then
20921 gcc_cv_nm=../binutils/nm-new$build_exeext
20922 elif test -x nm$build_exeext; then
20923 gcc_cv_nm=./nm$build_exeext
20924 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
20925 gcc_cv_nm="$NM_FOR_TARGET"
20927 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20928 set dummy $NM_FOR_TARGET; ac_word=$2
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20930 $as_echo_n "checking for $ac_word... " >&6; }
20931 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20932 $as_echo_n "(cached) " >&6
20936 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20940 for as_dir in $PATH
20943 test -z "$as_dir" && as_dir=.
20944 for ac_exec_ext in '' $ac_executable_extensions; do
20945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20946 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20957 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20958 if test -n "$gcc_cv_nm"; then
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20960 $as_echo "$gcc_cv_nm" >&6; }
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20963 $as_echo "no" >&6; }
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20971 $as_echo_n "checking what nm to use... " >&6; }
20972 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20973 # Single tree build which includes binutils.
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20975 $as_echo "newly built nm" >&6; }
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20979 $as_echo "$gcc_cv_nm" >&6; }
20983 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20985 case "$ORIGINAL_NM_FOR_TARGET" in
20986 ./nm | ./nm$build_exeext) ;;
20987 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20992 # Figure out what objdump we will be using.
20993 if test "${gcc_cv_objdump+set}" = set; then :
20997 if test -f $gcc_cv_binutils_srcdir/configure.in \
20998 && test -f ../binutils/Makefile \
20999 && test x$build = x$host; then
21000 # Single tree build which includes binutils.
21001 gcc_cv_objdump=../binutils/objdump$build_exeext
21002 elif test -x objdump$build_exeext; then
21003 gcc_cv_objdump=./objdump$build_exeext
21004 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21005 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21007 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21008 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21010 $as_echo_n "checking for $ac_word... " >&6; }
21011 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21012 $as_echo_n "(cached) " >&6
21014 case $gcc_cv_objdump in
21016 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21020 for as_dir in $PATH
21023 test -z "$as_dir" && as_dir=.
21024 for ac_exec_ext in '' $ac_executable_extensions; do
21025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21026 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21037 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21038 if test -n "$gcc_cv_objdump"; then
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21040 $as_echo "$gcc_cv_objdump" >&6; }
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21043 $as_echo "no" >&6; }
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21051 $as_echo_n "checking what objdump to use... " >&6; }
21052 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21053 # Single tree build which includes binutils.
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21055 $as_echo "newly built objdump" >&6; }
21056 elif test x$gcc_cv_objdump = x; then
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21058 $as_echo "not found" >&6; }
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21061 $as_echo "$gcc_cv_objdump" >&6; }
21064 # Figure out what readelf we will be using.
21065 if test "${gcc_cv_readelf+set}" = set; then :
21069 if test -f $gcc_cv_binutils_srcdir/configure.in \
21070 && test -f ../binutils/Makefile \
21071 && test x$build = x$host; then
21072 # Single tree build which includes binutils.
21073 gcc_cv_readelf=../binutils/readelf$build_exeext
21074 elif test -x readelf$build_exeext; then
21075 gcc_cv_readelf=./readelf$build_exeext
21077 # Extract the first word of "readelf", so it can be a program name with args.
21078 set dummy readelf; ac_word=$2
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21080 $as_echo_n "checking for $ac_word... " >&6; }
21081 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21084 case $gcc_cv_readelf in
21086 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21090 for as_dir in $PATH
21093 test -z "$as_dir" && as_dir=.
21094 for ac_exec_ext in '' $ac_executable_extensions; do
21095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21096 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21107 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21108 if test -n "$gcc_cv_readelf"; then
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21110 $as_echo "$gcc_cv_readelf" >&6; }
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21113 $as_echo "no" >&6; }
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21121 $as_echo_n "checking what readelf to use... " >&6; }
21122 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21123 # Single tree build which includes binutils.
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21125 $as_echo "newly built readelf" >&6; }
21126 elif test x$gcc_cv_readelf = x; then
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21128 $as_echo "not found" >&6; }
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21131 $as_echo "$gcc_cv_readelf" >&6; }
21134 # Figure out what assembler alignment features are present.
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21136 $as_echo_n "checking assembler flags... " >&6; }
21137 if test "${gcc_cv_as_flags+set}" = set; then :
21138 $as_echo_n "(cached) " >&6
21141 i[34567]86-*-linux*)
21142 gcc_cv_as_flags="--32"
21145 gcc_cv_as_flags=" "
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21150 $as_echo "$gcc_cv_as_flags" >&6; }
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21153 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21154 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21155 $as_echo_n "(cached) " >&6
21157 gcc_cv_as_balign_and_p2align=no
21158 if test $in_tree_gas = yes; then
21159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21160 then gcc_cv_as_balign_and_p2align=yes
21162 elif test x$gcc_cv_as != x; then
21164 .p2align 2' > conftest.s
21165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21167 (eval $ac_try) 2>&5
21169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21170 test $ac_status = 0; }; }
21172 gcc_cv_as_balign_and_p2align=yes
21174 echo "configure: failed program was" >&5
21177 rm -f conftest.o conftest.s
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21181 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21182 if test $gcc_cv_as_balign_and_p2align = yes; then
21184 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21189 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21190 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21191 $as_echo_n "(cached) " >&6
21193 gcc_cv_as_max_skip_p2align=no
21194 if test $in_tree_gas = yes; then
21195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21196 then gcc_cv_as_max_skip_p2align=yes
21198 elif test x$gcc_cv_as != x; then
21199 echo '.p2align 4,,7' > conftest.s
21200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21202 (eval $ac_try) 2>&5
21204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21205 test $ac_status = 0; }; }
21207 gcc_cv_as_max_skip_p2align=yes
21209 echo "configure: failed program was" >&5
21212 rm -f conftest.o conftest.s
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21216 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21217 if test $gcc_cv_as_max_skip_p2align = yes; then
21219 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21224 $as_echo_n "checking assembler for .literal16... " >&6; }
21225 if test "${gcc_cv_as_literal16+set}" = set; then :
21226 $as_echo_n "(cached) " >&6
21228 gcc_cv_as_literal16=no
21229 if test $in_tree_gas = yes; then
21230 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21231 then gcc_cv_as_literal16=yes
21233 elif test x$gcc_cv_as != x; then
21234 echo '.literal16' > conftest.s
21235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21237 (eval $ac_try) 2>&5
21239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21240 test $ac_status = 0; }; }
21242 gcc_cv_as_literal16=yes
21244 echo "configure: failed program was" >&5
21247 rm -f conftest.o conftest.s
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21251 $as_echo "$gcc_cv_as_literal16" >&6; }
21252 if test $gcc_cv_as_literal16 = yes; then
21254 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21259 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21260 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21261 $as_echo_n "(cached) " >&6
21263 gcc_cv_as_subsection_m1=no
21264 if test $in_tree_gas = yes; then
21265 if test $in_tree_gas_is_elf = yes \
21266 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21267 then gcc_cv_as_subsection_m1=yes
21269 elif test x$gcc_cv_as != x; then
21270 echo 'conftest_label1: .word 0
21272 conftest_label2: .word 0
21273 .previous' > conftest.s
21274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21276 (eval $ac_try) 2>&5
21278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21279 test $ac_status = 0; }; }
21281 if test x$gcc_cv_nm != x; then
21282 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21283 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21284 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21286 else gcc_cv_as_subsection_m1=yes
21288 rm -f conftest.nm1 conftest.nm2
21291 echo "configure: failed program was" >&5
21294 rm -f conftest.o conftest.s
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21298 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21299 if test $gcc_cv_as_subsection_m1 = yes; then
21301 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21306 $as_echo_n "checking assembler for .weak... " >&6; }
21307 if test "${gcc_cv_as_weak+set}" = set; then :
21308 $as_echo_n "(cached) " >&6
21311 if test $in_tree_gas = yes; then
21312 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21313 then gcc_cv_as_weak=yes
21315 elif test x$gcc_cv_as != x; then
21316 echo ' .weak foobar' > conftest.s
21317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21319 (eval $ac_try) 2>&5
21321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21322 test $ac_status = 0; }; }
21326 echo "configure: failed program was" >&5
21329 rm -f conftest.o conftest.s
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21333 $as_echo "$gcc_cv_as_weak" >&6; }
21334 if test $gcc_cv_as_weak = yes; then
21336 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21341 $as_echo_n "checking assembler for .weakref... " >&6; }
21342 if test "${gcc_cv_as_weakref+set}" = set; then :
21343 $as_echo_n "(cached) " >&6
21345 gcc_cv_as_weakref=no
21346 if test $in_tree_gas = yes; then
21347 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21348 then gcc_cv_as_weakref=yes
21350 elif test x$gcc_cv_as != x; then
21351 echo ' .weakref foobar, barfnot' > conftest.s
21352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21354 (eval $ac_try) 2>&5
21356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21357 test $ac_status = 0; }; }
21359 gcc_cv_as_weakref=yes
21361 echo "configure: failed program was" >&5
21364 rm -f conftest.o conftest.s
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21368 $as_echo "$gcc_cv_as_weakref" >&6; }
21369 if test $gcc_cv_as_weakref = yes; then
21371 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21376 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21377 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21378 $as_echo_n "(cached) " >&6
21380 gcc_cv_as_nsubspa_comdat=no
21381 if test $in_tree_gas = yes; then
21382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21383 then gcc_cv_as_nsubspa_comdat=yes
21385 elif test x$gcc_cv_as != x; then
21386 echo ' .SPACE $TEXT$
21387 .NSUBSPA $CODE$,COMDAT' > conftest.s
21388 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21390 (eval $ac_try) 2>&5
21392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21393 test $ac_status = 0; }; }
21395 gcc_cv_as_nsubspa_comdat=yes
21397 echo "configure: failed program was" >&5
21400 rm -f conftest.o conftest.s
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21404 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21405 if test $gcc_cv_as_nsubspa_comdat = yes; then
21407 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21411 # .hidden needs to be supported in both the assembler and the linker,
21412 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21413 # This is irritatingly difficult to feature test for; we have to check the
21414 # date string after the version number. If we've got an in-tree
21415 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21417 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21419 $as_echo_n "checking assembler for .hidden... " >&6; }
21420 if test "${gcc_cv_as_hidden+set}" = set; then :
21421 $as_echo_n "(cached) " >&6
21423 gcc_cv_as_hidden=no
21424 if test $in_tree_gas = yes; then
21425 if test $in_tree_gas_is_elf = yes \
21426 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21427 then gcc_cv_as_hidden=yes
21429 elif test x$gcc_cv_as != x; then
21430 echo ' .hidden foobar
21431 foobar:' > conftest.s
21432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21434 (eval $ac_try) 2>&5
21436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21437 test $ac_status = 0; }; }
21440 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21441 # STV_HIDDEN, so disable .hidden support if so.
21442 case "${target}" in
21444 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21445 cat > conftest.s <<EOF
21450 .set default,hidden
21452 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21453 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21454 grep '\.hidden default' > /dev/null; then
21455 gcc_cv_as_hidden=no
21457 gcc_cv_as_hidden=yes
21460 # Assume bug is present if objdump is missing.
21461 gcc_cv_as_hidden=no
21465 gcc_cv_as_hidden=yes
21469 echo "configure: failed program was" >&5
21472 rm -f conftest.o conftest.s
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21476 $as_echo "$gcc_cv_as_hidden" >&6; }
21479 # gnu_indirect_function type is an extension proposed at
21480 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21481 # selection of function implementation
21482 # Check whether --enable-gnu-indirect-function was given.
21483 if test "${enable_gnu_indirect_function+set}" = set; then :
21484 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21486 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21487 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21490 enable_gnu_indirect_function="$default_gnu_indirect_function"
21493 if test x$enable_gnu_indirect_function = xyes; then
21495 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21499 if test $in_tree_ld != yes ; then
21500 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21501 if test x"$ld_is_gold" = xyes; then
21502 gcc_cv_ld_hidden=yes
21503 elif echo "$ld_ver" | grep GNU > /dev/null; then
21504 ld_vers=`echo $ld_ver | sed -n \
21505 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21506 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'`
21507 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21508 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21509 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21511 case "${target}" in
21514 # Solaris 2 ld -V output looks like this for a regular version:
21516 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21518 # but test versions add stuff at the end:
21520 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21522 ld_ver=`$gcc_cv_ld -V 2>&1`
21523 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21524 ld_vers=`echo $ld_ver | sed -n \
21525 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21526 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21527 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21535 $as_echo_n "checking linker for .hidden support... " >&6; }
21536 if test "${gcc_cv_ld_hidden+set}" = set; then :
21537 $as_echo_n "(cached) " >&6
21539 if test $in_tree_ld = yes ; then
21540 gcc_cv_ld_hidden=no
21541 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 \
21542 && test $in_tree_ld_is_elf = yes; then
21543 gcc_cv_ld_hidden=yes
21546 gcc_cv_ld_hidden=yes
21547 if echo "$ld_ver" | grep GNU > /dev/null; then
21548 if test 0"$ld_date" -lt 20020404; then
21549 if test -n "$ld_date"; then
21550 # If there was date string, but was earlier than 2002-04-04, fail
21551 gcc_cv_ld_hidden=no
21552 elif test -z "$ld_vers"; then
21553 # If there was no date string nor ld version number, something is wrong
21554 gcc_cv_ld_hidden=no
21556 test -z "$ld_vers_patch" && ld_vers_patch=0
21557 if test "$ld_vers_major" -lt 2; then
21558 gcc_cv_ld_hidden=no
21559 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21560 gcc_cv_ld_hidden="no"
21561 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21562 gcc_cv_ld_hidden=no
21567 case "${target}" in
21568 hppa64*-*-hpux* | ia64*-*-hpux*)
21569 gcc_cv_ld_hidden=yes
21572 # .hidden support was backported to Solaris 8, starting with ld
21574 if test "$ld_vers_minor" -ge 276; then
21575 gcc_cv_ld_hidden=yes
21577 gcc_cv_ld_hidden=no
21580 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21581 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21582 # .symbolic was only added in Solaris 9 12/02.
21583 gcc_cv_ld_hidden=yes
21586 gcc_cv_ld_hidden=no
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21593 $as_echo "$gcc_cv_ld_hidden" >&6; }
21594 libgcc_visibility=no
21597 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21598 libgcc_visibility=yes
21600 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21605 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21606 gcc_cv_ld_ro_rw_mix=unknown
21607 if test $in_tree_ld = yes ; then
21608 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 \
21609 && test $in_tree_ld_is_elf = yes; then
21610 gcc_cv_ld_ro_rw_mix=read-write
21612 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21613 echo '.section myfoosect, "a"' > conftest1.s
21614 echo '.section myfoosect, "aw"' > conftest2.s
21615 echo '.byte 1' >> conftest2.s
21616 echo '.section myfoosect, "a"' > conftest3.s
21617 echo '.byte 0' >> conftest3.s
21618 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21619 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21620 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21621 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21622 conftest2.o conftest3.o > /dev/null 2>&1; then
21623 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21624 | sed -e '/myfoosect/!d' -e N`
21625 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21626 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21627 gcc_cv_ld_ro_rw_mix=read-only
21629 gcc_cv_ld_ro_rw_mix=read-write
21633 rm -f conftest.* conftest[123].*
21635 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21637 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21641 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21643 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21645 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21646 if test "${gcc_cv_as_leb128+set}" = set; then :
21647 $as_echo_n "(cached) " >&6
21649 gcc_cv_as_leb128=no
21650 if test $in_tree_gas = yes; then
21651 if test $in_tree_gas_is_elf = yes \
21652 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21653 then gcc_cv_as_leb128=yes
21655 elif test x$gcc_cv_as != x; then
21662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21664 (eval $ac_try) 2>&5
21666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21667 test $ac_status = 0; }; }
21669 # GAS versions before 2.11 do not support uleb128,
21670 # despite appearing to.
21671 # ??? There exists an elf-specific test that will crash
21672 # the assembler. Perhaps it's better to figure out whether
21673 # arbitrary sections are supported and try the test.
21674 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21675 if echo "$as_ver" | grep GNU > /dev/null; then
21676 as_vers=`echo $as_ver | sed -n \
21677 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21678 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21679 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21680 if test $as_major -eq 2 && test $as_minor -lt 11
21682 else gcc_cv_as_leb128=yes
21686 echo "configure: failed program was" >&5
21689 rm -f conftest.o conftest.s
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21693 $as_echo "$gcc_cv_as_leb128" >&6; }
21694 if test $gcc_cv_as_leb128 = yes; then
21696 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21700 # Check if we have assembler support for unwind directives.
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21702 $as_echo_n "checking assembler for cfi directives... " >&6; }
21703 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21706 gcc_cv_as_cfi_directive=no
21707 if test x$gcc_cv_as != x; then
21713 .cfi_escape 1, 2, 3, 4, 5
21714 .cfi_endproc' > conftest.s
21715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21717 (eval $ac_try) 2>&5
21719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21720 test $ac_status = 0; }; }
21724 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21725 # read-only and read-write sections, we need to make sure that the
21726 # assembler used emits read-write .eh_frame sections.
21727 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21728 if test "x$gcc_cv_objdump" != x; then
21729 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21730 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21731 gcc_cv_as_cfi_directive=no
21734 i?86-*-solaris2.1[0-9]*)
21735 # On Solaris/x86, make sure that GCC and gas agree on using
21736 # read-only .eh_frame sections for 64-bit.
21737 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21738 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21739 sed -e /.eh_frame/!d -e N | \
21740 grep READONLY > /dev/null; then
21741 gcc_cv_as_cfi_directive=yes
21743 gcc_cv_as_cfi_directive=no
21747 gcc_cv_as_cfi_directive=yes
21752 # no objdump, err on the side of caution
21753 gcc_cv_as_cfi_directive=no
21756 gcc_cv_as_cfi_directive=yes
21760 gcc_cv_as_cfi_directive=yes
21764 echo "configure: failed program was" >&5
21767 rm -f conftest.o conftest.s
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21771 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21773 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21775 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21776 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21777 $as_echo_n "(cached) " >&6
21779 gcc_cv_as_cfi_advance_working=no
21780 if test x$gcc_cv_as != x; then
21783 .cfi_adjust_cfa_offset 64
21785 .cfi_adjust_cfa_offset 128
21786 .cfi_endproc' > conftest.s
21787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21789 (eval $ac_try) 2>&5
21791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21792 test $ac_status = 0; }; }
21795 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21796 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21797 gcc_cv_as_cfi_advance_working=yes
21801 echo "configure: failed program was" >&5
21804 rm -f conftest.o conftest.s
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21808 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21811 # no objdump, err on the side of caution
21812 gcc_cv_as_cfi_advance_working=no
21816 cat >>confdefs.h <<_ACEOF
21817 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21818 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21824 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21825 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21826 $as_echo_n "(cached) " >&6
21828 gcc_cv_as_cfi_personality_directive=no
21829 if test x$gcc_cv_as != x; then
21832 .cfi_personality 0, symbol
21833 .cfi_endproc' > conftest.s
21834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21836 (eval $ac_try) 2>&5
21838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21839 test $ac_status = 0; }; }
21841 gcc_cv_as_cfi_personality_directive=yes
21843 echo "configure: failed program was" >&5
21846 rm -f conftest.o conftest.s
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21850 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21853 cat >>confdefs.h <<_ACEOF
21854 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21855 then echo 1; else echo 0; fi`
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21860 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21861 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21862 $as_echo_n "(cached) " >&6
21864 gcc_cv_as_cfi_sections_directive=no
21865 if test x$gcc_cv_as != x; then
21867 .cfi_sections .debug_frame, .eh_frame
21869 .cfi_endproc' > conftest.s
21870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21872 (eval $ac_try) 2>&5
21874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21875 test $ac_status = 0; }; }
21878 win32 | pe | cygwin* | mingw32* | uwin*)
21879 # Need to check that we generated the correct relocation for the
21880 # .debug_frame section. This was fixed for binutils 2.21.
21881 gcc_cv_as_cfi_sections_directive=no
21882 if test "x$gcc_cv_objdump" != x; then
21883 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21884 grep secrel > /dev/null; then
21885 gcc_cv_as_cfi_sections_directive=yes
21890 gcc_cv_as_cfi_sections_directive=yes
21894 echo "configure: failed program was" >&5
21897 rm -f conftest.o conftest.s
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21901 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21905 cat >>confdefs.h <<_ACEOF
21906 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21907 then echo 1; else echo 0; fi`
21911 # GAS versions up to and including 2.11.0 may mis-optimize
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21914 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21915 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21916 $as_echo_n "(cached) " >&6
21918 gcc_cv_as_eh_frame=no
21919 if test $in_tree_gas = yes; then
21920 if test $in_tree_gas_is_elf = yes \
21921 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21922 then gcc_cv_as_eh_frame=yes
21924 elif test x$gcc_cv_as != x; then
21931 .section .eh_frame,"aw",@progbits
21933 .4byte .LECIE1-.LSCIE1
21947 .4byte .LEFDE1-.LASFDE1
21949 .4byte .LASFDE1-__FRAME_BEGIN__
21956 .LEFDE1:' > conftest.s
21957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21959 (eval $ac_try) 2>&5
21961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21962 test $ac_status = 0; }; }
21964 cat > conftest.lit <<EOF
21965 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21966 0010 01000000 12000000 18000000 00000000 ................
21967 0020 08000000 04080000 0044 .........D
21969 cat > conftest.big <<EOF
21970 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21971 0010 00000001 00000012 00000018 00000000 ................
21972 0020 00000008 04000000 0844 .........D
21974 # If the assembler didn't choke, and we can objdump,
21975 # and we got the correct data, then succeed.
21976 # The text in the here-document typically retains its unix-style line
21977 # endings, while the output of objdump will use host line endings.
21978 # Therefore, use diff -b for the comparisons.
21979 if test x$gcc_cv_objdump != x \
21980 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21981 | tail -3 > conftest.got \
21982 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21983 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21985 gcc_cv_as_eh_frame=yes
21986 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21988 (eval $ac_try) 2>&5
21990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21991 test $ac_status = 0; }; }; then
21992 gcc_cv_as_eh_frame=buggy
21994 # Uh oh, what do we do now?
21995 gcc_cv_as_eh_frame=no
21998 echo "configure: failed program was" >&5
22001 rm -f conftest.o conftest.s
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22005 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22008 if test $gcc_cv_as_eh_frame = buggy; then
22010 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22015 $as_echo_n "checking assembler for section merging support... " >&6; }
22016 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22017 $as_echo_n "(cached) " >&6
22019 gcc_cv_as_shf_merge=no
22020 if test $in_tree_gas = yes; then
22021 if test $in_tree_gas_is_elf = yes \
22022 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22023 then gcc_cv_as_shf_merge=yes
22025 elif test x$gcc_cv_as != x; then
22026 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22029 (eval $ac_try) 2>&5
22031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22032 test $ac_status = 0; }; }
22034 gcc_cv_as_shf_merge=yes
22036 echo "configure: failed program was" >&5
22039 rm -f conftest.o conftest.s
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22043 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22045 if test $gcc_cv_as_shf_merge = no; then
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22047 $as_echo_n "checking assembler for section merging support... " >&6; }
22048 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22049 $as_echo_n "(cached) " >&6
22051 gcc_cv_as_shf_merge=no
22052 if test $in_tree_gas = yes; then
22053 if test $in_tree_gas_is_elf = yes \
22054 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22055 then gcc_cv_as_shf_merge=yes
22057 elif test x$gcc_cv_as != x; then
22058 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22061 (eval $ac_try) 2>&5
22063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22064 test $ac_status = 0; }; }
22066 gcc_cv_as_shf_merge=yes
22068 echo "configure: failed program was" >&5
22071 rm -f conftest.o conftest.s
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22075 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22079 cat >>confdefs.h <<_ACEOF
22080 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22085 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22086 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22087 $as_echo_n "(cached) " >&6
22089 gcc_cv_as_comdat_group=no
22090 if test $in_tree_gas = yes; then
22091 if test $in_tree_gas_is_elf = yes \
22092 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22093 then gcc_cv_as_comdat_group=yes
22095 elif test x$gcc_cv_as != x; then
22096 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22099 (eval $ac_try) 2>&5
22101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22102 test $ac_status = 0; }; }
22104 gcc_cv_as_comdat_group=yes
22106 echo "configure: failed program was" >&5
22109 rm -f conftest.o conftest.s
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22113 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22115 if test $gcc_cv_as_comdat_group = yes; then
22116 gcc_cv_as_comdat_group_percent=no
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22119 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22120 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22121 $as_echo_n "(cached) " >&6
22123 gcc_cv_as_comdat_group_percent=no
22124 if test $in_tree_gas = yes; then
22125 if test $in_tree_gas_is_elf = yes \
22126 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22127 then gcc_cv_as_comdat_group_percent=yes
22129 elif test x$gcc_cv_as != x; then
22130 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22133 (eval $ac_try) 2>&5
22135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22136 test $ac_status = 0; }; }
22138 gcc_cv_as_comdat_group_percent=yes
22140 echo "configure: failed program was" >&5
22143 rm -f conftest.o conftest.s
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22147 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22150 if test x"$ld_is_gold" = xyes; then
22152 elif test $in_tree_ld = yes ; then
22154 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 \
22155 && test $in_tree_ld_is_elf = yes; then
22158 elif echo "$ld_ver" | grep GNU > /dev/null; then
22160 if test 0"$ld_date" -lt 20050308; then
22161 if test -n "$ld_date"; then
22162 # If there was date string, but was earlier than 2005-03-08, fail
22164 elif test "$ld_vers_major" -lt 2; then
22166 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22171 case "${target}" in
22172 *-*-solaris2.1[1-9]*)
22173 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22174 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22177 # FIXME: Maybe need to refine later when COMDAT group support with
22178 # Sun as is implemented.
22179 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22186 # Assume linkers other than GNU ld don't support COMDAT group.
22191 # Allow overriding the automatic COMDAT group tests above.
22192 # Check whether --enable-comdat was given.
22193 if test "${enable_comdat+set}" = set; then :
22194 enableval=$enable_comdat; comdat_group="$enable_comdat"
22197 if test $comdat_group = no; then
22198 gcc_cv_as_comdat_group=no
22199 gcc_cv_as_comdat_group_percent=no
22202 cat >>confdefs.h <<_ACEOF
22203 #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`
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22208 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22209 if test "${gcc_cv_as_discriminator+set}" = set; then :
22210 $as_echo_n "(cached) " >&6
22212 gcc_cv_as_discriminator=no
22213 if test $in_tree_gas = yes; then
22214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22215 then gcc_cv_as_discriminator=yes
22217 elif test x$gcc_cv_as != x; then
22220 .loc 1 1 0 discriminator 1' > conftest.s
22221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22223 (eval $ac_try) 2>&5
22225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22226 test $ac_status = 0; }; }
22228 gcc_cv_as_discriminator=yes
22230 echo "configure: failed program was" >&5
22233 rm -f conftest.o conftest.s
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22237 $as_echo "$gcc_cv_as_discriminator" >&6; }
22238 if test $gcc_cv_as_discriminator = yes; then
22240 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22244 # Thread-local storage - the check is heavily parameterized.
22252 .section ".tdata","awT",@progbits
22255 ldq $27,__tls_get_addr($29) !literal!1
22256 lda $16,foo($29) !tlsgd!1
22257 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22258 ldq $27,__tls_get_addr($29) !literal!2
22259 lda $16,foo($29) !tlsldm!2
22260 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22261 ldq $1,foo($29) !gotdtprel
22262 ldah $2,foo($29) !dtprelhi
22263 lda $3,foo($2) !dtprello
22264 lda $4,foo($29) !dtprel
22265 ldq $1,foo($29) !gottprel
22266 ldah $2,foo($29) !tprelhi
22267 lda $3,foo($2) !tprello
22268 lda $4,foo($29) !tprel'
22271 tls_as_opt=--fatal-warnings
22273 cris-*-*|crisv32-*-*)
22275 .section ".tdata","awT",@progbits
22282 tls_as_opt=--fatal-warnings
22286 .section ".tdata","awT",@progbits
22289 call #gettlsoff(x)'
22298 .section ".tdata","awT",@progbits
22302 addil LT%foo-$tls_gdidx$,gp
22303 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22306 addil LT%foo-$tls_ldidx$,gp
22308 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22309 addil LR%foo-$tls_dtpoff$,%ret0
22310 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22312 addil LT%foo-$tls_ieoff$,gp
22313 ldw RT%foo-$tls_ieoff$(%r1),%t2
22316 addil LR%foo-$tls_leoff$,%t1
22317 ldo RR%foo-$tls_leoff$(%r1),%t2'
22320 tls_as_opt=--fatal-warnings
22324 .section ".tdata","awT",%progbits
22327 .word foo(gottpoff)
22337 i[34567]86-*-solaris2.*)
22339 tga_func=___tls_get_addr
22345 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22347 .section .tdata,"awt",@progbits'
22351 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22355 .section ".tdata","awT",@progbits'
22358 tls_as_opt="--fatal-warnings"
22360 conftest_s="$conftest_s
22364 leal foo@tlsgd(,%ebx,1), %eax
22365 leal foo@tlsldm(%ebx), %eax
22366 leal foo@dtpoff(%eax), %edx
22367 movl foo@gottpoff(%ebx), %eax
22368 subl foo@gottpoff(%ebx), %eax
22369 addl foo@gotntpoff(%ebx), %eax
22370 movl foo@indntpoff, %eax
22371 movl \$foo@tpoff, %eax
22372 subl \$foo@tpoff, %eax
22373 leal foo@ntpoff(%ecx), %eax"
22377 .section ".tdata","awT",@progbits
22381 leaq foo@TLSGD(%rip), %rdi
22382 leaq foo@TLSLD(%rip), %rdi
22383 leaq foo@DTPOFF(%rax), %rdx
22384 movq foo@GOTTPOFF(%rip), %rax
22385 movq $foo@TPOFF, %rax'
22388 tls_as_opt=--fatal-warnings
22392 .section ".tdata","awT",@progbits
22395 addl r16 = @ltoff(@dtpmod(foo#)), gp
22396 addl r17 = @ltoff(@dtprel(foo#)), gp
22397 addl r18 = @ltoff(@tprel(foo#)), gp
22398 addl r19 = @dtprel(foo#), gp
22399 adds r21 = @dtprel(foo#), r13
22400 movl r23 = @dtprel(foo#)
22401 addl r20 = @tprel(foo#), gp
22402 adds r22 = @tprel(foo#), r13
22403 movl r24 = @tprel(foo#)'
22406 tls_as_opt=--fatal-warnings
22410 .section .tdata,"awT",@progbits
22414 addiu $4, $28, %tlsgd(x)
22415 addiu $4, $28, %tlsldm(x)
22416 lui $4, %dtprel_hi(x)
22417 addiu $4, $4, %dtprel_lo(x)
22418 lw $4, %gottprel(x)($28)
22419 lui $4, %tprel_hi(x)
22420 addiu $4, $4, %tprel_lo(x)'
22423 tls_as_opt='-32 --fatal-warnings'
22427 .section .tdata,"awT",@progbits
22432 move.l x@TLSGD(%a5),%a0
22433 move.l x@TLSLDM(%a5),%a0
22434 move.l x@TLSLDO(%a5),%a0
22435 move.l x@TLSIE(%a5),%a0
22436 move.l x@TLSLE(%a5),%a0'
22439 tls_as_opt='--fatal-warnings'
22443 .section ".tdata","awT",@progbits
22451 addi 3,31,ld0@got@tlsgd
22453 addi 3,31,x1@got@tlsld
22456 addis 9,3,x2@dtprel@ha
22457 addi 9,9,x2@dtprel@l
22458 lwz 9,x3@got@tprel(31)
22461 addis 9,2,x2@tprel@ha
22462 addi 9,9,x2@tprel@l'
22465 tls_as_opt="-a32 --fatal-warnings"
22469 .section ".tdata","awT",@progbits
22477 addi 3,2,ld0@got@tlsgd
22483 addi 3,2,x1@got@tlsld
22489 addis 9,3,x2@dtprel@ha
22490 addi 9,9,x2@dtprel@l
22493 ld 9,x3@got@dtprel(2)
22499 tls_as_opt="-a64 --fatal-warnings"
22503 .section ".tdata","awT",@progbits
22510 .long foo@GOTNTPOFF
22511 .long foo@INDNTPOFF
22512 l %r1,foo@GOTNTPOFF(%r12)
22513 l %r1,0(%r1):tls_load:foo
22514 bas %r14,0(%r1,%r13):tls_gdcall:foo
22515 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22518 tls_as_opt="-m31 --fatal-warnings"
22522 .section ".tdata","awT",@progbits
22529 .quad foo@GOTNTPOFF
22530 lg %r1,foo@GOTNTPOFF(%r12)
22531 larl %r1,foo@INDNTPOFF
22532 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22533 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22536 tls_as_opt="-m64 -Aesame --fatal-warnings"
22538 sh-*-* | sh[34]-*-*)
22540 .section ".tdata","awT",@progbits
22550 tls_as_opt=--fatal-warnings
22554 sparc*-sun-solaris2.*)
22556 tga_func=__tls_get_addr
22562 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22564 .section ".tdata",#alloc,#write,#tls'
22569 .section ".tdata","awT",@progbits'
22572 tls_as_opt="-32 --fatal-warnings"
22574 conftest_s="$conftest_s
22577 sethi %tgd_hi22(foo), %o0
22578 add %o0, %tgd_lo10(foo), %o1
22579 add %l7, %o1, %o0, %tgd_add(foo)
22580 call __tls_get_addr, %tgd_call(foo)
22581 sethi %tldm_hi22(foo), %l1
22582 add %l1, %tldm_lo10(foo), %l2
22583 add %l7, %l2, %o0, %tldm_add(foo)
22584 call __tls_get_addr, %tldm_call(foo)
22585 sethi %tldo_hix22(foo), %l3
22586 xor %l3, %tldo_lox10(foo), %l4
22587 add %o0, %l4, %l5, %tldo_add(foo)
22588 sethi %tie_hi22(foo), %o3
22589 add %o3, %tie_lo10(foo), %o3
22590 ld [%l7 + %o3], %o2, %tie_ld(foo)
22591 add %g7, %o2, %o4, %tie_add(foo)
22592 sethi %tle_hix22(foo), %l1
22593 xor %l1, %tle_lox10(foo), %o5
22594 ld [%g7 + %o5], %o1"
22598 .section ".tdata","awT",@progbits
22601 movi a8, foo@TLSFUNC
22602 movi a10, foo@TLSARG
22603 callx8.tls a8, foo@TLSCALL'
22609 if test "x$enable_tls" = xno ; then
22610 : # TLS explicitly disabled.
22611 elif test "x$enable_tls" = xyes ; then
22612 set_have_as_tls=yes # TLS explicitly enabled.
22613 elif test -z "$tls_first_major"; then
22614 : # If we don't have a check, assume no support.
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22617 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22618 if test "${gcc_cv_as_tls+set}" = set; then :
22619 $as_echo_n "(cached) " >&6
22622 if test $in_tree_gas = yes; then
22623 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22624 then gcc_cv_as_tls=yes
22626 elif test x$gcc_cv_as != x; then
22627 echo "$conftest_s" > conftest.s
22628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22630 (eval $ac_try) 2>&5
22632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22633 test $ac_status = 0; }; }
22637 echo "configure: failed program was" >&5
22640 rm -f conftest.o conftest.s
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22644 $as_echo "$gcc_cv_as_tls" >&6; }
22645 if test $gcc_cv_as_tls = yes; then
22646 set_have_as_tls=yes
22651 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22652 # with TLS support are in use, native TLS cannot work.
22656 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22657 # gld with TLS support are in use, native TLS cannot work.
22660 # TLS was introduced in the Solaris 9 FCS release and backported to
22661 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22662 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22663 # ld and GCC don't support any longer.
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22666 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22668 # Check ld and ld.so.1 TLS support.
22669 if echo "$ld_ver" | grep GNU > /dev/null; then
22670 # Assume all interesting versions of GNU ld have TLS support.
22671 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22675 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22677 min_tls_ld_vers_minor=280
22679 # Solaris 8/SPARC ld has TLS support since version 1.272.
22680 sparc*-*-solaris2.8)
22681 min_tls_ld_vers_minor=272
22683 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22685 min_tls_ld_vers_minor=374
22687 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22688 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22689 min_tls_ld_vers_minor=343
22692 if test "$ld_vers_major" -gt 1 || \
22693 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22700 $as_echo "$ld_tls_support" >&6; }
22703 save_LDFLAGS="$LDFLAGS"
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22708 $as_echo_n "checking alternate thread library... " >&6; }
22710 # TLS support was backported to Solaris 8 patches, but only lives in
22711 # the alternate thread library which became the default in Solaris 9.
22712 # We want to always use that, irrespective of TLS support.
22714 # Take multilib subdir into account. There's no spec to handle
22715 # this. The 64 symlink exists since Solaris 8.
22716 lwp_dir=/usr/lib/lwp
22717 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22718 LDFLAGS="-L$lwp_dir -R$lwp_dir"
22725 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22727 cat >>confdefs.h <<_ACEOF
22728 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22732 $as_echo "$lwp_dir" >&6; }
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22735 $as_echo_n "checking library containing $tga_func... " >&6; }
22736 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22737 # (32-bit x86) only lived in libthread, so check for that. Keep
22738 # set_have_as_tls if found, disable if not.
22739 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22741 $as_echo_n "checking for library containing $tga_func... " >&6; }
22742 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22743 $as_echo_n "(cached) " >&6
22745 ac_func_search_save_LIBS=$LIBS
22746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22747 /* end confdefs.h. */
22749 /* Override any GCC internal prototype to avoid an error.
22750 Use char because int might match the return type of a GCC
22751 builtin and then its argument prototype would still apply. */
22759 return $tga_func ();
22764 for ac_lib in '' thread; do
22765 if test -z "$ac_lib"; then
22766 ac_res="none required"
22769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22771 if ac_fn_c_try_link "$LINENO"; then :
22772 eval "$as_ac_Search=\$ac_res"
22774 rm -f core conftest.err conftest.$ac_objext \
22776 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22780 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22783 eval "$as_ac_Search=no"
22785 rm conftest.$ac_ext
22786 LIBS=$ac_func_search_save_LIBS
22788 eval ac_res=\$$as_ac_Search
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22790 $as_echo "$ac_res" >&6; }
22791 eval ac_res=\$$as_ac_Search
22792 if test "$ac_res" != no; then :
22793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22799 # Clear LIBS if we cannot support TLS.
22800 if test $set_have_as_tls = no; then
22803 # Always define LIB_TLS_SPEC, even without TLS support.
22805 cat >>confdefs.h <<_ACEOF
22806 #define LIB_TLS_SPEC "$LIBS"
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22810 $as_echo "$LIBS" >&6; }
22813 LDFLAGS="$save_LDFLAGS"
22816 if test $set_have_as_tls = yes ; then
22818 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22822 # Target-specific assembler checks.
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22825 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22826 gcc_cv_ld_static_dynamic=no
22827 if test $in_tree_ld = yes ; then
22828 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
22829 gcc_cv_ld_static_dynamic=yes
22831 elif test x$gcc_cv_ld != x; then
22832 # Check if linker supports -Bstatic/-Bdynamic option
22833 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22834 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22835 gcc_cv_ld_static_dynamic=yes
22838 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22840 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22844 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22846 if test x"$demangler_in_ld" = xyes; then
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22848 $as_echo_n "checking linker --demangle support... " >&6; }
22849 gcc_cv_ld_demangle=no
22850 if test $in_tree_ld = yes; then
22851 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 \
22852 gcc_cv_ld_demangle=yes
22854 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22855 # Check if the GNU linker supports --demangle option
22856 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22857 gcc_cv_ld_demangle=yes
22860 if test x"$gcc_cv_ld_demangle" = xyes; then
22862 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22866 $as_echo "$gcc_cv_ld_demangle" >&6; }
22870 # All TARGET_ABI_OSF targets.
22871 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22873 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22874 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22875 $as_echo_n "(cached) " >&6
22877 gcc_cv_as_alpha_explicit_relocs=no
22878 if test $in_tree_gas = yes; then
22879 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22880 then gcc_cv_as_alpha_explicit_relocs=yes
22882 elif test x$gcc_cv_as != x; then
22883 echo ' .set nomacro
22885 extbl $3, $2, $3 !lituse_bytoff!1
22886 ldq $2, a($29) !literal!1
22887 ldq $4, b($29) !literal!2
22888 ldq_u $3, 0($2) !lituse_base!1
22889 ldq $27, f($29) !literal!5
22890 jsr $26, ($27), f !lituse_jsr!5
22891 ldah $29, 0($26) !gpdisp!3
22892 lda $0, c($29) !gprel
22893 ldah $1, d($29) !gprelhigh
22894 lda $1, d($1) !gprellow
22895 lda $29, 0($29) !gpdisp!3' > conftest.s
22896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22898 (eval $ac_try) 2>&5
22900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22901 test $ac_status = 0; }; }
22903 gcc_cv_as_alpha_explicit_relocs=yes
22905 echo "configure: failed program was" >&5
22908 rm -f conftest.o conftest.s
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22912 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22913 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22915 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22919 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22920 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22921 $as_echo_n "(cached) " >&6
22923 gcc_cv_as_alpha_jsrdirect_relocs=no
22924 if test $in_tree_gas = yes; then
22925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22926 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22928 elif test x$gcc_cv_as != x; then
22929 echo ' .set nomacro
22931 ldq $27, a($29) !literal!1
22932 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935 (eval $ac_try) 2>&5
22937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938 test $ac_status = 0; }; }
22940 gcc_cv_as_alpha_jsrdirect_relocs=yes
22942 echo "configure: failed program was" >&5
22945 rm -f conftest.o conftest.s
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22949 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22950 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22952 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22959 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22960 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22961 $as_echo_n "(cached) " >&6
22963 gcc_cv_as_cris_no_mul_bug=no
22964 if test $in_tree_gas = yes; then
22965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22966 then gcc_cv_as_cris_no_mul_bug=yes
22968 elif test x$gcc_cv_as != x; then
22969 echo '.text' > conftest.s
22970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22972 (eval $ac_try) 2>&5
22974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22975 test $ac_status = 0; }; }
22977 gcc_cv_as_cris_no_mul_bug=yes
22979 echo "configure: failed program was" >&5
22982 rm -f conftest.o conftest.s
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22986 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22987 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22989 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22996 $as_echo_n "checking assembler for .register... " >&6; }
22997 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22998 $as_echo_n "(cached) " >&6
23000 gcc_cv_as_sparc_register_op=no
23001 if test x$gcc_cv_as != x; then
23002 echo '.register %g2, #scratch' > conftest.s
23003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23005 (eval $ac_try) 2>&5
23007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23008 test $ac_status = 0; }; }
23010 gcc_cv_as_sparc_register_op=yes
23012 echo "configure: failed program was" >&5
23015 rm -f conftest.o conftest.s
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23019 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23020 if test $gcc_cv_as_sparc_register_op = yes; then
23022 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23027 $as_echo_n "checking assembler for -relax option... " >&6; }
23028 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23029 $as_echo_n "(cached) " >&6
23031 gcc_cv_as_sparc_relax=no
23032 if test x$gcc_cv_as != x; then
23033 echo '.text' > conftest.s
23034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23036 (eval $ac_try) 2>&5
23038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23039 test $ac_status = 0; }; }
23041 gcc_cv_as_sparc_relax=yes
23043 echo "configure: failed program was" >&5
23046 rm -f conftest.o conftest.s
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23050 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23051 if test $gcc_cv_as_sparc_relax = yes; then
23053 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23058 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23059 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23060 $as_echo_n "(cached) " >&6
23062 gcc_cv_as_sparc_gotdata_op=no
23063 if test x$gcc_cv_as != x; then
23068 sethi %gdop_hix22(foo), %g1
23069 xor %g1, %gdop_lox10(foo), %g1
23070 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23073 (eval $ac_try) 2>&5
23075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23076 test $ac_status = 0; }; }
23078 if test x$gcc_cv_ld != x \
23079 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23080 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23081 if test x$gcc_cv_objdump != x; then
23082 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23083 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23084 gcc_cv_as_sparc_gotdata_op=no
23086 gcc_cv_as_sparc_gotdata_op=yes
23090 gcc_cv_as_sparc_gotdata_op=yes
23095 echo "configure: failed program was" >&5
23098 rm -f conftest.o conftest.s
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23102 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23103 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23105 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23110 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23111 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23112 $as_echo_n "(cached) " >&6
23114 gcc_cv_as_sparc_ua_pcrel=no
23115 if test x$gcc_cv_as != x; then
23122 .uaword %r_disp32(foo)' > conftest.s
23123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23125 (eval $ac_try) 2>&5
23127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23128 test $ac_status = 0; }; }
23130 if test x$gcc_cv_ld != x \
23131 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23132 gcc_cv_as_sparc_ua_pcrel=yes
23136 echo "configure: failed program was" >&5
23139 rm -f conftest.o conftest.s
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23143 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23144 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23146 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23150 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23151 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23152 $as_echo_n "(cached) " >&6
23154 gcc_cv_as_sparc_ua_pcrel_hidden=no
23155 if test x$gcc_cv_as != x; then
23159 .uaword %r_disp32(foo)
23160 .byte 0x32, 0x33, 0x34
23164 .skip 4' > conftest.s
23165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23167 (eval $ac_try) 2>&5
23169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23170 test $ac_status = 0; }; }
23172 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23173 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23174 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23175 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23176 if $gcc_cv_objdump -R conftest 2> /dev/null \
23177 | grep 'DISP32' > /dev/null 2>&1; then
23180 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23185 echo "configure: failed program was" >&5
23188 rm -f conftest.o conftest.s
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23192 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23193 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23195 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23199 fi # unaligned pcrel relocs
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23202 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23203 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23204 $as_echo_n "(cached) " >&6
23206 gcc_cv_as_sparc_offsetable_lo10=no
23207 if test x$gcc_cv_as != x; then
23209 or %g1, %lo(ab) + 12, %g1
23210 or %g1, %lo(ab + 12), %g1' > conftest.s
23211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23213 (eval $ac_try) 2>&5
23215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23216 test $ac_status = 0; }; }
23218 if test x$gcc_cv_objdump != x \
23219 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23220 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23221 gcc_cv_as_sparc_offsetable_lo10=yes
23224 echo "configure: failed program was" >&5
23227 rm -f conftest.o conftest.s
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23231 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23232 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23234 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23239 i[34567]86-*-* | x86_64-*-*)
23242 # Full C++ conformance when using a shared libstdc++-v3 requires some
23243 # support from the Cygwin DLL, which in more recent versions exports
23244 # wrappers to aid in interposing and redirecting operators new, delete,
23245 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23246 # are configuring for a version of Cygwin that exports the wrappers.
23247 if test x$host = x$target; then
23248 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23249 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23250 gcc_ac_cygwin_dll_wrappers=yes
23252 gcc_ac_cygwin_dll_wrappers=no
23256 # Can't check presence of libc functions during cross-compile, so
23257 # we just have to assume we're building for an up-to-date target.
23258 gcc_ac_cygwin_dll_wrappers=yes
23261 cat >>confdefs.h <<_ACEOF
23262 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23267 cygwin* | pe | mingw32*)
23268 # Recent binutils allows the three-operand form of ".comm" on PE. This
23269 # definition is used unconditionally to initialise the default state of
23270 # the target option variable that governs usage of the feature.
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23272 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23273 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23274 $as_echo_n "(cached) " >&6
23276 gcc_cv_as_comm_has_align=no
23277 if test $in_tree_gas = yes; then
23278 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23279 then gcc_cv_as_comm_has_align=yes
23281 elif test x$gcc_cv_as != x; then
23282 echo '.comm foo,1,32' > conftest.s
23283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23285 (eval $ac_try) 2>&5
23287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23288 test $ac_status = 0; }; }
23290 gcc_cv_as_comm_has_align=yes
23292 echo "configure: failed program was" >&5
23295 rm -f conftest.o conftest.s
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23299 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23302 cat >>confdefs.h <<_ACEOF
23303 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23306 # Used for DWARF 2 in PE
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23308 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23309 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23310 $as_echo_n "(cached) " >&6
23312 gcc_cv_as_ix86_pe_secrel32=no
23313 if test $in_tree_gas = yes; then
23314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23315 then gcc_cv_as_ix86_pe_secrel32=yes
23317 elif test x$gcc_cv_as != x; then
23321 .secrel32 foo' > conftest.s
23322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23324 (eval $ac_try) 2>&5
23326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23327 test $ac_status = 0; }; }
23329 if test x$gcc_cv_ld != x \
23330 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23331 gcc_cv_as_ix86_pe_secrel32=yes
23335 echo "configure: failed program was" >&5
23338 rm -f conftest.o conftest.s
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23342 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23343 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23345 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23348 # Test if the assembler supports the extended form of the .section
23349 # directive that specifies section alignment. LTO support uses this,
23350 # but normally only after installation, so we warn but don't fail the
23351 # configure if LTO is enabled but the assembler does not support it.
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23353 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23354 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23355 $as_echo_n "(cached) " >&6
23357 gcc_cv_as_section_has_align=no
23358 if test $in_tree_gas = yes; then
23359 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23360 then gcc_cv_as_section_has_align=yes
23362 elif test x$gcc_cv_as != x; then
23363 echo '.section lto_test,"dr0"' > conftest.s
23364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23366 (eval $ac_try) 2>&5
23368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23369 test $ac_status = 0; }; }
23371 gcc_cv_as_section_has_align=yes
23373 echo "configure: failed program was" >&5
23376 rm -f conftest.o conftest.s
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23380 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23382 if test x$gcc_cv_as_section_has_align != xyes; then
23383 case ",$enable_languages," in
23385 { $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
23386 $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;}
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23394 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23395 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23396 $as_echo_n "(cached) " >&6
23398 gcc_cv_as_ix86_filds=no
23399 if test x$gcc_cv_as != x; then
23400 echo 'filds mem; fists mem' > conftest.s
23401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23403 (eval $ac_try) 2>&5
23405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23406 test $ac_status = 0; }; }
23408 gcc_cv_as_ix86_filds=yes
23410 echo "configure: failed program was" >&5
23413 rm -f conftest.o conftest.s
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23417 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23418 if test $gcc_cv_as_ix86_filds = yes; then
23420 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23425 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23426 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23427 $as_echo_n "(cached) " >&6
23429 gcc_cv_as_ix86_fildq=no
23430 if test x$gcc_cv_as != x; then
23431 echo 'fildq mem; fistpq mem' > conftest.s
23432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23434 (eval $ac_try) 2>&5
23436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23437 test $ac_status = 0; }; }
23439 gcc_cv_as_ix86_fildq=yes
23441 echo "configure: failed program was" >&5
23444 rm -f conftest.o conftest.s
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23448 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23449 if test $gcc_cv_as_ix86_fildq = yes; then
23451 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23456 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23457 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23458 $as_echo_n "(cached) " >&6
23460 gcc_cv_as_ix86_cmov_sun_syntax=no
23461 if test x$gcc_cv_as != x; then
23462 echo 'cmovl.l %edx, %eax' > conftest.s
23463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23465 (eval $ac_try) 2>&5
23467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23468 test $ac_status = 0; }; }
23470 gcc_cv_as_ix86_cmov_sun_syntax=yes
23472 echo "configure: failed program was" >&5
23475 rm -f conftest.o conftest.s
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23479 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23480 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23482 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23487 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23488 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23489 $as_echo_n "(cached) " >&6
23491 gcc_cv_as_ix86_ffreep=no
23492 if test x$gcc_cv_as != x; then
23493 echo 'ffreep %st(1)' > conftest.s
23494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23496 (eval $ac_try) 2>&5
23498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499 test $ac_status = 0; }; }
23501 gcc_cv_as_ix86_ffreep=yes
23503 echo "configure: failed program was" >&5
23506 rm -f conftest.o conftest.s
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23510 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23511 if test $gcc_cv_as_ix86_ffreep = yes; then
23513 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23518 $as_echo_n "checking assembler for .quad directive... " >&6; }
23519 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23520 $as_echo_n "(cached) " >&6
23522 gcc_cv_as_ix86_quad=no
23523 if test x$gcc_cv_as != x; then
23524 echo '.quad 0' > conftest.s
23525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23527 (eval $ac_try) 2>&5
23529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23530 test $ac_status = 0; }; }
23532 gcc_cv_as_ix86_quad=yes
23534 echo "configure: failed program was" >&5
23537 rm -f conftest.o conftest.s
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23541 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23542 if test $gcc_cv_as_ix86_quad = yes; then
23544 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23549 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23550 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23551 $as_echo_n "(cached) " >&6
23553 gcc_cv_as_ix86_sahf=no
23554 if test x$gcc_cv_as != x; then
23557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23559 (eval $ac_try) 2>&5
23561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23562 test $ac_status = 0; }; }
23564 gcc_cv_as_ix86_sahf=yes
23566 echo "configure: failed program was" >&5
23569 rm -f conftest.o conftest.s
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23573 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23574 if test $gcc_cv_as_ix86_sahf = yes; then
23576 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23581 $as_echo_n "checking assembler for swap suffix... " >&6; }
23582 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23583 $as_echo_n "(cached) " >&6
23585 gcc_cv_as_ix86_swap=no
23586 if test x$gcc_cv_as != x; then
23587 echo 'movl.s %esp, %ebp' > conftest.s
23588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23590 (eval $ac_try) 2>&5
23592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23593 test $ac_status = 0; }; }
23595 gcc_cv_as_ix86_swap=yes
23597 echo "configure: failed program was" >&5
23600 rm -f conftest.o conftest.s
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23604 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23605 if test $gcc_cv_as_ix86_swap = yes; then
23607 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23612 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23613 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23614 $as_echo_n "(cached) " >&6
23616 gcc_cv_as_ix86_diff_sect_delta=no
23617 if test x$gcc_cv_as != x; then
23618 echo '.section .rodata
23624 .L2: nop' > conftest.s
23625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23627 (eval $ac_try) 2>&5
23629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23630 test $ac_status = 0; }; }
23632 gcc_cv_as_ix86_diff_sect_delta=yes
23634 echo "configure: failed program was" >&5
23637 rm -f conftest.o conftest.s
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23641 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23642 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23644 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23648 # These two are used unconditionally by i386.[ch]; it is to be defined
23649 # to 1 if the feature is present, 0 otherwise.
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23651 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23652 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23653 $as_echo_n "(cached) " >&6
23655 gcc_cv_as_ix86_gotoff_in_data=no
23656 if test $in_tree_gas = yes; then
23657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23658 then gcc_cv_as_ix86_gotoff_in_data=yes
23660 elif test x$gcc_cv_as != x; then
23665 .long .L0@GOTOFF' > conftest.s
23666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23668 (eval $ac_try) 2>&5
23670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23671 test $ac_status = 0; }; }
23673 gcc_cv_as_ix86_gotoff_in_data=yes
23675 echo "configure: failed program was" >&5
23678 rm -f conftest.o conftest.s
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23682 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23685 cat >>confdefs.h <<_ACEOF
23686 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23691 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23692 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23693 $as_echo_n "(cached) " >&6
23695 gcc_cv_as_ix86_rep_lock_prefix=no
23696 if test x$gcc_cv_as != x; then
23698 lock addl %edi, (%eax,%esi)
23699 lock orl $0, (%esp)' > conftest.s
23700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23702 (eval $ac_try) 2>&5
23704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23705 test $ac_status = 0; }; }
23707 gcc_cv_as_ix86_rep_lock_prefix=yes
23709 echo "configure: failed program was" >&5
23712 rm -f conftest.o conftest.s
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23716 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23717 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23719 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23727 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23728 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23729 $as_echo_n "(cached) " >&6
23731 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23732 if test $in_tree_gas = yes; then
23733 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23734 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23736 elif test x$gcc_cv_as != x; then
23738 addl r15 = @ltoffx(x#), gp
23740 ld8.mov r16 = [r15], x#' > conftest.s
23741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23743 (eval $ac_try) 2>&5
23745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23746 test $ac_status = 0; }; }
23748 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23750 echo "configure: failed program was" >&5
23753 rm -f conftest.o conftest.s
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23757 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23758 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23760 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23768 *-*-aix*) conftest_s=' .machine "pwr5"
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23773 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23774 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23775 $as_echo_n "(cached) " >&6
23777 gcc_cv_as_machine_directive=no
23778 if test x$gcc_cv_as != x; then
23779 echo ' .machine ppc7400' > conftest.s
23780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23782 (eval $ac_try) 2>&5
23784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23785 test $ac_status = 0; }; }
23787 gcc_cv_as_machine_directive=yes
23789 echo "configure: failed program was" >&5
23792 rm -f conftest.o conftest.s
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23796 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23798 if test x$gcc_cv_as_machine_directive != xyes; then
23799 echo "*** This target requires an assembler supporting \".machine\"" >&2
23800 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23801 test x$build = x$target && exit 1
23805 *) conftest_s=' .machine power4
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23811 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23812 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23815 gcc_cv_as_powerpc_mfcrf=no
23816 if test $in_tree_gas = yes; then
23817 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23818 then gcc_cv_as_powerpc_mfcrf=yes
23820 elif test x$gcc_cv_as != x; then
23821 echo "$conftest_s" > conftest.s
23822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23824 (eval $ac_try) 2>&5
23826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23827 test $ac_status = 0; }; }
23829 gcc_cv_as_powerpc_mfcrf=yes
23831 echo "configure: failed program was" >&5
23834 rm -f conftest.o conftest.s
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23838 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23839 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23841 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23846 *-*-aix*) conftest_s=' .machine "pwr5"
23849 *) conftest_s=' .machine power5
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23855 $as_echo_n "checking assembler for popcntb support... " >&6; }
23856 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23857 $as_echo_n "(cached) " >&6
23859 gcc_cv_as_powerpc_popcntb=no
23860 if test $in_tree_gas = yes; then
23861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23862 then gcc_cv_as_powerpc_popcntb=yes
23864 elif test x$gcc_cv_as != x; then
23865 echo "$conftest_s" > conftest.s
23866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23868 (eval $ac_try) 2>&5
23870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23871 test $ac_status = 0; }; }
23873 gcc_cv_as_powerpc_popcntb=yes
23875 echo "configure: failed program was" >&5
23878 rm -f conftest.o conftest.s
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23882 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23883 if test $gcc_cv_as_powerpc_popcntb = yes; then
23885 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23890 *-*-aix*) conftest_s=' .machine "pwr5x"
23893 *) conftest_s=' .machine power5
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23899 $as_echo_n "checking assembler for fp round support... " >&6; }
23900 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23901 $as_echo_n "(cached) " >&6
23903 gcc_cv_as_powerpc_fprnd=no
23904 if test $in_tree_gas = yes; then
23905 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23906 then gcc_cv_as_powerpc_fprnd=yes
23908 elif test x$gcc_cv_as != x; then
23909 echo "$conftest_s" > conftest.s
23910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23912 (eval $ac_try) 2>&5
23914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23915 test $ac_status = 0; }; }
23917 gcc_cv_as_powerpc_fprnd=yes
23919 echo "configure: failed program was" >&5
23922 rm -f conftest.o conftest.s
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23926 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23927 if test $gcc_cv_as_powerpc_fprnd = yes; then
23929 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23934 *-*-aix*) conftest_s=' .machine "pwr6"
23937 *) conftest_s=' .machine power6
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23943 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23944 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23945 $as_echo_n "(cached) " >&6
23947 gcc_cv_as_powerpc_mfpgpr=no
23948 if test $in_tree_gas = yes; then
23949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23950 then gcc_cv_as_powerpc_mfpgpr=yes
23952 elif test x$gcc_cv_as != x; then
23953 echo "$conftest_s" > conftest.s
23954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23956 (eval $ac_try) 2>&5
23958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23959 test $ac_status = 0; }; }
23961 gcc_cv_as_powerpc_mfpgpr=yes
23963 echo "configure: failed program was" >&5
23966 rm -f conftest.o conftest.s
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23970 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23971 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23973 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23978 *-*-aix*) conftest_s=' .csect .text[PR]
23980 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23984 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23985 *) conftest_s=' .text
23987 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23991 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23992 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23993 $as_echo_n "(cached) " >&6
23995 gcc_cv_as_powerpc_rel16=no
23996 if test $in_tree_gas = yes; then
23997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23998 then gcc_cv_as_powerpc_rel16=yes
24000 elif test x$gcc_cv_as != x; then
24001 echo "$conftest_s" > conftest.s
24002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24004 (eval $ac_try) 2>&5
24006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007 test $ac_status = 0; }; }
24009 gcc_cv_as_powerpc_rel16=yes
24011 echo "configure: failed program was" >&5
24014 rm -f conftest.o conftest.s
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24018 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24019 if test $gcc_cv_as_powerpc_rel16 = yes; then
24021 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24026 *-*-aix*) conftest_s=' .machine "pwr6"
24029 *) conftest_s=' .machine power6
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24035 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24036 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24037 $as_echo_n "(cached) " >&6
24039 gcc_cv_as_powerpc_cmpb=no
24040 if test $in_tree_gas = yes; then
24041 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24042 then gcc_cv_as_powerpc_cmpb=yes
24044 elif test x$gcc_cv_as != x; then
24045 echo "$conftest_s" > conftest.s
24046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24048 (eval $ac_try) 2>&5
24050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24051 test $ac_status = 0; }; }
24053 gcc_cv_as_powerpc_cmpb=yes
24055 echo "configure: failed program was" >&5
24058 rm -f conftest.o conftest.s
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24062 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24063 if test $gcc_cv_as_powerpc_cmpb = yes; then
24065 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24070 *-*-aix*) conftest_s=' .machine "pwr6"
24073 *) conftest_s=' .machine power6
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24079 $as_echo_n "checking assembler for decimal float support... " >&6; }
24080 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24081 $as_echo_n "(cached) " >&6
24083 gcc_cv_as_powerpc_dfp=no
24084 if test $in_tree_gas = yes; then
24085 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24086 then gcc_cv_as_powerpc_dfp=yes
24088 elif test x$gcc_cv_as != x; then
24089 echo "$conftest_s" > conftest.s
24090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092 (eval $ac_try) 2>&5
24094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095 test $ac_status = 0; }; }
24097 gcc_cv_as_powerpc_dfp=yes
24099 echo "configure: failed program was" >&5
24102 rm -f conftest.o conftest.s
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24106 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24107 if test $gcc_cv_as_powerpc_dfp = yes; then
24109 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24114 *-*-aix*) conftest_s=' .machine "pwr7"
24117 *) conftest_s=' .machine power7
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24123 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24124 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24125 $as_echo_n "(cached) " >&6
24127 gcc_cv_as_powerpc_vsx=no
24128 if test $in_tree_gas = yes; then
24129 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24130 then gcc_cv_as_powerpc_vsx=yes
24132 elif test x$gcc_cv_as != x; then
24133 echo "$conftest_s" > conftest.s
24134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24136 (eval $ac_try) 2>&5
24138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139 test $ac_status = 0; }; }
24141 gcc_cv_as_powerpc_vsx=yes
24143 echo "configure: failed program was" >&5
24146 rm -f conftest.o conftest.s
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24150 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24151 if test $gcc_cv_as_powerpc_vsx = yes; then
24153 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24158 *-*-aix*) conftest_s=' .machine "pwr7"
24161 *) conftest_s=' .machine power7
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24167 $as_echo_n "checking assembler for popcntd support... " >&6; }
24168 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24169 $as_echo_n "(cached) " >&6
24171 gcc_cv_as_powerpc_popcntd=no
24172 if test $in_tree_gas = yes; then
24173 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24174 then gcc_cv_as_powerpc_popcntd=yes
24176 elif test x$gcc_cv_as != x; then
24177 echo "$conftest_s" > conftest.s
24178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24180 (eval $ac_try) 2>&5
24182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24183 test $ac_status = 0; }; }
24185 gcc_cv_as_powerpc_popcntd=yes
24187 echo "configure: failed program was" >&5
24190 rm -f conftest.o conftest.s
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24194 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24195 if test $gcc_cv_as_powerpc_popcntd = yes; then
24197 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24202 *-*-aix*) conftest_s=' .csect .text[PR]
24204 *) conftest_s=' .text
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24209 $as_echo_n "checking assembler for lwsync support... " >&6; }
24210 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24211 $as_echo_n "(cached) " >&6
24213 gcc_cv_as_powerpc_lwsync=no
24214 if test $in_tree_gas = yes; then
24215 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24216 then gcc_cv_as_powerpc_lwsync=yes
24218 elif test x$gcc_cv_as != x; then
24219 echo "$conftest_s" > conftest.s
24220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24222 (eval $ac_try) 2>&5
24224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24225 test $ac_status = 0; }; }
24227 gcc_cv_as_powerpc_lwsync=yes
24229 echo "configure: failed program was" >&5
24232 rm -f conftest.o conftest.s
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24236 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24237 if test $gcc_cv_as_powerpc_lwsync = yes; then
24239 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24244 *-*-aix*) conftest_s=' .machine "476"
24247 *) conftest_s=' .machine "476"
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24253 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24254 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24255 $as_echo_n "(cached) " >&6
24257 gcc_cv_as_powerpc_dci=no
24258 if test $in_tree_gas = yes; then
24259 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24260 then gcc_cv_as_powerpc_dci=yes
24262 elif test x$gcc_cv_as != x; then
24263 echo "$conftest_s" > conftest.s
24264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24266 (eval $ac_try) 2>&5
24268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24269 test $ac_status = 0; }; }
24271 gcc_cv_as_powerpc_dci=yes
24273 echo "configure: failed program was" >&5
24276 rm -f conftest.o conftest.s
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24280 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24281 if test $gcc_cv_as_powerpc_dci = yes; then
24283 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24288 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24289 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24290 $as_echo_n "(cached) " >&6
24292 gcc_cv_as_powerpc_gnu_attribute=no
24293 if test $in_tree_gas = yes; then
24294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24295 then gcc_cv_as_powerpc_gnu_attribute=yes
24297 elif test x$gcc_cv_as != x; then
24298 echo '.gnu_attribute 4,1' > conftest.s
24299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24306 gcc_cv_as_powerpc_gnu_attribute=yes
24308 echo "configure: failed program was" >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24315 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24316 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24318 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24323 $as_echo_n "checking assembler for tls marker support... " >&6; }
24324 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24327 gcc_cv_as_powerpc_tls_markers=no
24328 if test $in_tree_gas = yes; then
24329 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24330 then gcc_cv_as_powerpc_tls_markers=yes
24332 elif test x$gcc_cv_as != x; then
24333 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }
24341 gcc_cv_as_powerpc_tls_markers=yes
24343 echo "configure: failed program was" >&5
24346 rm -f conftest.o conftest.s
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24350 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24351 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24353 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24360 $as_echo_n "checking assembler for .ref support... " >&6; }
24361 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24362 $as_echo_n "(cached) " >&6
24364 gcc_cv_as_aix_ref=no
24365 if test $in_tree_gas = yes; then
24366 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24369 elif test x$gcc_cv_as != x; then
24370 echo ' .csect stuff[rw]
24376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378 (eval $ac_try) 2>&5
24380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381 test $ac_status = 0; }; }
24383 gcc_cv_as_aix_ref=yes
24385 echo "configure: failed program was" >&5
24388 rm -f conftest.o conftest.s
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24392 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24393 if test $gcc_cv_as_aix_ref = yes; then
24395 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24404 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24405 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24406 $as_echo_n "(cached) " >&6
24408 gcc_cv_as_mips_explicit_relocs=no
24409 if test $in_tree_gas = yes; then
24410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24411 then gcc_cv_as_mips_explicit_relocs=yes
24413 elif test x$gcc_cv_as != x; then
24414 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24417 (eval $ac_try) 2>&5
24419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24420 test $ac_status = 0; }; }
24422 gcc_cv_as_mips_explicit_relocs=yes
24424 echo "configure: failed program was" >&5
24427 rm -f conftest.o conftest.s
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24431 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24432 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24433 if test x$target_cpu_default = x
24434 then target_cpu_default=MASK_EXPLICIT_RELOCS
24435 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24439 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24440 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24441 $as_echo_n "(cached) " >&6
24443 gcc_cv_as_mips_no_shared=no
24444 if test $in_tree_gas = yes; then
24445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24446 then gcc_cv_as_mips_no_shared=yes
24448 elif test x$gcc_cv_as != x; then
24449 echo 'nop' > conftest.s
24450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452 (eval $ac_try) 2>&5
24454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455 test $ac_status = 0; }; }
24457 gcc_cv_as_mips_no_shared=yes
24459 echo "configure: failed program was" >&5
24462 rm -f conftest.o conftest.s
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24466 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24467 if test $gcc_cv_as_mips_no_shared = yes; then
24469 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24474 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24475 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24478 gcc_cv_as_mips_gnu_attribute=no
24479 if test $in_tree_gas = yes; then
24480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24481 then gcc_cv_as_mips_gnu_attribute=yes
24483 elif test x$gcc_cv_as != x; then
24484 echo '.gnu_attribute 4,1' > conftest.s
24485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24487 (eval $ac_try) 2>&5
24489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24490 test $ac_status = 0; }; }
24492 gcc_cv_as_mips_gnu_attribute=yes
24494 echo "configure: failed program was" >&5
24497 rm -f conftest.o conftest.s
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24501 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24502 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24504 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24509 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24510 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24511 $as_echo_n "(cached) " >&6
24513 gcc_cv_as_mips_dtprelword=no
24514 if test $in_tree_gas = yes; then
24515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24516 then gcc_cv_as_mips_dtprelword=yes
24518 elif test x$gcc_cv_as != x; then
24519 echo '.section .tdata,"awT",@progbits
24523 .dtprelword x+0x8000' > conftest.s
24524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24531 gcc_cv_as_mips_dtprelword=yes
24533 echo "configure: failed program was" >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24540 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24541 if test $gcc_cv_as_mips_dtprelword = yes; then
24543 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24548 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24549 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24550 $as_echo_n "(cached) " >&6
24552 gcc_cv_as_mips_dspr1_mult=no
24553 if test x$gcc_cv_as != x; then
24554 echo ' .set mips32r2
24562 multu $ac3,$4,$5' > conftest.s
24563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24565 (eval $ac_try) 2>&5
24567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24568 test $ac_status = 0; }; }
24570 gcc_cv_as_mips_dspr1_mult=yes
24572 echo "configure: failed program was" >&5
24575 rm -f conftest.o conftest.s
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24579 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24580 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24582 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24587 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24588 gcc_cv_as_ld_jalr_reloc=no
24589 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24590 if test $in_tree_ld = yes ; then
24591 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 \
24592 && test $in_tree_ld_is_elf = yes; then
24593 gcc_cv_as_ld_jalr_reloc=yes
24595 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24596 echo ' .ent x' > conftest.s
24597 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24598 echo ' ld $25,%call16(y)($28)' >> conftest.s
24599 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24600 echo '1: jalr $25' >> conftest.s
24601 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24602 echo '1: jalr $25' >> conftest.s
24603 echo ' .end x' >> conftest.s
24604 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24605 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24606 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24607 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24608 gcc_cv_as_ld_jalr_reloc=yes
24614 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24615 if test x$target_cpu_default = x; then
24616 target_cpu_default=MASK_RELAX_PIC_CALLS
24618 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24622 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24625 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24626 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24627 $as_echo_n "(cached) " >&6
24629 gcc_cv_ld_mips_personality_relaxation=no
24630 if test $in_tree_ld = yes ; then
24631 if test "$gcc_cv_gld_major_version" -eq 2 \
24632 -a "$gcc_cv_gld_minor_version" -ge 21 \
24633 -o "$gcc_cv_gld_major_version" -gt 2; then
24634 gcc_cv_ld_mips_personality_relaxation=yes
24636 elif test x$gcc_cv_as != x \
24637 -a x$gcc_cv_ld != x \
24638 -a x$gcc_cv_readelf != x ; then
24639 cat > conftest.s <<EOF
24641 .cfi_personality 0x80,indirect_ptr
24648 .section .data,"aw",@progbits
24652 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24653 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24654 if $gcc_cv_readelf -d conftest 2>&1 \
24655 | grep TEXTREL > /dev/null 2>&1; then
24657 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24658 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24661 gcc_cv_ld_mips_personality_relaxation=yes
24665 rm -f conftest.s conftest.o conftest
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24668 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24669 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24671 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24677 # Mips and HP-UX need the GNU assembler.
24678 # Linux on IA64 might be able to use the Intel assembler.
24681 mips*-*-* | *-*-hpux* )
24682 if test x$gas_flag = xyes \
24683 || test x"$host" != x"$build" \
24684 || test ! -x "$gcc_cv_as" \
24685 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24688 echo "*** This configuration requires the GNU assembler" >&2
24694 # ??? Not all targets support dwarf2 debug_line, even within a version
24695 # of gas. Moreover, we need to emit a valid instruction to trigger any
24696 # info to the output file. So, as supported targets are added to gas 2.11,
24697 # add some instruction here to (also) show we expect this might work.
24698 # ??? Once 2.11 is released, probably need to add first known working
24699 # version to the per-target configury.
24700 case "$cpu_type" in
24701 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24702 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24712 if test x"$insn" != x; then
24714 .file 1 \"conftest.s\"
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24718 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24719 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24722 gcc_cv_as_dwarf2_debug_line=no
24723 if test $in_tree_gas = yes; then
24724 if test $in_tree_gas_is_elf = yes \
24725 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24726 then gcc_cv_as_dwarf2_debug_line=yes
24728 elif test x$gcc_cv_as != x; then
24729 echo "$conftest_s" > conftest.s
24730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24732 (eval $ac_try) 2>&5
24734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24735 test $ac_status = 0; }; }
24737 if test x$gcc_cv_objdump != x \
24738 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24739 | grep debug_line > /dev/null 2>&1; then
24740 gcc_cv_as_dwarf2_debug_line=yes
24743 echo "configure: failed program was" >&5
24746 rm -f conftest.o conftest.s
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24750 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24753 # The .debug_line file table must be in the exact order that
24754 # we specified the files, since these indices are also used
24755 # by DW_AT_decl_file. Approximate this test by testing if
24756 # the assembler bitches if the same index is assigned twice.
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24758 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24759 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24760 $as_echo_n "(cached) " >&6
24762 gcc_cv_as_dwarf2_file_buggy=no
24763 if test x$gcc_cv_as != x; then
24764 echo ' .file 1 "foo.s"
24765 .file 1 "bar.s"' > conftest.s
24766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24768 (eval $ac_try) 2>&5
24770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24771 test $ac_status = 0; }; }
24773 gcc_cv_as_dwarf2_file_buggy=yes
24775 echo "configure: failed program was" >&5
24778 rm -f conftest.o conftest.s
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24782 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24785 if test $gcc_cv_as_dwarf2_debug_line = yes \
24786 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24788 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24793 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24794 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24795 $as_echo_n "(cached) " >&6
24797 gcc_cv_as_gdwarf2_flag=no
24798 if test $in_tree_gas = yes; then
24799 if test $in_tree_gas_is_elf = yes \
24800 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24801 then gcc_cv_as_gdwarf2_flag=yes
24803 elif test x$gcc_cv_as != x; then
24804 echo "$insn" > conftest.s
24805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24807 (eval $ac_try) 2>&5
24809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24810 test $ac_status = 0; }; }
24812 gcc_cv_as_gdwarf2_flag=yes
24814 echo "configure: failed program was" >&5
24817 rm -f conftest.o conftest.s
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24821 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24822 if test $gcc_cv_as_gdwarf2_flag = yes; then
24824 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24829 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24830 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24831 $as_echo_n "(cached) " >&6
24833 gcc_cv_as_gstabs_flag=no
24834 if test $in_tree_gas = yes; then
24835 if test $in_tree_gas_is_elf = yes \
24836 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24837 then gcc_cv_as_gstabs_flag=yes
24839 elif test x$gcc_cv_as != x; then
24840 echo "$insn" > conftest.s
24841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24843 (eval $ac_try) 2>&5
24845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24846 test $ac_status = 0; }; }
24848 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24849 # and warns about it, but still exits successfully. So check for
24851 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24853 (eval $ac_try) 2>&5
24855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24856 test $ac_status = 0; }; }
24858 else gcc_cv_as_gstabs_flag=yes
24861 echo "configure: failed program was" >&5
24864 rm -f conftest.o conftest.s
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24868 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24869 if test $gcc_cv_as_gstabs_flag = yes; then
24871 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24876 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24877 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24878 $as_echo_n "(cached) " >&6
24880 gcc_cv_as_debug_prefix_map_flag=no
24881 if test $in_tree_gas = yes; then
24882 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24883 then gcc_cv_as_debug_prefix_map_flag=yes
24885 elif test x$gcc_cv_as != x; then
24886 echo "$insn" > conftest.s
24887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24889 (eval $ac_try) 2>&5
24891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24892 test $ac_status = 0; }; }
24894 gcc_cv_as_debug_prefix_map_flag=yes
24896 echo "configure: failed program was" >&5
24899 rm -f conftest.o conftest.s
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24903 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24904 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24906 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24912 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24913 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24914 $as_echo_n "(cached) " >&6
24916 gcc_cv_as_lcomm_with_alignment=no
24917 if test x$gcc_cv_as != x; then
24918 echo '.lcomm bar,4,16' > conftest.s
24919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921 (eval $ac_try) 2>&5
24923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924 test $ac_status = 0; }; }
24926 gcc_cv_as_lcomm_with_alignment=yes
24928 echo "configure: failed program was" >&5
24931 rm -f conftest.o conftest.s
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24935 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24936 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24938 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24942 # Check whether --enable-gnu-unique-object was given.
24943 if test "${enable_gnu_unique_object+set}" = set; then :
24944 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24946 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24947 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24951 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24952 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24953 $as_echo_n "(cached) " >&6
24955 gcc_cv_as_gnu_unique_object=no
24956 if test $in_tree_gas = yes; then
24957 if test $in_tree_gas_is_elf = yes \
24958 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24959 then gcc_cv_as_gnu_unique_object=yes
24961 elif test x$gcc_cv_as != x; then
24962 echo '.type foo, @gnu_unique_object' > conftest.s
24963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24965 (eval $ac_try) 2>&5
24967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24968 test $ac_status = 0; }; }
24970 gcc_cv_as_gnu_unique_object=yes
24972 echo "configure: failed program was" >&5
24975 rm -f conftest.o conftest.s
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24979 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24980 if test $gcc_cv_as_gnu_unique_object = yes; then
24981 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24982 if test x$host = x$build -a x$host = x$target &&
24983 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24984 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24985 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24986 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24987 if test "$glibcnum" -ge 2011 ; then
24988 enable_gnu_unique_object=yes
24994 if test x$enable_gnu_unique_object = xyes; then
24996 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25001 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25002 if test "${gcc_cv_as_line_zero+set}" = set; then :
25003 $as_echo_n "(cached) " >&6
25005 gcc_cv_as_line_zero=no
25006 if test $in_tree_gas = yes; then
25007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25008 then gcc_cv_as_line_zero=yes
25010 elif test "x$gcc_cv_as" != x; then
25011 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25012 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014 (eval $ac_try) 2>&5
25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017 test $ac_status = 0; }; } &&
25018 test "x`cat conftest.out`" = x
25020 gcc_cv_as_line_zero=yes
25022 echo "configure: failed program was" >&5
25024 echo "configure: error output was" >&5
25025 cat conftest.out >&5
25027 rm -f conftest.o conftest.s conftest.out
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25031 $as_echo "$gcc_cv_as_line_zero" >&6; }
25032 if test "x$gcc_cv_as_line_zero" = xyes; then
25034 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25039 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25040 gcc_cv_ld_eh_frame_hdr=no
25041 if test $in_tree_ld = yes ; then
25042 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 \
25043 && test $in_tree_ld_is_elf = yes; then
25044 gcc_cv_ld_eh_frame_hdr=yes
25046 elif test x$gcc_cv_ld != x; then
25047 # Check if linker supports --eh-frame-hdr option
25048 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25049 gcc_cv_ld_eh_frame_hdr=yes
25053 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25055 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25059 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25062 $as_echo_n "checking linker position independent executable support... " >&6; }
25064 if test $in_tree_ld = yes ; then
25065 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 \
25066 && test $in_tree_ld_is_elf = yes; then
25069 elif test x$gcc_cv_ld != x; then
25070 # Check if linker supports -pie option
25071 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25075 if test x"$gcc_cv_ld_pie" = xyes; then
25077 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25081 $as_echo "$gcc_cv_ld_pie" >&6; }
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25084 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25085 gcc_cv_ld_eh_gc_sections=no
25086 if test $in_tree_ld = yes ; then
25087 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 \
25088 && test $in_tree_ld_is_elf = yes; then
25089 gcc_cv_ld_eh_gc_sections=yes
25091 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25092 cat > conftest.s <<EOF
25095 .type _start, @function
25098 .size _start, .-_start
25099 .section .text.foo,"ax",@progbits
25100 .type foo, @function
25104 .section .gcc_except_table.foo,"a",@progbits
25107 .section .eh_frame,"a",@progbits
25110 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25111 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25112 | grep "gc-sections option ignored" > /dev/null; then
25113 gcc_cv_ld_eh_gc_sections=no
25114 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25115 | grep gcc_except_table > /dev/null; then
25116 gcc_cv_ld_eh_gc_sections=yes
25117 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25118 if test x$gcc_cv_as_comdat_group != xyes; then
25119 gcc_cv_ld_eh_gc_sections=no
25120 cat > conftest.s <<EOF
25123 .type _start, @function
25126 .size _start, .-_start
25127 .section .gnu.linkonce.t.foo,"ax",@progbits
25128 .type foo, @function
25132 .section .gcc_except_table.foo,"a",@progbits
25135 .section .eh_frame,"a",@progbits
25138 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25139 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25140 | grep "gc-sections option ignored" > /dev/null; then
25141 gcc_cv_ld_eh_gc_sections=no
25142 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25143 | grep gcc_except_table > /dev/null; then
25144 gcc_cv_ld_eh_gc_sections=yes
25150 rm -f conftest.s conftest.o conftest
25154 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25155 gcc_cv_ld_eh_gc_sections=no
25158 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25160 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25164 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25171 $as_echo_n "checking linker --as-needed support... " >&6; }
25172 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25173 $as_echo_n "(cached) " >&6
25175 gcc_cv_ld_as_needed=no
25176 if test $in_tree_ld = yes ; then
25177 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 \
25178 && test $in_tree_ld_is_elf = yes; then
25179 gcc_cv_ld_as_needed=yes
25181 elif test x$gcc_cv_ld != x; then
25182 # Check if linker supports --as-needed and --no-as-needed options
25183 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25184 gcc_cv_ld_as_needed=yes
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25190 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25191 if test x"$gcc_cv_ld_as_needed" = xyes; then
25193 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25197 case "$target:$tm_file" in
25198 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25200 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25201 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25202 $as_echo_n "(cached) " >&6
25204 gcc_cv_ld_no_dot_syms=no
25205 if test $in_tree_ld = yes ; then
25206 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
25207 gcc_cv_ld_no_dot_syms=yes
25209 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25210 cat > conftest1.s <<EOF
25214 cat > conftest2.s <<EOF
25215 .section ".opd","aw"
25218 .type foo,@function
25220 .quad .LEfoo,.TOC.@tocbase,0
25226 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25227 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25228 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25229 gcc_cv_ld_no_dot_syms=yes
25231 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25236 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25237 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25239 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25244 $as_echo_n "checking linker large toc support... " >&6; }
25245 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25246 $as_echo_n "(cached) " >&6
25248 gcc_cv_ld_large_toc=no
25249 if test $in_tree_ld = yes ; then
25250 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
25251 gcc_cv_ld_large_toc=yes
25253 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25254 cat > conftest.s <<EOF
25255 .section ".tbss","awT",@nobits
25261 addis 9,13,ie0@got@tprel@ha
25262 ld 9,ie0@got@tprel@l(9)
25264 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25265 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25266 gcc_cv_ld_large_toc=yes
25268 rm -f conftest conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25273 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25274 if test x"$gcc_cv_ld_large_toc" = xyes; then
25276 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25283 $as_echo_n "checking linker --build-id support... " >&6; }
25284 if test "${gcc_cv_ld_buildid+set}" = set; then :
25285 $as_echo_n "(cached) " >&6
25287 gcc_cv_ld_buildid=no
25288 if test $in_tree_ld = yes ; then
25289 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25290 "$gcc_cv_gld_minor_version" -ge 18 -o \
25291 "$gcc_cv_gld_major_version" -gt 2 \
25292 && test $in_tree_ld_is_elf = yes; then
25293 gcc_cv_ld_buildid=yes
25295 elif test x$gcc_cv_ld != x; then
25296 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25297 gcc_cv_ld_buildid=yes
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25302 $as_echo "$gcc_cv_ld_buildid" >&6; }
25303 if test x"$gcc_cv_ld_buildid" = xyes; then
25305 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25309 # Check whether --enable-linker-build-id was given.
25310 if test "${enable_linker_build_id+set}" = set; then :
25311 enableval=$enable_linker_build_id;
25313 enable_linker_build_id=no
25317 if test x"$enable_linker_build_id" = xyes; then
25318 if test x"$gcc_cv_ld_buildid" = xyes; then
25320 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25324 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25328 # In binutils 2.21, GNU ld gained support for new emulations fully
25329 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25331 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25332 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25333 $as_echo_n "(cached) " >&6
25335 gcc_cv_ld_sol2_emulation=no
25336 if test $in_tree_ld = yes ; then
25337 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25338 "$gcc_cv_gld_minor_version" -ge 21 -o \
25339 "$gcc_cv_gld_major_version" -gt 2 \
25340 && test $in_tree_ld_is_elf = yes; then
25341 gcc_cv_ld_sol2_emulation=yes
25343 elif test x$gcc_cv_ld != x; then
25344 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25345 grep _sol2 > /dev/null; then
25346 gcc_cv_ld_sol2_emulation=yes
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25351 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25352 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25354 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25359 $as_echo_n "checking linker --sysroot support... " >&6; }
25360 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25361 $as_echo_n "(cached) " >&6
25363 gcc_cv_ld_sysroot=no
25364 if test $in_tree_ld = yes ; then
25365 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
25366 gcc_cv_ld_sysroot=yes
25368 elif test x$gcc_cv_ld != x; then
25369 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25370 gcc_cv_ld_sysroot=yes
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25375 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25376 if test x"$gcc_cv_ld_sysroot" = xyes; then
25378 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25382 if test x$with_sysroot = x && test x$host = x$target \
25383 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25384 && test "$prefix" != "NONE"; then
25386 cat >>confdefs.h <<_ACEOF
25387 #define PREFIX_INCLUDE_DIR "$prefix/include"
25392 # Test for stack protector support in target C library.
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25394 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25395 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25396 $as_echo_n "(cached) " >&6
25398 gcc_cv_libc_provides_ssp=no
25400 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25401 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25402 if test "x$with_headers" != x; then
25403 glibc_header_dir=$with_headers
25404 elif test "x$with_sysroot" = x; then
25405 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25406 elif test "x$with_build_sysroot" != "x"; then
25407 glibc_header_dir="${with_build_sysroot}/usr/include"
25408 elif test "x$with_sysroot" = xyes; then
25409 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25411 glibc_header_dir="${with_sysroot}/usr/include"
25414 glibc_header_dir=/usr/include
25416 # glibc 2.4 and later provides __stack_chk_fail and
25417 # either __stack_chk_guard, or TLS access to stack guard canary.
25418 if test -f $glibc_header_dir/features.h \
25419 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25420 $glibc_header_dir/features.h > /dev/null; then
25421 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25422 $glibc_header_dir/features.h > /dev/null; then
25423 gcc_cv_libc_provides_ssp=yes
25424 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25425 $glibc_header_dir/features.h > /dev/null \
25426 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25427 $glibc_header_dir/features.h > /dev/null; then
25428 gcc_cv_libc_provides_ssp=yes
25429 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25430 $glibc_header_dir/features.h > /dev/null && \
25431 test -f $glibc_header_dir/bits/uClibc_config.h && \
25432 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25433 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25434 gcc_cv_libc_provides_ssp=yes
25439 # Avoid complicated tests (see
25440 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25441 # simply assert that glibc does provide this, which is true for all
25442 # realistically usable GNU/Hurd configurations.
25443 gcc_cv_libc_provides_ssp=yes;;
25444 *-*-darwin* | *-*-freebsd*)
25445 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25446 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25447 gcc_cv_libc_provides_ssp=yes
25449 echo "no __stack_chk_fail on this target"
25453 *) gcc_cv_libc_provides_ssp=no ;;
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25457 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25459 if test x$gcc_cv_libc_provides_ssp = xyes; then
25461 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25465 # Check if TFmode long double should be used by default or not.
25466 # Some glibc targets used DFmode long double, but with glibc 2.4
25467 # and later they can use TFmode.
25469 powerpc*-*-linux* | \
25470 powerpc*-*-gnu* | \
25471 sparc*-*-linux* | \
25475 # Check whether --with-long-double-128 was given.
25476 if test "${with_long_double_128+set}" = set; then :
25477 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25479 gcc_cv_target_ldbl128=no
25480 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25481 if test "x$with_sysroot" = x; then
25482 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25483 elif test "x$with_build_sysroot" != "x"; then
25484 glibc_header_dir="${with_build_sysroot}/usr/include"
25485 elif test "x$with_sysroot" = xyes; then
25486 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25488 glibc_header_dir="${with_sysroot}/usr/include"
25491 glibc_header_dir=/usr/include
25493 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25494 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25495 && gcc_cv_target_ldbl128=yes
25501 if test x$gcc_cv_target_ldbl128 = xyes; then
25503 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25507 # Find out what GC implementation we want, or may, use.
25509 # Check whether --with-gc was given.
25510 if test "${with_gc+set}" = set; then :
25511 withval=$with_gc; case "$withval" in
25518 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25522 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25530 echo "Using $GGC for garbage collection."
25532 # Libraries to use on the host. This will normally be set by the top
25533 # level Makefile. Here we simply capture the value for our Makefile.
25534 if test -z "${HOST_LIBS+set}"; then
25539 # Use the system's zlib library.
25541 zlibinc="-I\$(srcdir)/../zlib"
25543 # Check whether --with-system-zlib was given.
25544 if test "${with_system_zlib+set}" = set; then :
25545 withval=$with_system_zlib; zlibdir=
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25555 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25556 # Check whether --enable-maintainer-mode was given.
25557 if test "${enable_maintainer_mode+set}" = set; then :
25558 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25565 $as_echo "$maintainer_mode" >&6; }
25567 if test "$maintainer_mode" = "yes"; then
25577 # Make empty files to contain the specs and options for each language.
25578 # Then add #include lines to for a compiler that has specs and/or options.
25584 # These (without "all_") are set in each config-lang.in.
25585 # `language' must be a single word so is spelled singularly.
25588 all_outputs='Makefile'
25589 # List of language makefile fragments.
25590 all_lang_makefrags=
25591 # Additional files for gengtype
25592 all_gtfiles="$target_gtfiles"
25594 # These are the languages that are set in --enable-languages,
25595 # and are available in the GCC tree.
25596 all_selected_languages=
25598 # Add the language fragments.
25599 # Languages are added via two mechanisms. Some information must be
25600 # recorded in makefile variables, these are defined in config-lang.in.
25601 # We accumulate them and plug them into the main Makefile.
25602 # The other mechanism is a set of hooks for each of the main targets
25603 # like `clean', `install', etc.
25605 language_hooks="Make-hooks"
25607 for lang in ${srcdir}/*/config-lang.in
25609 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25611 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25612 if test "x$lang_alias" = x
25614 echo "$lang doesn't set \$language." 1>&2
25617 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25618 subdirs="$subdirs $subdir"
25620 # $gcc_subdir is where the gcc integration files are to be found
25621 # for a language, both for internal compiler purposes (compiler
25622 # sources implementing front-end to GCC tree converters), and for
25623 # build infrastructure purposes (Make-lang.in, etc.)
25625 # This will be <subdir> (relative to $srcdir) if a line like
25626 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25627 # is found in <langdir>/config-lang.in, and will remain <langdir>
25630 # Except for the language alias (fetched above), the regular
25631 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25632 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25633 # only this and the language alias.
25635 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25636 if [ "$gcc_subdir" = "" ]; then
25637 gcc_subdir="$subdir"
25640 case ",$enable_languages," in
25642 all_selected_languages="$all_selected_languages $lang_alias"
25643 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25644 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25655 . ${srcdir}/$gcc_subdir/config-lang.in
25656 if test "x$language" = x
25658 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25663 case ",$enable_languages," in
25664 *,$lang_alias,*) ;;
25666 for i in $subdir_requires; do
25667 test -f "${srcdir}/$i/config-lang.in" && continue
25675 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25676 if test -f $srcdir/$gcc_subdir/lang.opt; then
25677 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25678 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
25680 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25681 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25683 all_languages="$all_languages $language"
25684 all_compilers="$all_compilers $compilers"
25685 all_outputs="$all_outputs $outputs"
25686 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25687 case ",$enable_languages," in
25690 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25699 # Pick up gtfiles for c
25701 . ${srcdir}/c-config-lang.in
25702 all_gtfiles="$all_gtfiles [c] $gtfiles"
25705 for language in $all_selected_languages
25707 check_languages="$check_languages check-$language"
25710 # We link each language in with a set of hooks, reached indirectly via
25711 # lang.${target}. Only do so for selected languages.
25715 target_list="all.cross start.encap rest.encap tags \
25716 install-common install-man install-info install-pdf install-html dvi \
25717 pdf html uninstall info man srcextra srcman srcinfo \
25718 mostlyclean clean distclean maintainer-clean install-plugin"
25720 for t in $target_list
25723 for lang in $all_selected_languages
25727 echo "lang.$t: $x" >> Make-hooks
25731 # Option include files
25734 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
25735 option_includes="option-includes.mk"
25744 echo "dir ." > .gdbinit
25745 echo "dir ${srcdir}" >> .gdbinit
25746 if test x$gdb_needs_out_file_path = xyes
25748 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25750 if test "x$subdirs" != x; then
25753 echo "dir ${srcdir}/$s" >> .gdbinit
25756 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25758 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25762 # Find a directory in which to install a shared libgcc.
25764 # Check whether --enable-version-specific-runtime-libs was given.
25765 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25766 enableval=$enable_version_specific_runtime_libs;
25771 # Check whether --with-slibdir was given.
25772 if test "${with_slibdir+set}" = set; then :
25773 withval=$with_slibdir; slibdir="$with_slibdir"
25775 if test "${enable_version_specific_runtime_libs+set}" = set; then
25776 slibdir='$(libsubdir)'
25777 elif test "$host" != "$target"; then
25778 slibdir='$(build_tooldir)/lib'
25780 slibdir='$(libdir)'
25786 # Substitute configuration variables
25850 if test x${build} = x${host} ; then
25851 if test x${host} = x${target} ; then
25852 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25854 echo "Links are now set up to build a cross-compiler" 1>&2
25855 echo " from ${host} to ${target}." 1>&2
25858 if test x${host} = x${target} ; then
25859 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25860 echo " for ${target}." 1>&2
25862 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25863 echo " from ${host} to ${target}." 1>&2
25875 if test "x${CLOOGLIBS}" != "x" ; then
25877 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25881 # Check for plugin support
25882 # Check whether --enable-plugin was given.
25883 if test "${enable_plugin+set}" = set; then :
25884 enableval=$enable_plugin; enable_plugin=$enableval
25886 enable_plugin=yes; default_plugin=yes
25894 if test x$build = x$host; then
25895 export_sym_check="nm${exeext} -g"
25896 elif test x$host = x$target; then
25897 export_sym_check="$gcc_cv_nm -g"
25903 if test x$build = x$host; then
25904 export_sym_check="objdump${exeext} -T"
25905 elif test x$host = x$target; then
25906 export_sym_check="$gcc_cv_objdump -T"
25913 if test x"$enable_plugin" = x"yes"; then
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25916 $as_echo_n "checking for exported symbols... " >&6; }
25917 if test "x$export_sym_check" != x; then
25918 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25919 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25920 if $export_sym_check conftest | grep foobar > /dev/null; then
25921 : # No need to use a flag
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25923 $as_echo "yes" >&6; }
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25926 $as_echo "yes" >&6; }
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25928 $as_echo_n "checking for -rdynamic... " >&6; }
25929 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25930 if $export_sym_check conftest | grep foobar > /dev/null; then
25931 plugin_rdynamic=yes
25932 pluginlibs="-rdynamic"
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25938 $as_echo "$plugin_rdynamic" >&6; }
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25942 $as_echo "unable to check" >&6; }
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25948 $as_echo_n "checking for library containing dlopen... " >&6; }
25949 if test "${ac_cv_search_dlopen+set}" = set; then :
25950 $as_echo_n "(cached) " >&6
25952 ac_func_search_save_LIBS=$LIBS
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25956 /* Override any GCC internal prototype to avoid an error.
25957 Use char because int might match the return type of a GCC
25958 builtin and then its argument prototype would still apply. */
25971 for ac_lib in '' dl; do
25972 if test -z "$ac_lib"; then
25973 ac_res="none required"
25976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25978 if ac_fn_c_try_link "$LINENO"; then :
25979 ac_cv_search_dlopen=$ac_res
25981 rm -f core conftest.err conftest.$ac_objext \
25983 if test "${ac_cv_search_dlopen+set}" = set; then :
25987 if test "${ac_cv_search_dlopen+set}" = set; then :
25990 ac_cv_search_dlopen=no
25992 rm conftest.$ac_ext
25993 LIBS=$ac_func_search_save_LIBS
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25996 $as_echo "$ac_cv_search_dlopen" >&6; }
25997 ac_res=$ac_cv_search_dlopen
25998 if test "$ac_res" != no; then :
25999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26003 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26004 pluginlibs="$pluginlibs -ldl"
26008 # Check that we can build shared objects with -fPIC -shared
26009 saved_LDFLAGS="$LDFLAGS"
26010 saved_CFLAGS="$CFLAGS"
26013 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26014 CFLAGS="$CFLAGS -fPIC"
26015 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26018 CFLAGS="$CFLAGS -fPIC"
26019 LDFLAGS="$LDFLAGS -fPIC -shared"
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26023 $as_echo_n "checking for -fPIC -shared... " >&6; }
26024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h. */
26035 if ac_fn_c_try_link "$LINENO"; then :
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26037 $as_echo "yes" >&6; }; have_pic_shared=yes
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26040 $as_echo "no" >&6; }; have_pic_shared=no
26042 rm -f core conftest.err conftest.$ac_objext \
26043 conftest$ac_exeext conftest.$ac_ext
26044 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26048 LDFLAGS="$saved_LDFLAGS"
26049 CFLAGS="$saved_CFLAGS"
26051 # If plugin support had been requested but not available, fail.
26052 if test x"$enable_plugin" = x"no" ; then
26053 if test x"$default_plugin" != x"yes"; then
26055 Building GCC with plugin support requires a host that supports
26056 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26063 if test x"$enable_plugin" = x"yes"; then
26065 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26069 # Configure the subdirectories
26070 # AC_CONFIG_SUBDIRS($subdirs)
26072 # Create the Makefile
26073 # and configure language subdirectories
26074 ac_config_files="$ac_config_files $all_outputs"
26077 ac_config_commands="$ac_config_commands default"
26079 cat >confcache <<\_ACEOF
26080 # This file is a shell script that caches the results of configure
26081 # tests run on this system so they can be shared between configure
26082 # scripts and configure runs, see configure's option --config-cache.
26083 # It is not useful on other systems. If it contains results you don't
26084 # want to keep, you may remove or edit it.
26086 # config.status only pays attention to the cache file if you give it
26087 # the --recheck option to rerun configure.
26089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26091 # following values.
26095 # The following way of writing the cache mishandles newlines in values,
26096 # but we know of no workaround that is simple, portable, and efficient.
26097 # So, we kill variables containing newlines.
26098 # Ultrix sh set writes to stderr and can't be redirected directly,
26099 # and sets the high bit in the cache file unless we assign to the vars.
26101 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26102 eval ac_val=\$$ac_var
26106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26110 _ | IFS | as_nl) ;; #(
26111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26112 *) { eval $ac_var=; unset $ac_var;} ;;
26118 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26119 *${as_nl}ac_space=\ *)
26120 # `set' does not quote correctly, so add quotes: double-quote
26121 # substitution turns \\\\ into \\, and sed turns \\ into \.
26124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26127 # `set' quotes correctly as required by POSIX, so do not add quotes.
26128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26137 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26139 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26141 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26142 if test -w "$cache_file"; then
26143 test "x$cache_file" != "x/dev/null" &&
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26145 $as_echo "$as_me: updating cache $cache_file" >&6;}
26146 cat confcache >$cache_file
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26149 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26155 # Let make expand exec_prefix.
26156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26158 DEFS=-DHAVE_CONFIG_H
26162 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26163 # 1. Remove the extension, and $U if already installed.
26164 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26165 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26166 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26167 # will be set to the directory where LIBOBJS objects are built.
26168 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26169 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26171 LIBOBJS=$ac_libobjs
26173 LTLIBOBJS=$ac_ltlibobjs
26178 : ${CONFIG_STATUS=./config.status}
26180 ac_clean_files_save=$ac_clean_files
26181 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26183 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26185 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26187 # Generated by $as_me.
26188 # Run this file to recreate the current configuration.
26189 # Compiler output produced by configure, useful for debugging
26190 # configure, is in config.log if it exists.
26193 ac_cs_recheck=false
26196 SHELL=\${CONFIG_SHELL-$SHELL}
26199 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26200 ## -------------------- ##
26201 ## M4sh Initialization. ##
26202 ## -------------------- ##
26204 # Be more Bourne compatible
26205 DUALCASE=1; export DUALCASE # for MKS sh
26206 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26209 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26210 # is contrary to our usage. Disable this feature.
26211 alias -g '${1+"$@"}'='"$@"'
26212 setopt NO_GLOB_SUBST
26214 case `(set -o) 2>/dev/null` in #(
26226 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26227 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26229 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26230 # Prefer a ksh shell builtin over an external printf program on Solaris,
26231 # but without wasting forks for bash or zsh.
26232 if test -z "$BASH_VERSION$ZSH_VERSION" \
26233 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26234 as_echo='print -r --'
26235 as_echo_n='print -rn --'
26236 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26237 as_echo='printf %s\n'
26238 as_echo_n='printf %s'
26240 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26241 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26242 as_echo_n='/usr/ucb/echo -n'
26244 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26245 as_echo_n_body='eval
26249 expr "X$arg" : "X\\(.*\\)$as_nl";
26250 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26252 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26254 export as_echo_n_body
26255 as_echo_n='sh -c $as_echo_n_body as_echo'
26257 export as_echo_body
26258 as_echo='sh -c $as_echo_body as_echo'
26261 # The user is always right.
26262 if test "${PATH_SEPARATOR+set}" != set; then
26264 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26265 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26272 # We need space, tab and new line, in precisely that order. Quoting is
26273 # there to prevent editors from complaining about space-tab.
26274 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26275 # splitting by setting IFS to empty value.)
26278 # Find who we are. Look in the path if we contain no directory separator.
26280 *[\\/]* ) as_myself=$0 ;;
26281 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26282 for as_dir in $PATH
26285 test -z "$as_dir" && as_dir=.
26286 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26292 # We did not find ourselves, most probably we were run as `sh COMMAND'
26293 # in which case we are not to be found in the path.
26294 if test "x$as_myself" = x; then
26297 if test ! -f "$as_myself"; then
26298 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26302 # Unset variables that we do not need and which cause bugs (e.g. in
26303 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26304 # suppresses any "Segmentation fault" message there. '((' could
26305 # trigger a bug in pdksh 5.2.14.
26306 for as_var in BASH_ENV ENV MAIL MAILPATH
26307 do eval test x\${$as_var+set} = xset \
26308 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26324 # as_fn_error ERROR [LINENO LOG_FD]
26325 # ---------------------------------
26326 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26327 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26328 # script with status $?, using 1 if that was 0.
26331 as_status=$?; test $as_status -eq 0 && as_status=1
26333 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26334 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26336 $as_echo "$as_me: error: $1" >&2
26337 as_fn_exit $as_status
26341 # as_fn_set_status STATUS
26342 # -----------------------
26343 # Set $? to STATUS, without forking.
26344 as_fn_set_status ()
26347 } # as_fn_set_status
26349 # as_fn_exit STATUS
26350 # -----------------
26351 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26355 as_fn_set_status $1
26361 # Portably unset VAR.
26364 { eval $1=; unset $1;}
26366 as_unset=as_fn_unset
26367 # as_fn_append VAR VALUE
26368 # ----------------------
26369 # Append the text in VALUE to the end of the definition contained in VAR. Take
26370 # advantage of any shell optimizations that allow amortized linear growth over
26371 # repeated appends, instead of the typical quadratic growth present in naive
26373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26374 eval 'as_fn_append ()
26385 # as_fn_arith ARG...
26386 # ------------------
26387 # Perform arithmetic evaluation on the ARGs, and store the result in the
26388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26389 # must be portable across $(()) and expr.
26390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26391 eval 'as_fn_arith ()
26398 as_val=`expr "$@" || test $? -eq 1`
26403 if expr a : '\(a\)' >/dev/null 2>&1 &&
26404 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26410 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26411 as_basename=basename
26416 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26422 as_me=`$as_basename -- "$0" ||
26423 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26424 X"$0" : 'X\(//\)$' \| \
26425 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26427 sed '/^.*\/\([^/][^/]*\)\/*$/{
26441 # Avoid depending upon Character Ranges.
26442 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26443 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26444 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26445 as_cr_digits='0123456789'
26446 as_cr_alnum=$as_cr_Letters$as_cr_digits
26448 ECHO_C= ECHO_N= ECHO_T=
26449 case `echo -n x` in #(((((
26451 case `echo 'xy\c'` in
26452 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26454 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26461 rm -f conf$$ conf$$.exe conf$$.file
26462 if test -d conf$$.dir; then
26463 rm -f conf$$.dir/conf$$.file
26466 mkdir conf$$.dir 2>/dev/null
26468 if (echo >conf$$.file) 2>/dev/null; then
26469 if ln -s conf$$.file conf$$ 2>/dev/null; then
26471 # ... but there are two gotchas:
26472 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26473 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26474 # In both cases, we have to default to `cp -p'.
26475 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26477 elif ln conf$$.file conf$$ 2>/dev/null; then
26485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26486 rmdir conf$$.dir 2>/dev/null
26491 # Create "$as_dir" as a directory, including parents if necessary.
26496 -*) as_dir=./$as_dir;;
26498 test -d "$as_dir" || eval $as_mkdir_p || {
26502 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26503 *) as_qdir=$as_dir;;
26505 as_dirs="'$as_qdir' $as_dirs"
26506 as_dir=`$as_dirname -- "$as_dir" ||
26507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26508 X"$as_dir" : 'X\(//\)[^/]' \| \
26509 X"$as_dir" : 'X\(//\)$' \| \
26510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26511 $as_echo X"$as_dir" |
26512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26516 /^X\(\/\/\)[^/].*/{
26529 test -d "$as_dir" && break
26531 test -z "$as_dirs" || eval "mkdir $as_dirs"
26532 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26536 if mkdir -p . 2>/dev/null; then
26537 as_mkdir_p='mkdir -p "$as_dir"'
26539 test -d ./-p && rmdir ./-p
26543 if test -x / >/dev/null 2>&1; then
26544 as_test_x='test -x'
26546 if ls -dL / >/dev/null 2>&1; then
26553 if test -d "$1"; then
26559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26560 ???[sx]*):;;*)false;;esac;fi
26564 as_executable_p=$as_test_x
26566 # Sed expression to map a string onto a valid CPP name.
26567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26569 # Sed expression to map a string onto a valid variable name.
26570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26574 ## ----------------------------------- ##
26575 ## Main body of $CONFIG_STATUS script. ##
26576 ## ----------------------------------- ##
26578 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26581 # Save the log message, to keep $0 and so on meaningful, and to
26582 # report actual input values of CONFIG_FILES etc. instead of their
26583 # values after options handling.
26585 This file was extended by $as_me, which was
26586 generated by GNU Autoconf 2.64. Invocation command line was
26588 CONFIG_FILES = $CONFIG_FILES
26589 CONFIG_HEADERS = $CONFIG_HEADERS
26590 CONFIG_LINKS = $CONFIG_LINKS
26591 CONFIG_COMMANDS = $CONFIG_COMMANDS
26594 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26599 case $ac_config_files in *"
26600 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26603 case $ac_config_headers in *"
26604 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26609 # Files that config.status was made for.
26610 config_files="$ac_config_files"
26611 config_headers="$ac_config_headers"
26612 config_commands="$ac_config_commands"
26616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26618 \`$as_me' instantiates files and other configuration actions
26619 from templates according to the current configuration. Unless the files
26620 and actions are specified as TAGs, all are instantiated by default.
26622 Usage: $0 [OPTION]... [TAG]...
26624 -h, --help print this help, then exit
26625 -V, --version print version number and configuration settings, then exit
26626 -q, --quiet, --silent
26627 do not print progress messages
26628 -d, --debug don't remove temporary files
26629 --recheck update $as_me by reconfiguring in the same conditions
26630 --file=FILE[:TEMPLATE]
26631 instantiate the configuration file FILE
26632 --header=FILE[:TEMPLATE]
26633 instantiate the configuration header FILE
26635 Configuration files:
26638 Configuration headers:
26641 Configuration commands:
26644 Report bugs to the package provider."
26647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650 configured by $0, generated by GNU Autoconf 2.64,
26651 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26653 Copyright (C) 2009 Free Software Foundation, Inc.
26654 This config.status script is free software; the Free Software Foundation
26655 gives unlimited permission to copy, distribute and modify it."
26660 test -n "\$AWK" || AWK=awk
26663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26664 # The default lists apply if the user does not specify any file.
26670 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26671 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26682 # Handling of the options.
26683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26685 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26686 $as_echo "$ac_cs_version"; exit ;;
26687 --debug | --debu | --deb | --de | --d | -d )
26689 --file | --fil | --fi | --f )
26692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26694 as_fn_append CONFIG_FILES " '$ac_optarg'"
26695 ac_need_defaults=false;;
26696 --header | --heade | --head | --hea )
26699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26701 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26702 ac_need_defaults=false;;
26704 # Conflict between --help and --header
26705 as_fn_error "ambiguous option: \`$1'
26706 Try \`$0 --help' for more information.";;
26707 --help | --hel | -h )
26708 $as_echo "$ac_cs_usage"; exit ;;
26709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26713 # This is an error.
26714 -*) as_fn_error "unrecognized option: \`$1'
26715 Try \`$0 --help' for more information." ;;
26717 *) as_fn_append ac_config_targets " $1"
26718 ac_need_defaults=false ;;
26724 ac_configure_extra_args=
26726 if $ac_cs_silent; then
26728 ac_configure_extra_args="$ac_configure_extra_args --silent"
26732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26733 if \$ac_cs_recheck; then
26734 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26736 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26737 CONFIG_SHELL='$SHELL'
26738 export CONFIG_SHELL
26743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26748 ## Running $as_me. ##
26754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26764 # Handling of arguments.
26765 for ac_config_target in $ac_config_targets
26767 case $ac_config_target in
26768 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26769 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26770 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26771 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26772 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26773 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26775 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26780 # If the user did not use the arguments to specify the items to instantiate,
26781 # then the envvar interface is used. Set only those that are not.
26782 # We use the long form for the default assignment because of an extremely
26783 # bizarre bug on SunOS 4.1.3.
26784 if $ac_need_defaults; then
26785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26790 # Have a temporary directory for convenience. Make it in the build tree
26791 # simply because there is no reason against having it here, and in addition,
26792 # creating and moving files from /tmp can sometimes cause problems.
26793 # Hook for its removal unless debugging.
26794 # Note that there is a small window in which the directory will not be cleaned:
26795 # after its creation but before its name has been assigned to `$tmp'.
26799 trap 'exit_status=$?
26800 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26802 trap 'as_fn_exit 1' 1 2 13 15
26804 # Create a (secure) tmp directory for tmp files.
26807 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26808 test -n "$tmp" && test -d "$tmp"
26811 tmp=./conf$$-$RANDOM
26812 (umask 077 && mkdir "$tmp")
26813 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26815 # Set up the scripts for CONFIG_FILES section.
26816 # No need to generate them if there are no CONFIG_FILES.
26817 # This happens for instance with `./config.status config.h'.
26818 if test -n "$CONFIG_FILES"; then
26820 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26821 ac_cs_awk_getline=:
26822 ac_cs_awk_pipe_init=
26823 ac_cs_awk_read_file='
26824 while ((getline aline < (F[key])) > 0)
26827 ac_cs_awk_pipe_fini=
26829 ac_cs_awk_getline=false
26830 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26831 ac_cs_awk_read_file='
26833 print "cat " F[key] " &&"
26834 '$ac_cs_awk_pipe_init
26835 # The final `:' finishes the AND list.
26836 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26838 ac_cr=`echo X | tr X '\015'`
26839 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26840 # But we know of no other shell where ac_cr would be empty at this
26841 # point, so we can use a bashism as a fallback.
26842 if test "x$ac_cr" = x; then
26843 eval ac_cr=\$\'\\r\'
26845 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26846 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26849 ac_cs_awk_cr=$ac_cr
26852 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26855 # Create commands to substitute file output variables.
26857 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26858 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26859 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26862 } >conf$$files.sh &&
26863 . ./conf$$files.sh ||
26864 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26865 rm -f conf$$files.sh
26868 echo "cat >conf$$subs.awk <<_ACEOF" &&
26869 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26871 } >conf$$subs.sh ||
26872 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26873 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26875 for ac_last_try in false false false false false :; do
26876 . ./conf$$subs.sh ||
26877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26879 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26880 if test $ac_delim_n = $ac_delim_num; then
26882 elif $ac_last_try; then
26883 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26888 rm -f conf$$subs.sh
26890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26891 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26895 s/^/S["/; s/!.*/"]=/
26905 s/\(.\{148\}\).*/\1/
26907 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26919 s/\(.\{148\}\).*/\1/
26921 s/["\\]/\\&/g; s/^/"/; s/$/"/
26925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26930 ' <conf$$subs.awk | sed '
26935 ' >>$CONFIG_STATUS || ac_write_fail=1
26936 rm -f conf$$subs.awk
26937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26939 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26940 for (key in S) S_is_set[key] = 1
26942 \$ac_cs_awk_pipe_init
26946 nfields = split(line, field, "@")
26948 len = length(field[1])
26949 for (i = 2; i < nfields; i++) {
26951 keylen = length(key)
26952 if (S_is_set[key]) {
26954 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26955 len += length(value) + length(field[++i])
26960 if (nfields == 3 && !substed) {
26962 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26963 \$ac_cs_awk_read_file
26969 \$ac_cs_awk_pipe_fini
26972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26973 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26974 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26977 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26978 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26981 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26982 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26983 # trailing colons and then remove the whole line if VPATH becomes empty
26984 # (actually we leave an empty line to preserve line numbers).
26985 if test "x$srcdir" = x.; then
26986 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26987 s/:*\$(srcdir):*/:/
26988 s/:*\${srcdir}:*/:/
26990 s/^\([^=]*=[ ]*\):*/\1/
26996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26997 fi # test -n "$CONFIG_FILES"
26999 # Set up the scripts for CONFIG_HEADERS section.
27000 # No need to generate them if there are no CONFIG_HEADERS.
27001 # This happens for instance with `./config.status Makefile'.
27002 if test -n "$CONFIG_HEADERS"; then
27003 cat >"$tmp/defines.awk" <<\_ACAWK ||
27007 # Transform confdefs.h into an awk script `defines.awk', embedded as
27008 # here-document in config.status, that substitutes the proper values into
27009 # config.h.in to produce config.h.
27011 # Create a delimiter string that does not exist in confdefs.h, to ease
27012 # handling of long lines.
27014 for ac_last_try in false false :; do
27015 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27016 if test -z "$ac_t"; then
27018 elif $ac_last_try; then
27019 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27025 # For the awk script, D is an array of macro values keyed by name,
27026 # likewise P contains macro parameters if any. Preserve backslash
27027 # newline sequences.
27029 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27031 s/.\{148\}/&'"$ac_delim"'/g
27034 s/^[ ]*#[ ]*define[ ][ ]*/ /
27041 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27043 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27047 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27048 D["\1"]=" \3\\\\\\n"\\/p
27050 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27055 s/.\{148\}/&'"$ac_delim"'/g
27060 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27063 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27065 ' <confdefs.h | sed '
27066 s/'"$ac_delim"'/"\\\
27067 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27070 for (key in D) D_is_set[key] = 1
27073 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27075 split(line, arg, " ")
27076 if (arg[1] == "#") {
27080 defundef = substr(arg[1], 2)
27083 split(mac1, mac2, "(") #)
27085 prefix = substr(line, 1, index(line, defundef) - 1)
27086 if (D_is_set[macro]) {
27087 # Preserve the white space surrounding the "#".
27088 print prefix "define", macro P[macro] D[macro]
27091 # Replace #undef with comments. This is necessary, for example,
27092 # in the case of _POSIX_SOURCE, which is predefined and required
27093 # on some systems where configure will not decide to define it.
27094 if (defundef == "undef") {
27095 print "/*", prefix defundef, macro, "*/"
27103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27104 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27105 fi # test -n "$CONFIG_HEADERS"
27108 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27113 :[FHLC]) ac_mode=$ac_tag; continue;;
27115 case $ac_mode$ac_tag in
27117 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27118 :[FH]-) ac_tag=-:-;;
27119 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27136 -) ac_f="$tmp/stdin";;
27137 *) # Look for the file first in the build tree, then in the source tree
27138 # (if the path is not absolute). The absolute path cannot be DOS-style,
27139 # because $ac_f cannot contain `:'.
27143 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27145 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27147 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27148 as_fn_append ac_file_inputs " '$ac_f'"
27151 # Let's still pretend it is `configure' which instantiates (i.e., don't
27152 # use $as_me), people would be surprised to read:
27153 # /* config.h. Generated by config.status. */
27154 configure_input='Generated from '`
27155 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27157 if test x"$ac_file" != x-; then
27158 configure_input="$ac_file. $configure_input"
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27160 $as_echo "$as_me: creating $ac_file" >&6;}
27162 # Neutralize special characters interpreted by sed in replacement strings.
27163 case $configure_input in #(
27164 *\&* | *\|* | *\\* )
27165 ac_sed_conf_input=`$as_echo "$configure_input" |
27166 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27167 *) ac_sed_conf_input=$configure_input;;
27171 *:-:* | *:-) cat >"$tmp/stdin" \
27172 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27177 ac_dir=`$as_dirname -- "$ac_file" ||
27178 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27179 X"$ac_file" : 'X\(//\)[^/]' \| \
27180 X"$ac_file" : 'X\(//\)$' \| \
27181 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27182 $as_echo X"$ac_file" |
27183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27187 /^X\(\/\/\)[^/].*/{
27200 as_dir="$ac_dir"; as_fn_mkdir_p
27204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27206 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27207 # A ".." for each directory in $ac_dir_suffix.
27208 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27209 case $ac_top_builddir_sub in
27210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27214 ac_abs_top_builddir=$ac_pwd
27215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27216 # for backward compatibility:
27217 ac_top_builddir=$ac_top_build_prefix
27220 .) # We are building in place.
27222 ac_top_srcdir=$ac_top_builddir_sub
27223 ac_abs_top_srcdir=$ac_pwd ;;
27224 [\\/]* | ?:[\\/]* ) # Absolute name.
27225 ac_srcdir=$srcdir$ac_dir_suffix;
27226 ac_top_srcdir=$srcdir
27227 ac_abs_top_srcdir=$srcdir ;;
27228 *) # Relative name.
27229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27230 ac_top_srcdir=$ac_top_build_prefix$srcdir
27231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27245 # If the template does not know about datarootdir, expand it.
27246 # FIXME: This hack should be removed a few years after 2.60.
27247 ac_datarootdir_hack=; ac_datarootdir_seen=
27258 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27259 *datarootdir*) ac_datarootdir_seen=yes;;
27260 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27262 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27265 ac_datarootdir_hack='
27266 s&@datadir@&$datadir&g
27267 s&@docdir@&$docdir&g
27268 s&@infodir@&$infodir&g
27269 s&@localedir@&$localedir&g
27270 s&@mandir@&$mandir&g
27271 s&\\\${datarootdir}&$datarootdir&g' ;;
27275 # Neutralize VPATH when `$srcdir' = `.'.
27276 # Shell code in configure.ac might set extrasub.
27277 # FIXME: do we really want to maintain this feature?
27278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27279 ac_sed_extra="$ac_vpsub
27282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27285 s|@configure_input@|$ac_sed_conf_input|;t t
27286 s&@top_builddir@&$ac_top_builddir_sub&;t t
27287 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27288 s&@srcdir@&$ac_srcdir&;t t
27289 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27290 s&@top_srcdir@&$ac_top_srcdir&;t t
27291 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27292 s&@builddir@&$ac_builddir&;t t
27293 s&@abs_builddir@&$ac_abs_builddir&;t t
27294 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27295 $ac_datarootdir_hack
27297 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27298 if $ac_cs_awk_getline; then
27299 $AWK -f "$tmp/subs.awk"
27301 $AWK -f "$tmp/subs.awk" | $SHELL
27303 || as_fn_error "could not create $ac_file" "$LINENO" 5
27305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27309 which seems to be undefined. Please make sure it is defined." >&5
27310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27311 which seems to be undefined. Please make sure it is defined." >&2;}
27315 -) cat "$tmp/out" && rm -f "$tmp/out";;
27316 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27318 || as_fn_error "could not create $ac_file" "$LINENO" 5
27324 if test x"$ac_file" != x-; then
27326 $as_echo "/* $configure_input */" \
27327 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27328 } >"$tmp/config.h" \
27329 || as_fn_error "could not create $ac_file" "$LINENO" 5
27330 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27331 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27332 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27335 mv "$tmp/config.h" "$ac_file" \
27336 || as_fn_error "could not create $ac_file" "$LINENO" 5
27339 $as_echo "/* $configure_input */" \
27340 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27341 || as_fn_error "could not create -" "$LINENO" 5
27345 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27346 $as_echo "$as_me: executing $ac_file commands" >&6;}
27351 case $ac_file$ac_mode in
27352 "as":F) chmod +x as ;;
27353 "collect-ld":F) chmod +x collect-ld ;;
27354 "nm":F) chmod +x nm ;;
27356 case ${CONFIG_HEADERS} in
27357 *auto-host.h:config.in*)
27360 # Make sure all the subdirs exist.
27361 for d in $subdirs doc build c-family
27363 test -d $d || mkdir $d
27373 ac_clean_files=$ac_clean_files_save
27375 test $ac_write_fail = 0 ||
27376 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27379 # configure is writing to config.log, and then calls config.status.
27380 # config.status does its own redirection, appending to config.log.
27381 # Unfortunately, on DOS this fails, as config.log is still kept open
27382 # by configure, so config.status won't be able to write to it; its
27383 # output is simply discarded. So we exec the FD to /dev/null,
27384 # effectively closing config.log, so it can be properly (re)opened and
27385 # appended to by config.status. When coming back to configure, we
27386 # need to make the FD available again.
27387 if test "$no_create" != yes; then
27389 ac_config_status_args=
27390 test "$silent" = yes &&
27391 ac_config_status_args="$ac_config_status_args --quiet"
27393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27396 # would make configure fail if this is the last instruction.
27397 $ac_cs_success || as_fn_exit $?
27399 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27401 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}