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
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
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
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
774 valgrind_path_defines
849 program_transform_name
860 ac_subst_files
='option_includes
863 enable_option_checking
868 enable_generated_files_in_srcdir
878 enable_gather_detailed_mem_stats
890 with_native_system_header_dir
900 enable_sjlj_exceptions
902 enable_leading_mingw64_underscores
905 enable_win32_registry
911 enable_gnu_indirect_function
912 enable_initfini_array
914 enable_gnu_unique_object
915 enable_linker_build_id
919 enable_maintainer_mode
921 enable_version_specific_runtime_libs
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars
='build_alias
947 # Initialize some variables set by options.
949 ac_init_version
=false
950 ac_unrecognized_opts
=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name
=s
,x
,x
,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir
='${exec_prefix}/bin'
976 sbindir
='${exec_prefix}/sbin'
977 libexecdir
='${exec_prefix}/libexec'
978 datarootdir
='${prefix}/share'
979 datadir
='${datarootdir}'
980 sysconfdir
='${prefix}/etc'
981 sharedstatedir
='${prefix}/com'
982 localstatedir
='${prefix}/var'
983 includedir
='${prefix}/include'
984 oldincludedir
='/usr/include'
985 docdir
='${datarootdir}/doc/${PACKAGE}'
986 infodir
='${datarootdir}/info'
991 libdir
='${exec_prefix}/lib'
992 localedir
='${datarootdir}/locale'
993 mandir
='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\
$ac_option
1007 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1017 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1019 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1020 bindir
=$ac_optarg ;;
1022 -build |
--build |
--buil |
--bui |
--bu)
1023 ac_prev
=build_alias
;;
1024 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1025 build_alias
=$ac_optarg ;;
1027 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1028 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1029 ac_prev
=cache_file
;;
1030 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1031 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1032 cache_file
=$ac_optarg ;;
1034 --config-cache |
-C)
1035 cache_file
=config.cache
;;
1037 -datadir |
--datadir |
--datadi |
--datad)
1039 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1040 datadir
=$ac_optarg ;;
1042 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1043 |
--dataroo |
--dataro |
--datar)
1044 ac_prev
=datarootdir
;;
1045 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1046 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1047 datarootdir
=$ac_optarg ;;
1049 -disable-* |
--disable-*)
1050 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1053 as_fn_error
"invalid feature name: $ac_useropt"
1054 ac_useropt_orig
=$ac_useropt
1055 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_
$ac_useropt"
1060 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep
=', ';;
1063 eval enable_
$ac_useropt=no
;;
1065 -docdir |
--docdir |
--docdi |
--doc |
--do)
1067 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1068 docdir
=$ac_optarg ;;
1070 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1072 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1073 dvidir
=$ac_optarg ;;
1075 -enable-* |
--enable-*)
1076 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error
"invalid feature name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_
$ac_useropt"
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval enable_
$ac_useropt=\
$ac_optarg ;;
1091 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1092 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1093 |
--exec |
--exe |
--ex)
1094 ac_prev
=exec_prefix
;;
1095 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1096 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1097 |
--exec=* |
--exe=* |
--ex=*)
1098 exec_prefix
=$ac_optarg ;;
1100 -gas |
--gas |
--ga |
--g)
1101 # Obsolete; use --with-gas.
1104 -help |
--help |
--hel |
--he |
-h)
1105 ac_init_help
=long
;;
1106 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1107 ac_init_help
=recursive
;;
1108 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1109 ac_init_help
=short
;;
1111 -host |
--host |
--hos |
--ho)
1112 ac_prev
=host_alias
;;
1113 -host=* |
--host=* |
--hos=* |
--ho=*)
1114 host_alias
=$ac_optarg ;;
1116 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1118 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1120 htmldir
=$ac_optarg ;;
1122 -includedir |
--includedir |
--includedi |
--included |
--include \
1123 |
--includ |
--inclu |
--incl |
--inc)
1124 ac_prev
=includedir
;;
1125 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1126 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1127 includedir
=$ac_optarg ;;
1129 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1131 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1132 infodir
=$ac_optarg ;;
1134 -libdir |
--libdir |
--libdi |
--libd)
1136 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1137 libdir
=$ac_optarg ;;
1139 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1140 |
--libexe |
--libex |
--libe)
1141 ac_prev
=libexecdir
;;
1142 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1143 |
--libexe=* |
--libex=* |
--libe=*)
1144 libexecdir
=$ac_optarg ;;
1146 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1147 ac_prev
=localedir
;;
1148 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1149 localedir
=$ac_optarg ;;
1151 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1152 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1153 ac_prev
=localstatedir
;;
1154 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1155 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1156 localstatedir
=$ac_optarg ;;
1158 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1160 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1161 mandir
=$ac_optarg ;;
1163 -nfp |
--nfp |
--nf)
1164 # Obsolete; use --without-fp.
1167 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1168 |
--no-cr |
--no-c |
-n)
1171 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1172 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1175 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1176 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1177 |
--oldin |
--oldi |
--old |
--ol |
--o)
1178 ac_prev
=oldincludedir
;;
1179 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1180 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1181 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1182 oldincludedir
=$ac_optarg ;;
1184 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1186 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1187 prefix
=$ac_optarg ;;
1189 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1190 |
--program-pre |
--program-pr |
--program-p)
1191 ac_prev
=program_prefix
;;
1192 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1193 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1194 program_prefix
=$ac_optarg ;;
1196 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1197 |
--program-suf |
--program-su |
--program-s)
1198 ac_prev
=program_suffix
;;
1199 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1200 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1201 program_suffix
=$ac_optarg ;;
1203 -program-transform-name |
--program-transform-name \
1204 |
--program-transform-nam |
--program-transform-na \
1205 |
--program-transform-n |
--program-transform- \
1206 |
--program-transform |
--program-transfor \
1207 |
--program-transfo |
--program-transf \
1208 |
--program-trans |
--program-tran \
1209 |
--progr-tra |
--program-tr |
--program-t)
1210 ac_prev
=program_transform_name
;;
1211 -program-transform-name=* |
--program-transform-name=* \
1212 |
--program-transform-nam=* |
--program-transform-na=* \
1213 |
--program-transform-n=* |
--program-transform-=* \
1214 |
--program-transform=* |
--program-transfor=* \
1215 |
--program-transfo=* |
--program-transf=* \
1216 |
--program-trans=* |
--program-tran=* \
1217 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1218 program_transform_name
=$ac_optarg ;;
1220 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1222 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1223 pdfdir
=$ac_optarg ;;
1225 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1227 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1230 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1231 |
-silent |
--silent |
--silen |
--sile |
--sil)
1234 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1236 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1238 sbindir
=$ac_optarg ;;
1240 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1241 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1242 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1244 ac_prev
=sharedstatedir
;;
1245 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1246 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1247 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1249 sharedstatedir
=$ac_optarg ;;
1251 -site |
--site |
--sit)
1253 -site=* |
--site=* |
--sit=*)
1256 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1258 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1259 srcdir
=$ac_optarg ;;
1261 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1262 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1263 ac_prev
=sysconfdir
;;
1264 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1265 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1266 sysconfdir
=$ac_optarg ;;
1268 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1269 ac_prev
=target_alias
;;
1270 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1271 target_alias
=$ac_optarg ;;
1273 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1276 -version |
--version |
--versio |
--versi |
--vers |
-V)
1277 ac_init_version
=: ;;
1280 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1283 as_fn_error
"invalid package name: $ac_useropt"
1284 ac_useropt_orig
=$ac_useropt
1285 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1290 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep
=', ';;
1293 eval with_
$ac_useropt=\
$ac_optarg ;;
1295 -without-* |
--without-*)
1296 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1299 as_fn_error
"invalid package name: $ac_useropt"
1300 ac_useropt_orig
=$ac_useropt
1301 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep
=', ';;
1309 eval with_
$ac_useropt=no
;;
1312 # Obsolete; use --with-x.
1315 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1316 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1317 ac_prev
=x_includes
;;
1318 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1319 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1320 x_includes
=$ac_optarg ;;
1322 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1323 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1324 ac_prev
=x_libraries
;;
1325 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1326 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1327 x_libraries
=$ac_optarg ;;
1329 -*) as_fn_error
"unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1334 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1338 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1340 eval $ac_envvar=\
$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 if test -n "$ac_prev"; then
1355 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error
"missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1362 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 # Check all directory arguments for consistency.
1368 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val
=\$
$ac_var
1374 # Remove trailing slashes.
1377 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\
$ac_val;;
1380 # Be sure to have absolute directory names.
1382 [\\/$
]* | ?
:[\\/]* ) continue;;
1383 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1385 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1393 target
=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x
; then
1397 if test "x$build_alias" = x
; then
1398 cross_compiling
=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1407 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1409 test "$silent" = yes && exec 6>/dev
/null
1412 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di
=`ls -di .` &&
1414 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error
"working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error
"pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted
=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir
=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1452 ac_srcdir_defaulted
=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1456 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1470 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 for ac_var
in $ac_precious_vars; do
1473 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1475 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1549 --build=BUILD configure
for building on BUILD
[guessed
]
1550 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1551 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1555 if test -n "$ac_init_help"; then
1560 --disable-option-checking ignore unrecognized
--enable/--with options
1561 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1562 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files
in source dir intended
1565 for creating
source tarballs
for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support
for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST
]
1570 enable expensive run-time checks. With LIST
, enable
1571 only specific categories of checks. Categories are
:
1572 yes,no
,all
,none
,release. Flags are
:
1573 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1574 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1575 --enable-coverage[=LEVEL
]
1576 enable compiler
's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-multilib enable library support for multiple ABIs
1583 --enable-multiarch enable support for multiarch paths
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid
'
1587 or 'dpd
' choses which decimal floating point format
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don
't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-sjlj-exceptions
1600 arrange to use setjmp/longjmp exception handling
1601 --enable-secureplt enable -msecure-plt by default for PowerPC
1602 --enable-leading-mingw64-underscores
1603 enable leading underscores on 64 bit mingw targets
1604 --enable-cld enable -mcld by default for 32bit x86
1605 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1607 --disable-win32-registry
1608 disable lookup of installation paths in the Registry
1610 --enable-win32-registry enable registry lookup (default)
1611 --enable-win32-registry=KEY
1612 use KEY instead of GCC version as the last portion
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-static[=PKGS] build static libraries [default=yes]
1616 --enable-fast-install[=PKGS]
1617 optimize for fast installation [default=yes]
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1619 --enable-gnu-indirect-function
1620 enable the use of the @gnu_indirect_function to
1622 --enable-initfini-array use .init_array/.fini_array sections
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1633 thrashing on the build machine
1634 --enable-version-specific-runtime-libs
1635 specify that runtime libraries should be installed
1636 in a compiler-specific directory
1637 --enable-plugin enable plugin support
1638 --disable-libquadmath-support
1639 disable libquadmath support for Fortran
1642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644 --with-build-libsubdir=DIR Directory where to find libraries for build system
1645 --with-local-prefix=DIR specifies directory to put local include
1646 --with-gxx-include-dir=DIR
1647 specifies directory to put g++ header files
1648 --with-cpp-install-dir=DIR
1649 install the user visible C preprocessor in DIR
1650 (relative to PREFIX) as well as PREFIX/bin
1651 --with-gnu-ld arrange to work with GNU ld
1652 --with-ld arrange to use the specified ld (full pathname)
1653 --with-demangler-in-ld try to use demangler in GNU ld
1654 --with-gnu-as arrange to work with GNU as
1655 --with-as arrange to use the specified as (full pathname)
1656 --with-stabs arrange to use stabs instead of host debug format
1657 --with-dwarf2 force the default debug format to be DWARF 2
1658 --with-native-system-header-dir=dir
1659 use dir as the directory to look for standard
1660 system header files in. Defaults to /usr/include.
1661 --with-build-sysroot=sysroot
1662 use sysroot as the system root during the build
1663 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1664 --with-specs=SPECS add SPECS to driver command-line processing
1665 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1666 --with-bugurl=URL Direct users to URL to report a bug
1667 --with-multilib-list select multilibs (SH and x86-64 only)
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1670 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1671 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1673 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1674 --with-plugin-ld=[ARG
] specify the plugin linker
1675 --with-long-double-128 use
128-bit long double by default
1676 --with-gc={page
,zone
} this option is not supported anymore. It used to
1677 choose the garbage collection mechanism to use with
1679 --with-system-zlib use installed libz
1680 --with-linker-hash-style={sysv
,gnu
,both
}
1681 specify the linker
hash style
1683 Some influential environment variables
:
1684 CC C compiler
command
1685 CFLAGS C compiler flags
1686 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1687 nonstandard directory
<lib dir
>
1688 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1689 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1690 you have headers
in a nonstandard directory
<include dir
>
1691 CXX C
++ compiler
command
1692 CXXFLAGS C
++ compiler flags
1694 CXXCPP C
++ preprocessor
1695 GMPLIBS How to link GMP
1696 GMPINC How to
find GMP include files
1697 ISLLIBS How to link ISL
1698 ISLINC How to
find ISL include files
1699 CLOOGLIBS How to link CLOOG
1700 CLOOGINC How to
find CLOOG include files
1702 Use these variables to override the choices made by
`configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1705 Report bugs to the package provider.
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1735 .) # We are building in place.
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
1740 ac_srcdir=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1761 cd "$ac_pwd" || { ac_status=$?; break; }
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1769 generated by GNU Autoconf 2.64
1771 Copyright (C) 2009 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1792 *) ac_try_echo
=$ac_try;;
1794 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1798 if test -s conftest.err
; then
1799 grep -v '^ *+' conftest.err
>conftest.er1
1800 cat conftest.er1
>&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.
$ac_objext; then :
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.
$ac_ext >&5
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1818 } # ac_fn_c_try_compile
1820 # ac_fn_cxx_try_compile LINENO
1821 # ----------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_cxx_try_compile
()
1825 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1826 rm -f conftest.
$ac_objext
1827 if { { ac_try
="$ac_compile"
1829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 } # ac_fn_cxx_try_compile
1858 # ac_fn_c_try_cpp LINENO
1859 # ----------------------
1860 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_cpp conftest.$ac_ext"
1866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1867 *) ac_try_echo
=$ac_try;;
1869 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1873 if test -s conftest.err
; then
1874 grep -v '^ *+' conftest.err
>conftest.er1
1875 cat conftest.er1
>&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } >/dev
/null
&& {
1880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.
$ac_ext >&5
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1895 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1896 # -------------------------------------------------------
1897 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1898 # the include files in INCLUDES and setting the cache variable VAR
1900 ac_fn_c_check_header_mongrel
()
1902 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1903 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1913 # Is the header compilable?
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1915 $as_echo_n "checking $2 usability... " >&6; }
1916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1921 if ac_fn_c_try_compile
"$LINENO"; then :
1922 ac_header_compiler
=yes
1924 ac_header_compiler
=no
1926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1928 $as_echo "$ac_header_compiler" >&6; }
1930 # Is the header present?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1932 $as_echo_n "checking $2 presence... " >&6; }
1933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1937 if ac_fn_c_try_cpp
"$LINENO"; then :
1938 ac_header_preproc
=yes
1940 ac_header_preproc
=no
1942 rm -f conftest.err conftest.
$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1944 $as_echo "$ac_header_preproc" >&6; }
1946 # So? What about this header?
1947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1950 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1952 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1956 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1958 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1960 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1962 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1972 eval "$3=\$ac_header_compiler"
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1980 } # ac_fn_c_check_header_mongrel
1982 # ac_fn_c_try_run LINENO
1983 # ----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1985 # that executables *can* be run.
1988 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1989 if { { ac_try
="$ac_link"
1991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>&5
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2000 { { case "(($ac_try" in
2001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2002 *) ac_try_echo
=$ac_try;;
2004 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_try") 2>&5
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; }; }; then :
2012 $as_echo "$as_me: program exited with status $ac_status" >&5
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.
$ac_ext >&5
2016 ac_retval
=$ac_status
2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2024 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2025 # -------------------------------------------------------
2026 # Tests whether HEADER exists and can be compiled using the include files in
2027 # INCLUDES, setting the cache variable VAR accordingly.
2028 ac_fn_c_check_header_compile
()
2030 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2041 if ac_fn_c_try_compile
"$LINENO"; then :
2046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2053 } # ac_fn_c_check_header_compile
2055 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2056 # --------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2060 ac_fn_c_compute_int
()
2062 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2063 if test "$cross_compiling" = yes; then
2064 # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2078 if ac_fn_c_try_compile
"$LINENO"; then :
2081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094 if ac_fn_c_try_compile
"$LINENO"; then :
2095 ac_hi
=$ac_mid; break
2097 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2098 if test $ac_lo -le $ac_mid; then
2102 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) < 0)];
2120 if ac_fn_c_try_compile
"$LINENO"; then :
2123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2136 if ac_fn_c_try_compile
"$LINENO"; then :
2137 ac_lo
=$ac_mid; break
2139 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2140 if test $ac_mid -le $ac_hi; then
2144 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170 if ac_fn_c_try_compile
"$LINENO"; then :
2173 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2193 FILE *f = fopen ("conftest.val", "w");
2198 long int i = longval ();
2201 fprintf (f, "%ld", i);
2205 unsigned long int i = ulongval ();
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2218 if ac_fn_c_try_run
"$LINENO"; then :
2219 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2231 } # ac_fn_c_compute_int
2233 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2234 # -------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_c_check_type
()
2239 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2258 if ac_fn_c_try_compile
"$LINENO"; then :
2259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2271 if ac_fn_c_try_compile
"$LINENO"; then :
2276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2285 } # ac_fn_c_check_type
2287 # ac_fn_c_find_intX_t LINENO BITS VAR
2288 # -----------------------------------
2289 # Finds a signed integer type with width BITS, setting cache variable VAR
2291 ac_fn_c_find_intX_t
()
2293 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2295 $as_echo_n "checking for int$2_t... " >&6; }
2296 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2297 $as_echo_n "(cached) " >&6
2300 for ac_type
in int
$2_t 'int' 'long int' \
2301 'long long int' 'short int' 'signed char'; do
2302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 $ac_includes_default
2308 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2315 if ac_fn_c_try_compile
"$LINENO"; then :
2316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $ac_includes_default
2322 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2323 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2330 if ac_fn_c_try_compile
"$LINENO"; then :
2337 eval "$3=\$ac_type" ;;
2340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2344 if test "x$as_val" = x
""no
; then :
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2356 } # ac_fn_c_find_intX_t
2358 # ac_fn_c_try_link LINENO
2359 # -----------------------
2360 # Try to link conftest.$ac_ext, and return whether this succeeded.
2363 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2364 rm -f conftest.
$ac_objext conftest
$ac_exeext
2365 if { { ac_try
="$ac_link"
2367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_link") 2>conftest.err
2374 if test -s conftest.err; then
2375 grep -v '^ *+' conftest.err >conftest.er1
2376 cat conftest.er1 >&5
2377 mv -f conftest.er1 conftest.err
2379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380 test $ac_status = 0; } && {
2381 test -z "$ac_c_werror_flag" ||
2382 test ! -s conftest.err
2383 } && test -s conftest$ac_exeext && {
2384 test "$cross_compiling" = yes ||
2385 $as_test_x conftest$ac_exeext
2389 $as_echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2394 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2395 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2396 # interfere with the next link command; also delete a directory that is
2397 # left behind by Apple's compiler. We do this before executing the actions.
2398 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402 } # ac_fn_c_try_link
2404 # ac_fn_c_find_uintX_t LINENO BITS VAR
2405 # ------------------------------------
2406 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2408 ac_fn_c_find_uintX_t ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2412 $as_echo_n "checking for uint$2_t... " >&6; }
2413 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 $as_echo_n "(cached) " >&6
2417 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2418 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $ac_includes_default
2425 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2432 if ac_fn_c_try_compile "$LINENO"; then :
2437 eval "$3=\$ac_type" ;;
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 if test "x$as_val" = x""no; then :
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2454 } # ac_fn_c_find_uintX_t
2456 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2457 # ----------------------------------------------
2458 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2459 ac_fn_c_check_header_preproc ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2471 if ac_fn_c_try_cpp "$LINENO"; then :
2476 rm -f conftest.err conftest.$ac_ext
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 } # ac_fn_c_check_header_preproc
2485 # ac_fn_cxx_try_cpp LINENO
2486 # ------------------------
2487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2488 ac_fn_cxx_try_cpp ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 if { { ac_try="$ac_cpp conftest.$ac_ext"
2493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2494 *) ac_try_echo
=$ac_try;;
2496 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2500 if test -s conftest.err
; then
2501 grep -v '^ *+' conftest.err
>conftest.er1
2502 cat conftest.er1
>&5
2503 mv -f conftest.er1 conftest.err
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; } >/dev
/null
&& {
2507 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2508 test ! -s conftest.err
2512 $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.
$ac_ext >&5
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2520 } # ac_fn_cxx_try_cpp
2522 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2523 # ------------------------------------------------
2524 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2525 ac_fn_cxx_check_header_preproc
()
2527 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2531 $as_echo_n "(cached) " >&6
2533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2537 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2542 rm -f conftest.err conftest.
$ac_ext
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2549 } # ac_fn_cxx_check_header_preproc
2551 # ac_fn_c_check_func LINENO FUNC VAR
2552 # ----------------------------------
2553 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2554 ac_fn_c_check_func
()
2556 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2566 #define $2 innocuous_$2
2568 /* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $2 (); below.
2570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2571 <limits.h> exists even on freestanding compilers. */
2574 # include <limits.h>
2576 # include <assert.h>
2581 /* Override any GCC internal prototype to avoid an error.
2582 Use char because int might match the return type of a GCC
2583 builtin and then its argument prototype would still apply. */
2588 /* The GNU C library defines this for functions which it implements
2589 to always fail with ENOSYS. Some functions are actually named
2590 something starting with __ and the normal name is an alias. */
2591 #if defined __stub_$2 || defined __stub___$2
2603 if ac_fn_c_try_link
"$LINENO"; then :
2608 rm -f core conftest.err conftest.
$ac_objext \
2609 conftest
$ac_exeext conftest.
$ac_ext
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2616 } # ac_fn_c_check_func
2618 # ac_fn_cxx_try_link LINENO
2619 # -------------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded.
2621 ac_fn_cxx_try_link
()
2623 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2624 rm -f conftest.
$ac_objext conftest
$ac_exeext
2625 if { { ac_try
="$ac_link"
2627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>conftest.err
2634 if test -s conftest.err; then
2635 grep -v '^ *+' conftest.err >conftest.er1
2636 cat conftest.er1 >&5
2637 mv -f conftest.er1 conftest.err
2639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640 test $ac_status = 0; } && {
2641 test -z "$ac_cxx_werror_flag" ||
2642 test ! -s conftest.err
2643 } && test -s conftest$ac_exeext && {
2644 test "$cross_compiling" = yes ||
2645 $as_test_x conftest$ac_exeext
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2656 # interfere with the next link command; also delete a directory that is
2657 # left behind by Apple's compiler. We do this before executing the actions.
2658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662 } # ac_fn_cxx_try_link
2663 cat >config.log <<_ACEOF
2664 This file contains any messages produced by compilers while
2665 running configure, to aid debugging if configure makes a mistake.
2667 It was created by $as_me, which was
2668 generated by GNU Autoconf 2.64. Invocation command line was
2680 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2681 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2682 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2683 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2684 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2687 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2689 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2690 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2691 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2692 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2693 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2694 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2695 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 $as_echo "PATH: $as_dir"
2720 # Keep a trace of the command line.
2721 # Strip out --no-create and --no-recursion so they do not pile up.
2722 # Strip out --silent because we don't want to record it for future runs.
2723 # Also quote any args containing shell meta-characters.
2724 # Make two passes to allow for proper duplicate-argument suppression.
2728 ac_must_keep_next=false
2734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2736 | -silent | --silent | --silen | --sile | --sil)
2739 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2742 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2744 as_fn_append ac_configure_args1 " '$ac_arg'"
2745 if test $ac_must_keep_next = true; then
2746 ac_must_keep_next=false # Got value, back to normal.
2749 *=* | --config-cache | -C | -disable-* | --disable-* \
2750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2752 | -with-* | --with-* | -without-* | --without-* | --x)
2753 case "$ac_configure_args0 " in
2754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2757 -* ) ac_must_keep_next=true ;;
2760 as_fn_append ac_configure_args " '$ac_arg'"
2765 { ac_configure_args0=; unset ac_configure_args0;}
2766 { ac_configure_args1=; unset ac_configure_args1;}
2768 # When interrupted or exit'd, cleanup temporary files, and complete
2769 # config.log. We remove comments because anyway the quotes in there
2770 # would cause problems or look ugly.
2771 # WARNING: Use '\'' to represent an apostrophe within the trap.
2772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2773 trap 'exit_status=$?
2774 # Save into config.log some information that might help in debugging.
2779 ## ---------------- ##
2780 ## Cache variables. ##
2781 ## ---------------- ##
2784 # The following way of writing the cache mishandles newlines in values,
2786 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2787 eval ac_val=\$$ac_var
2791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2795 _ | IFS | as_nl) ;; #(
2796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2797 *) { eval $ac_var=; unset $ac_var;} ;;
2802 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2803 *${as_nl}ac_space=\ *)
2805 "s/'\''/'\''\\\\'\'''\''/g;
2806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2817 ## ----------------- ##
2818 ## Output variables. ##
2819 ## ----------------- ##
2822 for ac_var in $ac_subst_vars
2824 eval ac_val=\$$ac_var
2826 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2828 $as_echo "$ac_var='\''$ac_val'\''"
2832 if test -n "$ac_subst_files"; then
2834 ## ------------------- ##
2835 ## File substitutions. ##
2836 ## ------------------- ##
2839 for ac_var in $ac_subst_files
2841 eval ac_val=\$$ac_var
2843 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2845 $as_echo "$ac_var='\''$ac_val'\''"
2850 if test -s confdefs.h; then
2860 test "$ac_signal" != 0 &&
2861 $as_echo "$as_me: caught signal $ac_signal"
2862 $as_echo "$as_me: exit $exit_status"
2864 rm -f core *.core core.conftest.* &&
2865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2868 for ac_signal in 1 2 13 15; do
2869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2874 rm -f -r conftest* confdefs.h
2876 $as_echo "/* confdefs.h */" > confdefs.h
2878 # Predefined preprocessor variables.
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_NAME "$PACKAGE_NAME"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_STRING "$PACKAGE_STRING"
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_URL "$PACKAGE_URL"
2905 # Let the site file select an alternate cache file if it wants to.
2906 # Prefer an explicitly selected file to automatically selected ones.
2909 if test -n "$CONFIG_SITE"; then
2910 ac_site_file1=$CONFIG_SITE
2911 elif test "x$prefix" != xNONE; then
2912 ac_site_file1=$prefix/share/config.site
2913 ac_site_file2=$prefix/etc/config.site
2915 ac_site_file1=$ac_default_prefix/share/config.site
2916 ac_site_file2=$ac_default_prefix/etc/config.site
2918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2920 test "x$ac_site_file" = xNONE && continue
2921 if test -r "$ac_site_file"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2924 sed 's/^/| /' "$ac_site_file" >&5
2929 if test -r "$cache_file"; then
2930 # Some versions of bash will fail to source /dev/null (special
2931 # files actually), so we avoid doing that.
2932 if test -f "$cache_file"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2934 $as_echo "$as_me: loading cache $cache_file" >&6;}
2936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2937 *) . "./$cache_file";;
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2942 $as_echo "$as_me: creating cache $cache_file" >&6;}
2946 # Check that the precious variables saved in the cache have kept the same
2948 ac_cache_corrupted=false
2949 for ac_var in $ac_precious_vars; do
2950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2951 eval ac_new_set=\$ac_env_${ac_var}_set
2952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2953 eval ac_new_val=\$ac_env_${ac_var}_value
2954 case $ac_old_set,$ac_new_set in
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2957 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2961 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2962 ac_cache_corrupted=: ;;
2965 if test "x$ac_old_val" != "x$ac_new_val"; then
2966 # differences in whitespace do not lead to failure.
2967 ac_old_val_w=`echo x
$ac_old_val`
2968 ac_new_val_w=`echo x
$ac_new_val`
2969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2971 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2972 ac_cache_corrupted=:
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2975 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2976 eval $ac_var=\$ac_old_val
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2979 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2981 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2984 # Pass precious variables to config.status.
2985 if test "$ac_new_set" = set; then
2987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2988 *) ac_arg=$ac_var=$ac_new_val ;;
2990 case " $ac_configure_args " in
2991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2992 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2996 if $ac_cache_corrupted; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3001 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3003 ## -------------------- ##
3004 ## Main body of script. ##
3005 ## -------------------- ##
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3021 gcc_version=`cat $srcdir/BASE-VER
`
3023 # Determine the host, build, and target systems
3025 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3026 for ac_t in install-sh install.sh shtool; do
3027 if test -f "$ac_dir/$ac_t"; then
3029 ac_install_sh="$ac_aux_dir/$ac_t -c"
3034 if test -z "$ac_aux_dir"; then
3035 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3038 # These three variables are undocumented and unsupported,
3039 # and are intended to be withdrawn in a future Autoconf release.
3040 # They can cause serious problems if a builder's source tree is in a directory
3041 # whose full name contains unusual characters.
3042 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3043 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3044 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3047 # Make sure we can run config.sub.
3048 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3049 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3052 $as_echo_n "checking build system type... " >&6; }
3053 if test "${ac_cv_build+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3056 ac_build_alias=$build_alias
3057 test "x$ac_build_alias" = x &&
3058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3059 test "x$ac_build_alias" = x &&
3060 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3061 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3062 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3066 $as_echo "$ac_cv_build" >&6; }
3067 case $ac_cv_build in
3069 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3072 ac_save_IFS=$IFS; IFS='-'
3078 # Remember, the first character of IFS is used to create $*,
3079 # except with old shells:
3082 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3086 $as_echo_n "checking host system type... " >&6; }
3087 if test "${ac_cv_host+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3090 if test "x$host_alias" = x; then
3091 ac_cv_host=$ac_cv_build
3093 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3094 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3099 $as_echo "$ac_cv_host" >&6; }
3102 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3105 ac_save_IFS=$IFS; IFS='-'
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3115 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3119 $as_echo_n "checking target system type... " >&6; }
3120 if test "${ac_cv_target+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3123 if test "x$target_alias" = x; then
3124 ac_cv_target=$ac_cv_host
3126 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3132 $as_echo "$ac_cv_target" >&6; }
3133 case $ac_cv_target in
3135 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3137 target=$ac_cv_target
3138 ac_save_IFS=$IFS; IFS='-'
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3148 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3151 # The aliases save the names the user supplied, while $host etc.
3152 # will get canonicalized.
3153 test -n "$target_alias" &&
3154 test "$program_prefix$program_suffix$program_transform_name" = \
3156 program_prefix=${target_alias}-
3158 # Determine the noncanonical target name, for directory use.
3159 case ${build_alias} in
3160 "") build_noncanonical=${build} ;;
3161 *) build_noncanonical=${build_alias} ;;
3164 case ${host_alias} in
3165 "") host_noncanonical=${build_noncanonical} ;;
3166 *) host_noncanonical=${host_alias} ;;
3169 case ${target_alias} in
3170 "") target_noncanonical=${host_noncanonical} ;;
3171 *) target_noncanonical=${target_alias} ;;
3177 # Determine the target- and build-specific subdirectories
3179 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3180 # have matching libraries, they should use host libraries: Makefile.tpl
3181 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3182 # However, they still use the build modules, because the corresponding
3183 # host modules (e.g. bison) are only built for the host when bootstrap
3185 # - build_subdir is where we find build modules, and never changes.
3186 # - build_libsubdir is where we find build libraries, and can be overridden.
3188 # Prefix 'build-' so this never conflicts with target_subdir.
3189 build_subdir="build-${build_noncanonical}"
3191 # Check whether --with-build-libsubdir was given.
3192 if test "${with_build_libsubdir+set}" = set; then :
3193 withval=$with_build_libsubdir; build_libsubdir="$withval"
3195 build_libsubdir="$build_subdir"
3198 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3199 if ( test $srcdir = . && test -d gcc ) \
3200 || test -d $srcdir/../host-${host_noncanonical}; then
3201 host_subdir="host-${host_noncanonical}"
3206 target_subdir=${target_noncanonical}
3209 # Set program_transform_name
3210 test "$program_prefix" != NONE &&
3211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3212 # Use a double $ so make ignores it.
3213 test "$program_suffix" != NONE &&
3214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3215 # Double any \ or $.
3216 # By default was `s
,x
,x
', remove it if useless.
3217 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3218 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3221 # Check for bogus environment variables.
3222 # Test if LIBRARY_PATH contains the notation for the current directory
3223 # since this would lead to problems installing/building glibc.
3224 # LIBRARY_PATH contains the current directory if one of the following
3226 # - one of the terminals (":" and ";") is the first or last sign
3227 # - two terminals occur directly after each other
3228 # - the path contains an element with a dot in it
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3230 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3231 case ${LIBRARY_PATH} in
3232 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3233 library_path_setting="contains current directory"
3236 library_path_setting="ok"
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3240 $as_echo "$library_path_setting" >&6; }
3241 if test "$library_path_setting" != "ok"; then
3243 *** LIBRARY_PATH shouldn't contain the current directory when
3244 *** building gcc. Please change the environment variable
3245 *** and run configure again.
" "$LINENO" 5
3248 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3249 # since this would lead to problems installing/building glibc.
3250 # GCC_EXEC_PREFIX contains the current directory if one of the following
3252 # - one of the terminals (":" and ";") is the first or last sign
3253 # - two terminals occur directly after each other
3254 # - the path contains an element with a dot in it
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3256 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3257 case ${GCC_EXEC_PREFIX} in
3258 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3259 gcc_exec_prefix_setting="contains current directory
"
3262 gcc_exec_prefix_setting="ok
"
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3266 $as_echo "$gcc_exec_prefix_setting" >&6; }
3267 if test "$gcc_exec_prefix_setting" != "ok
"; then
3269 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3270 *** building gcc. Please change the environment variable
3271 *** and run configure again." "$LINENO" 5
3278 # Specify the local prefix
3281 # Check whether --with-local-prefix was given.
3282 if test "${with_local_prefix+set}" = set; then :
3283 withval=$with_local_prefix; case "${withval}" in
3284 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3286 *) local_prefix=$with_local_prefix ;;
3291 # Default local prefix if it is empty
3292 if test x$local_prefix = x; then
3293 local_prefix=/usr/local
3296 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3297 # passed in by the toplevel make and thus we'd get different behavior
3298 # depending on where we built the sources.
3299 gcc_gxx_include_dir
=
3300 # Specify the g++ header file directory
3302 # Check whether --with-gxx-include-dir was given.
3303 if test "${with_gxx_include_dir+set}" = set; then :
3304 withval
=$with_gxx_include_dir; case "${withval}" in
3305 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3307 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3312 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3313 if test x
${gcc_gxx_include_dir} = x
; then
3314 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3315 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3317 libstdcxx_incdir
='include/c++/$(version)'
3318 if test x
$host != x
$target; then
3319 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3321 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3325 gcc_gxx_include_dir_add_sysroot
=0
3326 if test "${with_sysroot+set}" = set; then
3327 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3328 if test "${gcc_gxx_without_sysroot}"; then
3329 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3330 gcc_gxx_include_dir_add_sysroot
=1
3335 # Check whether --with-cpp_install_dir was given.
3336 if test "${with_cpp_install_dir+set}" = set; then :
3337 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3338 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3339 elif test x
$withval != xno
; then
3340 cpp_install_dir
=$withval
3345 # We would like to our source tree to be readonly. However when releases or
3346 # pre-releases are generated, the flex/bison generated files as well as the
3347 # various formats of manuals need to be included along with the rest of the
3348 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3352 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3353 # Check whether --enable-generated-files-in-srcdir was given.
3354 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3355 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3357 generated_files_in_srcdir
=no
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3362 $as_echo "$generated_files_in_srcdir" >&6; }
3364 if test "$generated_files_in_srcdir" = "yes"; then
3371 # -------------------
3372 # Find default linker
3373 # -------------------
3377 # Check whether --with-gnu-ld was given.
3378 if test "${with_gnu_ld+set}" = set; then :
3379 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3385 # With pre-defined ld
3387 # Check whether --with-ld was given.
3388 if test "${with_ld+set}" = set; then :
3389 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3392 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3393 if test ! -x "$DEFAULT_LINKER"; then
3394 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3395 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3399 cat >>confdefs.h
<<_ACEOF
3400 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3406 $as_echo_n "checking whether a default linker was specified... " >&6; }
3407 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3408 if test x
"$gnu_ld_flag" = x
"no"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3413 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3420 # With demangler in GNU ld
3422 # Check whether --with-demangler-in-ld was given.
3423 if test "${with_demangler_in_ld+set}" = set; then :
3424 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3430 # ----------------------
3431 # Find default assembler
3432 # ----------------------
3436 # Check whether --with-gnu-as was given.
3437 if test "${with_gnu_as+set}" = set; then :
3438 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3445 # Check whether --with-as was given.
3446 if test "${with_as+set}" = set; then :
3447 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3450 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3451 if test ! -x "$DEFAULT_ASSEMBLER"; then
3452 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3453 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3457 cat >>confdefs.h
<<_ACEOF
3458 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3464 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3465 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3466 if test x
"$gas_flag" = x
"no"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3471 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3482 # If a non-executable a.out is present (e.g. created by GNU as above even if
3483 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3484 # file, even when creating an executable, so an execution test fails.
3485 # Remove possible default executable files to avoid this.
3487 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3488 # Autoconf includes it.
3489 rm -f a.out a.exe b.out
3491 # Find the native compiler
3493 ac_cpp
='$CPP $CPPFLAGS'
3494 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3497 if test -n "$ac_tool_prefix"; then
3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3499 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC
="$CC" # Let the user override the test.
3508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir
=.
3513 for ac_exec_ext
in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3536 if test -z "$ac_cv_prog_CC"; then
3538 # Extract the first word of "gcc", so it can be a program name with args.
3539 set dummy gcc
; ac_word
=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir
=.
3553 for ac_exec_ext
in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555 ac_cv_prog_ac_ct_CC
="gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3574 if test "x$ac_ct_CC" = x
; then
3577 case $cross_compiling:$ac_tool_warned in
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned
=yes ;;
3589 if test -z "$CC"; then
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3592 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC
="$CC" # Let the user override the test.
3601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir
=.
3606 for ac_exec_ext
in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3630 if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632 set dummy cc
; ac_word
=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC
="$CC" # Let the user override the test.
3642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir
=.
3647 for ac_exec_ext
in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650 ac_prog_rejected
=yes
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 if test $ac_prog_rejected = yes; then
3662 # We found a bogon in the path, so make sure we never use it.
3663 set dummy
$ac_cv_prog_CC
3665 if test $# != 0; then
3666 # We chose a different compiler from the bogus one.
3667 # However, it has the same basename, so the bogon will be chosen
3668 # first if we set CC to just the basename; use the full file name.
3670 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog
in cl.exe
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy
$ac_tool_prefix$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_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC
="$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_CC
="$ac_tool_prefix$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$CC" && break
3730 if test -z "$CC"; then
3732 for ac_prog
in cl.exe
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy
$ac_prog; ac_word
=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3741 if test -n "$ac_ct_CC"; then
3742 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir
=.
3749 for ac_exec_ext
in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_ac_ct_CC
="$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3762 if test -n "$ac_ct_CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764 $as_echo "$ac_ct_CC" >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$ac_ct_CC" && break
3774 if test "x$ac_ct_CC" = x
; then
3777 case $cross_compiling:$ac_tool_warned in
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned
=yes ;;
3790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error
"no acceptable C compiler found in \$PATH
3793 See \`config.log' for more details." "$LINENO" 5; }
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3799 for ac_option
in --version -v -V -qversion; do
3800 { { ac_try
="$ac_compiler $ac_option >&5"
3802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3809 if test -s conftest.err; then
3811 ... rest of stderr output deleted ...
3812 10q' conftest.err >conftest.er1
3813 cat conftest.er1 >&5
3814 rm -f conftest.er1 conftest.err
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3831 ac_clean_files_save=$ac_clean_files
3832 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3833 # Try to create an executable without -o first, disregard a.out.
3834 # It will help us diagnose broken compilers, and finding out an intuition
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3837 $as_echo_n "checking for C compiler default output file name... " >&6; }
3838 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3840 # The possible output files:
3841 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3844 for ac_file in $ac_files
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3848 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3853 if { { ac_try="$ac_link_default"
3855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3856 *) ac_try_echo
=$ac_try;;
3858 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_link_default") 2>&5
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3865 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3866 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3867 # so that the user can short-circuit this test for compilers unknown to
3869 for ac_file
in $ac_files ''
3871 test -f "$ac_file" ||
continue
3873 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3876 # We found the default executable, but exeext='' is most
3880 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3882 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884 # We set ac_cv_exeext here because the later test for it is not
3885 # safe: cross compilers may not add the suffix if given an `-o'
3886 # argument, so we may need to know it at that point already.
3887 # Even if this section looks crufty: it has the advantage of
3894 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900 $as_echo "$ac_file" >&6; }
3901 if test -z "$ac_file"; then :
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.
$ac_ext >&5
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 { as_fn_set_status
77
3908 as_fn_error
"C compiler cannot create executables
3909 See \`config.log' for more details." "$LINENO" 5; }; }
3911 ac_exeext
=$ac_cv_exeext
3913 # Check that the compiler produces executables we can run. If not, either
3914 # the compiler is broken, or we cross compile.
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3916 $as_echo_n "checking whether the C compiler works... " >&6; }
3917 # If not cross compiling, check that we can run a simple program.
3918 if test "$cross_compiling" != yes; then
3919 if { ac_try
='./$ac_file'
3920 { { case "(($ac_try" in
3921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3932 if test "$cross_compiling" = maybe; then
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error "cannot run C compiled programs.
3938 If you meant to cross compile
, use \
`--host'.
3939 See \`config.log
' for more details." "$LINENO" 5; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944 $as_echo "yes" >&6; }
3946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3947 ac_clean_files=$ac_clean_files_save
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3951 $as_echo_n "checking whether we are cross compiling... " >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953 $as_echo "$cross_compiling" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3956 $as_echo_n "checking for suffix of executables... " >&6; }
3957 if { { ac_try="$ac_link"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link") 2>&5
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3969 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3970 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3972 for ac_file
in conftest.exe conftest conftest.
*; do
3973 test -f "$ac_file" ||
continue
3975 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3976 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3985 See \`config.log' for more details." "$LINENO" 5; }
3987 rm -f conftest
$ac_cv_exeext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3989 $as_echo "$ac_cv_exeext" >&6; }
3991 rm -f conftest.
$ac_ext
3992 EXEEXT
=$ac_cv_exeext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if test "${ac_cv_objext+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try
="$ac_compile"
4013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error "cannot compute suffix of object files
: cannot compile
4037 See \
`config.log' for more details." "$LINENO" 5; }
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4064 if ac_fn_c_try_compile "$LINENO"; then :
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if test "${ac_cv_prog_cc_g+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4154 if test "$GCC" = yes; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4165 ac_cv_prog_cc_c89=no
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4171 #include <sys/types.h>
4172 #include <sys/stat.h>
4173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4174 struct buf { int x; };
4175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4176 static char *e (p, i)
4182 static char *f (char * (*g) (char **, int), char **p, ...)
4187 s = g (p, va_arg (v,int));
4192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4193 function prototypes and stuff, but not '\xHH' hex character constants.
4194 These don't provoke an error unfortunately, instead are silently treated
4195 as 'x'. The following induces an error, until -std is added to get
4196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4197 array size at least. It's necessary to write '\x00'==0 to get something
4198 that's true only with -std. */
4199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4202 inside strings and character constants. */
4204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4206 int test (int i, double x);
4207 struct s1 {int (*f) (int a);};
4208 struct s2 {int (*f) (double a);};
4209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c89=$ac_arg
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4230 rm -f conftest.$ac_ext
4235 case "x$ac_cv_prog_cc_c89" in
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4243 CC="$CC $ac_cv_prog_cc_c89"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4247 if test "x$ac_cv_prog_cc_c89" != xno; then :
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 if test "x$CC" != xcc; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4259 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4262 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4264 set dummy $CC; ac_cc=`$as_echo "$2" |
4265 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4266 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4267 $as_echo_n "(cached) " >&6
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4280 # Make sure it works both with $CC and with simple cc.
4281 # We do the test twice because some compilers refuse to overwrite an
4282 # existing .o file with -o, though they will create one.
4283 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4285 if { { case "(($ac_try" in
4286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4287 *) ac_try_echo
=$ac_try;;
4289 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; } &&
4295 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_try") 2>&5
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; };
4306 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4307 if test "x$CC" != xcc; then
4308 # Test first that cc exists at all.
4309 if { ac_try='cc -c conftest.$ac_ext >&5'
4310 { { case "(($ac_try" in
4311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4312 *) ac_try_echo
=$ac_try;;
4314 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_try") 2>&5
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; }; then
4320 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4322 if { { case "(($ac_try" in
4323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; } &&
4332 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4334 *) ac_try_echo
=$ac_try;;
4336 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_try") 2>&5
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; };
4346 # cc exists but doesn't like -o.
4347 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4352 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4354 rm -f core conftest
*
4357 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359 $as_echo "yes" >&6; }
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4364 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4368 # expand $ac_aux_dir to an absolute path
4369 am_aux_dir
=`cd $ac_aux_dir && pwd`
4371 # FIXME: we rely on the cache variable name because
4372 # there is no other way.
4374 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4375 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4376 if test "$am_t" != yes; then
4377 # Losing compiler, so override with the script.
4378 # FIXME: It is wrong to rewrite CC.
4379 # But if we don't then we get into trouble of one sort or another.
4380 # A longer-term fix would be to have automake use am__CC in this case,
4381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382 CC
="$am_aux_dir/compile $CC"
4387 ac_cpp
='$CXXCPP $CPPFLAGS'
4388 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4391 if test -z "$CXX"; then
4392 if test -n "$CCC"; then
4395 if test -n "$ac_tool_prefix"; 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_tool_prefix$ac_prog", so it can be a program name with args.
4399 set dummy
$ac_tool_prefix$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_CXX+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -n "$CXX"; then
4406 ac_cv_prog_CXX
="$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_CXX
="$ac_tool_prefix$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 if test -n "$CXX"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4428 $as_echo "$CXX" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$CXX" && break
4438 if test -z "$CXX"; then
4440 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy
$ac_prog; ac_word
=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -n "$ac_ct_CXX"; then
4450 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir
=.
4457 for ac_exec_ext
in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4470 if test -n "$ac_ct_CXX"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4472 $as_echo "$ac_ct_CXX" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$ac_ct_CXX" && break
4482 if test "x$ac_ct_CXX" = x
; then
4485 case $cross_compiling:$ac_tool_warned in
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned
=yes ;;
4497 # Provide some information about the compiler.
4498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4501 for ac_option
in --version -v -V -qversion; do
4502 { { ac_try
="$ac_compiler $ac_option >&5"
4504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4511 if test -s conftest.err; then
4513 ... rest of stderr output deleted ...
4514 10q' conftest.err >conftest.er1
4515 cat conftest.er1 >&5
4516 rm -f conftest.er1 conftest.err
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4523 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4524 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4541 if ac_fn_cxx_try_compile "$LINENO"; then :
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4551 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4552 if test $ac_compiler_gnu = yes; then
4557 ac_test_CXXFLAGS=${CXXFLAGS+set}
4558 ac_save_CXXFLAGS=$CXXFLAGS
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4560 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4561 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4565 ac_cxx_werror_flag=yes
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4579 if ac_fn_cxx_try_compile "$LINENO"; then :
4580 ac_cv_prog_cxx_g=yes
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4594 if ac_fn_cxx_try_compile "$LINENO"; then :
4597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4610 if ac_fn_cxx_try_compile "$LINENO"; then :
4611 ac_cv_prog_cxx_g=yes
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4621 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4622 if test "$ac_test_CXXFLAGS" = set; then
4623 CXXFLAGS=$ac_save_CXXFLAGS
4624 elif test $ac_cv_prog_cxx_g = yes; then
4625 if test "$GXX" = yes; then
4631 if test "$GXX" = yes; then
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$GNATBIND"; then
4655 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 GNATBIND=$ac_cv_prog_GNATBIND
4675 if test -n "$GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4677 $as_echo "$GNATBIND" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATBIND"; then
4686 ac_ct_GNATBIND=$GNATBIND
4687 # Extract the first word of "gnatbind", so it can be a program name with args.
4688 set dummy gnatbind; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$ac_ct_GNATBIND"; then
4695 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4715 if test -n "$ac_ct_GNATBIND"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4717 $as_echo "$ac_ct_GNATBIND" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATBIND" = x; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4732 GNATBIND=$ac_ct_GNATBIND
4735 GNATBIND="$ac_cv_prog_GNATBIND"
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4746 if test -n "$GNATMAKE"; then
4747 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 GNATMAKE=$ac_cv_prog_GNATMAKE
4767 if test -n "$GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4769 $as_echo "$GNATMAKE" >&6; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4777 if test -z "$ac_cv_prog_GNATMAKE"; then
4778 ac_ct_GNATMAKE=$GNATMAKE
4779 # Extract the first word of "gnatmake", so it can be a program name with args.
4780 set dummy gnatmake; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4786 if test -n "$ac_ct_GNATMAKE"; then
4787 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4807 if test -n "$ac_ct_GNATMAKE"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4809 $as_echo "$ac_ct_GNATMAKE" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4815 if test "x$ac_ct_GNATMAKE" = x; then
4818 case $cross_compiling:$ac_tool_warned in
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4824 GNATMAKE=$ac_ct_GNATMAKE
4827 GNATMAKE="$ac_cv_prog_GNATMAKE"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4831 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4832 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4835 cat >conftest.adb <<EOF
4836 procedure conftest is begin null; end conftest;
4838 acx_cv_cc_gcc_supports_ada=no
4839 # There is a bug in old released versions of GCC which causes the
4840 # driver to exit successfully when the appropriate language module
4841 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4842 # Therefore we must check for the error message as well as an
4843 # unsuccessful exit.
4844 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4845 # given a .adb file, but produce no object file. So we must check
4846 # if an object file was really produced to guard against this.
4847 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4848 if test x"$errors" = x && test -f conftest.$ac_objext; then
4849 acx_cv_cc_gcc_supports_ada=yes
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4854 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4856 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4863 # autoconf is lame and doesn't give us any substitution variable for this.
4864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4865 NO_MINUS_C_MINUS_O=yes
4867 OUTPUT_OPTION='-o $@'
4872 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4873 # optimizations to be activated explicitly by the toplevel.
4875 */prev-gcc/xgcc*) ;;
4876 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4877 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4882 # Determine PICFLAG for target gnatlib.
4888 # PIC is the default on some targets or must not be used.
4890 # PIC is the default on this platform
4891 # Common symbols not allowed in MH_DYLIB files
4892 PICFLAG_FOR_TARGET=-fno-common
4895 # PIC is the default.
4898 # PIC is the default for 64-bit PA HP-UX.
4900 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4902 i[34567]86-*-mingw* | x86_64-*-mingw*)
4904 i[34567]86-*-interix[3-9]*)
4905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4906 # Instead, we relocate shared libraries at runtime.
4908 i[34567]86-*-nto-qnx*)
4909 # QNX uses GNU C++, but need to define -shared option too, otherwise
4911 PICFLAG_FOR_TARGET='-fPIC -shared'
4913 i[34567]86-pc-msdosdjgpp*)
4914 # DJGPP does not support shared libraries at all.
4917 # On IA64 HP-UX, PIC is the default but the pic flag
4918 # sets the default TLS model and affects inlining.
4919 PICFLAG_FOR_TARGET=-fPIC
4922 # PIC is the default.
4924 rs6000-ibm-aix* | powerpc-ibm-aix*)
4925 # All AIX code is PIC.
4928 # Some targets support both -fPIC and -fpic, but prefer the latter.
4930 i[34567]86-*-* | x86_64-*-*)
4931 PICFLAG_FOR_TARGET=-fpic
4934 PICFLAG_FOR_TARGET=-fpic
4936 # FIXME: Override -fPIC default in libgcc only?
4937 sh-*-linux* | sh[2346lbe]*-*-linux*)
4938 PICFLAG_FOR_TARGET=-fpic
4940 # FIXME: Simplify to sh*-*-netbsd*?
4941 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4942 sh64-*-netbsd* | sh64l*-*-netbsd*)
4943 PICFLAG_FOR_TARGET=-fpic
4945 # Default to -fPIC unless specified otherwise.
4947 PICFLAG_FOR_TARGET=-fPIC
4951 # If the user explicitly uses -fpic/-fPIC, keep that.
4952 case "${CFLAGS_FOR_TARGET}" in
4954 PICFLAG_FOR_TARGET=-fpic
4957 PICFLAG_FOR_TARGET=-fPIC
4963 # -------------------------
4964 # Check C compiler features
4965 # -------------------------
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4998 # include <limits.h>
5000 # include <assert.h>
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5007 # Broken: fails on valid input.
5010 rm -f conftest.err conftest.$ac_ext
5012 # OK, works on sane cases. Now check whether nonexistent headers
5013 # can be detected and how.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 #include <ac_nonexistent.h>
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019 # Broken: success on invalid input.
5022 # Passes both tests.
5026 rm -f conftest.err conftest.$ac_ext
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.
$ac_ext
5031 if $ac_preproc_ok; then :
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5044 $as_echo "$CPP" >&6; }
5046 for ac_c_preproc_warn_flag
in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5057 # include <limits.h>
5059 # include <assert.h>
5063 if ac_fn_c_try_cpp
"$LINENO"; then :
5066 # Broken: fails on valid input.
5069 rm -f conftest.err conftest.
$ac_ext
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #include <ac_nonexistent.h>
5077 if ac_fn_c_try_cpp
"$LINENO"; then :
5078 # Broken: success on invalid input.
5081 # Passes both tests.
5085 rm -f conftest.err conftest.
$ac_ext
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.err conftest.
$ac_ext
5090 if $ac_preproc_ok; then :
5093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5096 See \`config.log' for more details." "$LINENO" 5; }
5100 ac_cpp
='$CPP $CPPFLAGS'
5101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5107 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5108 if test "${ac_cv_path_GREP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5111 if test -z "$GREP"; then
5112 ac_path_GREP_found
=false
5113 # Loop through the user's path and test for each of PROGNAME-LIST
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5115 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5118 test -z "$as_dir" && as_dir
=.
5119 for ac_prog
in grep ggrep
; do
5120 for ac_exec_ext
in '' $ac_executable_extensions; do
5121 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5122 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5123 # Check for GNU ac_path_GREP and select it if it is found.
5124 # Check for GNU $ac_path_GREP
5125 case `"$ac_path_GREP" --version 2>&1` in
5127 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5130 $as_echo_n 0123456789 >"conftest.in"
5133 cat "conftest.in" "conftest.in" >"conftest.tmp"
5134 mv "conftest.tmp" "conftest.in"
5135 cp "conftest.in" "conftest.nl"
5136 $as_echo 'GREP' >> "conftest.nl"
5137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5138 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5139 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5140 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5141 # Best one so far, save it but keep looking for a better one
5142 ac_cv_path_GREP
="$ac_path_GREP"
5143 ac_path_GREP_max
=$ac_count
5145 # 10*(2^10) chars as input seems more than enough
5146 test $ac_count -gt 10 && break
5148 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5151 $ac_path_GREP_found && break 3
5156 if test -z "$ac_cv_path_GREP"; then
5157 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160 ac_cv_path_GREP
=$GREP
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5165 $as_echo "$ac_cv_path_GREP" >&6; }
5166 GREP
="$ac_cv_path_GREP"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5170 $as_echo_n "checking for egrep... " >&6; }
5171 if test "${ac_cv_path_EGREP+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5174 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5175 then ac_cv_path_EGREP
="$GREP -E"
5177 if test -z "$EGREP"; then
5178 ac_path_EGREP_found
=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5181 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5184 test -z "$as_dir" && as_dir
=.
5185 for ac_prog
in egrep; do
5186 for ac_exec_ext
in '' $ac_executable_extensions; do
5187 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5188 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5189 # Check for GNU ac_path_EGREP and select it if it is found.
5190 # Check for GNU $ac_path_EGREP
5191 case `"$ac_path_EGREP" --version 2>&1` in
5193 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5196 $as_echo_n 0123456789 >"conftest.in"
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'EGREP' >> "conftest.nl"
5203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5204 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5205 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_EGREP
="$ac_path_EGREP"
5209 ac_path_EGREP_max
=$ac_count
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5214 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5217 $ac_path_EGREP_found && break 3
5222 if test -z "$ac_cv_path_EGREP"; then
5223 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226 ac_cv_path_EGREP
=$EGREP
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5232 $as_echo "$ac_cv_path_EGREP" >&6; }
5233 EGREP
="$ac_cv_path_EGREP"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5237 $as_echo_n "checking for ANSI C header files... " >&6; }
5238 if test "${ac_cv_header_stdc+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5256 if ac_fn_c_try_compile
"$LINENO"; then :
5257 ac_cv_header_stdc
=yes
5259 ac_cv_header_stdc
=no
5261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5263 if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "memchr" >/dev
/null
2>&1; then :
5274 ac_cv_header_stdc
=no
5280 if test $ac_cv_header_stdc = yes; then
5281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "free" >/dev
/null
2>&1; then :
5291 ac_cv_header_stdc
=no
5297 if test $ac_cv_header_stdc = yes; then
5298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5299 if test "$cross_compiling" = yes; then :
5302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5306 #if ((' ' & 0x0FF) == 0x020)
5307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5310 # define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5329 if ac_fn_c_try_run
"$LINENO"; then :
5332 ac_cv_header_stdc
=no
5334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5341 $as_echo "$ac_cv_header_stdc" >&6; }
5342 if test $ac_cv_header_stdc = yes; then
5344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5350 inttypes.h stdint.h unistd.h
5352 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5355 eval as_val
=\$
$as_ac_Header
5356 if test "x$as_val" = x
""yes; then :
5357 cat >>confdefs.h
<<_ACEOF
5358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5367 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5368 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5375 if test "$MINIX" = yes; then
5377 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5380 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5383 $as_echo "#define _MINIX 1" >>confdefs.h
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5389 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5390 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5396 # define __EXTENSIONS__ 1
5397 $ac_includes_default
5406 if ac_fn_c_try_compile
"$LINENO"; then :
5407 ac_cv_safe_to_define___extensions__
=yes
5409 ac_cv_safe_to_define___extensions__
=no
5411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5414 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5415 test $ac_cv_safe_to_define___extensions__ = yes &&
5416 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5418 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5420 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5422 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5424 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5428 ac_cpp
='$CPP $CPPFLAGS'
5429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5433 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5434 # On Suns, sometimes $CPP names a directory.
5435 if test -n "$CPP" && test -d "$CPP"; then
5438 if test -z "$CPP"; then
5439 if test "${ac_cv_prog_CPP+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5442 # Double quotes because CPP needs to be expanded
5443 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5446 for ac_c_preproc_warn_flag
in '' yes
5448 # Use a header file that comes with gcc, so configuring glibc
5449 # with a fresh cross-compiler works.
5450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5451 # <limits.h> exists even on freestanding compilers.
5452 # On the NeXT, cc -E runs the code through the compiler's parser,
5453 # not just through cpp. "Syntax error" is here to catch this case.
5454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5457 # include <limits.h>
5459 # include <assert.h>
5463 if ac_fn_c_try_cpp
"$LINENO"; then :
5466 # Broken: fails on valid input.
5469 rm -f conftest.err conftest.
$ac_ext
5471 # OK, works on sane cases. Now check whether nonexistent headers
5472 # can be detected and how.
5473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5477 if ac_fn_c_try_cpp
"$LINENO"; then :
5478 # Broken: success on invalid input.
5481 # Passes both tests.
5485 rm -f conftest.err conftest.
$ac_ext
5488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5489 rm -f conftest.err conftest.
$ac_ext
5490 if $ac_preproc_ok; then :
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5503 $as_echo "$CPP" >&6; }
5505 for ac_c_preproc_warn_flag
in '' yes
5507 # Use a header file that comes with gcc, so configuring glibc
5508 # with a fresh cross-compiler works.
5509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510 # <limits.h> exists even on freestanding compilers.
5511 # On the NeXT, cc -E runs the code through the compiler's parser,
5512 # not just through cpp. "Syntax error" is here to catch this case.
5513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5516 # include <limits.h>
5518 # include <assert.h>
5522 if ac_fn_c_try_cpp
"$LINENO"; then :
5525 # Broken: fails on valid input.
5528 rm -f conftest.err conftest.
$ac_ext
5530 # OK, works on sane cases. Now check whether nonexistent headers
5531 # can be detected and how.
5532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <ac_nonexistent.h>
5536 if ac_fn_c_try_cpp
"$LINENO"; then :
5537 # Broken: success on invalid input.
5540 # Passes both tests.
5544 rm -f conftest.err conftest.
$ac_ext
5547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5548 rm -f conftest.err conftest.
$ac_ext
5549 if $ac_preproc_ok; then :
5552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5554 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5555 See \`config.log' for more details." "$LINENO" 5; }
5559 ac_cpp
='$CPP $CPPFLAGS'
5560 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5565 $as_echo_n "checking for inline... " >&6; }
5566 if test "${ac_cv_c_inline+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5570 for ac_kw
in inline __inline__ __inline
; do
5571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5575 static $ac_kw foo_t static_foo () {return 0; }
5576 $ac_kw foo_t foo () {return 0; }
5580 if ac_fn_c_try_compile
"$LINENO"; then :
5581 ac_cv_c_inline
=$ac_kw
5583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5584 test "$ac_cv_c_inline" != no
&& break
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5589 $as_echo "$ac_cv_c_inline" >&6; }
5591 case $ac_cv_c_inline in
5594 case $ac_cv_c_inline in
5596 *) ac_val
=$ac_cv_c_inline;;
5598 cat >>confdefs.h
<<_ACEOF
5600 #define inline $ac_val
5607 # Check whether --enable-largefile was given.
5608 if test "${enable_largefile+set}" = set; then :
5609 enableval
=$enable_largefile;
5612 if test "$enable_largefile" != no
; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5615 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5616 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5619 ac_cv_sys_largefile_CC
=no
5620 if test "$GCC" != yes; then
5623 # IRIX 6.2 and later do not support large files by default,
5624 # so use the C compiler's -n32 option if that helps.
5625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <sys/types.h>
5628 /* Check that off_t can represent 2**63 - 1 correctly.
5629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5630 since some C++ compilers masquerading as C compilers
5631 incorrectly reject 9223372036854775807. */
5632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5634 && LARGE_OFF_T % 2147483647 == 1)
5644 if ac_fn_c_try_compile
"$LINENO"; then :
5647 rm -f core conftest.err conftest.
$ac_objext
5649 if ac_fn_c_try_compile
"$LINENO"; then :
5650 ac_cv_sys_largefile_CC
=' -n32'; break
5652 rm -f core conftest.err conftest.
$ac_objext
5656 rm -f conftest.
$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5660 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5661 if test "$ac_cv_sys_largefile_CC" != no
; then
5662 CC
=$CC$ac_cv_sys_largefile_CC
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5666 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5667 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 /* Check that off_t can represent 2**63 - 1 correctly.
5675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5676 since some C++ compilers masquerading as C compilers
5677 incorrectly reject 9223372036854775807. */
5678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5680 && LARGE_OFF_T % 2147483647 == 1)
5690 if ac_fn_c_try_compile
"$LINENO"; then :
5691 ac_cv_sys_file_offset_bits
=no
; break
5693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #define _FILE_OFFSET_BITS 64
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5714 if ac_fn_c_try_compile
"$LINENO"; then :
5715 ac_cv_sys_file_offset_bits
=64; break
5717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5718 ac_cv_sys_file_offset_bits
=unknown
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5723 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5724 case $ac_cv_sys_file_offset_bits in #(
5727 cat >>confdefs.h
<<_ACEOF
5728 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5733 if test $ac_cv_sys_file_offset_bits = unknown
; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5735 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5736 if test "${ac_cv_sys_large_files+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 /* Check that off_t can represent 2**63 - 1 correctly.
5744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5745 since some C++ compilers masquerading as C compilers
5746 incorrectly reject 9223372036854775807. */
5747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5749 && LARGE_OFF_T % 2147483647 == 1)
5759 if ac_fn_c_try_compile
"$LINENO"; then :
5760 ac_cv_sys_large_files
=no
; break
5762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #define _LARGE_FILES 1
5766 #include <sys/types.h>
5767 /* Check that off_t can represent 2**63 - 1 correctly.
5768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5769 since some C++ compilers masquerading as C compilers
5770 incorrectly reject 9223372036854775807. */
5771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5773 && LARGE_OFF_T % 2147483647 == 1)
5783 if ac_fn_c_try_compile
"$LINENO"; then :
5784 ac_cv_sys_large_files
=1; break
5786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5787 ac_cv_sys_large_files
=unknown
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5792 $as_echo "$ac_cv_sys_large_files" >&6; }
5793 case $ac_cv_sys_large_files in #(
5796 cat >>confdefs.h
<<_ACEOF
5797 #define _LARGE_FILES $ac_cv_sys_large_files
5806 # sizeof(char) is 1 by definition.
5807 # The cast to long int works around a bug in the HP C Compiler
5808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5810 # This bug is HP SR number 8606223364.
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5812 $as_echo_n "checking size of void *... " >&6; }
5813 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5816 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5819 if test "$ac_cv_type_void_p" = yes; then
5820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 { as_fn_set_status
77
5823 as_fn_error
"cannot compute sizeof (void *)
5824 See \`config.log' for more details." "$LINENO" 5; }; }
5826 ac_cv_sizeof_void_p
=0
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5832 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5836 cat >>confdefs.h
<<_ACEOF
5837 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5841 # The cast to long int works around a bug in the HP C Compiler
5842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5844 # This bug is HP SR number 8606223364.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5846 $as_echo_n "checking size of short... " >&6; }
5847 if test "${ac_cv_sizeof_short+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5850 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5853 if test "$ac_cv_type_short" = yes; then
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856 { as_fn_set_status
77
5857 as_fn_error
"cannot compute sizeof (short)
5858 See \`config.log' for more details." "$LINENO" 5; }; }
5860 ac_cv_sizeof_short
=0
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5866 $as_echo "$ac_cv_sizeof_short" >&6; }
5870 cat >>confdefs.h
<<_ACEOF
5871 #define SIZEOF_SHORT $ac_cv_sizeof_short
5875 # The cast to long int works around a bug in the HP C Compiler
5876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5878 # This bug is HP SR number 8606223364.
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5880 $as_echo_n "checking size of int... " >&6; }
5881 if test "${ac_cv_sizeof_int+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5884 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5887 if test "$ac_cv_type_int" = yes; then
5888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5890 { as_fn_set_status
77
5891 as_fn_error
"cannot compute sizeof (int)
5892 See \`config.log' for more details." "$LINENO" 5; }; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5900 $as_echo "$ac_cv_sizeof_int" >&6; }
5904 cat >>confdefs.h
<<_ACEOF
5905 #define SIZEOF_INT $ac_cv_sizeof_int
5909 # The cast to long int works around a bug in the HP C Compiler
5910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5912 # This bug is HP SR number 8606223364.
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5914 $as_echo_n "checking size of long... " >&6; }
5915 if test "${ac_cv_sizeof_long+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5918 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5921 if test "$ac_cv_type_long" = yes; then
5922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 { as_fn_set_status
77
5925 as_fn_error
"cannot compute sizeof (long)
5926 See \`config.log' for more details." "$LINENO" 5; }; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5934 $as_echo "$ac_cv_sizeof_long" >&6; }
5938 cat >>confdefs.h
<<_ACEOF
5939 #define SIZEOF_LONG $ac_cv_sizeof_long
5943 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5944 if test "x$ac_cv_type_long_long" = x
""yes; then :
5946 cat >>confdefs.h
<<_ACEOF
5947 #define HAVE_LONG_LONG 1
5950 # The cast to long int works around a bug in the HP C Compiler
5951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5953 # This bug is HP SR number 8606223364.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5955 $as_echo_n "checking size of long long... " >&6; }
5956 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5959 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5962 if test "$ac_cv_type_long_long" = yes; then
5963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5965 { as_fn_set_status
77
5966 as_fn_error
"cannot compute sizeof (long long)
5967 See \`config.log' for more details." "$LINENO" 5; }; }
5969 ac_cv_sizeof_long_long
=0
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5975 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5979 cat >>confdefs.h
<<_ACEOF
5980 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5986 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5987 if test "x$ac_cv_type___int64" = x
""yes; then :
5989 cat >>confdefs.h
<<_ACEOF
5990 #define HAVE___INT64 1
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5998 $as_echo_n "checking size of __int64... " >&6; }
5999 if test "${ac_cv_sizeof___int64+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6002 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6005 if test "$ac_cv_type___int64" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status
77
6009 as_fn_error
"cannot compute sizeof (__int64)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6012 ac_cv_sizeof___int64
=0
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6018 $as_echo "$ac_cv_sizeof___int64" >&6; }
6022 cat >>confdefs.h
<<_ACEOF
6023 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6029 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6030 case $ac_cv_c_int8_t in #(
6034 cat >>confdefs.h
<<_ACEOF
6035 #define int8_t $ac_cv_c_int8_t
6040 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6041 case $ac_cv_c_int16_t in #(
6045 cat >>confdefs.h
<<_ACEOF
6046 #define int16_t $ac_cv_c_int16_t
6051 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6052 case $ac_cv_c_int32_t in #(
6056 cat >>confdefs.h
<<_ACEOF
6057 #define int32_t $ac_cv_c_int32_t
6062 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6063 case $ac_cv_c_int64_t in #(
6067 cat >>confdefs.h
<<_ACEOF
6068 #define int64_t $ac_cv_c_int64_t
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6075 $as_echo_n "checking for long long int... " >&6; }
6076 if test "${ac_cv_type_long_long_int+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6082 /* For now, do not test the preprocessor; as of 2007 there are too many
6083 implementations with broken preprocessors. Perhaps this can
6084 be revisited in 2012. In the meantime, code should not expect
6085 #if to work with literals wider than 32 bits. */
6086 /* Test literals. */
6087 long long int ll = 9223372036854775807ll;
6088 long long int nll = -9223372036854775807LL;
6089 unsigned long long int ull = 18446744073709551615ULL;
6090 /* Test constant expressions. */
6091 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6093 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6099 /* Test availability of runtime routines for shift and division. */
6100 long long int llmax = 9223372036854775807ll;
6101 unsigned long long int ullmax = 18446744073709551615ull;
6102 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6103 | (llmax / ll) | (llmax % ll)
6104 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6105 | (ullmax / ull) | (ullmax % ull));
6111 if ac_fn_c_try_link
"$LINENO"; then :
6112 if test "$cross_compiling" = yes; then :
6113 ac_cv_type_long_long_int
=yes
6115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6120 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6121 # define LLONG_MAX (HALF - 1 + HALF)
6126 long long int n = 1;
6130 long long int m = n << i;
6133 if (LLONG_MAX / 2 < m)
6141 if ac_fn_c_try_run
"$LINENO"; then :
6142 ac_cv_type_long_long_int
=yes
6144 ac_cv_type_long_long_int
=no
6146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6151 ac_cv_type_long_long_int
=no
6153 rm -f core conftest.err conftest.
$ac_objext \
6154 conftest
$ac_exeext conftest.
$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6157 $as_echo "$ac_cv_type_long_long_int" >&6; }
6158 if test $ac_cv_type_long_long_int = yes; then
6160 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6166 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6167 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6169 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6172 test $ac_cv_type_long_long_int = yes \
6173 && ac_type
='long long int' \
6174 || ac_type
='long int'
6176 cat >>confdefs.h
<<_ACEOF
6177 #define intmax_t $ac_type
6184 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6185 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6187 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6190 for ac_type
in 'int' 'long int' 'long long int'; do
6191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 $ac_includes_default
6197 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6204 if ac_fn_c_try_compile
"$LINENO"; then :
6206 cat >>confdefs.h
<<_ACEOF
6207 #define intptr_t $ac_type
6212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6213 test -z "$ac_type" && break
6218 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6219 case $ac_cv_c_uint8_t in #(
6223 $as_echo "#define _UINT8_T 1" >>confdefs.h
6226 cat >>confdefs.h
<<_ACEOF
6227 #define uint8_t $ac_cv_c_uint8_t
6232 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6233 case $ac_cv_c_uint16_t in #(
6238 cat >>confdefs.h
<<_ACEOF
6239 #define uint16_t $ac_cv_c_uint16_t
6244 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6245 case $ac_cv_c_uint32_t in #(
6249 $as_echo "#define _UINT32_T 1" >>confdefs.h
6252 cat >>confdefs.h
<<_ACEOF
6253 #define uint32_t $ac_cv_c_uint32_t
6258 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6259 case $ac_cv_c_uint64_t in #(
6263 $as_echo "#define _UINT64_T 1" >>confdefs.h
6266 cat >>confdefs.h
<<_ACEOF
6267 #define uint64_t $ac_cv_c_uint64_t
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6274 $as_echo_n "checking for unsigned long long int... " >&6; }
6275 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6281 /* For now, do not test the preprocessor; as of 2007 there are too many
6282 implementations with broken preprocessors. Perhaps this can
6283 be revisited in 2012. In the meantime, code should not expect
6284 #if to work with literals wider than 32 bits. */
6285 /* Test literals. */
6286 long long int ll = 9223372036854775807ll;
6287 long long int nll = -9223372036854775807LL;
6288 unsigned long long int ull = 18446744073709551615ULL;
6289 /* Test constant expressions. */
6290 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6292 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6298 /* Test availability of runtime routines for shift and division. */
6299 long long int llmax = 9223372036854775807ll;
6300 unsigned long long int ullmax = 18446744073709551615ull;
6301 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6302 | (llmax / ll) | (llmax % ll)
6303 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6304 | (ullmax / ull) | (ullmax % ull));
6310 if ac_fn_c_try_link
"$LINENO"; then :
6311 ac_cv_type_unsigned_long_long_int
=yes
6313 ac_cv_type_unsigned_long_long_int
=no
6315 rm -f core conftest.err conftest.
$ac_objext \
6316 conftest
$ac_exeext conftest.
$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6319 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6320 if test $ac_cv_type_unsigned_long_long_int = yes; then
6322 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6328 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6329 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6331 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6334 test $ac_cv_type_unsigned_long_long_int = yes \
6335 && ac_type
='unsigned long long int' \
6336 || ac_type
='unsigned long int'
6338 cat >>confdefs.h
<<_ACEOF
6339 #define uintmax_t $ac_type
6346 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6347 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6349 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6352 for ac_type
in 'unsigned int' 'unsigned long int' \
6353 'unsigned long long int'; do
6354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 $ac_includes_default
6360 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6367 if ac_fn_c_try_compile
"$LINENO"; then :
6369 cat >>confdefs.h
<<_ACEOF
6370 #define uintptr_t $ac_type
6375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6376 test -z "$ac_type" && break
6394 # ---------------------
6395 # Warnings and checking
6396 # ---------------------
6398 # Check $CC warning features (if it's GCC).
6399 # We want to use -pedantic, but we don't want warnings about
6402 # * overlong strings
6403 # * C++11 narrowing conversions in { }
6404 # So, we only use -pedantic if we can disable those warnings.
6407 save_CFLAGS
="$CFLAGS"
6408 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6409 # Do the check with the no- prefix removed since gcc silently
6410 # accepts any -Wno-* option on purpose
6411 case $real_option in
6412 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6413 *) option
=$real_option ;;
6415 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6418 $as_echo_n "checking whether $CC supports $option... " >&6; }
6419 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6420 $as_echo_n "(cached) " >&6
6423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6434 if ac_fn_c_try_compile
"$LINENO"; then :
6435 eval "$as_acx_Woption=yes"
6437 eval "$as_acx_Woption=no"
6439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6442 eval ac_res
=\$
$as_acx_Woption
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6446 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6449 CFLAGS
="$save_CFLAGS"
6452 save_CFLAGS
="$CFLAGS"
6453 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6454 # Do the check with the no- prefix removed since gcc silently
6455 # accepts any -Wno-* option on purpose
6456 case $real_option in
6457 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6458 *) option
=$real_option ;;
6460 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6463 $as_echo_n "checking whether $CC supports $option... " >&6; }
6464 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6465 $as_echo_n "(cached) " >&6
6468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6479 if ac_fn_c_try_compile
"$LINENO"; then :
6480 eval "$as_acx_Woption=yes"
6482 eval "$as_acx_Woption=no"
6484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6487 eval ac_res
=\$
$as_acx_Woption
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6489 $as_echo "$ac_res" >&6; }
6490 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6491 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6494 CFLAGS
="$save_CFLAGS"
6497 save_CFLAGS
="$CFLAGS"
6498 for real_option
in -Wmissing-format-attribute; do
6499 # Do the check with the no- prefix removed since gcc silently
6500 # accepts any -Wno-* option on purpose
6501 case $real_option in
6502 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6503 *) option
=$real_option ;;
6505 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6508 $as_echo_n "checking whether $CC supports $option... " >&6; }
6509 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6510 $as_echo_n "(cached) " >&6
6513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6524 if ac_fn_c_try_compile
"$LINENO"; then :
6525 eval "$as_acx_Woption=yes"
6527 eval "$as_acx_Woption=no"
6529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6532 eval ac_res
=\$
$as_acx_Woption
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6534 $as_echo "$ac_res" >&6; }
6535 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6536 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6539 CFLAGS
="$save_CFLAGS"
6542 save_CFLAGS
="$CFLAGS"
6543 for real_option
in -Wold-style-definition -Wc++-compat; do
6544 # Do the check with the no- prefix removed since gcc silently
6545 # accepts any -Wno-* option on purpose
6546 case $real_option in
6547 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6548 *) option
=$real_option ;;
6550 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6553 $as_echo_n "checking whether $CC supports $option... " >&6; }
6554 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6555 $as_echo_n "(cached) " >&6
6558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6569 if ac_fn_c_try_compile
"$LINENO"; then :
6570 eval "$as_acx_Woption=yes"
6572 eval "$as_acx_Woption=no"
6574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6577 eval ac_res
=\$
$as_acx_Woption
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6579 $as_echo "$ac_res" >&6; }
6580 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6581 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6584 CFLAGS
="$save_CFLAGS"
6586 # Do the check with the no- prefix removed from the warning options
6587 # since gcc silently accepts any -Wno-* option on purpose
6588 if test "$GCC" = yes; then :
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6590 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6591 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6594 save_CFLAGS
="$CFLAGS"
6595 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6607 if ac_fn_c_try_compile
"$LINENO"; then :
6608 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6610 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6613 CFLAGS
="$save_CFLAGS"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6616 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6617 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6618 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6623 # Check whether --enable-werror-always was given.
6624 if test "${enable_werror_always+set}" = set; then :
6625 enableval
=$enable_werror_always;
6627 enable_werror_always
=no
6630 if test $enable_werror_always = yes; then :
6631 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6636 # The above macros do nothing if the compiler is not GCC. However, the
6637 # Makefile has more goo to add other flags, so these variables are used
6638 # to enable warnings only for GCC.
6641 if test "x$GCC" = "xyes"; then
6642 warn_cflags
='$(GCC_WARN_CFLAGS)'
6643 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6648 # Disable exceptions and RTTI if building with g++
6650 save_CFLAGS
="$CFLAGS"
6651 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6652 # Do the check with the no- prefix removed since gcc silently
6653 # accepts any -Wno-* option on purpose
6654 case $real_option in
6655 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6656 *) option
=$real_option ;;
6658 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6661 $as_echo_n "checking whether $CC supports $option... " >&6; }
6662 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6663 $as_echo_n "(cached) " >&6
6666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6677 if ac_fn_c_try_compile
"$LINENO"; then :
6678 eval "$as_acx_Woption=yes"
6680 eval "$as_acx_Woption=no"
6682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6685 eval ac_res
=\$
$as_acx_Woption
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6689 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6692 CFLAGS
="$save_CFLAGS"
6695 # Enable expensive internal checks
6697 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6701 # Check whether --enable-checking was given.
6702 if test "${enable_checking+set}" = set; then :
6703 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6706 # Determine the default checks.
6707 if test x
$is_release = x
; then
6708 ac_checking_flags
=yes
6710 ac_checking_flags
=release
6714 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6715 for check
in release
$ac_checking_flags
6718 # these set all the flags to specific states
6719 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6720 ac_fold_checking
= ; ac_gc_checking
=1 ;
6721 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6722 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6723 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6724 ac_types_checking
=1 ;;
6725 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6726 ac_fold_checking
= ; ac_gc_checking
= ;
6727 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6728 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6729 ac_tree_checking
= ; ac_valgrind_checking
= ;
6730 ac_types_checking
= ;;
6731 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6732 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6733 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6734 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6735 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6736 ac_types_checking
=1 ;;
6737 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6738 ac_fold_checking
= ; ac_gc_checking
= ;
6739 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6740 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6741 ac_tree_checking
= ; ac_valgrind_checking
= ;
6742 ac_types_checking
= ;;
6743 # these enable particular checks
6744 assert
) ac_assert_checking
=1 ;;
6745 df
) ac_df_checking
=1 ;;
6746 fold) ac_fold_checking
=1 ;;
6747 gc
) ac_gc_checking
=1 ;;
6748 gcac
) ac_gc_always_collect
=1 ;;
6749 gimple
) ac_gimple_checking
=1 ;;
6750 misc
) ac_checking
=1 ;;
6751 rtl
) ac_rtl_checking
=1 ;;
6752 rtlflag
) ac_rtlflag_checking
=1 ;;
6753 runtime
) ac_runtime_checking
=1 ;;
6754 tree
) ac_tree_checking
=1 ;;
6755 types
) ac_types_checking
=1 ;;
6756 valgrind
) ac_valgrind_checking
=1 ;;
6757 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6763 if test x
$ac_checking != x
; then
6765 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6767 nocommon_flag
=-fno-common
6770 if test x
$ac_df_checking != x
; then
6772 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6775 if test x
$ac_assert_checking != x
; then
6777 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6780 if test x
$ac_gimple_checking != x
; then
6782 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6786 if test x
$ac_runtime_checking != x
; then
6788 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6791 if test x
$ac_tree_checking != x
; then
6793 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6795 TREEBROWSER
=tree-browser.o
6798 if test x
$ac_types_checking != x
; then
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6805 if test x
$ac_rtl_checking != x
; then
6807 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6810 if test x
$ac_rtlflag_checking != x
; then
6812 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6815 if test x
$ac_gc_checking != x
; then
6817 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6820 if test x
$ac_gc_always_collect != x
; then
6822 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6825 if test x
$ac_fold_checking != x
; then
6827 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6830 valgrind_path_defines
=
6833 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6842 if test x
$ac_valgrind_checking != x
; then
6843 # It is certainly possible that there's valgrind but no valgrind.h.
6844 # GCC relies on making annotations so we must have both.
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6846 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <valgrind/memcheck.h>
6850 #ifndef VALGRIND_DISCARD
6851 #error VALGRIND_DISCARD not defined
6854 if ac_fn_c_try_cpp
"$LINENO"; then :
6855 gcc_cv_header_valgrind_memcheck_h
=yes
6857 gcc_cv_header_valgrind_memcheck_h
=no
6859 rm -f conftest.err conftest.
$ac_ext
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6861 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6863 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <memcheck.h>
6867 #ifndef VALGRIND_DISCARD
6868 #error VALGRIND_DISCARD not defined
6871 if ac_fn_c_try_cpp
"$LINENO"; then :
6872 gcc_cv_header_memcheck_h
=yes
6874 gcc_cv_header_memcheck_h
=no
6876 rm -f conftest.err conftest.
$ac_ext
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6878 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6880 # Prepare PATH_SEPARATOR.
6881 # The user is always right.
6882 if test "${PATH_SEPARATOR+set}" != set; then
6883 echo "#! /bin/sh" >conf$$.sh
6884 echo "exit 0" >>conf$$.sh
6886 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6894 # Find out how to test for executable files. Don't use a zero-byte file,
6895 # as systems may use methods other than mode bits to determine executability.
6896 cat >conf$$.
file <<_ASEOF
6900 chmod +x conf$$.
file
6901 if test -x conf$$.
file >/dev
/null
2>&1; then
6902 ac_executable_p
="test -x"
6904 ac_executable_p
="test -f"
6908 # Extract the first word of "valgrind", so it can be a program name with args.
6909 set dummy valgrind
; ac_word
=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6913 $as_echo_n "(cached) " >&6
6915 case "$valgrind_path" in
6917 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6920 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6921 for ac_dir
in $PATH; do
6923 test -z "$ac_dir" && ac_dir
=.
6924 for ac_exec_ext
in '' $ac_executable_extensions; do
6925 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6926 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6927 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6937 valgrind_path
="$ac_cv_path_valgrind_path"
6938 if test -n "$valgrind_path"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6940 $as_echo "$valgrind_path" >&6; }
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$valgrind_path" = "x" \
6947 ||
(test $have_valgrind_h = no \
6948 && test $gcc_cv_header_memcheck_h = no \
6949 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6950 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6952 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6953 valgrind_command
="$valgrind_path -q"
6955 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6957 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6959 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6962 if test $gcc_cv_header_memcheck_h = yes; then
6964 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6971 # Enable code coverage collection
6972 # Check whether --enable-coverage was given.
6973 if test "${enable_coverage+set}" = set; then :
6974 enableval
=$enable_coverage; case "${enableval}" in
6976 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6979 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6982 # a.k.a. --disable-coverage
6986 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6995 # Check whether --enable-gather-detailed-mem-stats was given.
6996 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6997 enableval
=$enable_gather_detailed_mem_stats;
6999 enable_gather_detailed_mem_stats
=no
7002 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7004 cat >>confdefs.h
<<_ACEOF
7005 #define GATHER_STATISTICS $gather_stats
7009 # -------------------------------
7010 # Miscenalleous configure options
7011 # -------------------------------
7015 # Check whether --with-stabs was given.
7016 if test "${with_stabs+set}" = set; then :
7017 withval
=$with_stabs; stabs
="$with_stabs"
7023 # Determine whether or not multilibs are enabled.
7024 # Check whether --enable-multilib was given.
7025 if test "${enable_multilib+set}" = set; then :
7026 enableval
=$enable_multilib;
7033 # Determine whether or not multiarch is enabled.
7034 # Check whether --enable-multiarch was given.
7035 if test "${enable_multiarch+set}" = set; then :
7036 enableval
=$enable_multiarch; case "${enableval}" in
7037 yes|no|auto
) enable_multiarch
=$enableval;;
7038 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7041 enable_multiarch
=auto
7044 if test x
${enable_multiarch} = xauto
; then
7045 if test x
${with_native_system_header_dir} != x
; then
7046 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7049 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7050 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7055 $as_echo_n "checking for multiarch configuration... " >&6; }
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7058 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7060 # needed for setting the multiarch name for soft-float/hard-float ABIs
7064 # Enable __cxa_atexit for C++.
7065 # Check whether --enable-__cxa_atexit was given.
7066 if test "${enable___cxa_atexit+set}" = set; then :
7067 enableval
=$enable___cxa_atexit;
7071 # Enable C extension for decimal float if target supports it.
7073 # Check whether --enable-decimal-float was given.
7074 if test "${enable_decimal_float+set}" = set; then :
7075 enableval
=$enable_decimal_float;
7076 case $enable_decimal_float in
7077 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7078 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7079 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7085 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7087 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7088 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7089 enable_decimal_float
=yes
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7093 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7094 enable_decimal_float
=no
7101 # x86's use BID format instead of DPD
7102 case x
$enable_decimal_float in
7105 i?
86*-*-* | x86_64
*-*-*)
7106 enable_decimal_float
=bid
7109 enable_decimal_float
=dpd
7112 default_decimal_float
=$enable_decimal_float
7115 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7116 # dependency on libdecnumber.
7117 default_decimal_float
=dpd
7124 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7126 cat >>confdefs.h
<<_ACEOF
7127 #define ENABLE_DECIMAL_FLOAT $dfp
7131 # Use default_decimal_float for dependency.
7132 enable_decimal_float
=$default_decimal_float
7134 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7136 cat >>confdefs.h
<<_ACEOF
7137 #define ENABLE_DECIMAL_BID_FORMAT $bid
7141 # Enable C extension for fixed-point arithmetic.
7142 # Check whether --enable-fixed-point was given.
7143 if test "${enable_fixed_point+set}" = set; then :
7144 enableval
=$enable_fixed_point;
7149 enable_fixed_point
=yes
7153 enable_fixed_point
=yes
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7157 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7158 enable_fixed_point
=no
7166 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7168 cat >>confdefs.h
<<_ACEOF
7169 #define ENABLE_FIXED_POINT $fixedpoint
7174 # Pass with no value to take the default
7175 # Pass with a value to specify a thread package
7176 # Check whether --enable-threads was given.
7177 if test "${enable_threads+set}" = set; then :
7178 enableval
=$enable_threads;
7184 # Check whether --enable-tls was given.
7185 if test "${enable_tls+set}" = set; then :
7186 enableval
=$enable_tls;
7189 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7190 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7198 # Check whether --enable-objc-gc was given.
7199 if test "${enable_objc_gc+set}" = set; then :
7200 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7211 # Check whether --with-dwarf2 was given.
7212 if test "${with_dwarf2+set}" = set; then :
7213 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7219 # Check whether --enable-shared was given.
7220 if test "${enable_shared+set}" = set; then :
7221 enableval
=$enable_shared;
7222 case $enable_shared in
7226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7227 for pkg
in $enableval; do
7228 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7243 # Check whether --with-native-system-header-dir was given.
7244 if test "${with_native_system_header_dir+set}" = set; then :
7245 withval
=$with_native_system_header_dir;
7246 case ${with_native_system_header_dir} in
7247 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7248 /* |
[A-Za-z
]:[\\/]*) ;;
7249 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7251 configured_native_system_header_dir
="${withval}"
7254 configured_native_system_header_dir
=
7259 # Check whether --with-build-sysroot was given.
7260 if test "${with_build_sysroot+set}" = set; then :
7261 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7262 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7265 SYSROOT_CFLAGS_FOR_TARGET
=
7270 if test "x$prefix" = xNONE
; then
7271 test_prefix
=/usr
/local
7275 if test "x$exec_prefix" = xNONE
; then
7276 test_exec_prefix
=$test_prefix
7278 test_exec_prefix
=$exec_prefix
7282 # Check whether --with-sysroot was given.
7283 if test "${with_sysroot+set}" = set; then :
7284 withval
=$with_sysroot;
7285 case ${with_sysroot} in
7286 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7287 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7290 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7291 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7293 case ${TARGET_SYSTEM_ROOT} in
7294 "${test_prefix}"|
"${test_prefix}/"*|\
7295 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7296 '${prefix}'|
'${prefix}/'*|\
7297 '${exec_prefix}'|
'${exec_prefix}/'*)
7298 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7299 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7306 TARGET_SYSTEM_ROOT_DEFINE
=
7307 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7316 # Check whether --with-specs was given.
7317 if test "${with_specs+set}" = set; then :
7318 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7328 # Check whether --with-pkgversion was given.
7329 if test "${with_pkgversion+set}" = set; then :
7330 withval
=$with_pkgversion; case "$withval" in
7331 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7333 *) PKGVERSION
="($withval) " ;;
7344 # Check whether --with-bugurl was given.
7345 if test "${with_bugurl+set}" = set; then :
7346 withval
=$with_bugurl; case "$withval" in
7347 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7350 *) BUGURL
="$withval"
7354 BUGURL
="http://gcc.gnu.org/bugs.html"
7364 REPORT_BUGS_TO
="<$BUGURL>"
7365 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7372 # Sanity check enable_languages in case someone does not run the toplevel
7373 # configure # script.
7374 # Check whether --enable-languages was given.
7375 if test "${enable_languages+set}" = set; then :
7376 enableval
=$enable_languages; case ,${enable_languages}, in
7378 # go safe -- we cannot be much sure without the toplevel
7380 # analysis of which target libs are present and usable
7384 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7389 enable_languages
=c
,${enable_languages}
7398 # Check whether --with-multilib-list was given.
7399 if test "${with_multilib_list+set}" = set; then :
7400 withval
=$with_multilib_list; :
7402 with_multilib_list
=default
7406 # -------------------------
7407 # Checks for other programs
7408 # -------------------------
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7413 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7414 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7415 $as_echo_n "(cached) " >&6
7417 cat >conftest.
make <<\_ACEOF
7420 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7425 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7427 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7431 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433 $as_echo "yes" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 SET_MAKE
="MAKE=${MAKE-make}"
7442 # Find some useful tools
7443 for ac_prog
in gawk mawk nawk
awk
7445 # Extract the first word of "$ac_prog", so it can be a program name with args.
7446 set dummy
$ac_prog; ac_word
=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_AWK+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7452 if test -n "$AWK"; then
7453 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir
=.
7460 for ac_exec_ext
in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_AWK
="$ac_prog"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 if test -n "$AWK"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7475 $as_echo "$AWK" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7482 test -n "$AWK" && break
7485 # We need awk to create options.c and options.h.
7486 # Bail out if it's missing.
7488 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7492 $as_echo_n "checking whether ln -s works... " >&6; }
7493 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7496 rm -f conftestdata_t
7497 echo >conftestdata_f
7498 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7500 gcc_cv_prog_LN_S
="ln -s"
7502 if ln conftestdata_f conftestdata_t
2>/dev
/null
7506 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7508 gcc_cv_prog_LN_S
="cp -p"
7514 rm -f conftestdata_f conftestdata_t
7517 LN_S
="$gcc_cv_prog_LN_S"
7518 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7520 $as_echo "yes" >&6; }
7522 if test "$gcc_cv_prog_LN_S" = "ln"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7524 $as_echo "no, using ln" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7527 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7532 $as_echo_n "checking whether ln works... " >&6; }
7533 if test "${acx_cv_prog_LN+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7536 rm -f conftestdata_t
7537 echo >conftestdata_f
7538 if ln conftestdata_f conftestdata_t
2>/dev
/null
7544 rm -f conftestdata_f conftestdata_t
7547 if test $acx_cv_prog_LN = no
; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7550 $as_echo "no, using $LN" >&6; }
7552 LN
="$acx_cv_prog_LN"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554 $as_echo "yes" >&6; }
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7559 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7565 if test -n "$RANLIB"; then
7566 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir
=.
7573 for ac_exec_ext
in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 RANLIB
=$ac_cv_prog_RANLIB
7586 if test -n "$RANLIB"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7588 $as_echo "$RANLIB" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 if test -z "$ac_cv_prog_RANLIB"; then
7597 ac_ct_RANLIB
=$RANLIB
7598 # Extract the first word of "ranlib", so it can be a program name with args.
7599 set dummy ranlib
; ac_word
=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7605 if test -n "$ac_ct_RANLIB"; then
7606 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir
=.
7613 for ac_exec_ext
in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7626 if test -n "$ac_ct_RANLIB"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7628 $as_echo "$ac_ct_RANLIB" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7634 if test "x$ac_ct_RANLIB" = x
; then
7637 case $cross_compiling:$ac_tool_warned in
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned
=yes ;;
7643 RANLIB
=$ac_ct_RANLIB
7646 RANLIB
="$ac_cv_prog_RANLIB"
7652 # Find a good install program. We prefer a C program (faster),
7653 # so one script is as good as another. But avoid the broken or
7654 # incompatible versions:
7655 # SysV /etc/install, /usr/sbin/install
7656 # SunOS /usr/etc/install
7657 # IRIX /sbin/install
7659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7661 # ./install, which can be erroneously created by make from ./install.sh.
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7663 $as_echo_n "checking for a BSD compatible install... " >&6; }
7664 if test -z "$INSTALL"; then
7665 if test "${ac_cv_path_install+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7668 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7669 for ac_dir
in $PATH; do
7670 # Account for people who put trailing slashes in PATH elements.
7672 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7674 # OSF1 and SCO ODT 3.0 have their own names for install.
7675 for ac_prog
in ginstall scoinst
install; do
7676 if test -f $ac_dir/$ac_prog; then
7677 if test $ac_prog = install &&
7678 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7679 # AIX install. It has an incompatible calling convention.
7680 # OSF/1 installbsd also uses dspmsg, but is usable.
7683 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL
="$ac_cv_path_install"
7697 # As a last resort, use the slow shell script. We don't cache a
7698 # path for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the path is relative.
7701 INSTALL
="$ac_install_sh"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7705 $as_echo "$INSTALL" >&6; }
7707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708 # It thinks the first close brace ends the variable substitution.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7711 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7714 # See if cmp has --ignore-initial.
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7716 $as_echo_n "checking for cmp's capabilities... " >&6; }
7717 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7722 gcc_cv_prog_cmp_skip
=slowcompare
7723 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7724 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7727 gcc_cv_prog_cmp_skip
=gnucompare
7730 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7731 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7732 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7735 gcc_cv_prog_cmp_skip
=fastcompare
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7743 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7744 make_compare_target
=$gcc_cv_prog_cmp_skip
7748 # See if we have the mktemp command.
7749 # Extract the first word of "mktemp", so it can be a program name with args.
7750 set dummy mktemp
; 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_have_mktemp_command+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7756 if test -n "$have_mktemp_command"; then
7757 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # 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
7766 ac_cv_prog_have_mktemp_command
="yes"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7777 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7778 if test -n "$have_mktemp_command"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7780 $as_echo "$have_mktemp_command" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 # See if makeinfo has been installed and is modern enough
7789 # that we can use it.
7791 # Extract the first word of "makeinfo", so it can be a program name with args.
7792 set dummy makeinfo
; ac_word
=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7798 if test -n "$MAKEINFO"; then
7799 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir
=.
7806 for ac_exec_ext
in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_MAKEINFO
="makeinfo"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 MAKEINFO
=$ac_cv_prog_MAKEINFO
7819 if test -n "$MAKEINFO"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7821 $as_echo "$MAKEINFO" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 if test -n "$MAKEINFO"; then
7829 # Found it, now check the version.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7831 $as_echo_n "checking for modern makeinfo... " >&6; }
7832 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7835 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7836 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7838 case $ac_prog_version in
7839 '') gcc_cv_prog_makeinfo_modern
=no
;;
7840 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7841 *) gcc_cv_prog_makeinfo_modern
=no
;;
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7846 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7848 gcc_cv_prog_makeinfo_modern
=no
7850 if test $gcc_cv_prog_makeinfo_modern = no
; then
7851 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7854 if test $gcc_cv_prog_makeinfo_modern = no
; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7856 *** Makeinfo is missing or too old.
7857 *** Info documentation will not be built." >&5
7858 $as_echo "$as_me: WARNING:
7859 *** Makeinfo is missing or too old.
7860 *** Info documentation will not be built." >&2;}
7867 # Is pod2man recent enough to regenerate manpages?
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7869 $as_echo_n "checking for recent Pod::Man... " >&6; }
7870 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872 $as_echo "yes" >&6; }
7873 GENERATED_MANPAGES
=generated-manpages
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7881 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy
$ac_prog; ac_word
=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_FLEX+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7893 if test -n "$FLEX"; then
7894 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7900 test -z "$as_dir" && as_dir
=.
7901 for ac_exec_ext
in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_FLEX
="$ac_prog"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 FLEX
=$ac_cv_prog_FLEX
7914 if test -n "$FLEX"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7916 $as_echo "$FLEX" >&6; }
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7923 test -n "$FLEX" && break
7925 test -n "$FLEX" || FLEX
="$MISSING flex"
7929 for ac_prog
in bison
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy
$ac_prog; ac_word
=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_BISON+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7938 if test -n "$BISON"; then
7939 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir
=.
7946 for ac_exec_ext
in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_BISON
="$ac_prog"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 BISON
=$ac_cv_prog_BISON
7959 if test -n "$BISON"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7961 $as_echo "$BISON" >&6; }
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7968 test -n "$BISON" && break
7970 test -n "$BISON" || BISON
="$MISSING bison"
7973 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7974 # check for build == host before using them.
7977 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7978 && test -d ..
/binutils
; then
7979 NM
='${objdir}/../binutils/nm-new'
7981 # Extract the first word of "nm", so it can be a program name with args.
7982 set dummy nm
; ac_word
=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_NM+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7988 if test -n "$NM"; then
7989 ac_cv_prog_NM
="$NM" # Let the user override the test.
7991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7995 test -z "$as_dir" && as_dir
=.
7996 for ac_exec_ext
in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8010 if test -n "$NM"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8012 $as_echo "$NM" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8022 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8023 && test -d ..
/binutils
; then
8024 AR
='${objdir}/../binutils/ar'
8026 # Extract the first word of "ar", so it can be a program name with args.
8027 set dummy
ar; ac_word
=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_prog_AR+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8033 if test -n "$AR"; then
8034 ac_cv_prog_AR
="$AR" # Let the user override the test.
8036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8040 test -z "$as_dir" && as_dir
=.
8041 for ac_exec_ext
in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8055 if test -n "$AR"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8057 $as_echo "$AR" >&6; }
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8067 # --------------------
8068 # Checks for C headers
8069 # --------------------
8071 # Need to reject headers which give warnings, so that the -Werror bootstrap
8072 # works later. *sigh* This needs to come before all header checks.
8074 ac_c_preproc_warn_flag
=yes
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8077 $as_echo_n "checking for ANSI C header files... " >&6; }
8078 if test "${ac_cv_header_stdc+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8096 if ac_fn_c_try_compile
"$LINENO"; then :
8097 ac_cv_header_stdc
=yes
8099 ac_cv_header_stdc
=no
8101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8103 if test $ac_cv_header_stdc = yes; then
8104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 $EGREP "memchr" >/dev
/null
2>&1; then :
8114 ac_cv_header_stdc
=no
8120 if test $ac_cv_header_stdc = yes; then
8121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8128 $EGREP "free" >/dev
/null
2>&1; then :
8131 ac_cv_header_stdc
=no
8137 if test $ac_cv_header_stdc = yes; then
8138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8139 if test "$cross_compiling" = yes; then :
8142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8146 #if ((' ' & 0x0FF) == 0x020)
8147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8150 # define ISLOWER(c) \
8151 (('a' <= (c) && (c) <= 'i') \
8152 || ('j' <= (c) && (c) <= 'r') \
8153 || ('s' <= (c) && (c) <= 'z'))
8154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8162 for (i = 0; i < 256; i++)
8163 if (XOR (islower (i), ISLOWER (i))
8164 || toupper (i) != TOUPPER (i))
8169 if ac_fn_c_try_run
"$LINENO"; then :
8172 ac_cv_header_stdc
=no
8174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8181 $as_echo "$ac_cv_header_stdc" >&6; }
8182 if test $ac_cv_header_stdc = yes; then
8184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8189 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8190 if test "${ac_cv_header_time+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <sys/time.h>
8202 if ((struct tm *) 0)
8208 if ac_fn_c_try_compile
"$LINENO"; then :
8209 ac_cv_header_time
=yes
8211 ac_cv_header_time
=no
8213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8216 $as_echo "$ac_cv_header_time" >&6; }
8217 if test $ac_cv_header_time = yes; then
8219 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8224 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8225 if test "${gcc_cv_header_string+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8231 #include <strings.h>
8240 if ac_fn_c_try_compile
"$LINENO"; then :
8241 gcc_cv_header_string
=yes
8243 gcc_cv_header_string
=no
8245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8248 $as_echo "$gcc_cv_header_string" >&6; }
8249 if test $gcc_cv_header_string = yes; then
8251 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8256 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8257 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262 #include <sys/types.h>
8263 #include <sys/wait.h>
8265 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8268 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8276 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8281 if ac_fn_c_try_compile
"$LINENO"; then :
8282 ac_cv_header_sys_wait_h
=yes
8284 ac_cv_header_sys_wait_h
=no
8286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8289 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8290 if test $ac_cv_header_sys_wait_h = yes; then
8292 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8297 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8298 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #include <sys/types.h>
8304 #include <termios.h>
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "yes" >/dev
/null
2>&1; then :
8312 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8314 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8320 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8322 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8324 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8325 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #include <sys/types.h>
8331 #include <sys/ioctl.h>
8337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8338 $EGREP "yes" >/dev
/null
2>&1; then :
8339 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8341 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8347 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8349 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8351 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8356 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8357 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8358 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8359 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8361 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8362 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8363 eval as_val
=\$
$as_ac_Header
8364 if test "x$as_val" = x
""yes; then :
8365 cat >>confdefs.h
<<_ACEOF
8366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8373 # Check for thread headers.
8374 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8375 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8381 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8382 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8389 # These tests can't be done till we know if we have limits.h.
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8391 $as_echo_n "checking for CHAR_BIT... " >&6; }
8392 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #ifdef HAVE_LIMITS_H
8404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8405 $EGREP "found" >/dev
/null
2>&1; then :
8406 gcc_cv_decl_char_bit
=yes
8408 gcc_cv_decl_char_bit
=no
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8415 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8416 if test $gcc_cv_decl_char_bit = no
; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8418 $as_echo_n "checking number of bits in a byte... " >&6; }
8419 if test "${gcc_cv_c_nbby+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8424 while test $i -lt 65; do
8425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8432 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8433 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8439 if ac_fn_c_try_compile
"$LINENO"; then :
8440 gcc_cv_c_nbby
=$i; break
8442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8445 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8449 $as_echo "$gcc_cv_c_nbby" >&6; }
8450 if test $gcc_cv_c_nbby = failed
; then
8451 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8454 cat >>confdefs.h
<<_ACEOF
8455 #define CHAR_BIT $gcc_cv_c_nbby
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8461 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8462 if test "${ac_cv_c_bigendian+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8465 ac_cv_c_bigendian
=unknown
8466 # See if we're dealing with a universal compiler.
8467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #ifndef __APPLE_CC__
8470 not a universal capable compiler
8475 if ac_fn_c_try_compile
"$LINENO"; then :
8477 # Check for potential -arch flags. It is not universal unless
8478 # there are at least two -arch flags with different values.
8481 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8482 if test -n "$ac_prev"; then
8484 i?
86 | x86_64 | ppc | ppc64
)
8485 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8488 ac_cv_c_bigendian
=universal
8494 elif test "x$ac_word" = "x-arch"; then
8499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8500 if test $ac_cv_c_bigendian = unknown
; then
8501 # See if sys/param.h defines the BYTE_ORDER macro.
8502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <sys/types.h>
8505 #include <sys/param.h>
8510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8520 if ac_fn_c_try_compile
"$LINENO"; then :
8521 # It does; now see whether it defined to BIG_ENDIAN or not.
8522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <sys/types.h>
8525 #include <sys/param.h>
8530 #if BYTE_ORDER != BIG_ENDIAN
8538 if ac_fn_c_try_compile
"$LINENO"; then :
8539 ac_cv_c_bigendian
=yes
8541 ac_cv_c_bigendian
=no
8543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8547 if test $ac_cv_c_bigendian = unknown
; then
8548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8564 if ac_fn_c_try_compile
"$LINENO"; then :
8565 # It does; now see whether it defined to _BIG_ENDIAN or not.
8566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8581 if ac_fn_c_try_compile
"$LINENO"; then :
8582 ac_cv_c_bigendian
=yes
8584 ac_cv_c_bigendian
=no
8586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8590 if test $ac_cv_c_bigendian = unknown
; then
8591 # Compile a test program.
8592 if test "$cross_compiling" = yes; then :
8593 # Try to guess by grepping values from an object file.
8594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 short int ascii_mm[] =
8597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8598 short int ascii_ii[] =
8599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8600 int use_ascii (int i) {
8601 return ascii_mm[i] + ascii_ii[i];
8603 short int ebcdic_ii[] =
8604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8605 short int ebcdic_mm[] =
8606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8607 int use_ebcdic (int i) {
8608 return ebcdic_mm[i] + ebcdic_ii[i];
8615 return use_ascii (foo) == use_ebcdic (foo);
8620 if ac_fn_c_try_compile
"$LINENO"; then :
8621 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8622 ac_cv_c_bigendian
=yes
8624 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8625 if test "$ac_cv_c_bigendian" = unknown
; then
8626 ac_cv_c_bigendian
=no
8628 # finding both strings is unlikely to happen, but who knows?
8629 ac_cv_c_bigendian
=unknown
8633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 $ac_includes_default
8642 /* Are we little or big endian? From Harbison&Steele. */
8646 char c[sizeof (long int)];
8649 return u.c[sizeof (long int) - 1] == 1;
8655 if ac_fn_c_try_run
"$LINENO"; then :
8656 ac_cv_c_bigendian
=no
8658 ac_cv_c_bigendian
=yes
8660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8667 $as_echo "$ac_cv_c_bigendian" >&6; }
8668 case $ac_cv_c_bigendian in #(
8670 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8676 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8680 as_fn_error
"unknown endianness
8681 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8685 # ----------------------
8686 # Checks for C++ headers
8687 # ----------------------
8690 ac_cpp
='$CXXCPP $CPPFLAGS'
8691 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8695 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8696 if test -z "$CXXCPP"; then
8697 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8700 # Double quotes because CXXCPP needs to be expanded
8701 for CXXCPP
in "$CXX -E" "/lib/cpp"
8704 for ac_cxx_preproc_warn_flag
in '' yes
8706 # Use a header file that comes with gcc, so configuring glibc
8707 # with a fresh cross-compiler works.
8708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 # <limits.h> exists even on freestanding compilers.
8710 # On the NeXT, cc -E runs the code through the compiler's parser,
8711 # not just through cpp. "Syntax error" is here to catch this case.
8712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8715 # include <limits.h>
8717 # include <assert.h>
8721 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8724 # Broken: fails on valid input.
8727 rm -f conftest.err conftest.
$ac_ext
8729 # OK, works on sane cases. Now check whether nonexistent headers
8730 # can be detected and how.
8731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <ac_nonexistent.h>
8735 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8736 # Broken: success on invalid input.
8739 # Passes both tests.
8743 rm -f conftest.err conftest.
$ac_ext
8746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8747 rm -f conftest.err conftest.
$ac_ext
8748 if $ac_preproc_ok; then :
8753 ac_cv_prog_CXXCPP
=$CXXCPP
8756 CXXCPP
=$ac_cv_prog_CXXCPP
8758 ac_cv_prog_CXXCPP
=$CXXCPP
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8761 $as_echo "$CXXCPP" >&6; }
8763 for ac_cxx_preproc_warn_flag
in '' yes
8765 # Use a header file that comes with gcc, so configuring glibc
8766 # with a fresh cross-compiler works.
8767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768 # <limits.h> exists even on freestanding compilers.
8769 # On the NeXT, cc -E runs the code through the compiler's parser,
8770 # not just through cpp. "Syntax error" is here to catch this case.
8771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8774 # include <limits.h>
8776 # include <assert.h>
8780 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8783 # Broken: fails on valid input.
8786 rm -f conftest.err conftest.
$ac_ext
8788 # OK, works on sane cases. Now check whether nonexistent headers
8789 # can be detected and how.
8790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 #include <ac_nonexistent.h>
8794 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8795 # Broken: success on invalid input.
8798 # Passes both tests.
8802 rm -f conftest.err conftest.
$ac_ext
8805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8806 rm -f conftest.err conftest.
$ac_ext
8807 if $ac_preproc_ok; then :
8810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8813 See \`config.log' for more details." >&5
8814 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8815 See \`config.log' for more details." >&2;}; }
8819 ac_cpp
='$CPP $CPPFLAGS'
8820 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8821 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8822 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8826 ac_cpp
='$CXXCPP $CPPFLAGS'
8827 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8828 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8829 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8834 for ac_header
in unordered_map
8836 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8837 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8838 cat >>confdefs.h
<<_ACEOF
8839 #define HAVE_UNORDERED_MAP 1
8845 for ac_header
in tr1/unordered_map
8847 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8848 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8849 cat >>confdefs.h
<<_ACEOF
8850 #define HAVE_TR1_UNORDERED_MAP 1
8856 for ac_header
in ext
/hash_map
8858 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8859 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8860 cat >>confdefs.h
<<_ACEOF
8861 #define HAVE_EXT_HASH_MAP 1
8869 ac_cpp
='$CPP $CPPFLAGS'
8870 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8880 # These libraries may be used by collect2.
8881 # We may need a special search path to get them linked.
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8883 $as_echo_n "checking for collect2 libraries... " >&6; }
8884 if test "${gcc_cv_collect2_libs+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8888 for libs
in '' -lld -lmld \
8889 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8890 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8911 if ac_fn_c_try_link
"$LINENO"; then :
8912 gcc_cv_collect2_libs
="$libs"; break
8914 rm -f core conftest.err conftest.
$ac_objext \
8915 conftest
$ac_exeext conftest.
$ac_ext
8918 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8921 $as_echo "$gcc_cv_collect2_libs" >&6; }
8922 case $gcc_cv_collect2_libs in
8924 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8928 # When building Ada code on Alpha, we need exc_resume which is usually in
8929 # -lexc. So test for it.
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8933 $as_echo_n "checking for library containing exc_resume... " >&6; }
8934 if test "${ac_cv_search_exc_resume+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8937 ac_func_search_save_LIBS
=$LIBS
8938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8941 /* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8951 return exc_resume ();
8956 for ac_lib
in '' exc
; do
8957 if test -z "$ac_lib"; then
8958 ac_res
="none required"
8961 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8963 if ac_fn_c_try_link
"$LINENO"; then :
8964 ac_cv_search_exc_resume
=$ac_res
8966 rm -f core conftest.err conftest.
$ac_objext \
8968 if test "${ac_cv_search_exc_resume+set}" = set; then :
8972 if test "${ac_cv_search_exc_resume+set}" = set; then :
8975 ac_cv_search_exc_resume
=no
8978 LIBS
=$ac_func_search_save_LIBS
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8981 $as_echo "$ac_cv_search_exc_resume" >&6; }
8982 ac_res
=$ac_cv_search_exc_resume
8983 if test "$ac_res" != no
; then :
8984 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8992 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8996 $as_echo_n "checking for library containing kstat_open... " >&6; }
8997 if test "${ac_cv_search_kstat_open+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
9000 ac_func_search_save_LIBS
=$LIBS
9001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9014 return kstat_open ();
9019 for ac_lib
in '' kstat
; do
9020 if test -z "$ac_lib"; then
9021 ac_res
="none required"
9024 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9026 if ac_fn_c_try_link
"$LINENO"; then :
9027 ac_cv_search_kstat_open
=$ac_res
9029 rm -f core conftest.err conftest.
$ac_objext \
9031 if test "${ac_cv_search_kstat_open+set}" = set; then :
9035 if test "${ac_cv_search_kstat_open+set}" = set; then :
9038 ac_cv_search_kstat_open
=no
9041 LIBS
=$ac_func_search_save_LIBS
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9044 $as_echo "$ac_cv_search_kstat_open" >&6; }
9045 ac_res
=$ac_cv_search_kstat_open
9046 if test "$ac_res" != no
; then :
9047 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9051 EXTRA_GCC_LIBS
="$LIBS"
9055 # Some systems put ldexp and frexp in libm instead of libc; assume
9056 # they're both in the same place. jcf-dump needs them.
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9060 $as_echo_n "checking for library containing ldexp... " >&6; }
9061 if test "${ac_cv_search_ldexp+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9064 ac_func_search_save_LIBS
=$LIBS
9065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9068 /* Override any GCC internal prototype to avoid an error.
9069 Use char because int might match the return type of a GCC
9070 builtin and then its argument prototype would still apply. */
9083 for ac_lib
in '' m
; do
9084 if test -z "$ac_lib"; then
9085 ac_res
="none required"
9088 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9090 if ac_fn_c_try_link
"$LINENO"; then :
9091 ac_cv_search_ldexp
=$ac_res
9093 rm -f core conftest.err conftest.
$ac_objext \
9095 if test "${ac_cv_search_ldexp+set}" = set; then :
9099 if test "${ac_cv_search_ldexp+set}" = set; then :
9102 ac_cv_search_ldexp
=no
9105 LIBS
=$ac_func_search_save_LIBS
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9108 $as_echo "$ac_cv_search_ldexp" >&6; }
9109 ac_res
=$ac_cv_search_ldexp
9110 if test "$ac_res" != no
; then :
9111 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9119 # Use <inttypes.h> only if it exists,
9120 # doesn't clash with <sys/types.h>, and declares intmax_t.
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9122 $as_echo_n "checking for inttypes.h... " >&6; }
9123 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 #include <sys/types.h>
9129 #include <inttypes.h>
9138 if ac_fn_c_try_compile
"$LINENO"; then :
9139 gcc_cv_header_inttypes_h
=yes
9141 gcc_cv_header_inttypes_h
=no
9143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9147 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9148 if test $gcc_cv_header_inttypes_h = yes; then
9150 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9156 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9157 sysconf strsignal getrusage nl_langinfo \
9158 gettimeofday mbstowcs wcswidth mmap setlocale \
9159 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9161 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9162 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9163 eval as_val
=\$
$as_ac_var
9164 if test "x$as_val" = x
""yes; then :
9165 cat >>confdefs.h
<<_ACEOF
9166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9173 if test x
$ac_cv_func_mbstowcs = xyes
; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9175 $as_echo_n "checking whether mbstowcs works... " >&6; }
9176 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9179 if test "$cross_compiling" = yes; then :
9180 gcc_cv_func_mbstowcs_works
=yes
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9191 if ac_fn_c_try_run
"$LINENO"; then :
9192 gcc_cv_func_mbstowcs_works
=yes
9194 gcc_cv_func_mbstowcs_works
=no
9196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9202 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9203 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9205 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9210 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9211 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9215 cat >>confdefs.h
<<_ACEOF
9221 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9222 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9226 cat >>confdefs.h
<<_ACEOF
9227 #define caddr_t char *
9234 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9235 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9236 gcc_header_sys_mman_h
=yes
9238 gcc_header_sys_mman_h
=no
9241 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9242 if test "x$ac_cv_func_mmap" = x
""yes; then :
9248 if test "$gcc_header_sys_mman_h" != yes \
9249 ||
test "$gcc_func_mmap" != yes; then
9250 gcc_cv_func_mmap_file
=no
9251 gcc_cv_func_mmap_dev_zero
=no
9252 gcc_cv_func_mmap_anon
=no
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9255 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9256 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9259 # Add a system to this blacklist if
9260 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9261 # memory area containing the same data that you'd get if you applied
9262 # read() to the same fd. The only system known to have a problem here
9263 # is VMS, where text files have record structure.
9266 gcc_cv_func_mmap_file
=no
;;
9268 gcc_cv_func_mmap_file
=yes;;
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9272 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9274 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9275 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9278 # Add a system to this blacklist if it has mmap() but /dev/zero
9279 # does not exist, or if mmapping /dev/zero does not give anonymous
9280 # zeroed pages with both the following properties:
9281 # 1. If you map N consecutive pages in with one call, and then
9282 # unmap any subset of those pages, the pages that were not
9283 # explicitly unmapped remain accessible.
9284 # 2. If you map two adjacent blocks of memory and then unmap them
9285 # both at once, they must both go away.
9286 # Systems known to be in this category are Windows (all variants),
9289 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9290 gcc_cv_func_mmap_dev_zero
=no
;;
9292 gcc_cv_func_mmap_dev_zero
=yes;;
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9296 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9298 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9300 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9301 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
9304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <sys/types.h>
9307 #include <sys/mman.h>
9310 #ifndef MAP_ANONYMOUS
9311 #define MAP_ANONYMOUS MAP_ANON
9317 int n = MAP_ANONYMOUS;
9322 if ac_fn_c_try_compile
"$LINENO"; then :
9323 gcc_cv_decl_map_anon
=yes
9325 gcc_cv_decl_map_anon
=no
9327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9330 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9332 if test $gcc_cv_decl_map_anon = no
; then
9333 gcc_cv_func_mmap_anon
=no
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9336 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9337 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9340 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9341 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9342 # doesn't give anonymous zeroed pages with the same properties listed
9343 # above for use of /dev/zero.
9344 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9346 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9347 gcc_cv_func_mmap_anon
=no
;;
9349 gcc_cv_func_mmap_anon
=yes;;
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9353 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9357 if test $gcc_cv_func_mmap_file = yes; then
9359 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9362 if test $gcc_cv_func_mmap_dev_zero = yes; then
9364 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9367 if test $gcc_cv_func_mmap_anon = yes; then
9369 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9376 # Under VMS, vfork works very differently than on Unix. The standard test
9377 # won't work, and it isn't easily adaptable. It makes more sense to
9379 ac_cv_func_vfork_works
=yes
9382 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9383 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9387 cat >>confdefs.h
<<_ACEOF
9393 for ac_header
in vfork.h
9395 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9396 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9397 cat >>confdefs.h
<<_ACEOF
9398 #define HAVE_VFORK_H 1
9404 for ac_func
in fork vfork
9406 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9407 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9408 eval as_val
=\$
$as_ac_var
9409 if test "x$as_val" = x
""yes; then :
9410 cat >>confdefs.h
<<_ACEOF
9411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9417 if test "x$ac_cv_func_fork" = xyes
; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9419 $as_echo_n "checking for working fork... " >&6; }
9420 if test "${ac_cv_func_fork_works+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9423 if test "$cross_compiling" = yes; then :
9424 ac_cv_func_fork_works
=cross
9426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428 $ac_includes_default
9433 /* By Ruediger Kuhlmann. */
9440 if ac_fn_c_try_run
"$LINENO"; then :
9441 ac_cv_func_fork_works
=yes
9443 ac_cv_func_fork_works
=no
9445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9451 $as_echo "$ac_cv_func_fork_works" >&6; }
9454 ac_cv_func_fork_works
=$ac_cv_func_fork
9456 if test "x$ac_cv_func_fork_works" = xcross
; then
9458 *-*-amigaos* |
*-*-msdosdjgpp*)
9459 # Override, as these systems have only a dummy fork() stub
9460 ac_cv_func_fork_works
=no
9463 ac_cv_func_fork_works
=yes
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9467 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9469 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9470 if test "x$ac_cv_func_vfork" = xyes
; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9472 $as_echo_n "checking for working vfork... " >&6; }
9473 if test "${ac_cv_func_vfork_works+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9476 if test "$cross_compiling" = yes; then :
9477 ac_cv_func_vfork_works
=cross
9479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 /* Thanks to Paul Eggert for this test. */
9482 $ac_includes_default
9483 #include <sys/wait.h>
9487 /* On some sparc systems, changes by the child to local and incoming
9488 argument registers are propagated back to the parent. The compiler
9489 is told about this with #include <vfork.h>, but some compilers
9490 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9491 static variable whose address is put into a register that is
9492 clobbered by the vfork. */
9495 sparc_address_test (int arg)
9497 sparc_address_test (arg) int arg;
9518 pid_t parent = getpid ();
9521 sparc_address_test (0);
9526 /* Here is another test for sparc vfork register problems. This
9527 test uses lots of local variables, at least as many local
9528 variables as main has allocated so far including compiler
9529 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9530 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9531 reuse the register of parent for one of the local variables,
9532 since it will think that parent can't possibly be used any more
9533 in this routine. Assigning to the local variable will thus
9534 munge parent in the parent process. */
9536 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9537 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9538 /* Convince the compiler that p..p7 are live; otherwise, it might
9539 use the same hardware register for all 8 local variables. */
9540 if (p != p1 || p != p2 || p != p3 || p != p4
9541 || p != p5 || p != p6 || p != p7)
9544 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9545 from child file descriptors. If the child closes a descriptor
9546 before it execs or exits, this munges the parent's descriptor
9547 as well. Test for this by closing stdout in the child. */
9548 _exit(close(fileno(stdout)) != 0);
9553 while (wait(&status) != child)
9556 /* Was there some problem with vforking? */
9559 /* Did the child fail? (This shouldn't happen.) */
9562 /* Did the vfork/compiler bug occur? */
9563 || parent != getpid()
9565 /* Did the file descriptor bug occur? */
9566 || fstat(fileno(stdout), &st) != 0
9571 if ac_fn_c_try_run
"$LINENO"; then :
9572 ac_cv_func_vfork_works
=yes
9574 ac_cv_func_vfork_works
=no
9576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9582 $as_echo "$ac_cv_func_vfork_works" >&6; }
9585 if test "x$ac_cv_func_fork_works" = xcross
; then
9586 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9588 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9591 if test "x$ac_cv_func_vfork_works" = xyes
; then
9593 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9597 $as_echo "#define vfork fork" >>confdefs.h
9600 if test "x$ac_cv_func_fork_works" = xyes
; then
9602 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9607 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9608 # iconv() prototype.
9610 ac_cpp
='$CXXCPP $CPPFLAGS'
9611 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9612 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9613 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9616 if test "X$prefix" = "XNONE"; then
9617 acl_final_prefix
="$ac_default_prefix"
9619 acl_final_prefix
="$prefix"
9621 if test "X$exec_prefix" = "XNONE"; then
9622 acl_final_exec_prefix
='${prefix}'
9624 acl_final_exec_prefix
="$exec_prefix"
9626 acl_save_prefix
="$prefix"
9627 prefix
="$acl_final_prefix"
9628 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9629 prefix
="$acl_save_prefix"
9632 # Check whether --with-gnu-ld was given.
9633 if test "${with_gnu_ld+set}" = set; then :
9634 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9639 # Prepare PATH_SEPARATOR.
9640 # The user is always right.
9641 if test "${PATH_SEPARATOR+set}" != set; then
9642 echo "#! /bin/sh" >conf$$.sh
9643 echo "exit 0" >>conf$$.sh
9645 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9653 if test "$GCC" = yes; then
9654 # Check if gcc -print-prog-name=ld gives a path.
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9656 $as_echo_n "checking for ld used by GCC... " >&6; }
9659 # gcc leaves a trailing carriage return which upsets mingw
9660 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9662 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9665 # Accept absolute paths.
9666 [\\/]* |
[A-Za-z
]:[\\/]*)
9667 re_direlt
='/[^/][^/]*/\.\./'
9668 # Canonicalize the path of ld
9669 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9670 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9671 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9673 test -z "$LD" && LD
="$ac_prog"
9676 # If it fails, then pretend we aren't using GCC.
9680 # If it is relative, then search for the first ld in PATH.
9684 elif test "$with_gnu_ld" = yes; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9686 $as_echo_n "checking for GNU ld... " >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9689 $as_echo_n "checking for non-GNU ld... " >&6; }
9691 if test "${acl_cv_path_LD+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9694 if test -z "$LD"; then
9695 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9696 for ac_dir
in $PATH; do
9697 test -z "$ac_dir" && ac_dir
=.
9698 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9699 acl_cv_path_LD
="$ac_dir/$ac_prog"
9700 # Check to see if the program is GNU ld. I'd rather use --version,
9701 # but apparently some GNU ld's only accept -v.
9702 # Break only if it was the GNU/non-GNU ld that we prefer.
9703 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9704 test "$with_gnu_ld" != no
&& break
9706 test "$with_gnu_ld" != yes && break
9712 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9716 LD
="$acl_cv_path_LD"
9717 if test -n "$LD"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9719 $as_echo "$LD" >&6; }
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9724 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9727 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9730 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9731 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9732 acl_cv_prog_gnu_ld
=yes
9734 acl_cv_prog_gnu_ld
=no
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9738 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9739 with_gnu_ld
=$acl_cv_prog_gnu_ld
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9744 $as_echo_n "checking for shared library run path origin... " >&6; }
9745 if test "${acl_cv_rpath+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9749 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9750 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9757 $as_echo "$acl_cv_rpath" >&6; }
9759 libext
="$acl_cv_libext"
9760 shlibext
="$acl_cv_shlibext"
9761 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9762 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9763 hardcode_direct
="$acl_cv_hardcode_direct"
9764 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9765 # Check whether --enable-rpath was given.
9766 if test "${enable_rpath+set}" = set; then :
9767 enableval
=$enable_rpath; :
9781 acl_save_prefix
="$prefix"
9782 prefix
="$acl_final_prefix"
9783 acl_save_exec_prefix
="$exec_prefix"
9784 exec_prefix
="$acl_final_exec_prefix"
9786 eval additional_includedir
=\"$includedir\"
9787 eval additional_libdir
=\"$libdir\"
9789 exec_prefix
="$acl_save_exec_prefix"
9790 prefix
="$acl_save_prefix"
9793 # Check whether --with-libiconv-prefix was given.
9794 if test "${with_libiconv_prefix+set}" = set; then :
9795 withval
=$with_libiconv_prefix;
9796 if test "X$withval" = "Xno"; then
9799 if test "X$withval" = "X"; then
9801 acl_save_prefix
="$prefix"
9802 prefix
="$acl_final_prefix"
9803 acl_save_exec_prefix
="$exec_prefix"
9804 exec_prefix
="$acl_final_exec_prefix"
9806 eval additional_includedir
=\"$includedir\"
9807 eval additional_libdir
=\"$libdir\"
9809 exec_prefix
="$acl_save_exec_prefix"
9810 prefix
="$acl_save_prefix"
9813 additional_includedir
="$withval/include"
9814 additional_libdir
="$withval/lib"
9825 names_already_handled
=
9826 names_next_round
='iconv '
9827 while test -n "$names_next_round"; do
9828 names_this_round
="$names_next_round"
9830 for name
in $names_this_round; do
9832 for n
in $names_already_handled; do
9833 if test "$n" = "$name"; then
9838 if test -z "$already_handled"; then
9839 names_already_handled
="$names_already_handled $name"
9840 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9841 eval value
=\"\
$HAVE_LIB$uppername\"
9842 if test -n "$value"; then
9843 if test "$value" = yes; then
9844 eval value
=\"\
$LIB$uppername\"
9845 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9846 eval value
=\"\
$LTLIB$uppername\"
9847 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9856 if test $use_additional = yes; then
9857 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9858 found_dir
="$additional_libdir"
9859 found_so
="$additional_libdir/lib$name.$shlibext"
9860 if test -f "$additional_libdir/lib$name.la"; then
9861 found_la
="$additional_libdir/lib$name.la"
9864 if test -f "$additional_libdir/lib$name.$libext"; then
9865 found_dir
="$additional_libdir"
9866 found_a
="$additional_libdir/lib$name.$libext"
9867 if test -f "$additional_libdir/lib$name.la"; then
9868 found_la
="$additional_libdir/lib$name.la"
9873 if test "X$found_dir" = "X"; then
9874 for x
in $LDFLAGS $LTLIBICONV; do
9876 acl_save_prefix
="$prefix"
9877 prefix
="$acl_final_prefix"
9878 acl_save_exec_prefix
="$exec_prefix"
9879 exec_prefix
="$acl_final_exec_prefix"
9881 exec_prefix
="$acl_save_exec_prefix"
9882 prefix
="$acl_save_prefix"
9886 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9887 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9889 found_so
="$dir/lib$name.$shlibext"
9890 if test -f "$dir/lib$name.la"; then
9891 found_la
="$dir/lib$name.la"
9894 if test -f "$dir/lib$name.$libext"; then
9896 found_a
="$dir/lib$name.$libext"
9897 if test -f "$dir/lib$name.la"; then
9898 found_la
="$dir/lib$name.la"
9904 if test "X$found_dir" != "X"; then
9909 if test "X$found_dir" != "X"; then
9910 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9911 if test "X$found_so" != "X"; then
9912 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9913 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9916 for x
in $ltrpathdirs; do
9917 if test "X$x" = "X$found_dir"; then
9922 if test -z "$haveit"; then
9923 ltrpathdirs
="$ltrpathdirs $found_dir"
9925 if test "$hardcode_direct" = yes; then
9926 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9928 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9929 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9931 for x
in $rpathdirs; do
9932 if test "X$x" = "X$found_dir"; then
9937 if test -z "$haveit"; then
9938 rpathdirs
="$rpathdirs $found_dir"
9942 for x
in $LDFLAGS $LIBICONV; do
9944 acl_save_prefix
="$prefix"
9945 prefix
="$acl_final_prefix"
9946 acl_save_exec_prefix
="$exec_prefix"
9947 exec_prefix
="$acl_final_exec_prefix"
9949 exec_prefix
="$acl_save_exec_prefix"
9950 prefix
="$acl_save_prefix"
9952 if test "X$x" = "X-L$found_dir"; then
9957 if test -z "$haveit"; then
9958 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9960 if test "$hardcode_minus_L" != no
; then
9961 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9963 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9969 if test "X$found_a" != "X"; then
9970 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9972 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9975 additional_includedir
=
9976 case "$found_dir" in
9978 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9979 additional_includedir
="$basedir/include"
9982 if test "X$additional_includedir" != "X"; then
9983 if test "X$additional_includedir" != "X/usr/include"; then
9985 if test "X$additional_includedir" = "X/usr/local/include"; then
9986 if test -n "$GCC"; then
9988 linux
*) haveit
=yes;;
9992 if test -z "$haveit"; then
9993 for x
in $CPPFLAGS $INCICONV; do
9995 acl_save_prefix
="$prefix"
9996 prefix
="$acl_final_prefix"
9997 acl_save_exec_prefix
="$exec_prefix"
9998 exec_prefix
="$acl_final_exec_prefix"
10000 exec_prefix
="$acl_save_exec_prefix"
10001 prefix
="$acl_save_prefix"
10003 if test "X$x" = "X-I$additional_includedir"; then
10008 if test -z "$haveit"; then
10009 if test -d "$additional_includedir"; then
10010 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10016 if test -n "$found_la"; then
10017 save_libdir
="$libdir"
10018 case "$found_la" in
10019 */* |
*\\*) .
"$found_la" ;;
10020 *) .
"./$found_la" ;;
10022 libdir
="$save_libdir"
10023 for dep
in $dependency_libs; do
10026 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10027 if test "X$additional_libdir" != "X/usr/lib"; then
10029 if test "X$additional_libdir" = "X/usr/local/lib"; then
10030 if test -n "$GCC"; then
10032 linux
*) haveit
=yes;;
10036 if test -z "$haveit"; then
10038 for x
in $LDFLAGS $LIBICONV; do
10040 acl_save_prefix
="$prefix"
10041 prefix
="$acl_final_prefix"
10042 acl_save_exec_prefix
="$exec_prefix"
10043 exec_prefix
="$acl_final_exec_prefix"
10045 exec_prefix
="$acl_save_exec_prefix"
10046 prefix
="$acl_save_prefix"
10048 if test "X$x" = "X-L$additional_libdir"; then
10053 if test -z "$haveit"; then
10054 if test -d "$additional_libdir"; then
10055 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10059 for x
in $LDFLAGS $LTLIBICONV; do
10061 acl_save_prefix
="$prefix"
10062 prefix
="$acl_final_prefix"
10063 acl_save_exec_prefix
="$exec_prefix"
10064 exec_prefix
="$acl_final_exec_prefix"
10066 exec_prefix
="$acl_save_exec_prefix"
10067 prefix
="$acl_save_prefix"
10069 if test "X$x" = "X-L$additional_libdir"; then
10074 if test -z "$haveit"; then
10075 if test -d "$additional_libdir"; then
10076 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10083 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10084 if test "$enable_rpath" != no
; then
10086 for x
in $rpathdirs; do
10087 if test "X$x" = "X$dir"; then
10092 if test -z "$haveit"; then
10093 rpathdirs
="$rpathdirs $dir"
10096 for x
in $ltrpathdirs; do
10097 if test "X$x" = "X$dir"; then
10102 if test -z "$haveit"; then
10103 ltrpathdirs
="$ltrpathdirs $dir"
10108 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10111 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10114 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10115 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10121 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10122 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10128 if test "X$rpathdirs" != "X"; then
10129 if test -n "$hardcode_libdir_separator"; then
10131 for found_dir
in $rpathdirs; do
10132 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10134 acl_save_libdir
="$libdir"
10136 eval flag
=\"$hardcode_libdir_flag_spec\"
10137 libdir
="$acl_save_libdir"
10138 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10140 for found_dir
in $rpathdirs; do
10141 acl_save_libdir
="$libdir"
10142 libdir
="$found_dir"
10143 eval flag
=\"$hardcode_libdir_flag_spec\"
10144 libdir
="$acl_save_libdir"
10145 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10149 if test "X$ltrpathdirs" != "X"; then
10150 for found_dir
in $ltrpathdirs; do
10151 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10161 am_save_CPPFLAGS
="$CPPFLAGS"
10163 for element
in $INCICONV; do
10165 for x
in $CPPFLAGS; do
10167 acl_save_prefix
="$prefix"
10168 prefix
="$acl_final_prefix"
10169 acl_save_exec_prefix
="$exec_prefix"
10170 exec_prefix
="$acl_final_exec_prefix"
10172 exec_prefix
="$acl_save_exec_prefix"
10173 prefix
="$acl_save_prefix"
10175 if test "X$x" = "X$element"; then
10180 if test -z "$haveit"; then
10181 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10187 $as_echo_n "checking for iconv... " >&6; }
10188 if test "${am_cv_func_iconv+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10192 am_cv_func_iconv
="no, consider installing GNU libiconv"
10194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #include <stdlib.h>
10201 iconv_t cd = iconv_open("","");
10202 iconv(cd,NULL,NULL,NULL,NULL);
10208 if ac_fn_cxx_try_link
"$LINENO"; then :
10209 am_cv_func_iconv
=yes
10211 rm -f core conftest.err conftest.
$ac_objext \
10212 conftest
$ac_exeext conftest.
$ac_ext
10213 if test "$am_cv_func_iconv" != yes; then
10214 am_save_LIBS
="$LIBS"
10215 LIBS
="$LIBS $LIBICONV"
10216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 #include <stdlib.h>
10223 iconv_t cd = iconv_open("","");
10224 iconv(cd,NULL,NULL,NULL,NULL);
10230 if ac_fn_cxx_try_link
"$LINENO"; then :
10231 am_cv_lib_iconv
=yes
10232 am_cv_func_iconv
=yes
10234 rm -f core conftest.err conftest.
$ac_objext \
10235 conftest
$ac_exeext conftest.
$ac_ext
10236 LIBS
="$am_save_LIBS"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10241 $as_echo "$am_cv_func_iconv" >&6; }
10242 if test "$am_cv_func_iconv" = yes; then
10244 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10247 if test "$am_cv_lib_iconv" = yes; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10249 $as_echo_n "checking how to link with libiconv... " >&6; }
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10251 $as_echo "$LIBICONV" >&6; }
10253 CPPFLAGS
="$am_save_CPPFLAGS"
10260 if test "$am_cv_func_iconv" = yes; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10262 $as_echo_n "checking for iconv declaration... " >&6; }
10263 if test "${am_cv_proto_iconv+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10270 #include <stdlib.h>
10276 #if defined(__STDC__) || defined(__cplusplus)
10277 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10290 if ac_fn_cxx_try_compile
"$LINENO"; then :
10291 am_cv_proto_iconv_arg1
=""
10293 am_cv_proto_iconv_arg1
="const"
10295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10296 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);"
10299 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10301 }$am_cv_proto_iconv" >&5
10303 }$am_cv_proto_iconv" >&6; }
10305 cat >>confdefs.h
<<_ACEOF
10306 #define ICONV_CONST $am_cv_proto_iconv_arg1
10312 ac_cpp
='$CPP $CPPFLAGS'
10313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10318 # Until we have in-tree GNU iconv:
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10324 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10325 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10326 $as_echo_n "(cached) " >&6
10328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 #include <locale.h>
10339 if ac_fn_c_try_link
"$LINENO"; then :
10340 am_cv_val_LC_MESSAGES
=yes
10342 am_cv_val_LC_MESSAGES
=no
10344 rm -f core conftest.err conftest.
$ac_objext \
10345 conftest
$ac_exeext conftest.
$ac_ext
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10348 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10349 if test $am_cv_val_LC_MESSAGES = yes; then
10351 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10358 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10359 if test "${am_cv_langinfo_codeset+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364 #include <langinfo.h>
10368 char* cs = nl_langinfo(CODESET);
10373 if ac_fn_c_try_link
"$LINENO"; then :
10374 am_cv_langinfo_codeset
=yes
10376 am_cv_langinfo_codeset
=no
10378 rm -f core conftest.err conftest.
$ac_objext \
10379 conftest
$ac_exeext conftest.
$ac_ext
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10383 $as_echo "$am_cv_langinfo_codeset" >&6; }
10384 if test $am_cv_langinfo_codeset = yes; then
10386 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10391 # We will need to find libiberty.h and ansidecl.h
10392 saved_CFLAGS
="$CFLAGS"
10393 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10394 saved_CXXFLAGS
="$CXXFLAGS"
10395 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10396 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10397 strsignal strstr stpcpy strverscmp \
10398 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10399 free
basename getopt
clock getpagesize ffs 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
10401 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10403 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10404 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10405 $as_echo_n "(cached) " >&6
10407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10410 #define $ac_tr_decl 1
10412 #include "ansidecl.h"
10413 #include "system.h"
10419 char *(*pfn) = (char *(*)) $ac_func ;
10425 if ac_fn_c_try_compile
"$LINENO"; then :
10426 eval "gcc_cv_have_decl_$ac_func=yes"
10428 eval "gcc_cv_have_decl_$ac_func=no"
10430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10433 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10435 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10436 #define $ac_tr_decl 1
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10442 #define $ac_tr_decl 0
10450 for ac_func
in getrlimit setrlimit getrusage
10452 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10454 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10455 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10456 $as_echo_n "(cached) " >&6
10458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10461 #define $ac_tr_decl 1
10463 #include "ansidecl.h"
10464 #include "system.h"
10465 #ifdef HAVE_SYS_RESOURCE_H
10466 #include <sys/resource.h>
10474 char *(*pfn) = (char *(*)) $ac_func ;
10480 if ac_fn_c_try_compile
"$LINENO"; then :
10481 eval "gcc_cv_have_decl_$ac_func=yes"
10483 eval "gcc_cv_have_decl_$ac_func=no"
10485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10488 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10491 #define $ac_tr_decl 1
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10497 #define $ac_tr_decl 0
10505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10508 #include "ansidecl.h"
10509 #include "system.h"
10510 #ifdef HAVE_SYS_RESOURCE_H
10511 #include <sys/resource.h>
10522 if ac_fn_c_try_compile
"$LINENO"; then :
10526 $as_echo "#define rlim_t long" >>confdefs.h
10529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10531 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10532 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10533 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10534 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10535 for ac_func
in ldgetname
10537 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10539 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10540 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10541 $as_echo_n "(cached) " >&6
10543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10546 #define $ac_tr_decl 1
10548 #include "ansidecl.h"
10549 #include "system.h"
10550 #ifdef HAVE_LDFCN_H
10561 char *(*pfn) = (char *(*)) $ac_func ;
10567 if ac_fn_c_try_compile
"$LINENO"; then :
10568 eval "gcc_cv_have_decl_$ac_func=yes"
10570 eval "gcc_cv_have_decl_$ac_func=no"
10572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10578 #define $ac_tr_decl 1
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10584 #define $ac_tr_decl 0
10592 for ac_func
in times
10594 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10596 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10597 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10598 $as_echo_n "(cached) " >&6
10600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10603 #define $ac_tr_decl 1
10605 #include "ansidecl.h"
10606 #include "system.h"
10607 #ifdef HAVE_SYS_TIMES_H
10608 #include <sys/times.h>
10616 char *(*pfn) = (char *(*)) $ac_func ;
10622 if ac_fn_c_try_compile
"$LINENO"; then :
10623 eval "gcc_cv_have_decl_$ac_func=yes"
10625 eval "gcc_cv_have_decl_$ac_func=no"
10627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10630 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10632 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10633 #define $ac_tr_decl 1
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10639 #define $ac_tr_decl 0
10647 for ac_func
in sigaltstack
10649 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10651 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10652 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10653 $as_echo_n "(cached) " >&6
10655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10658 #define $ac_tr_decl 1
10660 #include "ansidecl.h"
10661 #include "system.h"
10662 #include <signal.h>
10669 char *(*pfn) = (char *(*)) $ac_func ;
10675 if ac_fn_c_try_compile
"$LINENO"; then :
10676 eval "gcc_cv_have_decl_$ac_func=yes"
10678 eval "gcc_cv_have_decl_$ac_func=no"
10680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10683 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10685 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10686 #define $ac_tr_decl 1
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10692 #define $ac_tr_decl 0
10700 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10703 ac_cpp
='$CXXCPP $CPPFLAGS'
10704 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10708 for ac_func
in madvise
10710 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10712 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10713 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10714 $as_echo_n "(cached) " >&6
10716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10719 #define $ac_tr_decl 1
10721 #include "ansidecl.h"
10722 #include "system.h"
10729 char *(*pfn) = (char *(*)) $ac_func ;
10735 if ac_fn_cxx_try_compile
"$LINENO"; then :
10736 eval "gcc_cv_have_decl_$ac_func=yes"
10738 eval "gcc_cv_have_decl_$ac_func=no"
10740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10743 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10745 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10746 #define $ac_tr_decl 1
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10752 #define $ac_tr_decl 0
10760 ac_cpp
='$CPP $CPPFLAGS'
10761 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10762 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10763 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10766 # More time-related stuff.
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10768 $as_echo_n "checking for struct tms... " >&6; }
10769 if test "${ac_cv_struct_tms+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10776 #include "ansidecl.h"
10777 #include "system.h"
10778 #ifdef HAVE_SYS_TIMES_H
10779 #include <sys/times.h>
10790 if ac_fn_c_try_compile
"$LINENO"; then :
10791 ac_cv_struct_tms
=yes
10793 ac_cv_struct_tms
=no
10795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10798 $as_echo "$ac_cv_struct_tms" >&6; }
10799 if test $ac_cv_struct_tms = yes; then
10801 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10805 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10806 # revisit after autoconf 2.50.
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10808 $as_echo_n "checking for clock_t... " >&6; }
10809 if test "${gcc_cv_type_clock_t+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10816 #include "ansidecl.h"
10817 #include "system.h"
10827 if ac_fn_c_try_compile
"$LINENO"; then :
10828 gcc_cv_type_clock_t
=yes
10830 gcc_cv_type_clock_t
=no
10832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10835 $as_echo "$gcc_cv_type_clock_t" >&6; }
10836 if test $gcc_cv_type_clock_t = yes; then
10838 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10842 # Check if F_SETLKW is supported by fcntl.
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10844 $as_echo_n "checking for F_SETLKW... " >&6; }
10845 if test "${ac_cv_f_setlkw+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10862 return fcntl (1, F_SETLKW, &fl);
10867 if ac_fn_c_try_compile
"$LINENO"; then :
10872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10875 $as_echo "$ac_cv_f_setlkw" >&6; }
10876 if test $ac_cv_f_setlkw = yes; then
10878 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10882 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10883 CFLAGS
="$saved_CFLAGS"
10884 CXXFLAGS
="$saved_CXXFLAGS"
10886 # mkdir takes a single argument on some systems.
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10888 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10889 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10895 #include <sys/types.h>
10896 #ifdef HAVE_SYS_STAT_H
10897 # include <sys/stat.h>
10899 #ifdef HAVE_UNISTD_H
10900 # include <unistd.h>
10902 #ifdef HAVE_DIRECT_H
10903 # include <direct.h>
10913 if ac_fn_c_try_compile
"$LINENO"; then :
10914 gcc_cv_mkdir_takes_one_arg
=no
10916 gcc_cv_mkdir_takes_one_arg
=yes
10918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10921 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10922 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10924 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10935 # With Setjmp/Longjmp based exception handling.
10936 # Check whether --enable-sjlj-exceptions was given.
10937 if test "${enable_sjlj_exceptions+set}" = set; then :
10938 enableval
=$enable_sjlj_exceptions; case $target in
10940 if test $enableval != yes; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10942 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10947 force_sjlj_exceptions
=yes
10951 force_sjlj_exceptions
=yes
10955 force_sjlj_exceptions
=no
10960 if test $force_sjlj_exceptions = yes; then
10961 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10963 cat >>confdefs.h
<<_ACEOF
10964 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10969 # --------------------------------------------------------
10970 # Build, host, and target specific configuration fragments
10971 # --------------------------------------------------------
10973 # Collect build-machine-specific information.
10974 .
${srcdir}/config.build
10976 # Collect host-machine-specific information.
10977 .
${srcdir}/config.
host
10981 # Collect target-machine-specific information.
10982 .
${srcdir}/config.gcc
10984 extra_objs
="${host_extra_objs} ${extra_objs}"
10985 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10987 # Default the target-machine variables that were not explicitly set.
10988 if test x
"$tm_file" = x
10989 then tm_file
=$cpu_type/$cpu_type.h
; fi
10991 if test x
"$extra_headers" = x
10992 then extra_headers
=; fi
10994 if test x
$md_file = x
10995 then md_file
=$cpu_type/$cpu_type.md
; fi
10997 if test x
$out_file = x
10998 then out_file
=$cpu_type/$cpu_type.c
; fi
11000 if test x
"$tmake_file" = x
11001 then tmake_file
=$cpu_type/t-
$cpu_type
11004 # Support --enable-initfini-array.
11005 if test x
$enable_initfini_array != xno
; then
11006 tm_file
="${tm_file} initfini-array.h"
11009 if test x
"$dwarf2" = xyes
11010 then tm_file
="$tm_file tm-dwarf2.h"
11013 # Say what files are being used for the output code and MD file.
11014 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11015 echo "Using \`$srcdir/config/$md_file' as machine description file."
11017 # If any of the xm_file variables contain nonexistent files, warn
11018 # about them and drop them.
11021 for x
in $build_xm_file; do
11022 if test -f $srcdir/config
/$x
11024 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11025 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11028 build_xm_file
="$bx"
11031 for x
in $host_xm_file; do
11032 if test -f $srcdir/config
/$x
11034 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11035 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11041 for x
in $xm_file; do
11042 if test -f $srcdir/config
/$x
11044 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11045 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11051 for f
in $tm_file; do
11054 if test $count = ax
; then
11055 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11057 echo "Using the following target machine macro files:"
11058 for f
in $tm_file; do
11059 echo " $srcdir/config/$f"
11063 if test x
$need_64bit_hwint = xyes
; then
11065 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11069 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11071 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11075 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11077 cat >>confdefs.h
<<_ACEOF
11078 #define HAVE_GNU_LD $gnu_ld_bool
11082 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11084 cat >>confdefs.h
<<_ACEOF
11085 #define HAVE_GNU_AS $gnu_as_bool
11090 for f
in $host_xm_file; do
11093 if test $count = a
; then
11095 elif test $count = ax
; then
11096 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11098 echo "Using the following host machine macro files:"
11099 for f
in $host_xm_file; do
11100 echo " $srcdir/config/$f"
11103 echo "Using ${out_host_hook_obj} for host machine hooks."
11105 if test "$host_xm_file" != "$build_xm_file"; then
11107 for f
in $build_xm_file; do
11110 if test $count = a
; then
11112 elif test $count = ax
; then
11113 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11115 echo "Using the following build machine macro files:"
11116 for f
in $build_xm_file; do
11117 echo " $srcdir/config/$f"
11122 if test -n "$configured_native_system_header_dir"; then
11123 native_system_header_dir
=$configured_native_system_header_dir
11125 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11129 powerpc
*-*-darwin*)
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11131 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11132 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11138 #include <sys/cdefs.h>
11139 #include <sys/signal.h>
11140 #include <ucontext.h>
11141 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11144 if ac_fn_c_try_compile
"$LINENO"; then :
11145 gcc_cv_mcontext_underscores
=no
11147 gcc_cv_mcontext_underscores
=yes
11149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11152 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11153 if test $gcc_cv_mcontext_underscores = yes; then
11155 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11165 # Check if a valid thread package
11166 case ${enable_threads} in
11169 target_thread_file
='single'
11173 target_thread_file
='single'
11175 aix | dce | lynx | mipssde | posix | rtems | \
11176 single | tpf | vxworks | win32
)
11177 target_thread_file
=${enable_threads}
11180 echo "${enable_threads} is an unknown thread package" 1>&2
11185 if test x
${thread_file} = x
; then
11186 # No thread file set by target-specific clauses in config.gcc,
11187 # so use file chosen by default logic above
11188 thread_file
=${target_thread_file}
11196 if test x
$enable___cxa_atexit = xyes || \
11197 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11198 if test x
$host = x
$target; then
11200 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11201 # keyed to flag_use_cxa_atexit
11209 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11210 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11213 echo "__cxa_atexit can't be enabled on this target"
11219 # We can't check for __cxa_atexit when building a cross, so assume
11223 if test x
$use_cxa_atexit = xyes
; then
11225 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11230 # Look for a file containing extra machine modes.
11231 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11232 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11235 cat >>confdefs.h
<<_ACEOF
11236 #define EXTRA_MODES_FILE "config/$extra_modes"
11241 # Convert extra_options into a form suitable for Makefile use.
11244 for f
in $extra_options; do
11245 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11246 all_opt_files
="$all_opt_files $srcdir/config/$f"
11250 # auto-host.h is the file containing items generated by autoconf and is
11251 # the first file included by config.h.
11252 # If host=build, it is correct to have bconfig include auto-host.h
11253 # as well. If host!=build, we are in error and need to do more
11254 # work to find out the build config parameters.
11255 if test x
$host = x
$build
11257 build_auto
=auto-host.h
11259 # We create a subdir, then run autoconf in the subdir.
11260 # To prevent recursion we set host and build for the new
11261 # invocation of configure to the build for this invocation
11268 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11269 *) realsrcdir
=..
/${srcdir};;
11271 saved_CFLAGS
="${CFLAGS}"
11272 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11273 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11274 ${realsrcdir}/configure \
11275 --enable-languages=${enable_languages-all} \
11276 --target=$target_alias --host=$build_alias --build=$build_alias
11277 CFLAGS
="${saved_CFLAGS}"
11279 # We just finished tests for the build machine, so rename
11280 # the file auto-build.h in the gcc directory.
11281 mv auto-host.h ..
/auto-build.h
11284 build_auto
=auto-build.h
11288 tm_file
="${tm_file} defaults.h"
11289 tm_p_file
="${tm_p_file} tm-preds.h"
11290 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11291 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11292 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11293 # put this back in temporarily.
11294 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11300 # Compile in configure arguments.
11301 if test -f configargs.h
; then
11302 # Being re-configured.
11303 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11304 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11306 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11309 # Double all backslashes and backslash all quotes to turn
11310 # gcc_config_arguments into a C string.
11311 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11312 $gcc_config_arguments
11314 gcc_config_arguments_str
=`cat conftest.out`
11317 cat > configargs.h
<<EOF
11318 /* Generated automatically. */
11319 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11320 static const char thread_model[] = "$thread_file";
11322 static const struct {
11323 const char *name, *value;
11324 } configure_default_options[] = $configure_default_options;
11327 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11328 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11329 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11330 if test -f $srcdir/REVISION
; then
11331 gcc_REVISION
=`cat $srcdir/REVISION`
11335 cat > plugin-version.h
<<EOF
11336 #include "configargs.h"
11338 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11339 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11340 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11341 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11343 static char basever[] = "$gcc_BASEVER";
11344 static char datestamp[] = "$gcc_DATESTAMP";
11345 static char devphase[] = "$gcc_DEVPHASE";
11346 static char revision[] = "$gcc_REVISION";
11348 /* FIXME plugins: We should make the version information more precise.
11349 One way to do is to add a checksum. */
11351 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11352 devphase, revision,
11353 configuration_arguments};
11356 # Internationalization
11357 # If we haven't got the data from the intl directory,
11358 # assume NLS is disabled.
11367 if test -f ..
/intl
/config.intl
; then
11368 . ..
/intl
/config.intl
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11371 $as_echo_n "checking whether NLS is requested... " >&6; }
11372 if test x
"$USE_NLS" != xyes
; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377 $as_echo "yes" >&6; }
11379 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11383 $as_echo_n "checking for catalogs to be installed... " >&6; }
11384 # Look for .po and .gmo files in the source directory.
11387 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11388 # If there aren't any .gmo files the shell will give us the
11389 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11391 case "$cat" in *\
**)
11394 # The quadruple backslash is collapsed to a double backslash
11395 # by the backticks, then collapsed again by the double quotes,
11396 # leaving us with one backslash in the sed expression (right
11397 # before the dot that mustn't act as a wildcard).
11398 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11399 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11400 # The user is allowed to set LINGUAS to a list of languages to
11401 # install catalogs for. If it's empty that means "all of them."
11402 if test "x$LINGUAS" = x
; then
11403 CATALOGS
="$CATALOGS $cat"
11404 XLINGUAS
="$XLINGUAS $lang"
11406 case "$LINGUAS" in *$lang*)
11407 CATALOGS
="$CATALOGS $cat"
11408 XLINGUAS
="$XLINGUAS $lang"
11413 LINGUAS
="$XLINGUAS"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11415 $as_echo "$LINGUAS" >&6; }
11428 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11429 # -liconv on the link line twice.
11430 case "$LIBINTL" in *$LIBICONV*)
11434 # Check whether --enable-secureplt was given.
11435 if test "${enable_secureplt+set}" = set; then :
11436 enableval
=$enable_secureplt;
11440 # Check whether --enable-leading-mingw64-underscores was given.
11441 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11442 enableval
=$enable_leading_mingw64_underscores;
11445 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11447 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11451 # Check whether --enable-cld was given.
11452 if test "${enable_cld+set}" = set; then :
11453 enableval
=$enable_cld;
11459 # Check whether --enable-frame-pointer was given.
11460 if test "${enable_frame_pointer+set}" = set; then :
11461 enableval
=$enable_frame_pointer;
11465 linux
* | darwin
[8912]*)
11466 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11468 enable_frame_pointer
=no
11471 enable_frame_pointer
=yes
11478 # Windows32 Registry support for specifying GCC installation paths.
11479 # Check whether --enable-win32-registry was given.
11480 if test "${enable_win32_registry+set}" = set; then :
11481 enableval
=$enable_win32_registry;
11486 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11487 if test "x$enable_win32_registry" != xno
; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11489 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11490 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11493 ac_func_search_save_LIBS
=$LIBS
11494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 /* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11503 char RegOpenKeyExA ();
11507 return RegOpenKeyExA ();
11512 for ac_lib
in '' advapi32
; do
11513 if test -z "$ac_lib"; then
11514 ac_res
="none required"
11517 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11519 if ac_fn_c_try_link
"$LINENO"; then :
11520 ac_cv_search_RegOpenKeyExA
=$ac_res
11522 rm -f core conftest.err conftest.
$ac_objext \
11524 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11528 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11531 ac_cv_search_RegOpenKeyExA
=no
11533 rm conftest.
$ac_ext
11534 LIBS
=$ac_func_search_save_LIBS
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11537 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11538 ac_res
=$ac_cv_search_RegOpenKeyExA
11539 if test "$ac_res" != no
; then :
11540 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11543 enable_win32_registry
=no
11548 if test "x$enable_win32_registry" != xno
; then
11550 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11553 if test "x$enable_win32_registry" != xyes \
11554 && test "x$enable_win32_registry" != x
; then
11556 cat >>confdefs.h
<<_ACEOF
11557 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11565 # Get an absolute path to the GCC top-level source directory
11566 holddir
=`${PWDCMD-pwd}`
11568 topdir
=`${PWDCMD-pwd}`
11571 # Conditionalize the makefile for this host machine.
11573 for f
in ${host_xmake_file}
11575 if test -f ${srcdir}/config
/$f
11577 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11581 # Conditionalize the makefile for this target machine.
11583 for f
in ${tmake_file}
11585 if test -f ${srcdir}/config
/$f
11587 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11590 tmake_file
="${tmake_file_}"
11592 out_object_file
=`basename $out_file .c`.o
11593 common_out_object_file
=`basename $common_out_file .c`.o
11595 tm_file_list
="options.h"
11596 tm_include_list
="options.h insn-constants.h"
11597 for f
in $tm_file; do
11600 f
=`echo $f | sed 's/^..//'`
11601 tm_file_list
="${tm_file_list} $f"
11602 tm_include_list
="${tm_include_list} $f"
11605 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11606 tm_include_list
="${tm_include_list} $f"
11609 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11610 tm_include_list
="${tm_include_list} config/$f"
11617 for f
in $tm_p_file; do
11620 tm_p_file_list
="${tm_p_file_list} $f"
11621 tm_p_include_list
="${tm_p_include_list} $f"
11624 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11625 tm_p_include_list
="${tm_p_include_list} config/$f"
11631 for f
in $xm_file; do
11634 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11635 xm_include_list
="${xm_include_list} $f"
11638 xm_file_list
="${xm_file_list} $f"
11639 xm_include_list
="${xm_include_list} $f"
11642 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11643 xm_include_list
="${xm_include_list} config/$f"
11649 host_xm_include_list
=
11650 for f
in $host_xm_file; do
11653 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11654 host_xm_include_list
="${host_xm_include_list} $f"
11657 host_xm_file_list
="${host_xm_file_list} $f"
11658 host_xm_include_list
="${host_xm_include_list} $f"
11661 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11662 host_xm_include_list
="${host_xm_include_list} config/$f"
11667 build_xm_file_list
=
11668 for f
in $build_xm_file; do
11671 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11672 build_xm_include_list
="${build_xm_include_list} $f"
11674 auto-build.h | auto-host.h
)
11675 build_xm_file_list
="${build_xm_file_list} $f"
11676 build_xm_include_list
="${build_xm_include_list} $f"
11679 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11680 build_xm_include_list
="${build_xm_include_list} config/$f"
11685 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11686 # cross-compiler which does not use the native headers and libraries.
11687 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11690 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11692 if test "x$with_build_sysroot" != x
; then
11693 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11695 # This value is used, even on a native system, because
11696 # CROSS_SYSTEM_HEADER_DIR is just
11697 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11698 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11701 if test x
$host != x
$target
11703 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11705 SYSTEM_HEADER_DIR
=$build_system_header_dir
11706 case "$host","$target" in
11707 # Darwin crosses can use the host system's libraries and headers,
11708 # because of the fat library support. Of course, it must be the
11709 # same version of Darwin on both sides. Allow the user to
11710 # just say --target=foo-darwin without a version number to mean
11711 # "the version on this system".
11712 *-*-darwin*,*-*-darwin*)
11713 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11714 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11715 if test $hostos = $targetos -o $targetos = darwin
; then
11717 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11722 i?
86-*-*,x86_64-
*-* \
11723 | powerpc
*-*-*,powerpc64
*-*-*)
11724 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11729 if test "x$with_headers" = x
; then
11736 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11737 SYSTEM_HEADER_DIR
=$build_system_header_dir
11740 # If this is a cross-compiler that does not
11741 # have its own set of headers then define
11744 # If this is using newlib, without having the headers available now,
11745 # then define inhibit_libc in LIBGCC2_CFLAGS.
11746 # This prevents libgcc2 from containing any code which requires libc
11748 : ${inhibit_libc=false}
11749 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11750 test x
$with_newlib = xyes
; } &&
11751 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11756 # When building gcc with a cross-compiler, we need to adjust things so
11757 # that the generator programs are still built with the native compiler.
11758 # Also, we cannot run fixincludes.
11760 # These are the normal (build=host) settings:
11761 CC_FOR_BUILD
='$(CC)'
11762 CXX_FOR_BUILD
='$(CXX)'
11763 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11764 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11765 BUILD_LDFLAGS
='$(LDFLAGS)'
11766 STMP_FIXINC
=stmp-fixinc
11768 # And these apply if build != host, or we are generating coverage data
11769 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11771 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11772 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11775 # Expand extra_headers to include complete path.
11776 # This substitutes for lots of t-* files.
11777 extra_headers_list
=
11778 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11779 for file in ${extra_headers} ; do
11780 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11783 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11784 if test x
"$use_gcc_tgmath" = xyes
11785 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11788 # Define collect2 in Makefile.
11789 case $host_can_use_collect2 in
11791 *) collect2
='collect2$(exeext)' ;;
11795 # Add a definition of USE_COLLECT2 if system wants one.
11796 case $use_collect2 in
11797 no
) use_collect2
= ;;
11800 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11801 xm_defines
="${xm_defines} USE_COLLECT2"
11802 case $host_can_use_collect2 in
11804 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11811 cat >>confdefs.h
<<_ACEOF
11812 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11816 # ---------------------------
11817 # Assembler & linker features
11818 # ---------------------------
11820 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11821 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11822 # However when ld-new is first executed from the build tree, libtool will
11823 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11824 # to the build tree. While doing this we need to use the previous-stage
11825 # linker, or we have an infinite loop. The presence of a shell script as
11826 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11827 # the gcc/collect-ld script. So we need to know how libtool works, or
11828 # exec-tool will fail.
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11834 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11839 macro_version
='2.2.7a'
11840 macro_revision
='1.3134'
11854 ltmain
="$ac_aux_dir/ltmain.sh"
11856 # Backslashify metacharacters that are still active within
11857 # double-quoted strings.
11858 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11860 # Same as above, but do not quote variable references.
11861 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11863 # Sed substitution to delay expansion of an escaped shell variable in a
11864 # double_quote_subst'ed string.
11865 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11867 # Sed substitution to delay expansion of an escaped single quote.
11868 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11870 # Sed substitution to avoid accidental globbing in evaled expressions
11871 no_glob_subst
='s/\*/\\\*/g'
11873 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11874 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11875 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11878 $as_echo_n "checking how to print strings... " >&6; }
11879 # Test print first, because it will be a builtin if present.
11880 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11881 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11883 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11886 # Use this function as a fallback that always works.
11887 func_fallback_echo ()
11889 eval 'cat <<_LTECHO_EOF
11893 ECHO='func_fallback_echo
'
11896 # func_echo_all arg...
11897 # Invoke $ECHO with all args, space-separated.
11904 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11905 $as_echo "printf" >&6; } ;;
11906 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11907 $as_echo "print -r" >&6; } ;;
11908 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11909 $as_echo "cat" >&6; } ;;
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11926 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11927 if test "${ac_cv_path_SED+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11930 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11931 for ac_i in 1 2 3 4 5 6 7; do
11932 ac_script="$ac_script$as_nl$ac_script"
11934 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11935 { ac_script=; unset ac_script;}
11936 if test -z "$SED"; then
11937 ac_path_SED_found=false
11938 # Loop through the user's path and
test for each of PROGNAME-LIST
11939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11940 for as_dir
in $PATH
11943 test -z "$as_dir" && as_dir
=.
11944 for ac_prog
in sed gsed
; do
11945 for ac_exec_ext
in '' $ac_executable_extensions; do
11946 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11947 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11948 # Check for GNU ac_path_SED and select it if it is found.
11949 # Check for GNU $ac_path_SED
11950 case `"$ac_path_SED" --version 2>&1` in
11952 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11955 $as_echo_n 0123456789 >"conftest.in"
11958 cat "conftest.in" "conftest.in" >"conftest.tmp"
11959 mv "conftest.tmp" "conftest.in"
11960 cp "conftest.in" "conftest.nl"
11961 $as_echo '' >> "conftest.nl"
11962 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11963 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11964 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11965 if test $ac_count -gt ${ac_path_SED_max-0}; then
11966 # Best one so far, save it but keep looking for a better one
11967 ac_cv_path_SED
="$ac_path_SED"
11968 ac_path_SED_max
=$ac_count
11970 # 10*(2^10) chars as input seems more than enough
11971 test $ac_count -gt 10 && break
11973 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11976 $ac_path_SED_found && break 3
11981 if test -z "$ac_cv_path_SED"; then
11982 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11985 ac_cv_path_SED
=$SED
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11990 $as_echo "$ac_cv_path_SED" >&6; }
11991 SED
="$ac_cv_path_SED"
11994 test -z "$SED" && SED
=sed
11995 Xsed
="$SED -e 1s/^X//"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12008 $as_echo_n "checking for fgrep... " >&6; }
12009 if test "${ac_cv_path_FGREP+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12012 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12013 then ac_cv_path_FGREP
="$GREP -F"
12015 if test -z "$FGREP"; then
12016 ac_path_FGREP_found
=false
12017 # Loop through the user's path and test for each of PROGNAME-LIST
12018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12019 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12022 test -z "$as_dir" && as_dir
=.
12023 for ac_prog
in fgrep
; do
12024 for ac_exec_ext
in '' $ac_executable_extensions; do
12025 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12026 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12027 # Check for GNU ac_path_FGREP and select it if it is found.
12028 # Check for GNU $ac_path_FGREP
12029 case `"$ac_path_FGREP" --version 2>&1` in
12031 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12034 $as_echo_n 0123456789 >"conftest.in"
12037 cat "conftest.in" "conftest.in" >"conftest.tmp"
12038 mv "conftest.tmp" "conftest.in"
12039 cp "conftest.in" "conftest.nl"
12040 $as_echo 'FGREP' >> "conftest.nl"
12041 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12042 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12043 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12044 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12045 # Best one so far, save it but keep looking for a better one
12046 ac_cv_path_FGREP
="$ac_path_FGREP"
12047 ac_path_FGREP_max
=$ac_count
12049 # 10*(2^10) chars as input seems more than enough
12050 test $ac_count -gt 10 && break
12052 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12055 $ac_path_FGREP_found && break 3
12060 if test -z "$ac_cv_path_FGREP"; then
12061 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12064 ac_cv_path_FGREP
=$FGREP
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12070 $as_echo "$ac_cv_path_FGREP" >&6; }
12071 FGREP
="$ac_cv_path_FGREP"
12074 test -z "$GREP" && GREP
=grep
12094 # Check whether --with-gnu-ld was given.
12095 if test "${with_gnu_ld+set}" = set; then :
12096 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12102 if test "$GCC" = yes; then
12103 # Check if gcc -print-prog-name=ld gives a path.
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12105 $as_echo_n "checking for ld used by $CC... " >&6; }
12108 # gcc leaves a trailing carriage return which upsets mingw
12109 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12111 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12114 # Accept absolute paths.
12116 re_direlt
='/[^/][^/]*/\.\./'
12117 # Canonicalize the pathname of ld
12118 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12119 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12120 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12122 test -z "$LD" && LD
="$ac_prog"
12125 # If it fails, then pretend we aren't using GCC.
12129 # If it is relative, then search for the first ld in PATH.
12130 with_gnu_ld
=unknown
12133 elif test "$with_gnu_ld" = yes; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12135 $as_echo_n "checking for GNU ld... " >&6; }
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12138 $as_echo_n "checking for non-GNU ld... " >&6; }
12140 if test "${lt_cv_path_LD+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
12143 if test -z "$LD"; then
12144 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12145 for ac_dir
in $PATH; do
12147 test -z "$ac_dir" && ac_dir
=.
12148 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12149 lt_cv_path_LD
="$ac_dir/$ac_prog"
12150 # Check to see if the program is GNU ld. I'd rather use --version,
12151 # but apparently some variants of GNU ld only accept -v.
12152 # Break only if it was the GNU/non-GNU ld that we prefer.
12153 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12154 *GNU
* |
*'with BFD'*)
12155 test "$with_gnu_ld" != no
&& break
12158 test "$with_gnu_ld" != yes && break
12165 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12169 LD
="$lt_cv_path_LD"
12170 if test -n "$LD"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12172 $as_echo "$LD" >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12177 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12179 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12180 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12183 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12184 case `$LD -v 2>&1 </dev/null` in
12185 *GNU
* |
*'with BFD'*)
12186 lt_cv_prog_gnu_ld
=yes
12189 lt_cv_prog_gnu_ld
=no
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12194 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12195 with_gnu_ld
=$lt_cv_prog_gnu_ld
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12206 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12207 if test "${lt_cv_path_NM+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12210 if test -n "$NM"; then
12211 # Let the user override the test.
12212 lt_cv_path_NM
="$NM"
12214 lt_nm_to_check
="${ac_tool_prefix}nm"
12215 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12216 lt_nm_to_check
="$lt_nm_to_check nm"
12218 for lt_tmp_nm
in $lt_nm_to_check; do
12219 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12220 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12222 test -z "$ac_dir" && ac_dir
=.
12223 tmp_nm
="$ac_dir/$lt_tmp_nm"
12224 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12225 # Check to see if the nm accepts a BSD-compat flag.
12226 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12227 # nm: unknown option "B" ignored
12228 # Tru64's nm complains that /dev/null is an invalid object file
12229 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12230 */dev
/null
* |
*'Invalid file or object type'*)
12231 lt_cv_path_NM
="$tmp_nm -B"
12235 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12237 lt_cv_path_NM
="$tmp_nm -p"
12241 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12242 continue # so that we can try to find one that supports BSD flags
12251 : ${lt_cv_path_NM=no}
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12255 $as_echo "$lt_cv_path_NM" >&6; }
12256 if test "$lt_cv_path_NM" != "no"; then
12257 NM
="$lt_cv_path_NM"
12259 # Didn't find any BSD compatible name lister, look for dumpbin.
12260 if test -n "$DUMPBIN"; then :
12261 # Let the user override the test.
12263 if test -n "$ac_tool_prefix"; then
12264 for ac_prog
in dumpbin
"link -dump"
12266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12267 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12273 if test -n "$DUMPBIN"; then
12274 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12277 for as_dir
in $PATH
12280 test -z "$as_dir" && as_dir
=.
12281 for ac_exec_ext
in '' $ac_executable_extensions; do
12282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12283 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 DUMPBIN
=$ac_cv_prog_DUMPBIN
12294 if test -n "$DUMPBIN"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12296 $as_echo "$DUMPBIN" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12303 test -n "$DUMPBIN" && break
12306 if test -z "$DUMPBIN"; then
12307 ac_ct_DUMPBIN
=$DUMPBIN
12308 for ac_prog
in dumpbin
"link -dump"
12310 # Extract the first word of "$ac_prog", so it can be a program name with args.
12311 set dummy
$ac_prog; ac_word
=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12317 if test -n "$ac_ct_DUMPBIN"; then
12318 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12321 for as_dir
in $PATH
12324 test -z "$as_dir" && as_dir
=.
12325 for ac_exec_ext
in '' $ac_executable_extensions; do
12326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12338 if test -n "$ac_ct_DUMPBIN"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12340 $as_echo "$ac_ct_DUMPBIN" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12347 test -n "$ac_ct_DUMPBIN" && break
12350 if test "x$ac_ct_DUMPBIN" = x
; then
12353 case $cross_compiling:$ac_tool_warned in
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12357 ac_tool_warned
=yes ;;
12359 DUMPBIN
=$ac_ct_DUMPBIN
12363 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12365 DUMPBIN
="$DUMPBIN -symbols"
12373 if test "$DUMPBIN" != ":"; then
12377 test -z "$NM" && NM
=nm
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12385 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12386 if test "${lt_cv_nm_interface+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12389 lt_cv_nm_interface
="BSD nm"
12390 echo "int some_variable = 0;" > conftest.
$ac_ext
12391 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12392 (eval "$ac_compile" 2>conftest.err
)
12393 cat conftest.err
>&5
12394 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12395 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12396 cat conftest.err
>&5
12397 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12398 cat conftest.out
>&5
12399 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12400 lt_cv_nm_interface
="MS dumpbin"
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12405 $as_echo "$lt_cv_nm_interface" >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12408 $as_echo_n "checking whether ln -s works... " >&6; }
12410 if test "$LN_S" = "ln -s"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12415 $as_echo "no, using $LN_S" >&6; }
12418 # find the maximum length of command line arguments
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12420 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12421 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12429 # On DJGPP, this test can blow up pretty badly due to problems in libc
12430 # (any single argument exceeding 2000 bytes causes a buffer overrun
12431 # during glob expansion). Even if it were fixed, the result of this
12432 # check would be larger than it should be.
12433 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12437 # Under GNU Hurd, this test is not required because there is
12438 # no limit to the length of command line arguments.
12439 # Libtool will interpret -1 as no limit whatsoever
12440 lt_cv_sys_max_cmd_len
=-1;
12443 cygwin
* | mingw
* | cegcc
*)
12444 # On Win9x/ME, this test blows up -- it succeeds, but takes
12445 # about 5 minutes as the teststring grows exponentially.
12446 # Worse, since 9x/ME are not pre-emptively multitasking,
12447 # you end up with a "frozen" computer, even though with patience
12448 # the test eventually succeeds (with a max line length of 256k).
12449 # Instead, let's just punt: use the minimum linelength reported by
12450 # all of the supported platforms: 8192 (on NT/2K/XP).
12451 lt_cv_sys_max_cmd_len
=8192;
12455 # On MiNT this can take a long time and run out of memory.
12456 lt_cv_sys_max_cmd_len
=8192;
12460 # On AmigaOS with pdksh, this test takes hours, literally.
12461 # So we just punt and use a minimum line length of 8192.
12462 lt_cv_sys_max_cmd_len
=8192;
12465 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12466 # This has been around since 386BSD, at least. Likely further.
12467 if test -x /sbin
/sysctl
; then
12468 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12469 elif test -x /usr
/sbin
/sysctl
; then
12470 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12472 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12474 # And add a safety zone
12475 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12476 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12481 lt_cv_sys_max_cmd_len
=196608
12485 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12486 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12487 # nice to cause kernel panics so lets avoid the loop below.
12488 # First set a reasonable default.
12489 lt_cv_sys_max_cmd_len
=16384
12491 if test -x /sbin
/sysconfig
; then
12492 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12493 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12498 lt_cv_sys_max_cmd_len
=102400
12500 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12501 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12502 if test -n "$kargmax"; then
12503 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12505 lt_cv_sys_max_cmd_len
=32768
12509 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12510 if test -n "$lt_cv_sys_max_cmd_len"; then
12511 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12512 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12514 # Make teststring a little bigger before we do anything with it.
12515 # a 1K string should be a reasonable start.
12516 for i
in 1 2 3 4 5 6 7 8 ; do
12517 teststring
=$teststring$teststring
12519 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12520 # If test is not a shell built-in, we'll probably end up computing a
12521 # maximum length that is only half of the actual maximum length, but
12523 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12524 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12525 test $i != 17 # 1/2 MB should be enough
12528 teststring
=$teststring$teststring
12530 # Only check the string length outside the loop.
12531 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12533 # Add a significant safety factor because C++ compilers can tack on
12534 # massive amounts of additional arguments before passing them to the
12535 # linker. It appears as though 1/2 is a usable value.
12536 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12543 if test -n $lt_cv_sys_max_cmd_len ; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12545 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12548 $as_echo "none" >&6; }
12550 max_cmd_len
=$lt_cv_sys_max_cmd_len
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12562 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12563 # Try some XSI features
12565 ( _lt_dummy
="a/b/c"
12566 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12568 && eval 'test $(( 1 + 1 )) -eq 2 \
12569 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12572 $as_echo "$xsi_shell" >&6; }
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12576 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12578 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12580 && lt_shell_append=yes
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12582 $as_echo "$lt_shell_append" >&6; }
12585 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12595 # test EBCDIC or ASCII
12596 case `echo X|tr X '\101'` in
12597 A) # ASCII based system
12598 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12599 lt_SP2NL='tr \040 \012'
12600 lt_NL2SP='tr \015\012 \040\040'
12602 *) # EBCDIC based system
12603 lt_SP2NL='tr \100 \n'
12604 lt_NL2SP='tr \r\n \100\100'
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12617 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12618 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12619 $as_echo_n "(cached
) " >&6
12621 lt_cv_ld_reload_flag='-r'
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12624 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12625 reload_flag=$lt_cv_ld_reload_flag
12626 case $reload_flag in
12628 *) reload_flag=" $reload_flag" ;;
12630 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12633 if test "$GCC" = yes; then
12634 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12636 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12649 if test -n "$ac_tool_prefix"; then
12650 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12651 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12653 $as_echo_n "checking
for $ac_word...
" >&6; }
12654 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12655 $as_echo_n "(cached
) " >&6
12657 if test -n "$OBJDUMP"; then
12658 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661 for as_dir in $PATH
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
12666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12667 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12677 OBJDUMP=$ac_cv_prog_OBJDUMP
12678 if test -n "$OBJDUMP"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12680 $as_echo "$OBJDUMP" >&6; }
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12683 $as_echo "no
" >&6; }
12688 if test -z "$ac_cv_prog_OBJDUMP"; then
12689 ac_ct_OBJDUMP=$OBJDUMP
12690 # Extract the first word of "objdump
", so it can be a program name with args.
12691 set dummy objdump; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12693 $as_echo_n "checking
for $ac_word...
" >&6; }
12694 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12695 $as_echo_n "(cached
) " >&6
12697 if test -n "$ac_ct_OBJDUMP"; then
12698 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12717 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12718 if test -n "$ac_ct_OBJDUMP"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12720 $as_echo "$ac_ct_OBJDUMP" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12723 $as_echo "no
" >&6; }
12726 if test "x
$ac_ct_OBJDUMP" = x; then
12729 case $cross_compiling:$ac_tool_warned in
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12732 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12733 ac_tool_warned=yes ;;
12735 OBJDUMP=$ac_ct_OBJDUMP
12738 OBJDUMP="$ac_cv_prog_OBJDUMP"
12741 test -z "$OBJDUMP" && OBJDUMP=objdump
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12752 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12753 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12754 $as_echo_n "(cached
) " >&6
12756 lt_cv_file_magic_cmd='$MAGIC_CMD'
12757 lt_cv_file_magic_test_file=
12758 lt_cv_deplibs_check_method='unknown'
12759 # Need to set the preceding variable on all platforms that support
12760 # interlibrary dependencies.
12761 # 'none' -- dependencies not supported.
12762 # `unknown' -- same as none, but documents that we really don't know.
12763 # 'pass_all' -- all dependencies passed with no checks.
12764 # 'test_compile' -- check by making test program.
12765 # 'file_magic [[regex]]' -- check by looking for files in library path
12766 # which responds to the $file_magic_cmd with a given extended regex.
12767 # If you have `file' or equivalent on your system and you're not sure
12768 # whether `pass_all' will *always* work, you probably want this one.
12772 lt_cv_deplibs_check_method=pass_all
12776 lt_cv_deplibs_check_method=pass_all
12780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12781 lt_cv_file_magic_cmd='/usr/bin/file -L'
12782 lt_cv_file_magic_test_file=/shlib/libc.so
12786 # func_win32_libid is a shell function defined in ltmain.sh
12787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12788 lt_cv_file_magic_cmd='func_win32_libid'
12792 # Base MSYS/MinGW do not provide the 'file' command needed by
12793 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12794 # unless we find 'file', for example because we are cross-compiling.
12795 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12796 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12797 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12798 lt_cv_file_magic_cmd='func_win32_libid'
12800 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12801 lt_cv_file_magic_cmd='$OBJDUMP -f'
12806 # use the weaker test based on 'objdump'. See mingw*.
12807 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12808 lt_cv_file_magic_cmd='$OBJDUMP -f'
12811 darwin* | rhapsody*)
12812 lt_cv_deplibs_check_method=pass_all
12815 freebsd* | dragonfly*)
12816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12819 # Not sure whether the presence of OpenBSD here was a mistake.
12820 # Let's accept both of them until this is cleared up.
12821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12822 lt_cv_file_magic_cmd=/usr/bin/file
12823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12827 lt_cv_deplibs_check_method=pass_all
12832 lt_cv_deplibs_check_method=pass_all
12836 lt_cv_deplibs_check_method=pass_all
12839 hpux10.20* | hpux11*)
12840 lt_cv_file_magic_cmd=/usr/bin/file
12843 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12844 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12847 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]'
12848 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12852 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12858 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12862 irix5* | irix6* | nonstopux*)
12864 *-32|*"-32 ") libmagic=32-bit;;
12865 *-n32|*"-n32 ") libmagic=N32;;
12866 *-64|*"-64 ") libmagic=64-bit;;
12867 *) libmagic=never-match;;
12869 lt_cv_deplibs_check_method=pass_all
12872 # This must be Linux ELF.
12873 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12874 lt_cv_deplibs_check_method=pass_all
12878 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12887 lt_cv_file_magic_cmd=/usr/bin/file
12888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12892 lt_cv_deplibs_check_method=pass_all
12896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12903 osf3* | osf4* | osf5*)
12904 lt_cv_deplibs_check_method=pass_all
12908 lt_cv_deplibs_check_method=pass_all
12912 lt_cv_deplibs_check_method=pass_all
12915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12916 lt_cv_deplibs_check_method=pass_all
12920 case $host_vendor in
12922 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]'
12923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12926 lt_cv_deplibs_check_method=pass_all
12929 lt_cv_file_magic_cmd='/bin/file'
12930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12933 lt_cv_file_magic_cmd='/bin/file'
12934 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12935 lt_cv_file_magic_test_file=/lib/libc.so
12938 lt_cv_deplibs_check_method=pass_all
12941 lt_cv_deplibs_check_method=pass_all
12947 lt_cv_deplibs_check_method=pass_all
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12953 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12954 file_magic_cmd=$lt_cv_file_magic_cmd
12955 deplibs_check_method=$lt_cv_deplibs_check_method
12956 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12969 if test -n "$ac_tool_prefix"; then
12970 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12971 set dummy ${ac_tool_prefix}ar; ac_word=$2
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12973 $as_echo_n "checking
for $ac_word...
" >&6; }
12974 if test "${ac_cv_prog_AR+set}" = set; then :
12975 $as_echo_n "(cached
) " >&6
12977 if test -n "$AR"; then
12978 ac_cv_prog_AR="$AR" # Let the user override the test.
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
12986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987 ac_cv_prog_AR="${ac_tool_prefix}ar"
12988 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12998 if test -n "$AR"; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13000 $as_echo "$AR" >&6; }
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13003 $as_echo "no
" >&6; }
13008 if test -z "$ac_cv_prog_AR"; then
13010 # Extract the first word of "ar", so it can be a program name with args.
13011 set dummy ar; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13013 $as_echo_n "checking
for $ac_word...
" >&6; }
13014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13015 $as_echo_n "(cached
) " >&6
13017 if test -n "$ac_ct_AR"; then
13018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027 ac_cv_prog_ac_ct_AR="ar"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13038 if test -n "$ac_ct_AR"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13040 $as_echo "$ac_ct_AR" >&6; }
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13043 $as_echo "no
" >&6; }
13046 if test "x
$ac_ct_AR" = x; then
13049 case $cross_compiling:$ac_tool_warned in
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13052 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13053 ac_tool_warned=yes ;;
13058 AR="$ac_cv_prog_AR"
13061 test -z "$AR" && AR=ar
13062 test -z "$AR_FLAGS" && AR_FLAGS=cru
13074 if test -n "$ac_tool_prefix"; then
13075 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13076 set dummy ${ac_tool_prefix}strip; ac_word=$2
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13078 $as_echo_n "checking
for $ac_word...
" >&6; }
13079 if test "${ac_cv_prog_STRIP+set}" = set; then :
13080 $as_echo_n "(cached
) " >&6
13082 if test -n "$STRIP"; then
13083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13102 STRIP=$ac_cv_prog_STRIP
13103 if test -n "$STRIP"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13105 $as_echo "$STRIP" >&6; }
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13108 $as_echo "no
" >&6; }
13113 if test -z "$ac_cv_prog_STRIP"; then
13115 # Extract the first word of "strip
", so it can be a program name with args.
13116 set dummy strip; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13118 $as_echo_n "checking
for $ac_word...
" >&6; }
13119 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13120 $as_echo_n "(cached
) " >&6
13122 if test -n "$ac_ct_STRIP"; then
13123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_prog_ac_ct_STRIP="strip
"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13142 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13143 if test -n "$ac_ct_STRIP"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13145 $as_echo "$ac_ct_STRIP" >&6; }
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13148 $as_echo "no
" >&6; }
13151 if test "x
$ac_ct_STRIP" = x; then
13154 case $cross_compiling:$ac_tool_warned in
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13157 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13158 ac_tool_warned=yes ;;
13163 STRIP="$ac_cv_prog_STRIP"
13166 test -z "$STRIP" && STRIP=:
13173 if test -n "$ac_tool_prefix"; then
13174 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13177 $as_echo_n "checking
for $ac_word...
" >&6; }
13178 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13179 $as_echo_n "(cached
) " >&6
13181 if test -n "$RANLIB"; then
13182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13201 RANLIB=$ac_cv_prog_RANLIB
13202 if test -n "$RANLIB"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13204 $as_echo "$RANLIB" >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13207 $as_echo "no
" >&6; }
13212 if test -z "$ac_cv_prog_RANLIB"; then
13213 ac_ct_RANLIB=$RANLIB
13214 # Extract the first word of "ranlib
", so it can be a program name with args.
13215 set dummy ranlib; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13217 $as_echo_n "checking
for $ac_word...
" >&6; }
13218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13219 $as_echo_n "(cached
) " >&6
13221 if test -n "$ac_ct_RANLIB"; then
13222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13225 for as_dir in $PATH
13228 test -z "$as_dir" && as_dir=.
13229 for ac_exec_ext in '' $ac_executable_extensions; do
13230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13231 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13232 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13242 if test -n "$ac_ct_RANLIB"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13244 $as_echo "$ac_ct_RANLIB" >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13247 $as_echo "no
" >&6; }
13250 if test "x
$ac_ct_RANLIB" = x; then
13253 case $cross_compiling:$ac_tool_warned in
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13256 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13257 ac_tool_warned=yes ;;
13259 RANLIB=$ac_ct_RANLIB
13262 RANLIB="$ac_cv_prog_RANLIB"
13265 test -z "$RANLIB" && RANLIB=:
13272 # Determine commands to create old-style static archives.
13273 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13274 old_postinstall_cmds='chmod 644 $oldlib'
13275 old_postuninstall_cmds=
13277 if test -n "$RANLIB"; then
13280 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13283 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13286 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13291 lock_old_archive_extraction=yes ;;
13293 lock_old_archive_extraction=no ;;
13334 # If no C compiler was specified, use CC.
13337 # If no C compiler flags were specified, use CFLAGS.
13338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13340 # Allow CC to be a program name with arguments.
13344 # Check for command to grab the raw symbol name followed by C symbol from nm.
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13346 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13347 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13348 $as_echo_n "(cached
) " >&6
13351 # These are sane defaults that work on at least a few old systems.
13352 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13354 # Character class describing NM global symbol codes.
13355 symcode='[BCDEGRST]'
13357 # Regexp to match symbols that can be accessed directly from C.
13358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13360 # Define system-specific variables.
13365 cygwin* | mingw* | pw32* | cegcc*)
13366 symcode='[ABCDGISTW]'
13369 if test "$host_cpu" = ia64; then
13370 symcode='[ABCDEGRST]'
13373 irix* | nonstopux*)
13374 symcode='[BCDEGRST]'
13377 symcode='[BCDEGQRST]'
13388 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13396 # If we're using GNU nm, then use its standard symbol codes.
13397 case `$NM -V 2>&1` in
13398 *GNU* | *'with BFD'*)
13399 symcode='[ABCDGIRSTW]' ;;
13402 # Transform an extracted symbol line into a proper C declaration.
13403 # Some systems (esp. on ia64) link data and code symbols differently,
13404 # so use this general approach.
13405 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13407 # Transform an extracted symbol line into symbol name and symbol address
13408 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13409 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'"
13411 # Handle CRLF in mingw tool chain
13415 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13419 # Try without a prefix underscore, then with it.
13420 for ac_symprfx in "" "_
"; do
13422 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13423 symxfrm="\\1 $ac_symprfx\\2 \\2"
13425 # Write the raw and C identifiers.
13426 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13427 # Fake it for dumpbin and say T for any non-static function
13428 # and D for any global variable.
13429 # Also find C++ and __fastcall symbols from MSVC++,
13430 # which start with @ or ?.
13431 lt_cv_sys_global_symbol_pipe="$AWK '"\
13432 " {last_section=section; section=\$ 3};"\
13433 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13434 " \$ 0!~/External *\|/{next};"\
13435 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13436 " {if(hide[section]) next};"\
13437 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13438 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13439 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13440 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13441 " ' prfx
=^
$ac_symprfx"
13443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13446 # Check to see that the pipe works correctly.
13450 cat > conftest.$ac_ext <<_LT_EOF
13455 void nm_test_func(void);
13456 void nm_test_func(void){}
13460 int main(){nm_test_var='a';nm_test_func();return(0);}
13463 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13464 (eval $ac_compile) 2>&5
13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13467 test $ac_status = 0; }; then
13468 # Now try to grab the symbols.
13470 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13471 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13473 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13474 test $ac_status = 0; } && test -s "$nlist"; then
13475 # Try sorting and uniquifying the output.
13476 if sort "$nlist" | uniq > "$nlist"T; then
13477 mv -f "$nlist"T "$nlist"
13482 # Make sure that we snagged all the symbols we need.
13483 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13484 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13485 cat <<_LT_EOF > conftest.$ac_ext
13491 # Now generate the symbol file.
13492 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13494 cat <<_LT_EOF >> conftest.$ac_ext
13496 /* The mapping between symbol names and symbols. */
13501 lt__PROGRAM__LTX_preloaded_symbols[] =
13503 { "@PROGRAM@
", (void *) 0 },
13505 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13506 cat <<\_LT_EOF >> conftest.$ac_ext
13510 /* This works around a problem in FreeBSD linker */
13511 #ifdef FREEBSD_WORKAROUND
13512 static const void *lt_preloaded_setup() {
13513 return lt__PROGRAM__LTX_preloaded_symbols;
13521 # Now try linking the two files.
13522 mv conftest.$ac_objext conftstm.$ac_objext
13523 lt_save_LIBS="$LIBS"
13524 lt_save_CFLAGS="$CFLAGS"
13525 LIBS="conftstm.
$ac_objext"
13526 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13527 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13528 (eval $ac_link) 2>&5
13530 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13531 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13534 LIBS="$lt_save_LIBS"
13535 CFLAGS="$lt_save_CFLAGS"
13537 echo "cannot
find nm_test_func
in $nlist" >&5
13540 echo "cannot
find nm_test_var
in $nlist" >&5
13543 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13546 echo "$progname: failed program was
:" >&5
13547 cat conftest.$ac_ext >&5
13549 rm -rf conftest* conftst*
13551 # Do not use the global_symbol_pipe unless it works.
13552 if test "$pipe_works" = yes; then
13555 lt_cv_sys_global_symbol_pipe=
13561 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13562 lt_cv_sys_global_symbol_to_cdecl=
13564 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13566 $as_echo "failed
" >&6; }
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13569 $as_echo "ok
" >&6; }
13593 # Check whether --enable-libtool-lock was given.
13594 if test "${enable_libtool_lock+set}" = set; then :
13595 enableval=$enable_libtool_lock;
13598 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13600 # Some flags need to be propagated to the compiler or linker for good
13604 # Find out which ABI we are using.
13605 echo 'int i;' > conftest.$ac_ext
13606 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13607 (eval $ac_compile) 2>&5
13609 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13610 test $ac_status = 0; }; then
13611 case `/usr/bin/file conftest.$ac_objext` in
13613 HPUX_IA64_MODE="32"
13616 HPUX_IA64_MODE="64"
13623 # Find out which ABI we are using.
13624 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13625 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13626 (eval $ac_compile) 2>&5
13628 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13629 test $ac_status = 0; }; then
13630 if test "$lt_cv_prog_gnu_ld" = yes; then
13631 case `/usr/bin/file conftest.$ac_objext` in
13633 LD="${LD-ld} -melf32bsmip"
13636 LD="${LD-ld} -melf32bmipn32"
13639 LD="${LD-ld} -melf64bmip"
13643 case `/usr/bin/file conftest.$ac_objext` in
13659 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13660 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13661 # Find out which ABI we are using.
13662 echo 'int i;' > conftest.$ac_ext
13663 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13664 (eval $ac_compile) 2>&5
13666 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13667 test $ac_status = 0; }; then
13668 case `/usr/bin/file conftest.o` in
13671 x86_64-*kfreebsd*-gnu)
13672 LD="${LD-ld} -m elf_i386_fbsd
"
13675 case `/usr/bin/file conftest.o` in
13677 LD="${LD-ld} -m elf32_x86_64
"
13680 LD="${LD-ld} -m elf_i386
"
13684 ppc64-*linux*|powerpc64-*linux*)
13685 LD="${LD-ld} -m elf32ppclinux
"
13688 LD="${LD-ld} -m elf_s390
"
13691 LD="${LD-ld} -m elf32_sparc
"
13697 x86_64-*kfreebsd*-gnu)
13698 LD="${LD-ld} -m elf_x86_64_fbsd
"
13701 LD="${LD-ld} -m elf_x86_64
"
13703 ppc*-*linux*|powerpc*-*linux*)
13704 LD="${LD-ld} -m elf64ppc
"
13706 s390*-*linux*|s390*-*tpf*)
13707 LD="${LD-ld} -m elf64_s390
"
13710 LD="${LD-ld} -m elf64_sparc
"
13720 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13721 SAVE_CFLAGS="$CFLAGS"
13722 CFLAGS="$CFLAGS -belf"
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13724 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13725 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13726 $as_echo_n "(cached
) " >&6
13729 ac_cpp='$CPP $CPPFLAGS'
13730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13745 if ac_fn_c_try_link "$LINENO"; then :
13746 lt_cv_cc_needs_belf=yes
13748 lt_cv_cc_needs_belf=no
13750 rm -f core conftest.err conftest.$ac_objext \
13751 conftest$ac_exeext conftest.$ac_ext
13753 ac_cpp='$CPP $CPPFLAGS'
13754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13760 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13761 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13762 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13763 CFLAGS="$SAVE_CFLAGS"
13767 # Find out which ABI we are using.
13768 echo 'int i;' > conftest.$ac_ext
13769 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13770 (eval $ac_compile) 2>&5
13772 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13773 test $ac_status = 0; }; then
13774 case `/usr/bin/file conftest.o` in
13776 case $lt_cv_prog_gnu_ld in
13777 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13779 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13791 need_locks="$enable_libtool_lock"
13795 rhapsody* | darwin*)
13796 if test -n "$ac_tool_prefix"; then
13797 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13798 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13800 $as_echo_n "checking
for $ac_word...
" >&6; }
13801 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13802 $as_echo_n "(cached
) " >&6
13804 if test -n "$DSYMUTIL"; then
13805 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13811 test -z "$as_dir" && as_dir=.
13812 for ac_exec_ext in '' $ac_executable_extensions; do
13813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13814 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13815 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13824 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13825 if test -n "$DSYMUTIL"; then
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13827 $as_echo "$DSYMUTIL" >&6; }
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13830 $as_echo "no
" >&6; }
13835 if test -z "$ac_cv_prog_DSYMUTIL"; then
13836 ac_ct_DSYMUTIL=$DSYMUTIL
13837 # Extract the first word of "dsymutil
", so it can be a program name with args.
13838 set dummy dsymutil; ac_word=$2
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13840 $as_echo_n "checking
for $ac_word...
" >&6; }
13841 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13842 $as_echo_n "(cached
) " >&6
13844 if test -n "$ac_ct_DSYMUTIL"; then
13845 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $PATH
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13854 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13864 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13865 if test -n "$ac_ct_DSYMUTIL"; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13867 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13870 $as_echo "no
" >&6; }
13873 if test "x
$ac_ct_DSYMUTIL" = x; then
13876 case $cross_compiling:$ac_tool_warned in
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13879 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13880 ac_tool_warned=yes ;;
13882 DSYMUTIL=$ac_ct_DSYMUTIL
13885 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13888 if test -n "$ac_tool_prefix"; then
13889 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13890 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13892 $as_echo_n "checking
for $ac_word...
" >&6; }
13893 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13894 $as_echo_n "(cached
) " >&6
13896 if test -n "$NMEDIT"; then
13897 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13903 test -z "$as_dir" && as_dir=.
13904 for ac_exec_ext in '' $ac_executable_extensions; do
13905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13906 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13907 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13916 NMEDIT=$ac_cv_prog_NMEDIT
13917 if test -n "$NMEDIT"; then
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13919 $as_echo "$NMEDIT" >&6; }
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13922 $as_echo "no
" >&6; }
13927 if test -z "$ac_cv_prog_NMEDIT"; then
13928 ac_ct_NMEDIT=$NMEDIT
13929 # Extract the first word of "nmedit
", so it can be a program name with args.
13930 set dummy nmedit; ac_word=$2
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13932 $as_echo_n "checking
for $ac_word...
" >&6; }
13933 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13934 $as_echo_n "(cached
) " >&6
13936 if test -n "$ac_ct_NMEDIT"; then
13937 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13946 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13947 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13956 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13957 if test -n "$ac_ct_NMEDIT"; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13959 $as_echo "$ac_ct_NMEDIT" >&6; }
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13962 $as_echo "no
" >&6; }
13965 if test "x
$ac_ct_NMEDIT" = x; then
13968 case $cross_compiling:$ac_tool_warned in
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13971 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13972 ac_tool_warned=yes ;;
13974 NMEDIT=$ac_ct_NMEDIT
13977 NMEDIT="$ac_cv_prog_NMEDIT"
13980 if test -n "$ac_tool_prefix"; then
13981 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13982 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13984 $as_echo_n "checking
for $ac_word...
" >&6; }
13985 if test "${ac_cv_prog_LIPO+set}" = set; then :
13986 $as_echo_n "(cached
) " >&6
13988 if test -n "$LIPO"; then
13989 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13998 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13999 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14008 LIPO=$ac_cv_prog_LIPO
14009 if test -n "$LIPO"; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14011 $as_echo "$LIPO" >&6; }
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14014 $as_echo "no
" >&6; }
14019 if test -z "$ac_cv_prog_LIPO"; then
14021 # Extract the first word of "lipo
", so it can be a program name with args.
14022 set dummy lipo; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14024 $as_echo_n "checking
for $ac_word...
" >&6; }
14025 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14026 $as_echo_n "(cached
) " >&6
14028 if test -n "$ac_ct_LIPO"; then
14029 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14035 test -z "$as_dir" && as_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14038 ac_cv_prog_ac_ct_LIPO="lipo
"
14039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14048 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14049 if test -n "$ac_ct_LIPO"; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14051 $as_echo "$ac_ct_LIPO" >&6; }
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14054 $as_echo "no
" >&6; }
14057 if test "x
$ac_ct_LIPO" = x; then
14060 case $cross_compiling:$ac_tool_warned in
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14063 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14064 ac_tool_warned=yes ;;
14069 LIPO="$ac_cv_prog_LIPO"
14072 if test -n "$ac_tool_prefix"; then
14073 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14074 set dummy ${ac_tool_prefix}otool; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14076 $as_echo_n "checking
for $ac_word...
" >&6; }
14077 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14078 $as_echo_n "(cached
) " >&6
14080 if test -n "$OTOOL"; then
14081 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14090 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14100 OTOOL=$ac_cv_prog_OTOOL
14101 if test -n "$OTOOL"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14103 $as_echo "$OTOOL" >&6; }
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14106 $as_echo "no
" >&6; }
14111 if test -z "$ac_cv_prog_OTOOL"; then
14113 # Extract the first word of "otool
", so it can be a program name with args.
14114 set dummy otool; ac_word=$2
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14116 $as_echo_n "checking
for $ac_word...
" >&6; }
14117 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14118 $as_echo_n "(cached
) " >&6
14120 if test -n "$ac_ct_OTOOL"; then
14121 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14124 for as_dir in $PATH
14127 test -z "$as_dir" && as_dir=.
14128 for ac_exec_ext in '' $ac_executable_extensions; do
14129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130 ac_cv_prog_ac_ct_OTOOL="otool
"
14131 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14140 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14141 if test -n "$ac_ct_OTOOL"; then
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14143 $as_echo "$ac_ct_OTOOL" >&6; }
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14146 $as_echo "no
" >&6; }
14149 if test "x
$ac_ct_OTOOL" = x; then
14152 case $cross_compiling:$ac_tool_warned in
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14155 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14156 ac_tool_warned=yes ;;
14161 OTOOL="$ac_cv_prog_OTOOL"
14164 if test -n "$ac_tool_prefix"; then
14165 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14166 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14168 $as_echo_n "checking
for $ac_word...
" >&6; }
14169 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14170 $as_echo_n "(cached
) " >&6
14172 if test -n "$OTOOL64"; then
14173 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14182 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14192 OTOOL64=$ac_cv_prog_OTOOL64
14193 if test -n "$OTOOL64"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14195 $as_echo "$OTOOL64" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14198 $as_echo "no
" >&6; }
14203 if test -z "$ac_cv_prog_OTOOL64"; then
14204 ac_ct_OTOOL64=$OTOOL64
14205 # Extract the first word of "otool64
", so it can be a program name with args.
14206 set dummy otool64; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14208 $as_echo_n "checking
for $ac_word...
" >&6; }
14209 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14210 $as_echo_n "(cached
) " >&6
14212 if test -n "$ac_ct_OTOOL64"; then
14213 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14222 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14232 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14233 if test -n "$ac_ct_OTOOL64"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14235 $as_echo "$ac_ct_OTOOL64" >&6; }
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14238 $as_echo "no
" >&6; }
14241 if test "x
$ac_ct_OTOOL64" = x; then
14244 case $cross_compiling:$ac_tool_warned in
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14247 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14248 ac_tool_warned=yes ;;
14250 OTOOL64=$ac_ct_OTOOL64
14253 OTOOL64="$ac_cv_prog_OTOOL64"
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14283 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14284 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14285 $as_echo_n "(cached
) " >&6
14287 lt_cv_apple_cc_single_mod=no
14288 if test -z "${LT_MULTI_MODULE}"; then
14289 # By default we will add the -single_module flag. You can override
14290 # by either setting the environment variable LT_MULTI_MODULE
14291 # non-empty at configure time, or by adding -multi_module to the
14293 rm -rf libconftest.dylib*
14294 echo "int foo
(void
){return 1;}" > conftest.c
14295 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14296 -dynamiclib -Wl,-single_module conftest.c
" >&5
14297 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14298 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14300 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14301 lt_cv_apple_cc_single_mod=yes
14303 cat conftest.err >&5
14305 rm -rf libconftest.dylib*
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14310 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14312 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14313 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14314 $as_echo_n "(cached
) " >&6
14316 lt_cv_ld_exported_symbols_list=no
14317 save_LDFLAGS=$LDFLAGS
14318 echo "_main
" > conftest.sym
14319 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14331 if ac_fn_c_try_link "$LINENO"; then :
14332 lt_cv_ld_exported_symbols_list=yes
14334 lt_cv_ld_exported_symbols_list=no
14336 rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext conftest.$ac_ext
14338 LDFLAGS="$save_LDFLAGS"
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14342 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14344 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14345 if test "${lt_cv_ld_force_load+set}" = set; then :
14346 $as_echo_n "(cached
) " >&6
14348 lt_cv_ld_force_load=no
14349 cat > conftest.c << _LT_EOF
14350 int forced_loaded() { return 2;}
14352 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14353 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14354 echo "$AR cru libconftest.a conftest.o
" >&5
14355 $AR cru libconftest.a conftest.o 2>&5
14356 cat > conftest.c << _LT_EOF
14357 int main() { return 0;}
14359 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14360 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14362 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14363 lt_cv_ld_force_load=yes
14365 cat conftest.err >&5
14367 rm -f conftest.err libconftest.a conftest conftest.c
14368 rm -rf conftest.dSYM
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14372 $as_echo "$lt_cv_ld_force_load" >&6; }
14374 rhapsody* | darwin1.[012])
14375 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14377 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14378 darwin*) # darwin 5.x on
14379 # if running on 10.5 or later, the deployment target defaults
14380 # to the OS version, if on x86, and 10.4, the deployment
14381 # target defaults to 10.4. Don't you love it?
14382 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14383 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14384 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14386 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14388 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14392 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14393 _lt_dar_single_mod='$single_module'
14395 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14396 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14398 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14400 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14401 _lt_dsymutil='~$DSYMUTIL $lib || :'
14408 for ac_header in dlfcn.h
14410 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14411 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14412 cat >>confdefs.h <<_ACEOF
14413 #define HAVE_DLFCN_H 1
14430 enable_win32_dll=no
14433 # Check whether --enable-shared was given.
14434 if test "${enable_shared+set}" = set; then :
14435 enableval=$enable_shared; p=${PACKAGE-default}
14437 yes) enable_shared=yes ;;
14438 no) enable_shared=no ;;
14441 # Look at the argument we got. We use all the common list separators.
14442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14443 for pkg in $enableval; do
14445 if test "X
$pkg" = "X
$p"; then
14464 # Check whether --enable-static was given.
14465 if test "${enable_static+set}" = set; then :
14466 enableval=$enable_static; p=${PACKAGE-default}
14468 yes) enable_static=yes ;;
14469 no) enable_static=no ;;
14472 # Look at the argument we got. We use all the common list separators.
14473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14474 for pkg in $enableval; do
14476 if test "X
$pkg" = "X
$p"; then
14496 # Check whether --with-pic was given.
14497 if test "${with_pic+set}" = set; then :
14498 withval=$with_pic; pic_mode="$withval"
14504 test -z "$pic_mode" && pic_mode=default
14512 # Check whether --enable-fast-install was given.
14513 if test "${enable_fast_install+set}" = set; then :
14514 enableval=$enable_fast_install; p=${PACKAGE-default}
14516 yes) enable_fast_install=yes ;;
14517 no) enable_fast_install=no ;;
14519 enable_fast_install=no
14520 # Look at the argument we got. We use all the common list separators.
14521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14522 for pkg in $enableval; do
14524 if test "X
$pkg" = "X
$p"; then
14525 enable_fast_install=yes
14532 enable_fast_install=yes
14545 # This can be used to rebuild libtool when needed
14546 LIBTOOL_DEPS="$ltmain"
14548 # Always use our own libtool.
14549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14576 test -z "$LN_S" && LN_S="ln -s"
14591 if test -n "${ZSH_VERSION+set}" ; then
14592 setopt NO_GLOB_SUBST
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14596 $as_echo_n "checking
for objdir...
" >&6; }
14597 if test "${lt_cv_objdir+set}" = set; then :
14598 $as_echo_n "(cached
) " >&6
14600 rm -f .libs 2>/dev/null
14601 mkdir .libs 2>/dev/null
14602 if test -d .libs; then
14605 # MS-DOS does not allow filenames that begin with a dot.
14608 rmdir .libs 2>/dev/null
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14611 $as_echo "$lt_cv_objdir" >&6; }
14612 objdir=$lt_cv_objdir
14618 cat >>confdefs.h <<_ACEOF
14619 #define LT_OBJDIR "$lt_cv_objdir/"
14627 # AIX sometimes has problems with the GCC collect2 program. For some
14628 # reason, if we set the COLLECT_NAMES environment variable, the problems
14629 # vanish in a puff of smoke.
14630 if test "X
${COLLECT_NAMES+set}" != Xset; then
14632 export COLLECT_NAMES
14637 # Global variables:
14639 can_build_shared=yes
14641 # All known linkers require a `.a' archive for static linking (except MSVC,
14642 # which needs '.lib').
14645 with_gnu_ld="$lt_cv_prog_gnu_ld"
14648 old_CFLAGS="$CFLAGS"
14650 # Set sane defaults for various variables
14651 test -z "$CC" && CC=cc
14652 test -z "$LTCC" && LTCC=$CC
14653 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14654 test -z "$LD" && LD=ld
14655 test -z "$ac_objext" && ac_objext=o
14657 for cc_temp in $compiler""; do
14659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14665 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14668 # Only perform the check for file, if the check method requires it
14669 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14670 case $deplibs_check_method in
14672 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14674 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14676 $as_echo_n "(cached
) " >&6
14680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14683 lt_save_MAGIC_CMD="$MAGIC_CMD"
14684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14685 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14686 for ac_dir in $ac_dummy; do
14688 test -z "$ac_dir" && ac_dir=.
14689 if test -f $ac_dir/${ac_tool_prefix}file; then
14690 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14691 if test -n "$file_magic_test_file"; then
14692 case $deplibs_check_method in
14694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14697 $EGREP "$file_magic_regex" > /dev/null; then
14702 *** Warning: the command libtool uses to detect shared libraries,
14703 *** $file_magic_cmd, produces output that libtool cannot recognize.
14704 *** The result is that libtool may fail to recognize shared libraries
14705 *** as such. This will affect the creation of libtool libraries that
14706 *** depend on shared libraries, but programs linked with such libtool
14707 *** libraries will work regardless of this problem. Nevertheless, you
14708 *** may want to report the problem to your system manager and/or to
14709 *** bug-libtool@gnu.org
14719 MAGIC_CMD="$lt_save_MAGIC_CMD"
14724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14725 if test -n "$MAGIC_CMD"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14727 $as_echo "$MAGIC_CMD" >&6; }
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14730 $as_echo "no
" >&6; }
14737 if test -z "$lt_cv_path_MAGIC_CMD"; then
14738 if test -n "$ac_tool_prefix"; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14740 $as_echo_n "checking
for file...
" >&6; }
14741 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14742 $as_echo_n "(cached
) " >&6
14746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14749 lt_save_MAGIC_CMD="$MAGIC_CMD"
14750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14751 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14752 for ac_dir in $ac_dummy; do
14754 test -z "$ac_dir" && ac_dir=.
14755 if test -f $ac_dir/file; then
14756 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14757 if test -n "$file_magic_test_file"; then
14758 case $deplibs_check_method in
14760 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14762 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14763 $EGREP "$file_magic_regex" > /dev/null; then
14768 *** Warning: the command libtool uses to detect shared libraries,
14769 *** $file_magic_cmd, produces output that libtool cannot recognize.
14770 *** The result is that libtool may fail to recognize shared libraries
14771 *** as such. This will affect the creation of libtool libraries that
14772 *** depend on shared libraries, but programs linked with such libtool
14773 *** libraries will work regardless of this problem. Nevertheless, you
14774 *** may want to report the problem to your system manager and/or to
14775 *** bug-libtool@gnu.org
14785 MAGIC_CMD="$lt_save_MAGIC_CMD"
14790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14791 if test -n "$MAGIC_CMD"; then
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14793 $as_echo "$MAGIC_CMD" >&6; }
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14796 $as_echo "no
" >&6; }
14809 # Use C for the default configuration in the libtool script
14813 ac_cpp='$CPP $CPPFLAGS'
14814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14819 # Source file extension for C test sources.
14822 # Object file extension for compiled C test sources.
14826 # Code to be used in simple compile tests
14827 lt_simple_compile_test_code="int some_variable
= 0;"
14829 # Code to be used in simple link tests
14830 lt_simple_link_test_code='int main(){return(0);}'
14838 # If no C compiler was specified, use CC.
14841 # If no C compiler flags were specified, use CFLAGS.
14842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14844 # Allow CC to be a program name with arguments.
14847 # Save the default compiler, since it gets overwritten when the other
14848 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14849 compiler_DEFAULT=$CC
14851 # save warnings/boilerplate of simple test code
14852 ac_outfile=conftest.$ac_objext
14853 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14854 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14855 _lt_compiler_boilerplate=`cat conftest.err`
14858 ac_outfile=conftest.$ac_objext
14859 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14860 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14861 _lt_linker_boilerplate=`cat conftest.err`
14866 ## There is no encapsulation within the following macros, do not change
14867 ## the running order or otherwise move them around unless you know exactly
14868 ## what you are doing...
14869 if test -n "$compiler"; then
14871 lt_prog_compiler_no_builtin_flag=
14873 if test "$GCC" = yes; then
14874 case $cc_basename in
14876 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14878 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14882 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14883 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14884 $as_echo_n "(cached
) " >&6
14886 lt_cv_prog_compiler_rtti_exceptions=no
14887 ac_outfile=conftest.$ac_objext
14888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14889 lt_compiler_flag="-fno-rtti -fno-exceptions"
14890 # Insert the option either (1) after the last *FLAGS variable, or
14891 # (2) before a word containing "conftest.
", or (3) at the end.
14892 # Note that $ac_compile itself does not contain backslashes and begins
14893 # with a dollar sign (not a hyphen), so the echo should work correctly.
14894 # The option is referenced via a variable to avoid confusing sed.
14895 lt_compile=`echo "$ac_compile" | $SED \
14896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898 -e 's:$: $lt_compiler_flag:'`
14899 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14900 (eval "$lt_compile" 2>conftest.err)
14902 cat conftest.err >&5
14903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14904 if (exit $ac_status) && test -s "$ac_outfile"; then
14905 # The compiler can only warn and ignore the option if not recognized
14906 # So say no if there are warnings other than the usual output.
14907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14910 lt_cv_prog_compiler_rtti_exceptions=yes
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14917 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14932 lt_prog_compiler_wl=
14933 lt_prog_compiler_pic=
14934 lt_prog_compiler_static=
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14937 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14939 if test "$GCC" = yes; then
14940 lt_prog_compiler_wl='-Wl,'
14941 lt_prog_compiler_static='-static'
14945 # All AIX code is PIC.
14946 if test "$host_cpu" = ia64; then
14947 # AIX 5 now supports IA64 processor
14948 lt_prog_compiler_static='-Bstatic'
14950 lt_prog_compiler_pic='-fPIC'
14956 # see comment about AmigaOS4 .so support
14957 lt_prog_compiler_pic='-fPIC'
14960 # FIXME: we need at least 68020 code to build shared libraries, but
14961 # adding the `-m68020' flag to GCC prevents building anything better,
14963 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14968 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14969 # PIC is the default for these OSes.
14972 mingw* | cygwin* | pw32* | os2* | cegcc*)
14973 # This hack is so that the source file can tell whether it is being
14974 # built for inclusion in a dll (and should export symbols for example).
14975 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14976 # (--disable-auto-import) libraries
14977 lt_prog_compiler_pic='-DDLL_EXPORT'
14980 darwin* | rhapsody*)
14981 # PIC is the default on this platform
14982 # Common symbols not allowed in MH_DYLIB files
14983 lt_prog_compiler_pic='-fno-common'
14987 # PIC is the default for Haiku.
14988 # The "-static" flag exists, but is broken.
14989 lt_prog_compiler_static=
14993 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14994 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14995 # sets the default TLS model and affects inlining.
15001 lt_prog_compiler_pic='-fPIC'
15007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15008 # Instead, we relocate shared libraries at runtime.
15012 # Just because we use GCC doesn't mean we suddenly get shared libraries
15013 # on systems that don't support them.
15014 lt_prog_compiler_can_build_shared=no
15019 # QNX uses GNU C++, but need to define -shared option too, otherwise
15020 # it will coredump.
15021 lt_prog_compiler_pic='-fPIC -shared'
15025 if test -d /usr/nec; then
15026 lt_prog_compiler_pic=-Kconform_pic
15031 lt_prog_compiler_pic='-fPIC'
15035 case $cc_basename in
15036 nvcc*) # Cuda Compiler Driver 2.2
15037 lt_prog_compiler_wl='-Xlinker '
15038 lt_prog_compiler_pic='-Xcompiler -fPIC'
15042 # PORTME Check for flag to pass linker flags through the system compiler.
15045 lt_prog_compiler_wl='-Wl,'
15046 if test "$host_cpu" = ia64; then
15047 # AIX 5 now supports IA64 processor
15048 lt_prog_compiler_static='-Bstatic'
15050 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15054 mingw* | cygwin* | pw32* | os2* | cegcc*)
15055 # This hack is so that the source file can tell whether it is being
15056 # built for inclusion in a dll (and should export symbols for example).
15057 lt_prog_compiler_pic='-DDLL_EXPORT'
15060 hpux9* | hpux10* | hpux11*)
15061 lt_prog_compiler_wl='-Wl,'
15062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15063 # not for PA HP-UX.
15069 lt_prog_compiler_pic='+Z'
15072 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15073 lt_prog_compiler_static='${wl}-a ${wl}archive'
15076 irix5* | irix6* | nonstopux*)
15077 lt_prog_compiler_wl='-Wl,'
15078 # PIC (with -KPIC) is the default.
15079 lt_prog_compiler_static='-non_shared'
15082 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15083 case $cc_basename in
15084 # old Intel for x86_64 which still supported -KPIC.
15086 lt_prog_compiler_wl='-Wl,'
15087 lt_prog_compiler_pic='-KPIC'
15088 lt_prog_compiler_static='-static'
15090 # icc used to be incompatible with GCC.
15091 # ICC 10 doesn't accept -KPIC any more.
15093 lt_prog_compiler_wl='-Wl,'
15094 lt_prog_compiler_pic='-fPIC'
15095 lt_prog_compiler_static='-static'
15097 # Lahey Fortran 8.1.
15099 lt_prog_compiler_wl='-Wl,'
15100 lt_prog_compiler_pic='--shared'
15101 lt_prog_compiler_static='--static'
15103 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15104 # Portland Group compilers (*not* the Pentium gcc compiler,
15105 # which looks to be a dead project)
15106 lt_prog_compiler_wl='-Wl,'
15107 lt_prog_compiler_pic='-fpic'
15108 lt_prog_compiler_static='-Bstatic'
15111 lt_prog_compiler_wl='-Wl,'
15112 # All Alpha code is PIC.
15113 lt_prog_compiler_static='-non_shared'
15115 xl* | bgxl* | bgf* | mpixl*)
15116 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15117 lt_prog_compiler_wl='-Wl,'
15118 lt_prog_compiler_pic='-qpic'
15119 lt_prog_compiler_static='-qstaticlink'
15122 case `$CC -V 2>&1 | sed 5q` in
15123 *Sun\ F* | *Sun*Fortran*)
15124 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15125 lt_prog_compiler_pic='-KPIC'
15126 lt_prog_compiler_static='-Bstatic'
15127 lt_prog_compiler_wl=''
15131 lt_prog_compiler_pic='-KPIC'
15132 lt_prog_compiler_static='-Bstatic'
15133 lt_prog_compiler_wl='-Wl,'
15141 lt_prog_compiler_pic='-KPIC'
15142 lt_prog_compiler_static='-Bstatic'
15146 # QNX uses GNU C++, but need to define -shared option too, otherwise
15147 # it will coredump.
15148 lt_prog_compiler_pic='-fPIC -shared'
15151 osf3* | osf4* | osf5*)
15152 lt_prog_compiler_wl='-Wl,'
15153 # All OSF/1 code is PIC.
15154 lt_prog_compiler_static='-non_shared'
15158 lt_prog_compiler_static='-non_shared'
15162 lt_prog_compiler_pic='-KPIC'
15163 lt_prog_compiler_static='-Bstatic'
15164 case $cc_basename in
15165 f77* | f90* | f95*)
15166 lt_prog_compiler_wl='-Qoption ld ';;
15168 lt_prog_compiler_wl='-Wl,';;
15173 lt_prog_compiler_wl='-Qoption ld '
15174 lt_prog_compiler_pic='-PIC'
15175 lt_prog_compiler_static='-Bstatic'
15178 sysv4 | sysv4.2uw2* | sysv4.3*)
15179 lt_prog_compiler_wl='-Wl,'
15180 lt_prog_compiler_pic='-KPIC'
15181 lt_prog_compiler_static='-Bstatic'
15185 if test -d /usr/nec ;then
15186 lt_prog_compiler_pic='-Kconform_pic'
15187 lt_prog_compiler_static='-Bstatic'
15191 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15192 lt_prog_compiler_wl='-Wl,'
15193 lt_prog_compiler_pic='-KPIC'
15194 lt_prog_compiler_static='-Bstatic'
15198 lt_prog_compiler_wl='-Wl,'
15199 lt_prog_compiler_can_build_shared=no
15203 lt_prog_compiler_pic='-pic'
15204 lt_prog_compiler_static='-Bstatic'
15208 lt_prog_compiler_can_build_shared=no
15214 # For platforms which do not support PIC, -DPIC is meaningless:
15216 lt_prog_compiler_pic=
15219 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15223 $as_echo "$lt_prog_compiler_pic" >&6; }
15231 # Check to make sure the PIC flag actually works.
15233 if test -n "$lt_prog_compiler_pic"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15235 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15236 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15237 $as_echo_n "(cached
) " >&6
15239 lt_cv_prog_compiler_pic_works=no
15240 ac_outfile=conftest.$ac_objext
15241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15242 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15243 # Insert the option either (1) after the last *FLAGS variable, or
15244 # (2) before a word containing "conftest.
", or (3) at the end.
15245 # Note that $ac_compile itself does not contain backslashes and begins
15246 # with a dollar sign (not a hyphen), so the echo should work correctly.
15247 # The option is referenced via a variable to avoid confusing sed.
15248 lt_compile=`echo "$ac_compile" | $SED \
15249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15251 -e 's:$: $lt_compiler_flag:'`
15252 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15253 (eval "$lt_compile" 2>conftest.err)
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15257 if (exit $ac_status) && test -s "$ac_outfile"; then
15258 # The compiler can only warn and ignore the option if not recognized
15259 # So say no if there are warnings other than the usual output.
15260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15263 lt_cv_prog_compiler_pic_works=yes
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15270 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15272 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15273 case $lt_prog_compiler_pic in
15275 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15278 lt_prog_compiler_pic=
15279 lt_prog_compiler_can_build_shared=no
15290 # Check to make sure the static flag actually works.
15292 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15294 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15295 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15296 $as_echo_n "(cached
) " >&6
15298 lt_cv_prog_compiler_static_works=no
15299 save_LDFLAGS="$LDFLAGS"
15300 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15301 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15302 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15303 # The linker can only warn and ignore the option if not recognized
15304 # So say no if there are warnings
15305 if test -s conftest.err; then
15306 # Append any errors to the config.log.
15307 cat conftest.err 1>&5
15308 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15310 if diff conftest.exp conftest.er2 >/dev/null; then
15311 lt_cv_prog_compiler_static_works=yes
15314 lt_cv_prog_compiler_static_works=yes
15318 LDFLAGS="$save_LDFLAGS"
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15322 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15324 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15327 lt_prog_compiler_static=
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15337 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15338 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15339 $as_echo_n "(cached
) " >&6
15341 lt_cv_prog_compiler_c_o=no
15342 $RM -r conftest 2>/dev/null
15346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15348 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15349 # Insert the option either (1) after the last *FLAGS variable, or
15350 # (2) before a word containing "conftest.
", or (3) at the end.
15351 # Note that $ac_compile itself does not contain backslashes and begins
15352 # with a dollar sign (not a hyphen), so the echo should work correctly.
15353 lt_compile=`echo "$ac_compile" | $SED \
15354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15356 -e 's:$: $lt_compiler_flag:'`
15357 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15358 (eval "$lt_compile" 2>out/conftest.err)
15360 cat out/conftest.err >&5
15361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15364 # The compiler can only warn and ignore the option if not recognized
15365 # So say no if there are warnings
15366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15369 lt_cv_prog_compiler_c_o=yes
15374 # SGI C++ compiler will create directory out/ii_files/ for
15375 # template instantiation
15376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15377 $RM out/* && rmdir out
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15392 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15393 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15394 $as_echo_n "(cached
) " >&6
15396 lt_cv_prog_compiler_c_o=no
15397 $RM -r conftest 2>/dev/null
15401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15403 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15404 # Insert the option either (1) after the last *FLAGS variable, or
15405 # (2) before a word containing "conftest.
", or (3) at the end.
15406 # Note that $ac_compile itself does not contain backslashes and begins
15407 # with a dollar sign (not a hyphen), so the echo should work correctly.
15408 lt_compile=`echo "$ac_compile" | $SED \
15409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15411 -e 's:$: $lt_compiler_flag:'`
15412 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15413 (eval "$lt_compile" 2>out/conftest.err)
15415 cat out/conftest.err >&5
15416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15417 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15419 # The compiler can only warn and ignore the option if not recognized
15420 # So say no if there are warnings
15421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15422 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15423 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15424 lt_cv_prog_compiler_c_o=yes
15429 # SGI C++ compiler will create directory out/ii_files/ for
15430 # template instantiation
15431 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15432 $RM out/* && rmdir out
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15439 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15444 hard_links="nottested
"
15445 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15446 # do not overwrite the value of need_locks provided by the user
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15448 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15453 ln conftest.a conftest.b 2>&5 || hard_links=no
15454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15456 $as_echo "$hard_links" >&6; }
15457 if test "$hard_links" = no; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15459 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15472 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15475 allow_undefined_flag=
15476 always_export_symbols=no
15478 archive_expsym_cmds=
15479 compiler_needs_object=no
15480 enable_shared_with_static_runtimes=no
15481 export_dynamic_flag_spec=
15482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15483 hardcode_automatic=no
15485 hardcode_direct_absolute=no
15486 hardcode_libdir_flag_spec=
15487 hardcode_libdir_flag_spec_ld=
15488 hardcode_libdir_separator=
15489 hardcode_minus_L=no
15490 hardcode_shlibpath_var=unsupported
15492 link_all_deplibs=unknown
15494 module_expsym_cmds=
15495 old_archive_from_new_cmds=
15496 old_archive_from_expsyms_cmds=
15497 thread_safe_flag_spec=
15498 whole_archive_flag_spec=
15499 # include_expsyms should be a list of space-separated symbols to be *always*
15500 # included in the symbol list
15502 # exclude_expsyms can be an extended regexp of symbols to exclude
15503 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15504 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15505 # as well as any symbol that contains `d'.
15506 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15507 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15508 # platforms (ab)use it in PIC code, but their linkers get confused if
15509 # the symbol is explicitly referenced. Since portable code cannot
15510 # rely on this symbol name, it's probably fine to never include it in
15511 # preloaded symbol tables.
15512 # Exclude shared library initialization/finalization symbols.
15513 extract_expsyms_cmds=
15516 cygwin* | mingw* | pw32* | cegcc*)
15517 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15518 # When not using gcc, we currently assume that we are using
15519 # Microsoft Visual C++.
15520 if test "$GCC" != yes; then
15525 # we just hope/assume this is gcc and not c89 (= MSVC++)
15535 # On some targets, GNU ld is compatible enough with the native linker
15536 # that we're better off using the native interface for both.
15537 lt_use_gnu_ld_interface=no
15538 if test "$with_gnu_ld" = yes; then
15541 # The AIX port of GNU ld has always aspired to compatibility
15542 # with the native linker. However, as the warning in the GNU ld
15543 # block says, versions before 2.19.5* couldn't really create working
15544 # shared libraries, regardless of the interface used.
15545 case `$LD -v 2>&1` in
15546 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15547 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15548 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15550 lt_use_gnu_ld_interface=yes
15555 lt_use_gnu_ld_interface=yes
15560 if test "$lt_use_gnu_ld_interface" = yes; then
15561 # If archive_cmds runs LD, not CC, wlarc should be empty
15564 # Set some defaults for GNU ld with shared library support. These
15565 # are reset later if shared libraries are not supported. Putting them
15566 # here allows them to be overridden if necessary.
15567 runpath_var=LD_RUN_PATH
15568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15569 export_dynamic_flag_spec='${wl}--export-dynamic'
15570 # ancient GNU ld didn't support --whole-archive et. al.
15571 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15572 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15574 whole_archive_flag_spec=
15576 supports_anon_versioning=no
15577 case `$LD -v 2>&1` in
15578 *GNU\ gold*) supports_anon_versioning=yes ;;
15579 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15580 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15581 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15582 *\ 2.11.*) ;; # other 2.11 versions
15583 *) supports_anon_versioning=yes ;;
15586 # See if GNU ld supports shared libraries.
15589 # On AIX/PPC, the GNU linker is very broken
15590 if test "$host_cpu" != ia64; then
15594 *** Warning: the GNU linker, at least up to release 2.19, is reported
15595 *** to be unable to reliably create shared libraries on AIX.
15596 *** Therefore, libtool is disabling shared libraries support. If you
15597 *** really care for shared libraries, you may want to install binutils
15598 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15599 *** You will then need to restart the configuration process.
15608 # see comment about AmigaOS4 .so support
15609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15610 archive_expsym_cmds=''
15613 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)'
15614 hardcode_libdir_flag_spec
='-L$libdir'
15615 hardcode_minus_L
=yes
15621 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15622 allow_undefined_flag
=unsupported
15623 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15624 # support --undefined. This deserves some investigation. FIXME
15625 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15631 cygwin
* | mingw
* | pw32
* | cegcc
*)
15632 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15633 # as there is no search path for DLLs.
15634 hardcode_libdir_flag_spec
='-L$libdir'
15635 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15636 allow_undefined_flag
=unsupported
15637 always_export_symbols
=no
15638 enable_shared_with_static_runtimes
=yes
15639 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15641 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15642 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15643 # If the export-symbols file already is a .def file (1st line
15644 # is EXPORTS), use it as is; otherwise, prepend...
15645 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15646 cp $export_symbols $output_objdir/$soname.def;
15648 echo EXPORTS > $output_objdir/$soname.def;
15649 cat $export_symbols >> $output_objdir/$soname.def;
15651 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15658 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15659 link_all_deplibs
=yes
15664 hardcode_shlibpath_var
=no
15665 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15666 export_dynamic_flag_spec
='${wl}-E'
15667 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15668 # Instead, shared libraries are loaded at an image base (0x10000000 by
15669 # default) and relocated if they conflict, which is a slow very memory
15670 # consuming and fragmenting process. To avoid this, we pick a random,
15671 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15672 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15673 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15674 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'
15677 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15679 if test "$host_os" = linux-dietlibc
; then
15680 case $cc_basename in
15681 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15684 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15685 && test "$tmp_diet" = no
15688 tmp_sharedflag
='-shared'
15689 case $cc_basename,$host_cpu in
15690 pgcc
*) # Portland Group C compiler
15691 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'
15692 tmp_addflag
=' $pic_flag'
15694 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15695 # Portland Group f77 and f90 compilers
15696 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'
15697 tmp_addflag
=' $pic_flag -Mnomain' ;;
15698 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15699 tmp_addflag
=' -i_dynamic' ;;
15700 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15701 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15702 ifc
* | ifort
*) # Intel Fortran compiler
15703 tmp_addflag
=' -nofor_main' ;;
15704 lf95
*) # Lahey Fortran 8.1
15705 whole_archive_flag_spec
=
15706 tmp_sharedflag
='--shared' ;;
15707 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15708 tmp_sharedflag
='-qmkshrobj'
15710 nvcc
*) # Cuda Compiler Driver 2.2
15711 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'
15712 compiler_needs_object
=yes
15715 case `$CC -V 2>&1 | sed 5q` in
15716 *Sun\ C
*) # Sun C 5.9
15717 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'
15718 compiler_needs_object
=yes
15719 tmp_sharedflag
='-G' ;;
15720 *Sun\ F
*) # Sun Fortran 8.3
15721 tmp_sharedflag
='-G' ;;
15723 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15725 if test "x$supports_anon_versioning" = xyes
; then
15726 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15728 echo "local: *; };" >> $output_objdir/$libname.ver~
15729 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15732 case $cc_basename in
15733 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15734 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15735 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15736 hardcode_libdir_flag_spec
=
15737 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15738 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15739 if test "x$supports_anon_versioning" = xyes
; then
15740 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15742 echo "local: *; };" >> $output_objdir/$libname.ver~
15743 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15753 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15754 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15757 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15758 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15763 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15768 *** create shared libraries on Solaris systems. Therefore, libtool
15769 *** is disabling shared libraries support. We urge you to upgrade GNU
15770 *** binutils to release 2.9.1 or newer. Another option is to modify
15771 *** your PATH or compiler configuration so that the native linker is
15772 *** used, and then restart.
15775 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15776 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15783 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15784 case `$LD -v 2>&1` in
15785 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15789 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15790 *** reliably create shared libraries on SCO systems. Therefore, libtool
15791 *** is disabling shared libraries support. We urge you to upgrade GNU
15792 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15793 *** your PATH or compiler configuration so that the native linker is
15794 *** used, and then restart.
15799 # For security reasons, it is highly recommended that you always
15800 # use absolute paths for naming shared libraries, and exclude the
15801 # DT_RUNPATH tag from executables and libraries. But doing so
15802 # requires that you compile everything twice, which is a pain.
15803 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15804 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15805 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15815 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15817 hardcode_direct
=yes
15818 hardcode_shlibpath_var
=no
15822 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15823 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15831 if test "$ld_shlibs" = no
; then
15833 hardcode_libdir_flag_spec
=
15834 export_dynamic_flag_spec
=
15835 whole_archive_flag_spec
=
15838 # PORTME fill in a description of your system's linker (not GNU ld)
15841 allow_undefined_flag
=unsupported
15842 always_export_symbols
=yes
15843 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'
15844 # Note: this linker hardcodes the directories in LIBPATH if there
15845 # are no directories specified by -L.
15846 hardcode_minus_L
=yes
15847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15848 # Neither direct hardcoding nor static linking is supported with a
15850 hardcode_direct
=unsupported
15855 if test "$host_cpu" = ia64
; then
15856 # On IA64, the linker does run time linking by default, so we don't
15857 # have to do anything special.
15858 aix_use_runtimelinking
=no
15859 exp_sym_flag
='-Bexport'
15862 # If we're using GNU nm, then we don't want the "-C" option.
15863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15864 # Also, AIX nm treats weak defined symbols like other global
15865 # defined symbols, whereas GNU nm marks them as "W".
15866 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15867 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'
15869 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'
15871 aix_use_runtimelinking
=no
15873 # Test if we are trying to use run time linking or normal
15874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15875 # need to do runtime linking.
15876 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15877 for ld_flag
in $LDFLAGS; do
15878 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15879 aix_use_runtimelinking
=yes
15886 exp_sym_flag
='-bexport'
15887 no_entry_flag
='-bnoentry'
15890 # When large executables or shared objects are built, AIX ld can
15891 # have problems creating the table of contents. If linking a library
15892 # or program results in "error TOC overflow" add -mminimal-toc to
15893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15897 hardcode_direct
=yes
15898 hardcode_direct_absolute
=yes
15899 hardcode_libdir_separator
=':'
15900 link_all_deplibs
=yes
15901 file_list_spec
='${wl}-f,'
15903 if test "$GCC" = yes; then
15904 case $host_os in aix4.
[012]|aix4.
[012].
*)
15905 # We only want to do this on AIX 4.2 and lower, the check
15906 # below for broken collect2 doesn't work under 4.3+
15907 collect2name
=`${CC} -print-prog-name=collect2`
15908 if test -f "$collect2name" &&
15909 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15911 # We have reworked collect2
15914 # We have old collect2
15915 hardcode_direct
=unsupported
15916 # It fails to find uninstalled libraries when the uninstalled
15917 # path is not listed in the libpath. Setting hardcode_minus_L
15918 # to unsupported forces relinking
15919 hardcode_minus_L
=yes
15920 hardcode_libdir_flag_spec
='-L$libdir'
15921 hardcode_libdir_separator
=
15925 shared_flag
='-shared'
15926 if test "$aix_use_runtimelinking" = yes; then
15927 shared_flag
="$shared_flag "'${wl}-G'
15931 if test "$host_cpu" = ia64
; then
15932 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15933 # chokes on -Wl,-G. The following line is correct:
15936 if test "$aix_use_runtimelinking" = yes; then
15937 shared_flag
='${wl}-G'
15939 shared_flag
='${wl}-bM:SRE'
15944 export_dynamic_flag_spec
='${wl}-bexpall'
15945 # It seems that -bexpall does not export symbols beginning with
15946 # underscore (_), so it is better to generate a list of symbols to export.
15947 always_export_symbols
=yes
15948 if test "$aix_use_runtimelinking" = yes; then
15949 # Warning - without using the other runtime loading flags (-brtl),
15950 # -berok will link without error, but may produce a broken library.
15951 allow_undefined_flag
='-berok'
15952 # Determine the default libpath from the value encoded in an
15953 # empty executable.
15954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15965 if ac_fn_c_try_link
"$LINENO"; then :
15967 lt_aix_libpath_sed
='
15968 /Import File Strings/,/^$/ {
15974 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15975 # Check for a 64-bit object if we didn't find anything.
15976 if test -z "$aix_libpath"; then
15977 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15980 rm -f core conftest.err conftest.
$ac_objext \
15981 conftest
$ac_exeext conftest.
$ac_ext
15982 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15984 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15985 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"
15987 if test "$host_cpu" = ia64
; then
15988 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15989 allow_undefined_flag
="-z nodefs"
15990 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"
15992 # Determine the default libpath from the value encoded in an
15993 # empty executable.
15994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
16005 if ac_fn_c_try_link
"$LINENO"; then :
16007 lt_aix_libpath_sed
='
16008 /Import File Strings/,/^$/ {
16014 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16015 # Check for a 64-bit object if we didn't find anything.
16016 if test -z "$aix_libpath"; then
16017 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16020 rm -f core conftest.err conftest.
$ac_objext \
16021 conftest
$ac_exeext conftest.
$ac_ext
16022 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16024 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16025 # Warning - without using the other run time loading flags,
16026 # -berok will link without error, but may produce a broken library.
16027 no_undefined_flag
=' ${wl}-bernotok'
16028 allow_undefined_flag
=' ${wl}-berok'
16029 if test "$with_gnu_ld" = yes; then
16030 # We only use this code for GNU lds that support --whole-archive.
16031 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16033 # Exported symbols can be pulled into shared objects from archives
16034 whole_archive_flag_spec
='$convenience'
16036 archive_cmds_need_lc
=yes
16037 # This is similar to how AIX traditionally builds its shared libraries.
16038 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'
16046 # see comment about AmigaOS4 .so support
16047 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048 archive_expsym_cmds
=''
16051 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)'
16052 hardcode_libdir_flag_spec
='-L$libdir'
16053 hardcode_minus_L
=yes
16059 export_dynamic_flag_spec
=-rdynamic
16062 cygwin
* | mingw
* | pw32
* | cegcc
*)
16063 # When not using gcc, we currently assume that we are using
16064 # Microsoft Visual C++.
16065 # hardcode_libdir_flag_spec is actually meaningless, as there is
16066 # no search path for DLLs.
16067 hardcode_libdir_flag_spec
=' '
16068 allow_undefined_flag
=unsupported
16069 # Tell ltmain to make .lib files, not .a files.
16071 # Tell ltmain to make .dll files, not .so files.
16073 # FIXME: Setting linknames here is a bad hack.
16074 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16075 # The linker will automatically build a .lib file if we build a DLL.
16076 old_archive_from_new_cmds
='true'
16077 # FIXME: Should let the user specify the lib program.
16078 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16079 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16080 enable_shared_with_static_runtimes
=yes
16083 darwin
* | rhapsody
*)
16086 archive_cmds_need_lc
=no
16088 hardcode_automatic
=yes
16089 hardcode_shlibpath_var
=unsupported
16090 if test "$lt_cv_ld_force_load" = "yes"; then
16091 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\"`'
16093 whole_archive_flag_spec
=''
16095 link_all_deplibs
=yes
16096 allow_undefined_flag
="$_lt_dar_allow_undefined"
16097 case $cc_basename in
16098 ifort
*) _lt_dar_can_shared
=yes ;;
16099 *) _lt_dar_can_shared
=$GCC ;;
16101 if test "$_lt_dar_can_shared" = "yes"; then
16102 output_verbose_link_cmd
=func_echo_all
16103 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16104 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16105 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}"
16106 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}"
16115 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116 hardcode_libdir_flag_spec
='-L$libdir'
16117 hardcode_shlibpath_var
=no
16120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16121 # support. Future versions do this automatically, but an explicit c++rt0.o
16122 # does not break anything, and helps significantly (at the cost of a little
16125 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16126 hardcode_libdir_flag_spec
='-R$libdir'
16127 hardcode_direct
=yes
16128 hardcode_shlibpath_var
=no
16131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16133 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16134 hardcode_direct
=yes
16135 hardcode_minus_L
=yes
16136 hardcode_shlibpath_var
=no
16139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16140 freebsd
* | dragonfly
*)
16141 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16142 hardcode_libdir_flag_spec
='-R$libdir'
16143 hardcode_direct
=yes
16144 hardcode_shlibpath_var
=no
16148 if test "$GCC" = yes; then
16149 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'
16151 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'
16153 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16154 hardcode_libdir_separator
=:
16155 hardcode_direct
=yes
16157 # hardcode_minus_L: Not really in the search PATH,
16158 # but as the default location of the library.
16159 hardcode_minus_L
=yes
16160 export_dynamic_flag_spec
='${wl}-E'
16164 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16165 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16169 if test "$with_gnu_ld" = no
; then
16170 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16171 hardcode_libdir_flag_spec_ld
='+b $libdir'
16172 hardcode_libdir_separator
=:
16173 hardcode_direct
=yes
16174 hardcode_direct_absolute
=yes
16175 export_dynamic_flag_spec
='${wl}-E'
16176 # hardcode_minus_L: Not really in the search PATH,
16177 # but as the default location of the library.
16178 hardcode_minus_L
=yes
16183 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16186 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16189 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16192 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16198 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16201 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16205 # Older versions of the 11.00 compiler do not understand -b yet
16206 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16208 $as_echo_n "checking if $CC understands -b... " >&6; }
16209 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16210 $as_echo_n "(cached) " >&6
16212 lt_cv_prog_compiler__b
=no
16213 save_LDFLAGS
="$LDFLAGS"
16214 LDFLAGS
="$LDFLAGS -b"
16215 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16216 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16217 # The linker can only warn and ignore the option if not recognized
16218 # So say no if there are warnings
16219 if test -s conftest.err
; then
16220 # Append any errors to the config.log.
16221 cat conftest.err
1>&5
16222 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16223 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16224 if diff conftest.exp conftest.er2
>/dev
/null
; then
16225 lt_cv_prog_compiler__b
=yes
16228 lt_cv_prog_compiler__b
=yes
16232 LDFLAGS
="$save_LDFLAGS"
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16236 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16238 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16239 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16241 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16247 if test "$with_gnu_ld" = no
; then
16248 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16249 hardcode_libdir_separator
=:
16254 hardcode_shlibpath_var
=no
16257 hardcode_direct
=yes
16258 hardcode_direct_absolute
=yes
16259 export_dynamic_flag_spec
='${wl}-E'
16261 # hardcode_minus_L: Not really in the search PATH,
16262 # but as the default location of the library.
16263 hardcode_minus_L
=yes
16269 irix5
* | irix6
* | nonstopux
*)
16270 if test "$GCC" = yes; then
16271 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'
16272 # Try to use the -exported_symbol ld option, if it does not
16273 # work, assume that -exports_file does not work either and
16274 # implicitly export all symbols.
16275 save_LDFLAGS
="$LDFLAGS"
16276 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16281 if ac_fn_c_try_link
"$LINENO"; then :
16282 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'
16285 rm -f core conftest.err conftest.
$ac_objext \
16286 conftest
$ac_exeext conftest.
$ac_ext
16287 LDFLAGS
="$save_LDFLAGS"
16289 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'
16290 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'
16292 archive_cmds_need_lc
='no'
16293 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16294 hardcode_libdir_separator
=:
16296 link_all_deplibs
=yes
16300 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16301 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16303 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16305 hardcode_libdir_flag_spec
='-R$libdir'
16306 hardcode_direct
=yes
16307 hardcode_shlibpath_var
=no
16311 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16312 hardcode_direct
=yes
16313 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16314 hardcode_libdir_separator
=:
16315 hardcode_shlibpath_var
=no
16322 if test -f /usr
/libexec
/ld.so
; then
16323 hardcode_direct
=yes
16324 hardcode_shlibpath_var
=no
16325 hardcode_direct_absolute
=yes
16326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16327 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16328 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16329 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16330 export_dynamic_flag_spec
='${wl}-E'
16333 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16334 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16335 hardcode_libdir_flag_spec
='-R$libdir'
16338 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16339 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16349 hardcode_libdir_flag_spec
='-L$libdir'
16350 hardcode_minus_L
=yes
16351 allow_undefined_flag
=unsupported
16352 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'
16353 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16357 if test "$GCC" = yes; then
16358 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16359 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'
16361 allow_undefined_flag
=' -expect_unresolved \*'
16362 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'
16364 archive_cmds_need_lc
='no'
16365 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16366 hardcode_libdir_separator
=:
16369 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16370 if test "$GCC" = yes; then
16371 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16372 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'
16373 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16375 allow_undefined_flag
=' -expect_unresolved \*'
16376 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'
16377 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~
16378 $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'
16380 # Both c and cxx compiler support -rpath directly
16381 hardcode_libdir_flag_spec
='-rpath $libdir'
16383 archive_cmds_need_lc
='no'
16384 hardcode_libdir_separator
=:
16388 no_undefined_flag
=' -z defs'
16389 if test "$GCC" = yes; then
16391 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16392 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16393 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16395 case `$CC -V 2>&1` in
16398 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16399 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16404 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16405 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16406 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16410 hardcode_libdir_flag_spec
='-R$libdir'
16411 hardcode_shlibpath_var
=no
16413 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16415 # The compiler driver will combine and reorder linker options,
16416 # but understands `-z linker_flag'. GCC discards it without `$wl',
16417 # but is careful enough not to reorder.
16418 # Supported since Solaris 2.6 (maybe 2.5.1?)
16419 if test "$GCC" = yes; then
16420 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16422 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16426 link_all_deplibs
=yes
16430 if test "x$host_vendor" = xsequent
; then
16431 # Use $CC to link under sequent, because it throws in some extra .o
16432 # files that make .init and .fini sections work.
16433 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16435 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16437 hardcode_libdir_flag_spec
='-L$libdir'
16438 hardcode_direct
=yes
16439 hardcode_minus_L
=yes
16440 hardcode_shlibpath_var
=no
16444 case $host_vendor in
16446 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16447 hardcode_direct
=yes # is this really true???
16450 ## LD is ld it makes a PLAMLIB
16451 ## CC just makes a GrossModule.
16452 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16453 reload_cmds
='$CC -r -o $output$reload_objs'
16457 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16461 runpath_var
='LD_RUN_PATH'
16462 hardcode_shlibpath_var
=no
16466 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16467 hardcode_shlibpath_var
=no
16468 export_dynamic_flag_spec
='-Bexport'
16472 if test -d /usr
/nec
; then
16473 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474 hardcode_shlibpath_var
=no
16475 runpath_var
=LD_RUN_PATH
16476 hardcode_runpath_var
=yes
16481 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16482 no_undefined_flag
='${wl}-z,text'
16483 archive_cmds_need_lc
=no
16484 hardcode_shlibpath_var
=no
16485 runpath_var
='LD_RUN_PATH'
16487 if test "$GCC" = yes; then
16488 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16491 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16496 sysv5
* | sco3.2v5
* | sco5v6
*)
16497 # Note: We can NOT use -z defs as we might desire, because we do not
16498 # link with -lc, and that would cause any symbols used from libc to
16499 # always be unresolved, which means just about no library would
16500 # ever link correctly. If we're not using GNU ld we use -z text
16501 # though, which does catch some bad symbols but isn't as heavy-handed
16503 no_undefined_flag
='${wl}-z,text'
16504 allow_undefined_flag
='${wl}-z,nodefs'
16505 archive_cmds_need_lc
=no
16506 hardcode_shlibpath_var
=no
16507 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16508 hardcode_libdir_separator
=':'
16509 link_all_deplibs
=yes
16510 export_dynamic_flag_spec
='${wl}-Bexport'
16511 runpath_var
='LD_RUN_PATH'
16513 if test "$GCC" = yes; then
16514 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16523 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_libdir_flag_spec
='-L$libdir'
16525 hardcode_shlibpath_var
=no
16533 if test x
$host_vendor = xsni
; then
16535 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16536 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16543 $as_echo "$ld_shlibs" >&6; }
16544 test "$ld_shlibs" = no
&& can_build_shared
=no
16546 with_gnu_ld
=$with_gnu_ld
16563 # Do we need to explicitly link libc?
16565 case "x$archive_cmds_need_lc" in
16567 # Assume -lc should be added
16568 archive_cmds_need_lc
=yes
16570 if test "$enable_shared" = yes && test "$GCC" = yes; then
16571 case $archive_cmds in
16573 # FIXME: we may have to deal with multi-command sequences.
16576 # Test whether the compiler implicitly links with -lc since on some
16577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16578 # to ld, don't add -lc before -lgcc.
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16580 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16581 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16582 $as_echo_n "(cached) " >&6
16585 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16588 (eval $ac_compile) 2>&5
16590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16591 test $ac_status = 0; } 2>conftest.err
; then
16594 libobjs
=conftest.
$ac_objext
16596 wl
=$lt_prog_compiler_wl
16597 pic_flag
=$lt_prog_compiler_pic
16603 lt_save_allow_undefined_flag
=$allow_undefined_flag
16604 allow_undefined_flag
=
16605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16606 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16609 test $ac_status = 0; }
16611 lt_cv_archive_cmds_need_lc
=no
16613 lt_cv_archive_cmds_need_lc
=yes
16615 allow_undefined_flag
=$lt_save_allow_undefined_flag
16617 cat conftest.err
1>&5
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16623 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16624 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16788 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16790 if test "$GCC" = yes; then
16792 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16793 *) lt_awk_arg
="/^libraries:/" ;;
16796 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16797 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16799 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16800 case $lt_search_path_spec in
16802 # if the path contains ";" then we assume it to be the separator
16803 # otherwise default to the standard path separator (i.e. ":") - it is
16804 # assumed that no part of a normal pathname contains ";" but that should
16805 # okay in the real world where ";" in dirpaths is itself problematic.
16806 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16809 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16812 # Ok, now we have the path, separated by spaces, we can step through it
16813 # and add multilib dir if necessary.
16814 lt_tmp_lt_search_path_spec
=
16815 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16816 for lt_sys_path
in $lt_search_path_spec; do
16817 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16818 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16820 test -d "$lt_sys_path" && \
16821 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16824 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16825 BEGIN {RS=" "; FS="/|\n";} {
16828 for (lt_i = NF; lt_i > 0; lt_i--) {
16829 if ($lt_i != "" && $lt_i != ".") {
16830 if ($lt_i == "..") {
16833 if (lt_count == 0) {
16834 lt_foo="/" $lt_i lt_foo;
16841 if (lt_foo != "") { lt_freq[lt_foo]++; }
16842 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16844 # AWK program above erroneously prepends '/' to C:/dos/paths
16847 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16848 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16850 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16852 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16854 library_names_spec
=
16855 libname_spec
='lib$name'
16859 postuninstall_cmds
=
16863 shlibpath_overrides_runpath
=unknown
16865 dynamic_linker
="$host_os ld.so"
16866 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16867 need_lib_prefix
=unknown
16868 hardcode_into_libs
=no
16870 # when you set need_version to no, make sure it does not cause -set_version
16871 # flags to be left without arguments
16872 need_version
=unknown
16877 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16878 shlibpath_var
=LIBPATH
16880 # AIX 3 has no versioning support, so we append a major version to the name.
16881 soname_spec
='${libname}${release}${shared_ext}$major'
16888 hardcode_into_libs
=yes
16889 if test "$host_cpu" = ia64
; then
16890 # AIX 5 supports IA64
16891 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16892 shlibpath_var
=LD_LIBRARY_PATH
16894 # With GCC up to 2.95.x, collect2 would create an import file
16895 # for dependence libraries. The import file would start with
16896 # the line `#! .'. This would cause the generated library to
16897 # depend on `.', always an invalid library. This was fixed in
16898 # development snapshots of GCC prior to 3.0.
16900 aix4 | aix4.
[01] | aix4.
[01].
*)
16901 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16903 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16906 can_build_shared
=no
16910 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16911 # soname into executable. Probably we can add versioning support to
16912 # collect2, so additional links can be useful in future.
16913 if test "$aix_use_runtimelinking" = yes; then
16914 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16915 # instead of lib<name>.a to let people know that these are not
16916 # typical AIX shared libraries.
16917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16919 # We preserve .a as extension for shared libraries through AIX4.2
16920 # and later when we are not doing run time linking.
16921 library_names_spec
='${libname}${release}.a $libname.a'
16922 soname_spec
='${libname}${release}${shared_ext}$major'
16924 shlibpath_var
=LIBPATH
16931 # Since July 2007 AmigaOS4 officially supports .so libraries.
16932 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16936 library_names_spec
='$libname.ixlibrary $libname.a'
16937 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16938 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'
16944 library_names_spec
='${libname}${shared_ext}'
16945 dynamic_linker
="$host_os ld.so"
16946 shlibpath_var
=LIBRARY_PATH
16952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953 soname_spec
='${libname}${release}${shared_ext}$major'
16954 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16955 shlibpath_var
=LD_LIBRARY_PATH
16956 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16957 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16958 # the default ld.so.conf also contains /usr/contrib/lib and
16959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16960 # libtool to hard-code these into programs
16963 cygwin
* | mingw
* | pw32
* | cegcc
*)
16964 version_type
=windows
16969 case $GCC,$host_os in
16970 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16971 library_names_spec
='$libname.dll.a'
16972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16973 postinstall_cmds
='base_file=`basename \${file}`~
16974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16975 dldir=$destdir/`dirname \$dlpath`~
16976 test -d \$dldir || mkdir -p \$dldir~
16977 $install_prog $dir/$dlname \$dldir/$dlname~
16978 chmod a+x \$dldir/$dlname~
16979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16982 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16983 dlpath=$dir/\$dldll~
16985 shlibpath_overrides_runpath
=yes
16989 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16990 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16992 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16995 # MinGW DLLs use traditional 'lib' prefix
16996 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999 # pw32 DLLs use 'pw' prefix rather than 'lib'
17000 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17006 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17009 dynamic_linker
='Win32 ld.exe'
17010 # FIXME: first we should search . and the directory the executable is in
17014 darwin
* | rhapsody
*)
17015 dynamic_linker
="$host_os dyld"
17016 version_type
=darwin
17019 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17020 soname_spec
='${libname}${release}${major}$shared_ext'
17021 shlibpath_overrides_runpath
=yes
17022 shlibpath_var
=DYLD_LIBRARY_PATH
17023 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17025 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17026 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17034 soname_spec
='${libname}${release}${shared_ext}$major'
17035 shlibpath_var
=LD_LIBRARY_PATH
17038 freebsd
* | dragonfly
*)
17039 # DragonFly does not have aout. When/if they implement a new
17040 # versioning mechanism, adjust this.
17041 if test -x /usr
/bin
/objformat
; then
17042 objformat
=`/usr/bin/objformat`
17045 freebsd
[23].
*) objformat
=aout
;;
17046 *) objformat
=elf
;;
17049 version_type
=freebsd-
$objformat
17050 case $version_type in
17052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17057 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17061 shlibpath_var
=LD_LIBRARY_PATH
17064 shlibpath_overrides_runpath
=yes
17066 freebsd3.
[01]* | freebsdelf3.
[01]*)
17067 shlibpath_overrides_runpath
=yes
17068 hardcode_into_libs
=yes
17070 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17071 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17072 shlibpath_overrides_runpath
=no
17073 hardcode_into_libs
=yes
17075 *) # from 4.6 on, and DragonFly
17076 shlibpath_overrides_runpath
=yes
17077 hardcode_into_libs
=yes
17086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17087 soname_spec
='${libname}${release}${shared_ext}$major'
17088 shlibpath_var
=LD_LIBRARY_PATH
17089 hardcode_into_libs
=yes
17096 dynamic_linker
="$host_os runtime_loader"
17097 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17098 soname_spec
='${libname}${release}${shared_ext}$major'
17099 shlibpath_var
=LIBRARY_PATH
17100 shlibpath_overrides_runpath
=yes
17101 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17102 hardcode_into_libs
=yes
17105 hpux9
* | hpux10
* | hpux11
*)
17106 # Give a soname corresponding to the major version so that dld.sl refuses to
17107 # link against other versions.
17114 hardcode_into_libs
=yes
17115 dynamic_linker
="$host_os dld.so"
17116 shlibpath_var
=LD_LIBRARY_PATH
17117 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 soname_spec
='${libname}${release}${shared_ext}$major'
17120 if test "X$HPUX_IA64_MODE" = X32
; then
17121 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17123 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17125 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17129 hardcode_into_libs
=yes
17130 dynamic_linker
="$host_os dld.sl"
17131 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17132 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 soname_spec
='${libname}${release}${shared_ext}$major'
17135 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17136 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17140 dynamic_linker
="$host_os dld.sl"
17141 shlibpath_var
=SHLIB_PATH
17142 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17143 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144 soname_spec
='${libname}${release}${shared_ext}$major'
17147 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17148 postinstall_cmds
='chmod 555 $lib'
17149 # or fails outright, so override atomically:
17150 install_override_mode
=555
17157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17158 soname_spec
='${libname}${release}${shared_ext}$major'
17159 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17160 shlibpath_var
=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath
=no
17162 hardcode_into_libs
=yes
17165 irix5
* | irix6
* | nonstopux
*)
17167 nonstopux
*) version_type
=nonstopux
;;
17169 if test "$lt_cv_prog_gnu_ld" = yes; then
17177 soname_spec
='${libname}${release}${shared_ext}$major'
17178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17180 irix5
* | nonstopux
*)
17181 libsuff
= shlibsuff
=
17184 case $LD in # libtool.m4 will add one of these switches to LD
17185 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17186 libsuff
= shlibsuff
= libmagic
=32-bit;;
17187 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17188 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17189 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17190 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17191 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17195 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17196 shlibpath_overrides_runpath
=no
17197 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17198 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17199 hardcode_into_libs
=yes
17202 # No shared lib support for Linux oldld, aout, or coff.
17203 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17207 # This must be Linux ELF.
17208 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 soname_spec
='${libname}${release}${shared_ext}$major'
17214 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17215 shlibpath_var
=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath
=no
17218 # Some binutils ld are patched to set DT_RUNPATH
17219 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17220 $as_echo_n "(cached) " >&6
17222 lt_cv_shlibpath_overrides_runpath
=no
17223 save_LDFLAGS
=$LDFLAGS
17224 save_libdir
=$libdir
17225 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17226 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17238 if ac_fn_c_try_link
"$LINENO"; then :
17239 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17240 lt_cv_shlibpath_overrides_runpath
=yes
17243 rm -f core conftest.err conftest.
$ac_objext \
17244 conftest
$ac_exeext conftest.
$ac_ext
17245 LDFLAGS
=$save_LDFLAGS
17246 libdir
=$save_libdir
17250 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17252 # This implies no fast_install, which is unacceptable.
17253 # Some rework will be needed to allow for fast_install
17254 # before this can be enabled.
17255 hardcode_into_libs
=yes
17257 # Append ld.so.conf contents to the search path
17258 if test -f /etc
/ld.so.conf
; then
17259 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' ' '`
17260 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17263 # We used to test for /lib/ld.so.1 and disable shared libraries on
17264 # powerpc, because MkLinux only supported shared libraries with the
17265 # GNU dynamic linker. Since this was broken with cross compilers,
17266 # most powerpc-linux boxes support dynamic linking these days and
17267 # people can always --disable-shared, the test was removed, and we
17268 # assume the GNU/Linux dynamic linker is in use.
17269 dynamic_linker
='GNU/Linux ld.so'
17276 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17278 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17279 dynamic_linker
='NetBSD (a.out) ld.so'
17281 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282 soname_spec
='${libname}${release}${shared_ext}$major'
17283 dynamic_linker
='NetBSD ld.elf_so'
17285 shlibpath_var
=LD_LIBRARY_PATH
17286 shlibpath_overrides_runpath
=yes
17287 hardcode_into_libs
=yes
17292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 shlibpath_var
=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath
=yes
17301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 soname_spec
='${libname}${release}${shared_ext}$major'
17303 shlibpath_var
=LD_LIBRARY_PATH
17304 shlibpath_overrides_runpath
=no
17305 hardcode_into_libs
=yes
17306 dynamic_linker
='ldqnx.so'
17311 sys_lib_dlsearch_path_spec
="/usr/lib"
17313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17315 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17316 *) need_version
=no
;;
17318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17319 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17320 shlibpath_var
=LD_LIBRARY_PATH
17321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17323 openbsd2.
[89] | openbsd2.
[89].
*)
17324 shlibpath_overrides_runpath
=no
17327 shlibpath_overrides_runpath
=yes
17331 shlibpath_overrides_runpath
=yes
17336 libname_spec
='$name'
17339 library_names_spec
='$libname${shared_ext} $libname.a'
17340 dynamic_linker
='OS/2 ld.exe'
17341 shlibpath_var
=LIBPATH
17344 osf3
* | osf4
* | osf5
*)
17348 soname_spec
='${libname}${release}${shared_ext}$major'
17349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 shlibpath_var
=LD_LIBRARY_PATH
17351 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17352 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec
='${libname}${release}${shared_ext}$major'
17365 shlibpath_var
=LD_LIBRARY_PATH
17366 shlibpath_overrides_runpath
=yes
17367 hardcode_into_libs
=yes
17368 # ldd complains unless libraries are executable
17369 postinstall_cmds
='chmod +x $lib'
17374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17375 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17376 shlibpath_var
=LD_LIBRARY_PATH
17377 shlibpath_overrides_runpath
=yes
17378 if test "$with_gnu_ld" = yes; then
17386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec
='${libname}${release}${shared_ext}$major'
17388 shlibpath_var
=LD_LIBRARY_PATH
17389 case $host_vendor in
17391 shlibpath_overrides_runpath
=no
17393 runpath_var
=LD_RUN_PATH
17401 shlibpath_overrides_runpath
=no
17402 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17408 if test -d /usr
/nec
;then
17410 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17411 soname_spec
='$libname${shared_ext}.$major'
17412 shlibpath_var
=LD_LIBRARY_PATH
17416 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17417 version_type
=freebsd-elf
17420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17421 soname_spec
='${libname}${release}${shared_ext}$major'
17422 shlibpath_var
=LD_LIBRARY_PATH
17423 shlibpath_overrides_runpath
=yes
17424 hardcode_into_libs
=yes
17425 if test "$with_gnu_ld" = yes; then
17426 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17428 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17431 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17435 sys_lib_dlsearch_path_spec
='/usr/lib'
17439 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 shlibpath_var
=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath
=no
17446 hardcode_into_libs
=yes
17451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452 soname_spec
='${libname}${release}${shared_ext}$major'
17453 shlibpath_var
=LD_LIBRARY_PATH
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17461 $as_echo "$dynamic_linker" >&6; }
17462 test "$dynamic_linker" = no
&& can_build_shared
=no
17464 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17465 if test "$GCC" = yes; then
17466 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17469 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17470 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17472 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17473 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17568 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17570 if test -n "$hardcode_libdir_flag_spec" ||
17571 test -n "$runpath_var" ||
17572 test "X$hardcode_automatic" = "Xyes" ; then
17574 # We can hardcode non-existent directories.
17575 if test "$hardcode_direct" != no
&&
17576 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17577 # have to relink, otherwise we might link with an installed library
17578 # when we should be linking with a yet-to-be-installed one
17579 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17580 test "$hardcode_minus_L" != no
; then
17581 # Linking always hardcodes the temporary library directory.
17582 hardcode_action
=relink
17584 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17585 hardcode_action
=immediate
17588 # We cannot hardcode anything, or else we can only hardcode existing
17590 hardcode_action
=unsupported
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17593 $as_echo "$hardcode_action" >&6; }
17595 if test "$hardcode_action" = relink ||
17596 test "$inherit_rpath" = yes; then
17597 # Fast installation is not supported
17598 enable_fast_install
=no
17599 elif test "$shlibpath_overrides_runpath" = yes ||
17600 test "$enable_shared" = no
; then
17601 # Fast installation is not necessary
17602 enable_fast_install
=needless
17610 if test "x$enable_dlopen" != xyes
; then
17611 enable_dlopen
=unknown
17612 enable_dlopen_self
=unknown
17613 enable_dlopen_self_static
=unknown
17620 lt_cv_dlopen
="load_add_on"
17622 lt_cv_dlopen_self
=yes
17625 mingw
* | pw32
* | cegcc
*)
17626 lt_cv_dlopen
="LoadLibrary"
17631 lt_cv_dlopen
="dlopen"
17636 # if libdl is installed we need to link against it
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17639 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17640 $as_echo_n "(cached) " >&6
17642 ac_check_lib_save_LIBS
=$LIBS
17644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17647 /* Override any GCC internal prototype to avoid an error.
17648 Use char because int might match the return type of a GCC
17649 builtin and then its argument prototype would still apply. */
17662 if ac_fn_c_try_link
"$LINENO"; then :
17663 ac_cv_lib_dl_dlopen
=yes
17665 ac_cv_lib_dl_dlopen
=no
17667 rm -f core conftest.err conftest.
$ac_objext \
17668 conftest
$ac_exeext conftest.
$ac_ext
17669 LIBS
=$ac_check_lib_save_LIBS
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17673 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17674 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17677 lt_cv_dlopen
="dyld"
17679 lt_cv_dlopen_self
=yes
17686 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17687 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17688 lt_cv_dlopen
="shl_load"
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17691 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17692 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17693 $as_echo_n "(cached) " >&6
17695 ac_check_lib_save_LIBS
=$LIBS
17697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h. */
17700 /* Override any GCC internal prototype to avoid an error.
17701 Use char because int might match the return type of a GCC
17702 builtin and then its argument prototype would still apply. */
17710 return shl_load ();
17715 if ac_fn_c_try_link
"$LINENO"; then :
17716 ac_cv_lib_dld_shl_load
=yes
17718 ac_cv_lib_dld_shl_load
=no
17720 rm -f core conftest.err conftest.
$ac_objext \
17721 conftest
$ac_exeext conftest.
$ac_ext
17722 LIBS
=$ac_check_lib_save_LIBS
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17725 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17726 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17727 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17729 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17730 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17731 lt_cv_dlopen
="dlopen"
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17734 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17735 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17736 $as_echo_n "(cached) " >&6
17738 ac_check_lib_save_LIBS
=$LIBS
17740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17743 /* Override any GCC internal prototype to avoid an error.
17744 Use char because int might match the return type of a GCC
17745 builtin and then its argument prototype would still apply. */
17758 if ac_fn_c_try_link
"$LINENO"; then :
17759 ac_cv_lib_dl_dlopen
=yes
17761 ac_cv_lib_dl_dlopen
=no
17763 rm -f core conftest.err conftest.
$ac_objext \
17764 conftest
$ac_exeext conftest.
$ac_ext
17765 LIBS
=$ac_check_lib_save_LIBS
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17769 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17770 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17773 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17774 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17775 $as_echo_n "(cached) " >&6
17777 ac_check_lib_save_LIBS
=$LIBS
17778 LIBS
="-lsvld $LIBS"
17779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17782 /* Override any GCC internal prototype to avoid an error.
17783 Use char because int might match the return type of a GCC
17784 builtin and then its argument prototype would still apply. */
17797 if ac_fn_c_try_link
"$LINENO"; then :
17798 ac_cv_lib_svld_dlopen
=yes
17800 ac_cv_lib_svld_dlopen
=no
17802 rm -f core conftest.err conftest.
$ac_objext \
17803 conftest
$ac_exeext conftest.
$ac_ext
17804 LIBS
=$ac_check_lib_save_LIBS
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17807 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17808 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17809 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17812 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17813 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17816 ac_check_lib_save_LIBS
=$LIBS
17818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17819 /* end confdefs.h. */
17821 /* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17831 return dld_link ();
17836 if ac_fn_c_try_link
"$LINENO"; then :
17837 ac_cv_lib_dld_dld_link
=yes
17839 ac_cv_lib_dld_dld_link
=no
17841 rm -f core conftest.err conftest.
$ac_objext \
17842 conftest
$ac_exeext conftest.
$ac_ext
17843 LIBS
=$ac_check_lib_save_LIBS
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17846 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17847 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17848 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17869 if test "x$lt_cv_dlopen" != xno
; then
17875 case $lt_cv_dlopen in
17877 save_CPPFLAGS
="$CPPFLAGS"
17878 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17880 save_LDFLAGS
="$LDFLAGS"
17881 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17884 LIBS
="$lt_cv_dlopen_libs $LIBS"
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17887 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17888 if test "${lt_cv_dlopen_self+set}" = set; then :
17889 $as_echo_n "(cached) " >&6
17891 if test "$cross_compiling" = yes; then :
17892 lt_cv_dlopen_self
=cross
17894 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17895 lt_status
=$lt_dlunknown
17896 cat > conftest.
$ac_ext <<_LT_EOF
17897 #line 17897 "configure"
17898 #include "confdefs.h"
17907 # define LT_DLGLOBAL RTLD_GLOBAL
17910 # define LT_DLGLOBAL DL_GLOBAL
17912 # define LT_DLGLOBAL 0
17916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17917 find out it does not work in some platform. */
17918 #ifndef LT_DLLAZY_OR_NOW
17920 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17923 # define LT_DLLAZY_OR_NOW DL_LAZY
17926 # define LT_DLLAZY_OR_NOW RTLD_NOW
17929 # define LT_DLLAZY_OR_NOW DL_NOW
17931 # define LT_DLLAZY_OR_NOW 0
17938 /* When -fvisbility=hidden is used, assume the code has been annotated
17939 correspondingly for the symbols needed. */
17940 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17941 void fnord () __attribute__((visibility("default")));
17944 void fnord () { int i=42; }
17947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17948 int status = $lt_dlunknown;
17952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17955 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17956 else puts (dlerror ());
17958 /* dlclose (self); */
17966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17967 (eval $ac_link) 2>&5
17969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17970 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17971 (.
/conftest
; exit; ) >&5 2>/dev
/null
17973 case x
$lt_status in
17974 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17975 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17976 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17979 # compilation failed
17980 lt_cv_dlopen_self
=no
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17988 $as_echo "$lt_cv_dlopen_self" >&6; }
17990 if test "x$lt_cv_dlopen_self" = xyes
; then
17991 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17993 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17994 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17997 if test "$cross_compiling" = yes; then :
17998 lt_cv_dlopen_self_static
=cross
18000 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18001 lt_status
=$lt_dlunknown
18002 cat > conftest.
$ac_ext <<_LT_EOF
18003 #line 18003 "configure"
18004 #include "confdefs.h"
18013 # define LT_DLGLOBAL RTLD_GLOBAL
18016 # define LT_DLGLOBAL DL_GLOBAL
18018 # define LT_DLGLOBAL 0
18022 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18023 find out it does not work in some platform. */
18024 #ifndef LT_DLLAZY_OR_NOW
18026 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18029 # define LT_DLLAZY_OR_NOW DL_LAZY
18032 # define LT_DLLAZY_OR_NOW RTLD_NOW
18035 # define LT_DLLAZY_OR_NOW DL_NOW
18037 # define LT_DLLAZY_OR_NOW 0
18044 /* When -fvisbility=hidden is used, assume the code has been annotated
18045 correspondingly for the symbols needed. */
18046 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18047 void fnord () __attribute__((visibility("default")));
18050 void fnord () { int i=42; }
18053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18054 int status = $lt_dlunknown;
18058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18061 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18062 else puts (dlerror ());
18064 /* dlclose (self); */
18072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18073 (eval $ac_link) 2>&5
18075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18076 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18077 (.
/conftest
; exit; ) >&5 2>/dev
/null
18079 case x
$lt_status in
18080 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18081 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18082 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18085 # compilation failed
18086 lt_cv_dlopen_self_static
=no
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18094 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18097 CPPFLAGS
="$save_CPPFLAGS"
18098 LDFLAGS
="$save_LDFLAGS"
18103 case $lt_cv_dlopen_self in
18104 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18105 *) enable_dlopen_self
=unknown
;;
18108 case $lt_cv_dlopen_self_static in
18109 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18110 *) enable_dlopen_self_static
=unknown
;;
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18133 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18134 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18135 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18136 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18138 $as_echo "yes" >&6; }
18140 # FIXME - insert some real tests, host_os isn't really good enough
18143 if test -n "$STRIP" ; then
18144 striplib
="$STRIP -x"
18145 old_striplib
="$STRIP -S"
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18147 $as_echo "yes" >&6; }
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150 $as_echo "no" >&6; }
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18155 $as_echo "no" >&6; }
18171 # Report which library types will actually be built
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18173 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18175 $as_echo "$can_build_shared" >&6; }
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18178 $as_echo_n "checking whether to build shared libraries... " >&6; }
18179 test "$can_build_shared" = "no" && enable_shared
=no
18181 # On AIX, shared libraries and static libraries use the same namespace, and
18182 # are all built from PIC.
18185 test "$enable_shared" = yes && enable_static
=no
18186 if test -n "$RANLIB"; then
18187 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18188 postinstall_cmds
='$RANLIB $lib'
18193 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18194 test "$enable_shared" = yes && enable_static
=no
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18199 $as_echo "$enable_shared" >&6; }
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18202 $as_echo_n "checking whether to build static libraries... " >&6; }
18203 # Make sure either enable_shared or enable_static is yes.
18204 test "$enable_shared" = yes || enable_static
=yes
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18206 $as_echo "$enable_static" >&6; }
18213 ac_cpp
='$CPP $CPPFLAGS'
18214 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18220 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18221 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18222 (test "X$CXX" != "Xg++"))) ; then
18224 ac_cpp
='$CXXCPP $CPPFLAGS'
18225 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18226 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18227 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18229 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18230 if test -z "$CXXCPP"; then
18231 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18232 $as_echo_n "(cached) " >&6
18234 # Double quotes because CXXCPP needs to be expanded
18235 for CXXCPP
in "$CXX -E" "/lib/cpp"
18237 ac_preproc_ok
=false
18238 for ac_cxx_preproc_warn_flag
in '' yes
18240 # Use a header file that comes with gcc, so configuring glibc
18241 # with a fresh cross-compiler works.
18242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18243 # <limits.h> exists even on freestanding compilers.
18244 # On the NeXT, cc -E runs the code through the compiler's parser,
18245 # not just through cpp. "Syntax error" is here to catch this case.
18246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18249 # include <limits.h>
18251 # include <assert.h>
18255 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18258 # Broken: fails on valid input.
18261 rm -f conftest.err conftest.
$ac_ext
18263 # OK, works on sane cases. Now check whether nonexistent headers
18264 # can be detected and how.
18265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18267 #include <ac_nonexistent.h>
18269 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18270 # Broken: success on invalid input.
18273 # Passes both tests.
18277 rm -f conftest.err conftest.
$ac_ext
18280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18281 rm -f conftest.err conftest.
$ac_ext
18282 if $ac_preproc_ok; then :
18287 ac_cv_prog_CXXCPP
=$CXXCPP
18290 CXXCPP
=$ac_cv_prog_CXXCPP
18292 ac_cv_prog_CXXCPP
=$CXXCPP
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18295 $as_echo "$CXXCPP" >&6; }
18296 ac_preproc_ok
=false
18297 for ac_cxx_preproc_warn_flag
in '' yes
18299 # Use a header file that comes with gcc, so configuring glibc
18300 # with a fresh cross-compiler works.
18301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18302 # <limits.h> exists even on freestanding compilers.
18303 # On the NeXT, cc -E runs the code through the compiler's parser,
18304 # not just through cpp. "Syntax error" is here to catch this case.
18305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h. */
18308 # include <limits.h>
18310 # include <assert.h>
18314 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18317 # Broken: fails on valid input.
18320 rm -f conftest.err conftest.
$ac_ext
18322 # OK, works on sane cases. Now check whether nonexistent headers
18323 # can be detected and how.
18324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #include <ac_nonexistent.h>
18328 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18329 # Broken: success on invalid input.
18332 # Passes both tests.
18336 rm -f conftest.err conftest.
$ac_ext
18339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18340 rm -f conftest.err conftest.
$ac_ext
18341 if $ac_preproc_ok; then :
18344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18346 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18347 See \`config.log' for more details." "$LINENO" 5; }
18351 ac_cpp
='$CPP $CPPFLAGS'
18352 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18353 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18354 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18357 _lt_caught_CXX_error
=yes
18361 ac_cpp
='$CXXCPP $CPPFLAGS'
18362 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18363 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18364 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18366 archive_cmds_need_lc_CXX
=no
18367 allow_undefined_flag_CXX
=
18368 always_export_symbols_CXX
=no
18369 archive_expsym_cmds_CXX
=
18370 compiler_needs_object_CXX
=no
18371 export_dynamic_flag_spec_CXX
=
18372 hardcode_direct_CXX
=no
18373 hardcode_direct_absolute_CXX
=no
18374 hardcode_libdir_flag_spec_CXX
=
18375 hardcode_libdir_flag_spec_ld_CXX
=
18376 hardcode_libdir_separator_CXX
=
18377 hardcode_minus_L_CXX
=no
18378 hardcode_shlibpath_var_CXX
=unsupported
18379 hardcode_automatic_CXX
=no
18380 inherit_rpath_CXX
=no
18382 module_expsym_cmds_CXX
=
18383 link_all_deplibs_CXX
=unknown
18384 old_archive_cmds_CXX
=$old_archive_cmds
18385 reload_flag_CXX
=$reload_flag
18386 reload_cmds_CXX
=$reload_cmds
18387 no_undefined_flag_CXX
=
18388 whole_archive_flag_spec_CXX
=
18389 enable_shared_with_static_runtimes_CXX
=no
18391 # Source file extension for C++ test sources.
18394 # Object file extension for compiled C++ test sources.
18398 # No sense in running all these tests if we already determined that
18399 # the CXX compiler isn't working. Some variables (like enable_shared)
18400 # are currently assumed to apply to all compilers on this platform,
18401 # and will be corrupted by setting them based on a non-working compiler.
18402 if test "$_lt_caught_CXX_error" != yes; then
18403 # Code to be used in simple compile tests
18404 lt_simple_compile_test_code
="int some_variable = 0;"
18406 # Code to be used in simple link tests
18407 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18416 # If no C compiler was specified, use CC.
18419 # If no C compiler flags were specified, use CFLAGS.
18420 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18422 # Allow CC to be a program name with arguments.
18426 # save warnings/boilerplate of simple test code
18427 ac_outfile
=conftest.
$ac_objext
18428 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18429 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18430 _lt_compiler_boilerplate
=`cat conftest.err`
18433 ac_outfile
=conftest.
$ac_objext
18434 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18435 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18436 _lt_linker_boilerplate
=`cat conftest.err`
18440 # Allow CC to be a program name with arguments.
18445 lt_save_with_gnu_ld
=$with_gnu_ld
18446 lt_save_path_LD
=$lt_cv_path_LD
18447 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18448 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18450 $as_unset lt_cv_prog_gnu_ld
18452 if test -n "${lt_cv_path_LDCXX+set}"; then
18453 lt_cv_path_LD
=$lt_cv_path_LDCXX
18455 $as_unset lt_cv_path_LD
18457 test -z "${LDCXX+set}" || LD
=$LDCXX
18461 for cc_temp
in $compiler""; do
18463 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18464 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18469 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18472 if test -n "$compiler"; then
18473 # We don't want -fno-exception when compiling C++ code, so set the
18474 # no_builtin_flag separately
18475 if test "$GXX" = yes; then
18476 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18478 lt_prog_compiler_no_builtin_flag_CXX
=
18481 if test "$GXX" = yes; then
18482 # Set up default GNU C++ configuration
18486 # Check whether --with-gnu-ld was given.
18487 if test "${with_gnu_ld+set}" = set; then :
18488 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18494 if test "$GCC" = yes; then
18495 # Check if gcc -print-prog-name=ld gives a path.
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18497 $as_echo_n "checking for ld used by $CC... " >&6; }
18500 # gcc leaves a trailing carriage return which upsets mingw
18501 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18503 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18506 # Accept absolute paths.
18508 re_direlt
='/[^/][^/]*/\.\./'
18509 # Canonicalize the pathname of ld
18510 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18511 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18512 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18514 test -z "$LD" && LD
="$ac_prog"
18517 # If it fails, then pretend we aren't using GCC.
18521 # If it is relative, then search for the first ld in PATH.
18522 with_gnu_ld
=unknown
18525 elif test "$with_gnu_ld" = yes; then
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18527 $as_echo_n "checking for GNU ld... " >&6; }
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18530 $as_echo_n "checking for non-GNU ld... " >&6; }
18532 if test "${lt_cv_path_LD+set}" = set; then :
18533 $as_echo_n "(cached) " >&6
18535 if test -z "$LD"; then
18536 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18537 for ac_dir
in $PATH; do
18539 test -z "$ac_dir" && ac_dir
=.
18540 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18541 lt_cv_path_LD
="$ac_dir/$ac_prog"
18542 # Check to see if the program is GNU ld. I'd rather use --version,
18543 # but apparently some variants of GNU ld only accept -v.
18544 # Break only if it was the GNU/non-GNU ld that we prefer.
18545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18546 *GNU
* |
*'with BFD'*)
18547 test "$with_gnu_ld" != no
&& break
18550 test "$with_gnu_ld" != yes && break
18557 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18561 LD
="$lt_cv_path_LD"
18562 if test -n "$LD"; then
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18564 $as_echo "$LD" >&6; }
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567 $as_echo "no" >&6; }
18569 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18572 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18573 $as_echo_n "(cached) " >&6
18575 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18576 case `$LD -v 2>&1 </dev/null` in
18577 *GNU
* |
*'with BFD'*)
18578 lt_cv_prog_gnu_ld
=yes
18581 lt_cv_prog_gnu_ld
=no
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18586 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18587 with_gnu_ld
=$lt_cv_prog_gnu_ld
18595 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18596 # archiving commands below assume that GNU ld is being used.
18597 if test "$with_gnu_ld" = yes; then
18598 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18599 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'
18601 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18602 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18604 # If archive_cmds runs LD, not CC, wlarc should be empty
18605 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18606 # investigate it a little bit more. (MM)
18609 # ancient GNU ld didn't support --whole-archive et. al.
18610 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18611 $GREP 'no-whole-archive' > /dev
/null
; then
18612 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18614 whole_archive_flag_spec_CXX
=
18620 # A generic and very simple default shared library creation
18621 # command for GNU C++ for the case where it uses the native
18622 # linker, instead of GNU ld. If possible, this setting should
18623 # overridden to take advantage of the native linker features on
18624 # the platform it is being used on.
18625 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18628 # Commands to make compiler produce verbose output that lists
18629 # what "hidden" libraries, object files and flags are used when
18630 # linking a shared library.
18631 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18639 # PORTME: fill in a description of your system's C++ link characteristics
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18645 # FIXME: insert proper C++ library support
18649 if test "$host_cpu" = ia64
; then
18650 # On IA64, the linker does run time linking by default, so we don't
18651 # have to do anything special.
18652 aix_use_runtimelinking
=no
18653 exp_sym_flag
='-Bexport'
18656 aix_use_runtimelinking
=no
18658 # Test if we are trying to use run time linking or normal
18659 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18660 # need to do runtime linking.
18661 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18662 for ld_flag
in $LDFLAGS; do
18665 aix_use_runtimelinking
=yes
18673 exp_sym_flag
='-bexport'
18674 no_entry_flag
='-bnoentry'
18677 # When large executables or shared objects are built, AIX ld can
18678 # have problems creating the table of contents. If linking a library
18679 # or program results in "error TOC overflow" add -mminimal-toc to
18680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18683 archive_cmds_CXX
=''
18684 hardcode_direct_CXX
=yes
18685 hardcode_direct_absolute_CXX
=yes
18686 hardcode_libdir_separator_CXX
=':'
18687 link_all_deplibs_CXX
=yes
18688 file_list_spec_CXX
='${wl}-f,'
18690 if test "$GXX" = yes; then
18691 case $host_os in aix4.
[012]|aix4.
[012].
*)
18692 # We only want to do this on AIX 4.2 and lower, the check
18693 # below for broken collect2 doesn't work under 4.3+
18694 collect2name
=`${CC} -print-prog-name=collect2`
18695 if test -f "$collect2name" &&
18696 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18698 # We have reworked collect2
18701 # We have old collect2
18702 hardcode_direct_CXX
=unsupported
18703 # It fails to find uninstalled libraries when the uninstalled
18704 # path is not listed in the libpath. Setting hardcode_minus_L
18705 # to unsupported forces relinking
18706 hardcode_minus_L_CXX
=yes
18707 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18708 hardcode_libdir_separator_CXX
=
18711 shared_flag
='-shared'
18712 if test "$aix_use_runtimelinking" = yes; then
18713 shared_flag
="$shared_flag "'${wl}-G'
18717 if test "$host_cpu" = ia64
; then
18718 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18719 # chokes on -Wl,-G. The following line is correct:
18722 if test "$aix_use_runtimelinking" = yes; then
18723 shared_flag
='${wl}-G'
18725 shared_flag
='${wl}-bM:SRE'
18730 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18731 # It seems that -bexpall does not export symbols beginning with
18732 # underscore (_), so it is better to generate a list of symbols to
18734 always_export_symbols_CXX
=yes
18735 if test "$aix_use_runtimelinking" = yes; then
18736 # Warning - without using the other runtime loading flags (-brtl),
18737 # -berok will link without error, but may produce a broken library.
18738 allow_undefined_flag_CXX
='-berok'
18739 # Determine the default libpath from the value encoded in an empty
18741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18752 if ac_fn_cxx_try_link
"$LINENO"; then :
18754 lt_aix_libpath_sed
='
18755 /Import File Strings/,/^$/ {
18761 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18762 # Check for a 64-bit object if we didn't find anything.
18763 if test -z "$aix_libpath"; then
18764 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18767 rm -f core conftest.err conftest.
$ac_objext \
18768 conftest
$ac_exeext conftest.
$ac_ext
18769 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18771 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18773 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"
18775 if test "$host_cpu" = ia64
; then
18776 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18777 allow_undefined_flag_CXX
="-z nodefs"
18778 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"
18780 # Determine the default libpath from the value encoded in an
18781 # empty executable.
18782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18793 if ac_fn_cxx_try_link
"$LINENO"; then :
18795 lt_aix_libpath_sed
='
18796 /Import File Strings/,/^$/ {
18802 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18803 # Check for a 64-bit object if we didn't find anything.
18804 if test -z "$aix_libpath"; then
18805 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18808 rm -f core conftest.err conftest.
$ac_objext \
18809 conftest
$ac_exeext conftest.
$ac_ext
18810 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18812 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18813 # Warning - without using the other run time loading flags,
18814 # -berok will link without error, but may produce a broken library.
18815 no_undefined_flag_CXX
=' ${wl}-bernotok'
18816 allow_undefined_flag_CXX
=' ${wl}-berok'
18817 if test "$with_gnu_ld" = yes; then
18818 # We only use this code for GNU lds that support --whole-archive.
18819 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18821 # Exported symbols can be pulled into shared objects from archives
18822 whole_archive_flag_spec_CXX
='$convenience'
18824 archive_cmds_need_lc_CXX
=yes
18825 # This is similar to how AIX traditionally builds its shared
18827 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'
18833 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18834 allow_undefined_flag_CXX
=unsupported
18835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18836 # support --undefined. This deserves some investigation. FIXME
18837 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18844 case $cc_basename in
18846 # FIXME: insert proper C++ library support
18852 cygwin
* | mingw
* | pw32
* | cegcc
*)
18853 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18854 # as there is no search path for DLLs.
18855 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18856 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18857 allow_undefined_flag_CXX
=unsupported
18858 always_export_symbols_CXX
=no
18859 enable_shared_with_static_runtimes_CXX
=yes
18861 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18862 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'
18863 # If the export-symbols file already is a .def file (1st line
18864 # is EXPORTS), use it as is; otherwise, prepend...
18865 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18866 cp $export_symbols $output_objdir/$soname.def;
18868 echo EXPORTS > $output_objdir/$soname.def;
18869 cat $export_symbols >> $output_objdir/$soname.def;
18871 $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'
18876 darwin
* | rhapsody
*)
18879 archive_cmds_need_lc_CXX
=no
18880 hardcode_direct_CXX
=no
18881 hardcode_automatic_CXX
=yes
18882 hardcode_shlibpath_var_CXX
=unsupported
18883 if test "$lt_cv_ld_force_load" = "yes"; then
18884 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\"`'
18886 whole_archive_flag_spec_CXX
=''
18888 link_all_deplibs_CXX
=yes
18889 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18890 case $cc_basename in
18891 ifort
*) _lt_dar_can_shared
=yes ;;
18892 *) _lt_dar_can_shared
=$GCC ;;
18894 if test "$_lt_dar_can_shared" = "yes"; then
18895 output_verbose_link_cmd
=func_echo_all
18896 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}"
18897 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18898 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}"
18899 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}"
18900 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18901 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}"
18902 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}"
18912 case $cc_basename in
18914 # FIXME: insert proper C++ library support
18918 # Green Hills C++ Compiler
18919 # FIXME: insert proper C++ library support
18923 # FIXME: insert proper C++ library support
18930 # C++ shared libraries reported to be fairly broken before
18936 archive_cmds_need_lc_CXX
=no
18939 freebsd
* | dragonfly
*)
18940 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18949 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18950 link_all_deplibs_CXX
=yes
18954 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18955 hardcode_libdir_separator_CXX
=:
18956 export_dynamic_flag_spec_CXX
='${wl}-E'
18957 hardcode_direct_CXX
=yes
18958 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18959 # but as the default
18960 # location of the library.
18962 case $cc_basename in
18964 # FIXME: insert proper C++ library support
18968 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'
18969 # Commands to make compiler produce verbose output that lists
18970 # what "hidden" libraries, object files and flags are used when
18971 # linking a shared library.
18973 # There doesn't appear to be a way to prevent this compiler from
18974 # explicitly linking system object files so we need to strip them
18975 # from the output so that they don't get included in the library
18977 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"'
18980 if test "$GXX" = yes; then
18981 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'
18983 # FIXME: insert proper C++ library support
18991 if test $with_gnu_ld = no
; then
18992 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18993 hardcode_libdir_separator_CXX
=:
18999 export_dynamic_flag_spec_CXX
='${wl}-E'
19005 hardcode_direct_CXX
=no
19006 hardcode_shlibpath_var_CXX
=no
19009 hardcode_direct_CXX
=yes
19010 hardcode_direct_absolute_CXX
=yes
19011 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19012 # but as the default
19013 # location of the library.
19017 case $cc_basename in
19019 # FIXME: insert proper C++ library support
19025 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19028 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19031 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19034 # Commands to make compiler produce verbose output that lists
19035 # what "hidden" libraries, object files and flags are used when
19036 # linking a shared library.
19038 # There doesn't appear to be a way to prevent this compiler from
19039 # explicitly linking system object files so we need to strip them
19040 # from the output so that they don't get included in the library
19042 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"'
19045 if test "$GXX" = yes; then
19046 if test $with_gnu_ld = no
; then
19049 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19052 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19055 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'
19060 # FIXME: insert proper C++ library support
19068 hardcode_direct_CXX
=no
19069 hardcode_shlibpath_var_CXX
=no
19070 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19071 export_dynamic_flag_spec_CXX
='${wl}-E'
19072 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19073 # Instead, shared libraries are loaded at an image base (0x10000000 by
19074 # default) and relocated if they conflict, which is a slow very memory
19075 # consuming and fragmenting process. To avoid this, we pick a random,
19076 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19077 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19078 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'
19079 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'
19082 case $cc_basename in
19085 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'
19087 # Archives containing C++ object files must be created using
19088 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19089 # necessary to make sure instantiated templates are included
19091 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19094 if test "$GXX" = yes; then
19095 if test "$with_gnu_ld" = no
; then
19096 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'
19098 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'
19101 link_all_deplibs_CXX
=yes
19104 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19105 hardcode_libdir_separator_CXX
=:
19106 inherit_rpath_CXX
=yes
19109 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19110 case $cc_basename in
19112 # Kuck and Associates, Inc. (KAI) C++ Compiler
19114 # KCC will only create a shared library if the output file
19115 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19116 # to its proper name (with version) after linking.
19117 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'
19118 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'
19119 # Commands to make compiler produce verbose output that lists
19120 # what "hidden" libraries, object files and flags are used when
19121 # linking a shared library.
19123 # There doesn't appear to be a way to prevent this compiler from
19124 # explicitly linking system object files so we need to strip them
19125 # from the output so that they don't get included in the library
19127 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"'
19129 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19130 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19132 # Archives containing C++ object files must be created using
19133 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19134 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19139 # version 8.0 and above of icpc choke on multiply defined symbols
19140 # if we add $predep_objects and $postdep_objects, however 7.1 and
19141 # earlier do not add the objects themselves.
19142 case `$CC -V 2>&1` in
19144 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19145 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'
19147 *) # Version 8.0 or newer
19150 ia64
*) tmp_idyn
=' -i_dynamic';;
19152 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19153 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'
19156 archive_cmds_need_lc_CXX
=no
19157 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19158 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19159 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19162 # Portland Group C++ compiler
19164 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19165 prelink_cmds_CXX
='tpldir=Template.dir~
19167 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19168 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19169 old_archive_cmds_CXX
='tpldir=Template.dir~
19171 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19172 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19174 archive_cmds_CXX
='tpldir=Template.dir~
19176 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19177 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19178 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19180 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19181 $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'
19183 *) # Version 6 and above use weak symbols
19184 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19185 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'
19189 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19190 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19191 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'
19195 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19196 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'
19198 runpath_var
=LD_RUN_PATH
19199 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19200 hardcode_libdir_separator_CXX
=:
19202 # Commands to make compiler produce verbose output that lists
19203 # what "hidden" libraries, object files and flags are used when
19204 # linking a shared library.
19206 # There doesn't appear to be a way to prevent this compiler from
19207 # explicitly linking system object files so we need to strip them
19208 # from the output so that they don't get included in the library
19210 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'
19212 xl
* | mpixl
* | bgxl
*)
19213 # IBM XL 8.0 on PPC, with GNU ld
19214 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19215 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19216 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19217 if test "x$supports_anon_versioning" = xyes
; then
19218 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19220 echo "local: *; };" >> $output_objdir/$libname.ver~
19221 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19225 case `$CC -V 2>&1 | sed 5q` in
19228 no_undefined_flag_CXX
=' -zdefs'
19229 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 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'
19231 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19232 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'
19233 compiler_needs_object_CXX
=yes
19235 # Not sure whether something based on
19236 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19238 output_verbose_link_cmd
='func_echo_all'
19240 # Archives containing C++ object files must be created using
19241 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19242 # necessary to make sure instantiated templates are included
19244 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19252 # FIXME: insert proper C++ library support
19257 # FIXME: insert proper C++ library support
19262 case $cc_basename in
19264 # FIXME: insert proper C++ library support
19268 # FIXME: insert proper C++ library support
19275 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19276 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19278 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19279 hardcode_direct_CXX
=yes
19280 hardcode_shlibpath_var_CXX
=no
19282 # Workaround some broken pre-1.5 toolchains
19283 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19291 # C++ shared libraries are fairly broken
19296 if test -f /usr
/libexec
/ld.so
; then
19297 hardcode_direct_CXX
=yes
19298 hardcode_shlibpath_var_CXX
=no
19299 hardcode_direct_absolute_CXX
=yes
19300 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19301 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19303 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19304 export_dynamic_flag_spec_CXX
='${wl}-E'
19305 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19307 output_verbose_link_cmd
=func_echo_all
19313 osf3
* | osf4
* | osf5
*)
19314 case $cc_basename in
19316 # Kuck and Associates, Inc. (KAI) C++ Compiler
19318 # KCC will only create a shared library if the output file
19319 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19320 # to its proper name (with version) after linking.
19321 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'
19323 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19324 hardcode_libdir_separator_CXX
=:
19326 # Archives containing C++ object files must be created using
19327 # the KAI C++ compiler.
19329 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19330 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19334 # Rational C++ 2.4.1
19335 # FIXME: insert proper C++ library support
19341 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19342 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'
19343 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19346 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19347 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'
19348 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19349 echo "-hidden">> $lib.exp~
19350 $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~
19352 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19356 hardcode_libdir_separator_CXX
=:
19358 # Commands to make compiler produce verbose output that lists
19359 # what "hidden" libraries, object files and flags are used when
19360 # linking a shared library.
19362 # There doesn't appear to be a way to prevent this compiler from
19363 # explicitly linking system object files so we need to strip them
19364 # from the output so that they don't get included in the library
19366 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"'
19369 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19370 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19373 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'
19376 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'
19380 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19381 hardcode_libdir_separator_CXX
=:
19383 # Commands to make compiler produce verbose output that lists
19384 # what "hidden" libraries, object files and flags are used when
19385 # linking a shared library.
19386 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19389 # FIXME: insert proper C++ library support
19397 # FIXME: insert proper C++ library support
19402 case $cc_basename in
19405 # FIXME: insert proper C++ library support
19410 # FIXME: insert proper C++ library support
19414 # FIXME: insert proper C++ library support
19421 case $cc_basename in
19423 # Sun C++ 4.2, 5.x and Centerline C++
19424 archive_cmds_need_lc_CXX
=yes
19425 no_undefined_flag_CXX
=' -zdefs'
19426 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19427 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19428 $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'
19430 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19431 hardcode_shlibpath_var_CXX
=no
19433 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19435 # The compiler driver will combine and reorder linker options,
19436 # but understands `-z linker_flag'.
19437 # Supported since Solaris 2.6 (maybe 2.5.1?)
19438 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19441 link_all_deplibs_CXX
=yes
19443 output_verbose_link_cmd
='func_echo_all'
19445 # Archives containing C++ object files must be created using
19446 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19447 # necessary to make sure instantiated templates are included
19449 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19452 # Green Hills C++ Compiler
19453 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19455 # The C++ compiler must be used to create the archive.
19456 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19459 # GNU C++ compiler with Solaris linker
19460 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19461 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19462 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19463 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19464 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19465 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19467 # Commands to make compiler produce verbose output that lists
19468 # what "hidden" libraries, object files and flags are used when
19469 # linking a shared library.
19470 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19472 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19474 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19475 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19476 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19478 # Commands to make compiler produce verbose output that lists
19479 # what "hidden" libraries, object files and flags are used when
19480 # linking a shared library.
19481 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19484 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19486 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19488 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19496 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19497 no_undefined_flag_CXX
='${wl}-z,text'
19498 archive_cmds_need_lc_CXX
=no
19499 hardcode_shlibpath_var_CXX
=no
19500 runpath_var
='LD_RUN_PATH'
19502 case $cc_basename in
19504 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19505 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19508 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19509 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19514 sysv5
* | sco3.2v5
* | sco5v6
*)
19515 # Note: We can NOT use -z defs as we might desire, because we do not
19516 # link with -lc, and that would cause any symbols used from libc to
19517 # always be unresolved, which means just about no library would
19518 # ever link correctly. If we're not using GNU ld we use -z text
19519 # though, which does catch some bad symbols but isn't as heavy-handed
19521 no_undefined_flag_CXX
='${wl}-z,text'
19522 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19523 archive_cmds_need_lc_CXX
=no
19524 hardcode_shlibpath_var_CXX
=no
19525 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19526 hardcode_libdir_separator_CXX
=':'
19527 link_all_deplibs_CXX
=yes
19528 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19529 runpath_var
='LD_RUN_PATH'
19531 case $cc_basename in
19533 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19534 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19535 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19536 '"$old_archive_cmds_CXX"
19537 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19538 '"$reload_cmds_CXX"
19541 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19542 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19548 case $cc_basename in
19550 # NonStop-UX NCC 3.20
19551 # FIXME: insert proper C++ library support
19555 # FIXME: insert proper C++ library support
19562 # FIXME: insert proper C++ library support
19567 # FIXME: insert proper C++ library support
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19573 $as_echo "$ld_shlibs_CXX" >&6; }
19574 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19580 ## There is no encapsulation within the following macros, do not change
19581 ## the running order or otherwise move them around unless you know exactly
19582 ## what you are doing...
19583 # Dependencies to place before and after the object being linked:
19584 predep_objects_CXX
=
19585 postdep_objects_CXX
=
19588 compiler_lib_search_path_CXX
=
19590 cat > conftest.
$ac_ext <<_LT_EOF
19594 Foo (void) { a = 0; }
19600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19601 (eval $ac_compile) 2>&5
19603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19604 test $ac_status = 0; }; then
19605 # Parse the compiler output and extract the necessary
19606 # objects, libraries and library flags.
19608 # Sentinel used to keep track of whether or not we are before
19609 # the conftest object file.
19610 pre_test_object_deps_done
=no
19612 for p
in `eval "$output_verbose_link_cmd"`; do
19616 # Some compilers place space between "-{L,R}" and the path.
19617 # Remove the space.
19618 if test $p = "-L" ||
19619 test $p = "-R"; then
19626 if test "$pre_test_object_deps_done" = no
; then
19629 # Internal compiler library paths should come after those
19630 # provided the user. The postdeps already come after the
19631 # user supplied libs so there is no need to process them.
19632 if test -z "$compiler_lib_search_path_CXX"; then
19633 compiler_lib_search_path_CXX
="${prev}${p}"
19635 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19638 # The "-l" case would never come before the object being
19639 # linked, so don't bother handling this case.
19642 if test -z "$postdeps_CXX"; then
19643 postdeps_CXX
="${prev}${p}"
19645 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19651 # This assumes that the test object file only shows up
19652 # once in the compiler output.
19653 if test "$p" = "conftest.$objext"; then
19654 pre_test_object_deps_done
=yes
19658 if test "$pre_test_object_deps_done" = no
; then
19659 if test -z "$predep_objects_CXX"; then
19660 predep_objects_CXX
="$p"
19662 predep_objects_CXX
="$predep_objects_CXX $p"
19665 if test -z "$postdep_objects_CXX"; then
19666 postdep_objects_CXX
="$p"
19668 postdep_objects_CXX
="$postdep_objects_CXX $p"
19673 *) ;; # Ignore the rest.
19681 echo "libtool.m4: error: problem compiling CXX test program"
19684 $RM -f confest.
$objext
19686 # PORTME: override above test on systems where it is broken
19689 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19690 # hack all around it, let's just trust "g++" to DTRT.
19691 predep_objects_CXX
=
19692 postdep_objects_CXX
=
19697 case `$CC -V 2>&1 | sed 5q` in
19701 # The more standards-conforming stlport4 library is
19702 # incompatible with the Cstd library. Avoid specifying
19703 # it if it's in CXXFLAGS. Ignore libCrun as
19704 # -library=stlport4 depends on it.
19705 case " $CXX $CXXFLAGS " in
19706 *" -library=stlport4 "*)
19707 solaris_use_stlport4
=yes
19711 if test "$solaris_use_stlport4" != yes; then
19712 postdeps_CXX
='-library=Cstd -library=Crun'
19719 case $cc_basename in
19721 # The more standards-conforming stlport4 library is
19722 # incompatible with the Cstd library. Avoid specifying
19723 # it if it's in CXXFLAGS. Ignore libCrun as
19724 # -library=stlport4 depends on it.
19725 case " $CXX $CXXFLAGS " in
19726 *" -library=stlport4 "*)
19727 solaris_use_stlport4
=yes
19731 # Adding this requires a known-good setup of shared libraries for
19732 # Sun compiler versions before 5.6, else PIC objects from an old
19733 # archive will be linked into the output, leading to subtle bugs.
19734 if test "$solaris_use_stlport4" != yes; then
19735 postdeps_CXX
='-library=Cstd -library=Crun'
19743 case " $postdeps_CXX " in
19744 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19746 compiler_lib_search_dirs_CXX
=
19747 if test -n "${compiler_lib_search_path_CXX}"; then
19748 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19781 lt_prog_compiler_wl_CXX
=
19782 lt_prog_compiler_pic_CXX
=
19783 lt_prog_compiler_static_CXX
=
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19786 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19788 # C++ specific cases for pic, static, wl, etc.
19789 if test "$GXX" = yes; then
19790 lt_prog_compiler_wl_CXX
='-Wl,'
19791 lt_prog_compiler_static_CXX
='-static'
19795 # All AIX code is PIC.
19796 if test "$host_cpu" = ia64
; then
19797 # AIX 5 now supports IA64 processor
19798 lt_prog_compiler_static_CXX
='-Bstatic'
19800 lt_prog_compiler_pic_CXX
='-fPIC'
19806 # see comment about AmigaOS4 .so support
19807 lt_prog_compiler_pic_CXX
='-fPIC'
19810 # FIXME: we need at least 68020 code to build shared libraries, but
19811 # adding the `-m68020' flag to GCC prevents building anything better,
19813 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19818 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19819 # PIC is the default for these OSes.
19821 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19822 # This hack is so that the source file can tell whether it is being
19823 # built for inclusion in a dll (and should export symbols for example).
19824 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19825 # (--disable-auto-import) libraries
19826 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19828 darwin
* | rhapsody
*)
19829 # PIC is the default on this platform
19830 # Common symbols not allowed in MH_DYLIB files
19831 lt_prog_compiler_pic_CXX
='-fno-common'
19834 # DJGPP does not support shared libraries at all
19835 lt_prog_compiler_pic_CXX
=
19838 # PIC is the default for Haiku.
19839 # The "-static" flag exists, but is broken.
19840 lt_prog_compiler_static_CXX
=
19843 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19844 # Instead, we relocate shared libraries at runtime.
19847 if test -d /usr
/nec
; then
19848 lt_prog_compiler_pic_CXX
=-Kconform_pic
19852 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19853 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19854 # sets the default TLS model and affects inlining.
19859 lt_prog_compiler_pic_CXX
='-fPIC'
19864 # QNX uses GNU C++, but need to define -shared option too, otherwise
19865 # it will coredump.
19866 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19869 lt_prog_compiler_pic_CXX
='-fPIC'
19875 # All AIX code is PIC.
19876 if test "$host_cpu" = ia64
; then
19877 # AIX 5 now supports IA64 processor
19878 lt_prog_compiler_static_CXX
='-Bstatic'
19880 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19884 case $cc_basename in
19886 # Green Hills C++ Compiler
19887 # _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"
19892 case $cc_basename in
19894 lt_prog_compiler_pic_CXX
='-KPIC'
19897 # Green Hills C++ Compiler
19898 lt_prog_compiler_pic_CXX
='-pic'
19904 freebsd
* | dragonfly
*)
19905 # FreeBSD uses GNU C++
19907 hpux9
* | hpux10
* | hpux11
*)
19908 case $cc_basename in
19910 lt_prog_compiler_wl_CXX
='-Wl,'
19911 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19912 if test "$host_cpu" != ia64
; then
19913 lt_prog_compiler_pic_CXX
='+Z'
19917 lt_prog_compiler_wl_CXX
='-Wl,'
19918 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19924 lt_prog_compiler_pic_CXX
='+Z'
19933 # This is c89, which is MS Visual C++ (no shared libs)
19934 # Anyone wants to do a port?
19936 irix5
* | irix6
* | nonstopux
*)
19937 case $cc_basename in
19939 lt_prog_compiler_wl_CXX
='-Wl,'
19940 lt_prog_compiler_static_CXX
='-non_shared'
19941 # CC pic flag -KPIC is the default.
19947 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19948 case $cc_basename in
19951 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19952 lt_prog_compiler_pic_CXX
='-fPIC'
19955 # old Intel C++ for x86_64 which still supported -KPIC.
19956 lt_prog_compiler_wl_CXX
='-Wl,'
19957 lt_prog_compiler_pic_CXX
='-KPIC'
19958 lt_prog_compiler_static_CXX
='-static'
19961 # Intel C++, used to be incompatible with GCC.
19962 # ICC 10 doesn't accept -KPIC any more.
19963 lt_prog_compiler_wl_CXX
='-Wl,'
19964 lt_prog_compiler_pic_CXX
='-fPIC'
19965 lt_prog_compiler_static_CXX
='-static'
19968 # Portland Group C++ compiler
19969 lt_prog_compiler_wl_CXX
='-Wl,'
19970 lt_prog_compiler_pic_CXX
='-fpic'
19971 lt_prog_compiler_static_CXX
='-Bstatic'
19975 # Make sure the PIC flag is empty. It appears that all Alpha
19976 # Linux and Compaq Tru64 Unix objects are PIC.
19977 lt_prog_compiler_pic_CXX
=
19978 lt_prog_compiler_static_CXX
='-non_shared'
19980 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19981 # IBM XL 8.0, 9.0 on PPC and BlueGene
19982 lt_prog_compiler_wl_CXX
='-Wl,'
19983 lt_prog_compiler_pic_CXX
='-qpic'
19984 lt_prog_compiler_static_CXX
='-qstaticlink'
19987 case `$CC -V 2>&1 | sed 5q` in
19990 lt_prog_compiler_pic_CXX
='-KPIC'
19991 lt_prog_compiler_static_CXX
='-Bstatic'
19992 lt_prog_compiler_wl_CXX
='-Qoption ld '
20003 case $cc_basename in
20005 lt_prog_compiler_pic_CXX
='-W c,exportall'
20014 # QNX uses GNU C++, but need to define -shared option too, otherwise
20015 # it will coredump.
20016 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20018 osf3
* | osf4
* | osf5
*)
20019 case $cc_basename in
20021 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20024 # Rational C++ 2.4.1
20025 lt_prog_compiler_pic_CXX
='-pic'
20028 # Digital/Compaq C++
20029 lt_prog_compiler_wl_CXX
='-Wl,'
20030 # Make sure the PIC flag is empty. It appears that all Alpha
20031 # Linux and Compaq Tru64 Unix objects are PIC.
20032 lt_prog_compiler_pic_CXX
=
20033 lt_prog_compiler_static_CXX
='-non_shared'
20042 case $cc_basename in
20044 # Sun C++ 4.2, 5.x and Centerline C++
20045 lt_prog_compiler_pic_CXX
='-KPIC'
20046 lt_prog_compiler_static_CXX
='-Bstatic'
20047 lt_prog_compiler_wl_CXX
='-Qoption ld '
20050 # Green Hills C++ Compiler
20051 lt_prog_compiler_pic_CXX
='-PIC'
20058 case $cc_basename in
20061 lt_prog_compiler_pic_CXX
='-pic'
20062 lt_prog_compiler_static_CXX
='-Bstatic'
20066 lt_prog_compiler_pic_CXX
='-pic'
20072 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20073 case $cc_basename in
20075 lt_prog_compiler_wl_CXX
='-Wl,'
20076 lt_prog_compiler_pic_CXX
='-KPIC'
20077 lt_prog_compiler_static_CXX
='-Bstatic'
20082 case $cc_basename in
20084 # NonStop-UX NCC 3.20
20085 lt_prog_compiler_pic_CXX
='-KPIC'
20094 lt_prog_compiler_can_build_shared_CXX
=no
20100 # For platforms which do not support PIC, -DPIC is meaningless:
20102 lt_prog_compiler_pic_CXX
=
20105 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20109 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20114 # Check to make sure the PIC flag actually works.
20116 if test -n "$lt_prog_compiler_pic_CXX"; then
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20118 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20119 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20120 $as_echo_n "(cached) " >&6
20122 lt_cv_prog_compiler_pic_works_CXX
=no
20123 ac_outfile
=conftest.
$ac_objext
20124 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20125 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20126 # Insert the option either (1) after the last *FLAGS variable, or
20127 # (2) before a word containing "conftest.", or (3) at the end.
20128 # Note that $ac_compile itself does not contain backslashes and begins
20129 # with a dollar sign (not a hyphen), so the echo should work correctly.
20130 # The option is referenced via a variable to avoid confusing sed.
20131 lt_compile
=`echo "$ac_compile" | $SED \
20132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20134 -e 's:$: $lt_compiler_flag:'`
20135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20136 (eval "$lt_compile" 2>conftest.err
)
20138 cat conftest.err
>&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 if (exit $ac_status) && test -s "$ac_outfile"; then
20141 # The compiler can only warn and ignore the option if not recognized
20142 # So say no if there are warnings other than the usual output.
20143 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20144 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20145 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20146 lt_cv_prog_compiler_pic_works_CXX
=yes
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20153 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20155 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20156 case $lt_prog_compiler_pic_CXX in
20158 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20161 lt_prog_compiler_pic_CXX
=
20162 lt_prog_compiler_can_build_shared_CXX
=no
20170 # Check to make sure the static flag actually works.
20172 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20174 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20175 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20176 $as_echo_n "(cached) " >&6
20178 lt_cv_prog_compiler_static_works_CXX
=no
20179 save_LDFLAGS
="$LDFLAGS"
20180 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20181 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20182 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20183 # The linker can only warn and ignore the option if not recognized
20184 # So say no if there are warnings
20185 if test -s conftest.err
; then
20186 # Append any errors to the config.log.
20187 cat conftest.err
1>&5
20188 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20189 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20190 if diff conftest.exp conftest.er2
>/dev
/null
; then
20191 lt_cv_prog_compiler_static_works_CXX
=yes
20194 lt_cv_prog_compiler_static_works_CXX
=yes
20198 LDFLAGS
="$save_LDFLAGS"
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20202 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20204 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20207 lt_prog_compiler_static_CXX
=
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20214 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20215 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20216 $as_echo_n "(cached) " >&6
20218 lt_cv_prog_compiler_c_o_CXX
=no
20219 $RM -r conftest
2>/dev
/null
20223 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20225 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20226 # Insert the option either (1) after the last *FLAGS variable, or
20227 # (2) before a word containing "conftest.", or (3) at the end.
20228 # Note that $ac_compile itself does not contain backslashes and begins
20229 # with a dollar sign (not a hyphen), so the echo should work correctly.
20230 lt_compile
=`echo "$ac_compile" | $SED \
20231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20233 -e 's:$: $lt_compiler_flag:'`
20234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20235 (eval "$lt_compile" 2>out
/conftest.err
)
20237 cat out
/conftest.err
>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20241 # The compiler can only warn and ignore the option if not recognized
20242 # So say no if there are warnings
20243 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20244 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20245 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20246 lt_cv_prog_compiler_c_o_CXX
=yes
20251 # SGI C++ compiler will create directory out/ii_files/ for
20252 # template instantiation
20253 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20254 $RM out
/* && rmdir out
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20261 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20266 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20267 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20268 $as_echo_n "(cached) " >&6
20270 lt_cv_prog_compiler_c_o_CXX
=no
20271 $RM -r conftest
2>/dev
/null
20275 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20277 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20278 # Insert the option either (1) after the last *FLAGS variable, or
20279 # (2) before a word containing "conftest.", or (3) at the end.
20280 # Note that $ac_compile itself does not contain backslashes and begins
20281 # with a dollar sign (not a hyphen), so the echo should work correctly.
20282 lt_compile
=`echo "$ac_compile" | $SED \
20283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20285 -e 's:$: $lt_compiler_flag:'`
20286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20287 (eval "$lt_compile" 2>out
/conftest.err
)
20289 cat out
/conftest.err
>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20293 # The compiler can only warn and ignore the option if not recognized
20294 # So say no if there are warnings
20295 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20296 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20297 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20298 lt_cv_prog_compiler_c_o_CXX
=yes
20303 # SGI C++ compiler will create directory out/ii_files/ for
20304 # template instantiation
20305 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20306 $RM out
/* && rmdir out
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20313 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20318 hard_links
="nottested"
20319 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20320 # do not overwrite the value of need_locks provided by the user
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20322 $as_echo_n "checking if we can lock with hard links... " >&6; }
20325 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20327 ln conftest.a conftest.b
2>&5 || hard_links
=no
20328 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20330 $as_echo "$hard_links" >&6; }
20331 if test "$hard_links" = no
; then
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20333 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20345 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20348 # If we're using GNU nm, then we don't want the "-C" option.
20349 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20350 # Also, AIX nm treats weak defined symbols like other global defined
20351 # symbols, whereas GNU nm marks them as "W".
20352 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20353 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'
20355 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'
20359 export_symbols_cmds_CXX
="$ltdll_cmds"
20361 cygwin
* | mingw
* | cegcc
*)
20362 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'
20365 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20368 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20371 $as_echo "$ld_shlibs_CXX" >&6; }
20372 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20374 with_gnu_ld_CXX
=$with_gnu_ld
20382 # Do we need to explicitly link libc?
20384 case "x$archive_cmds_need_lc_CXX" in
20386 # Assume -lc should be added
20387 archive_cmds_need_lc_CXX
=yes
20389 if test "$enable_shared" = yes && test "$GCC" = yes; then
20390 case $archive_cmds_CXX in
20392 # FIXME: we may have to deal with multi-command sequences.
20395 # Test whether the compiler implicitly links with -lc since on some
20396 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20397 # to ld, don't add -lc before -lgcc.
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20399 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20400 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20401 $as_echo_n "(cached) " >&6
20404 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20407 (eval $ac_compile) 2>&5
20409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20410 test $ac_status = 0; } 2>conftest.err
; then
20413 libobjs
=conftest.
$ac_objext
20415 wl
=$lt_prog_compiler_wl_CXX
20416 pic_flag
=$lt_prog_compiler_pic_CXX
20422 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20423 allow_undefined_flag_CXX
=
20424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20425 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20428 test $ac_status = 0; }
20430 lt_cv_archive_cmds_need_lc_CXX
=no
20432 lt_cv_archive_cmds_need_lc_CXX
=yes
20434 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20436 cat conftest.err
1>&5
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20442 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20443 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20514 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20516 library_names_spec
=
20517 libname_spec
='lib$name'
20521 postuninstall_cmds
=
20525 shlibpath_overrides_runpath
=unknown
20527 dynamic_linker
="$host_os ld.so"
20528 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20529 need_lib_prefix
=unknown
20530 hardcode_into_libs
=no
20532 # when you set need_version to no, make sure it does not cause -set_version
20533 # flags to be left without arguments
20534 need_version
=unknown
20539 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20540 shlibpath_var
=LIBPATH
20542 # AIX 3 has no versioning support, so we append a major version to the name.
20543 soname_spec
='${libname}${release}${shared_ext}$major'
20550 hardcode_into_libs
=yes
20551 if test "$host_cpu" = ia64
; then
20552 # AIX 5 supports IA64
20553 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20554 shlibpath_var
=LD_LIBRARY_PATH
20556 # With GCC up to 2.95.x, collect2 would create an import file
20557 # for dependence libraries. The import file would start with
20558 # the line `#! .'. This would cause the generated library to
20559 # depend on `.', always an invalid library. This was fixed in
20560 # development snapshots of GCC prior to 3.0.
20562 aix4 | aix4.
[01] | aix4.
[01].
*)
20563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20565 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20568 can_build_shared
=no
20572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20573 # soname into executable. Probably we can add versioning support to
20574 # collect2, so additional links can be useful in future.
20575 if test "$aix_use_runtimelinking" = yes; then
20576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20577 # instead of lib<name>.a to let people know that these are not
20578 # typical AIX shared libraries.
20579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20581 # We preserve .a as extension for shared libraries through AIX4.2
20582 # and later when we are not doing run time linking.
20583 library_names_spec
='${libname}${release}.a $libname.a'
20584 soname_spec
='${libname}${release}${shared_ext}$major'
20586 shlibpath_var
=LIBPATH
20593 # Since July 2007 AmigaOS4 officially supports .so libraries.
20594 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20598 library_names_spec
='$libname.ixlibrary $libname.a'
20599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20600 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'
20606 library_names_spec
='${libname}${shared_ext}'
20607 dynamic_linker
="$host_os ld.so"
20608 shlibpath_var
=LIBRARY_PATH
20614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615 soname_spec
='${libname}${release}${shared_ext}$major'
20616 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20617 shlibpath_var
=LD_LIBRARY_PATH
20618 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20619 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20620 # the default ld.so.conf also contains /usr/contrib/lib and
20621 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20622 # libtool to hard-code these into programs
20625 cygwin
* | mingw
* | pw32
* | cegcc
*)
20626 version_type
=windows
20631 case $GCC,$host_os in
20632 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20633 library_names_spec
='$libname.dll.a'
20634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20635 postinstall_cmds
='base_file=`basename \${file}`~
20636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20637 dldir=$destdir/`dirname \$dlpath`~
20638 test -d \$dldir || mkdir -p \$dldir~
20639 $install_prog $dir/$dlname \$dldir/$dlname~
20640 chmod a+x \$dldir/$dlname~
20641 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20642 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20644 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20645 dlpath=$dir/\$dldll~
20647 shlibpath_overrides_runpath
=yes
20651 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20652 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20656 # MinGW DLLs use traditional 'lib' prefix
20657 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20660 # pw32 DLLs use 'pw' prefix rather than 'lib'
20661 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20667 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20670 dynamic_linker
='Win32 ld.exe'
20671 # FIXME: first we should search . and the directory the executable is in
20675 darwin
* | rhapsody
*)
20676 dynamic_linker
="$host_os dyld"
20677 version_type
=darwin
20680 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20681 soname_spec
='${libname}${release}${major}$shared_ext'
20682 shlibpath_overrides_runpath
=yes
20683 shlibpath_var
=DYLD_LIBRARY_PATH
20684 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20686 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20694 soname_spec
='${libname}${release}${shared_ext}$major'
20695 shlibpath_var
=LD_LIBRARY_PATH
20698 freebsd
* | dragonfly
*)
20699 # DragonFly does not have aout. When/if they implement a new
20700 # versioning mechanism, adjust this.
20701 if test -x /usr
/bin
/objformat
; then
20702 objformat
=`/usr/bin/objformat`
20705 freebsd
[23].
*) objformat
=aout
;;
20706 *) objformat
=elf
;;
20709 version_type
=freebsd-
$objformat
20710 case $version_type in
20712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20717 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20721 shlibpath_var
=LD_LIBRARY_PATH
20724 shlibpath_overrides_runpath
=yes
20726 freebsd3.
[01]* | freebsdelf3.
[01]*)
20727 shlibpath_overrides_runpath
=yes
20728 hardcode_into_libs
=yes
20730 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20731 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20732 shlibpath_overrides_runpath
=no
20733 hardcode_into_libs
=yes
20735 *) # from 4.6 on, and DragonFly
20736 shlibpath_overrides_runpath
=yes
20737 hardcode_into_libs
=yes
20746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20747 soname_spec
='${libname}${release}${shared_ext}$major'
20748 shlibpath_var
=LD_LIBRARY_PATH
20749 hardcode_into_libs
=yes
20756 dynamic_linker
="$host_os runtime_loader"
20757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20758 soname_spec
='${libname}${release}${shared_ext}$major'
20759 shlibpath_var
=LIBRARY_PATH
20760 shlibpath_overrides_runpath
=yes
20761 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20762 hardcode_into_libs
=yes
20765 hpux9
* | hpux10
* | hpux11
*)
20766 # Give a soname corresponding to the major version so that dld.sl refuses to
20767 # link against other versions.
20774 hardcode_into_libs
=yes
20775 dynamic_linker
="$host_os dld.so"
20776 shlibpath_var
=LD_LIBRARY_PATH
20777 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 soname_spec
='${libname}${release}${shared_ext}$major'
20780 if test "X$HPUX_IA64_MODE" = X32
; then
20781 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20783 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20785 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20789 hardcode_into_libs
=yes
20790 dynamic_linker
="$host_os dld.sl"
20791 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20792 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20794 soname_spec
='${libname}${release}${shared_ext}$major'
20795 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20796 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20800 dynamic_linker
="$host_os dld.sl"
20801 shlibpath_var
=SHLIB_PATH
20802 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 soname_spec
='${libname}${release}${shared_ext}$major'
20807 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20808 postinstall_cmds
='chmod 555 $lib'
20809 # or fails outright, so override atomically:
20810 install_override_mode
=555
20817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20818 soname_spec
='${libname}${release}${shared_ext}$major'
20819 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20820 shlibpath_var
=LD_LIBRARY_PATH
20821 shlibpath_overrides_runpath
=no
20822 hardcode_into_libs
=yes
20825 irix5
* | irix6
* | nonstopux
*)
20827 nonstopux
*) version_type
=nonstopux
;;
20829 if test "$lt_cv_prog_gnu_ld" = yes; then
20837 soname_spec
='${libname}${release}${shared_ext}$major'
20838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20840 irix5
* | nonstopux
*)
20841 libsuff
= shlibsuff
=
20844 case $LD in # libtool.m4 will add one of these switches to LD
20845 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20846 libsuff
= shlibsuff
= libmagic
=32-bit;;
20847 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20848 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20849 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20850 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20851 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20855 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20856 shlibpath_overrides_runpath
=no
20857 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20858 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20859 hardcode_into_libs
=yes
20862 # No shared lib support for Linux oldld, aout, or coff.
20863 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20867 # This must be Linux ELF.
20868 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20873 soname_spec
='${libname}${release}${shared_ext}$major'
20874 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20875 shlibpath_var
=LD_LIBRARY_PATH
20876 shlibpath_overrides_runpath
=no
20878 # Some binutils ld are patched to set DT_RUNPATH
20879 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20880 $as_echo_n "(cached) " >&6
20882 lt_cv_shlibpath_overrides_runpath
=no
20883 save_LDFLAGS
=$LDFLAGS
20884 save_libdir
=$libdir
20885 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20886 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20898 if ac_fn_cxx_try_link
"$LINENO"; then :
20899 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20900 lt_cv_shlibpath_overrides_runpath
=yes
20903 rm -f core conftest.err conftest.
$ac_objext \
20904 conftest
$ac_exeext conftest.
$ac_ext
20905 LDFLAGS
=$save_LDFLAGS
20906 libdir
=$save_libdir
20910 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20912 # This implies no fast_install, which is unacceptable.
20913 # Some rework will be needed to allow for fast_install
20914 # before this can be enabled.
20915 hardcode_into_libs
=yes
20917 # Append ld.so.conf contents to the search path
20918 if test -f /etc
/ld.so.conf
; then
20919 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' ' '`
20920 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20923 # We used to test for /lib/ld.so.1 and disable shared libraries on
20924 # powerpc, because MkLinux only supported shared libraries with the
20925 # GNU dynamic linker. Since this was broken with cross compilers,
20926 # most powerpc-linux boxes support dynamic linking these days and
20927 # people can always --disable-shared, the test was removed, and we
20928 # assume the GNU/Linux dynamic linker is in use.
20929 dynamic_linker
='GNU/Linux ld.so'
20936 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20937 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20938 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20939 dynamic_linker
='NetBSD (a.out) ld.so'
20941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20942 soname_spec
='${libname}${release}${shared_ext}$major'
20943 dynamic_linker
='NetBSD ld.elf_so'
20945 shlibpath_var
=LD_LIBRARY_PATH
20946 shlibpath_overrides_runpath
=yes
20947 hardcode_into_libs
=yes
20952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20953 shlibpath_var
=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath
=yes
20961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20962 soname_spec
='${libname}${release}${shared_ext}$major'
20963 shlibpath_var
=LD_LIBRARY_PATH
20964 shlibpath_overrides_runpath
=no
20965 hardcode_into_libs
=yes
20966 dynamic_linker
='ldqnx.so'
20971 sys_lib_dlsearch_path_spec
="/usr/lib"
20973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20975 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20976 *) need_version
=no
;;
20978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20979 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20980 shlibpath_var
=LD_LIBRARY_PATH
20981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20983 openbsd2.
[89] | openbsd2.
[89].
*)
20984 shlibpath_overrides_runpath
=no
20987 shlibpath_overrides_runpath
=yes
20991 shlibpath_overrides_runpath
=yes
20996 libname_spec
='$name'
20999 library_names_spec
='$libname${shared_ext} $libname.a'
21000 dynamic_linker
='OS/2 ld.exe'
21001 shlibpath_var
=LIBPATH
21004 osf3
* | osf4
* | osf5
*)
21008 soname_spec
='${libname}${release}${shared_ext}$major'
21009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21010 shlibpath_var
=LD_LIBRARY_PATH
21011 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21012 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21024 soname_spec
='${libname}${release}${shared_ext}$major'
21025 shlibpath_var
=LD_LIBRARY_PATH
21026 shlibpath_overrides_runpath
=yes
21027 hardcode_into_libs
=yes
21028 # ldd complains unless libraries are executable
21029 postinstall_cmds
='chmod +x $lib'
21034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21035 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21036 shlibpath_var
=LD_LIBRARY_PATH
21037 shlibpath_overrides_runpath
=yes
21038 if test "$with_gnu_ld" = yes; then
21046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21047 soname_spec
='${libname}${release}${shared_ext}$major'
21048 shlibpath_var
=LD_LIBRARY_PATH
21049 case $host_vendor in
21051 shlibpath_overrides_runpath
=no
21053 runpath_var
=LD_RUN_PATH
21061 shlibpath_overrides_runpath
=no
21062 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21068 if test -d /usr
/nec
;then
21070 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21071 soname_spec
='$libname${shared_ext}.$major'
21072 shlibpath_var
=LD_LIBRARY_PATH
21076 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21077 version_type
=freebsd-elf
21080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21081 soname_spec
='${libname}${release}${shared_ext}$major'
21082 shlibpath_var
=LD_LIBRARY_PATH
21083 shlibpath_overrides_runpath
=yes
21084 hardcode_into_libs
=yes
21085 if test "$with_gnu_ld" = yes; then
21086 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21088 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21091 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21095 sys_lib_dlsearch_path_spec
='/usr/lib'
21099 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21104 shlibpath_var
=LD_LIBRARY_PATH
21105 shlibpath_overrides_runpath
=no
21106 hardcode_into_libs
=yes
21111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21112 soname_spec
='${libname}${release}${shared_ext}$major'
21113 shlibpath_var
=LD_LIBRARY_PATH
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21121 $as_echo "$dynamic_linker" >&6; }
21122 test "$dynamic_linker" = no
&& can_build_shared
=no
21124 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21125 if test "$GCC" = yes; then
21126 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21129 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21130 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21132 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21133 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21174 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21175 hardcode_action_CXX
=
21176 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21177 test -n "$runpath_var_CXX" ||
21178 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21180 # We can hardcode non-existent directories.
21181 if test "$hardcode_direct_CXX" != no
&&
21182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21183 # have to relink, otherwise we might link with an installed library
21184 # when we should be linking with a yet-to-be-installed one
21185 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21186 test "$hardcode_minus_L_CXX" != no
; then
21187 # Linking always hardcodes the temporary library directory.
21188 hardcode_action_CXX
=relink
21190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21191 hardcode_action_CXX
=immediate
21194 # We cannot hardcode anything, or else we can only hardcode existing
21196 hardcode_action_CXX
=unsupported
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21199 $as_echo "$hardcode_action_CXX" >&6; }
21201 if test "$hardcode_action_CXX" = relink ||
21202 test "$inherit_rpath_CXX" = yes; then
21203 # Fast installation is not supported
21204 enable_fast_install
=no
21205 elif test "$shlibpath_overrides_runpath" = yes ||
21206 test "$enable_shared" = no
; then
21207 # Fast installation is not necessary
21208 enable_fast_install
=needless
21217 fi # test -n "$compiler"
21223 with_gnu_ld
=$lt_save_with_gnu_ld
21224 lt_cv_path_LDCXX
=$lt_cv_path_LD
21225 lt_cv_path_LD
=$lt_save_path_LD
21226 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21227 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21228 fi # test "$_lt_caught_CXX_error" != yes
21231 ac_cpp
='$CPP $CPPFLAGS'
21232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21251 # Only expand once:
21257 # Identify the assembler which will work hand-in-glove with the newly
21258 # built GCC, so that we can examine its features. This is the assembler
21259 # which will be driven by the driver program.
21261 # If build != host, and we aren't building gas in-tree, we identify a
21262 # build->target assembler and hope that it will have the same features
21263 # as the host->target assembler we'll be using.
21264 gcc_cv_gas_major_version
=
21265 gcc_cv_gas_minor_version
=
21266 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21268 if test "${gcc_cv_as+set}" = set; then :
21272 if test -x "$DEFAULT_ASSEMBLER"; then
21273 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21274 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21275 && test -f ..
/gas
/Makefile \
21276 && test x
$build = x
$host; then
21277 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21278 elif test -x as
$build_exeext; then
21279 # Build using assembler in the current directory.
21280 gcc_cv_as
=.
/as
$build_exeext
21281 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21282 gcc_cv_as
="$AS_FOR_TARGET"
21284 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21285 set dummy
$AS_FOR_TARGET; ac_word
=$2
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21287 $as_echo_n "checking for $ac_word... " >&6; }
21288 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21289 $as_echo_n "(cached) " >&6
21293 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21297 for as_dir
in $PATH
21300 test -z "$as_dir" && as_dir
=.
21301 for ac_exec_ext
in '' $ac_executable_extensions; do
21302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21303 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21314 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21315 if test -n "$gcc_cv_as"; then
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21317 $as_echo "$gcc_cv_as" >&6; }
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21320 $as_echo "no" >&6; }
21327 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21329 case "$ORIGINAL_AS_FOR_TARGET" in
21330 .
/as | .
/as
$build_exeext) ;;
21331 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21336 $as_echo_n "checking what assembler to use... " >&6; }
21337 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21338 # Single tree build which includes gas. We want to prefer it
21339 # over whatever linker top-level may have detected, since
21340 # we'll use what we're building after installation anyway.
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21342 $as_echo "newly built gas" >&6; }
21344 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21345 for f
in $gcc_cv_as_bfd_srcdir/configure \
21346 $gcc_cv_as_gas_srcdir/configure \
21347 $gcc_cv_as_gas_srcdir/configure.
in \
21348 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21349 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21350 if test x
$gcc_cv_gas_version != x
; then
21354 case $gcc_cv_gas_version in
21356 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21358 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21359 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21360 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21361 case $gcc_cv_gas_patch_version in
21362 "") gcc_cv_gas_patch_version
="0" ;;
21364 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21365 + $gcc_cv_gas_minor_version \) \* 1000 \
21366 + $gcc_cv_gas_patch_version`
21368 in_tree_gas_is_elf
=no
21369 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21370 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21371 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21373 in_tree_gas_is_elf
=yes
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21377 $as_echo "$gcc_cv_as" >&6; }
21381 # Identify the linker which will work hand-in-glove with the newly
21382 # built GCC, so that we can examine its features. This is the linker
21383 # which will be driven by the driver program.
21385 # If build != host, and we aren't building gas in-tree, we identify a
21386 # build->target linker and hope that it will have the same features
21387 # as the host->target linker we'll be using.
21388 gcc_cv_gld_major_version
=
21389 gcc_cv_gld_minor_version
=
21390 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21391 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21393 if test "${gcc_cv_ld+set}" = set; then :
21397 if test -x "$DEFAULT_LINKER"; then
21398 gcc_cv_ld
="$DEFAULT_LINKER"
21399 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21400 && test -f ..
/ld
/Makefile \
21401 && test x
$build = x
$host; then
21402 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21403 elif test -x collect-ld
$build_exeext; then
21404 # Build using linker in the current directory.
21405 gcc_cv_ld
=.
/collect-ld
$build_exeext
21406 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21407 gcc_cv_ld
="$LD_FOR_TARGET"
21409 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21410 set dummy
$LD_FOR_TARGET; ac_word
=$2
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21412 $as_echo_n "checking for $ac_word... " >&6; }
21413 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21414 $as_echo_n "(cached) " >&6
21418 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21422 for as_dir
in $PATH
21425 test -z "$as_dir" && as_dir
=.
21426 for ac_exec_ext
in '' $ac_executable_extensions; do
21427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21428 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21439 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21440 if test -n "$gcc_cv_ld"; then
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21442 $as_echo "$gcc_cv_ld" >&6; }
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21445 $as_echo "no" >&6; }
21452 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21453 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21454 # if the PLUGIN_LD is set ld-new, just have it as ld
21455 # as that is the installed named.
21456 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21457 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21458 PLUGIN_LD_SUFFIX
=ld
21461 # Check whether --with-plugin-ld was given.
21462 if test "${with_plugin_ld+set}" = set; then :
21463 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21464 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21465 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21471 cat >>confdefs.h
<<_ACEOF
21472 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21476 # Check to see if we are using gold instead of ld
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21478 $as_echo_n "checking whether we are using gold... " >&6; }
21480 if test x
$gcc_cv_ld != x
; then
21481 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21482 |
grep "GNU gold" > /dev
/null
; then
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21487 $as_echo "$ld_is_gold" >&6; }
21489 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21491 case "$ORIGINAL_LD_FOR_TARGET" in
21492 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21493 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21498 $as_echo_n "checking what linker to use... " >&6; }
21499 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21500 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21501 # Single tree build which includes ld. We want to prefer it
21502 # over whatever linker top-level may have detected, since
21503 # we'll use what we're building after installation anyway.
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21505 $as_echo "newly built ld" >&6; }
21507 in_tree_ld_is_elf
=no
21508 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21509 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21510 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21511 in_tree_ld_is_elf
=yes
21512 elif test "$ld_is_gold" = yes; then
21513 in_tree_ld_is_elf
=yes
21515 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
21517 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21518 if test x
$gcc_cv_gld_version != x
; then
21522 case $gcc_cv_gld_version in
21524 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21526 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21527 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21530 $as_echo "$gcc_cv_ld" >&6; }
21534 # Figure out what nm we will be using.
21535 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21536 if test "${gcc_cv_nm+set}" = set; then :
21540 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21541 && test -f ..
/binutils
/Makefile \
21542 && test x
$build = x
$host; then
21543 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21544 elif test -x nm
$build_exeext; then
21545 gcc_cv_nm
=.
/nm
$build_exeext
21546 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21547 gcc_cv_nm
="$NM_FOR_TARGET"
21549 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21550 set dummy
$NM_FOR_TARGET; ac_word
=$2
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21552 $as_echo_n "checking for $ac_word... " >&6; }
21553 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21554 $as_echo_n "(cached) " >&6
21558 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21562 for as_dir
in $PATH
21565 test -z "$as_dir" && as_dir
=.
21566 for ac_exec_ext
in '' $ac_executable_extensions; do
21567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21568 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21579 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21580 if test -n "$gcc_cv_nm"; then
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21582 $as_echo "$gcc_cv_nm" >&6; }
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21585 $as_echo "no" >&6; }
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21593 $as_echo_n "checking what nm to use... " >&6; }
21594 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21595 # Single tree build which includes binutils.
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21597 $as_echo "newly built nm" >&6; }
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21601 $as_echo "$gcc_cv_nm" >&6; }
21605 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21607 case "$ORIGINAL_NM_FOR_TARGET" in
21608 .
/nm | .
/nm
$build_exeext) ;;
21609 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21614 # Figure out what objdump we will be using.
21615 if test "${gcc_cv_objdump+set}" = set; then :
21619 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21620 && test -f ..
/binutils
/Makefile \
21621 && test x
$build = x
$host; then
21622 # Single tree build which includes binutils.
21623 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21624 elif test -x objdump
$build_exeext; then
21625 gcc_cv_objdump
=.
/objdump
$build_exeext
21626 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21627 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21629 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21630 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21632 $as_echo_n "checking for $ac_word... " >&6; }
21633 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21634 $as_echo_n "(cached) " >&6
21636 case $gcc_cv_objdump in
21638 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21642 for as_dir
in $PATH
21645 test -z "$as_dir" && as_dir
=.
21646 for ac_exec_ext
in '' $ac_executable_extensions; do
21647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21648 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21659 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21660 if test -n "$gcc_cv_objdump"; then
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21662 $as_echo "$gcc_cv_objdump" >&6; }
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21665 $as_echo "no" >&6; }
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21673 $as_echo_n "checking what objdump to use... " >&6; }
21674 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21675 # Single tree build which includes binutils.
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21677 $as_echo "newly built objdump" >&6; }
21678 elif test x
$gcc_cv_objdump = x
; then
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21680 $as_echo "not found" >&6; }
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21683 $as_echo "$gcc_cv_objdump" >&6; }
21686 # Figure out what readelf we will be using.
21687 if test "${gcc_cv_readelf+set}" = set; then :
21691 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21692 && test -f ..
/binutils
/Makefile \
21693 && test x
$build = x
$host; then
21694 # Single tree build which includes binutils.
21695 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21696 elif test -x readelf
$build_exeext; then
21697 gcc_cv_readelf
=.
/readelf
$build_exeext
21699 # Extract the first word of "readelf", so it can be a program name with args.
21700 set dummy readelf
; ac_word
=$2
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21702 $as_echo_n "checking for $ac_word... " >&6; }
21703 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21706 case $gcc_cv_readelf in
21708 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21712 for as_dir
in $PATH
21715 test -z "$as_dir" && as_dir
=.
21716 for ac_exec_ext
in '' $ac_executable_extensions; do
21717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21718 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21729 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21730 if test -n "$gcc_cv_readelf"; then
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21732 $as_echo "$gcc_cv_readelf" >&6; }
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21735 $as_echo "no" >&6; }
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21743 $as_echo_n "checking what readelf to use... " >&6; }
21744 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21745 # Single tree build which includes binutils.
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21747 $as_echo "newly built readelf" >&6; }
21748 elif test x
$gcc_cv_readelf = x
; then
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21750 $as_echo "not found" >&6; }
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21753 $as_echo "$gcc_cv_readelf" >&6; }
21756 # Figure out what assembler alignment features are present.
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21758 $as_echo_n "checking assembler flags... " >&6; }
21759 if test "${gcc_cv_as_flags+set}" = set; then :
21760 $as_echo_n "(cached) " >&6
21763 i
[34567]86-*-linux*)
21764 gcc_cv_as_flags
="--32"
21766 powerpc
*-*-darwin*)
21767 gcc_cv_as_flags
="-arch ppc"
21770 gcc_cv_as_flags
=" "
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21775 $as_echo "$gcc_cv_as_flags" >&6; }
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21778 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21779 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21782 gcc_cv_as_balign_and_p2align
=no
21783 if test $in_tree_gas = yes; then
21784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21785 then gcc_cv_as_balign_and_p2align
=yes
21787 elif test x
$gcc_cv_as != x
; then
21788 $as_echo '.balign 4
21789 .p2align 2' > conftest.s
21790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21792 (eval $ac_try) 2>&5
21794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795 test $ac_status = 0; }; }
21797 gcc_cv_as_balign_and_p2align
=yes
21799 echo "configure: failed program was" >&5
21802 rm -f conftest.o conftest.s
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21806 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21807 if test $gcc_cv_as_balign_and_p2align = yes; then
21809 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21814 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21815 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
21818 gcc_cv_as_max_skip_p2align
=no
21819 if test $in_tree_gas = yes; then
21820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21821 then gcc_cv_as_max_skip_p2align
=yes
21823 elif test x
$gcc_cv_as != x
; then
21824 $as_echo '.p2align 4,,7' > conftest.s
21825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21827 (eval $ac_try) 2>&5
21829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21830 test $ac_status = 0; }; }
21832 gcc_cv_as_max_skip_p2align
=yes
21834 echo "configure: failed program was" >&5
21837 rm -f conftest.o conftest.s
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21841 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21842 if test $gcc_cv_as_max_skip_p2align = yes; then
21844 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21849 $as_echo_n "checking assembler for .literal16... " >&6; }
21850 if test "${gcc_cv_as_literal16+set}" = set; then :
21851 $as_echo_n "(cached) " >&6
21853 gcc_cv_as_literal16
=no
21854 if test $in_tree_gas = yes; then
21855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21856 then gcc_cv_as_literal16
=yes
21858 elif test x
$gcc_cv_as != x
; then
21859 $as_echo '.literal16' > conftest.s
21860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21862 (eval $ac_try) 2>&5
21864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21865 test $ac_status = 0; }; }
21867 gcc_cv_as_literal16
=yes
21869 echo "configure: failed program was" >&5
21872 rm -f conftest.o conftest.s
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21876 $as_echo "$gcc_cv_as_literal16" >&6; }
21877 if test $gcc_cv_as_literal16 = yes; then
21879 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21884 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21885 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21886 $as_echo_n "(cached) " >&6
21888 gcc_cv_as_subsection_m1
=no
21889 if test $in_tree_gas = yes; then
21890 if test $in_tree_gas_is_elf = yes \
21891 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21892 then gcc_cv_as_subsection_m1
=yes
21894 elif test x
$gcc_cv_as != x
; then
21895 $as_echo 'conftest_label1: .word 0
21897 conftest_label2: .word 0
21898 .previous' > conftest.s
21899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21901 (eval $ac_try) 2>&5
21903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21904 test $ac_status = 0; }; }
21906 if test x
$gcc_cv_nm != x
; then
21907 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21908 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21909 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21911 else gcc_cv_as_subsection_m1
=yes
21913 rm -f conftest.nm1 conftest.nm2
21916 echo "configure: failed program was" >&5
21919 rm -f conftest.o conftest.s
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21923 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21924 if test $gcc_cv_as_subsection_m1 = yes; then
21926 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21931 $as_echo_n "checking assembler for .weak... " >&6; }
21932 if test "${gcc_cv_as_weak+set}" = set; then :
21933 $as_echo_n "(cached) " >&6
21936 if test $in_tree_gas = yes; then
21937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21938 then gcc_cv_as_weak
=yes
21940 elif test x
$gcc_cv_as != x
; then
21941 $as_echo ' .weak foobar' > conftest.s
21942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21944 (eval $ac_try) 2>&5
21946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21947 test $ac_status = 0; }; }
21951 echo "configure: failed program was" >&5
21954 rm -f conftest.o conftest.s
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21958 $as_echo "$gcc_cv_as_weak" >&6; }
21959 if test $gcc_cv_as_weak = yes; then
21961 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21966 $as_echo_n "checking assembler for .weakref... " >&6; }
21967 if test "${gcc_cv_as_weakref+set}" = set; then :
21968 $as_echo_n "(cached) " >&6
21970 gcc_cv_as_weakref
=no
21971 if test $in_tree_gas = yes; then
21972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21973 then gcc_cv_as_weakref
=yes
21975 elif test x
$gcc_cv_as != x
; then
21976 $as_echo ' .weakref foobar, barfnot' > conftest.s
21977 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21979 (eval $ac_try) 2>&5
21981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21982 test $ac_status = 0; }; }
21984 gcc_cv_as_weakref
=yes
21986 echo "configure: failed program was" >&5
21989 rm -f conftest.o conftest.s
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21993 $as_echo "$gcc_cv_as_weakref" >&6; }
21994 if test $gcc_cv_as_weakref = yes; then
21996 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22001 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22002 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22003 $as_echo_n "(cached) " >&6
22005 gcc_cv_as_nsubspa_comdat
=no
22006 if test $in_tree_gas = yes; then
22007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22008 then gcc_cv_as_nsubspa_comdat
=yes
22010 elif test x
$gcc_cv_as != x
; then
22011 $as_echo ' .SPACE $TEXT$
22012 .NSUBSPA $CODE$,COMDAT' > conftest.s
22013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22015 (eval $ac_try) 2>&5
22017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22018 test $ac_status = 0; }; }
22020 gcc_cv_as_nsubspa_comdat
=yes
22022 echo "configure: failed program was" >&5
22025 rm -f conftest.o conftest.s
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22029 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22030 if test $gcc_cv_as_nsubspa_comdat = yes; then
22032 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22036 # .hidden needs to be supported in both the assembler and the linker,
22037 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22038 # This is irritatingly difficult to feature test for; we have to check the
22039 # date string after the version number. If we've got an in-tree
22040 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22042 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22044 $as_echo_n "checking assembler for .hidden... " >&6; }
22045 if test "${gcc_cv_as_hidden+set}" = set; then :
22046 $as_echo_n "(cached) " >&6
22048 gcc_cv_as_hidden
=no
22049 if test $in_tree_gas = yes; then
22050 if test $in_tree_gas_is_elf = yes \
22051 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22052 then gcc_cv_as_hidden
=yes
22054 elif test x
$gcc_cv_as != x
; then
22055 $as_echo ' .hidden foobar
22056 foobar:' > conftest.s
22057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22059 (eval $ac_try) 2>&5
22061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22062 test $ac_status = 0; }; }
22065 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22066 # STV_HIDDEN, so disable .hidden support if so.
22067 case "${target}" in
22068 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22069 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22070 cat > conftest.s
<<EOF
22075 .set default,hidden
22077 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22078 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22079 grep '\.hidden default' > /dev
/null
; then
22080 gcc_cv_as_hidden
=no
22082 gcc_cv_as_hidden
=yes
22085 # Assume bug is present if objdump is missing.
22086 gcc_cv_as_hidden
=no
22090 gcc_cv_as_hidden
=yes
22094 echo "configure: failed program was" >&5
22097 rm -f conftest.o conftest.s
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22101 $as_echo "$gcc_cv_as_hidden" >&6; }
22103 case "${target}" in
22105 # Darwin as has some visibility support, though with a different syntax.
22106 gcc_cv_as_hidden
=yes
22110 # gnu_indirect_function type is an extension proposed at
22111 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22112 # selection of function implementation
22113 # Check whether --enable-gnu-indirect-function was given.
22114 if test "${enable_gnu_indirect_function+set}" = set; then :
22115 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22117 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22118 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22121 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22125 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22127 cat >>confdefs.h
<<_ACEOF
22128 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22133 if test $in_tree_ld != yes ; then
22134 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22135 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22136 if test x
"$ld_is_gold" = xyes
; then
22137 # GNU gold --version looks like this:
22139 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22141 # We extract the binutils version which is more familiar and specific
22142 # than the gold version.
22143 ld_vers
=`echo $ld_ver | sed -n \
22144 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22146 # GNU ld --version looks like this:
22148 # GNU ld (GNU Binutils) 2.21.51.20110225
22149 ld_vers
=`echo $ld_ver | sed -n \
22150 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22152 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'`
22153 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22154 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22155 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22157 case "${target}" in
22159 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22162 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22163 # /usr/ccs/bin/ld has been configured.
22164 ld_ver
=`$gcc_cv_ld -V 2>&1`
22165 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22166 ld_vers
=`echo $ld_ver | sed -n \
22167 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22168 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22169 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22177 $as_echo_n "checking linker for .hidden support... " >&6; }
22178 if test "${gcc_cv_ld_hidden+set}" = set; then :
22179 $as_echo_n "(cached) " >&6
22181 if test $in_tree_ld = yes ; then
22182 gcc_cv_ld_hidden
=no
22183 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 \
22184 && test $in_tree_ld_is_elf = yes; then
22185 gcc_cv_ld_hidden
=yes
22188 gcc_cv_ld_hidden
=yes
22189 if test x
"$ld_is_gold" = xyes
; then
22191 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22192 case "${target}" in
22193 mmix-knuth-mmixware
)
22194 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22195 gcc_cv_ld_hidden
=no
22198 if test 0"$ld_date" -lt 20020404; then
22199 if test -n "$ld_date"; then
22200 # If there was date string, but was earlier than 2002-04-04, fail
22201 gcc_cv_ld_hidden
=no
22202 elif test -z "$ld_vers"; then
22203 # If there was no date string nor ld version number, something is wrong
22204 gcc_cv_ld_hidden
=no
22206 test -z "$ld_vers_patch" && ld_vers_patch
=0
22207 if test "$ld_vers_major" -lt 2; then
22208 gcc_cv_ld_hidden
=no
22209 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22210 gcc_cv_ld_hidden
="no"
22211 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22212 gcc_cv_ld_hidden
=no
22217 case "${target}" in
22219 # Darwin ld has some visibility support.
22220 gcc_cv_ld_hidden
=yes
22222 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22223 gcc_cv_ld_hidden
=yes
22225 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22226 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22227 # .symbolic was only added in Solaris 9 12/02.
22228 gcc_cv_ld_hidden
=yes
22231 gcc_cv_ld_hidden
=no
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22238 $as_echo "$gcc_cv_ld_hidden" >&6; }
22239 libgcc_visibility
=no
22242 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22243 libgcc_visibility
=yes
22245 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22250 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22251 gcc_cv_ld_ro_rw_mix
=unknown
22252 if test $in_tree_ld = yes ; then
22253 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 \
22254 && test $in_tree_ld_is_elf = yes; then
22255 gcc_cv_ld_ro_rw_mix
=read-write
22257 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22258 echo '.section myfoosect, "a"' > conftest1.s
22259 echo '.section myfoosect, "aw"' > conftest2.s
22260 echo '.byte 1' >> conftest2.s
22261 echo '.section myfoosect, "a"' > conftest3.s
22262 echo '.byte 0' >> conftest3.s
22263 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22264 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22265 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22266 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22267 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22268 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22269 | sed -e '/myfoosect/!d' -e N`
22270 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22271 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22272 gcc_cv_ld_ro_rw_mix
=read-only
22274 gcc_cv_ld_ro_rw_mix
=read-write
22278 rm -f conftest.
* conftest
[123].
*
22280 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22282 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22286 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22288 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22289 case "${target}" in
22292 # Solaris 2 ld -V output looks like this for a regular version:
22294 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22296 # but test versions add stuff at the end:
22298 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22300 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22301 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22302 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22303 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22304 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22305 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22311 # Check whether --enable-initfini-array was given.
22312 if test "${enable_initfini_array+set}" = set; then :
22313 enableval
=$enable_initfini_array;
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22317 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22318 if test "${gcc_cv_initfini_array+set}" = set; then :
22319 $as_echo_n "(cached) " >&6
22321 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22322 case "${target}" in
22324 if test "$cross_compiling" = yes; then :
22325 gcc_cv_initfini_array
=no
22327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22328 /* end confdefs.h. */
22331 #error Not an ELF OS
22333 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22334 if it can be used. */
22336 int main (void) { return x; }
22337 int foo (void) { x = 0; }
22338 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22341 if ac_fn_c_try_run
"$LINENO"; then :
22342 gcc_cv_initfini_array
=yes
22344 gcc_cv_initfini_array
=no
22346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22351 gcc_cv_initfini_array
=no
22352 if test $in_tree_ld = yes ; then
22353 if test "$gcc_cv_gld_major_version" -eq 2 \
22354 -a "$gcc_cv_gld_minor_version" -ge 22 \
22355 -o "$gcc_cv_gld_major_version" -gt 2 \
22356 && test $in_tree_ld_is_elf = yes; then
22357 gcc_cv_initfini_array
=yes
22359 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22360 cat > conftest.s
<<\EOF
22361 .section .dtors
,"a",%progbits
22363 .byte
'A', 'A', 'A', 'A'
22364 .section .ctors
,"a",%progbits
22366 .byte
'B', 'B', 'B', 'B'
22367 .section .fini_array
.65530,"a",%progbits
22369 .byte
'C', 'C', 'C', 'C'
22370 .section .init_array
.65530,"a",%progbits
22372 .byte
'D', 'D', 'D', 'D'
22373 .section .dtors
.64528,"a",%progbits
22375 .byte
'E', 'E', 'E', 'E'
22376 .section .ctors
.64528,"a",%progbits
22378 .byte
'F', 'F', 'F', 'F'
22379 .section .fini_array
.01005,"a",%progbits
22381 .byte
'G', 'G', 'G', 'G'
22382 .section .init_array
.01005,"a",%progbits
22384 .byte
'H', 'H', 'H', 'H'
22389 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22390 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22391 && $gcc_cv_objdump -s -j .init_array conftest \
22392 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22393 && $gcc_cv_objdump -s -j .fini_array conftest \
22394 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22395 gcc_cv_initfini_array
=yes
22397 rm -f conftest conftest.
*
22399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22403 # error Not an ELF OS
22405 #include <stdlib.h>
22406 #if defined __GLIBC_PREREQ
22407 # if __GLIBC_PREREQ (2, 4)
22409 # error GLIBC 2.4 required
22412 # if defined __sun__ && defined __svr4__
22413 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22415 # error The C library not known to support .init_array/.fini_array
22420 if ac_fn_c_try_cpp
"$LINENO"; then :
22423 gcc_cv_initfini_array
=no
22425 rm -f conftest.err conftest.
$ac_ext;;
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22429 $as_echo_n "checking cross compile... guessing... " >&6; }
22430 gcc_cv_initfini_array
=no
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22434 $as_echo "$gcc_cv_initfini_array" >&6; }
22435 enable_initfini_array
=$gcc_cv_initfini_array
22439 if test $enable_initfini_array = yes; then
22441 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22445 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22447 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22448 if test "${gcc_cv_as_leb128+set}" = set; then :
22449 $as_echo_n "(cached) " >&6
22451 gcc_cv_as_leb128
=no
22452 if test $in_tree_gas = yes; then
22453 if test $in_tree_gas_is_elf = yes \
22454 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22455 then gcc_cv_as_leb128
=yes
22457 elif test x
$gcc_cv_as != x
; then
22464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22466 (eval $ac_try) 2>&5
22468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22469 test $ac_status = 0; }; }
22471 # GAS versions before 2.11 do not support uleb128,
22472 # despite appearing to.
22473 # ??? There exists an elf-specific test that will crash
22474 # the assembler. Perhaps it's better to figure out whether
22475 # arbitrary sections are supported and try the test.
22476 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22477 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22478 as_vers
=`echo $as_ver | sed -n \
22479 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22480 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22481 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22482 if test $as_major -eq 2 && test $as_minor -lt 11
22484 else gcc_cv_as_leb128
=yes
22488 echo "configure: failed program was" >&5
22491 rm -f conftest.o conftest.s
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22495 $as_echo "$gcc_cv_as_leb128" >&6; }
22496 if test $gcc_cv_as_leb128 = yes; then
22498 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22502 # Check if we have assembler support for unwind directives.
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22504 $as_echo_n "checking assembler for cfi directives... " >&6; }
22505 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22506 $as_echo_n "(cached) " >&6
22508 gcc_cv_as_cfi_directive
=no
22509 if test x
$gcc_cv_as != x
; then
22515 .cfi_escape 1, 2, 3, 4, 5
22516 .cfi_endproc' > conftest.s
22517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22519 (eval $ac_try) 2>&5
22521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22522 test $ac_status = 0; }; }
22526 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22527 # read-only and read-write sections, we need to make sure that the
22528 # assembler used emits read-write .eh_frame sections.
22529 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22530 if test "x$gcc_cv_objdump" != x
; then
22531 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22532 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22533 gcc_cv_as_cfi_directive
=no
22536 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22537 # On Solaris/x86, make sure that GCC and gas agree on using
22538 # read-only .eh_frame sections for 64-bit.
22539 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22540 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22541 sed -e /.eh_frame
/!d
-e N | \
22542 grep READONLY
> /dev
/null
; then
22543 gcc_cv_as_cfi_directive
=yes
22545 gcc_cv_as_cfi_directive
=no
22549 gcc_cv_as_cfi_directive
=yes
22554 # no objdump, err on the side of caution
22555 gcc_cv_as_cfi_directive
=no
22558 gcc_cv_as_cfi_directive
=yes
22562 gcc_cv_as_cfi_directive
=yes
22566 echo "configure: failed program was" >&5
22569 rm -f conftest.o conftest.s
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22573 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22575 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22577 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22578 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22579 $as_echo_n "(cached) " >&6
22581 gcc_cv_as_cfi_advance_working
=no
22582 if test x
$gcc_cv_as != x
; then
22585 .cfi_adjust_cfa_offset 64
22587 .cfi_adjust_cfa_offset 128
22588 .cfi_endproc' > conftest.s
22589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22591 (eval $ac_try) 2>&5
22593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22594 test $ac_status = 0; }; }
22597 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22598 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22599 gcc_cv_as_cfi_advance_working
=yes
22603 echo "configure: failed program was" >&5
22606 rm -f conftest.o conftest.s
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22610 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22613 # no objdump, err on the side of caution
22614 gcc_cv_as_cfi_advance_working
=no
22618 cat >>confdefs.h
<<_ACEOF
22619 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22620 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22626 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22627 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22628 $as_echo_n "(cached) " >&6
22630 gcc_cv_as_cfi_personality_directive
=no
22631 if test x
$gcc_cv_as != x
; then
22634 .cfi_personality 0, symbol
22635 .cfi_endproc' > conftest.s
22636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22638 (eval $ac_try) 2>&5
22640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22641 test $ac_status = 0; }; }
22643 gcc_cv_as_cfi_personality_directive
=yes
22645 echo "configure: failed program was" >&5
22648 rm -f conftest.o conftest.s
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22652 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22655 cat >>confdefs.h
<<_ACEOF
22656 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22657 then echo 1; else echo 0; fi`
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22662 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22663 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22664 $as_echo_n "(cached) " >&6
22666 gcc_cv_as_cfi_sections_directive
=no
22667 if test x
$gcc_cv_as != x
; then
22669 .cfi_sections .debug_frame, .eh_frame
22671 .cfi_endproc' > conftest.s
22672 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22674 (eval $ac_try) 2>&5
22676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22677 test $ac_status = 0; }; }
22680 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22681 # Need to check that we generated the correct relocation for the
22682 # .debug_frame section. This was fixed for binutils 2.21.
22683 gcc_cv_as_cfi_sections_directive
=no
22684 if test "x$gcc_cv_objdump" != x
; then
22685 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22686 grep secrel
> /dev
/null
; then
22687 gcc_cv_as_cfi_sections_directive
=yes
22692 gcc_cv_as_cfi_sections_directive
=yes
22696 echo "configure: failed program was" >&5
22699 rm -f conftest.o conftest.s
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22703 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22707 cat >>confdefs.h
<<_ACEOF
22708 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22709 then echo 1; else echo 0; fi`
22713 # GAS versions up to and including 2.11.0 may mis-optimize
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22716 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22717 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22718 $as_echo_n "(cached) " >&6
22720 gcc_cv_as_eh_frame
=no
22721 if test $in_tree_gas = yes; then
22722 if test $in_tree_gas_is_elf = yes \
22723 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22724 then gcc_cv_as_eh_frame
=yes
22726 elif test x
$gcc_cv_as != x
; then
22733 .section .eh_frame,"aw",@progbits
22735 .4byte .LECIE1-.LSCIE1
22749 .4byte .LEFDE1-.LASFDE1
22751 .4byte .LASFDE1-__FRAME_BEGIN__
22758 .LEFDE1:' > conftest.s
22759 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22761 (eval $ac_try) 2>&5
22763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22764 test $ac_status = 0; }; }
22766 cat > conftest.lit
<<EOF
22767 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22768 0010 01000000 12000000 18000000 00000000 ................
22769 0020 08000000 04080000 0044 .........D
22771 cat > conftest.big
<<EOF
22772 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22773 0010 00000001 00000012 00000018 00000000 ................
22774 0020 00000008 04000000 0844 .........D
22776 # If the assembler didn't choke, and we can objdump,
22777 # and we got the correct data, then succeed.
22778 # The text in the here-document typically retains its unix-style line
22779 # endings, while the output of objdump will use host line endings.
22780 # Therefore, use diff -b for the comparisons.
22781 if test x
$gcc_cv_objdump != x \
22782 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22783 |
tail -3 > conftest.got \
22784 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22785 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22787 gcc_cv_as_eh_frame
=yes
22788 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22790 (eval $ac_try) 2>&5
22792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22793 test $ac_status = 0; }; }; then
22794 gcc_cv_as_eh_frame
=buggy
22796 # Uh oh, what do we do now?
22797 gcc_cv_as_eh_frame
=no
22800 echo "configure: failed program was" >&5
22803 rm -f conftest.o conftest.s
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22807 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22810 if test $gcc_cv_as_eh_frame = buggy
; then
22812 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22817 $as_echo_n "checking assembler for section merging support... " >&6; }
22818 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22819 $as_echo_n "(cached) " >&6
22821 gcc_cv_as_shf_merge
=no
22822 if test $in_tree_gas = yes; then
22823 if test $in_tree_gas_is_elf = yes \
22824 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22825 then gcc_cv_as_shf_merge
=yes
22827 elif test x
$gcc_cv_as != x
; then
22828 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22831 (eval $ac_try) 2>&5
22833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22834 test $ac_status = 0; }; }
22836 gcc_cv_as_shf_merge
=yes
22838 echo "configure: failed program was" >&5
22841 rm -f conftest.o conftest.s
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22845 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22847 if test $gcc_cv_as_shf_merge = no
; then
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22849 $as_echo_n "checking assembler for section merging support... " >&6; }
22850 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22851 $as_echo_n "(cached) " >&6
22853 gcc_cv_as_shf_merge
=no
22854 if test $in_tree_gas = yes; then
22855 if test $in_tree_gas_is_elf = yes \
22856 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22857 then gcc_cv_as_shf_merge
=yes
22859 elif test x
$gcc_cv_as != x
; then
22860 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22861 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22863 (eval $ac_try) 2>&5
22865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22866 test $ac_status = 0; }; }
22868 gcc_cv_as_shf_merge
=yes
22870 echo "configure: failed program was" >&5
22873 rm -f conftest.o conftest.s
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22877 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22881 cat >>confdefs.h
<<_ACEOF
22882 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22887 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22888 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22889 $as_echo_n "(cached) " >&6
22891 gcc_cv_as_comdat_group
=no
22892 if test $in_tree_gas = yes; then
22893 if test $in_tree_gas_is_elf = yes \
22894 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22895 then gcc_cv_as_comdat_group
=yes
22897 elif test x
$gcc_cv_as != x
; then
22898 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22901 (eval $ac_try) 2>&5
22903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22904 test $ac_status = 0; }; }
22906 gcc_cv_as_comdat_group
=yes
22908 echo "configure: failed program was" >&5
22911 rm -f conftest.o conftest.s
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22915 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22917 if test $gcc_cv_as_comdat_group = yes; then
22918 gcc_cv_as_comdat_group_percent
=no
22919 gcc_cv_as_comdat_group_group
=no
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22922 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22923 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22924 $as_echo_n "(cached) " >&6
22926 gcc_cv_as_comdat_group_percent
=no
22927 if test $in_tree_gas = yes; then
22928 if test $in_tree_gas_is_elf = yes \
22929 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22930 then gcc_cv_as_comdat_group_percent
=yes
22932 elif test x
$gcc_cv_as != x
; then
22933 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22936 (eval $ac_try) 2>&5
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; }
22941 gcc_cv_as_comdat_group_percent
=yes
22943 echo "configure: failed program was" >&5
22946 rm -f conftest.o conftest.s
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22950 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22952 if test $gcc_cv_as_comdat_group_percent = yes; then
22953 gcc_cv_as_comdat_group_group
=no
22955 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22956 gcc_cv_as_comdat_group_group
=no
22958 case "${target}" in
22959 # Sun as uses a completely different syntax.
22961 case "${target}" in
22962 sparc
*-*-solaris2*)
22964 .group foo,".text%foo",#comdat
22965 .section ".text%foo", #alloc,#execinstr,#progbits
22970 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22972 .group foo,.text%foo,#comdat
22973 .section .text%foo, "ax", @progbits
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22980 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22981 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22982 $as_echo_n "(cached) " >&6
22984 gcc_cv_as_comdat_group_group
=no
22985 if test x
$gcc_cv_as != x
; then
22986 $as_echo "$conftest_s" > conftest.s
22987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22989 (eval $ac_try) 2>&5
22991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22992 test $ac_status = 0; }; }
22994 gcc_cv_as_comdat_group_group
=yes
22996 echo "configure: failed program was" >&5
22999 rm -f conftest.o conftest.s
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23003 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23009 if test x
"$ld_is_gold" = xyes
; then
23011 elif test $in_tree_ld = yes ; then
23013 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 \
23014 && test $in_tree_ld_is_elf = yes; then
23017 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23019 if test 0"$ld_date" -lt 20050308; then
23020 if test -n "$ld_date"; then
23021 # If there was date string, but was earlier than 2005-03-08, fail
23023 elif test "$ld_vers_major" -lt 2; then
23025 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23030 case "${target}" in
23031 *-*-solaris2.1
[1-9]*)
23033 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23034 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23037 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23038 # least ld version 1.2267.
23039 if test "$ld_vers_major" -gt 1; then
23041 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23043 elif test "$ld_vers_minor" -ge 2267; then
23048 # Assume linkers other than GNU ld don't support COMDAT group.
23053 # Allow overriding the automatic COMDAT group tests above.
23054 # Check whether --enable-comdat was given.
23055 if test "${enable_comdat+set}" = set; then :
23056 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23059 if test $comdat_group = no
; then
23060 gcc_cv_as_comdat_group
=no
23061 gcc_cv_as_comdat_group_percent
=no
23062 gcc_cv_as_comdat_group_group
=no
23065 cat >>confdefs.h
<<_ACEOF
23066 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23067 || test $gcc_cv_as_comdat_group_percent = yes \
23068 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23073 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23074 if test "${gcc_cv_as_discriminator+set}" = set; then :
23075 $as_echo_n "(cached) " >&6
23077 gcc_cv_as_discriminator
=no
23078 if test $in_tree_gas = yes; then
23079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23080 then gcc_cv_as_discriminator
=yes
23082 elif test x
$gcc_cv_as != x
; then
23085 .loc 1 1 0 discriminator 1' > conftest.s
23086 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23088 (eval $ac_try) 2>&5
23090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23091 test $ac_status = 0; }; }
23093 gcc_cv_as_discriminator
=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_discriminator" >&5
23102 $as_echo "$gcc_cv_as_discriminator" >&6; }
23103 if test $gcc_cv_as_discriminator = yes; then
23105 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23109 # Thread-local storage - the check is heavily parameterized.
23117 .section ".tdata","awT",@progbits
23120 ldq $27,__tls_get_addr($29) !literal!1
23121 lda $16,foo($29) !tlsgd!1
23122 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23123 ldq $27,__tls_get_addr($29) !literal!2
23124 lda $16,foo($29) !tlsldm!2
23125 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23126 ldq $1,foo($29) !gotdtprel
23127 ldah $2,foo($29) !dtprelhi
23128 lda $3,foo($2) !dtprello
23129 lda $4,foo($29) !dtprel
23130 ldq $1,foo($29) !gottprel
23131 ldah $2,foo($29) !tprelhi
23132 lda $3,foo($2) !tprello
23133 lda $4,foo($29) !tprel'
23136 tls_as_opt
=--fatal-warnings
23138 cris-
*-*|crisv32-
*-*)
23140 .section ".tdata","awT",@progbits
23147 tls_as_opt
=--fatal-warnings
23151 .section ".tdata","awT",@progbits
23154 call #gettlsoff(x)'
23163 .section ".tdata","awT",@progbits
23167 addil LT%foo-$tls_gdidx$,gp
23168 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23171 addil LT%foo-$tls_ldidx$,gp
23173 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23174 addil LR%foo-$tls_dtpoff$,%ret0
23175 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23177 addil LT%foo-$tls_ieoff$,gp
23178 ldw RT%foo-$tls_ieoff$(%r1),%t2
23181 addil LR%foo-$tls_leoff$,%t1
23182 ldo RR%foo-$tls_leoff$(%r1),%t2'
23185 tls_as_opt
=--fatal-warnings
23189 .section ".tdata","awT",%progbits
23192 .word foo(gottpoff)
23200 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23202 i
[34567]86-*-solaris2.
*)
23204 tga_func
=___tls_get_addr
23206 x86_64-
*-solaris2.1
[0-9]*)
23208 tga_func
=__tls_get_addr
23214 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23216 .section .tdata,"awt",@progbits'
23220 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23224 .section ".tdata","awT",@progbits'
23227 tls_as_opt
="--fatal-warnings"
23229 conftest_s
="$conftest_s
23233 leal foo@tlsgd(,%ebx,1), %eax
23234 leal foo@tlsldm(%ebx), %eax
23235 leal foo@dtpoff(%eax), %edx
23236 movl foo@gottpoff(%ebx), %eax
23237 subl foo@gottpoff(%ebx), %eax
23238 addl foo@gotntpoff(%ebx), %eax
23239 movl foo@indntpoff, %eax
23240 movl \$foo@tpoff, %eax
23241 subl \$foo@tpoff, %eax
23242 leal foo@ntpoff(%ecx), %eax"
23246 .section ".tdata","awT",@progbits
23250 leaq foo@TLSGD(%rip), %rdi
23251 leaq foo@TLSLD(%rip), %rdi
23252 leaq foo@DTPOFF(%rax), %rdx
23253 movq foo@GOTTPOFF(%rip), %rax
23254 movq $foo@TPOFF, %rax'
23257 tls_as_opt
=--fatal-warnings
23261 .section ".tdata","awT",@progbits
23264 addl r16 = @ltoff(@dtpmod(foo#)), gp
23265 addl r17 = @ltoff(@dtprel(foo#)), gp
23266 addl r18 = @ltoff(@tprel(foo#)), gp
23267 addl r19 = @dtprel(foo#), gp
23268 adds r21 = @dtprel(foo#), r13
23269 movl r23 = @dtprel(foo#)
23270 addl r20 = @tprel(foo#), gp
23271 adds r22 = @tprel(foo#), r13
23272 movl r24 = @tprel(foo#)'
23275 tls_as_opt
=--fatal-warnings
23279 .section .tdata,"awT",@progbits
23283 addik r5,r20,x@TLSGD
23284 addik r5,r20,x@TLSLDM'
23287 tls_as_opt
='--fatal-warnings'
23291 .section .tdata,"awT",@progbits
23295 addiu $4, $28, %tlsgd(x)
23296 addiu $4, $28, %tlsldm(x)
23297 lui $4, %dtprel_hi(x)
23298 addiu $4, $4, %dtprel_lo(x)
23299 lw $4, %gottprel(x)($28)
23300 lui $4, %tprel_hi(x)
23301 addiu $4, $4, %tprel_lo(x)'
23304 tls_as_opt
='-32 --fatal-warnings'
23308 .section .tdata,"awT",@progbits
23313 move.l x@TLSGD(%a5),%a0
23314 move.l x@TLSLDM(%a5),%a0
23315 move.l x@TLSLDO(%a5),%a0
23316 move.l x@TLSIE(%a5),%a0
23317 move.l x@TLSLE(%a5),%a0'
23320 tls_as_opt
='--fatal-warnings'
23324 .section ".tdata","awT",%progbits
23328 add x0, x0, #:tlsgd_lo12:x
23333 tls_as_opt
='--fatal-warnings'
23337 .extern __get_tpointer
23355 .section ".tdata","awT",@progbits
23363 addi 3,2,ld0@got@tlsgd
23369 addi 3,2,x1@got@tlsld
23375 addis 9,3,x2@dtprel@ha
23376 addi 9,9,x2@dtprel@l
23379 ld 9,x3@got@dtprel(2)
23385 tls_as_opt
="-a64 --fatal-warnings"
23389 .section ".tdata","awT",@progbits
23397 addi 3,31,ld0@got@tlsgd
23399 addi 3,31,x1@got@tlsld
23402 addis 9,3,x2@dtprel@ha
23403 addi 9,9,x2@dtprel@l
23404 lwz 9,x3@got@tprel(31)
23407 addis 9,2,x2@tprel@ha
23408 addi 9,9,x2@tprel@l'
23411 tls_as_opt
="-a32 --fatal-warnings"
23415 .section ".tdata","awT",@progbits
23422 .long foo@GOTNTPOFF
23423 .long foo@INDNTPOFF
23424 l %r1,foo@GOTNTPOFF(%r12)
23425 l %r1,0(%r1):tls_load:foo
23426 bas %r14,0(%r1,%r13):tls_gdcall:foo
23427 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23430 tls_as_opt
="-m31 --fatal-warnings"
23434 .section ".tdata","awT",@progbits
23441 .quad foo@GOTNTPOFF
23442 lg %r1,foo@GOTNTPOFF(%r12)
23443 larl %r1,foo@INDNTPOFF
23444 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23445 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23448 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23450 sh-
*-* | sh
[34]-*-*)
23452 .section ".tdata","awT",@progbits
23462 tls_as_opt
=--fatal-warnings
23466 sparc
*-sun-solaris2.
*)
23468 tga_func
=__tls_get_addr
23474 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23476 .section ".tdata",#alloc,#write,#tls'
23481 .section ".tdata","awT",@progbits'
23484 tls_as_opt
="-32 --fatal-warnings"
23486 conftest_s
="$conftest_s
23489 sethi %tgd_hi22(foo), %o0
23490 add %o0, %tgd_lo10(foo), %o1
23491 add %l7, %o1, %o0, %tgd_add(foo)
23492 call __tls_get_addr, %tgd_call(foo)
23493 sethi %tldm_hi22(foo), %l1
23494 add %l1, %tldm_lo10(foo), %l2
23495 add %l7, %l2, %o0, %tldm_add(foo)
23496 call __tls_get_addr, %tldm_call(foo)
23497 sethi %tldo_hix22(foo), %l3
23498 xor %l3, %tldo_lox10(foo), %l4
23499 add %o0, %l4, %l5, %tldo_add(foo)
23500 sethi %tie_hi22(foo), %o3
23501 add %o3, %tie_lo10(foo), %o3
23502 ld [%l7 + %o3], %o2, %tie_ld(foo)
23503 add %g7, %o2, %o4, %tie_add(foo)
23504 sethi %tle_hix22(foo), %l1
23505 xor %l1, %tle_lox10(foo), %o5
23506 ld [%g7 + %o5], %o1"
23510 .section ".tdata","awT",@progbits
23513 addli r0, zero, tls_gd(foo)
23514 auli r0, zero, tls_gd_ha16(foo)
23515 addli r0, r0, tls_gd_lo16(foo)
23517 addli r0, zero, tls_ie(foo)
23518 auli r0, r0, tls_ie_ha16(foo)
23519 addli r0, r0, tls_ie_lo16(foo)'
23522 tls_as_opt
="--fatal-warnings"
23526 .section ".tdata","awT",@progbits
23529 shl16insli r0, zero, hw0_last_tls_gd(foo)
23530 shl16insli r0, zero, hw1_last_tls_gd(foo)
23531 shl16insli r0, r0, hw0_tls_gd(foo)
23533 shl16insli r0, zero, hw1_last_tls_ie(foo)
23534 shl16insli r0, r0, hw0_tls_ie(foo)'
23537 tls_as_opt
="--fatal-warnings"
23541 .section ".tdata","awT",@progbits
23544 movi a8, foo@TLSFUNC
23545 movi a10, foo@TLSARG
23546 callx8.tls a8, foo@TLSCALL'
23552 if test "x$enable_tls" = xno
; then
23553 : # TLS explicitly disabled.
23554 elif test "x$enable_tls" = xyes
; then
23555 set_have_as_tls
=yes # TLS explicitly enabled.
23556 elif test -z "$tls_first_major"; then
23557 : # If we don't have a check, assume no support.
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23560 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23561 if test "${gcc_cv_as_tls+set}" = set; then :
23562 $as_echo_n "(cached) " >&6
23565 if test $in_tree_gas = yes; then
23566 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23567 then gcc_cv_as_tls
=yes
23569 elif test x
$gcc_cv_as != x
; then
23570 $as_echo "$conftest_s" > conftest.s
23571 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23573 (eval $ac_try) 2>&5
23575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23576 test $ac_status = 0; }; }
23580 echo "configure: failed program was" >&5
23583 rm -f conftest.o conftest.s
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23587 $as_echo "$gcc_cv_as_tls" >&6; }
23588 if test $gcc_cv_as_tls = yes; then
23589 set_have_as_tls
=yes
23593 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23594 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23595 # Sun style that Sun ld and GCC don't support any longer.
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23598 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23600 # Check ld and ld.so.1 TLS support.
23601 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23602 # Assume all interesting versions of GNU ld have TLS support.
23603 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23607 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23609 min_tls_ld_vers_minor
=374
23611 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23612 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23613 min_tls_ld_vers_minor
=343
23616 if test "$ld_vers_major" -gt 1 || \
23617 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23624 $as_echo "$ld_tls_support" >&6; }
23627 save_LDFLAGS
="$LDFLAGS"
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23632 $as_echo_n "checking library containing $tga_func... " >&6; }
23633 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23634 # (32-bit x86) only lived in libthread, so check for that. Keep
23635 # set_have_as_tls if found, disable if not.
23636 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23638 $as_echo_n "checking for library containing $tga_func... " >&6; }
23639 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23640 $as_echo_n "(cached) " >&6
23642 ac_func_search_save_LIBS
=$LIBS
23643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23644 /* end confdefs.h. */
23646 /* Override any GCC internal prototype to avoid an error.
23647 Use char because int might match the return type of a GCC
23648 builtin and then its argument prototype would still apply. */
23656 return $tga_func ();
23661 for ac_lib
in '' thread
; do
23662 if test -z "$ac_lib"; then
23663 ac_res
="none required"
23666 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23668 if ac_fn_c_try_link
"$LINENO"; then :
23669 eval "$as_ac_Search=\$ac_res"
23671 rm -f core conftest.err conftest.
$ac_objext \
23673 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23677 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23680 eval "$as_ac_Search=no"
23682 rm conftest.
$ac_ext
23683 LIBS
=$ac_func_search_save_LIBS
23685 eval ac_res
=\$
$as_ac_Search
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23687 $as_echo "$ac_res" >&6; }
23688 eval ac_res
=\$
$as_ac_Search
23689 if test "$ac_res" != no
; then :
23690 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23696 # Clear LIBS if we cannot support TLS.
23697 if test $set_have_as_tls = no
; then
23700 # Always define LIB_TLS_SPEC, even without TLS support.
23702 cat >>confdefs.h
<<_ACEOF
23703 #define LIB_TLS_SPEC "$LIBS"
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23707 $as_echo "$LIBS" >&6; }
23710 LDFLAGS
="$save_LDFLAGS"
23713 if test $set_have_as_tls = yes ; then
23715 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23719 # Target-specific assembler checks.
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23722 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23723 gcc_cv_ld_static_dynamic
=no
23724 gcc_cv_ld_static_option
='-Bstatic'
23725 gcc_cv_ld_dynamic_option
='-Bdynamic'
23726 if test $in_tree_ld = yes ; then
23727 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
23728 gcc_cv_ld_static_dynamic
=yes
23730 elif test x
$gcc_cv_ld != x
; then
23731 # Check if linker supports -Bstatic/-Bdynamic option
23732 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23733 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23734 gcc_cv_ld_static_dynamic
=yes
23737 # AIX ld uses -b flags
23738 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23739 gcc_cv_ld_static_dynamic
=yes
23740 gcc_cv_ld_static_option
="-bstatic"
23741 gcc_cv_ld_dynamic_option
="-bdynamic"
23743 # HP-UX ld uses -a flags to select between shared and archive.
23745 if test x
"$gnu_ld" = xno
; then
23746 gcc_cv_ld_static_dynamic
=yes
23747 gcc_cv_ld_static_option
="-aarchive_shared"
23748 gcc_cv_ld_dynamic_option
="-adefault"
23751 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23753 gcc_cv_ld_static_dynamic
=yes
23758 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23760 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23763 cat >>confdefs.h
<<_ACEOF
23764 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23768 cat >>confdefs.h
<<_ACEOF
23769 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23774 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23776 if test x
"$demangler_in_ld" = xyes
; then
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23778 $as_echo_n "checking linker --demangle support... " >&6; }
23779 gcc_cv_ld_demangle
=no
23780 if test $in_tree_ld = yes; then
23781 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 \
23782 gcc_cv_ld_demangle
=yes
23784 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23785 # Check if the GNU linker supports --demangle option
23786 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23787 gcc_cv_ld_demangle
=yes
23790 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23792 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23796 $as_echo "$gcc_cv_ld_demangle" >&6; }
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23800 $as_echo_n "checking linker plugin support... " >&6; }
23801 gcc_cv_lto_plugin
=0
23802 if test -f liblto_plugin.la
; then
23803 save_ld_ver
="$ld_ver"
23804 save_ld_vers_major
="$ld_vers_major"
23805 save_ld_vers_minor
="$ld_vers_minor"
23806 save_ld_is_gold
="$ld_is_gold"
23810 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23812 # FIXME: ld_is_gold?
23813 ld_vers_major
="$gcc_cv_gld_major_version"
23814 ld_vers_minor
="$gcc_cv_gld_minor_version"
23816 # Determine plugin linker version.
23817 # FIXME: Partial duplicate from above, generalize.
23818 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23819 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23820 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23822 ld_vers
=`echo $ld_ver | sed -n \
23823 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23825 ld_vers
=`echo $ld_ver | sed -n \
23826 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23828 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23829 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23833 # Determine plugin support.
23834 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23835 # Require GNU ld or gold 2.21+ for plugin support by default.
23836 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23837 gcc_cv_lto_plugin
=2
23838 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23839 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23840 gcc_cv_lto_plugin
=1
23844 ld_ver
="$save_ld_ver"
23845 ld_vers_major
="$save_ld_vers_major"
23846 ld_vers_minor
="$save_ld_vers_minor"
23847 ld_is_gold
="$save_ld_is_gold"
23850 cat >>confdefs.h
<<_ACEOF
23851 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23855 $as_echo "$gcc_cv_lto_plugin" >&6; }
23858 # All TARGET_ABI_OSF targets.
23859 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23861 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23862 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23863 $as_echo_n "(cached) " >&6
23865 gcc_cv_as_alpha_explicit_relocs
=no
23866 if test $in_tree_gas = yes; then
23867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23868 then gcc_cv_as_alpha_explicit_relocs
=yes
23870 elif test x
$gcc_cv_as != x
; then
23871 $as_echo ' .set nomacro
23873 extbl $3, $2, $3 !lituse_bytoff!1
23874 ldq $2, a($29) !literal!1
23875 ldq $4, b($29) !literal!2
23876 ldq_u $3, 0($2) !lituse_base!1
23877 ldq $27, f($29) !literal!5
23878 jsr $26, ($27), f !lituse_jsr!5
23879 ldah $29, 0($26) !gpdisp!3
23880 lda $0, c($29) !gprel
23881 ldah $1, d($29) !gprelhigh
23882 lda $1, d($1) !gprellow
23883 lda $29, 0($29) !gpdisp!3' > conftest.s
23884 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23886 (eval $ac_try) 2>&5
23888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889 test $ac_status = 0; }; }
23891 gcc_cv_as_alpha_explicit_relocs
=yes
23893 echo "configure: failed program was" >&5
23896 rm -f conftest.o conftest.s
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23900 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23901 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23903 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23907 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23908 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23909 $as_echo_n "(cached) " >&6
23911 gcc_cv_as_alpha_jsrdirect_relocs
=no
23912 if test $in_tree_gas = yes; then
23913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23914 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23916 elif test x
$gcc_cv_as != x
; then
23917 $as_echo ' .set nomacro
23919 ldq $27, a($29) !literal!1
23920 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923 (eval $ac_try) 2>&5
23925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926 test $ac_status = 0; }; }
23928 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23930 echo "configure: failed program was" >&5
23933 rm -f conftest.o conftest.s
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23937 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23938 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23940 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23947 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23948 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23949 $as_echo_n "(cached) " >&6
23951 gcc_cv_as_cris_no_mul_bug
=no
23952 if test $in_tree_gas = yes; then
23953 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23954 then gcc_cv_as_cris_no_mul_bug
=yes
23956 elif test x
$gcc_cv_as != x
; then
23957 $as_echo '.text' > conftest.s
23958 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }
23965 gcc_cv_as_cris_no_mul_bug
=yes
23967 echo "configure: failed program was" >&5
23970 rm -f conftest.o conftest.s
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23974 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23975 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23977 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23984 $as_echo_n "checking assembler for .register... " >&6; }
23985 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23986 $as_echo_n "(cached) " >&6
23988 gcc_cv_as_sparc_register_op
=no
23989 if test x
$gcc_cv_as != x
; then
23990 $as_echo '.register %g2, #scratch' > conftest.s
23991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23993 (eval $ac_try) 2>&5
23995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996 test $ac_status = 0; }; }
23998 gcc_cv_as_sparc_register_op
=yes
24000 echo "configure: failed program was" >&5
24003 rm -f conftest.o conftest.s
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24007 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24008 if test $gcc_cv_as_sparc_register_op = yes; then
24010 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24015 $as_echo_n "checking assembler for #nobits... " >&6; }
24016 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24019 gcc_cv_as_sparc_nobits
=no
24020 if test x
$gcc_cv_as != x
; then
24021 $as_echo '.section "nobits",#alloc,#write,#nobits
24022 .section "progbits",#alloc,#write,#progbits' > conftest.s
24023 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24025 (eval $ac_try) 2>&5
24027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24028 test $ac_status = 0; }; }
24030 gcc_cv_as_sparc_nobits
=yes
24032 echo "configure: failed program was" >&5
24035 rm -f conftest.o conftest.s
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24039 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24042 cat >>confdefs.h
<<_ACEOF
24043 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24048 $as_echo_n "checking assembler for -relax option... " >&6; }
24049 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24050 $as_echo_n "(cached) " >&6
24052 gcc_cv_as_sparc_relax
=no
24053 if test x
$gcc_cv_as != x
; then
24054 $as_echo '.text' > conftest.s
24055 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24057 (eval $ac_try) 2>&5
24059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24060 test $ac_status = 0; }; }
24062 gcc_cv_as_sparc_relax
=yes
24064 echo "configure: failed program was" >&5
24067 rm -f conftest.o conftest.s
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24071 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24072 if test $gcc_cv_as_sparc_relax = yes; then
24074 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24079 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24080 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24081 $as_echo_n "(cached) " >&6
24083 gcc_cv_as_sparc_gotdata_op
=no
24084 if test x
$gcc_cv_as != x
; then
24090 sethi %gdop_hix22(foo), %g1
24091 xor %g1, %gdop_lox10(foo), %g1
24092 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24093 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24095 (eval $ac_try) 2>&5
24097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24098 test $ac_status = 0; }; }
24100 if test x
$gcc_cv_ld != x \
24101 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24102 if test x
$gcc_cv_objdump != x
; then
24103 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24104 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24105 gcc_cv_as_sparc_gotdata_op
=no
24107 gcc_cv_as_sparc_gotdata_op
=yes
24113 echo "configure: failed program was" >&5
24116 rm -f conftest.o conftest.s
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24120 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24121 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24123 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24128 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24129 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24130 $as_echo_n "(cached) " >&6
24132 gcc_cv_as_sparc_ua_pcrel
=no
24133 if test x
$gcc_cv_as != x
; then
24140 .uaword %r_disp32(foo)' > conftest.s
24141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24143 (eval $ac_try) 2>&5
24145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24146 test $ac_status = 0; }; }
24148 if test x
$gcc_cv_ld != x \
24149 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24150 gcc_cv_as_sparc_ua_pcrel
=yes
24154 echo "configure: failed program was" >&5
24157 rm -f conftest.o conftest.s
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24161 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24162 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24164 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24168 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24169 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24170 $as_echo_n "(cached) " >&6
24172 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24173 if test x
$gcc_cv_as != x
; then
24177 .uaword %r_disp32(foo)
24178 .byte 0x32, 0x33, 0x34
24182 .skip 4' > conftest.s
24183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24185 (eval $ac_try) 2>&5
24187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24188 test $ac_status = 0; }; }
24190 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24191 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24192 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24193 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24194 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24195 |
grep 'DISP32' > /dev
/null
2>&1; then
24198 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24203 echo "configure: failed program was" >&5
24206 rm -f conftest.o conftest.s
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24210 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24211 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24213 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24217 fi # unaligned pcrel relocs
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24220 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24221 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24222 $as_echo_n "(cached) " >&6
24224 gcc_cv_as_sparc_offsetable_lo10
=no
24225 if test x
$gcc_cv_as != x
; then
24227 or %g1, %lo(ab) + 12, %g1
24228 or %g1, %lo(ab + 12), %g1' > conftest.s
24229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24231 (eval $ac_try) 2>&5
24233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24234 test $ac_status = 0; }; }
24236 if test x
$gcc_cv_objdump != x \
24237 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24238 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24239 gcc_cv_as_sparc_offsetable_lo10
=yes
24242 echo "configure: failed program was" >&5
24245 rm -f conftest.o conftest.s
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24249 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24250 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24252 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24257 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24258 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24259 $as_echo_n "(cached) " >&6
24261 gcc_cv_as_sparc_fmaf
=no
24262 if test x
$gcc_cv_as != x
; then
24264 .register %g2, #scratch
24265 .register %g3, #scratch
24267 fmaddd %f0, %f2, %f4, %f6
24268 addxccc %g1, %g2, %g3
24269 fsrl32 %f2, %f4, %f8
24270 fnaddd %f10, %f12, %f14' > conftest.s
24271 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24273 (eval $ac_try) 2>&5
24275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24276 test $ac_status = 0; }; }
24278 gcc_cv_as_sparc_fmaf
=yes
24280 echo "configure: failed program was" >&5
24283 rm -f conftest.o conftest.s
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24287 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24288 if test $gcc_cv_as_sparc_fmaf = yes; then
24290 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24295 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24296 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24297 $as_echo_n "(cached) " >&6
24299 gcc_cv_as_sparc_sparc4
=no
24300 if test x
$gcc_cv_as != x
; then
24302 .register %g2, #scratch
24303 .register %g3, #scratch
24306 1: cwbneg %g2, %g3, 1f
24309 aes_kexpand0 %f4, %f6, %f8
24310 des_round %f38, %f40, %f42, %f44
24311 camellia_f %f54, %f56, %f58, %f60
24312 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24315 (eval $ac_try) 2>&5
24317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24318 test $ac_status = 0; }; }
24320 gcc_cv_as_sparc_sparc4
=yes
24322 echo "configure: failed program was" >&5
24325 rm -f conftest.o conftest.s
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24329 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24330 if test $gcc_cv_as_sparc_sparc4 = yes; then
24332 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24337 i
[34567]86-*-* | x86_64-
*-*)
24340 # Full C++ conformance when using a shared libstdc++-v3 requires some
24341 # support from the Cygwin DLL, which in more recent versions exports
24342 # wrappers to aid in interposing and redirecting operators new, delete,
24343 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24344 # are configuring for a version of Cygwin that exports the wrappers.
24345 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24346 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24347 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24348 gcc_ac_cygwin_dll_wrappers
=yes
24350 gcc_ac_cygwin_dll_wrappers
=no
24354 # Can't check presence of libc functions during cross-compile, so
24355 # we just have to assume we're building for an up-to-date target.
24356 gcc_ac_cygwin_dll_wrappers
=yes
24359 cat >>confdefs.h
<<_ACEOF
24360 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24365 cygwin
* | pe | mingw32
* | interix
*)
24366 # Recent binutils allows the three-operand form of ".comm" on PE. This
24367 # definition is used unconditionally to initialise the default state of
24368 # the target option variable that governs usage of the feature.
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24370 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24371 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24374 gcc_cv_as_comm_has_align
=no
24375 if test $in_tree_gas = yes; then
24376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24377 then gcc_cv_as_comm_has_align
=yes
24379 elif test x
$gcc_cv_as != x
; then
24380 $as_echo '.comm foo,1,32' > conftest.s
24381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24383 (eval $ac_try) 2>&5
24385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24386 test $ac_status = 0; }; }
24388 gcc_cv_as_comm_has_align
=yes
24390 echo "configure: failed program was" >&5
24393 rm -f conftest.o conftest.s
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24397 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24400 cat >>confdefs.h
<<_ACEOF
24401 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24404 # Used for DWARF 2 in PE
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24406 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24407 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24410 gcc_cv_as_ix86_pe_secrel32
=no
24411 if test $in_tree_gas = yes; then
24412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24413 then gcc_cv_as_ix86_pe_secrel32
=yes
24415 elif test x
$gcc_cv_as != x
; then
24419 .secrel32 foo' > conftest.s
24420 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24422 (eval $ac_try) 2>&5
24424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24425 test $ac_status = 0; }; }
24427 if test x
$gcc_cv_ld != x \
24428 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24429 gcc_cv_as_ix86_pe_secrel32
=yes
24433 echo "configure: failed program was" >&5
24436 rm -f conftest.o conftest.s
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24440 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24441 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24443 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24446 # Test if the assembler supports the extended form of the .section
24447 # directive that specifies section alignment. LTO support uses this,
24448 # but normally only after installation, so we warn but don't fail the
24449 # configure if LTO is enabled but the assembler does not support it.
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24451 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24452 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24453 $as_echo_n "(cached) " >&6
24455 gcc_cv_as_section_has_align
=no
24456 if test $in_tree_gas = yes; then
24457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24458 then gcc_cv_as_section_has_align
=yes
24460 elif test x
$gcc_cv_as != x
; then
24461 $as_echo '.section lto_test,"dr0"' > conftest.s
24462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24464 (eval $ac_try) 2>&5
24466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24467 test $ac_status = 0; }; }
24469 gcc_cv_as_section_has_align
=yes
24471 echo "configure: failed program was" >&5
24474 rm -f conftest.o conftest.s
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24478 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24480 if test x
$gcc_cv_as_section_has_align != xyes
; then
24481 case ",$enable_languages," in
24483 { $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
24484 $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;}
24488 # Test if the assembler supports the section flag 'e' for specifying
24489 # an excluded section.
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24491 $as_echo_n "checking assembler for .section with e... " >&6; }
24492 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24495 gcc_cv_as_section_has_e
=no
24496 if test $in_tree_gas = yes; then
24497 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24498 then gcc_cv_as_section_has_e
=yes
24500 elif test x
$gcc_cv_as != x
; then
24501 $as_echo '.section foo1,"e"
24502 .byte 0,0,0,0' > conftest.s
24503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505 (eval $ac_try) 2>&5
24507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508 test $ac_status = 0; }; }
24510 gcc_cv_as_section_has_e
=yes
24512 echo "configure: failed program was" >&5
24515 rm -f conftest.o conftest.s
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24519 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24522 cat >>confdefs.h
<<_ACEOF
24523 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24530 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24531 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24532 $as_echo_n "(cached) " >&6
24534 gcc_cv_as_ix86_filds
=no
24535 if test x
$gcc_cv_as != x
; then
24536 $as_echo 'filds mem; fists mem' > conftest.s
24537 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24539 (eval $ac_try) 2>&5
24541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24542 test $ac_status = 0; }; }
24544 gcc_cv_as_ix86_filds
=yes
24546 echo "configure: failed program was" >&5
24549 rm -f conftest.o conftest.s
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24553 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24554 if test $gcc_cv_as_ix86_filds = yes; then
24556 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24561 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24562 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24565 gcc_cv_as_ix86_fildq
=no
24566 if test x
$gcc_cv_as != x
; then
24567 $as_echo 'fildq mem; fistpq mem' > conftest.s
24568 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24570 (eval $ac_try) 2>&5
24572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24573 test $ac_status = 0; }; }
24575 gcc_cv_as_ix86_fildq
=yes
24577 echo "configure: failed program was" >&5
24580 rm -f conftest.o conftest.s
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24584 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24585 if test $gcc_cv_as_ix86_fildq = yes; then
24587 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24592 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24593 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24594 $as_echo_n "(cached) " >&6
24596 gcc_cv_as_ix86_cmov_sun_syntax
=no
24597 if test x
$gcc_cv_as != x
; then
24598 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24599 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24606 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24608 echo "configure: failed program was" >&5
24611 rm -f conftest.o conftest.s
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24615 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24616 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24618 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24623 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24624 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24625 $as_echo_n "(cached) " >&6
24627 gcc_cv_as_ix86_ffreep
=no
24628 if test x
$gcc_cv_as != x
; then
24629 $as_echo 'ffreep %st(1)' > conftest.s
24630 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24632 (eval $ac_try) 2>&5
24634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24635 test $ac_status = 0; }; }
24637 gcc_cv_as_ix86_ffreep
=yes
24639 echo "configure: failed program was" >&5
24642 rm -f conftest.o conftest.s
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24646 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24647 if test $gcc_cv_as_ix86_ffreep = yes; then
24649 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24654 $as_echo_n "checking assembler for .quad directive... " >&6; }
24655 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24656 $as_echo_n "(cached) " >&6
24658 gcc_cv_as_ix86_quad
=no
24659 if test x
$gcc_cv_as != x
; then
24660 $as_echo '.quad 0' > conftest.s
24661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24668 gcc_cv_as_ix86_quad
=yes
24670 echo "configure: failed program was" >&5
24673 rm -f conftest.o conftest.s
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24677 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24678 if test $gcc_cv_as_ix86_quad = yes; then
24680 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24685 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24686 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24689 gcc_cv_as_ix86_sahf
=no
24690 if test x
$gcc_cv_as != x
; then
24693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24695 (eval $ac_try) 2>&5
24697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24698 test $ac_status = 0; }; }
24700 gcc_cv_as_ix86_sahf
=yes
24702 echo "configure: failed program was" >&5
24705 rm -f conftest.o conftest.s
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24709 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24710 if test $gcc_cv_as_ix86_sahf = yes; then
24712 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24717 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24718 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24719 $as_echo_n "(cached) " >&6
24721 gcc_cv_as_ix86_interunit_movq
=no
24722 if test x
$gcc_cv_as != x
; then
24725 movq %rax, %xmm0' > conftest.s
24726 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24733 gcc_cv_as_ix86_interunit_movq
=yes
24735 echo "configure: failed program was" >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24742 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24743 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24745 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24750 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24751 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24752 $as_echo_n "(cached) " >&6
24754 gcc_cv_as_ix86_hle
=no
24755 if test x
$gcc_cv_as != x
; then
24756 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24759 (eval $ac_try) 2>&5
24761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24762 test $ac_status = 0; }; }
24764 gcc_cv_as_ix86_hle
=yes
24766 echo "configure: failed program was" >&5
24769 rm -f conftest.o conftest.s
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24773 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24774 if test $gcc_cv_as_ix86_hle = yes; then
24776 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24781 $as_echo_n "checking assembler for swap suffix... " >&6; }
24782 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24783 $as_echo_n "(cached) " >&6
24785 gcc_cv_as_ix86_swap
=no
24786 if test x
$gcc_cv_as != x
; then
24787 $as_echo 'movl.s %esp, %ebp' > conftest.s
24788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }
24795 gcc_cv_as_ix86_swap
=yes
24797 echo "configure: failed program was" >&5
24800 rm -f conftest.o conftest.s
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24804 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24805 if test $gcc_cv_as_ix86_swap = yes; then
24807 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24812 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24813 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24816 gcc_cv_as_ix86_diff_sect_delta
=no
24817 if test x
$gcc_cv_as != x
; then
24818 $as_echo '.section .rodata
24824 .L2: nop' > conftest.s
24825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24827 (eval $ac_try) 2>&5
24829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24830 test $ac_status = 0; }; }
24832 gcc_cv_as_ix86_diff_sect_delta
=yes
24834 echo "configure: failed program was" >&5
24837 rm -f conftest.o conftest.s
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24841 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24842 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24844 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24848 # These two are used unconditionally by i386.[ch]; it is to be defined
24849 # to 1 if the feature is present, 0 otherwise.
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24851 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24852 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24855 gcc_cv_as_ix86_gotoff_in_data
=no
24856 if test $in_tree_gas = yes; then
24857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24858 then gcc_cv_as_ix86_gotoff_in_data
=yes
24860 elif test x
$gcc_cv_as != x
; then
24865 .long .L0@GOTOFF' > conftest.s
24866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24873 gcc_cv_as_ix86_gotoff_in_data
=yes
24875 echo "configure: failed program was" >&5
24878 rm -f conftest.o conftest.s
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24882 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24885 cat >>confdefs.h
<<_ACEOF
24886 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24891 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24892 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24893 $as_echo_n "(cached) " >&6
24895 gcc_cv_as_ix86_rep_lock_prefix
=no
24896 if test x
$gcc_cv_as != x
; then
24897 $as_echo 'rep movsl
24902 lock addl %edi, (%eax,%esi)
24903 lock orl $0, (%esp)' > conftest.s
24904 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24906 (eval $ac_try) 2>&5
24908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24909 test $ac_status = 0; }; }
24911 gcc_cv_as_ix86_rep_lock_prefix
=yes
24913 echo "configure: failed program was" >&5
24916 rm -f conftest.o conftest.s
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24920 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24921 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24923 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24928 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24929 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24930 $as_echo_n "(cached) " >&6
24932 gcc_cv_as_ix86_tlsgdplt
=no
24933 if test x
$gcc_cv_as != x
; then
24934 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24937 (eval $ac_try) 2>&5
24939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24940 test $ac_status = 0; }; }
24942 if test x
$gcc_cv_ld != x \
24943 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24944 gcc_cv_as_ix86_tlsgdplt
=yes
24948 echo "configure: failed program was" >&5
24951 rm -f conftest.o conftest.s
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24955 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24956 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24958 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24963 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24964 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24965 $as_echo_n "(cached) " >&6
24967 gcc_cv_as_ix86_tlsldmplt
=no
24968 if test x
$gcc_cv_as != x
; then
24970 call tls_ld@tlsldmplt' > conftest.s
24971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24978 if test x
$gcc_cv_ld != x \
24979 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24980 gcc_cv_as_ix86_tlsldmplt
=yes
24984 echo "configure: failed program was" >&5
24987 rm -f conftest.o conftest.s
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24991 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24992 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24994 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25002 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25003 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25004 $as_echo_n "(cached) " >&6
25006 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25007 if test $in_tree_gas = yes; then
25008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25009 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25011 elif test x
$gcc_cv_as != x
; then
25013 addl r15 = @ltoffx(x#), gp
25015 ld8.mov r16 = [r15], x#' > conftest.s
25016 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018 (eval $ac_try) 2>&5
25020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021 test $ac_status = 0; }; }
25023 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25025 echo "configure: failed program was" >&5
25028 rm -f conftest.o conftest.s
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25032 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25033 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25035 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25043 *-*-aix*) conftest_s
=' .machine "pwr5"
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25048 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25049 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25052 gcc_cv_as_machine_directive
=no
25053 if test x
$gcc_cv_as != x
; then
25054 $as_echo ' .machine ppc7400' > conftest.s
25055 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25057 (eval $ac_try) 2>&5
25059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25060 test $ac_status = 0; }; }
25062 gcc_cv_as_machine_directive
=yes
25064 echo "configure: failed program was" >&5
25067 rm -f conftest.o conftest.s
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25071 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25073 if test x
$gcc_cv_as_machine_directive != xyes
; then
25074 echo "*** This target requires an assembler supporting \".machine\"" >&2
25075 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25076 test x
$build = x
$target && exit 1
25080 *) conftest_s
=' .machine power4
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25086 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25087 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25090 gcc_cv_as_powerpc_mfcrf
=no
25091 if test $in_tree_gas = yes; then
25092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25093 then gcc_cv_as_powerpc_mfcrf
=yes
25095 elif test x
$gcc_cv_as != x
; then
25096 $as_echo "$conftest_s" > conftest.s
25097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25104 gcc_cv_as_powerpc_mfcrf
=yes
25106 echo "configure: failed program was" >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25113 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25114 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25116 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25121 *-*-aix*) conftest_s
=' .machine "pwr5"
25124 *) conftest_s
=' .machine power5
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25130 $as_echo_n "checking assembler for popcntb support... " >&6; }
25131 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25132 $as_echo_n "(cached) " >&6
25134 gcc_cv_as_powerpc_popcntb
=no
25135 if test $in_tree_gas = yes; then
25136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25137 then gcc_cv_as_powerpc_popcntb
=yes
25139 elif test x
$gcc_cv_as != x
; then
25140 $as_echo "$conftest_s" > conftest.s
25141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25148 gcc_cv_as_powerpc_popcntb
=yes
25150 echo "configure: failed program was" >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25157 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25158 if test $gcc_cv_as_powerpc_popcntb = yes; then
25160 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25165 *-*-aix*) conftest_s
=' .machine "pwr5x"
25168 *) conftest_s
=' .machine power5
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25174 $as_echo_n "checking assembler for fp round support... " >&6; }
25175 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25176 $as_echo_n "(cached) " >&6
25178 gcc_cv_as_powerpc_fprnd
=no
25179 if test $in_tree_gas = yes; then
25180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25181 then gcc_cv_as_powerpc_fprnd
=yes
25183 elif test x
$gcc_cv_as != x
; then
25184 $as_echo "$conftest_s" > conftest.s
25185 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; }
25192 gcc_cv_as_powerpc_fprnd
=yes
25194 echo "configure: failed program was" >&5
25197 rm -f conftest.o conftest.s
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25201 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25202 if test $gcc_cv_as_powerpc_fprnd = yes; then
25204 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25209 *-*-aix*) conftest_s
=' .machine "pwr6"
25212 *) conftest_s
=' .machine power6
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25218 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25219 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25220 $as_echo_n "(cached) " >&6
25222 gcc_cv_as_powerpc_mfpgpr
=no
25223 if test $in_tree_gas = yes; then
25224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25225 then gcc_cv_as_powerpc_mfpgpr
=yes
25227 elif test x
$gcc_cv_as != x
; then
25228 $as_echo "$conftest_s" > conftest.s
25229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25231 (eval $ac_try) 2>&5
25233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25234 test $ac_status = 0; }; }
25236 gcc_cv_as_powerpc_mfpgpr
=yes
25238 echo "configure: failed program was" >&5
25241 rm -f conftest.o conftest.s
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25245 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25246 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25248 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25253 *-*-aix*) conftest_s
=' .csect .text[PR]
25255 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25259 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25260 *) conftest_s
=' .text
25262 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25266 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25267 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25268 $as_echo_n "(cached) " >&6
25270 gcc_cv_as_powerpc_rel16
=no
25271 if test $in_tree_gas = yes; then
25272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25273 then gcc_cv_as_powerpc_rel16
=yes
25275 elif test x
$gcc_cv_as != x
; then
25276 $as_echo "$conftest_s" > conftest.s
25277 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25279 (eval $ac_try) 2>&5
25281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25282 test $ac_status = 0; }; }
25284 gcc_cv_as_powerpc_rel16
=yes
25286 echo "configure: failed program was" >&5
25289 rm -f conftest.o conftest.s
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25293 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25294 if test $gcc_cv_as_powerpc_rel16 = yes; then
25296 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25301 *-*-aix*) conftest_s
=' .machine "pwr6"
25304 *) conftest_s
=' .machine power6
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25310 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25311 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25312 $as_echo_n "(cached) " >&6
25314 gcc_cv_as_powerpc_cmpb
=no
25315 if test $in_tree_gas = yes; then
25316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25317 then gcc_cv_as_powerpc_cmpb
=yes
25319 elif test x
$gcc_cv_as != x
; then
25320 $as_echo "$conftest_s" > conftest.s
25321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323 (eval $ac_try) 2>&5
25325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326 test $ac_status = 0; }; }
25328 gcc_cv_as_powerpc_cmpb
=yes
25330 echo "configure: failed program was" >&5
25333 rm -f conftest.o conftest.s
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25337 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25338 if test $gcc_cv_as_powerpc_cmpb = yes; then
25340 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25345 *-*-aix*) conftest_s
=' .machine "pwr6"
25348 *) conftest_s
=' .machine power6
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25354 $as_echo_n "checking assembler for decimal float support... " >&6; }
25355 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25358 gcc_cv_as_powerpc_dfp
=no
25359 if test $in_tree_gas = yes; then
25360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25361 then gcc_cv_as_powerpc_dfp
=yes
25363 elif test x
$gcc_cv_as != x
; then
25364 $as_echo "$conftest_s" > conftest.s
25365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25367 (eval $ac_try) 2>&5
25369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25370 test $ac_status = 0; }; }
25372 gcc_cv_as_powerpc_dfp
=yes
25374 echo "configure: failed program was" >&5
25377 rm -f conftest.o conftest.s
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25381 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25382 if test $gcc_cv_as_powerpc_dfp = yes; then
25384 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25389 *-*-aix*) conftest_s
=' .machine "pwr7"
25392 *) conftest_s
=' .machine power7
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25398 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25399 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25400 $as_echo_n "(cached) " >&6
25402 gcc_cv_as_powerpc_vsx
=no
25403 if test $in_tree_gas = yes; then
25404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25405 then gcc_cv_as_powerpc_vsx
=yes
25407 elif test x
$gcc_cv_as != x
; then
25408 $as_echo "$conftest_s" > conftest.s
25409 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25411 (eval $ac_try) 2>&5
25413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25414 test $ac_status = 0; }; }
25416 gcc_cv_as_powerpc_vsx
=yes
25418 echo "configure: failed program was" >&5
25421 rm -f conftest.o conftest.s
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25425 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25426 if test $gcc_cv_as_powerpc_vsx = yes; then
25428 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25433 *-*-aix*) conftest_s
=' .machine "pwr7"
25436 *) conftest_s
=' .machine power7
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25442 $as_echo_n "checking assembler for popcntd support... " >&6; }
25443 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25444 $as_echo_n "(cached) " >&6
25446 gcc_cv_as_powerpc_popcntd
=no
25447 if test $in_tree_gas = yes; then
25448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25449 then gcc_cv_as_powerpc_popcntd
=yes
25451 elif test x
$gcc_cv_as != x
; then
25452 $as_echo "$conftest_s" > conftest.s
25453 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25455 (eval $ac_try) 2>&5
25457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458 test $ac_status = 0; }; }
25460 gcc_cv_as_powerpc_popcntd
=yes
25462 echo "configure: failed program was" >&5
25465 rm -f conftest.o conftest.s
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25469 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25470 if test $gcc_cv_as_powerpc_popcntd = yes; then
25472 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25477 *-*-aix*) conftest_s
=' .machine "pwr8"
25478 .csect .text[PR]';;
25479 *) conftest_s
=' .machine power8
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25484 $as_echo_n "checking assembler for power8 support... " >&6; }
25485 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25486 $as_echo_n "(cached) " >&6
25488 gcc_cv_as_powerpc_power8
=no
25489 if test $in_tree_gas = yes; then
25490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25491 then gcc_cv_as_powerpc_power8
=yes
25493 elif test x
$gcc_cv_as != x
; then
25494 $as_echo "$conftest_s" > conftest.s
25495 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25497 (eval $ac_try) 2>&5
25499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25500 test $ac_status = 0; }; }
25502 gcc_cv_as_powerpc_power8
=yes
25504 echo "configure: failed program was" >&5
25507 rm -f conftest.o conftest.s
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25511 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25512 if test $gcc_cv_as_powerpc_power8 = yes; then
25514 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25519 *-*-aix*) conftest_s
=' .csect .text[PR]
25521 *) conftest_s
=' .text
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25526 $as_echo_n "checking assembler for lwsync support... " >&6; }
25527 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25528 $as_echo_n "(cached) " >&6
25530 gcc_cv_as_powerpc_lwsync
=no
25531 if test $in_tree_gas = yes; then
25532 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25533 then gcc_cv_as_powerpc_lwsync
=yes
25535 elif test x
$gcc_cv_as != x
; then
25536 $as_echo "$conftest_s" > conftest.s
25537 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25539 (eval $ac_try) 2>&5
25541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25542 test $ac_status = 0; }; }
25544 gcc_cv_as_powerpc_lwsync
=yes
25546 echo "configure: failed program was" >&5
25549 rm -f conftest.o conftest.s
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25553 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25554 if test $gcc_cv_as_powerpc_lwsync = yes; then
25556 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25561 *-*-aix*) conftest_s
=' .machine "476"
25564 *) conftest_s
=' .machine "476"
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25570 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25571 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25572 $as_echo_n "(cached) " >&6
25574 gcc_cv_as_powerpc_dci
=no
25575 if test $in_tree_gas = yes; then
25576 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25577 then gcc_cv_as_powerpc_dci
=yes
25579 elif test x
$gcc_cv_as != x
; then
25580 $as_echo "$conftest_s" > conftest.s
25581 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25583 (eval $ac_try) 2>&5
25585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25586 test $ac_status = 0; }; }
25588 gcc_cv_as_powerpc_dci
=yes
25590 echo "configure: failed program was" >&5
25593 rm -f conftest.o conftest.s
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25597 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25598 if test $gcc_cv_as_powerpc_dci = yes; then
25600 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25605 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25606 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25607 $as_echo_n "(cached) " >&6
25609 gcc_cv_as_powerpc_gnu_attribute
=no
25610 if test $in_tree_gas = yes; then
25611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25612 then gcc_cv_as_powerpc_gnu_attribute
=yes
25614 elif test x
$gcc_cv_as != x
; then
25615 $as_echo '.gnu_attribute 4,1' > conftest.s
25616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }
25623 gcc_cv_as_powerpc_gnu_attribute
=yes
25625 echo "configure: failed program was" >&5
25628 rm -f conftest.o conftest.s
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25632 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25633 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25635 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25640 $as_echo_n "checking assembler for tls marker support... " >&6; }
25641 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25644 gcc_cv_as_powerpc_tls_markers
=no
25645 if test $in_tree_gas = yes; then
25646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25647 then gcc_cv_as_powerpc_tls_markers
=yes
25649 elif test x
$gcc_cv_as != x
; then
25650 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25658 gcc_cv_as_powerpc_tls_markers
=yes
25660 echo "configure: failed program was" >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25667 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25668 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25670 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25677 $as_echo_n "checking assembler for .ref support... " >&6; }
25678 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25679 $as_echo_n "(cached) " >&6
25681 gcc_cv_as_aix_ref
=no
25682 if test $in_tree_gas = yes; then
25683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25684 then gcc_cv_as_aix_ref
=yes
25686 elif test x
$gcc_cv_as != x
; then
25687 $as_echo ' .csect stuff[rw]
25693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25695 (eval $ac_try) 2>&5
25697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25698 test $ac_status = 0; }; }
25700 gcc_cv_as_aix_ref
=yes
25702 echo "configure: failed program was" >&5
25705 rm -f conftest.o conftest.s
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25709 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25710 if test $gcc_cv_as_aix_ref = yes; then
25712 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25721 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25722 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25723 $as_echo_n "(cached) " >&6
25725 gcc_cv_as_mips_explicit_relocs
=no
25726 if test $in_tree_gas = yes; then
25727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25728 then gcc_cv_as_mips_explicit_relocs
=yes
25730 elif test x
$gcc_cv_as != x
; then
25731 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25732 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25734 (eval $ac_try) 2>&5
25736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25737 test $ac_status = 0; }; }
25739 gcc_cv_as_mips_explicit_relocs
=yes
25741 echo "configure: failed program was" >&5
25744 rm -f conftest.o conftest.s
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25748 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25749 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25750 if test x
$target_cpu_default = x
25751 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25752 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25756 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25757 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25758 $as_echo_n "(cached) " >&6
25760 gcc_cv_as_mips_no_shared
=no
25761 if test $in_tree_gas = yes; then
25762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25763 then gcc_cv_as_mips_no_shared
=yes
25765 elif test x
$gcc_cv_as != x
; then
25766 $as_echo 'nop' > conftest.s
25767 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25769 (eval $ac_try) 2>&5
25771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25772 test $ac_status = 0; }; }
25774 gcc_cv_as_mips_no_shared
=yes
25776 echo "configure: failed program was" >&5
25779 rm -f conftest.o conftest.s
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25783 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25784 if test $gcc_cv_as_mips_no_shared = yes; then
25786 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25791 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25792 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25795 gcc_cv_as_mips_gnu_attribute
=no
25796 if test $in_tree_gas = yes; then
25797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25798 then gcc_cv_as_mips_gnu_attribute
=yes
25800 elif test x
$gcc_cv_as != x
; then
25801 $as_echo '.gnu_attribute 4,1' > conftest.s
25802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25804 (eval $ac_try) 2>&5
25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807 test $ac_status = 0; }; }
25809 gcc_cv_as_mips_gnu_attribute
=yes
25811 echo "configure: failed program was" >&5
25814 rm -f conftest.o conftest.s
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25818 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25819 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25821 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25826 $as_echo_n "checking assembler for .micromips support... " >&6; }
25827 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25828 $as_echo_n "(cached) " >&6
25830 gcc_cv_as_micromips_support
=no
25831 if test x
$gcc_cv_as != x
; then
25832 $as_echo '.set micromips' > conftest.s
25833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25840 gcc_cv_as_micromips_support
=yes
25842 echo "configure: failed program was" >&5
25845 rm -f conftest.o conftest.s
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25849 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25850 if test $gcc_cv_as_micromips_support = yes; then
25852 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25857 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25858 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25859 $as_echo_n "(cached) " >&6
25861 gcc_cv_as_mips_dtprelword
=no
25862 if test $in_tree_gas = yes; then
25863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25864 then gcc_cv_as_mips_dtprelword
=yes
25866 elif test x
$gcc_cv_as != x
; then
25867 $as_echo '.section .tdata,"awT",@progbits
25871 .dtprelword x+0x8000' > conftest.s
25872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25874 (eval $ac_try) 2>&5
25876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25877 test $ac_status = 0; }; }
25879 gcc_cv_as_mips_dtprelword
=yes
25881 echo "configure: failed program was" >&5
25884 rm -f conftest.o conftest.s
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25888 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25889 if test $gcc_cv_as_mips_dtprelword = yes; then
25891 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25896 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25897 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25898 $as_echo_n "(cached) " >&6
25900 gcc_cv_as_mips_dspr1_mult
=no
25901 if test x
$gcc_cv_as != x
; then
25902 $as_echo ' .set mips32r2
25910 multu $ac3,$4,$5' > conftest.s
25911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913 (eval $ac_try) 2>&5
25915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916 test $ac_status = 0; }; }
25918 gcc_cv_as_mips_dspr1_mult
=yes
25920 echo "configure: failed program was" >&5
25923 rm -f conftest.o conftest.s
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25927 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25928 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25930 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25935 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25936 gcc_cv_as_ld_jalr_reloc
=no
25937 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25938 if test $in_tree_ld = yes ; then
25939 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 \
25940 && test $in_tree_ld_is_elf = yes; then
25941 gcc_cv_as_ld_jalr_reloc
=yes
25943 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25944 echo ' .ent x' > conftest.s
25945 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25946 echo ' ld $25,%call16(y)($28)' >> conftest.s
25947 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25948 echo '1: jalr $25' >> conftest.s
25949 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25950 echo '1: jalr $25' >> conftest.s
25951 echo ' .end x' >> conftest.s
25952 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25953 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25954 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25955 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25956 gcc_cv_as_ld_jalr_reloc
=yes
25962 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25963 if test x
$target_cpu_default = x
; then
25964 target_cpu_default
=MASK_RELAX_PIC_CALLS
25966 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25970 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25973 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25974 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25975 $as_echo_n "(cached) " >&6
25977 gcc_cv_ld_mips_personality_relaxation
=no
25978 if test $in_tree_ld = yes ; then
25979 if test "$gcc_cv_gld_major_version" -eq 2 \
25980 -a "$gcc_cv_gld_minor_version" -ge 21 \
25981 -o "$gcc_cv_gld_major_version" -gt 2; then
25982 gcc_cv_ld_mips_personality_relaxation
=yes
25984 elif test x
$gcc_cv_as != x \
25985 -a x
$gcc_cv_ld != x \
25986 -a x
$gcc_cv_readelf != x
; then
25987 cat > conftest.s
<<EOF
25989 .cfi_personality 0x80,indirect_ptr
25996 .section .data,"aw",@progbits
26000 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26001 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26002 if $gcc_cv_readelf -d conftest
2>&1 \
26003 |
grep TEXTREL
> /dev
/null
2>&1; then
26005 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26006 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26009 gcc_cv_ld_mips_personality_relaxation
=yes
26013 rm -f conftest.s conftest.o conftest
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26016 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26017 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26019 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26025 # Mips and HP-UX need the GNU assembler.
26026 # Linux on IA64 might be able to use the Intel assembler.
26029 mips
*-*-* |
*-*-hpux* )
26030 if test x
$gas_flag = xyes \
26031 ||
test x
"$host" != x
"$build" \
26032 ||
test ! -x "$gcc_cv_as" \
26033 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26036 echo "*** This configuration requires the GNU assembler" >&2
26042 # ??? Not all targets support dwarf2 debug_line, even within a version
26043 # of gas. Moreover, we need to emit a valid instruction to trigger any
26044 # info to the output file. So, as supported targets are added to gas 2.11,
26045 # add some instruction here to (also) show we expect this might work.
26046 # ??? Once 2.11 is released, probably need to add first known working
26047 # version to the per-target configury.
26048 case "$cpu_type" in
26049 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26050 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
26060 if test x
"$insn" != x
; then
26062 .file 1 \"conftest.s\"
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26066 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26067 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26068 $as_echo_n "(cached) " >&6
26070 gcc_cv_as_dwarf2_debug_line
=no
26071 if test $in_tree_gas = yes; then
26072 if test $in_tree_gas_is_elf = yes \
26073 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26074 then gcc_cv_as_dwarf2_debug_line
=yes
26076 elif test x
$gcc_cv_as != x
; then
26077 $as_echo "$conftest_s" > conftest.s
26078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26085 if test x
$gcc_cv_objdump != x \
26086 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26087 |
grep debug_line
> /dev
/null
2>&1; then
26088 gcc_cv_as_dwarf2_debug_line
=yes
26091 echo "configure: failed program was" >&5
26094 rm -f conftest.o conftest.s
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26098 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26101 # The .debug_line file table must be in the exact order that
26102 # we specified the files, since these indices are also used
26103 # by DW_AT_decl_file. Approximate this test by testing if
26104 # the assembler bitches if the same index is assigned twice.
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26106 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26107 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26108 $as_echo_n "(cached) " >&6
26110 gcc_cv_as_dwarf2_file_buggy
=no
26111 if test x
$gcc_cv_as != x
; then
26112 $as_echo ' .file 1 "foo.s"
26113 .file 1 "bar.s"' > conftest.s
26114 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26116 (eval $ac_try) 2>&5
26118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26119 test $ac_status = 0; }; }
26121 gcc_cv_as_dwarf2_file_buggy
=yes
26123 echo "configure: failed program was" >&5
26126 rm -f conftest.o conftest.s
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26130 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26133 if test $gcc_cv_as_dwarf2_debug_line = yes \
26134 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26136 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26141 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26142 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26143 $as_echo_n "(cached) " >&6
26145 gcc_cv_as_gdwarf2_flag
=no
26146 if test $in_tree_gas = yes; then
26147 if test $in_tree_gas_is_elf = yes \
26148 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26149 then gcc_cv_as_gdwarf2_flag
=yes
26151 elif test x
$gcc_cv_as != x
; then
26152 $as_echo "$insn" > conftest.s
26153 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26155 (eval $ac_try) 2>&5
26157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26158 test $ac_status = 0; }; }
26160 gcc_cv_as_gdwarf2_flag
=yes
26162 echo "configure: failed program was" >&5
26165 rm -f conftest.o conftest.s
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26169 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26170 if test $gcc_cv_as_gdwarf2_flag = yes; then
26172 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26177 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26178 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26179 $as_echo_n "(cached) " >&6
26181 gcc_cv_as_gstabs_flag
=no
26182 if test $in_tree_gas = yes; then
26183 if test $in_tree_gas_is_elf = yes \
26184 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26185 then gcc_cv_as_gstabs_flag
=yes
26187 elif test x
$gcc_cv_as != x
; then
26188 $as_echo "$insn" > conftest.s
26189 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26191 (eval $ac_try) 2>&5
26193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26194 test $ac_status = 0; }; }
26196 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26197 # and warns about it, but still exits successfully. So check for
26199 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26201 (eval $ac_try) 2>&5
26203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26204 test $ac_status = 0; }; }
26206 else gcc_cv_as_gstabs_flag
=yes
26209 echo "configure: failed program was" >&5
26212 rm -f conftest.o conftest.s
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26216 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26217 if test $gcc_cv_as_gstabs_flag = yes; then
26219 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26224 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26225 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26226 $as_echo_n "(cached) " >&6
26228 gcc_cv_as_debug_prefix_map_flag
=no
26229 if test $in_tree_gas = yes; then
26230 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26231 then gcc_cv_as_debug_prefix_map_flag
=yes
26233 elif test x
$gcc_cv_as != x
; then
26234 $as_echo "$insn" > conftest.s
26235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26237 (eval $ac_try) 2>&5
26239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26240 test $ac_status = 0; }; }
26242 gcc_cv_as_debug_prefix_map_flag
=yes
26244 echo "configure: failed program was" >&5
26247 rm -f conftest.o conftest.s
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26251 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26252 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26254 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26260 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26261 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26262 $as_echo_n "(cached) " >&6
26264 gcc_cv_as_lcomm_with_alignment
=no
26265 if test x
$gcc_cv_as != x
; then
26266 $as_echo '.lcomm bar,4,16' > conftest.s
26267 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26269 (eval $ac_try) 2>&5
26271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26272 test $ac_status = 0; }; }
26274 gcc_cv_as_lcomm_with_alignment
=yes
26276 echo "configure: failed program was" >&5
26279 rm -f conftest.o conftest.s
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26283 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26284 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26286 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26290 # Check whether --enable-gnu-unique-object was given.
26291 if test "${enable_gnu_unique_object+set}" = set; then :
26292 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26294 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26295 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26299 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26300 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26301 $as_echo_n "(cached) " >&6
26303 gcc_cv_as_gnu_unique_object
=no
26304 if test $in_tree_gas = yes; then
26305 if test $in_tree_gas_is_elf = yes \
26306 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26307 then gcc_cv_as_gnu_unique_object
=yes
26309 elif test x
$gcc_cv_as != x
; then
26310 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26311 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26313 (eval $ac_try) 2>&5
26315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26316 test $ac_status = 0; }; }
26318 gcc_cv_as_gnu_unique_object
=yes
26320 echo "configure: failed program was" >&5
26323 rm -f conftest.o conftest.s
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26327 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26328 if test $gcc_cv_as_gnu_unique_object = yes; then
26329 # We need to unquote above to to use the definition from config.gcc.
26330 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26331 if test x
$host = x
$build -a x
$host = x
$target &&
26332 ldd
--version 2>/dev
/null
&&
26333 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26334 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26335 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26336 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26337 if test "$glibcnum" -ge 2011 ; then
26338 enable_gnu_unique_object
=yes
26344 if test x
$enable_gnu_unique_object = xyes
; then
26346 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26351 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26352 if test "${gcc_cv_as_line_zero+set}" = set; then :
26353 $as_echo_n "(cached) " >&6
26355 gcc_cv_as_line_zero
=no
26356 if test $in_tree_gas = yes; then
26357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26358 then gcc_cv_as_line_zero
=yes
26360 elif test "x$gcc_cv_as" != x
; then
26361 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26362 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26364 (eval $ac_try) 2>&5
26366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26367 test $ac_status = 0; }; } &&
26368 test "x`cat conftest.out`" = x
26370 gcc_cv_as_line_zero
=yes
26372 echo "configure: failed program was" >&5
26374 echo "configure: error output was" >&5
26375 cat conftest.out
>&5
26377 rm -f conftest.o conftest.s conftest.out
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26381 $as_echo "$gcc_cv_as_line_zero" >&6; }
26382 if test "x$gcc_cv_as_line_zero" = xyes
; then
26384 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26389 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26390 gcc_cv_ld_eh_frame_hdr
=no
26391 if test $in_tree_ld = yes ; then
26392 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 \
26393 && test $in_tree_ld_is_elf = yes; then
26394 gcc_cv_ld_eh_frame_hdr
=yes
26396 elif test x
$gcc_cv_ld != x
; then
26397 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26398 # Check if linker supports --eh-frame-hdr option
26399 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26400 gcc_cv_ld_eh_frame_hdr
=yes
26405 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26406 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26407 gcc_cv_ld_eh_frame_hdr
=yes
26414 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26416 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26420 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26423 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26424 gcc_cv_ld_eh_frame_ciev3
=no
26425 if test $in_tree_ld = yes ; then
26426 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 \
26427 && test $in_tree_ld_is_elf = yes; then
26428 gcc_cv_ld_eh_frame_ciev3
=yes
26430 elif test x
$gcc_cv_ld != x
; then
26431 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26432 gcc_cv_ld_eh_frame_ciev3
=yes
26433 if test 0"$ld_date" -lt 20040513; then
26434 if test -n "$ld_date"; then
26435 # If there was date string, but was earlier than 2004-05-13, fail
26436 gcc_cv_ld_eh_frame_ciev3
=no
26437 elif test "$ld_vers_major" -lt 2; then
26438 gcc_cv_ld_eh_frame_ciev3
=no
26439 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26440 gcc_cv_ld_eh_frame_ciev3
=no
26446 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26447 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26448 gcc_cv_ld_eh_frame_ciev3
=yes
26455 cat >>confdefs.h
<<_ACEOF
26456 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26460 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26463 $as_echo_n "checking linker position independent executable support... " >&6; }
26465 if test $in_tree_ld = yes ; then
26466 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 \
26467 && test $in_tree_ld_is_elf = yes; then
26470 elif test x
$gcc_cv_ld != x
; then
26471 # Check if linker supports -pie option
26472 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26476 if test x
"$gcc_cv_ld_pie" = xyes
; then
26478 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26482 $as_echo "$gcc_cv_ld_pie" >&6; }
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26485 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26486 gcc_cv_ld_eh_gc_sections
=no
26487 if test $in_tree_ld = yes ; then
26488 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 \
26489 && test $in_tree_ld_is_elf = yes; then
26490 gcc_cv_ld_eh_gc_sections
=yes
26492 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26493 cat > conftest.s
<<EOF
26496 .type _start, @function
26499 .size _start, .-_start
26500 .section .text.foo,"ax",@progbits
26501 .type foo, @function
26505 .section .gcc_except_table.foo,"a",@progbits
26508 .section .eh_frame,"a",@progbits
26511 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26512 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26513 |
grep "gc-sections option ignored" > /dev
/null
; then
26514 gcc_cv_ld_eh_gc_sections
=no
26515 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26516 |
grep gcc_except_table
> /dev
/null
; then
26517 gcc_cv_ld_eh_gc_sections
=yes
26518 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26519 if test x
$gcc_cv_as_comdat_group != xyes
; then
26520 gcc_cv_ld_eh_gc_sections
=no
26521 cat > conftest.s
<<EOF
26524 .type _start, @function
26527 .size _start, .-_start
26528 .section .gnu.linkonce.t.foo,"ax",@progbits
26529 .type foo, @function
26533 .section .gcc_except_table.foo,"a",@progbits
26536 .section .eh_frame,"a",@progbits
26539 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26540 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26541 |
grep "gc-sections option ignored" > /dev
/null
; then
26542 gcc_cv_ld_eh_gc_sections
=no
26543 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26544 |
grep gcc_except_table
> /dev
/null
; then
26545 gcc_cv_ld_eh_gc_sections
=yes
26551 rm -f conftest.s conftest.o conftest
26555 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26556 gcc_cv_ld_eh_gc_sections
=no
26559 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26561 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26565 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26568 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26569 gcc_cv_ld_eh_gc_sections_bug
=no
26570 if test $in_tree_ld = yes ; then
26571 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26572 && test $in_tree_ld_is_elf = yes; then
26573 gcc_cv_ld_eh_gc_sections_bug
=yes
26575 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
-a x
$gcc_cv_as_comdat_group = xyes
; then
26576 gcc_cv_ld_eh_gc_sections_bug
=yes
26577 cat > conftest.s
<<EOF
26580 .type _start, @function
26583 .size _start, .-_start
26584 .section .text.startup.foo,"ax",@progbits
26585 .type foo, @function
26589 .section .gcc_except_table.foo,"a",@progbits
26592 .section .eh_frame,"a",@progbits
26595 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26596 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26597 |
grep "gc-sections option ignored" > /dev
/null
; then
26599 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26600 |
grep gcc_except_table
> /dev
/null
; then
26601 gcc_cv_ld_eh_gc_sections_bug
=no
26604 rm -f conftest.s conftest.o conftest
26606 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26608 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26612 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26619 $as_echo_n "checking linker --as-needed support... " >&6; }
26620 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26621 $as_echo_n "(cached) " >&6
26623 gcc_cv_ld_as_needed
=no
26624 gcc_cv_ld_as_needed_option
='--as-needed'
26625 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26626 if test $in_tree_ld = yes ; then
26627 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 \
26628 && test $in_tree_ld_is_elf = yes; then
26629 gcc_cv_ld_as_needed
=yes
26631 elif test x
$gcc_cv_ld != x
; then
26632 # Check if linker supports --as-needed and --no-as-needed options
26633 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26634 gcc_cv_ld_as_needed
=yes
26637 # Solaris 2 ld always supports -z ignore/-z record.
26639 gcc_cv_ld_as_needed
=yes
26640 gcc_cv_ld_as_needed_option
="-z ignore"
26641 gcc_cv_ld_no_as_needed_option
="-z record"
26646 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26647 # dl_iterate_phdr, i.e. since Solaris 11.
26649 *-*-solaris2.1
[1-9]*)
26651 i?
86-*-* | x86_64-
*-*)
26652 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26653 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26654 gcc_cv_ld_as_needed
=no
26660 gcc_cv_ld_as_needed
=no
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26666 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26667 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26669 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26672 cat >>confdefs.h
<<_ACEOF
26673 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26677 cat >>confdefs.h
<<_ACEOF
26678 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26683 case "$target:$tm_file" in
26684 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26687 emul_name
="-melf64lppc"
26690 emul_name
="-melf64ppc"
26693 emul_name
="-melf64ppc_fbsd"
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26697 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26698 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26699 $as_echo_n "(cached) " >&6
26701 gcc_cv_ld_no_dot_syms
=no
26702 if test x
"$ld_is_gold" = xyes
; then
26703 gcc_cv_ld_no_dot_syms
=yes
26704 elif test $in_tree_ld = yes ; then
26705 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
26706 gcc_cv_ld_no_dot_syms
=yes
26708 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26709 cat > conftest1.s
<<EOF
26713 cat > conftest2.s
<<EOF
26714 .section ".opd","aw"
26717 .type foo,@function
26719 .quad .LEfoo,.TOC.@tocbase,0
26725 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26726 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26727 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26728 gcc_cv_ld_no_dot_syms
=yes
26730 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26735 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26736 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26738 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26743 $as_echo_n "checking linker large toc support... " >&6; }
26744 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26745 $as_echo_n "(cached) " >&6
26747 gcc_cv_ld_large_toc
=no
26748 if test x
"$ld_is_gold" = xyes
; then
26749 gcc_cv_ld_large_toc
=yes
26750 elif test $in_tree_ld = yes ; then
26751 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
26752 gcc_cv_ld_large_toc
=yes
26754 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26755 cat > conftest.s
<<EOF
26756 .section ".tbss","awT",@nobits
26762 addis 9,13,ie0@got@tprel@ha
26763 ld 9,ie0@got@tprel@l(9)
26765 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26766 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26767 gcc_cv_ld_large_toc
=yes
26769 rm -f conftest conftest.o conftest.s
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26774 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26775 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26777 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26786 $as_echo_n "checking linker large toc support... " >&6; }
26787 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26788 $as_echo_n "(cached) " >&6
26790 gcc_cv_ld_large_toc
=no
26791 if test x
$gcc_cv_as != x
; then
26792 cat > conftest.s
<<EOF
26802 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26803 gcc_cv_ld_large_toc
=yes
26805 rm -f conftest conftest.o conftest.s
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26810 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26811 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26813 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26820 $as_echo_n "checking linker --build-id support... " >&6; }
26821 if test "${gcc_cv_ld_buildid+set}" = set; then :
26822 $as_echo_n "(cached) " >&6
26824 gcc_cv_ld_buildid
=no
26825 if test $in_tree_ld = yes ; then
26826 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26827 "$gcc_cv_gld_minor_version" -ge 18 -o \
26828 "$gcc_cv_gld_major_version" -gt 2 \
26829 && test $in_tree_ld_is_elf = yes; then
26830 gcc_cv_ld_buildid
=yes
26832 elif test x
$gcc_cv_ld != x
; then
26833 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26834 gcc_cv_ld_buildid
=yes
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26839 $as_echo "$gcc_cv_ld_buildid" >&6; }
26840 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26842 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26846 # Check whether --enable-linker-build-id was given.
26847 if test "${enable_linker_build_id+set}" = set; then :
26848 enableval
=$enable_linker_build_id;
26850 enable_linker_build_id
=no
26854 if test x
"$enable_linker_build_id" = xyes
; then
26855 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26857 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26861 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26865 # In binutils 2.21, GNU ld gained support for new emulations fully
26866 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26868 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26869 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26872 gcc_cv_ld_sol2_emulation
=no
26873 if test $in_tree_ld = yes ; then
26874 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26875 "$gcc_cv_gld_minor_version" -ge 21 -o \
26876 "$gcc_cv_gld_major_version" -gt 2 \
26877 && test $in_tree_ld_is_elf = yes; then
26878 gcc_cv_ld_sol2_emulation
=yes
26880 elif test x
$gcc_cv_ld != x
; then
26881 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26882 grep _sol2
> /dev
/null
; then
26883 gcc_cv_ld_sol2_emulation
=yes
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26888 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26889 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26891 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26896 $as_echo_n "checking linker --sysroot support... " >&6; }
26897 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26898 $as_echo_n "(cached) " >&6
26900 gcc_cv_ld_sysroot
=no
26901 if test $in_tree_ld = yes ; then
26902 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
26903 gcc_cv_ld_sysroot
=yes
26905 elif test x
$gcc_cv_ld != x
; then
26906 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26907 gcc_cv_ld_sysroot
=yes
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26912 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26913 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26915 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26919 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26920 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26921 && test "$prefix" != "NONE"; then
26923 cat >>confdefs.h
<<_ACEOF
26924 #define PREFIX_INCLUDE_DIR "$prefix/include"
26929 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26930 if test "x$with_headers" != x
; then
26931 target_header_dir
=$with_headers
26932 elif test "x$with_sysroot" = x
; then
26933 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26934 elif test "x$with_build_sysroot" != "x"; then
26935 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26936 elif test "x$with_sysroot" = xyes
; then
26937 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26939 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26942 target_header_dir
=${native_system_header_dir}
26945 # Test for stack protector support in target C library.
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26947 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26948 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26949 $as_echo_n "(cached) " >&6
26951 gcc_cv_libc_provides_ssp
=no
26953 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26954 # glibc 2.4 and later provides __stack_chk_fail and
26955 # either __stack_chk_guard, or TLS access to stack guard canary.
26956 if test -f $target_header_dir/features.h \
26957 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26958 $target_header_dir/features.h
> /dev
/null
; then
26959 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26960 $target_header_dir/features.h
> /dev
/null
; then
26961 gcc_cv_libc_provides_ssp
=yes
26962 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26963 $target_header_dir/features.h
> /dev
/null \
26964 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26965 $target_header_dir/features.h
> /dev
/null
; then
26966 gcc_cv_libc_provides_ssp
=yes
26967 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26968 $target_header_dir/features.h
> /dev
/null
&& \
26969 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26970 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26971 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26972 gcc_cv_libc_provides_ssp
=yes
26974 # all versions of Bionic support stack protector
26975 elif test -f $target_header_dir/sys
/cdefs.h \
26976 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26977 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26978 gcc_cv_libc_provides_ssp
=yes
26982 # Avoid complicated tests (see
26983 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26984 # simply assert that glibc does provide this, which is true for all
26985 # realistically usable GNU/Hurd configurations.
26986 gcc_cv_libc_provides_ssp
=yes;;
26987 *-*-darwin* |
*-*-freebsd*)
26988 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26989 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26990 gcc_cv_libc_provides_ssp
=yes
26992 echo "no __stack_chk_fail on this target"
26996 *) gcc_cv_libc_provides_ssp
=no
;;
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27000 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27002 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27004 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27008 # Test for <sys/sdt.h> on the target.
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27011 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27013 if test -f $target_header_dir/sys
/sdt.h
; then
27016 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27020 $as_echo "$have_sys_sdt_h" >&6; }
27022 # Check if TFmode long double should be used by default or not.
27023 # Some glibc targets used DFmode long double, but with glibc 2.4
27024 # and later they can use TFmode.
27026 powerpc
*-*-linux* | \
27027 sparc
*-*-linux* | \
27031 # Check whether --with-long-double-128 was given.
27032 if test "${with_long_double_128+set}" = set; then :
27033 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27035 gcc_cv_target_ldbl128
=no
27036 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27037 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27038 && gcc_cv_target_ldbl128
=yes
27044 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27046 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27051 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27052 gcc_cv_target_dl_iterate_phdr
=unknown
27054 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27055 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27056 # libdl there, both complicating its use and breaking compatibility
27057 # between Solaris 10 updates.
27058 *-*-solaris2.1
[1-9]*)
27059 # <link.h> needs both a dl_iterate_phdr declaration and support for
27060 # compilation with largefile support.
27061 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27062 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27063 gcc_cv_target_dl_iterate_phdr
=yes
27065 gcc_cv_target_dl_iterate_phdr
=no
27070 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27072 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27076 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27078 # We no longer support different GC mechanisms. Emit an error if
27079 # the user configures with --with-gc.
27081 # Check whether --with-gc was given.
27082 if test "${with_gc+set}" = set; then :
27083 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27087 # Libraries to use on the host. This will normally be set by the top
27088 # level Makefile. Here we simply capture the value for our Makefile.
27089 if test -z "${HOST_LIBS+set}"; then
27094 # Use the system's zlib library.
27096 zlibinc
="-I\$(srcdir)/../zlib"
27098 # Check whether --with-system-zlib was given.
27099 if test "${with_system_zlib+set}" = set; then :
27100 withval
=$with_system_zlib; zlibdir
=
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27110 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27111 # Check whether --enable-maintainer-mode was given.
27112 if test "${enable_maintainer_mode+set}" = set; then :
27113 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27120 $as_echo "$maintainer_mode" >&6; }
27122 if test "$maintainer_mode" = "yes"; then
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27130 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27131 # Check whether --enable-link-mutex was given.
27132 if test "${enable_link_mutex+set}" = set; then :
27133 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27139 $as_echo "$do_link_mutex" >&6; }
27141 if test "$do_link_mutex" = "yes"; then
27144 DO_LINK_MUTEX
=false
27152 # Make empty files to contain the specs and options for each language.
27153 # Then add #include lines to for a compiler that has specs and/or options.
27159 # These (without "all_") are set in each config-lang.in.
27160 # `language' must be a single word so is spelled singularly.
27163 all_outputs
='Makefile'
27164 # List of language makefile fragments.
27165 all_lang_makefrags
=
27166 # Additional files for gengtype
27167 all_gtfiles
="$target_gtfiles"
27169 # These are the languages that are set in --enable-languages,
27170 # and are available in the GCC tree.
27171 all_selected_languages
=
27173 # Add the language fragments.
27174 # Languages are added via two mechanisms. Some information must be
27175 # recorded in makefile variables, these are defined in config-lang.in.
27176 # We accumulate them and plug them into the main Makefile.
27177 # The other mechanism is a set of hooks for each of the main targets
27178 # like `clean', `install', etc.
27180 language_hooks
="Make-hooks"
27182 for lang
in ${srcdir}/*/config-lang.
in
27184 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27186 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27187 if test "x$lang_alias" = x
27189 echo "$lang doesn't set \$language." 1>&2
27192 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27193 subdirs
="$subdirs $subdir"
27195 # $gcc_subdir is where the gcc integration files are to be found
27196 # for a language, both for internal compiler purposes (compiler
27197 # sources implementing front-end to GCC tree converters), and for
27198 # build infrastructure purposes (Make-lang.in, etc.)
27200 # This will be <subdir> (relative to $srcdir) if a line like
27201 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27202 # is found in <langdir>/config-lang.in, and will remain <langdir>
27205 # Except for the language alias (fetched above), the regular
27206 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27207 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27208 # only this and the language alias.
27210 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27211 if [ "$gcc_subdir" = "" ]; then
27212 gcc_subdir
="$subdir"
27215 case ",$enable_languages," in
27217 all_selected_languages
="$all_selected_languages $lang_alias"
27218 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27219 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27230 .
${srcdir}/$gcc_subdir/config-lang.
in
27231 if test "x$language" = x
27233 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27238 case ",$enable_languages," in
27239 *,$lang_alias,*) ;;
27241 for i
in $subdir_requires; do
27242 test -f "${srcdir}/$i/config-lang.in" && continue
27250 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27251 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27252 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27253 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27255 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27256 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27258 all_languages
="$all_languages $language"
27259 all_compilers
="$all_compilers $compilers"
27260 all_outputs
="$all_outputs $outputs"
27261 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27262 case ",$enable_languages," in
27265 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27275 for language
in $all_selected_languages
27277 check_languages
="$check_languages check-$language"
27280 # We link each language in with a set of hooks, reached indirectly via
27281 # lang.${target}. Only do so for selected languages.
27285 target_list
="all.cross start.encap rest.encap tags \
27286 install-common install-man install-info install-pdf install-html dvi \
27287 pdf html uninstall info man srcextra srcman srcinfo \
27288 mostlyclean clean distclean maintainer-clean install-plugin"
27290 for t
in $target_list
27293 for lang
in $all_selected_languages
27297 echo "lang.$t: $x" >> Make-hooks
27301 # Option include files
27304 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27305 option_includes
="option-includes.mk"
27314 echo "dir ." > .gdbinit
27315 echo "dir ${srcdir}" >> .gdbinit
27316 if test x
$gdb_needs_out_file_path = xyes
27318 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27320 if test "x$subdirs" != x
; then
27323 echo "dir ${srcdir}/$s" >> .gdbinit
27326 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27328 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27332 # Find a directory in which to install a shared libgcc.
27334 # Check whether --enable-version-specific-runtime-libs was given.
27335 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27336 enableval
=$enable_version_specific_runtime_libs;
27340 # Substitute configuration variables
27404 if test x
${build} = x
${host} ; then
27405 if test x
${host} = x
${target} ; then
27406 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27408 echo "Links are now set up to build a cross-compiler" 1>&2
27409 echo " from ${host} to ${target}." 1>&2
27412 if test x
${host} = x
${target} ; then
27413 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27414 echo " for ${target}." 1>&2
27416 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27417 echo " from ${host} to ${target}." 1>&2
27429 if test "x${CLOOGLIBS}" != "x" ; then
27431 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27435 # Check for plugin support
27436 # Check whether --enable-plugin was given.
27437 if test "${enable_plugin+set}" = set; then :
27438 enableval
=$enable_plugin; enable_plugin
=$enableval
27440 enable_plugin
=yes; default_plugin
=yes
27448 if test x
$build = x
$host; then
27449 export_sym_check
="nm${exeext} -g"
27450 elif test x
$host = x
$target; then
27451 export_sym_check
="$gcc_cv_nm -g"
27457 if test x
$build = x
$host; then
27458 export_sym_check
="objdump${exeext} -T"
27459 elif test x
$host = x
$target; then
27460 export_sym_check
="$gcc_cv_objdump -T"
27467 if test x
"$enable_plugin" = x
"yes"; then
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27470 $as_echo_n "checking for exported symbols... " >&6; }
27471 if test "x$export_sym_check" != x
; then
27472 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27473 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27474 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27475 : # No need to use a flag
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27477 $as_echo "yes" >&6; }
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27480 $as_echo "yes" >&6; }
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27482 $as_echo_n "checking for -rdynamic... " >&6; }
27483 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27484 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27485 plugin_rdynamic
=yes
27486 pluginlibs
="-rdynamic"
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27492 $as_echo "$plugin_rdynamic" >&6; }
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27496 $as_echo "unable to check" >&6; }
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27502 $as_echo_n "checking for library containing dlopen... " >&6; }
27503 if test "${ac_cv_search_dlopen+set}" = set; then :
27504 $as_echo_n "(cached) " >&6
27506 ac_func_search_save_LIBS
=$LIBS
27507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27508 /* end confdefs.h. */
27510 /* Override any GCC internal prototype to avoid an error.
27511 Use char because int might match the return type of a GCC
27512 builtin and then its argument prototype would still apply. */
27525 for ac_lib
in '' dl
; do
27526 if test -z "$ac_lib"; then
27527 ac_res
="none required"
27530 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27532 if ac_fn_c_try_link
"$LINENO"; then :
27533 ac_cv_search_dlopen
=$ac_res
27535 rm -f core conftest.err conftest.
$ac_objext \
27537 if test "${ac_cv_search_dlopen+set}" = set; then :
27541 if test "${ac_cv_search_dlopen+set}" = set; then :
27544 ac_cv_search_dlopen
=no
27546 rm conftest.
$ac_ext
27547 LIBS
=$ac_func_search_save_LIBS
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27550 $as_echo "$ac_cv_search_dlopen" >&6; }
27551 ac_res
=$ac_cv_search_dlopen
27552 if test "$ac_res" != no
; then :
27553 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27557 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27558 pluginlibs
="$pluginlibs -ldl"
27562 # Check that we can build shared objects with -fPIC -shared
27563 saved_LDFLAGS
="$LDFLAGS"
27564 saved_CFLAGS
="$CFLAGS"
27567 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27568 CFLAGS
="$CFLAGS -fPIC"
27569 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27572 CFLAGS
="$CFLAGS -fPIC"
27573 LDFLAGS
="$LDFLAGS -fPIC -shared"
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27577 $as_echo_n "checking for -fPIC -shared... " >&6; }
27578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27579 /* end confdefs.h. */
27589 if ac_fn_c_try_link
"$LINENO"; then :
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27591 $as_echo "yes" >&6; }; have_pic_shared
=yes
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27594 $as_echo "no" >&6; }; have_pic_shared
=no
27596 rm -f core conftest.err conftest.
$ac_objext \
27597 conftest
$ac_exeext conftest.
$ac_ext
27598 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27602 LDFLAGS
="$saved_LDFLAGS"
27603 CFLAGS
="$saved_CFLAGS"
27605 # If plugin support had been requested but not available, fail.
27606 if test x
"$enable_plugin" = x
"no" ; then
27607 if test x
"$default_plugin" != x
"yes"; then
27609 Building GCC with plugin support requires a host that supports
27610 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27617 if test x
"$enable_plugin" = x
"yes"; then
27619 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27624 # Check whether --enable-libquadmath-support was given.
27625 if test "${enable_libquadmath_support+set}" = set; then :
27626 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27628 ENABLE_LIBQUADMATH_SUPPORT
=yes
27631 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27633 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27638 # Specify what hash style to use by default.
27640 # Check whether --with-linker-hash-style was given.
27641 if test "${with_linker_hash_style+set}" = set; then :
27642 withval
=$with_linker_hash_style; case x
"$withval" in
27644 LINKER_HASH_STYLE
=sysv
27647 LINKER_HASH_STYLE
=gnu
27650 LINKER_HASH_STYLE
=both
27653 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27657 LINKER_HASH_STYLE
=''
27660 if test x
"${LINKER_HASH_STYLE}" != x
; then
27662 cat >>confdefs.h
<<_ACEOF
27663 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27668 # Configure the subdirectories
27669 # AC_CONFIG_SUBDIRS($subdirs)
27671 # Create the Makefile
27672 # and configure language subdirectories
27673 ac_config_files
="$ac_config_files $all_outputs"
27676 ac_config_commands
="$ac_config_commands default"
27678 cat >confcache
<<\_ACEOF
27679 # This file is a shell script that caches the results of configure
27680 # tests run on this system so they can be shared between configure
27681 # scripts and configure runs, see configure's option --config-cache.
27682 # It is not useful on other systems. If it contains results you don't
27683 # want to keep, you may remove or edit it.
27685 # config.status only pays attention to the cache file if you give it
27686 # the --recheck option to rerun configure.
27688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27690 # following values.
27694 # The following way of writing the cache mishandles newlines in values,
27695 # but we know of no workaround that is simple, portable, and efficient.
27696 # So, we kill variables containing newlines.
27697 # Ultrix sh set writes to stderr and can't be redirected directly,
27698 # and sets the high bit in the cache file unless we assign to the vars.
27700 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27701 eval ac_val
=\$
$ac_var
27705 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27709 _ | IFS | as_nl
) ;; #(
27710 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27711 *) { eval $ac_var=; unset $ac_var;} ;;
27717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27718 *${as_nl}ac_space
=\
*)
27719 # `set' does not quote correctly, so add quotes: double-quote
27720 # substitution turns \\\\ into \\, and sed turns \\ into \.
27723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27726 # `set' quotes correctly as required by POSIX, so do not add quotes.
27727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27740 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27741 if test -w "$cache_file"; then
27742 test "x$cache_file" != "x/dev/null" &&
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27744 $as_echo "$as_me: updating cache $cache_file" >&6;}
27745 cat confcache
>$cache_file
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27748 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27753 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27754 # Let make expand exec_prefix.
27755 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27757 DEFS
=-DHAVE_CONFIG_H
27761 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27762 # 1. Remove the extension, and $U if already installed.
27763 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27764 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27766 # will be set to the directory where LIBOBJS objects are built.
27767 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27768 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27770 LIBOBJS
=$ac_libobjs
27772 LTLIBOBJS
=$ac_ltlibobjs
27777 : ${CONFIG_STATUS=./config.status}
27779 ac_clean_files_save
=$ac_clean_files
27780 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27782 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27784 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27786 # Generated by $as_me.
27787 # Run this file to recreate the current configuration.
27788 # Compiler output produced by configure, useful for debugging
27789 # configure, is in config.log if it exists.
27792 ac_cs_recheck=false
27795 SHELL=\${CONFIG_SHELL-$SHELL}
27798 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27799 ## -------------------- ##
27800 ## M4sh Initialization. ##
27801 ## -------------------- ##
27803 # Be more Bourne compatible
27804 DUALCASE
=1; export DUALCASE
# for MKS sh
27805 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27809 # is contrary to our usage. Disable this feature.
27810 alias -g '${1+"$@"}'='"$@"'
27811 setopt NO_GLOB_SUBST
27813 case `(set -o) 2>/dev/null` in #(
27825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27826 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27829 # Prefer a ksh shell builtin over an external printf program on Solaris,
27830 # but without wasting forks for bash or zsh.
27831 if test -z "$BASH_VERSION$ZSH_VERSION" \
27832 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27833 as_echo='print
-r --'
27834 as_echo_n='print
-rn --'
27835 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27836 as_echo='printf %s
\n'
27837 as_echo_n='printf %s
'
27839 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27840 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27841 as_echo_n='/usr
/ucb
/echo -n'
27843 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27844 as_echo_n_body='eval
27848 expr "X$arg" : "X\\(.*\\)$as_nl";
27849 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27851 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27853 export as_echo_n_body
27854 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27856 export as_echo_body
27857 as_echo='sh
-c $as_echo_body as_echo
'
27860 # The user is always right.
27861 if test "${PATH_SEPARATOR+set}" != set; then
27863 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27864 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27871 # We need space, tab and new line, in precisely that order. Quoting is
27872 # there to prevent editors from complaining about space-tab.
27873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27874 # splitting by setting IFS to empty value.)
27877 # Find who we are. Look in the path if we contain no directory separator.
27879 *[\\/]* ) as_myself=$0 ;;
27880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27881 for as_dir in $PATH
27884 test -z "$as_dir" && as_dir=.
27885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27891 # We did not find ourselves, most probably we were run as `sh COMMAND'
27892 # in which case we are not to be found in the path.
27893 if test "x$as_myself" = x
; then
27896 if test ! -f "$as_myself"; then
27897 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27901 # Unset variables that we do not need and which cause bugs (e.g. in
27902 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27903 # suppresses any "Segmentation fault" message there. '((' could
27904 # trigger a bug in pdksh 5.2.14.
27905 for as_var
in BASH_ENV ENV MAIL MAILPATH
27906 do eval test x\
${$as_var+set} = xset \
27907 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27920 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27923 # as_fn_error ERROR [LINENO LOG_FD]
27924 # ---------------------------------
27925 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27926 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27927 # script with status $?, using 1 if that was 0.
27930 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27932 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27933 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27935 $as_echo "$as_me: error: $1" >&2
27936 as_fn_exit
$as_status
27940 # as_fn_set_status STATUS
27941 # -----------------------
27942 # Set $? to STATUS, without forking.
27943 as_fn_set_status
()
27946 } # as_fn_set_status
27948 # as_fn_exit STATUS
27949 # -----------------
27950 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27954 as_fn_set_status
$1
27960 # Portably unset VAR.
27963 { eval $1=; unset $1;}
27965 as_unset
=as_fn_unset
27966 # as_fn_append VAR VALUE
27967 # ----------------------
27968 # Append the text in VALUE to the end of the definition contained in VAR. Take
27969 # advantage of any shell optimizations that allow amortized linear growth over
27970 # repeated appends, instead of the typical quadratic growth present in naive
27972 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27973 eval 'as_fn_append ()
27984 # as_fn_arith ARG...
27985 # ------------------
27986 # Perform arithmetic evaluation on the ARGs, and store the result in the
27987 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27988 # must be portable across $(()) and expr.
27989 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27990 eval 'as_fn_arith ()
27997 as_val
=`expr "$@" || test $? -eq 1`
28002 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28003 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28009 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28010 as_basename
=basename
28015 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28021 as_me
=`$as_basename -- "$0" ||
28022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28023 X"$0" : 'X\(//\)$' \| \
28024 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28026 sed '/^.*\/\([^/][^/]*\)\/*$/{
28040 # Avoid depending upon Character Ranges.
28041 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28042 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28043 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28044 as_cr_digits
='0123456789'
28045 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28047 ECHO_C
= ECHO_N
= ECHO_T
=
28048 case `echo -n x` in #(((((
28050 case `echo 'xy\c'` in
28051 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28053 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28060 rm -f conf$$ conf$$.exe conf$$.
file
28061 if test -d conf$$.dir
; then
28062 rm -f conf$$.dir
/conf$$.
file
28065 mkdir conf$$.dir
2>/dev
/null
28067 if (echo >conf$$.
file) 2>/dev
/null
; then
28068 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28070 # ... but there are two gotchas:
28071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28073 # In both cases, we have to default to `cp -p'.
28074 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28076 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28084 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28085 rmdir conf$$.dir
2>/dev
/null
28090 # Create "$as_dir" as a directory, including parents if necessary.
28095 -*) as_dir
=.
/$as_dir;;
28097 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28101 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28102 *) as_qdir
=$as_dir;;
28104 as_dirs
="'$as_qdir' $as_dirs"
28105 as_dir
=`$as_dirname -- "$as_dir" ||
28106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28107 X"$as_dir" : 'X\(//\)[^/]' \| \
28108 X"$as_dir" : 'X\(//\)$' \| \
28109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28110 $as_echo X"$as_dir" |
28111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28115 /^X\(\/\/\)[^/].*/{
28128 test -d "$as_dir" && break
28130 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28131 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28135 if mkdir
-p .
2>/dev
/null
; then
28136 as_mkdir_p
='mkdir -p "$as_dir"'
28138 test -d .
/-p && rmdir .
/-p
28142 if test -x / >/dev
/null
2>&1; then
28143 as_test_x
='test -x'
28145 if ls -dL / >/dev
/null
2>&1; then
28152 if test -d "$1"; then
28158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28159 ???[sx]*):;;*)false;;esac;fi
28163 as_executable_p
=$as_test_x
28165 # Sed expression to map a string onto a valid CPP name.
28166 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28168 # Sed expression to map a string onto a valid variable name.
28169 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28173 ## ----------------------------------- ##
28174 ## Main body of $CONFIG_STATUS script. ##
28175 ## ----------------------------------- ##
28177 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28180 # Save the log message, to keep $0 and so on meaningful, and to
28181 # report actual input values of CONFIG_FILES etc. instead of their
28182 # values after options handling.
28184 This file was extended by $as_me, which was
28185 generated by GNU Autoconf 2.64. Invocation command line was
28187 CONFIG_FILES = $CONFIG_FILES
28188 CONFIG_HEADERS = $CONFIG_HEADERS
28189 CONFIG_LINKS = $CONFIG_LINKS
28190 CONFIG_COMMANDS = $CONFIG_COMMANDS
28193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28198 case $ac_config_files in *"
28199 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28202 case $ac_config_headers in *"
28203 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28208 # Files that config.status was made for.
28209 config_files="$ac_config_files"
28210 config_headers="$ac_config_headers"
28211 config_commands="$ac_config_commands"
28215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28217 \`$as_me' instantiates files and other configuration actions
28218 from templates according to the current configuration. Unless the files
28219 and actions are specified as TAGs, all are instantiated by default.
28221 Usage: $0 [OPTION]... [TAG]...
28223 -h, --help print this help, then exit
28224 -V, --version print version number and configuration settings, then exit
28225 -q, --quiet, --silent
28226 do not print progress messages
28227 -d, --debug don't remove temporary files
28228 --recheck update $as_me by reconfiguring in the same conditions
28229 --file=FILE[:TEMPLATE]
28230 instantiate the configuration file FILE
28231 --header=FILE[:TEMPLATE]
28232 instantiate the configuration header FILE
28234 Configuration files:
28237 Configuration headers:
28240 Configuration commands:
28243 Report bugs to the package provider."
28246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28249 configured by $0, generated by GNU Autoconf 2.64,
28250 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28252 Copyright (C) 2009 Free Software Foundation, Inc.
28253 This config.status script is free software; the Free Software Foundation
28254 gives unlimited permission to copy, distribute and modify it."
28259 test -n "\$AWK" || AWK=awk
28262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28263 # The default lists apply if the user does not specify any file.
28269 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28270 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28281 # Handling of the options.
28282 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28284 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28285 $as_echo "$ac_cs_version"; exit ;;
28286 --debug |
--debu |
--deb |
--de |
--d |
-d )
28288 --file |
--fil |
--fi |
--f )
28291 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28293 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28294 ac_need_defaults
=false
;;
28295 --header |
--heade |
--head |
--hea )
28298 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28300 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28301 ac_need_defaults
=false
;;
28303 # Conflict between --help and --header
28304 as_fn_error
"ambiguous option: \`$1'
28305 Try \`$0 --help' for more information.";;
28306 --help |
--hel |
-h )
28307 $as_echo "$ac_cs_usage"; exit ;;
28308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28309 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28312 # This is an error.
28313 -*) as_fn_error
"unrecognized option: \`$1'
28314 Try \`$0 --help' for more information." ;;
28316 *) as_fn_append ac_config_targets
" $1"
28317 ac_need_defaults
=false
;;
28323 ac_configure_extra_args
=
28325 if $ac_cs_silent; then
28327 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28332 if \$ac_cs_recheck; then
28333 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28335 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28336 CONFIG_SHELL='$SHELL'
28337 export CONFIG_SHELL
28342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28347 ## Running $as_me. ##
28353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28363 # Handling of arguments.
28364 for ac_config_target
in $ac_config_targets
28366 case $ac_config_target in
28367 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28368 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28369 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28370 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28371 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28372 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28374 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28379 # If the user did not use the arguments to specify the items to instantiate,
28380 # then the envvar interface is used. Set only those that are not.
28381 # We use the long form for the default assignment because of an extremely
28382 # bizarre bug on SunOS 4.1.3.
28383 if $ac_need_defaults; then
28384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28386 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28389 # Have a temporary directory for convenience. Make it in the build tree
28390 # simply because there is no reason against having it here, and in addition,
28391 # creating and moving files from /tmp can sometimes cause problems.
28392 # Hook for its removal unless debugging.
28393 # Note that there is a small window in which the directory will not be cleaned:
28394 # after its creation but before its name has been assigned to `$tmp'.
28398 trap 'exit_status=$?
28399 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28401 trap 'as_fn_exit 1' 1 2 13 15
28403 # Create a (secure) tmp directory for tmp files.
28406 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28407 test -n "$tmp" && test -d "$tmp"
28410 tmp
=.
/conf$$
-$RANDOM
28411 (umask 077 && mkdir
"$tmp")
28412 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28414 # Set up the scripts for CONFIG_FILES section.
28415 # No need to generate them if there are no CONFIG_FILES.
28416 # This happens for instance with `./config.status config.h'.
28417 if test -n "$CONFIG_FILES"; then
28419 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28420 ac_cs_awk_getline
=:
28421 ac_cs_awk_pipe_init
=
28422 ac_cs_awk_read_file
='
28423 while ((getline aline < (F[key])) > 0)
28426 ac_cs_awk_pipe_fini
=
28428 ac_cs_awk_getline
=false
28429 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28430 ac_cs_awk_read_file
='
28432 print "cat " F[key] " &&"
28433 '$ac_cs_awk_pipe_init
28434 # The final `:' finishes the AND list.
28435 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28437 ac_cr
=`echo X | tr X '\015'`
28438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28439 # But we know of no other shell where ac_cr would be empty at this
28440 # point, so we can use a bashism as a fallback.
28441 if test "x$ac_cr" = x
; then
28442 eval ac_cr
=\$
\'\\r
\'
28444 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28448 ac_cs_awk_cr
=$ac_cr
28451 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28454 # Create commands to substitute file output variables.
28456 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28457 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28458 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28461 } >conf$
$files.sh
&&
28462 . .
/conf$
$files.sh ||
28463 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28464 rm -f conf$
$files.sh
28467 echo "cat >conf$$subs.awk <<_ACEOF" &&
28468 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28470 } >conf$$subs.sh ||
28471 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28472 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28474 for ac_last_try in false false false false false :; do
28475 . ./conf$$subs.sh ||
28476 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28478 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28479 if test $ac_delim_n = $ac_delim_num; then
28481 elif $ac_last_try; then
28482 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28484 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28487 rm -f conf$$subs.sh
28489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28490 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28494 s/^/S["/; s
/!.
*/"]=/
28504 s/\(.\{148\}\).*/\1/
28506 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28511 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28518 s/\(.\{148\}\).*/\1/
28520 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28524 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28529 ' <conf$$subs.awk | sed '
28534 ' >>$CONFIG_STATUS || ac_write_fail=1
28535 rm -f conf$$subs.awk
28536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28538 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28539 for (key in S) S_is_set[key] = 1
28541 \$ac_cs_awk_pipe_init
28545 nfields = split(line, field, "@
")
28547 len = length(field[1])
28548 for (i = 2; i < nfields; i++) {
28550 keylen = length(key)
28551 if (S_is_set[key]) {
28553 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28554 len += length(value) + length(field[++i])
28559 if (nfields == 3 && !substed) {
28561 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28562 \$ac_cs_awk_read_file
28568 \$ac_cs_awk_pipe_fini
28571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28572 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28573 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28576 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28577 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28580 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28581 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28582 # trailing colons and then remove the whole line if VPATH becomes empty
28583 # (actually we leave an empty line to preserve line numbers).
28584 if test "x
$srcdir" = x.; then
28585 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28586 s/:*\$(srcdir):*/:/
28587 s/:*\${srcdir}:*/:/
28589 s/^\([^=]*=[ ]*\):*/\1/
28595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28596 fi # test -n "$CONFIG_FILES"
28598 # Set up the scripts for CONFIG_HEADERS section.
28599 # No need to generate them if there are no CONFIG_HEADERS.
28600 # This happens for instance with `./config.status Makefile'.
28601 if test -n "$CONFIG_HEADERS"; then
28602 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28606 # Transform confdefs.h into an awk script `defines.awk', embedded as
28607 # here-document in config.status, that substitutes the proper values into
28608 # config.h.in to produce config.h.
28610 # Create a delimiter string that does not exist in confdefs.h, to ease
28611 # handling of long lines.
28613 for ac_last_try in false false :; do
28614 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28615 if test -z "$ac_t"; then
28617 elif $ac_last_try; then
28618 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28620 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28624 # For the awk script, D is an array of macro values keyed by name,
28625 # likewise P contains macro parameters if any. Preserve backslash
28626 # newline sequences.
28628 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28630 s/.\{148\}/&'"$ac_delim"'/g
28633 s/^[ ]*#[ ]*define[ ][ ]*/ /
28640 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28642 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28646 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28647 D["\
1"]=" \
3\\\\\\n
"\\/p
28649 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28654 s/.\{148\}/&'"$ac_delim"'/g
28659 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28662 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28664 ' <confdefs.h | sed '
28665 s/'"$ac_delim"'/"\\\
28666 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28669 for (key in D) D_is_set[key] = 1
28672 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28674 split(line, arg, " ")
28675 if (arg[1] == "#") {
28679 defundef
= substr
(arg
[1], 2)
28682 split(mac1
, mac2
, "(") #)
28684 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28685 if (D_is_set
[macro
]) {
28686 # Preserve the white space surrounding the "#".
28687 print prefix
"define", macro P
[macro
] D
[macro
]
28690 # Replace #undef with comments. This is necessary, for example,
28691 # in the case of _POSIX_SOURCE, which is predefined and required
28692 # on some systems where configure will not decide to define it.
28693 if (defundef
== "undef") {
28694 print
"/*", prefix defundef
, macro
, "*/"
28702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28703 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28704 fi # test -n "$CONFIG_HEADERS"
28707 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28712 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28714 case $ac_mode$ac_tag in
28716 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28717 :[FH
]-) ac_tag
=-:-;;
28718 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28735 -) ac_f
="$tmp/stdin";;
28736 *) # Look for the file first in the build tree, then in the source tree
28737 # (if the path is not absolute). The absolute path cannot be DOS-style,
28738 # because $ac_f cannot contain `:'.
28742 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28744 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28746 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28747 as_fn_append ac_file_inputs
" '$ac_f'"
28750 # Let's still pretend it is `configure' which instantiates (i.e., don't
28751 # use $as_me), people would be surprised to read:
28752 # /* config.h. Generated by config.status. */
28753 configure_input
='Generated from '`
28754 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28756 if test x
"$ac_file" != x-
; then
28757 configure_input
="$ac_file. $configure_input"
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28759 $as_echo "$as_me: creating $ac_file" >&6;}
28761 # Neutralize special characters interpreted by sed in replacement strings.
28762 case $configure_input in #(
28763 *\
&* |
*\|
* |
*\\* )
28764 ac_sed_conf_input
=`$as_echo "$configure_input" |
28765 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28766 *) ac_sed_conf_input
=$configure_input;;
28770 *:-:* |
*:-) cat >"$tmp/stdin" \
28771 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28776 ac_dir
=`$as_dirname -- "$ac_file" ||
28777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28778 X"$ac_file" : 'X\(//\)[^/]' \| \
28779 X"$ac_file" : 'X\(//\)$' \| \
28780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28781 $as_echo X"$ac_file" |
28782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28786 /^X\(\/\/\)[^/].*/{
28799 as_dir
="$ac_dir"; as_fn_mkdir_p
28803 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28805 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28806 # A ".." for each directory in $ac_dir_suffix.
28807 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28808 case $ac_top_builddir_sub in
28809 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28810 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28813 ac_abs_top_builddir
=$ac_pwd
28814 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28815 # for backward compatibility:
28816 ac_top_builddir
=$ac_top_build_prefix
28819 .
) # We are building in place.
28821 ac_top_srcdir
=$ac_top_builddir_sub
28822 ac_abs_top_srcdir
=$ac_pwd ;;
28823 [\\/]* | ?
:[\\/]* ) # Absolute name.
28824 ac_srcdir
=$srcdir$ac_dir_suffix;
28825 ac_top_srcdir
=$srcdir
28826 ac_abs_top_srcdir
=$srcdir ;;
28827 *) # Relative name.
28828 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28829 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28830 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28832 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28844 # If the template does not know about datarootdir, expand it.
28845 # FIXME: This hack should be removed a few years after 2.60.
28846 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28857 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28858 *datarootdir
*) ac_datarootdir_seen
=yes;;
28859 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28861 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28864 ac_datarootdir_hack='
28865 s&@datadir@&$datadir&g
28866 s&@docdir@&$docdir&g
28867 s&@infodir@&$infodir&g
28868 s&@localedir@&$localedir&g
28869 s&@mandir@&$mandir&g
28870 s&\\\${datarootdir}&$datarootdir&g' ;;
28874 # Neutralize VPATH when `$srcdir' = `.'.
28875 # Shell code in configure.ac might set extrasub.
28876 # FIXME: do we really want to maintain this feature?
28877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28878 ac_sed_extra="$ac_vpsub
28881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28883 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28884 s|@configure_input@|
$ac_sed_conf_input|
;t t
28885 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28886 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28887 s
&@srcdir@
&$ac_srcdir&;t t
28888 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28889 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28890 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28891 s
&@builddir@
&$ac_builddir&;t t
28892 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28893 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28894 $ac_datarootdir_hack
28896 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28897 if $ac_cs_awk_getline; then
28898 $AWK -f "$tmp/subs.
awk"
28900 $AWK -f "$tmp/subs.
awk" | $SHELL
28902 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28904 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28905 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28906 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28908 which seems to be undefined. Please make sure it is defined." >&5
28909 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28910 which seems to be undefined. Please make sure it is defined." >&2;}
28914 -) cat "$tmp/out" && rm -f "$tmp/out";;
28915 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28917 || as_fn_error "could not create $ac_file" "$LINENO" 5
28923 if test x"$ac_file" != x-; then
28925 $as_echo "/* $configure_input */" \
28926 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28927 } >"$tmp/config.h" \
28928 || as_fn_error "could not create $ac_file" "$LINENO" 5
28929 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28931 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28934 mv "$tmp/config.h" "$ac_file" \
28935 || as_fn_error "could not create $ac_file" "$LINENO" 5
28938 $as_echo "/* $configure_input */" \
28939 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28940 || as_fn_error "could not create -" "$LINENO" 5
28944 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28945 $as_echo "$as_me: executing $ac_file commands" >&6;}
28950 case $ac_file$ac_mode in
28951 "as":F) chmod +x as ;;
28952 "collect-ld":F) chmod +x collect-ld ;;
28953 "nm":F) chmod +x nm ;;
28955 case ${CONFIG_HEADERS} in
28956 *auto-host.h:config.in*)
28959 # Make sure all the subdirs exist.
28960 for d in $subdirs doc build common c-family
28962 test -d $d || mkdir $d
28972 ac_clean_files=$ac_clean_files_save
28974 test $ac_write_fail = 0 ||
28975 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28978 # configure is writing to config.log, and then calls config.status.
28979 # config.status does its own redirection, appending to config.log.
28980 # Unfortunately, on DOS this fails, as config.log is still kept open
28981 # by configure, so config.status won't be able to
write to it
; its
28982 # output is simply discarded. So we exec the FD to /dev/null,
28983 # effectively closing config.log, so it can be properly (re)opened and
28984 # appended to by config.status. When coming back to configure, we
28985 # need to make the FD available again.
28986 if test "$no_create" != yes; then
28988 ac_config_status_args
=
28989 test "$silent" = yes &&
28990 ac_config_status_args
="$ac_config_status_args --quiet"
28992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28995 # would make configure fail if this is the last instruction.
28996 $ac_cs_success || as_fn_exit $?
28998 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29000 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}