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_GOLD_FOR_TARGET
684 ORIGINAL_LD_BFD_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 ORIGINAL_AS_FOR_TARGET
730 NATIVE_SYSTEM_HEADER_DIR
767 CROSS_SYSTEM_HEADER_DIR
768 TARGET_SYSTEM_ROOT_DEFINE
770 SYSROOT_CFLAGS_FOR_TARGET
780 valgrind_path_defines
853 program_transform_name
864 ac_subst_files
='option_includes
867 enable_option_checking
872 enable_generated_files_in_srcdir
879 enable_build_format_warnings
883 enable_gather_detailed_mem_stats
884 enable_valgrind_annotations
896 with_native_system_header_dir
906 enable_sjlj_exceptions
908 enable_leading_mingw64_underscores
911 enable_win32_registry
919 enable_gnu_indirect_function
920 enable_initfini_array
922 enable_fix_cortex_a53_835769
924 enable_gnu_unique_object
925 enable_linker_build_id
929 enable_maintainer_mode
931 enable_version_specific_runtime_libs
934 enable_libquadmath_support
935 with_linker_hash_style
937 ac_precious_vars
='build_alias
956 # Initialize some variables set by options.
958 ac_init_version
=false
959 ac_unrecognized_opts
=
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
970 program_transform_name
=s
,x
,x
,
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir
='${exec_prefix}/bin'
985 sbindir
='${exec_prefix}/sbin'
986 libexecdir
='${exec_prefix}/libexec'
987 datarootdir
='${prefix}/share'
988 datadir
='${datarootdir}'
989 sysconfdir
='${prefix}/etc'
990 sharedstatedir
='${prefix}/com'
991 localstatedir
='${prefix}/var'
992 includedir
='${prefix}/include'
993 oldincludedir
='/usr/include'
994 docdir
='${datarootdir}/doc/${PACKAGE}'
995 infodir
='${datarootdir}/info'
1000 libdir
='${exec_prefix}/lib'
1001 localedir
='${datarootdir}/locale'
1002 mandir
='${datarootdir}/man'
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\
$ac_option
1016 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1022 case $ac_dashdash$ac_option in
1026 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1028 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1029 bindir
=$ac_optarg ;;
1031 -build |
--build |
--buil |
--bui |
--bu)
1032 ac_prev
=build_alias
;;
1033 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1034 build_alias
=$ac_optarg ;;
1036 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1037 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1038 ac_prev
=cache_file
;;
1039 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1040 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1041 cache_file
=$ac_optarg ;;
1043 --config-cache |
-C)
1044 cache_file
=config.cache
;;
1046 -datadir |
--datadir |
--datadi |
--datad)
1048 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1049 datadir
=$ac_optarg ;;
1051 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1052 |
--dataroo |
--dataro |
--datar)
1053 ac_prev
=datarootdir
;;
1054 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1055 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1056 datarootdir
=$ac_optarg ;;
1058 -disable-* |
--disable-*)
1059 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1062 as_fn_error
"invalid feature name: $ac_useropt"
1063 ac_useropt_orig
=$ac_useropt
1064 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1067 "enable_
$ac_useropt"
1069 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1070 ac_unrecognized_sep
=', ';;
1072 eval enable_
$ac_useropt=no
;;
1074 -docdir |
--docdir |
--docdi |
--doc |
--do)
1076 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1077 docdir
=$ac_optarg ;;
1079 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1081 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1082 dvidir
=$ac_optarg ;;
1084 -enable-* |
--enable-*)
1085 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1088 as_fn_error
"invalid feature name: $ac_useropt"
1089 ac_useropt_orig
=$ac_useropt
1090 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "enable_
$ac_useropt"
1095 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1096 ac_unrecognized_sep
=', ';;
1098 eval enable_
$ac_useropt=\
$ac_optarg ;;
1100 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1101 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1102 |
--exec |
--exe |
--ex)
1103 ac_prev
=exec_prefix
;;
1104 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1105 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1106 |
--exec=* |
--exe=* |
--ex=*)
1107 exec_prefix
=$ac_optarg ;;
1109 -gas |
--gas |
--ga |
--g)
1110 # Obsolete; use --with-gas.
1113 -help |
--help |
--hel |
--he |
-h)
1114 ac_init_help
=long
;;
1115 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1116 ac_init_help
=recursive
;;
1117 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1118 ac_init_help
=short
;;
1120 -host |
--host |
--hos |
--ho)
1121 ac_prev
=host_alias
;;
1122 -host=* |
--host=* |
--hos=* |
--ho=*)
1123 host_alias
=$ac_optarg ;;
1125 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1127 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1129 htmldir
=$ac_optarg ;;
1131 -includedir |
--includedir |
--includedi |
--included |
--include \
1132 |
--includ |
--inclu |
--incl |
--inc)
1133 ac_prev
=includedir
;;
1134 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1135 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1136 includedir
=$ac_optarg ;;
1138 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1140 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1141 infodir
=$ac_optarg ;;
1143 -libdir |
--libdir |
--libdi |
--libd)
1145 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1146 libdir
=$ac_optarg ;;
1148 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1149 |
--libexe |
--libex |
--libe)
1150 ac_prev
=libexecdir
;;
1151 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1152 |
--libexe=* |
--libex=* |
--libe=*)
1153 libexecdir
=$ac_optarg ;;
1155 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1156 ac_prev
=localedir
;;
1157 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1158 localedir
=$ac_optarg ;;
1160 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1161 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1162 ac_prev
=localstatedir
;;
1163 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1164 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1165 localstatedir
=$ac_optarg ;;
1167 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1169 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1170 mandir
=$ac_optarg ;;
1172 -nfp |
--nfp |
--nf)
1173 # Obsolete; use --without-fp.
1176 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1177 |
--no-cr |
--no-c |
-n)
1180 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1181 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1184 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1185 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1186 |
--oldin |
--oldi |
--old |
--ol |
--o)
1187 ac_prev
=oldincludedir
;;
1188 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1189 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1190 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1191 oldincludedir
=$ac_optarg ;;
1193 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1195 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1196 prefix
=$ac_optarg ;;
1198 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1199 |
--program-pre |
--program-pr |
--program-p)
1200 ac_prev
=program_prefix
;;
1201 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1202 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1203 program_prefix
=$ac_optarg ;;
1205 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1206 |
--program-suf |
--program-su |
--program-s)
1207 ac_prev
=program_suffix
;;
1208 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1209 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1210 program_suffix
=$ac_optarg ;;
1212 -program-transform-name |
--program-transform-name \
1213 |
--program-transform-nam |
--program-transform-na \
1214 |
--program-transform-n |
--program-transform- \
1215 |
--program-transform |
--program-transfor \
1216 |
--program-transfo |
--program-transf \
1217 |
--program-trans |
--program-tran \
1218 |
--progr-tra |
--program-tr |
--program-t)
1219 ac_prev
=program_transform_name
;;
1220 -program-transform-name=* |
--program-transform-name=* \
1221 |
--program-transform-nam=* |
--program-transform-na=* \
1222 |
--program-transform-n=* |
--program-transform-=* \
1223 |
--program-transform=* |
--program-transfor=* \
1224 |
--program-transfo=* |
--program-transf=* \
1225 |
--program-trans=* |
--program-tran=* \
1226 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1227 program_transform_name
=$ac_optarg ;;
1229 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1231 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1232 pdfdir
=$ac_optarg ;;
1234 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1236 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1239 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1240 |
-silent |
--silent |
--silen |
--sile |
--sil)
1243 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1245 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1247 sbindir
=$ac_optarg ;;
1249 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1250 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1251 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1253 ac_prev
=sharedstatedir
;;
1254 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1255 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1256 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1258 sharedstatedir
=$ac_optarg ;;
1260 -site |
--site |
--sit)
1262 -site=* |
--site=* |
--sit=*)
1265 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1267 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1268 srcdir
=$ac_optarg ;;
1270 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1271 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1272 ac_prev
=sysconfdir
;;
1273 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1274 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1275 sysconfdir
=$ac_optarg ;;
1277 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1278 ac_prev
=target_alias
;;
1279 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1280 target_alias
=$ac_optarg ;;
1282 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1285 -version |
--version |
--versio |
--versi |
--vers |
-V)
1286 ac_init_version
=: ;;
1289 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1292 as_fn_error
"invalid package name: $ac_useropt"
1293 ac_useropt_orig
=$ac_useropt
1294 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1300 ac_unrecognized_sep
=', ';;
1302 eval with_
$ac_useropt=\
$ac_optarg ;;
1304 -without-* |
--without-*)
1305 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1308 as_fn_error
"invalid package name: $ac_useropt"
1309 ac_useropt_orig
=$ac_useropt
1310 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1315 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1316 ac_unrecognized_sep
=', ';;
1318 eval with_
$ac_useropt=no
;;
1321 # Obsolete; use --with-x.
1324 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1325 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1326 ac_prev
=x_includes
;;
1327 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1328 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1329 x_includes
=$ac_optarg ;;
1331 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1332 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1333 ac_prev
=x_libraries
;;
1334 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1335 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1336 x_libraries
=$ac_optarg ;;
1338 -*) as_fn_error
"unrecognized option: \`$ac_option'
1339 Try \`$0 --help' for more information."
1343 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1344 # Reject names that are not valid shell variable names.
1345 case $ac_envvar in #(
1346 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1347 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1349 eval $ac_envvar=\
$ac_optarg
1350 export $ac_envvar ;;
1353 # FIXME: should be removed in autoconf 3.0.
1354 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1355 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1356 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1357 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1363 if test -n "$ac_prev"; then
1364 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1365 as_fn_error
"missing argument to $ac_option"
1368 if test -n "$ac_unrecognized_opts"; then
1369 case $enable_option_checking in
1371 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1372 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376 # Check all directory arguments for consistency.
1377 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1378 datadir sysconfdir sharedstatedir localstatedir includedir \
1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1380 libdir localedir mandir
1382 eval ac_val
=\$
$ac_var
1383 # Remove trailing slashes.
1386 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1387 eval $ac_var=\
$ac_val;;
1389 # Be sure to have absolute directory names.
1391 [\\/$
]* | ?
:[\\/]* ) continue;;
1392 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1394 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1397 # There might be people who depend on the old broken behavior: `$host'
1398 # used to hold the argument of --host etc.
1399 # FIXME: To remove some day.
1402 target
=$target_alias
1404 # FIXME: To remove some day.
1405 if test "x$host_alias" != x
; then
1406 if test "x$build_alias" = x
; then
1407 cross_compiling
=maybe
1408 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1409 If a cross compiler is detected then cross compile mode will be used." >&2
1410 elif test "x$build_alias" != "x$host_alias"; then
1416 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1418 test "$silent" = yes && exec 6>/dev
/null
1421 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1422 ac_ls_di
=`ls -di .` &&
1423 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1424 as_fn_error
"working directory cannot be determined"
1425 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1426 as_fn_error
"pwd does not report name of working directory"
1429 # Find the source files, if location was not specified.
1430 if test -z "$srcdir"; then
1431 ac_srcdir_defaulted
=yes
1432 # Try the directory containing this script, then the parent directory.
1433 ac_confdir
=`$as_dirname -- "$as_myself" ||
1434 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435 X"$as_myself" : 'X\(//\)[^/]' \| \
1436 X"$as_myself" : 'X\(//\)$' \| \
1437 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1438 $as_echo X"$as_myself" |
1439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1461 ac_srcdir_defaulted
=no
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1465 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1467 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1479 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 for ac_var
in $ac_precious_vars; do
1482 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1484 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1489 # Report the --help message.
1491 if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1495 \`configure' configures this package to adapt to many kinds of systems.
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE. See below for descriptions of some of the useful variables.
1502 Defaults for the options are specified in brackets.
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515 Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1526 For better control, use the options below.
1528 Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1558 --build=BUILD configure
for building on BUILD
[guessed
]
1559 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1560 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1564 if test -n "$ac_init_help"; then
1569 --disable-option-checking ignore unrecognized
--enable/--with options
1570 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1571 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1572 --enable-generated-files-in-srcdir
1573 put copies of generated files
in source dir intended
1574 for creating
source tarballs
for users without
1575 texinfo bison or flex
1576 --disable-largefile omit support
for large files
1577 --disable-build-format-warnings
1578 don
't use -Wformat while building GCC
1579 --enable-werror-always enable -Werror despite compiler version
1580 --enable-checking[=LIST]
1581 enable expensive run-time checks. With LIST, enable
1582 only specific categories of checks. Categories are:
1583 yes,no,all,none,release. Flags are:
1584 assert,df,fold,gc,gcac,gimple,misc,
1585 rtlflag,rtl,runtime,tree,valgrind,types
1586 --enable-coverage[=LEVEL]
1587 enable compiler's code coverage collection. Use to
1588 measure compiler performance and
locate unused parts
1589 of the compiler. With LEVEL
, specify optimization.
1590 Values are opt
, noopt
, default is noopt
1591 --enable-gather-detailed-mem-stats
1592 enable detailed memory allocation stats gathering
1593 --enable-valgrind-annotations
1594 enable valgrind runtime interaction
1595 --enable-multilib enable library support
for multiple ABIs
1596 --enable-multiarch enable support
for multiarch paths
1597 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1598 --enable-decimal-float={no
,yes,bid
,dpd
}
1599 enable decimal float extension to C. Selecting
'bid'
1600 or
'dpd' choses
which decimal floating point format
1602 --enable-fixed-point enable fixed-point arithmetic extension to C
1603 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1605 --enable-tls enable or disable generation of tls code overriding
1606 the assembler check
for tls support
1607 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1608 GNU Objective-C runtime
1609 --disable-shared don't provide a shared libgcc
1610 --enable-languages=LIST specify
which front-ends to build
1611 --disable-rpath do not hardcode runtime library paths
1612 --enable-sjlj-exceptions
1613 arrange to use setjmp
/longjmp exception handling
1614 --enable-secureplt enable -msecure-plt by default
for PowerPC
1615 --enable-leading-mingw64-underscores
1616 enable leading underscores on
64 bit mingw targets
1617 --enable-cld enable -mcld by default
for 32bit x86
1618 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1620 --disable-win32-registry
1621 disable lookup of installation paths
in the Registry
1623 --enable-win32-registry enable registry lookup
(default
)
1624 --enable-win32-registry=KEY
1625 use KEY instead of GCC version as the last portion
1627 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1628 --enable-static[=PKGS
] build static libraries
[default
=yes]
1629 --enable-fast-install[=PKGS
]
1630 optimize
for fast installation
[default
=yes]
1631 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1632 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1633 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1634 --enable-gnu-indirect-function
1635 enable the use of the @gnu_indirect_function to
1637 --enable-initfini-array use .init_array
/.fini_array sections
1638 --enable-comdat enable COMDAT group support
1640 --enable-fix-cortex-a53-835769
1641 enable workaround
for AArch64 Cortex-A53 erratum
1643 --disable-fix-cortex-a53-835769
1644 disable workaround
for AArch64 Cortex-A53 erratum
1647 --enable-gnu-unique-object
1648 enable the use of the @gnu_unique_object ELF
1649 extension on glibc systems
1650 --enable-linker-build-id
1651 compiler will always pass
--build-id to linker
1652 --enable-maintainer-mode
1653 enable make rules and dependencies not useful
(and
1654 sometimes confusing
) to the casual installer
1655 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1656 thrashing on the build machine
1657 --enable-version-specific-runtime-libs
1658 specify that runtime libraries should be installed
1659 in a compiler-specific directory
1660 --enable-plugin enable plugin support
1661 --enable-host-shared build
host code as shared libraries
1662 --disable-libquadmath-support
1663 disable libquadmath support
for Fortran
1666 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1667 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1668 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1669 --with-local-prefix=DIR specifies directory to put
local include
1670 --with-gxx-include-dir=DIR
1671 specifies directory to put g
++ header files
1672 --with-cpp-install-dir=DIR
1673 install the user visible C preprocessor
in DIR
1674 (relative to PREFIX
) as well as PREFIX
/bin
1675 --with-gnu-ld arrange to work with GNU ld
1676 --with-ld arrange to use the specified ld
(full pathname
)
1677 --with-demangler-in-ld try to use demangler
in GNU ld
1678 --with-gnu-as arrange to work with GNU as
1679 --with-as arrange to use the specified as
(full pathname
)
1680 --with-stabs arrange to use stabs instead of
host debug format
1681 --with-dwarf2 force the default debug format to be DWARF
2
1682 --with-native-system-header-dir=dir
1683 use dir as the directory to
look for standard
1684 system header files
in. Defaults to
/usr
/include.
1685 --with-build-sysroot=sysroot
1686 use sysroot as the system root during the build
1687 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1688 --with-specs=SPECS add SPECS to driver command-line processing
1689 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1690 --with-bugurl=URL Direct users to URL to report a bug
1691 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1692 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1693 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1694 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1695 --with-pic try to use only PIC/non-PIC objects [default=use
1697 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1698 --with-plugin-ld=[ARG] specify the plugin linker
1699 --with-glibc-version=M.N
1700 assume GCC used with glibc version M.N or later
1701 --with-long-double-128 use 128-bit long double by default
1702 --with-gc={page,zone} this option is not supported anymore. It used to
1703 choose the garbage collection mechanism to use with
1705 --with-system-zlib use installed libz
1706 --with-linker-hash-style={sysv,gnu,both}
1707 specify the linker hash style
1709 Some influential environment variables:
1710 CC C compiler command
1711 CFLAGS C compiler flags
1712 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1713 nonstandard directory <lib dir>
1714 LIBS libraries to pass to the linker, e.g. -l<library>
1715 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1716 you have headers in a nonstandard directory <include dir>
1717 CXX C++ compiler command
1718 CXXFLAGS C++ compiler flags
1720 CXXCPP C++ preprocessor
1721 GMPLIBS How to link GMP
1722 GMPINC How to find GMP include files
1723 ISLLIBS How to link ISL
1724 ISLINC How to find ISL include files
1726 Use these variables to override the choices made by `configure' or to
help
1727 it to
find libraries and programs with nonstandard names
/locations.
1729 Report bugs to the package provider.
1734 if test "$ac_init_help" = "recursive"; then
1735 # If there are subdirs, report their specific --help.
1736 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1737 test -d "$ac_dir" ||
1738 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1743 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1745 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1746 # A ".." for each directory in $ac_dir_suffix.
1747 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1748 case $ac_top_builddir_sub in
1749 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1750 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1753 ac_abs_top_builddir
=$ac_pwd
1754 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir
=$ac_top_build_prefix
1759 .
) # We are building in place.
1761 ac_top_srcdir
=$ac_top_builddir_sub
1762 ac_abs_top_srcdir
=$ac_pwd ;;
1763 [\\/]* | ?
:[\\/]* ) # Absolute name.
1764 ac_srcdir
=$srcdir$ac_dir_suffix;
1765 ac_top_srcdir
=$srcdir
1766 ac_abs_top_srcdir
=$srcdir ;;
1768 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1770 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1772 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1774 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1775 # Check for guested configure.
1776 if test -f "$ac_srcdir/configure.gnu"; then
1778 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779 elif test -f "$ac_srcdir/configure"; then
1781 $SHELL "$ac_srcdir/configure" --help=recursive
1783 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1785 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1793 generated by GNU Autoconf
2.64
1795 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1796 This configure
script is free software
; the Free Software Foundation
1797 gives unlimited permission to copy
, distribute and modify it.
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile
()
1811 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1812 rm -f conftest.
$ac_objext
1813 if { { ac_try
="$ac_compile"
1815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 } # ac_fn_c_try_compile
1844 # ac_fn_cxx_try_compile LINENO
1845 # ----------------------------
1846 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_cxx_try_compile ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext
1851 if { { ac_try="$ac_compile"
1853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1854 *) ac_try_echo
=$ac_try;;
1856 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_compile") 2>conftest.err
1860 if test -s conftest.err
; then
1861 grep -v '^ *+' conftest.err
>conftest.er1
1862 cat conftest.er1
>&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_cxx_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest.
$ac_objext; then :
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.
$ac_ext >&5
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1880 } # ac_fn_cxx_try_compile
1882 # ac_fn_c_try_cpp LINENO
1883 # ----------------------
1884 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1888 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } >/dev/null && {
1904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1905 test ! -s conftest.err
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1996 eval "$3=\$ac_header_compiler"
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_try_run LINENO
2007 # ----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2009 # that executables *can* be run.
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if { { ac_try="$ac_link"
2015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2016 *) ac_try_echo
=$ac_try;;
2018 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>&5
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2024 { { case "(($ac_try" in
2025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_try") 2>&5
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; }; }; then :
2036 $as_echo "$as_me: program exited with status $ac_status" >&5
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2040 ac_retval=$ac_status
2042 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2049 # -------------------------------------------------------
2050 # Tests whether HEADER exists and can be compiled using the include files in
2051 # INCLUDES, setting the cache variable VAR accordingly.
2052 ac_fn_c_check_header_compile ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2065 if ac_fn_c_try_compile "$LINENO"; then :
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 } # ac_fn_c_check_header_compile
2079 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2080 # --------------------------------------------
2081 # Tries to find the compile-time value of EXPR in a program that includes
2082 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2084 ac_fn_c_compute_int ()
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 if test "$cross_compiling" = yes; then
2088 # Depending upon the size, compute the lo and hi bounds.
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) >= 0)];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_hi=$ac_mid; break
2121 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2122 if test $ac_lo -le $ac_mid; then
2126 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2137 static int test_array [1 - 2 * !(($2) < 0)];
2144 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_lo=$ac_mid; break
2163 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2164 if test $ac_mid -le $ac_hi; then
2168 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 # Binary search between lo and hi bounds.
2179 while test "x$ac_lo" != "x$ac_hi"; do
2180 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2194 if ac_fn_c_try_compile "$LINENO"; then :
2197 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2209 static long int longval () { return $2; }
2210 static unsigned long int ulongval () { return $2; }
2217 FILE *f = fopen ("conftest.val", "w");
2222 long int i = longval ();
2225 fprintf (f, "%ld", i);
2229 unsigned long int i = ulongval ();
2232 fprintf (f, "%lu", i);
2234 /* Do not output a trailing newline, as this causes \r\n confusion
2235 on some platforms. */
2236 return ferror (f) || fclose (f) != 0;
2242 if ac_fn_c_try_run "$LINENO"; then :
2243 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2248 conftest.$ac_objext conftest.beam conftest.$ac_ext
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 } # ac_fn_c_compute_int
2257 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2258 # -------------------------------------------
2259 # Tests whether TYPE exists after having included INCLUDES, setting cache
2260 # variable VAR accordingly.
2261 ac_fn_c_check_type ()
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2267 $as_echo_n "(cached) " >&6
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2295 if ac_fn_c_try_compile "$LINENO"; then :
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309 } # ac_fn_c_check_type
2311 # ac_fn_c_find_intX_t LINENO BITS VAR
2312 # -----------------------------------
2313 # Finds a signed integer type with width BITS, setting cache variable VAR
2315 ac_fn_c_find_intX_t ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2319 $as_echo_n "checking for int$2_t... " >&6; }
2320 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2321 $as_echo_n "(cached) " >&6
2324 for ac_type in int$2_t 'int' 'long int' \
2325 'long long int' 'short int' 'signed char'; do
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $ac_includes_default
2332 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2339 if ac_fn_c_try_compile "$LINENO"; then :
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 $ac_includes_default
2346 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2347 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2354 if ac_fn_c_try_compile "$LINENO"; then :
2361 eval "$3=\$ac_type" ;;
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 if test "x$as_val" = x""no; then :
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_c_find_intX_t
2382 # ac_fn_c_try_link LINENO
2383 # -----------------------
2384 # Try to link conftest.$ac_ext, and return whether this succeeded.
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 rm -f conftest.$ac_objext conftest$ac_exeext
2389 if { { ac_try="$ac_link"
2391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2392 *) ac_try_echo
=$ac_try;;
2394 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396 (eval "$ac_link") 2>conftest.err
2398 if test -s conftest.err
; then
2399 grep -v '^ *+' conftest.err
>conftest.er1
2400 cat conftest.er1
>&5
2401 mv -f conftest.er1 conftest.err
2403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404 test $ac_status = 0; } && {
2405 test -z "$ac_c_werror_flag" ||
2406 test ! -s conftest.err
2407 } && test -s conftest
$ac_exeext && {
2408 test "$cross_compiling" = yes ||
2409 $as_test_x conftest
$ac_exeext
2413 $as_echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.
$ac_ext >&5
2418 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2419 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2420 # interfere with the next link command; also delete a directory that is
2421 # left behind by Apple's compiler. We do this before executing the actions.
2422 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2423 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2426 } # ac_fn_c_try_link
2428 # ac_fn_c_find_uintX_t LINENO BITS VAR
2429 # ------------------------------------
2430 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2432 ac_fn_c_find_uintX_t
()
2434 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2436 $as_echo_n "checking for uint$2_t... " >&6; }
2437 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2438 $as_echo_n "(cached) " >&6
2441 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2442 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 $ac_includes_default
2449 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2456 if ac_fn_c_try_compile
"$LINENO"; then :
2461 eval "$3=\$ac_type" ;;
2464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2466 if test "x$as_val" = x
""no
; then :
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2478 } # ac_fn_c_find_uintX_t
2480 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2481 # ----------------------------------------------
2482 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2483 ac_fn_c_check_header_preproc
()
2485 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2487 $as_echo_n "checking for $2... " >&6; }
2488 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2489 $as_echo_n "(cached) " >&6
2491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2495 if ac_fn_c_try_cpp
"$LINENO"; then :
2500 rm -f conftest.err conftest.
$ac_ext
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2504 $as_echo "$ac_res" >&6; }
2505 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2507 } # ac_fn_c_check_header_preproc
2509 # ac_fn_cxx_try_cpp LINENO
2510 # ------------------------
2511 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2512 ac_fn_cxx_try_cpp
()
2514 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2515 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2521 $as_echo "$ac_try_echo"; } >&5
2522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2524 if test -s conftest.err; then
2525 grep -v '^ *+' conftest.err >conftest.er1
2526 cat conftest.er1 >&5
2527 mv -f conftest.er1 conftest.err
2529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2530 test $ac_status = 0; } >/dev/null && {
2531 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2532 test ! -s conftest.err
2536 $as_echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2544 } # ac_fn_cxx_try_cpp
2546 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2547 # ------------------------------------------------
2548 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2549 ac_fn_cxx_check_header_preproc ()
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 $as_echo_n "checking for $2... " >&6; }
2554 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2555 $as_echo_n "(cached) " >&6
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2561 if ac_fn_cxx_try_cpp "$LINENO"; then :
2566 rm -f conftest.err conftest.$ac_ext
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 $as_echo "$ac_res" >&6; }
2571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2573 } # ac_fn_cxx_check_header_preproc
2575 # ac_fn_c_check_func LINENO FUNC VAR
2576 # ----------------------------------
2577 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2578 ac_fn_c_check_func ()
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2582 $as_echo_n "checking for $2... " >&6; }
2583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2584 $as_echo_n "(cached) " >&6
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2588 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2590 #define $2 innocuous_$2
2592 /* System header to define __stub macros and hopefully few prototypes,
2593 which can conflict with char $2 (); below.
2594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2595 <limits.h> exists even on freestanding compilers. */
2598 # include <limits.h>
2600 # include <assert.h>
2605 /* Override any GCC internal prototype to avoid an error.
2606 Use char because int might match the return type of a GCC
2607 builtin and then its argument prototype would still apply. */
2612 /* The GNU C library defines this for functions which it implements
2613 to always fail with ENOSYS. Some functions are actually named
2614 something starting with __ and the normal name is an alias. */
2615 #if defined __stub_$2 || defined __stub___$2
2627 if ac_fn_c_try_link "$LINENO"; then :
2632 rm -f core conftest.err conftest.$ac_objext \
2633 conftest$ac_exeext conftest.$ac_ext
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637 $as_echo "$ac_res" >&6; }
2638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2640 } # ac_fn_c_check_func
2642 # ac_fn_cxx_try_link LINENO
2643 # -------------------------
2644 # Try to link conftest.$ac_ext, and return whether this succeeded.
2645 ac_fn_cxx_try_link ()
2647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2648 rm -f conftest.$ac_objext conftest$ac_exeext
2649 if { { ac_try="$ac_link"
2651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2652 *) ac_try_echo
=$ac_try;;
2654 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2655 $as_echo "$ac_try_echo"; } >&5
2656 (eval "$ac_link") 2>conftest.err
2658 if test -s conftest.err
; then
2659 grep -v '^ *+' conftest.err
>conftest.er1
2660 cat conftest.er1
>&5
2661 mv -f conftest.er1 conftest.err
2663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2664 test $ac_status = 0; } && {
2665 test -z "$ac_cxx_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest
$ac_exeext && {
2668 test "$cross_compiling" = yes ||
2669 $as_test_x conftest
$ac_exeext
2673 $as_echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.
$ac_ext >&5
2678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2680 # interfere with the next link command; also delete a directory that is
2681 # left behind by Apple's compiler. We do this before executing the actions.
2682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2683 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2686 } # ac_fn_cxx_try_link
2687 cat >config.log
<<_ACEOF
2688 This file contains any messages produced by compilers while
2689 running configure, to aid debugging if configure makes a mistake.
2691 It was created by $as_me, which was
2692 generated by GNU Autoconf 2.64. Invocation command line was
2704 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2705 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2706 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2707 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2708 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2710 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2711 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2713 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2714 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2715 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2716 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2717 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2718 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2719 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir
=.
2728 $as_echo "PATH: $as_dir"
2744 # Keep a trace of the command line.
2745 # Strip out --no-create and --no-recursion so they do not pile up.
2746 # Strip out --silent because we don't want to record it for future runs.
2747 # Also quote any args containing shell meta-characters.
2748 # Make two passes to allow for proper duplicate-argument suppression.
2752 ac_must_keep_next
=false
2758 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2759 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2760 |
-silent |
--silent |
--silen |
--sile |
--sil)
2763 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2766 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2768 as_fn_append ac_configure_args1
" '$ac_arg'"
2769 if test $ac_must_keep_next = true
; then
2770 ac_must_keep_next
=false
# Got value, back to normal.
2773 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2774 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2775 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2776 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2777 case "$ac_configure_args0 " in
2778 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2781 -* ) ac_must_keep_next
=true
;;
2784 as_fn_append ac_configure_args
" '$ac_arg'"
2789 { ac_configure_args0
=; unset ac_configure_args0
;}
2790 { ac_configure_args1
=; unset ac_configure_args1
;}
2792 # When interrupted or exit'd, cleanup temporary files, and complete
2793 # config.log. We remove comments because anyway the quotes in there
2794 # would cause problems or look ugly.
2795 # WARNING: Use '\'' to represent an apostrophe within the trap.
2796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2797 trap 'exit_status=$?
2798 # Save into config.log some information that might help in debugging.
2803 ## ---------------- ##
2804 ## Cache variables. ##
2805 ## ---------------- ##
2808 # The following way of writing the cache mishandles newlines in values,
2810 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2811 eval ac_val=\$$ac_var
2815 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2819 _ | IFS | as_nl) ;; #(
2820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2821 *) { eval $ac_var=; unset $ac_var;} ;;
2826 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2827 *${as_nl}ac_space=\ *)
2829 "s/'\''/'\''\\\\'\'''\''/g;
2830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2841 ## ----------------- ##
2842 ## Output variables. ##
2843 ## ----------------- ##
2846 for ac_var in $ac_subst_vars
2848 eval ac_val=\$$ac_var
2850 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2852 $as_echo "$ac_var='\''$ac_val'\''"
2856 if test -n "$ac_subst_files"; then
2858 ## ------------------- ##
2859 ## File substitutions. ##
2860 ## ------------------- ##
2863 for ac_var
in $ac_subst_files
2865 eval ac_val
=\$
$ac_var
2867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2869 $as_echo "$ac_var='\''$ac_val'\''"
2874 if test -s confdefs.h; then
2884 test "$ac_signal" != 0 &&
2885 $as_echo "$as_me: caught signal $ac_signal"
2886 $as_echo "$as_me: exit $exit_status"
2888 rm -f core *.core core.conftest.* &&
2889 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2892 for ac_signal
in 1 2 13 15; do
2893 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2898 rm -f -r conftest
* confdefs.h
2900 $as_echo "/* confdefs.h */" > confdefs.h
2902 # Predefined preprocessor variables.
2904 cat >>confdefs.h
<<_ACEOF
2905 #define PACKAGE_NAME "$PACKAGE_NAME"
2908 cat >>confdefs.h
<<_ACEOF
2909 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2912 cat >>confdefs.h
<<_ACEOF
2913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2916 cat >>confdefs.h
<<_ACEOF
2917 #define PACKAGE_STRING "$PACKAGE_STRING"
2920 cat >>confdefs.h
<<_ACEOF
2921 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2924 cat >>confdefs.h
<<_ACEOF
2925 #define PACKAGE_URL "$PACKAGE_URL"
2929 # Let the site file select an alternate cache file if it wants to.
2930 # Prefer an explicitly selected file to automatically selected ones.
2933 if test -n "$CONFIG_SITE"; then
2934 ac_site_file1
=$CONFIG_SITE
2935 elif test "x$prefix" != xNONE
; then
2936 ac_site_file1
=$prefix/share
/config.site
2937 ac_site_file2
=$prefix/etc
/config.site
2939 ac_site_file1
=$ac_default_prefix/share
/config.site
2940 ac_site_file2
=$ac_default_prefix/etc
/config.site
2942 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2944 test "x$ac_site_file" = xNONE
&& continue
2945 if test -r "$ac_site_file"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2947 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2948 sed 's/^/| /' "$ac_site_file" >&5
2953 if test -r "$cache_file"; then
2954 # Some versions of bash will fail to source /dev/null (special
2955 # files actually), so we avoid doing that.
2956 if test -f "$cache_file"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2958 $as_echo "$as_me: loading cache $cache_file" >&6;}
2960 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2961 *) .
"./$cache_file";;
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2966 $as_echo "$as_me: creating cache $cache_file" >&6;}
2970 # Check that the precious variables saved in the cache have kept the same
2972 ac_cache_corrupted
=false
2973 for ac_var
in $ac_precious_vars; do
2974 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2975 eval ac_new_set
=\
$ac_env_${ac_var}_set
2976 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2977 eval ac_new_val
=\
$ac_env_${ac_var}_value
2978 case $ac_old_set,$ac_new_set in
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2982 ac_cache_corrupted
=: ;;
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2985 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2986 ac_cache_corrupted
=: ;;
2989 if test "x$ac_old_val" != "x$ac_new_val"; then
2990 # differences in whitespace do not lead to failure.
2991 ac_old_val_w
=`echo x $ac_old_val`
2992 ac_new_val_w
=`echo x $ac_new_val`
2993 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2995 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2996 ac_cache_corrupted
=:
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2999 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3000 eval $ac_var=\
$ac_old_val
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3003 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3005 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3008 # Pass precious variables to config.status.
3009 if test "$ac_new_set" = set; then
3011 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3012 *) ac_arg
=$ac_var=$ac_new_val ;;
3014 case " $ac_configure_args " in
3015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3016 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3020 if $ac_cache_corrupted; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3024 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3025 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3027 ## -------------------- ##
3028 ## Main body of script. ##
3029 ## -------------------- ##
3032 ac_cpp
='$CPP $CPPFLAGS'
3033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3042 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3045 gcc_version
=`cat $srcdir/BASE-VER`
3047 # Determine the host, build, and target systems
3049 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3050 for ac_t
in install-sh
install.sh shtool
; do
3051 if test -f "$ac_dir/$ac_t"; then
3053 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3058 if test -z "$ac_aux_dir"; then
3059 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3062 # These three variables are undocumented and unsupported,
3063 # and are intended to be withdrawn in a future Autoconf release.
3064 # They can cause serious problems if a builder's source tree is in a directory
3065 # whose full name contains unusual characters.
3066 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3067 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3068 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3071 # Make sure we can run config.sub.
3072 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3073 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3076 $as_echo_n "checking build system type... " >&6; }
3077 if test "${ac_cv_build+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 ac_build_alias
=$build_alias
3081 test "x$ac_build_alias" = x
&&
3082 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3083 test "x$ac_build_alias" = x
&&
3084 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3085 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3086 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3090 $as_echo "$ac_cv_build" >&6; }
3091 case $ac_cv_build in
3093 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3096 ac_save_IFS
=$IFS; IFS
='-'
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3106 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3110 $as_echo_n "checking host system type... " >&6; }
3111 if test "${ac_cv_host+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3114 if test "x$host_alias" = x
; then
3115 ac_cv_host
=$ac_cv_build
3117 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3118 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3123 $as_echo "$ac_cv_host" >&6; }
3126 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3129 ac_save_IFS
=$IFS; IFS
='-'
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3139 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3143 $as_echo_n "checking target system type... " >&6; }
3144 if test "${ac_cv_target+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3147 if test "x$target_alias" = x
; then
3148 ac_cv_target
=$ac_cv_host
3150 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3151 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3156 $as_echo "$ac_cv_target" >&6; }
3157 case $ac_cv_target in
3159 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3161 target
=$ac_cv_target
3162 ac_save_IFS
=$IFS; IFS
='-'
3168 # Remember, the first character of IFS is used to create $*,
3169 # except with old shells:
3172 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3175 # The aliases save the names the user supplied, while $host etc.
3176 # will get canonicalized.
3177 test -n "$target_alias" &&
3178 test "$program_prefix$program_suffix$program_transform_name" = \
3180 program_prefix
=${target_alias}-
3182 # Determine the noncanonical target name, for directory use.
3183 case ${build_alias} in
3184 "") build_noncanonical
=${build} ;;
3185 *) build_noncanonical
=${build_alias} ;;
3188 case ${host_alias} in
3189 "") host_noncanonical
=${build_noncanonical} ;;
3190 *) host_noncanonical
=${host_alias} ;;
3193 case ${target_alias} in
3194 "") target_noncanonical
=${host_noncanonical} ;;
3195 *) target_noncanonical
=${target_alias} ;;
3201 # Determine the target- and build-specific subdirectories
3203 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3204 # have matching libraries, they should use host libraries: Makefile.tpl
3205 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3206 # However, they still use the build modules, because the corresponding
3207 # host modules (e.g. bison) are only built for the host when bootstrap
3209 # - build_subdir is where we find build modules, and never changes.
3210 # - build_libsubdir is where we find build libraries, and can be overridden.
3212 # Prefix 'build-' so this never conflicts with target_subdir.
3213 build_subdir
="build-${build_noncanonical}"
3215 # Check whether --with-build-libsubdir was given.
3216 if test "${with_build_libsubdir+set}" = set; then :
3217 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3219 build_libsubdir
="$build_subdir"
3222 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3223 if ( test $srcdir = .
&& test -d gcc
) \
3224 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3225 host_subdir
="host-${host_noncanonical}"
3230 target_subdir
=${target_noncanonical}
3233 # Set program_transform_name
3234 test "$program_prefix" != NONE
&&
3235 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3236 # Use a double $ so make ignores it.
3237 test "$program_suffix" != NONE
&&
3238 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3239 # Double any \ or $.
3240 # By default was `s,x,x', remove it if useless.
3241 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3242 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3245 # Check for bogus environment variables.
3246 # Test if LIBRARY_PATH contains the notation for the current directory
3247 # since this would lead to problems installing/building glibc.
3248 # LIBRARY_PATH contains the current directory if one of the following
3250 # - one of the terminals (":" and ";") is the first or last sign
3251 # - two terminals occur directly after each other
3252 # - the path contains an element with a dot in it
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3254 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3255 case ${LIBRARY_PATH} in
3256 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3257 library_path_setting
="contains current directory"
3260 library_path_setting
="ok"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3264 $as_echo "$library_path_setting" >&6; }
3265 if test "$library_path_setting" != "ok"; then
3267 *** LIBRARY_PATH shouldn't contain the current directory when
3268 *** building gcc. Please change the environment variable
3269 *** and run configure again." "$LINENO" 5
3272 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3273 # since this would lead to problems installing/building glibc.
3274 # GCC_EXEC_PREFIX contains the current directory if one of the following
3276 # - one of the terminals (":" and ";") is the first or last sign
3277 # - two terminals occur directly after each other
3278 # - the path contains an element with a dot in it
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3280 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3281 case ${GCC_EXEC_PREFIX} in
3282 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3283 gcc_exec_prefix_setting
="contains current directory"
3286 gcc_exec_prefix_setting
="ok"
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3290 $as_echo "$gcc_exec_prefix_setting" >&6; }
3291 if test "$gcc_exec_prefix_setting" != "ok"; then
3293 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3294 *** building gcc. Please change the environment variable
3295 *** and run configure again." "$LINENO" 5
3302 # Specify the local prefix
3305 # Check whether --with-local-prefix was given.
3306 if test "${with_local_prefix+set}" = set; then :
3307 withval
=$with_local_prefix; case "${withval}" in
3308 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3310 *) local_prefix
=$with_local_prefix ;;
3315 # Default local prefix if it is empty
3316 if test x
$local_prefix = x
; then
3317 local_prefix
=/usr
/local
3320 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3321 # passed in by the toplevel make and thus we'd get different behavior
3322 # depending on where we built the sources.
3323 gcc_gxx_include_dir
=
3324 # Specify the g++ header file directory
3326 # Check whether --with-gxx-include-dir was given.
3327 if test "${with_gxx_include_dir+set}" = set; then :
3328 withval
=$with_gxx_include_dir; case "${withval}" in
3329 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3331 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3336 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3337 if test x
${gcc_gxx_include_dir} = x
; then
3338 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3339 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3341 libstdcxx_incdir
='include/c++/$(version)'
3342 if test x
$host != x
$target; then
3343 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3345 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3349 gcc_gxx_include_dir_add_sysroot
=0
3350 if test "${with_sysroot+set}" = set; then
3351 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3352 if test "${gcc_gxx_without_sysroot}"; then
3353 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3354 gcc_gxx_include_dir_add_sysroot
=1
3359 # Check whether --with-cpp_install_dir was given.
3360 if test "${with_cpp_install_dir+set}" = set; then :
3361 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3362 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3363 elif test x
$withval != xno
; then
3364 cpp_install_dir
=$withval
3369 # We would like to our source tree to be readonly. However when releases or
3370 # pre-releases are generated, the flex/bison generated files as well as the
3371 # various formats of manuals need to be included along with the rest of the
3372 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3376 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3377 # Check whether --enable-generated-files-in-srcdir was given.
3378 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3379 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3381 generated_files_in_srcdir
=no
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3386 $as_echo "$generated_files_in_srcdir" >&6; }
3388 if test "$generated_files_in_srcdir" = "yes"; then
3395 # -------------------
3396 # Find default linker
3397 # -------------------
3401 # Check whether --with-gnu-ld was given.
3402 if test "${with_gnu_ld+set}" = set; then :
3403 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3409 # With pre-defined ld
3411 # Check whether --with-ld was given.
3412 if test "${with_ld+set}" = set; then :
3413 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3416 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3417 if test ! -x "$DEFAULT_LINKER"; then
3418 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3419 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3423 cat >>confdefs.h
<<_ACEOF
3424 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3430 $as_echo_n "checking whether a default linker was specified... " >&6; }
3431 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3432 if test x
"$gnu_ld_flag" = x
"no"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3434 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3437 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3444 # With demangler in GNU ld
3446 # Check whether --with-demangler-in-ld was given.
3447 if test "${with_demangler_in_ld+set}" = set; then :
3448 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3454 # ----------------------
3455 # Find default assembler
3456 # ----------------------
3460 # Check whether --with-gnu-as was given.
3461 if test "${with_gnu_as+set}" = set; then :
3462 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3469 # Check whether --with-as was given.
3470 if test "${with_as+set}" = set; then :
3471 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3474 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3475 if test ! -x "$DEFAULT_ASSEMBLER"; then
3476 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3477 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3481 cat >>confdefs.h
<<_ACEOF
3482 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3488 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3489 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3490 if test x
"$gas_flag" = x
"no"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3492 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3495 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3506 # If a non-executable a.out is present (e.g. created by GNU as above even if
3507 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3508 # file, even when creating an executable, so an execution test fails.
3509 # Remove possible default executable files to avoid this.
3511 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3512 # Autoconf includes it.
3513 rm -f a.out a.exe b.out
3515 # Find the native compiler
3517 ac_cpp
='$CPP $CPPFLAGS'
3518 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3523 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if test "${ac_cv_prog_CC+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3529 if test -n "$CC"; then
3530 ac_cv_prog_CC
="$CC" # Let the user override the test.
3532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3536 test -z "$as_dir" && as_dir
=.
3537 for ac_exec_ext
in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 if test -n "$CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552 $as_echo "$CC" >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3560 if test -z "$ac_cv_prog_CC"; then
3562 # Extract the first word of "gcc", so it can be a program name with args.
3563 set dummy gcc
; ac_word
=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3569 if test -n "$ac_ct_CC"; then
3570 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3576 test -z "$as_dir" && as_dir
=.
3577 for ac_exec_ext
in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 ac_cv_prog_ac_ct_CC
="gcc"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3590 if test -n "$ac_ct_CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3592 $as_echo "$ac_ct_CC" >&6; }
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3598 if test "x$ac_ct_CC" = x
; then
3601 case $cross_compiling:$ac_tool_warned in
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3605 ac_tool_warned
=yes ;;
3613 if test -z "$CC"; then
3614 if test -n "$ac_tool_prefix"; then
3615 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3616 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if test "${ac_cv_prog_CC+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC
="$CC" # Let the user override the test.
3625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir
=.
3630 for ac_exec_ext
in '' $ac_executable_extensions; do
3631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 if test -n "$CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3645 $as_echo "$CC" >&6; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3654 if test -z "$CC"; then
3655 # Extract the first word of "cc", so it can be a program name with args.
3656 set dummy cc
; ac_word
=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if test "${ac_cv_prog_CC+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3662 if test -n "$CC"; then
3663 ac_cv_prog_CC
="$CC" # Let the user override the test.
3666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir
=.
3671 for ac_exec_ext
in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3674 ac_prog_rejected
=yes
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 if test $ac_prog_rejected = yes; then
3686 # We found a bogon in the path, so make sure we never use it.
3687 set dummy
$ac_cv_prog_CC
3689 if test $# != 0; then
3690 # We chose a different compiler from the bogus one.
3691 # However, it has the same basename, so the bogon will be chosen
3692 # first if we set CC to just the basename; use the full file name.
3694 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3700 if test -n "$CC"; then
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3702 $as_echo "$CC" >&6; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3710 if test -z "$CC"; then
3711 if test -n "$ac_tool_prefix"; then
3712 for ac_prog
in cl.exe
3714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3715 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if test "${ac_cv_prog_CC+set}" = set; then :
3719 $as_echo_n "(cached) " >&6
3721 if test -n "$CC"; then
3722 ac_cv_prog_CC
="$CC" # Let the user override the test.
3724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3728 test -z "$as_dir" && as_dir
=.
3729 for ac_exec_ext
in '' $ac_executable_extensions; do
3730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3731 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 if test -n "$CC"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744 $as_echo "$CC" >&6; }
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3751 test -n "$CC" && break
3754 if test -z "$CC"; then
3756 for ac_prog
in cl.exe
3758 # Extract the first word of "$ac_prog", so it can be a program name with args.
3759 set dummy
$ac_prog; ac_word
=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3765 if test -n "$ac_ct_CC"; then
3766 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3772 test -z "$as_dir" && as_dir
=.
3773 for ac_exec_ext
in '' $ac_executable_extensions; do
3774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775 ac_cv_prog_ac_ct_CC
="$ac_prog"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3786 if test -n "$ac_ct_CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3788 $as_echo "$ac_ct_CC" >&6; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3795 test -n "$ac_ct_CC" && break
3798 if test "x$ac_ct_CC" = x
; then
3801 case $cross_compiling:$ac_tool_warned in
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805 ac_tool_warned
=yes ;;
3814 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error
"no acceptable C compiler found in \$PATH
3817 See \`config.log' for more details." "$LINENO" 5; }
3819 # Provide some information about the compiler.
3820 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3823 for ac_option
in --version -v -V -qversion; do
3824 { { ac_try
="$ac_compiler $ac_option >&5"
3826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3833 if test -s conftest.err; then
3835 ... rest of stderr output deleted ...
3836 10q' conftest.err >conftest.er1
3837 cat conftest.er1 >&5
3838 rm -f conftest.er1 conftest.err
3840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3855 ac_clean_files_save=$ac_clean_files
3856 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3857 # Try to create an executable without -o first, disregard a.out.
3858 # It will help us diagnose broken compilers, and finding out an intuition
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3861 $as_echo_n "checking for C compiler default output file name... " >&6; }
3862 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3864 # The possible output files:
3865 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3868 for ac_file in $ac_files
3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3872 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3877 if { { ac_try="$ac_link_default"
3879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3880 *) ac_try_echo
=$ac_try;;
3882 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_link_default") 2>&5
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }; then :
3888 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3889 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3890 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3891 # so that the user can short-circuit this test for compilers unknown to
3893 for ac_file
in $ac_files ''
3895 test -f "$ac_file" ||
continue
3897 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3900 # We found the default executable, but exeext='' is most
3904 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3906 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3908 # We set ac_cv_exeext here because the later test for it is not
3909 # safe: cross compilers may not add the suffix if given an `-o'
3910 # argument, so we may need to know it at that point already.
3911 # Even if this section looks crufty: it has the advantage of
3918 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3924 $as_echo "$ac_file" >&6; }
3925 if test -z "$ac_file"; then :
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.
$ac_ext >&5
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 { as_fn_set_status
77
3932 as_fn_error
"C compiler cannot create executables
3933 See \`config.log' for more details." "$LINENO" 5; }; }
3935 ac_exeext
=$ac_cv_exeext
3937 # Check that the compiler produces executables we can run. If not, either
3938 # the compiler is broken, or we cross compile.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3940 $as_echo_n "checking whether the C compiler works... " >&6; }
3941 # If not cross compiling, check that we can run a simple program.
3942 if test "$cross_compiling" != yes; then
3943 if { ac_try
='./$ac_file'
3944 { { case "(($ac_try" in
3945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 $as_echo "$ac_try_echo"; } >&5
3950 (eval "$ac_try") 2>&5
3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }; }; then
3956 if test "$cross_compiling" = maybe; then
3959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3961 as_fn_error "cannot run C compiled programs.
3962 If you meant to cross compile
, use \
`--host'.
3963 See \`config.log
' for more details." "$LINENO" 5; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3968 $as_echo "yes" >&6; }
3970 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3971 ac_clean_files=$ac_clean_files_save
3972 # Check that the compiler produces executables we can run. If not, either
3973 # the compiler is broken, or we cross compile.
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3975 $as_echo_n "checking whether we are cross compiling... " >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3977 $as_echo "$cross_compiling" >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3980 $as_echo_n "checking for suffix of executables... " >&6; }
3981 if { { ac_try="$ac_link"
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 $as_echo "$ac_try_echo"; } >&5
3988 (eval "$ac_link") 2>&5
3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991 test $ac_status = 0; }; then :
3992 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3993 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3994 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3996 for ac_file
in conftest.exe conftest conftest.
*; do
3997 test -f "$ac_file" ||
continue
3999 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4000 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4009 See \`config.log' for more details." "$LINENO" 5; }
4011 rm -f conftest
$ac_cv_exeext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4013 $as_echo "$ac_cv_exeext" >&6; }
4015 rm -f conftest.
$ac_ext
4016 EXEEXT
=$ac_cv_exeext
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4019 $as_echo_n "checking for suffix of object files... " >&6; }
4020 if test "${ac_cv_objext+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4034 rm -f conftest.o conftest.obj
4035 if { { ac_try
="$ac_compile"
4037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041 $as_echo "$ac_try_echo"; } >&5
4042 (eval "$ac_compile") 2>&5
4044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }; then :
4046 for ac_file in conftest.o conftest.obj conftest.*; do
4047 test -f "$ac_file" || continue;
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4055 $as_echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error "cannot compute suffix of object files
: cannot compile
4061 See \
`config.log' for more details." "$LINENO" 5; }
4063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4066 $as_echo "$ac_cv_objext" >&6; }
4067 OBJEXT=$ac_cv_objext
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4070 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4071 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4098 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4099 if test $ac_compiler_gnu = yes; then
4104 ac_test_CFLAGS=${CFLAGS+set}
4105 ac_save_CFLAGS=$CFLAGS
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4107 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4108 if test "${ac_cv_prog_cc_g+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4111 ac_save_c_werror_flag=$ac_c_werror_flag
4112 ac_c_werror_flag=yes
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4126 if ac_fn_c_try_compile "$LINENO"; then :
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4141 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_c_werror_flag=$ac_save_c_werror_flag
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4157 if ac_fn_c_try_compile "$LINENO"; then :
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 ac_c_werror_flag=$ac_save_c_werror_flag
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4168 $as_echo "$ac_cv_prog_cc_g" >&6; }
4169 if test "$ac_test_CFLAGS" = set; then
4170 CFLAGS=$ac_save_CFLAGS
4171 elif test $ac_cv_prog_cc_g = yes; then
4172 if test "$GCC" = yes; then
4178 if test "$GCC" = yes; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4185 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4186 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4189 ac_cv_prog_cc_c89=no
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4195 #include <sys/types.h>
4196 #include <sys/stat.h>
4197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4198 struct buf { int x; };
4199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4200 static char *e (p, i)
4206 static char *f (char * (*g) (char **, int), char **p, ...)
4211 s = g (p, va_arg (v,int));
4216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4217 function prototypes and stuff, but not '\xHH' hex character constants.
4218 These don't provoke an error unfortunately, instead are silently treated
4219 as 'x'. The following induces an error, until -std is added to get
4220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4221 array size at least. It's necessary to write '\x00'==0 to get something
4222 that's true only with -std. */
4223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4226 inside strings and character constants. */
4228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4230 int test (int i, double x);
4231 struct s1 {int (*f) (int a);};
4232 struct s2 {int (*f) (double a);};
4233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4247 CC="$ac_save_CC $ac_arg"
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_prog_cc_c89=$ac_arg
4251 rm -f core conftest.err conftest.$ac_objext
4252 test "x$ac_cv_prog_cc_c89" != "xno" && break
4254 rm -f conftest.$ac_ext
4259 case "x$ac_cv_prog_cc_c89" in
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262 $as_echo "none needed" >&6; } ;;
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4265 $as_echo "unsupported" >&6; } ;;
4267 CC="$CC $ac_cv_prog_cc_c89"
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4269 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4271 if test "x$ac_cv_prog_cc_c89" != xno; then :
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 ac_cpp='$CXXCPP $CPPFLAGS'
4283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4286 if test -z "$CXX"; then
4287 if test -n "$CCC"; then
4290 if test -n "$ac_tool_prefix"; then
4291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if test "${ac_cv_prog_CXX+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4300 if test -n "$CXX"; then
4301 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 if test -n "$CXX"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4323 $as_echo "$CXX" >&6; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4330 test -n "$CXX" && break
4333 if test -z "$CXX"; then
4335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4337 # Extract the first word of "$ac_prog", so it can be a program name with args.
4338 set dummy $ac_prog; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4344 if test -n "$ac_ct_CXX"; then
4345 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354 ac_cv_prog_ac_ct_CXX="$ac_prog"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4365 if test -n "$ac_ct_CXX"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4367 $as_echo "$ac_ct_CXX" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4374 test -n "$ac_ct_CXX" && break
4377 if test "x$ac_ct_CXX" = x; then
4380 case $cross_compiling:$ac_tool_warned in
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384 ac_tool_warned=yes ;;
4392 # Provide some information about the compiler.
4393 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4396 for ac_option in --version -v -V -qversion; do
4397 { { ac_try="$ac_compiler $ac_option >&5"
4399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4400 *) ac_try_echo
=$ac_try;;
4402 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 $as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4406 if test -s conftest.err
; then
4408 ... rest of stderr output deleted ...
4409 10q' conftest.err
>conftest.er1
4410 cat conftest.er1
>&5
4411 rm -f conftest.er1 conftest.err
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4418 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4419 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4436 if ac_fn_cxx_try_compile
"$LINENO"; then :
4441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4442 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4446 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4447 if test $ac_compiler_gnu = yes; then
4452 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4453 ac_save_CXXFLAGS
=$CXXFLAGS
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4455 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4456 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4459 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4460 ac_cxx_werror_flag
=yes
4463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4474 if ac_fn_cxx_try_compile
"$LINENO"; then :
4475 ac_cv_prog_cxx_g
=yes
4478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4489 if ac_fn_cxx_try_compile
"$LINENO"; then :
4492 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4505 if ac_fn_cxx_try_compile
"$LINENO"; then :
4506 ac_cv_prog_cxx_g
=yes
4508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4513 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4516 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4517 if test "$ac_test_CXXFLAGS" = set; then
4518 CXXFLAGS
=$ac_save_CXXFLAGS
4519 elif test $ac_cv_prog_cxx_g = yes; then
4520 if test "$GXX" = yes; then
4526 if test "$GXX" = yes; then
4533 ac_cpp
='$CPP $CPPFLAGS'
4534 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4541 if test -n "$ac_tool_prefix"; then
4542 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4543 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4549 if test -n "$GNATBIND"; then
4550 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4556 test -z "$as_dir" && as_dir
=.
4557 for ac_exec_ext
in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 GNATBIND
=$ac_cv_prog_GNATBIND
4570 if test -n "$GNATBIND"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4572 $as_echo "$GNATBIND" >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4580 if test -z "$ac_cv_prog_GNATBIND"; then
4581 ac_ct_GNATBIND
=$GNATBIND
4582 # Extract the first word of "gnatbind", so it can be a program name with args.
4583 set dummy gnatbind
; ac_word
=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4589 if test -n "$ac_ct_GNATBIND"; then
4590 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir
=.
4597 for ac_exec_ext
in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4610 if test -n "$ac_ct_GNATBIND"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4612 $as_echo "$ac_ct_GNATBIND" >&6; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4618 if test "x$ac_ct_GNATBIND" = x
; then
4621 case $cross_compiling:$ac_tool_warned in
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned
=yes ;;
4627 GNATBIND
=$ac_ct_GNATBIND
4630 GNATBIND
="$ac_cv_prog_GNATBIND"
4633 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4635 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -n "$GNATMAKE"; then
4642 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir
=.
4649 for ac_exec_ext
in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 GNATMAKE
=$ac_cv_prog_GNATMAKE
4662 if test -n "$GNATMAKE"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4664 $as_echo "$GNATMAKE" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4672 if test -z "$ac_cv_prog_GNATMAKE"; then
4673 ac_ct_GNATMAKE
=$GNATMAKE
4674 # Extract the first word of "gnatmake", so it can be a program name with args.
4675 set dummy gnatmake
; ac_word
=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4681 if test -n "$ac_ct_GNATMAKE"; then
4682 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4688 test -z "$as_dir" && as_dir
=.
4689 for ac_exec_ext
in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4702 if test -n "$ac_ct_GNATMAKE"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4704 $as_echo "$ac_ct_GNATMAKE" >&6; }
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4710 if test "x$ac_ct_GNATMAKE" = x
; then
4713 case $cross_compiling:$ac_tool_warned in
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4717 ac_tool_warned
=yes ;;
4719 GNATMAKE
=$ac_ct_GNATMAKE
4722 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4726 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4727 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4730 cat >conftest.adb
<<EOF
4731 procedure conftest is begin null; end conftest;
4733 acx_cv_cc_gcc_supports_ada
=no
4734 # There is a bug in old released versions of GCC which causes the
4735 # driver to exit successfully when the appropriate language module
4736 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4737 # Therefore we must check for the error message as well as an
4738 # unsuccessful exit.
4739 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4740 # given a .adb file, but produce no object file. So we must check
4741 # if an object file was really produced to guard against this.
4742 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4743 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4744 acx_cv_cc_gcc_supports_ada
=yes
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4749 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4751 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4758 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4759 # optimizations to be activated explicitly by the toplevel.
4761 */prev-gcc
/xgcc
*) ;;
4762 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4763 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4768 # Determine PICFLAG for target gnatlib.
4774 # PIC is the default on some targets or must not be used.
4776 # PIC is the default on this platform
4777 # Common symbols not allowed in MH_DYLIB files
4778 PICFLAG_FOR_TARGET
=-fno-common
4781 # PIC is the default.
4784 # PIC is the default for 64-bit PA HP-UX.
4786 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4788 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4790 i
[34567]86-*-interix[3-9]*)
4791 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4792 # Instead, we relocate shared libraries at runtime.
4794 i
[34567]86-*-nto-qnx*)
4795 # QNX uses GNU C++, but need to define -shared option too, otherwise
4797 PICFLAG_FOR_TARGET
='-fPIC -shared'
4799 i
[34567]86-pc-msdosdjgpp*)
4800 # DJGPP does not support shared libraries at all.
4803 # On IA64 HP-UX, PIC is the default but the pic flag
4804 # sets the default TLS model and affects inlining.
4805 PICFLAG_FOR_TARGET
=-fPIC
4808 # PIC is the default.
4810 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4811 # All AIX code is PIC.
4814 # Some targets support both -fPIC and -fpic, but prefer the latter.
4816 i
[34567]86-*-* | x86_64-
*-*)
4817 PICFLAG_FOR_TARGET
=-fpic
4819 # FIXME: Override -fPIC default in libgcc only?
4820 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4821 PICFLAG_FOR_TARGET
=-fpic
4823 # FIXME: Simplify to sh*-*-netbsd*?
4824 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4825 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4826 PICFLAG_FOR_TARGET
=-fpic
4828 # Default to -fPIC unless specified otherwise.
4830 PICFLAG_FOR_TARGET
=-fPIC
4834 # If the user explicitly uses -fpic/-fPIC, keep that.
4835 case "${CFLAGS_FOR_TARGET}" in
4837 PICFLAG_FOR_TARGET
=-fpic
4840 PICFLAG_FOR_TARGET
=-fPIC
4846 # -------------------------
4847 # Check C compiler features
4848 # -------------------------
4852 ac_cpp
='$CPP $CPPFLAGS'
4853 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4857 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4858 # On Suns, sometimes $CPP names a directory.
4859 if test -n "$CPP" && test -d "$CPP"; then
4862 if test -z "$CPP"; then
4863 if test "${ac_cv_prog_CPP+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4866 # Double quotes because CPP needs to be expanded
4867 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4870 for ac_c_preproc_warn_flag
in '' yes
4872 # Use a header file that comes with gcc, so configuring glibc
4873 # with a fresh cross-compiler works.
4874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4875 # <limits.h> exists even on freestanding compilers.
4876 # On the NeXT, cc -E runs the code through the compiler's parser,
4877 # not just through cpp. "Syntax error" is here to catch this case.
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4881 # include <limits.h>
4883 # include <assert.h>
4887 if ac_fn_c_try_cpp
"$LINENO"; then :
4890 # Broken: fails on valid input.
4893 rm -f conftest.err conftest.
$ac_ext
4895 # OK, works on sane cases. Now check whether nonexistent headers
4896 # can be detected and how.
4897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <ac_nonexistent.h>
4901 if ac_fn_c_try_cpp
"$LINENO"; then :
4902 # Broken: success on invalid input.
4905 # Passes both tests.
4909 rm -f conftest.err conftest.
$ac_ext
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.err conftest.
$ac_ext
4914 if $ac_preproc_ok; then :
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4927 $as_echo "$CPP" >&6; }
4929 for ac_c_preproc_warn_flag
in '' yes
4931 # Use a header file that comes with gcc, so configuring glibc
4932 # with a fresh cross-compiler works.
4933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934 # <limits.h> exists even on freestanding compilers.
4935 # On the NeXT, cc -E runs the code through the compiler's parser,
4936 # not just through cpp. "Syntax error" is here to catch this case.
4937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4940 # include <limits.h>
4942 # include <assert.h>
4946 if ac_fn_c_try_cpp
"$LINENO"; then :
4949 # Broken: fails on valid input.
4952 rm -f conftest.err conftest.
$ac_ext
4954 # OK, works on sane cases. Now check whether nonexistent headers
4955 # can be detected and how.
4956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 #include <ac_nonexistent.h>
4960 if ac_fn_c_try_cpp
"$LINENO"; then :
4961 # Broken: success on invalid input.
4964 # Passes both tests.
4968 rm -f conftest.err conftest.
$ac_ext
4971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972 rm -f conftest.err conftest.
$ac_ext
4973 if $ac_preproc_ok; then :
4976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4978 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4979 See \`config.log' for more details." "$LINENO" 5; }
4983 ac_cpp
='$CPP $CPPFLAGS'
4984 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4990 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4991 if test "${ac_cv_path_GREP+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4994 if test -z "$GREP"; then
4995 ac_path_GREP_found
=false
4996 # Loop through the user's path and test for each of PROGNAME-LIST
4997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4998 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5001 test -z "$as_dir" && as_dir
=.
5002 for ac_prog
in grep ggrep
; do
5003 for ac_exec_ext
in '' $ac_executable_extensions; do
5004 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5005 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5006 # Check for GNU ac_path_GREP and select it if it is found.
5007 # Check for GNU $ac_path_GREP
5008 case `"$ac_path_GREP" --version 2>&1` in
5010 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5013 $as_echo_n 0123456789 >"conftest.in"
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 $as_echo 'GREP' >> "conftest.nl"
5020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5021 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5022 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5023 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_GREP
="$ac_path_GREP"
5026 ac_path_GREP_max
=$ac_count
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5031 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5034 $ac_path_GREP_found && break 3
5039 if test -z "$ac_cv_path_GREP"; then
5040 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5043 ac_cv_path_GREP
=$GREP
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5048 $as_echo "$ac_cv_path_GREP" >&6; }
5049 GREP
="$ac_cv_path_GREP"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5053 $as_echo_n "checking for egrep... " >&6; }
5054 if test "${ac_cv_path_EGREP+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5057 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5058 then ac_cv_path_EGREP
="$GREP -E"
5060 if test -z "$EGREP"; then
5061 ac_path_EGREP_found
=false
5062 # Loop through the user's path and test for each of PROGNAME-LIST
5063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5064 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5067 test -z "$as_dir" && as_dir
=.
5068 for ac_prog
in egrep; do
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5071 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5072 # Check for GNU ac_path_EGREP and select it if it is found.
5073 # Check for GNU $ac_path_EGREP
5074 case `"$ac_path_EGREP" --version 2>&1` in
5076 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5079 $as_echo_n 0123456789 >"conftest.in"
5082 cat "conftest.in" "conftest.in" >"conftest.tmp"
5083 mv "conftest.tmp" "conftest.in"
5084 cp "conftest.in" "conftest.nl"
5085 $as_echo 'EGREP' >> "conftest.nl"
5086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5087 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5088 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5090 # Best one so far, save it but keep looking for a better one
5091 ac_cv_path_EGREP
="$ac_path_EGREP"
5092 ac_path_EGREP_max
=$ac_count
5094 # 10*(2^10) chars as input seems more than enough
5095 test $ac_count -gt 10 && break
5097 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5100 $ac_path_EGREP_found && break 3
5105 if test -z "$ac_cv_path_EGREP"; then
5106 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5109 ac_cv_path_EGREP
=$EGREP
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5115 $as_echo "$ac_cv_path_EGREP" >&6; }
5116 EGREP
="$ac_cv_path_EGREP"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5120 $as_echo_n "checking for ANSI C header files... " >&6; }
5121 if test "${ac_cv_header_stdc+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5139 if ac_fn_c_try_compile
"$LINENO"; then :
5140 ac_cv_header_stdc
=yes
5142 ac_cv_header_stdc
=no
5144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5146 if test $ac_cv_header_stdc = yes; then
5147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5154 $EGREP "memchr" >/dev
/null
2>&1; then :
5157 ac_cv_header_stdc
=no
5163 if test $ac_cv_header_stdc = yes; then
5164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5171 $EGREP "free" >/dev
/null
2>&1; then :
5174 ac_cv_header_stdc
=no
5180 if test $ac_cv_header_stdc = yes; then
5181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5182 if test "$cross_compiling" = yes; then :
5185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5189 #if ((' ' & 0x0FF) == 0x020)
5190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5193 # define ISLOWER(c) \
5194 (('a' <= (c) && (c) <= 'i') \
5195 || ('j' <= (c) && (c) <= 'r') \
5196 || ('s' <= (c) && (c) <= 'z'))
5197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5205 for (i = 0; i < 256; i++)
5206 if (XOR (islower (i), ISLOWER (i))
5207 || toupper (i) != TOUPPER (i))
5212 if ac_fn_c_try_run
"$LINENO"; then :
5215 ac_cv_header_stdc
=no
5217 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5218 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5224 $as_echo "$ac_cv_header_stdc" >&6; }
5225 if test $ac_cv_header_stdc = yes; then
5227 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5232 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5233 inttypes.h stdint.h unistd.h
5235 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5236 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5238 eval as_val
=\$
$as_ac_Header
5239 if test "x$as_val" = x
""yes; then :
5240 cat >>confdefs.h
<<_ACEOF
5241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5250 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5251 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5258 if test "$MINIX" = yes; then
5260 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5263 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5266 $as_echo "#define _MINIX 1" >>confdefs.h
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5272 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5273 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5279 # define __EXTENSIONS__ 1
5280 $ac_includes_default
5289 if ac_fn_c_try_compile
"$LINENO"; then :
5290 ac_cv_safe_to_define___extensions__
=yes
5292 ac_cv_safe_to_define___extensions__
=no
5294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5297 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5298 test $ac_cv_safe_to_define___extensions__ = yes &&
5299 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5301 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5303 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5305 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5307 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5311 ac_cpp
='$CPP $CPPFLAGS'
5312 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5316 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5317 # On Suns, sometimes $CPP names a directory.
5318 if test -n "$CPP" && test -d "$CPP"; then
5321 if test -z "$CPP"; then
5322 if test "${ac_cv_prog_CPP+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5325 # Double quotes because CPP needs to be expanded
5326 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5329 for ac_c_preproc_warn_flag
in '' yes
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5340 # include <limits.h>
5342 # include <assert.h>
5346 if ac_fn_c_try_cpp
"$LINENO"; then :
5349 # Broken: fails on valid input.
5352 rm -f conftest.err conftest.
$ac_ext
5354 # OK, works on sane cases. Now check whether nonexistent headers
5355 # can be detected and how.
5356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #include <ac_nonexistent.h>
5360 if ac_fn_c_try_cpp
"$LINENO"; then :
5361 # Broken: success on invalid input.
5364 # Passes both tests.
5368 rm -f conftest.err conftest.
$ac_ext
5371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5372 rm -f conftest.err conftest.
$ac_ext
5373 if $ac_preproc_ok; then :
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5386 $as_echo "$CPP" >&6; }
5388 for ac_c_preproc_warn_flag
in '' yes
5390 # Use a header file that comes with gcc, so configuring glibc
5391 # with a fresh cross-compiler works.
5392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5393 # <limits.h> exists even on freestanding compilers.
5394 # On the NeXT, cc -E runs the code through the compiler's parser,
5395 # not just through cpp. "Syntax error" is here to catch this case.
5396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5399 # include <limits.h>
5401 # include <assert.h>
5405 if ac_fn_c_try_cpp
"$LINENO"; then :
5408 # Broken: fails on valid input.
5411 rm -f conftest.err conftest.
$ac_ext
5413 # OK, works on sane cases. Now check whether nonexistent headers
5414 # can be detected and how.
5415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 #include <ac_nonexistent.h>
5419 if ac_fn_c_try_cpp
"$LINENO"; then :
5420 # Broken: success on invalid input.
5423 # Passes both tests.
5427 rm -f conftest.err conftest.
$ac_ext
5430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5431 rm -f conftest.err conftest.
$ac_ext
5432 if $ac_preproc_ok; then :
5435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5437 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5438 See \`config.log' for more details." "$LINENO" 5; }
5442 ac_cpp
='$CPP $CPPFLAGS'
5443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5448 $as_echo_n "checking for inline... " >&6; }
5449 if test "${ac_cv_c_inline+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5453 for ac_kw
in inline __inline__ __inline
; do
5454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5458 static $ac_kw foo_t static_foo () {return 0; }
5459 $ac_kw foo_t foo () {return 0; }
5463 if ac_fn_c_try_compile
"$LINENO"; then :
5464 ac_cv_c_inline
=$ac_kw
5466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5467 test "$ac_cv_c_inline" != no
&& break
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5472 $as_echo "$ac_cv_c_inline" >&6; }
5474 case $ac_cv_c_inline in
5477 case $ac_cv_c_inline in
5479 *) ac_val
=$ac_cv_c_inline;;
5481 cat >>confdefs.h
<<_ACEOF
5483 #define inline $ac_val
5490 # Check whether --enable-largefile was given.
5491 if test "${enable_largefile+set}" = set; then :
5492 enableval
=$enable_largefile;
5495 if test "$enable_largefile" != no
; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5498 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5499 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5502 ac_cv_sys_largefile_CC
=no
5503 if test "$GCC" != yes; then
5506 # IRIX 6.2 and later do not support large files by default,
5507 # so use the C compiler's -n32 option if that helps.
5508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #include <sys/types.h>
5511 /* Check that off_t can represent 2**63 - 1 correctly.
5512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5513 since some C++ compilers masquerading as C compilers
5514 incorrectly reject 9223372036854775807. */
5515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5517 && LARGE_OFF_T % 2147483647 == 1)
5527 if ac_fn_c_try_compile
"$LINENO"; then :
5530 rm -f core conftest.err conftest.
$ac_objext
5532 if ac_fn_c_try_compile
"$LINENO"; then :
5533 ac_cv_sys_largefile_CC
=' -n32'; break
5535 rm -f core conftest.err conftest.
$ac_objext
5539 rm -f conftest.
$ac_ext
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5543 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5544 if test "$ac_cv_sys_largefile_CC" != no
; then
5545 CC
=$CC$ac_cv_sys_largefile_CC
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5549 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5550 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 /* Check that off_t can represent 2**63 - 1 correctly.
5558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5559 since some C++ compilers masquerading as C compilers
5560 incorrectly reject 9223372036854775807. */
5561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5563 && LARGE_OFF_T % 2147483647 == 1)
5573 if ac_fn_c_try_compile
"$LINENO"; then :
5574 ac_cv_sys_file_offset_bits
=no
; break
5576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #define _FILE_OFFSET_BITS 64
5580 #include <sys/types.h>
5581 /* Check that off_t can represent 2**63 - 1 correctly.
5582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5583 since some C++ compilers masquerading as C compilers
5584 incorrectly reject 9223372036854775807. */
5585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5587 && LARGE_OFF_T % 2147483647 == 1)
5597 if ac_fn_c_try_compile
"$LINENO"; then :
5598 ac_cv_sys_file_offset_bits
=64; break
5600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5601 ac_cv_sys_file_offset_bits
=unknown
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5606 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5607 case $ac_cv_sys_file_offset_bits in #(
5610 cat >>confdefs.h
<<_ACEOF
5611 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5616 if test $ac_cv_sys_file_offset_bits = unknown
; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5618 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5619 if test "${ac_cv_sys_large_files+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #include <sys/types.h>
5626 /* Check that off_t can represent 2**63 - 1 correctly.
5627 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5628 since some C++ compilers masquerading as C compilers
5629 incorrectly reject 9223372036854775807. */
5630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5632 && LARGE_OFF_T % 2147483647 == 1)
5642 if ac_fn_c_try_compile
"$LINENO"; then :
5643 ac_cv_sys_large_files
=no
; break
5645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #define _LARGE_FILES 1
5649 #include <sys/types.h>
5650 /* Check that off_t can represent 2**63 - 1 correctly.
5651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5652 since some C++ compilers masquerading as C compilers
5653 incorrectly reject 9223372036854775807. */
5654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5656 && LARGE_OFF_T % 2147483647 == 1)
5666 if ac_fn_c_try_compile
"$LINENO"; then :
5667 ac_cv_sys_large_files
=1; break
5669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5670 ac_cv_sys_large_files
=unknown
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5675 $as_echo "$ac_cv_sys_large_files" >&6; }
5676 case $ac_cv_sys_large_files in #(
5679 cat >>confdefs.h
<<_ACEOF
5680 #define _LARGE_FILES $ac_cv_sys_large_files
5689 # sizeof(char) is 1 by definition.
5690 # The cast to long int works around a bug in the HP C Compiler
5691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5693 # This bug is HP SR number 8606223364.
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5695 $as_echo_n "checking size of void *... " >&6; }
5696 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5697 $as_echo_n "(cached) " >&6
5699 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5702 if test "$ac_cv_type_void_p" = yes; then
5703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5705 { as_fn_set_status
77
5706 as_fn_error
"cannot compute sizeof (void *)
5707 See \`config.log' for more details." "$LINENO" 5; }; }
5709 ac_cv_sizeof_void_p
=0
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5715 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5719 cat >>confdefs.h
<<_ACEOF
5720 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5724 # The cast to long int works around a bug in the HP C Compiler
5725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5727 # This bug is HP SR number 8606223364.
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5729 $as_echo_n "checking size of short... " >&6; }
5730 if test "${ac_cv_sizeof_short+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5733 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5736 if test "$ac_cv_type_short" = yes; then
5737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5739 { as_fn_set_status
77
5740 as_fn_error
"cannot compute sizeof (short)
5741 See \`config.log' for more details." "$LINENO" 5; }; }
5743 ac_cv_sizeof_short
=0
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5749 $as_echo "$ac_cv_sizeof_short" >&6; }
5753 cat >>confdefs.h
<<_ACEOF
5754 #define SIZEOF_SHORT $ac_cv_sizeof_short
5758 # The cast to long int works around a bug in the HP C Compiler
5759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5761 # This bug is HP SR number 8606223364.
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5763 $as_echo_n "checking size of int... " >&6; }
5764 if test "${ac_cv_sizeof_int+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5767 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5770 if test "$ac_cv_type_int" = yes; then
5771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5773 { as_fn_set_status
77
5774 as_fn_error
"cannot compute sizeof (int)
5775 See \`config.log' for more details." "$LINENO" 5; }; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5783 $as_echo "$ac_cv_sizeof_int" >&6; }
5787 cat >>confdefs.h
<<_ACEOF
5788 #define SIZEOF_INT $ac_cv_sizeof_int
5792 # The cast to long int works around a bug in the HP C Compiler
5793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5795 # This bug is HP SR number 8606223364.
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5797 $as_echo_n "checking size of long... " >&6; }
5798 if test "${ac_cv_sizeof_long+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5801 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5804 if test "$ac_cv_type_long" = yes; then
5805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5807 { as_fn_set_status
77
5808 as_fn_error
"cannot compute sizeof (long)
5809 See \`config.log' for more details." "$LINENO" 5; }; }
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5817 $as_echo "$ac_cv_sizeof_long" >&6; }
5821 cat >>confdefs.h
<<_ACEOF
5822 #define SIZEOF_LONG $ac_cv_sizeof_long
5826 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5827 if test "x$ac_cv_type_long_long" = x
""yes; then :
5829 cat >>confdefs.h
<<_ACEOF
5830 #define HAVE_LONG_LONG 1
5833 # The cast to long int works around a bug in the HP C Compiler
5834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5836 # This bug is HP SR number 8606223364.
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5838 $as_echo_n "checking size of long long... " >&6; }
5839 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5842 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5845 if test "$ac_cv_type_long_long" = yes; then
5846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848 { as_fn_set_status
77
5849 as_fn_error
"cannot compute sizeof (long long)
5850 See \`config.log' for more details." "$LINENO" 5; }; }
5852 ac_cv_sizeof_long_long
=0
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5858 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5862 cat >>confdefs.h
<<_ACEOF
5863 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5869 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5870 case $ac_cv_c_int8_t in #(
5874 cat >>confdefs.h
<<_ACEOF
5875 #define int8_t $ac_cv_c_int8_t
5880 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5881 case $ac_cv_c_int16_t in #(
5885 cat >>confdefs.h
<<_ACEOF
5886 #define int16_t $ac_cv_c_int16_t
5891 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5892 case $ac_cv_c_int32_t in #(
5896 cat >>confdefs.h
<<_ACEOF
5897 #define int32_t $ac_cv_c_int32_t
5902 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5903 case $ac_cv_c_int64_t in #(
5907 cat >>confdefs.h
<<_ACEOF
5908 #define int64_t $ac_cv_c_int64_t
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5915 $as_echo_n "checking for long long int... " >&6; }
5916 if test "${ac_cv_type_long_long_int+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5922 /* For now, do not test the preprocessor; as of 2007 there are too many
5923 implementations with broken preprocessors. Perhaps this can
5924 be revisited in 2012. In the meantime, code should not expect
5925 #if to work with literals wider than 32 bits. */
5926 /* Test literals. */
5927 long long int ll = 9223372036854775807ll;
5928 long long int nll = -9223372036854775807LL;
5929 unsigned long long int ull = 18446744073709551615ULL;
5930 /* Test constant expressions. */
5931 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5933 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5939 /* Test availability of runtime routines for shift and division. */
5940 long long int llmax = 9223372036854775807ll;
5941 unsigned long long int ullmax = 18446744073709551615ull;
5942 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5943 | (llmax / ll) | (llmax % ll)
5944 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5945 | (ullmax / ull) | (ullmax % ull));
5951 if ac_fn_c_try_link
"$LINENO"; then :
5952 if test "$cross_compiling" = yes; then :
5953 ac_cv_type_long_long_int
=yes
5955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5960 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5961 # define LLONG_MAX (HALF - 1 + HALF)
5966 long long int n = 1;
5970 long long int m = n << i;
5973 if (LLONG_MAX / 2 < m)
5981 if ac_fn_c_try_run
"$LINENO"; then :
5982 ac_cv_type_long_long_int
=yes
5984 ac_cv_type_long_long_int
=no
5986 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5987 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5991 ac_cv_type_long_long_int
=no
5993 rm -f core conftest.err conftest.
$ac_objext \
5994 conftest
$ac_exeext conftest.
$ac_ext
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5997 $as_echo "$ac_cv_type_long_long_int" >&6; }
5998 if test $ac_cv_type_long_long_int = yes; then
6000 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6006 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6009 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6012 test $ac_cv_type_long_long_int = yes \
6013 && ac_type
='long long int' \
6014 || ac_type
='long int'
6016 cat >>confdefs.h
<<_ACEOF
6017 #define intmax_t $ac_type
6024 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6027 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6030 for ac_type
in 'int' 'long int' 'long long int'; do
6031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 $ac_includes_default
6037 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6044 if ac_fn_c_try_compile
"$LINENO"; then :
6046 cat >>confdefs.h
<<_ACEOF
6047 #define intptr_t $ac_type
6052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6053 test -z "$ac_type" && break
6058 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6059 case $ac_cv_c_uint8_t in #(
6063 $as_echo "#define _UINT8_T 1" >>confdefs.h
6066 cat >>confdefs.h
<<_ACEOF
6067 #define uint8_t $ac_cv_c_uint8_t
6072 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6073 case $ac_cv_c_uint16_t in #(
6078 cat >>confdefs.h
<<_ACEOF
6079 #define uint16_t $ac_cv_c_uint16_t
6084 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6085 case $ac_cv_c_uint32_t in #(
6089 $as_echo "#define _UINT32_T 1" >>confdefs.h
6092 cat >>confdefs.h
<<_ACEOF
6093 #define uint32_t $ac_cv_c_uint32_t
6098 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6099 case $ac_cv_c_uint64_t in #(
6103 $as_echo "#define _UINT64_T 1" >>confdefs.h
6106 cat >>confdefs.h
<<_ACEOF
6107 #define uint64_t $ac_cv_c_uint64_t
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6114 $as_echo_n "checking for unsigned long long int... " >&6; }
6115 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6121 /* For now, do not test the preprocessor; as of 2007 there are too many
6122 implementations with broken preprocessors. Perhaps this can
6123 be revisited in 2012. In the meantime, code should not expect
6124 #if to work with literals wider than 32 bits. */
6125 /* Test literals. */
6126 long long int ll = 9223372036854775807ll;
6127 long long int nll = -9223372036854775807LL;
6128 unsigned long long int ull = 18446744073709551615ULL;
6129 /* Test constant expressions. */
6130 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6132 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6138 /* Test availability of runtime routines for shift and division. */
6139 long long int llmax = 9223372036854775807ll;
6140 unsigned long long int ullmax = 18446744073709551615ull;
6141 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6142 | (llmax / ll) | (llmax % ll)
6143 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6144 | (ullmax / ull) | (ullmax % ull));
6150 if ac_fn_c_try_link
"$LINENO"; then :
6151 ac_cv_type_unsigned_long_long_int
=yes
6153 ac_cv_type_unsigned_long_long_int
=no
6155 rm -f core conftest.err conftest.
$ac_objext \
6156 conftest
$ac_exeext conftest.
$ac_ext
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6159 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6160 if test $ac_cv_type_unsigned_long_long_int = yes; then
6162 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6168 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6171 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6174 test $ac_cv_type_unsigned_long_long_int = yes \
6175 && ac_type
='unsigned long long int' \
6176 || ac_type
='unsigned long int'
6178 cat >>confdefs.h
<<_ACEOF
6179 #define uintmax_t $ac_type
6186 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6189 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6192 for ac_type
in 'unsigned int' 'unsigned long int' \
6193 'unsigned long long int'; do
6194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 $ac_includes_default
6200 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6207 if ac_fn_c_try_compile
"$LINENO"; then :
6209 cat >>confdefs.h
<<_ACEOF
6210 #define uintptr_t $ac_type
6215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 test -z "$ac_type" && break
6233 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6234 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6237 # check what underlying integer type int64_t uses
6239 ac_cpp
='$CXXCPP $CPPFLAGS'
6240 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6246 $as_echo_n "checking for int64_t underlying type... " >&6; }
6247 if test "${ac_cv_int64_t_type+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6254 #ifdef HAVE_STDINT_H
6257 template <typename T> struct X { };
6259 struct X<long> { typedef long t; };
6269 if ac_fn_cxx_try_compile
"$LINENO"; then :
6270 ac_cv_int64_t_type
=long
6272 ac_cv_int64_t_type
="long long"
6274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6277 $as_echo "$ac_cv_int64_t_type" >&6; }
6278 if test "$ac_cv_int64_t_type" = "long"; then
6280 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6286 #ifdef HAVE_STDINT_H
6289 template <typename T> struct X { };
6291 struct X<long long> { typedef long long t; };
6301 if ac_fn_cxx_try_compile
"$LINENO"; then :
6304 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6309 ac_cpp
='$CPP $CPPFLAGS'
6310 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6318 # ---------------------
6319 # Warnings and checking
6320 # ---------------------
6322 # Check $CC warning features (if it's GCC).
6323 # We want to use -pedantic, but we don't want warnings about
6326 # * overlong strings
6327 # * C++11 narrowing conversions in { }
6328 # So, we only use -pedantic if we can disable those warnings.
6330 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6331 # Check whether --enable-build-format-warnings was given.
6332 if test "${enable_build_format_warnings+set}" = set; then :
6333 enableval
=$enable_build_format_warnings;
6335 enable_build_format_warnings
=yes
6338 if test $enable_build_format_warnings = no
; then :
6344 save_CFLAGS
="$CFLAGS"
6345 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6346 # Do the check with the no- prefix removed since gcc silently
6347 # accepts any -Wno-* option on purpose
6348 case $real_option in
6349 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6350 *) option
=$real_option ;;
6352 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6355 $as_echo_n "checking whether $CC supports $option... " >&6; }
6356 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6357 $as_echo_n "(cached) " >&6
6360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6371 if ac_fn_c_try_compile
"$LINENO"; then :
6372 eval "$as_acx_Woption=yes"
6374 eval "$as_acx_Woption=no"
6376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 eval ac_res
=\$
$as_acx_Woption
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6382 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6383 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6386 CFLAGS
="$save_CFLAGS"
6389 save_CFLAGS
="$CFLAGS"
6390 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6391 # Do the check with the no- prefix removed since gcc silently
6392 # accepts any -Wno-* option on purpose
6393 case $real_option in
6394 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6395 *) option
=$real_option ;;
6397 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6400 $as_echo_n "checking whether $CC supports $option... " >&6; }
6401 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6402 $as_echo_n "(cached) " >&6
6405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6416 if ac_fn_c_try_compile
"$LINENO"; then :
6417 eval "$as_acx_Woption=yes"
6419 eval "$as_acx_Woption=no"
6421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6424 eval ac_res
=\$
$as_acx_Woption
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6426 $as_echo "$ac_res" >&6; }
6427 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6428 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6431 CFLAGS
="$save_CFLAGS"
6434 save_CFLAGS
="$CFLAGS"
6435 for real_option
in -Wmissing-format-attribute; do
6436 # Do the check with the no- prefix removed since gcc silently
6437 # accepts any -Wno-* option on purpose
6438 case $real_option in
6439 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6440 *) option
=$real_option ;;
6442 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6445 $as_echo_n "checking whether $CC supports $option... " >&6; }
6446 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6447 $as_echo_n "(cached) " >&6
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6461 if ac_fn_c_try_compile
"$LINENO"; then :
6462 eval "$as_acx_Woption=yes"
6464 eval "$as_acx_Woption=no"
6466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6469 eval ac_res
=\$
$as_acx_Woption
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6471 $as_echo "$ac_res" >&6; }
6472 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6473 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6476 CFLAGS
="$save_CFLAGS"
6478 save_CFLAGS
="$CFLAGS"
6479 for real_option
in -Woverloaded-virtual; do
6480 # Do the check with the no- prefix removed since gcc silently
6481 # accepts any -Wno-* option on purpose
6482 case $real_option in
6483 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6484 *) option
=$real_option ;;
6486 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6489 $as_echo_n "checking whether $CC supports $option... " >&6; }
6490 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6491 $as_echo_n "(cached) " >&6
6494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6505 if ac_fn_c_try_compile
"$LINENO"; then :
6506 eval "$as_acx_Woption=yes"
6508 eval "$as_acx_Woption=no"
6510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6513 eval ac_res
=\$
$as_acx_Woption
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6515 $as_echo "$ac_res" >&6; }
6516 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6517 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6520 CFLAGS
="$save_CFLAGS"
6523 save_CFLAGS
="$CFLAGS"
6524 for real_option
in -Wold-style-definition -Wc++-compat; do
6525 # Do the check with the no- prefix removed since gcc silently
6526 # accepts any -Wno-* option on purpose
6527 case $real_option in
6528 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6529 *) option
=$real_option ;;
6531 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6534 $as_echo_n "checking whether $CC supports $option... " >&6; }
6535 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6536 $as_echo_n "(cached) " >&6
6539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6550 if ac_fn_c_try_compile
"$LINENO"; then :
6551 eval "$as_acx_Woption=yes"
6553 eval "$as_acx_Woption=no"
6555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6558 eval ac_res
=\$
$as_acx_Woption
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6560 $as_echo "$ac_res" >&6; }
6561 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6562 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6565 CFLAGS
="$save_CFLAGS"
6567 # Do the check with the no- prefix removed from the warning options
6568 # since gcc silently accepts any -Wno-* option on purpose
6569 if test "$GCC" = yes; then :
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6571 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6572 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6575 save_CFLAGS
="$CFLAGS"
6576 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6588 if ac_fn_c_try_compile
"$LINENO"; then :
6589 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6591 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6594 CFLAGS
="$save_CFLAGS"
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6597 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6598 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6599 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6604 # Check whether --enable-werror-always was given.
6605 if test "${enable_werror_always+set}" = set; then :
6606 enableval
=$enable_werror_always;
6608 enable_werror_always
=no
6611 if test $enable_werror_always = yes; then :
6612 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6617 # The above macros do nothing if the compiler is not GCC. However, the
6618 # Makefile has more goo to add other flags, so these variables are used
6619 # to enable warnings only for GCC.
6622 if test "x$GCC" = "xyes"; then
6623 warn_cflags
='$(GCC_WARN_CFLAGS)'
6624 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6629 # Disable exceptions and RTTI if building with g++
6631 save_CFLAGS
="$CFLAGS"
6632 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6633 # Do the check with the no- prefix removed since gcc silently
6634 # accepts any -Wno-* option on purpose
6635 case $real_option in
6636 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6637 *) option
=$real_option ;;
6639 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6642 $as_echo_n "checking whether $CC supports $option... " >&6; }
6643 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6644 $as_echo_n "(cached) " >&6
6647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6658 if ac_fn_c_try_compile
"$LINENO"; then :
6659 eval "$as_acx_Woption=yes"
6661 eval "$as_acx_Woption=no"
6663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6666 eval ac_res
=\$
$as_acx_Woption
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6668 $as_echo "$ac_res" >&6; }
6669 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6670 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6673 CFLAGS
="$save_CFLAGS"
6676 # Enable expensive internal checks
6678 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6682 # Check whether --enable-checking was given.
6683 if test "${enable_checking+set}" = set; then :
6684 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6687 # Determine the default checks.
6688 if test x
$is_release = x
; then
6689 ac_checking_flags
=yes
6691 ac_checking_flags
=release
6695 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6696 for check
in release
$ac_checking_flags
6699 # these set all the flags to specific states
6700 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6701 ac_fold_checking
= ; ac_gc_checking
=1 ;
6702 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6703 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6704 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6705 ac_types_checking
=1 ;;
6706 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6707 ac_fold_checking
= ; ac_gc_checking
= ;
6708 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6709 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6710 ac_tree_checking
= ; ac_valgrind_checking
= ;
6711 ac_types_checking
= ;;
6712 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6713 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6714 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6715 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6716 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6717 ac_types_checking
=1 ;;
6718 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6719 ac_fold_checking
= ; ac_gc_checking
= ;
6720 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6721 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6722 ac_tree_checking
= ; ac_valgrind_checking
= ;
6723 ac_types_checking
= ;;
6724 # these enable particular checks
6725 assert
) ac_assert_checking
=1 ;;
6726 df
) ac_df_checking
=1 ;;
6727 fold) ac_fold_checking
=1 ;;
6728 gc
) ac_gc_checking
=1 ;;
6729 gcac
) ac_gc_always_collect
=1 ;;
6730 gimple
) ac_gimple_checking
=1 ;;
6731 misc
) ac_checking
=1 ;;
6732 rtl
) ac_rtl_checking
=1 ;;
6733 rtlflag
) ac_rtlflag_checking
=1 ;;
6734 runtime
) ac_runtime_checking
=1 ;;
6735 tree
) ac_tree_checking
=1 ;;
6736 types
) ac_types_checking
=1 ;;
6737 valgrind
) ac_valgrind_checking
=1 ;;
6738 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6744 if test x
$ac_checking != x
; then
6746 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6748 nocommon_flag
=-fno-common
6751 if test x
$ac_df_checking != x
; then
6753 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6756 if test x
$ac_assert_checking != x
; then
6758 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6761 if test x
$ac_gimple_checking != x
; then
6763 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6767 if test x
$ac_runtime_checking != x
; then
6769 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6772 if test x
$ac_tree_checking != x
; then
6774 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6776 TREEBROWSER
=tree-browser.o
6779 if test x
$ac_types_checking != x
; then
6781 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6786 if test x
$ac_rtl_checking != x
; then
6788 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6791 if test x
$ac_rtlflag_checking != x
; then
6793 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6796 if test x
$ac_gc_checking != x
; then
6798 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6801 if test x
$ac_gc_always_collect != x
; then
6803 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6806 if test x
$ac_fold_checking != x
; then
6808 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6811 valgrind_path_defines
=
6814 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6815 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6823 # It is certainly possible that there's valgrind but no valgrind.h.
6824 # GCC relies on making annotations so we must have both.
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6826 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829 #include <valgrind/memcheck.h>
6830 #ifndef VALGRIND_DISCARD
6831 #error VALGRIND_DISCARD not defined
6834 if ac_fn_c_try_cpp
"$LINENO"; then :
6835 gcc_cv_header_valgrind_memcheck_h
=yes
6837 gcc_cv_header_valgrind_memcheck_h
=no
6839 rm -f conftest.err conftest.
$ac_ext
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6841 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6843 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846 #include <memcheck.h>
6847 #ifndef VALGRIND_DISCARD
6848 #error VALGRIND_DISCARD not defined
6851 if ac_fn_c_try_cpp
"$LINENO"; then :
6852 gcc_cv_header_memcheck_h
=yes
6854 gcc_cv_header_memcheck_h
=no
6856 rm -f conftest.err conftest.
$ac_ext
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6858 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6859 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6861 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6864 if test $gcc_cv_header_memcheck_h = yes; then
6866 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6870 if test x
$ac_valgrind_checking != x
; then
6872 # Prepare PATH_SEPARATOR.
6873 # The user is always right.
6874 if test "${PATH_SEPARATOR+set}" != set; then
6875 echo "#! /bin/sh" >conf$$.sh
6876 echo "exit 0" >>conf$$.sh
6878 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6886 # Find out how to test for executable files. Don't use a zero-byte file,
6887 # as systems may use methods other than mode bits to determine executability.
6888 cat >conf$$.
file <<_ASEOF
6892 chmod +x conf$$.
file
6893 if test -x conf$$.
file >/dev
/null
2>&1; then
6894 ac_executable_p
="test -x"
6896 ac_executable_p
="test -f"
6900 # Extract the first word of "valgrind", so it can be a program name with args.
6901 set dummy valgrind
; ac_word
=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6907 case "$valgrind_path" in
6909 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6912 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6913 for ac_dir
in $PATH; do
6915 test -z "$ac_dir" && ac_dir
=.
6916 for ac_exec_ext
in '' $ac_executable_extensions; do
6917 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6918 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6919 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6929 valgrind_path
="$ac_cv_path_valgrind_path"
6930 if test -n "$valgrind_path"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6932 $as_echo "$valgrind_path" >&6; }
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6938 if test "x$valgrind_path" = "x" \
6939 ||
(test $have_valgrind_h = no \
6940 && test $gcc_cv_header_memcheck_h = no \
6941 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6942 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6944 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6945 valgrind_command
="$valgrind_path -q"
6947 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6953 # Enable code coverage collection
6954 # Check whether --enable-coverage was given.
6955 if test "${enable_coverage+set}" = set; then :
6956 enableval
=$enable_coverage; case "${enableval}" in
6958 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6961 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6964 # a.k.a. --disable-coverage
6968 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6977 # Check whether --enable-gather-detailed-mem-stats was given.
6978 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6979 enableval
=$enable_gather_detailed_mem_stats;
6981 enable_gather_detailed_mem_stats
=no
6984 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6986 cat >>confdefs.h
<<_ACEOF
6987 #define GATHER_STATISTICS $gather_stats
6991 # Check whether --enable-valgrind-annotations was given.
6992 if test "${enable_valgrind_annotations+set}" = set; then :
6993 enableval
=$enable_valgrind_annotations;
6995 enable_valgrind_annotations
=no
6998 if test x
$enable_valgrind_annotations != xno \
6999 ||
test x
$ac_valgrind_checking != x
; then
7000 if (test $have_valgrind_h = no \
7001 && test $gcc_cv_header_memcheck_h = no \
7002 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7003 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7006 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7010 # -------------------------------
7011 # Miscenalleous configure options
7012 # -------------------------------
7016 # Check whether --with-stabs was given.
7017 if test "${with_stabs+set}" = set; then :
7018 withval
=$with_stabs; stabs
="$with_stabs"
7024 # Determine whether or not multilibs are enabled.
7025 # Check whether --enable-multilib was given.
7026 if test "${enable_multilib+set}" = set; then :
7027 enableval
=$enable_multilib;
7034 # Determine whether or not multiarch is enabled.
7035 # Check whether --enable-multiarch was given.
7036 if test "${enable_multiarch+set}" = set; then :
7037 enableval
=$enable_multiarch; case "${enableval}" in
7038 yes|no|auto
) enable_multiarch
=$enableval;;
7039 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7042 enable_multiarch
=auto
7045 if test x
${enable_multiarch} = xauto
; then
7046 if test x
${with_native_system_header_dir} != x
; then
7047 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7050 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7051 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7056 $as_echo_n "checking for multiarch configuration... " >&6; }
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7059 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7061 # needed for setting the multiarch name for soft-float/hard-float ABIs
7065 # Enable __cxa_atexit for C++.
7066 # Check whether --enable-__cxa_atexit was given.
7067 if test "${enable___cxa_atexit+set}" = set; then :
7068 enableval
=$enable___cxa_atexit;
7072 # Enable C extension for decimal float if target supports it.
7074 # Check whether --enable-decimal-float was given.
7075 if test "${enable_decimal_float+set}" = set; then :
7076 enableval
=$enable_decimal_float;
7077 case $enable_decimal_float in
7078 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7079 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7080 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7086 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7088 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7089 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7090 enable_decimal_float
=yes
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7094 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7095 enable_decimal_float
=no
7102 # x86's use BID format instead of DPD
7103 case x
$enable_decimal_float in
7106 i?
86*-*-* | x86_64
*-*-*)
7107 enable_decimal_float
=bid
7110 enable_decimal_float
=dpd
7113 default_decimal_float
=$enable_decimal_float
7116 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7117 # dependency on libdecnumber.
7118 default_decimal_float
=dpd
7125 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7127 cat >>confdefs.h
<<_ACEOF
7128 #define ENABLE_DECIMAL_FLOAT $dfp
7132 # Use default_decimal_float for dependency.
7133 enable_decimal_float
=$default_decimal_float
7135 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7137 cat >>confdefs.h
<<_ACEOF
7138 #define ENABLE_DECIMAL_BID_FORMAT $bid
7142 # Enable C extension for fixed-point arithmetic.
7143 # Check whether --enable-fixed-point was given.
7144 if test "${enable_fixed_point+set}" = set; then :
7145 enableval
=$enable_fixed_point;
7150 enable_fixed_point
=yes
7154 enable_fixed_point
=yes
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7158 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7159 enable_fixed_point
=no
7167 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7169 cat >>confdefs.h
<<_ACEOF
7170 #define ENABLE_FIXED_POINT $fixedpoint
7175 # Pass with no value to take the default
7176 # Pass with a value to specify a thread package
7177 # Check whether --enable-threads was given.
7178 if test "${enable_threads+set}" = set; then :
7179 enableval
=$enable_threads;
7185 # Check whether --enable-tls was given.
7186 if test "${enable_tls+set}" = set; then :
7187 enableval
=$enable_tls;
7190 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7191 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7199 # Check whether --enable-objc-gc was given.
7200 if test "${enable_objc_gc+set}" = set; then :
7201 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7212 # Check whether --with-dwarf2 was given.
7213 if test "${with_dwarf2+set}" = set; then :
7214 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7220 # Check whether --enable-shared was given.
7221 if test "${enable_shared+set}" = set; then :
7222 enableval
=$enable_shared;
7223 case $enable_shared in
7227 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7228 for pkg
in $enableval; do
7229 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7244 # Check whether --with-native-system-header-dir was given.
7245 if test "${with_native_system_header_dir+set}" = set; then :
7246 withval
=$with_native_system_header_dir;
7247 case ${with_native_system_header_dir} in
7248 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7249 /* |
[A-Za-z
]:[\\/]*) ;;
7250 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7252 configured_native_system_header_dir
="${withval}"
7255 configured_native_system_header_dir
=
7260 # Check whether --with-build-sysroot was given.
7261 if test "${with_build_sysroot+set}" = set; then :
7262 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7263 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7266 SYSROOT_CFLAGS_FOR_TARGET
=
7271 if test "x$prefix" = xNONE
; then
7272 test_prefix
=/usr
/local
7276 if test "x$exec_prefix" = xNONE
; then
7277 test_exec_prefix
=$test_prefix
7279 test_exec_prefix
=$exec_prefix
7283 # Check whether --with-sysroot was given.
7284 if test "${with_sysroot+set}" = set; then :
7285 withval
=$with_sysroot;
7286 case ${with_sysroot} in
7287 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7288 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7291 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7292 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7294 case ${TARGET_SYSTEM_ROOT} in
7295 "${test_prefix}"|
"${test_prefix}/"*|\
7296 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7297 '${prefix}'|
'${prefix}/'*|\
7298 '${exec_prefix}'|
'${exec_prefix}/'*)
7299 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7300 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7307 TARGET_SYSTEM_ROOT_DEFINE
=
7308 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7317 # Check whether --with-specs was given.
7318 if test "${with_specs+set}" = set; then :
7319 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7329 # Check whether --with-pkgversion was given.
7330 if test "${with_pkgversion+set}" = set; then :
7331 withval
=$with_pkgversion; case "$withval" in
7332 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7334 *) PKGVERSION
="($withval) " ;;
7345 # Check whether --with-bugurl was given.
7346 if test "${with_bugurl+set}" = set; then :
7347 withval
=$with_bugurl; case "$withval" in
7348 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7351 *) BUGURL
="$withval"
7355 BUGURL
="http://gcc.gnu.org/bugs.html"
7365 REPORT_BUGS_TO
="<$BUGURL>"
7366 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7373 # Sanity check enable_languages in case someone does not run the toplevel
7374 # configure # script.
7375 # Check whether --enable-languages was given.
7376 if test "${enable_languages+set}" = set; then :
7377 enableval
=$enable_languages; case ,${enable_languages}, in
7379 # go safe -- we cannot be much sure without the toplevel
7381 # analysis of which target libs are present and usable
7385 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7390 enable_languages
=c
,${enable_languages}
7399 # Check whether --with-multilib-list was given.
7400 if test "${with_multilib_list+set}" = set; then :
7401 withval
=$with_multilib_list; :
7403 with_multilib_list
=default
7407 # -------------------------
7408 # Checks for other programs
7409 # -------------------------
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7412 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7414 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7415 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7416 $as_echo_n "(cached) " >&6
7418 cat >conftest.
make <<\_ACEOF
7421 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7424 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7426 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7428 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7432 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7434 $as_echo "yes" >&6; }
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 SET_MAKE
="MAKE=${MAKE-make}"
7443 # Find some useful tools
7444 for ac_prog
in gawk mawk nawk
awk
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy
$ac_prog; ac_word
=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if test "${ac_cv_prog_AWK+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7453 if test -n "$AWK"; then
7454 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir
=.
7461 for ac_exec_ext
in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_AWK
="$ac_prog"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 if test -n "$AWK"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7476 $as_echo "$AWK" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7483 test -n "$AWK" && break
7486 # We need awk to create options.c and options.h.
7487 # Bail out if it's missing.
7489 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7493 $as_echo_n "checking whether ln -s works... " >&6; }
7494 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7497 rm -f conftestdata_t
7498 echo >conftestdata_f
7499 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7501 gcc_cv_prog_LN_S
="ln -s"
7503 if ln conftestdata_f conftestdata_t
2>/dev
/null
7507 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7509 gcc_cv_prog_LN_S
="cp -p"
7515 rm -f conftestdata_f conftestdata_t
7518 LN_S
="$gcc_cv_prog_LN_S"
7519 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7521 $as_echo "yes" >&6; }
7523 if test "$gcc_cv_prog_LN_S" = "ln"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7525 $as_echo "no, using ln" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7528 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7533 $as_echo_n "checking whether ln works... " >&6; }
7534 if test "${acx_cv_prog_LN+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7537 rm -f conftestdata_t
7538 echo >conftestdata_f
7539 if ln conftestdata_f conftestdata_t
2>/dev
/null
7545 rm -f conftestdata_f conftestdata_t
7548 if test $acx_cv_prog_LN = no
; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7551 $as_echo "no, using $LN" >&6; }
7553 LN
="$acx_cv_prog_LN"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7555 $as_echo "yes" >&6; }
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7560 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7566 if test -n "$RANLIB"; then
7567 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir
=.
7574 for ac_exec_ext
in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 RANLIB
=$ac_cv_prog_RANLIB
7587 if test -n "$RANLIB"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7589 $as_echo "$RANLIB" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7597 if test -z "$ac_cv_prog_RANLIB"; then
7598 ac_ct_RANLIB
=$RANLIB
7599 # Extract the first word of "ranlib", so it can be a program name with args.
7600 set dummy ranlib
; ac_word
=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7606 if test -n "$ac_ct_RANLIB"; then
7607 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir
=.
7614 for ac_exec_ext
in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7627 if test -n "$ac_ct_RANLIB"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7629 $as_echo "$ac_ct_RANLIB" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7635 if test "x$ac_ct_RANLIB" = x
; then
7638 case $cross_compiling:$ac_tool_warned in
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned
=yes ;;
7644 RANLIB
=$ac_ct_RANLIB
7647 RANLIB
="$ac_cv_prog_RANLIB"
7653 # Find a good install program. We prefer a C program (faster),
7654 # so one script is as good as another. But avoid the broken or
7655 # incompatible versions:
7656 # SysV /etc/install, /usr/sbin/install
7657 # SunOS /usr/etc/install
7658 # IRIX /sbin/install
7660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7662 # ./install, which can be erroneously created by make from ./install.sh.
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7664 $as_echo_n "checking for a BSD compatible install... " >&6; }
7665 if test -z "$INSTALL"; then
7666 if test "${ac_cv_path_install+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7669 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7670 for ac_dir
in $PATH; do
7671 # Account for people who put trailing slashes in PATH elements.
7673 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7675 # OSF1 and SCO ODT 3.0 have their own names for install.
7676 for ac_prog
in ginstall scoinst
install; do
7677 if test -f $ac_dir/$ac_prog; then
7678 if test $ac_prog = install &&
7679 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7680 # AIX install. It has an incompatible calling convention.
7681 # OSF/1 installbsd also uses dspmsg, but is usable.
7684 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7695 if test "${ac_cv_path_install+set}" = set; then
7696 INSTALL
="$ac_cv_path_install"
7698 # As a last resort, use the slow shell script. We don't cache a
7699 # path for INSTALL within a source directory, because that will
7700 # break other packages using the cache if that directory is
7701 # removed, or if the path is relative.
7702 INSTALL
="$ac_install_sh"
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7706 $as_echo "$INSTALL" >&6; }
7708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7709 # It thinks the first close brace ends the variable substitution.
7710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7712 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7715 # See if cmp has --ignore-initial.
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7717 $as_echo_n "checking for cmp's capabilities... " >&6; }
7718 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7723 gcc_cv_prog_cmp_skip
=slowcompare
7724 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7725 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7728 gcc_cv_prog_cmp_skip
=gnucompare
7731 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7732 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7733 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7736 gcc_cv_prog_cmp_skip
=fastcompare
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7744 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7745 make_compare_target
=$gcc_cv_prog_cmp_skip
7749 # See if we have the mktemp command.
7750 # Extract the first word of "mktemp", so it can be a program name with args.
7751 set dummy mktemp
; ac_word
=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7757 if test -n "$have_mktemp_command"; then
7758 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir
=.
7765 for ac_exec_ext
in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_have_mktemp_command
="yes"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7778 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7779 if test -n "$have_mktemp_command"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7781 $as_echo "$have_mktemp_command" >&6; }
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7789 # See if makeinfo has been installed and is modern enough
7790 # that we can use it.
7792 # Extract the first word of "makeinfo", so it can be a program name with args.
7793 set dummy makeinfo
; ac_word
=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7799 if test -n "$MAKEINFO"; then
7800 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir
=.
7807 for ac_exec_ext
in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_MAKEINFO
="makeinfo"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 MAKEINFO
=$ac_cv_prog_MAKEINFO
7820 if test -n "$MAKEINFO"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7822 $as_echo "$MAKEINFO" >&6; }
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7829 if test -n "$MAKEINFO"; then
7830 # Found it, now check the version.
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7832 $as_echo_n "checking for modern makeinfo... " >&6; }
7833 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7836 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7837 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7839 case $ac_prog_version in
7840 '') gcc_cv_prog_makeinfo_modern
=no
;;
7841 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7842 *) gcc_cv_prog_makeinfo_modern
=no
;;
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7847 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7849 gcc_cv_prog_makeinfo_modern
=no
7851 if test $gcc_cv_prog_makeinfo_modern = no
; then
7852 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7855 if test $gcc_cv_prog_makeinfo_modern = no
; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7857 *** Makeinfo is missing or too old.
7858 *** Info documentation will not be built." >&5
7859 $as_echo "$as_me: WARNING:
7860 *** Makeinfo is missing or too old.
7861 *** Info documentation will not be built." >&2;}
7868 # Is pod2man recent enough to regenerate manpages?
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7870 $as_echo_n "checking for recent Pod::Man... " >&6; }
7871 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7873 $as_echo "yes" >&6; }
7874 GENERATED_MANPAGES
=generated-manpages
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7882 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7887 # Extract the first word of "$ac_prog", so it can be a program name with args.
7888 set dummy
$ac_prog; ac_word
=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if test "${ac_cv_prog_FLEX+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7894 if test -n "$FLEX"; then
7895 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7901 test -z "$as_dir" && as_dir
=.
7902 for ac_exec_ext
in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_FLEX
="$ac_prog"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 FLEX
=$ac_cv_prog_FLEX
7915 if test -n "$FLEX"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7917 $as_echo "$FLEX" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7924 test -n "$FLEX" && break
7926 test -n "$FLEX" || FLEX
="$MISSING flex"
7930 for ac_prog
in bison
7932 # Extract the first word of "$ac_prog", so it can be a program name with args.
7933 set dummy
$ac_prog; ac_word
=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_BISON+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7939 if test -n "$BISON"; then
7940 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir
=.
7947 for ac_exec_ext
in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_BISON
="$ac_prog"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 BISON
=$ac_cv_prog_BISON
7960 if test -n "$BISON"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7962 $as_echo "$BISON" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7969 test -n "$BISON" && break
7971 test -n "$BISON" || BISON
="$MISSING bison"
7974 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7975 # check for build == host before using them.
7978 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7979 && test -d ..
/binutils
; then
7980 NM
='${objdir}/../binutils/nm-new'
7982 # Extract the first word of "nm", so it can be a program name with args.
7983 set dummy nm
; ac_word
=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_NM+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7989 if test -n "$NM"; then
7990 ac_cv_prog_NM
="$NM" # Let the user override the test.
7992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7996 test -z "$as_dir" && as_dir
=.
7997 for ac_exec_ext
in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8011 if test -n "$NM"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8013 $as_echo "$NM" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8023 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8024 && test -d ..
/binutils
; then
8025 AR
='${objdir}/../binutils/ar'
8027 # Extract the first word of "ar", so it can be a program name with args.
8028 set dummy
ar; ac_word
=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if test "${ac_cv_prog_AR+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8034 if test -n "$AR"; then
8035 ac_cv_prog_AR
="$AR" # Let the user override the test.
8037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8041 test -z "$as_dir" && as_dir
=.
8042 for ac_exec_ext
in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8056 if test -n "$AR"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8058 $as_echo "$AR" >&6; }
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8067 # The jit documentation looks better if built with sphinx, but can be
8068 # built with texinfo if sphinx is not available.
8069 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8070 # Extract the first word of "sphinx-build", so it can be a program name with args.
8071 set dummy sphinx-build
; ac_word
=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8077 if test -n "$doc_build_sys"; then
8078 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8084 test -z "$as_dir" && as_dir
=.
8085 for ac_exec_ext
in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_doc_build_sys
="sphinx"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8098 doc_build_sys
=$ac_cv_prog_doc_build_sys
8099 if test -n "$doc_build_sys"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8101 $as_echo "$doc_build_sys" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8109 # --------------------
8110 # Checks for C headers
8111 # --------------------
8113 # Need to reject headers which give warnings, so that the -Werror bootstrap
8114 # works later. *sigh* This needs to come before all header checks.
8116 ac_c_preproc_warn_flag
=yes
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8119 $as_echo_n "checking for ANSI C header files... " >&6; }
8120 if test "${ac_cv_header_stdc+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
8123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8138 if ac_fn_c_try_compile
"$LINENO"; then :
8139 ac_cv_header_stdc
=yes
8141 ac_cv_header_stdc
=no
8143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8145 if test $ac_cv_header_stdc = yes; then
8146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8153 $EGREP "memchr" >/dev
/null
2>&1; then :
8156 ac_cv_header_stdc
=no
8162 if test $ac_cv_header_stdc = yes; then
8163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8170 $EGREP "free" >/dev
/null
2>&1; then :
8173 ac_cv_header_stdc
=no
8179 if test $ac_cv_header_stdc = yes; then
8180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8181 if test "$cross_compiling" = yes; then :
8184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8188 #if ((' ' & 0x0FF) == 0x020)
8189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8192 # define ISLOWER(c) \
8193 (('a' <= (c) && (c) <= 'i') \
8194 || ('j' <= (c) && (c) <= 'r') \
8195 || ('s' <= (c) && (c) <= 'z'))
8196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8204 for (i = 0; i < 256; i++)
8205 if (XOR (islower (i), ISLOWER (i))
8206 || toupper (i) != TOUPPER (i))
8211 if ac_fn_c_try_run
"$LINENO"; then :
8214 ac_cv_header_stdc
=no
8216 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8217 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8223 $as_echo "$ac_cv_header_stdc" >&6; }
8224 if test $ac_cv_header_stdc = yes; then
8226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8231 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8232 if test "${ac_cv_header_time+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 #include <sys/types.h>
8238 #include <sys/time.h>
8244 if ((struct tm *) 0)
8250 if ac_fn_c_try_compile
"$LINENO"; then :
8251 ac_cv_header_time
=yes
8253 ac_cv_header_time
=no
8255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8258 $as_echo "$ac_cv_header_time" >&6; }
8259 if test $ac_cv_header_time = yes; then
8261 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8266 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8267 if test "${gcc_cv_header_string+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8273 #include <strings.h>
8282 if ac_fn_c_try_compile
"$LINENO"; then :
8283 gcc_cv_header_string
=yes
8285 gcc_cv_header_string
=no
8287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8290 $as_echo "$gcc_cv_header_string" >&6; }
8291 if test $gcc_cv_header_string = yes; then
8293 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8298 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8299 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8305 #include <sys/wait.h>
8307 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8310 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8318 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8323 if ac_fn_c_try_compile
"$LINENO"; then :
8324 ac_cv_header_sys_wait_h
=yes
8326 ac_cv_header_sys_wait_h
=no
8328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8331 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8332 if test $ac_cv_header_sys_wait_h = yes; then
8334 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8339 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8340 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8345 #include <sys/types.h>
8346 #include <termios.h>
8352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8353 $EGREP "yes" >/dev
/null
2>&1; then :
8354 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8356 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8362 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8364 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8366 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8367 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <sys/types.h>
8373 #include <sys/ioctl.h>
8379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8380 $EGREP "yes" >/dev
/null
2>&1; then :
8381 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8383 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8389 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8391 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8393 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8398 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8399 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8400 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8401 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8403 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8404 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8405 eval as_val
=\$
$as_ac_Header
8406 if test "x$as_val" = x
""yes; then :
8407 cat >>confdefs.h
<<_ACEOF
8408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8415 # Check for thread headers.
8416 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8417 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8423 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8424 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8431 # These tests can't be done till we know if we have limits.h.
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8433 $as_echo_n "checking for CHAR_BIT... " >&6; }
8434 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
8437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #ifdef HAVE_LIMITS_H
8446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8447 $EGREP "found" >/dev
/null
2>&1; then :
8448 gcc_cv_decl_char_bit
=yes
8450 gcc_cv_decl_char_bit
=no
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8457 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8458 if test $gcc_cv_decl_char_bit = no
; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8460 $as_echo_n "checking number of bits in a byte... " >&6; }
8461 if test "${gcc_cv_c_nbby+set}" = set; then :
8462 $as_echo_n "(cached) " >&6
8466 while test $i -lt 65; do
8467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8474 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8475 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8481 if ac_fn_c_try_compile
"$LINENO"; then :
8482 gcc_cv_c_nbby
=$i; break
8484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8487 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8491 $as_echo "$gcc_cv_c_nbby" >&6; }
8492 if test $gcc_cv_c_nbby = failed
; then
8493 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8496 cat >>confdefs.h
<<_ACEOF
8497 #define CHAR_BIT $gcc_cv_c_nbby
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8503 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8504 if test "${ac_cv_c_bigendian+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8507 ac_cv_c_bigendian
=unknown
8508 # See if we're dealing with a universal compiler.
8509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 #ifndef __APPLE_CC__
8512 not a universal capable compiler
8517 if ac_fn_c_try_compile
"$LINENO"; then :
8519 # Check for potential -arch flags. It is not universal unless
8520 # there are at least two -arch flags with different values.
8523 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8524 if test -n "$ac_prev"; then
8526 i?
86 | x86_64 | ppc | ppc64
)
8527 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8530 ac_cv_c_bigendian
=universal
8536 elif test "x$ac_word" = "x-arch"; then
8541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8542 if test $ac_cv_c_bigendian = unknown
; then
8543 # See if sys/param.h defines the BYTE_ORDER macro.
8544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 #include <sys/types.h>
8547 #include <sys/param.h>
8552 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8553 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8562 if ac_fn_c_try_compile
"$LINENO"; then :
8563 # It does; now see whether it defined to BIG_ENDIAN or not.
8564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 #include <sys/types.h>
8567 #include <sys/param.h>
8572 #if BYTE_ORDER != BIG_ENDIAN
8580 if ac_fn_c_try_compile
"$LINENO"; then :
8581 ac_cv_c_bigendian
=yes
8583 ac_cv_c_bigendian
=no
8585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8589 if test $ac_cv_c_bigendian = unknown
; then
8590 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8598 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8606 if ac_fn_c_try_compile
"$LINENO"; then :
8607 # It does; now see whether it defined to _BIG_ENDIAN or not.
8608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8623 if ac_fn_c_try_compile
"$LINENO"; then :
8624 ac_cv_c_bigendian
=yes
8626 ac_cv_c_bigendian
=no
8628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8632 if test $ac_cv_c_bigendian = unknown
; then
8633 # Compile a test program.
8634 if test "$cross_compiling" = yes; then :
8635 # Try to guess by grepping values from an object file.
8636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 short int ascii_mm[] =
8639 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8640 short int ascii_ii[] =
8641 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8642 int use_ascii (int i) {
8643 return ascii_mm[i] + ascii_ii[i];
8645 short int ebcdic_ii[] =
8646 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8647 short int ebcdic_mm[] =
8648 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8649 int use_ebcdic (int i) {
8650 return ebcdic_mm[i] + ebcdic_ii[i];
8657 return use_ascii (foo) == use_ebcdic (foo);
8662 if ac_fn_c_try_compile
"$LINENO"; then :
8663 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8664 ac_cv_c_bigendian
=yes
8666 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8667 if test "$ac_cv_c_bigendian" = unknown
; then
8668 ac_cv_c_bigendian
=no
8670 # finding both strings is unlikely to happen, but who knows?
8671 ac_cv_c_bigendian
=unknown
8675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 $ac_includes_default
8684 /* Are we little or big endian? From Harbison&Steele. */
8688 char c[sizeof (long int)];
8691 return u.c[sizeof (long int) - 1] == 1;
8697 if ac_fn_c_try_run
"$LINENO"; then :
8698 ac_cv_c_bigendian
=no
8700 ac_cv_c_bigendian
=yes
8702 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8703 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8709 $as_echo "$ac_cv_c_bigendian" >&6; }
8710 case $ac_cv_c_bigendian in #(
8712 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8718 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8722 as_fn_error
"unknown endianness
8723 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8727 # ----------------------
8728 # Checks for C++ headers
8729 # ----------------------
8732 ac_cpp
='$CXXCPP $CPPFLAGS'
8733 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8734 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8735 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8737 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8738 if test -z "$CXXCPP"; then
8739 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8742 # Double quotes because CXXCPP needs to be expanded
8743 for CXXCPP
in "$CXX -E" "/lib/cpp"
8746 for ac_cxx_preproc_warn_flag
in '' yes
8748 # Use a header file that comes with gcc, so configuring glibc
8749 # with a fresh cross-compiler works.
8750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8751 # <limits.h> exists even on freestanding compilers.
8752 # On the NeXT, cc -E runs the code through the compiler's parser,
8753 # not just through cpp. "Syntax error" is here to catch this case.
8754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8757 # include <limits.h>
8759 # include <assert.h>
8763 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8766 # Broken: fails on valid input.
8769 rm -f conftest.err conftest.
$ac_ext
8771 # OK, works on sane cases. Now check whether nonexistent headers
8772 # can be detected and how.
8773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 #include <ac_nonexistent.h>
8777 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8778 # Broken: success on invalid input.
8781 # Passes both tests.
8785 rm -f conftest.err conftest.
$ac_ext
8788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8789 rm -f conftest.err conftest.
$ac_ext
8790 if $ac_preproc_ok; then :
8795 ac_cv_prog_CXXCPP
=$CXXCPP
8798 CXXCPP
=$ac_cv_prog_CXXCPP
8800 ac_cv_prog_CXXCPP
=$CXXCPP
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8803 $as_echo "$CXXCPP" >&6; }
8805 for ac_cxx_preproc_warn_flag
in '' yes
8807 # Use a header file that comes with gcc, so configuring glibc
8808 # with a fresh cross-compiler works.
8809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8810 # <limits.h> exists even on freestanding compilers.
8811 # On the NeXT, cc -E runs the code through the compiler's parser,
8812 # not just through cpp. "Syntax error" is here to catch this case.
8813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8816 # include <limits.h>
8818 # include <assert.h>
8822 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8825 # Broken: fails on valid input.
8828 rm -f conftest.err conftest.
$ac_ext
8830 # OK, works on sane cases. Now check whether nonexistent headers
8831 # can be detected and how.
8832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #include <ac_nonexistent.h>
8836 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8837 # Broken: success on invalid input.
8840 # Passes both tests.
8844 rm -f conftest.err conftest.
$ac_ext
8847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8848 rm -f conftest.err conftest.
$ac_ext
8849 if $ac_preproc_ok; then :
8852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8855 See \`config.log' for more details." >&5
8856 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8857 See \`config.log' for more details." >&2;}; }
8861 ac_cpp
='$CPP $CPPFLAGS'
8862 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8863 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8864 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8868 ac_cpp
='$CXXCPP $CPPFLAGS'
8869 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8875 for ac_header
in unordered_map
8877 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8878 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8879 cat >>confdefs.h
<<_ACEOF
8880 #define HAVE_UNORDERED_MAP 1
8886 for ac_header
in tr1/unordered_map
8888 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8889 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8890 cat >>confdefs.h
<<_ACEOF
8891 #define HAVE_TR1_UNORDERED_MAP 1
8897 for ac_header
in ext
/hash_map
8899 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8900 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8901 cat >>confdefs.h
<<_ACEOF
8902 #define HAVE_EXT_HASH_MAP 1
8910 ac_cpp
='$CPP $CPPFLAGS'
8911 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8917 # Dependency checking.
8921 ac_cpp
='$CXXCPP $CPPFLAGS'
8922 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8926 rm -rf .tst
2>/dev
/null
8927 mkdir .tst
2>/dev
/null
8928 if test -d .tst
; then
8933 rmdir .tst
2>/dev
/null
8935 DEPDIR
="${am__leading_dot}deps"
8937 ac_config_commands
="$ac_config_commands depdir"
8940 ac_config_commands
="$ac_config_commands gccdepdir"
8943 depcc
="$CXX" am_compiler_list
=
8945 am_depcomp
=$ac_aux_dir/depcomp
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8947 $as_echo_n "checking dependency style of $depcc... " >&6; }
8948 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8949 $as_echo_n "(cached) " >&6
8951 if test -f "$am_depcomp"; then
8952 # We make a subdir and do the tests there. Otherwise we can end up
8953 # making bogus files that we don't know about and never remove. For
8954 # instance it was reported that on HP-UX the gcc test will end up
8955 # making a dummy file named `D' -- because `-MD' means `put the output
8958 # Copy depcomp to subdir because otherwise we won't find it if we're
8959 # using a relative directory.
8960 cp "$am_depcomp" conftest.dir
8962 # We will build objects and dependencies in a subdirectory because
8963 # it helps to detect inapplicable dependency modes. For instance
8964 # both Tru64's cc and ICC support -MD to output dependencies as a
8965 # side effect of compilation, but ICC will put the dependencies in
8966 # the current directory while Tru64 will put them in the object
8970 am_cv_CXX_dependencies_compiler_type
=none
8971 if test "$am_compiler_list" = ""; then
8972 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8974 for depmode
in $am_compiler_list; do
8975 if test $depmode = none
; then break; fi
8977 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8978 # Setup a source with many dependencies, because some compilers
8979 # like to wrap large dependency lists on column 80 (with \), and
8980 # we should not choose a depcomp mode which is confused by this.
8982 # We need to recreate these files for each test, as the compiler may
8983 # overwrite some of them when testing with obscure command lines.
8984 # This happens at least with the AIX C compiler.
8986 for i
in 1 2 3 4 5 6; do
8987 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8988 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8989 # Solaris 8's {/usr,}/bin/sh.
8990 touch sub
/conftst
$i.h
8992 echo "include sub/conftest.Po" > confmf
8994 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8995 # mode. It turns out that the SunPro C++ compiler does not properly
8996 # handle `-M -o', and we need to detect this.
8997 depcmd
="depmode=$depmode \
8998 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9000 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9001 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9002 if env
$depcmd > conftest.err
2>&1 &&
9003 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9004 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9005 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9006 # icc doesn't choke on unknown options, it will just issue warnings
9007 # or remarks (even with -Werror). So we grep stderr for any message
9008 # that says an option was ignored or not supported.
9009 # When given -MP, icc 7.0 and 7.1 complain thusly:
9010 # icc: Command line warning: ignoring option '-M'; no argument required
9011 # The diagnosis changed in icc 8.0:
9012 # icc: Command line remark: option '-MP' not supported
9013 if (grep 'ignoring option' conftest.err ||
9014 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9015 am_cv_CXX_dependencies_compiler_type
=$depmode
9016 $as_echo "$as_me:$LINENO: success" >&5
9020 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9021 sed -e 's/^/| /' < conftest.err
>&5
9027 am_cv_CXX_dependencies_compiler_type
=none
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9032 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9033 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9034 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9035 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9040 ac_cpp
='$CPP $CPPFLAGS'
9041 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9042 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9043 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9051 # These libraries may be used by collect2.
9052 # We may need a special search path to get them linked.
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9054 $as_echo_n "checking for collect2 libraries... " >&6; }
9055 if test "${gcc_cv_collect2_libs+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
9059 for libs
in '' -lld -lmld \
9060 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9061 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9082 if ac_fn_c_try_link
"$LINENO"; then :
9083 gcc_cv_collect2_libs
="$libs"; break
9085 rm -f core conftest.err conftest.
$ac_objext \
9086 conftest
$ac_exeext conftest.
$ac_ext
9089 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9092 $as_echo "$gcc_cv_collect2_libs" >&6; }
9093 case $gcc_cv_collect2_libs in
9095 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9099 # When building Ada code on Alpha, we need exc_resume which is usually in
9100 # -lexc. So test for it.
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9104 $as_echo_n "checking for library containing exc_resume... " >&6; }
9105 if test "${ac_cv_search_exc_resume+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9108 ac_func_search_save_LIBS
=$LIBS
9109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9122 return exc_resume ();
9127 for ac_lib
in '' exc
; do
9128 if test -z "$ac_lib"; then
9129 ac_res
="none required"
9132 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9134 if ac_fn_c_try_link
"$LINENO"; then :
9135 ac_cv_search_exc_resume
=$ac_res
9137 rm -f core conftest.err conftest.
$ac_objext \
9139 if test "${ac_cv_search_exc_resume+set}" = set; then :
9143 if test "${ac_cv_search_exc_resume+set}" = set; then :
9146 ac_cv_search_exc_resume
=no
9149 LIBS
=$ac_func_search_save_LIBS
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9152 $as_echo "$ac_cv_search_exc_resume" >&6; }
9153 ac_res
=$ac_cv_search_exc_resume
9154 if test "$ac_res" != no
; then :
9155 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9163 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9167 $as_echo_n "checking for library containing kstat_open... " >&6; }
9168 if test "${ac_cv_search_kstat_open+set}" = set; then :
9169 $as_echo_n "(cached) " >&6
9171 ac_func_search_save_LIBS
=$LIBS
9172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9175 /* Override any GCC internal prototype to avoid an error.
9176 Use char because int might match the return type of a GCC
9177 builtin and then its argument prototype would still apply. */
9185 return kstat_open ();
9190 for ac_lib
in '' kstat
; do
9191 if test -z "$ac_lib"; then
9192 ac_res
="none required"
9195 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9197 if ac_fn_c_try_link
"$LINENO"; then :
9198 ac_cv_search_kstat_open
=$ac_res
9200 rm -f core conftest.err conftest.
$ac_objext \
9202 if test "${ac_cv_search_kstat_open+set}" = set; then :
9206 if test "${ac_cv_search_kstat_open+set}" = set; then :
9209 ac_cv_search_kstat_open
=no
9212 LIBS
=$ac_func_search_save_LIBS
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9215 $as_echo "$ac_cv_search_kstat_open" >&6; }
9216 ac_res
=$ac_cv_search_kstat_open
9217 if test "$ac_res" != no
; then :
9218 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9222 EXTRA_GCC_LIBS
="$LIBS"
9226 # Some systems put ldexp and frexp in libm instead of libc; assume
9227 # they're both in the same place. jcf-dump needs them.
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9231 $as_echo_n "checking for library containing ldexp... " >&6; }
9232 if test "${ac_cv_search_ldexp+set}" = set; then :
9233 $as_echo_n "(cached) " >&6
9235 ac_func_search_save_LIBS
=$LIBS
9236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9239 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
9254 for ac_lib
in '' m
; do
9255 if test -z "$ac_lib"; then
9256 ac_res
="none required"
9259 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9261 if ac_fn_c_try_link
"$LINENO"; then :
9262 ac_cv_search_ldexp
=$ac_res
9264 rm -f core conftest.err conftest.
$ac_objext \
9266 if test "${ac_cv_search_ldexp+set}" = set; then :
9270 if test "${ac_cv_search_ldexp+set}" = set; then :
9273 ac_cv_search_ldexp
=no
9276 LIBS
=$ac_func_search_save_LIBS
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9279 $as_echo "$ac_cv_search_ldexp" >&6; }
9280 ac_res
=$ac_cv_search_ldexp
9281 if test "$ac_res" != no
; then :
9282 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9290 # Use <inttypes.h> only if it exists,
9291 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9294 $as_echo_n "checking for inttypes.h... " >&6; }
9295 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #define __STDC_FORMAT_MACROS
9301 #include <sys/types.h>
9302 #include <inttypes.h>
9314 if ac_fn_c_try_compile
"$LINENO"; then :
9315 gcc_cv_header_inttypes_h
=yes
9317 gcc_cv_header_inttypes_h
=no
9319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9323 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9324 if test $gcc_cv_header_inttypes_h = yes; then
9326 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9332 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9333 popen sysconf strsignal getrusage nl_langinfo \
9334 gettimeofday mbstowcs wcswidth mmap setlocale \
9335 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
9337 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9338 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9339 eval as_val
=\$
$as_ac_var
9340 if test "x$as_val" = x
""yes; then :
9341 cat >>confdefs.h
<<_ACEOF
9342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9349 if test x
$ac_cv_func_mbstowcs = xyes
; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9351 $as_echo_n "checking whether mbstowcs works... " >&6; }
9352 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9355 if test "$cross_compiling" = yes; then :
9356 gcc_cv_func_mbstowcs_works
=yes
9358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9367 if ac_fn_c_try_run
"$LINENO"; then :
9368 gcc_cv_func_mbstowcs_works
=yes
9370 gcc_cv_func_mbstowcs_works
=no
9372 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9373 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9378 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9379 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9381 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9386 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9387 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9391 cat >>confdefs.h
<<_ACEOF
9397 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9398 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9402 cat >>confdefs.h
<<_ACEOF
9403 #define caddr_t char *
9410 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9411 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9412 gcc_header_sys_mman_h
=yes
9414 gcc_header_sys_mman_h
=no
9417 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9418 if test "x$ac_cv_func_mmap" = x
""yes; then :
9424 if test "$gcc_header_sys_mman_h" != yes \
9425 ||
test "$gcc_func_mmap" != yes; then
9426 gcc_cv_func_mmap_file
=no
9427 gcc_cv_func_mmap_dev_zero
=no
9428 gcc_cv_func_mmap_anon
=no
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9431 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9432 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9435 # Add a system to this blacklist if
9436 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9437 # memory area containing the same data that you'd get if you applied
9438 # read() to the same fd. The only system known to have a problem here
9439 # is VMS, where text files have record structure.
9442 gcc_cv_func_mmap_file
=no
;;
9444 gcc_cv_func_mmap_file
=yes;;
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9448 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9450 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9451 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9454 # Add a system to this blacklist if it has mmap() but /dev/zero
9455 # does not exist, or if mmapping /dev/zero does not give anonymous
9456 # zeroed pages with both the following properties:
9457 # 1. If you map N consecutive pages in with one call, and then
9458 # unmap any subset of those pages, the pages that were not
9459 # explicitly unmapped remain accessible.
9460 # 2. If you map two adjacent blocks of memory and then unmap them
9461 # both at once, they must both go away.
9462 # Systems known to be in this category are Windows (all variants),
9465 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9466 gcc_cv_func_mmap_dev_zero
=no
;;
9468 gcc_cv_func_mmap_dev_zero
=yes;;
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9472 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9474 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9476 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9477 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 #include <sys/types.h>
9483 #include <sys/mman.h>
9486 #ifndef MAP_ANONYMOUS
9487 #define MAP_ANONYMOUS MAP_ANON
9493 int n = MAP_ANONYMOUS;
9498 if ac_fn_c_try_compile
"$LINENO"; then :
9499 gcc_cv_decl_map_anon
=yes
9501 gcc_cv_decl_map_anon
=no
9503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9506 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9508 if test $gcc_cv_decl_map_anon = no
; then
9509 gcc_cv_func_mmap_anon
=no
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9512 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9513 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9516 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9517 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9518 # doesn't give anonymous zeroed pages with the same properties listed
9519 # above for use of /dev/zero.
9520 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9522 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9523 gcc_cv_func_mmap_anon
=no
;;
9525 gcc_cv_func_mmap_anon
=yes;;
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9529 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9533 if test $gcc_cv_func_mmap_file = yes; then
9535 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9538 if test $gcc_cv_func_mmap_dev_zero = yes; then
9540 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9543 if test $gcc_cv_func_mmap_anon = yes; then
9545 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9552 # Under VMS, vfork works very differently than on Unix. The standard test
9553 # won't work, and it isn't easily adaptable. It makes more sense to
9555 ac_cv_func_vfork_works
=yes
9558 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9559 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9563 cat >>confdefs.h
<<_ACEOF
9569 for ac_header
in vfork.h
9571 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9572 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9573 cat >>confdefs.h
<<_ACEOF
9574 #define HAVE_VFORK_H 1
9580 for ac_func
in fork vfork
9582 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9583 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9584 eval as_val
=\$
$as_ac_var
9585 if test "x$as_val" = x
""yes; then :
9586 cat >>confdefs.h
<<_ACEOF
9587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9593 if test "x$ac_cv_func_fork" = xyes
; then
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9595 $as_echo_n "checking for working fork... " >&6; }
9596 if test "${ac_cv_func_fork_works+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9599 if test "$cross_compiling" = yes; then :
9600 ac_cv_func_fork_works
=cross
9602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 $ac_includes_default
9609 /* By Ruediger Kuhlmann. */
9616 if ac_fn_c_try_run
"$LINENO"; then :
9617 ac_cv_func_fork_works
=yes
9619 ac_cv_func_fork_works
=no
9621 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9622 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9627 $as_echo "$ac_cv_func_fork_works" >&6; }
9630 ac_cv_func_fork_works
=$ac_cv_func_fork
9632 if test "x$ac_cv_func_fork_works" = xcross
; then
9634 *-*-amigaos* |
*-*-msdosdjgpp*)
9635 # Override, as these systems have only a dummy fork() stub
9636 ac_cv_func_fork_works
=no
9639 ac_cv_func_fork_works
=yes
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9643 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9645 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9646 if test "x$ac_cv_func_vfork" = xyes
; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9648 $as_echo_n "checking for working vfork... " >&6; }
9649 if test "${ac_cv_func_vfork_works+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9652 if test "$cross_compiling" = yes; then :
9653 ac_cv_func_vfork_works
=cross
9655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 /* Thanks to Paul Eggert for this test. */
9658 $ac_includes_default
9659 #include <sys/wait.h>
9663 /* On some sparc systems, changes by the child to local and incoming
9664 argument registers are propagated back to the parent. The compiler
9665 is told about this with #include <vfork.h>, but some compilers
9666 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9667 static variable whose address is put into a register that is
9668 clobbered by the vfork. */
9671 sparc_address_test (int arg)
9673 sparc_address_test (arg) int arg;
9694 pid_t parent = getpid ();
9697 sparc_address_test (0);
9702 /* Here is another test for sparc vfork register problems. This
9703 test uses lots of local variables, at least as many local
9704 variables as main has allocated so far including compiler
9705 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9706 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9707 reuse the register of parent for one of the local variables,
9708 since it will think that parent can't possibly be used any more
9709 in this routine. Assigning to the local variable will thus
9710 munge parent in the parent process. */
9712 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9713 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9714 /* Convince the compiler that p..p7 are live; otherwise, it might
9715 use the same hardware register for all 8 local variables. */
9716 if (p != p1 || p != p2 || p != p3 || p != p4
9717 || p != p5 || p != p6 || p != p7)
9720 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9721 from child file descriptors. If the child closes a descriptor
9722 before it execs or exits, this munges the parent's descriptor
9723 as well. Test for this by closing stdout in the child. */
9724 _exit(close(fileno(stdout)) != 0);
9729 while (wait(&status) != child)
9732 /* Was there some problem with vforking? */
9735 /* Did the child fail? (This shouldn't happen.) */
9738 /* Did the vfork/compiler bug occur? */
9739 || parent != getpid()
9741 /* Did the file descriptor bug occur? */
9742 || fstat(fileno(stdout), &st) != 0
9747 if ac_fn_c_try_run
"$LINENO"; then :
9748 ac_cv_func_vfork_works
=yes
9750 ac_cv_func_vfork_works
=no
9752 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9753 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9758 $as_echo "$ac_cv_func_vfork_works" >&6; }
9761 if test "x$ac_cv_func_fork_works" = xcross
; then
9762 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9764 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9767 if test "x$ac_cv_func_vfork_works" = xyes
; then
9769 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9773 $as_echo "#define vfork fork" >>confdefs.h
9776 if test "x$ac_cv_func_fork_works" = xyes
; then
9778 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9783 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9784 # iconv() prototype.
9786 ac_cpp
='$CXXCPP $CPPFLAGS'
9787 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9792 if test "X$prefix" = "XNONE"; then
9793 acl_final_prefix
="$ac_default_prefix"
9795 acl_final_prefix
="$prefix"
9797 if test "X$exec_prefix" = "XNONE"; then
9798 acl_final_exec_prefix
='${prefix}'
9800 acl_final_exec_prefix
="$exec_prefix"
9802 acl_save_prefix
="$prefix"
9803 prefix
="$acl_final_prefix"
9804 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9805 prefix
="$acl_save_prefix"
9808 # Check whether --with-gnu-ld was given.
9809 if test "${with_gnu_ld+set}" = set; then :
9810 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9815 # Prepare PATH_SEPARATOR.
9816 # The user is always right.
9817 if test "${PATH_SEPARATOR+set}" != set; then
9818 echo "#! /bin/sh" >conf$$.sh
9819 echo "exit 0" >>conf$$.sh
9821 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9829 if test "$GCC" = yes; then
9830 # Check if gcc -print-prog-name=ld gives a path.
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9832 $as_echo_n "checking for ld used by GCC... " >&6; }
9835 # gcc leaves a trailing carriage return which upsets mingw
9836 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9838 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9841 # Accept absolute paths.
9842 [\\/]* |
[A-Za-z
]:[\\/]*)
9843 re_direlt
='/[^/][^/]*/\.\./'
9844 # Canonicalize the path of ld
9845 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9846 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9847 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9849 test -z "$LD" && LD
="$ac_prog"
9852 # If it fails, then pretend we aren't using GCC.
9856 # If it is relative, then search for the first ld in PATH.
9860 elif test "$with_gnu_ld" = yes; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9862 $as_echo_n "checking for GNU ld... " >&6; }
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9865 $as_echo_n "checking for non-GNU ld... " >&6; }
9867 if test "${acl_cv_path_LD+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9870 if test -z "$LD"; then
9871 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9872 for ac_dir
in $PATH; do
9873 test -z "$ac_dir" && ac_dir
=.
9874 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9875 acl_cv_path_LD
="$ac_dir/$ac_prog"
9876 # Check to see if the program is GNU ld. I'd rather use --version,
9877 # but apparently some GNU ld's only accept -v.
9878 # Break only if it was the GNU/non-GNU ld that we prefer.
9879 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9880 test "$with_gnu_ld" != no
&& break
9882 test "$with_gnu_ld" != yes && break
9888 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9892 LD
="$acl_cv_path_LD"
9893 if test -n "$LD"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9895 $as_echo "$LD" >&6; }
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9900 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9902 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9903 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9906 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9907 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9908 acl_cv_prog_gnu_ld
=yes
9910 acl_cv_prog_gnu_ld
=no
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9914 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9915 with_gnu_ld
=$acl_cv_prog_gnu_ld
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9920 $as_echo_n "checking for shared library run path origin... " >&6; }
9921 if test "${acl_cv_rpath+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9925 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9926 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9933 $as_echo "$acl_cv_rpath" >&6; }
9935 libext
="$acl_cv_libext"
9936 shlibext
="$acl_cv_shlibext"
9937 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9938 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9939 hardcode_direct
="$acl_cv_hardcode_direct"
9940 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9941 # Check whether --enable-rpath was given.
9942 if test "${enable_rpath+set}" = set; then :
9943 enableval
=$enable_rpath; :
9957 acl_save_prefix
="$prefix"
9958 prefix
="$acl_final_prefix"
9959 acl_save_exec_prefix
="$exec_prefix"
9960 exec_prefix
="$acl_final_exec_prefix"
9962 eval additional_includedir
=\"$includedir\"
9963 eval additional_libdir
=\"$libdir\"
9965 exec_prefix
="$acl_save_exec_prefix"
9966 prefix
="$acl_save_prefix"
9969 # Check whether --with-libiconv-prefix was given.
9970 if test "${with_libiconv_prefix+set}" = set; then :
9971 withval
=$with_libiconv_prefix;
9972 if test "X$withval" = "Xno"; then
9975 if test "X$withval" = "X"; then
9977 acl_save_prefix
="$prefix"
9978 prefix
="$acl_final_prefix"
9979 acl_save_exec_prefix
="$exec_prefix"
9980 exec_prefix
="$acl_final_exec_prefix"
9982 eval additional_includedir
=\"$includedir\"
9983 eval additional_libdir
=\"$libdir\"
9985 exec_prefix
="$acl_save_exec_prefix"
9986 prefix
="$acl_save_prefix"
9989 additional_includedir
="$withval/include"
9990 additional_libdir
="$withval/lib"
10001 names_already_handled
=
10002 names_next_round
='iconv '
10003 while test -n "$names_next_round"; do
10004 names_this_round
="$names_next_round"
10006 for name
in $names_this_round; do
10008 for n
in $names_already_handled; do
10009 if test "$n" = "$name"; then
10010 already_handled
=yes
10014 if test -z "$already_handled"; then
10015 names_already_handled
="$names_already_handled $name"
10016 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10017 eval value
=\"\
$HAVE_LIB$uppername\"
10018 if test -n "$value"; then
10019 if test "$value" = yes; then
10020 eval value
=\"\
$LIB$uppername\"
10021 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10022 eval value
=\"\
$LTLIB$uppername\"
10023 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10032 if test $use_additional = yes; then
10033 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10034 found_dir
="$additional_libdir"
10035 found_so
="$additional_libdir/lib$name.$shlibext"
10036 if test -f "$additional_libdir/lib$name.la"; then
10037 found_la
="$additional_libdir/lib$name.la"
10040 if test -f "$additional_libdir/lib$name.$libext"; then
10041 found_dir
="$additional_libdir"
10042 found_a
="$additional_libdir/lib$name.$libext"
10043 if test -f "$additional_libdir/lib$name.la"; then
10044 found_la
="$additional_libdir/lib$name.la"
10049 if test "X$found_dir" = "X"; then
10050 for x
in $LDFLAGS $LTLIBICONV; do
10052 acl_save_prefix
="$prefix"
10053 prefix
="$acl_final_prefix"
10054 acl_save_exec_prefix
="$exec_prefix"
10055 exec_prefix
="$acl_final_exec_prefix"
10057 exec_prefix
="$acl_save_exec_prefix"
10058 prefix
="$acl_save_prefix"
10062 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10063 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10065 found_so
="$dir/lib$name.$shlibext"
10066 if test -f "$dir/lib$name.la"; then
10067 found_la
="$dir/lib$name.la"
10070 if test -f "$dir/lib$name.$libext"; then
10072 found_a
="$dir/lib$name.$libext"
10073 if test -f "$dir/lib$name.la"; then
10074 found_la
="$dir/lib$name.la"
10080 if test "X$found_dir" != "X"; then
10085 if test "X$found_dir" != "X"; then
10086 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10087 if test "X$found_so" != "X"; then
10088 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10089 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10092 for x
in $ltrpathdirs; do
10093 if test "X$x" = "X$found_dir"; then
10098 if test -z "$haveit"; then
10099 ltrpathdirs
="$ltrpathdirs $found_dir"
10101 if test "$hardcode_direct" = yes; then
10102 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10104 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10105 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10107 for x
in $rpathdirs; do
10108 if test "X$x" = "X$found_dir"; then
10113 if test -z "$haveit"; then
10114 rpathdirs
="$rpathdirs $found_dir"
10118 for x
in $LDFLAGS $LIBICONV; do
10120 acl_save_prefix
="$prefix"
10121 prefix
="$acl_final_prefix"
10122 acl_save_exec_prefix
="$exec_prefix"
10123 exec_prefix
="$acl_final_exec_prefix"
10125 exec_prefix
="$acl_save_exec_prefix"
10126 prefix
="$acl_save_prefix"
10128 if test "X$x" = "X-L$found_dir"; then
10133 if test -z "$haveit"; then
10134 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10136 if test "$hardcode_minus_L" != no
; then
10137 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10139 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10145 if test "X$found_a" != "X"; then
10146 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10148 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10151 additional_includedir
=
10152 case "$found_dir" in
10154 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10155 additional_includedir
="$basedir/include"
10158 if test "X$additional_includedir" != "X"; then
10159 if test "X$additional_includedir" != "X/usr/include"; then
10161 if test "X$additional_includedir" = "X/usr/local/include"; then
10162 if test -n "$GCC"; then
10164 linux
*) haveit
=yes;;
10168 if test -z "$haveit"; then
10169 for x
in $CPPFLAGS $INCICONV; do
10171 acl_save_prefix
="$prefix"
10172 prefix
="$acl_final_prefix"
10173 acl_save_exec_prefix
="$exec_prefix"
10174 exec_prefix
="$acl_final_exec_prefix"
10176 exec_prefix
="$acl_save_exec_prefix"
10177 prefix
="$acl_save_prefix"
10179 if test "X$x" = "X-I$additional_includedir"; then
10184 if test -z "$haveit"; then
10185 if test -d "$additional_includedir"; then
10186 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10192 if test -n "$found_la"; then
10193 save_libdir
="$libdir"
10194 case "$found_la" in
10195 */* |
*\\*) .
"$found_la" ;;
10196 *) .
"./$found_la" ;;
10198 libdir
="$save_libdir"
10199 for dep
in $dependency_libs; do
10202 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10203 if test "X$additional_libdir" != "X/usr/lib"; then
10205 if test "X$additional_libdir" = "X/usr/local/lib"; then
10206 if test -n "$GCC"; then
10208 linux
*) haveit
=yes;;
10212 if test -z "$haveit"; then
10214 for x
in $LDFLAGS $LIBICONV; do
10216 acl_save_prefix
="$prefix"
10217 prefix
="$acl_final_prefix"
10218 acl_save_exec_prefix
="$exec_prefix"
10219 exec_prefix
="$acl_final_exec_prefix"
10221 exec_prefix
="$acl_save_exec_prefix"
10222 prefix
="$acl_save_prefix"
10224 if test "X$x" = "X-L$additional_libdir"; then
10229 if test -z "$haveit"; then
10230 if test -d "$additional_libdir"; then
10231 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10235 for x
in $LDFLAGS $LTLIBICONV; do
10237 acl_save_prefix
="$prefix"
10238 prefix
="$acl_final_prefix"
10239 acl_save_exec_prefix
="$exec_prefix"
10240 exec_prefix
="$acl_final_exec_prefix"
10242 exec_prefix
="$acl_save_exec_prefix"
10243 prefix
="$acl_save_prefix"
10245 if test "X$x" = "X-L$additional_libdir"; then
10250 if test -z "$haveit"; then
10251 if test -d "$additional_libdir"; then
10252 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10259 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10260 if test "$enable_rpath" != no
; then
10262 for x
in $rpathdirs; do
10263 if test "X$x" = "X$dir"; then
10268 if test -z "$haveit"; then
10269 rpathdirs
="$rpathdirs $dir"
10272 for x
in $ltrpathdirs; do
10273 if test "X$x" = "X$dir"; then
10278 if test -z "$haveit"; then
10279 ltrpathdirs
="$ltrpathdirs $dir"
10284 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10287 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10290 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10291 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10297 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10298 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10304 if test "X$rpathdirs" != "X"; then
10305 if test -n "$hardcode_libdir_separator"; then
10307 for found_dir
in $rpathdirs; do
10308 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10310 acl_save_libdir
="$libdir"
10312 eval flag
=\"$hardcode_libdir_flag_spec\"
10313 libdir
="$acl_save_libdir"
10314 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10316 for found_dir
in $rpathdirs; do
10317 acl_save_libdir
="$libdir"
10318 libdir
="$found_dir"
10319 eval flag
=\"$hardcode_libdir_flag_spec\"
10320 libdir
="$acl_save_libdir"
10321 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10325 if test "X$ltrpathdirs" != "X"; then
10326 for found_dir
in $ltrpathdirs; do
10327 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10337 am_save_CPPFLAGS
="$CPPFLAGS"
10339 for element
in $INCICONV; do
10341 for x
in $CPPFLAGS; do
10343 acl_save_prefix
="$prefix"
10344 prefix
="$acl_final_prefix"
10345 acl_save_exec_prefix
="$exec_prefix"
10346 exec_prefix
="$acl_final_exec_prefix"
10348 exec_prefix
="$acl_save_exec_prefix"
10349 prefix
="$acl_save_prefix"
10351 if test "X$x" = "X$element"; then
10356 if test -z "$haveit"; then
10357 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10363 $as_echo_n "checking for iconv... " >&6; }
10364 if test "${am_cv_func_iconv+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
10368 am_cv_func_iconv
="no, consider installing GNU libiconv"
10370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 #include <stdlib.h>
10377 iconv_t cd = iconv_open("","");
10378 iconv(cd,NULL,NULL,NULL,NULL);
10384 if ac_fn_cxx_try_link
"$LINENO"; then :
10385 am_cv_func_iconv
=yes
10387 rm -f core conftest.err conftest.
$ac_objext \
10388 conftest
$ac_exeext conftest.
$ac_ext
10389 if test "$am_cv_func_iconv" != yes; then
10390 am_save_LIBS
="$LIBS"
10391 LIBS
="$LIBS $LIBICONV"
10392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 #include <stdlib.h>
10399 iconv_t cd = iconv_open("","");
10400 iconv(cd,NULL,NULL,NULL,NULL);
10406 if ac_fn_cxx_try_link
"$LINENO"; then :
10407 am_cv_lib_iconv
=yes
10408 am_cv_func_iconv
=yes
10410 rm -f core conftest.err conftest.
$ac_objext \
10411 conftest
$ac_exeext conftest.
$ac_ext
10412 LIBS
="$am_save_LIBS"
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10417 $as_echo "$am_cv_func_iconv" >&6; }
10418 if test "$am_cv_func_iconv" = yes; then
10420 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10423 if test "$am_cv_lib_iconv" = yes; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10425 $as_echo_n "checking how to link with libiconv... " >&6; }
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10427 $as_echo "$LIBICONV" >&6; }
10429 CPPFLAGS
="$am_save_CPPFLAGS"
10436 if test "$am_cv_func_iconv" = yes; then
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10438 $as_echo_n "checking for iconv declaration... " >&6; }
10439 if test "${am_cv_proto_iconv+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10446 #include <stdlib.h>
10452 #if defined(__STDC__) || defined(__cplusplus)
10453 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10466 if ac_fn_cxx_try_compile
"$LINENO"; then :
10467 am_cv_proto_iconv_arg1
=""
10469 am_cv_proto_iconv_arg1
="const"
10471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10472 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);"
10475 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10477 }$am_cv_proto_iconv" >&5
10479 }$am_cv_proto_iconv" >&6; }
10481 cat >>confdefs.h
<<_ACEOF
10482 #define ICONV_CONST $am_cv_proto_iconv_arg1
10488 ac_cpp
='$CPP $CPPFLAGS'
10489 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10494 # Until we have in-tree GNU iconv:
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10500 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10501 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
10504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 #include <locale.h>
10515 if ac_fn_c_try_link
"$LINENO"; then :
10516 am_cv_val_LC_MESSAGES
=yes
10518 am_cv_val_LC_MESSAGES
=no
10520 rm -f core conftest.err conftest.
$ac_objext \
10521 conftest
$ac_exeext conftest.
$ac_ext
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10524 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10525 if test $am_cv_val_LC_MESSAGES = yes; then
10527 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10534 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10535 if test "${am_cv_langinfo_codeset+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 #include <langinfo.h>
10544 char* cs = nl_langinfo(CODESET);
10549 if ac_fn_c_try_link
"$LINENO"; then :
10550 am_cv_langinfo_codeset
=yes
10552 am_cv_langinfo_codeset
=no
10554 rm -f core conftest.err conftest.
$ac_objext \
10555 conftest
$ac_exeext conftest.
$ac_ext
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10559 $as_echo "$am_cv_langinfo_codeset" >&6; }
10560 if test $am_cv_langinfo_codeset = yes; then
10562 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10567 # We will need to find libiberty.h and ansidecl.h
10568 saved_CFLAGS
="$CFLAGS"
10569 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10570 saved_CXXFLAGS
="$CXXFLAGS"
10571 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10572 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10573 stpcpy strnlen strsignal strstr strverscmp \
10574 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10575 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
10577 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10579 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10580 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10581 $as_echo_n "(cached) " >&6
10583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10586 #define $ac_tr_decl 1
10588 #include "ansidecl.h"
10589 #include "system.h"
10595 char *(*pfn) = (char *(*)) $ac_func ;
10601 if ac_fn_c_try_compile
"$LINENO"; then :
10602 eval "gcc_cv_have_decl_$ac_func=yes"
10604 eval "gcc_cv_have_decl_$ac_func=no"
10606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10609 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10612 #define $ac_tr_decl 1
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10618 #define $ac_tr_decl 0
10626 for ac_func
in getrlimit setrlimit getrusage
10628 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10630 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10631 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10632 $as_echo_n "(cached) " >&6
10634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10637 #define $ac_tr_decl 1
10639 #include "ansidecl.h"
10640 #include "system.h"
10641 #ifdef HAVE_SYS_RESOURCE_H
10642 #include <sys/resource.h>
10650 char *(*pfn) = (char *(*)) $ac_func ;
10656 if ac_fn_c_try_compile
"$LINENO"; then :
10657 eval "gcc_cv_have_decl_$ac_func=yes"
10659 eval "gcc_cv_have_decl_$ac_func=no"
10661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10664 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10666 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10667 #define $ac_tr_decl 1
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10673 #define $ac_tr_decl 0
10681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10684 #include "ansidecl.h"
10685 #include "system.h"
10686 #ifdef HAVE_SYS_RESOURCE_H
10687 #include <sys/resource.h>
10698 if ac_fn_c_try_compile
"$LINENO"; then :
10702 $as_echo "#define rlim_t long" >>confdefs.h
10705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10707 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10708 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10709 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10710 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10711 for ac_func
in ldgetname
10713 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10715 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10716 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10717 $as_echo_n "(cached) " >&6
10719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10722 #define $ac_tr_decl 1
10724 #include "ansidecl.h"
10725 #include "system.h"
10726 #ifdef HAVE_LDFCN_H
10737 char *(*pfn) = (char *(*)) $ac_func ;
10743 if ac_fn_c_try_compile
"$LINENO"; then :
10744 eval "gcc_cv_have_decl_$ac_func=yes"
10746 eval "gcc_cv_have_decl_$ac_func=no"
10748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10751 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10753 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10754 #define $ac_tr_decl 1
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10760 #define $ac_tr_decl 0
10768 for ac_func
in times
10770 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10772 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10773 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10774 $as_echo_n "(cached) " >&6
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 #define $ac_tr_decl 1
10781 #include "ansidecl.h"
10782 #include "system.h"
10783 #ifdef HAVE_SYS_TIMES_H
10784 #include <sys/times.h>
10792 char *(*pfn) = (char *(*)) $ac_func ;
10798 if ac_fn_c_try_compile
"$LINENO"; then :
10799 eval "gcc_cv_have_decl_$ac_func=yes"
10801 eval "gcc_cv_have_decl_$ac_func=no"
10803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10806 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10809 #define $ac_tr_decl 1
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10815 #define $ac_tr_decl 0
10823 for ac_func
in sigaltstack
10825 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10827 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10828 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10829 $as_echo_n "(cached) " >&6
10831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10834 #define $ac_tr_decl 1
10836 #include "ansidecl.h"
10837 #include "system.h"
10838 #include <signal.h>
10845 char *(*pfn) = (char *(*)) $ac_func ;
10851 if ac_fn_c_try_compile
"$LINENO"; then :
10852 eval "gcc_cv_have_decl_$ac_func=yes"
10854 eval "gcc_cv_have_decl_$ac_func=no"
10856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10859 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10861 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10862 #define $ac_tr_decl 1
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10868 #define $ac_tr_decl 0
10876 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10879 ac_cpp
='$CXXCPP $CPPFLAGS'
10880 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10884 for ac_func
in madvise
10886 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10888 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10889 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10890 $as_echo_n "(cached) " >&6
10892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10895 #define $ac_tr_decl 1
10897 #include "ansidecl.h"
10898 #include "system.h"
10905 char *(*pfn) = (char *(*)) $ac_func ;
10911 if ac_fn_cxx_try_compile
"$LINENO"; then :
10912 eval "gcc_cv_have_decl_$ac_func=yes"
10914 eval "gcc_cv_have_decl_$ac_func=no"
10916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10919 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10921 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10922 #define $ac_tr_decl 1
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10928 #define $ac_tr_decl 0
10936 ac_cpp
='$CPP $CPPFLAGS'
10937 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10938 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10939 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10942 # More time-related stuff.
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10944 $as_echo_n "checking for struct tms... " >&6; }
10945 if test "${ac_cv_struct_tms+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10952 #include "ansidecl.h"
10953 #include "system.h"
10954 #ifdef HAVE_SYS_TIMES_H
10955 #include <sys/times.h>
10966 if ac_fn_c_try_compile
"$LINENO"; then :
10967 ac_cv_struct_tms
=yes
10969 ac_cv_struct_tms
=no
10971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10974 $as_echo "$ac_cv_struct_tms" >&6; }
10975 if test $ac_cv_struct_tms = yes; then
10977 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10981 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10982 # revisit after autoconf 2.50.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10984 $as_echo_n "checking for clock_t... " >&6; }
10985 if test "${gcc_cv_type_clock_t+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 #include "ansidecl.h"
10993 #include "system.h"
11003 if ac_fn_c_try_compile
"$LINENO"; then :
11004 gcc_cv_type_clock_t
=yes
11006 gcc_cv_type_clock_t
=no
11008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11011 $as_echo "$gcc_cv_type_clock_t" >&6; }
11012 if test $gcc_cv_type_clock_t = yes; then
11014 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11018 # Check if F_SETLKW is supported by fcntl.
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11020 $as_echo_n "checking for F_SETLKW... " >&6; }
11021 if test "${ac_cv_f_setlkw+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11038 return fcntl (1, F_SETLKW, &fl);
11043 if ac_fn_c_try_compile
"$LINENO"; then :
11048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11051 $as_echo "$ac_cv_f_setlkw" >&6; }
11052 if test $ac_cv_f_setlkw = yes; then
11054 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11058 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11059 CFLAGS
="$saved_CFLAGS"
11060 CXXFLAGS
="$saved_CXXFLAGS"
11062 # mkdir takes a single argument on some systems.
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11064 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11065 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11071 #include <sys/types.h>
11072 #ifdef HAVE_SYS_STAT_H
11073 # include <sys/stat.h>
11075 #ifdef HAVE_UNISTD_H
11076 # include <unistd.h>
11078 #ifdef HAVE_DIRECT_H
11079 # include <direct.h>
11089 if ac_fn_c_try_compile
"$LINENO"; then :
11090 gcc_cv_mkdir_takes_one_arg
=no
11092 gcc_cv_mkdir_takes_one_arg
=yes
11094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11097 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11098 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11100 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11111 # With Setjmp/Longjmp based exception handling.
11112 # Check whether --enable-sjlj-exceptions was given.
11113 if test "${enable_sjlj_exceptions+set}" = set; then :
11114 enableval
=$enable_sjlj_exceptions; case $target in
11116 if test $enableval != yes; then
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11118 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11123 force_sjlj_exceptions
=yes
11127 force_sjlj_exceptions
=yes
11131 force_sjlj_exceptions
=yes
11135 force_sjlj_exceptions
=no
11140 if test $force_sjlj_exceptions = yes; then
11141 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11143 cat >>confdefs.h
<<_ACEOF
11144 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11149 # --------------------------------------------------------
11150 # Build, host, and target specific configuration fragments
11151 # --------------------------------------------------------
11153 # Collect build-machine-specific information.
11154 .
${srcdir}/config.build
11156 # Collect host-machine-specific information.
11157 .
${srcdir}/config.
host
11161 # Collect target-machine-specific information.
11162 .
${srcdir}/config.gcc
11164 extra_objs
="${host_extra_objs} ${extra_objs}"
11165 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11167 # Default the target-machine variables that were not explicitly set.
11168 if test x
"$tm_file" = x
11169 then tm_file
=$cpu_type/$cpu_type.h
; fi
11171 if test x
"$extra_headers" = x
11172 then extra_headers
=; fi
11174 if test x
$md_file = x
11175 then md_file
=$cpu_type/$cpu_type.md
; fi
11177 if test x
$out_file = x
11178 then out_file
=$cpu_type/$cpu_type.c
; fi
11180 if test x
"$tmake_file" = x
11181 then tmake_file
=$cpu_type/t-
$cpu_type
11184 # Support --enable-initfini-array.
11185 if test x
$enable_initfini_array != xno
; then
11186 tm_file
="${tm_file} initfini-array.h"
11189 if test x
"$dwarf2" = xyes
11190 then tm_file
="$tm_file tm-dwarf2.h"
11193 # Say what files are being used for the output code and MD file.
11194 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11195 echo "Using \`$srcdir/config/$md_file' as machine description file."
11197 # If any of the xm_file variables contain nonexistent files, warn
11198 # about them and drop them.
11201 for x
in $build_xm_file; do
11202 if test -f $srcdir/config
/$x
11204 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11205 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11208 build_xm_file
="$bx"
11211 for x
in $host_xm_file; do
11212 if test -f $srcdir/config
/$x
11214 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11215 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11221 for x
in $xm_file; do
11222 if test -f $srcdir/config
/$x
11224 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11225 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11231 for f
in $tm_file; do
11234 if test $count = ax
; then
11235 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11237 echo "Using the following target machine macro files:"
11238 for f
in $tm_file; do
11239 echo " $srcdir/config/$f"
11243 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11245 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11249 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11251 cat >>confdefs.h
<<_ACEOF
11252 #define HAVE_GNU_LD $gnu_ld_bool
11256 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11258 cat >>confdefs.h
<<_ACEOF
11259 #define HAVE_GNU_AS $gnu_as_bool
11264 for f
in $host_xm_file; do
11267 if test $count = a
; then
11269 elif test $count = ax
; then
11270 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11272 echo "Using the following host machine macro files:"
11273 for f
in $host_xm_file; do
11274 echo " $srcdir/config/$f"
11277 echo "Using ${out_host_hook_obj} for host machine hooks."
11279 if test "$host_xm_file" != "$build_xm_file"; then
11281 for f
in $build_xm_file; do
11284 if test $count = a
; then
11286 elif test $count = ax
; then
11287 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11289 echo "Using the following build machine macro files:"
11290 for f
in $build_xm_file; do
11291 echo " $srcdir/config/$f"
11296 if test -n "$configured_native_system_header_dir"; then
11297 native_system_header_dir
=$configured_native_system_header_dir
11299 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11303 powerpc
*-*-darwin*)
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11305 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11306 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11312 #include <sys/cdefs.h>
11313 #include <sys/signal.h>
11314 #include <ucontext.h>
11315 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11318 if ac_fn_c_try_compile
"$LINENO"; then :
11319 gcc_cv_mcontext_underscores
=no
11321 gcc_cv_mcontext_underscores
=yes
11323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11326 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11327 if test $gcc_cv_mcontext_underscores = yes; then
11329 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11339 # Check if a valid thread package
11340 case ${enable_threads} in
11343 target_thread_file
='single'
11347 target_thread_file
='single'
11349 aix | dce | lynx | mipssde | posix | rtems | \
11350 single | tpf | vxworks | win32
)
11351 target_thread_file
=${enable_threads}
11354 echo "${enable_threads} is an unknown thread package" 1>&2
11359 if test x
${thread_file} = x
; then
11360 # No thread file set by target-specific clauses in config.gcc,
11361 # so use file chosen by default logic above
11362 thread_file
=${target_thread_file}
11370 if test x
$enable___cxa_atexit = xyes || \
11371 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11372 if test x
$host = x
$target; then
11374 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11375 # keyed to flag_use_cxa_atexit
11383 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11384 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11387 echo "__cxa_atexit can't be enabled on this target"
11393 # We can't check for __cxa_atexit when building a cross, so assume
11397 if test x
$use_cxa_atexit = xyes
; then
11399 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11404 # Look for a file containing extra machine modes.
11405 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11406 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11409 cat >>confdefs.h
<<_ACEOF
11410 #define EXTRA_MODES_FILE "config/$extra_modes"
11415 # Convert extra_options into a form suitable for Makefile use.
11418 for f
in $extra_options; do
11419 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11420 all_opt_files
="$all_opt_files $srcdir/config/$f"
11424 # auto-host.h is the file containing items generated by autoconf and is
11425 # the first file included by config.h.
11426 # If host=build, it is correct to have bconfig include auto-host.h
11427 # as well. If host!=build, we are in error and need to do more
11428 # work to find out the build config parameters.
11429 if test x
$host = x
$build
11431 build_auto
=auto-host.h
11433 # We create a subdir, then run autoconf in the subdir.
11434 # To prevent recursion we set host and build for the new
11435 # invocation of configure to the build for this invocation
11442 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11443 *) realsrcdir
=..
/${srcdir};;
11445 # Clearing GMPINC is necessary to prevent host headers being
11446 # used by the build compiler. Defining GENERATOR_FILE stops
11447 # system.h from including gmp.h.
11448 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11449 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11450 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11451 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11452 ${realsrcdir}/configure \
11453 --enable-languages=${enable_languages-all} \
11454 --target=$target_alias --host=$build_alias --build=$build_alias
11456 # We just finished tests for the build machine, so rename
11457 # the file auto-build.h in the gcc directory.
11458 mv auto-host.h ..
/auto-build.h
11461 build_auto
=auto-build.h
11465 tm_file
="${tm_file} defaults.h"
11466 tm_p_file
="${tm_p_file} tm-preds.h"
11467 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11468 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11469 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11470 # put this back in temporarily.
11471 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11477 # Compile in configure arguments.
11478 if test -f configargs.h
; then
11479 # Being re-configured.
11480 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11481 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11483 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11486 # Double all backslashes and backslash all quotes to turn
11487 # gcc_config_arguments into a C string.
11488 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11489 $gcc_config_arguments
11491 gcc_config_arguments_str
=`cat conftest.out`
11494 cat > configargs.h
<<EOF
11495 /* Generated automatically. */
11496 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11497 static const char thread_model[] = "$thread_file";
11499 static const struct {
11500 const char *name, *value;
11501 } configure_default_options[] = $configure_default_options;
11504 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11505 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11506 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11507 if test -f $srcdir/REVISION
; then
11508 gcc_REVISION
=`cat $srcdir/REVISION`
11512 cat > plugin-version.h
<<EOF
11513 #include "configargs.h"
11515 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11516 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11517 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11518 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11520 static char basever[] = "$gcc_BASEVER";
11521 static char datestamp[] = "$gcc_DATESTAMP";
11522 static char devphase[] = "$gcc_DEVPHASE";
11523 static char revision[] = "$gcc_REVISION";
11525 /* FIXME plugins: We should make the version information more precise.
11526 One way to do is to add a checksum. */
11528 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11529 devphase, revision,
11530 configuration_arguments};
11533 # Internationalization
11534 # If we haven't got the data from the intl directory,
11535 # assume NLS is disabled.
11544 if test -f ..
/intl
/config.intl
; then
11545 . ..
/intl
/config.intl
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11548 $as_echo_n "checking whether NLS is requested... " >&6; }
11549 if test x
"$USE_NLS" != xyes
; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; }
11556 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11560 $as_echo_n "checking for catalogs to be installed... " >&6; }
11561 # Look for .po and .gmo files in the source directory.
11564 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11565 # If there aren't any .gmo files the shell will give us the
11566 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11568 case "$cat" in *\
**)
11571 # The quadruple backslash is collapsed to a double backslash
11572 # by the backticks, then collapsed again by the double quotes,
11573 # leaving us with one backslash in the sed expression (right
11574 # before the dot that mustn't act as a wildcard).
11575 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11576 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11577 # The user is allowed to set LINGUAS to a list of languages to
11578 # install catalogs for. If it's empty that means "all of them."
11579 if test "x$LINGUAS" = x
; then
11580 CATALOGS
="$CATALOGS $cat"
11581 XLINGUAS
="$XLINGUAS $lang"
11583 case "$LINGUAS" in *$lang*)
11584 CATALOGS
="$CATALOGS $cat"
11585 XLINGUAS
="$XLINGUAS $lang"
11590 LINGUAS
="$XLINGUAS"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11592 $as_echo "$LINGUAS" >&6; }
11605 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11606 # -liconv on the link line twice.
11607 case "$LIBINTL" in *$LIBICONV*)
11611 # Check whether --enable-secureplt was given.
11612 if test "${enable_secureplt+set}" = set; then :
11613 enableval
=$enable_secureplt;
11617 # Check whether --enable-leading-mingw64-underscores was given.
11618 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11619 enableval
=$enable_leading_mingw64_underscores;
11622 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11624 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11628 # Check whether --enable-cld was given.
11629 if test "${enable_cld+set}" = set; then :
11630 enableval
=$enable_cld;
11636 # Check whether --enable-frame-pointer was given.
11637 if test "${enable_frame_pointer+set}" = set; then :
11638 enableval
=$enable_frame_pointer;
11642 linux
* | darwin
[8912]*)
11643 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11645 enable_frame_pointer
=no
11648 enable_frame_pointer
=yes
11655 # Windows32 Registry support for specifying GCC installation paths.
11656 # Check whether --enable-win32-registry was given.
11657 if test "${enable_win32_registry+set}" = set; then :
11658 enableval
=$enable_win32_registry;
11663 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11664 if test "x$enable_win32_registry" != xno
; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11666 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11667 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11670 ac_func_search_save_LIBS
=$LIBS
11671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11680 char RegOpenKeyExA ();
11684 return RegOpenKeyExA ();
11689 for ac_lib
in '' advapi32
; do
11690 if test -z "$ac_lib"; then
11691 ac_res
="none required"
11694 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11696 if ac_fn_c_try_link
"$LINENO"; then :
11697 ac_cv_search_RegOpenKeyExA
=$ac_res
11699 rm -f core conftest.err conftest.
$ac_objext \
11701 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11705 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11708 ac_cv_search_RegOpenKeyExA
=no
11710 rm conftest.
$ac_ext
11711 LIBS
=$ac_func_search_save_LIBS
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11714 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11715 ac_res
=$ac_cv_search_RegOpenKeyExA
11716 if test "$ac_res" != no
; then :
11717 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11720 enable_win32_registry
=no
11725 if test "x$enable_win32_registry" != xno
; then
11727 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11730 if test "x$enable_win32_registry" != xyes \
11731 && test "x$enable_win32_registry" != x
; then
11733 cat >>confdefs.h
<<_ACEOF
11734 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11742 # Get an absolute path to the GCC top-level source directory
11743 holddir
=`${PWDCMD-pwd}`
11745 topdir
=`${PWDCMD-pwd}`
11748 # Conditionalize the makefile for this host machine.
11750 for f
in ${host_xmake_file}
11752 if test -f ${srcdir}/config
/$f
11754 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11758 # Conditionalize the makefile for this target machine.
11760 for f
in ${tmake_file}
11762 if test -f ${srcdir}/config
/$f
11764 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11767 tmake_file
="${tmake_file_}"
11769 out_object_file
=`basename $out_file .c`.o
11770 common_out_object_file
=`basename $common_out_file .c`.o
11772 tm_file_list
="options.h"
11773 tm_include_list
="options.h insn-constants.h"
11774 for f
in $tm_file; do
11777 f
=`echo $f | sed 's/^..//'`
11778 tm_file_list
="${tm_file_list} $f"
11779 tm_include_list
="${tm_include_list} $f"
11782 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11783 tm_include_list
="${tm_include_list} $f"
11786 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11787 tm_include_list
="${tm_include_list} config/$f"
11794 for f
in $tm_p_file; do
11797 tm_p_file_list
="${tm_p_file_list} $f"
11798 tm_p_include_list
="${tm_p_include_list} $f"
11801 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11802 tm_p_include_list
="${tm_p_include_list} config/$f"
11808 for f
in $xm_file; do
11811 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11812 xm_include_list
="${xm_include_list} $f"
11815 xm_file_list
="${xm_file_list} $f"
11816 xm_include_list
="${xm_include_list} $f"
11819 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11820 xm_include_list
="${xm_include_list} config/$f"
11826 host_xm_include_list
=
11827 for f
in $host_xm_file; do
11830 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11831 host_xm_include_list
="${host_xm_include_list} $f"
11834 host_xm_file_list
="${host_xm_file_list} $f"
11835 host_xm_include_list
="${host_xm_include_list} $f"
11838 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11839 host_xm_include_list
="${host_xm_include_list} config/$f"
11844 build_xm_file_list
=
11845 for f
in $build_xm_file; do
11848 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11849 build_xm_include_list
="${build_xm_include_list} $f"
11851 auto-build.h | auto-host.h
)
11852 build_xm_file_list
="${build_xm_file_list} $f"
11853 build_xm_include_list
="${build_xm_include_list} $f"
11856 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11857 build_xm_include_list
="${build_xm_include_list} config/$f"
11862 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11863 # cross-compiler which does not use the native headers and libraries.
11864 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11867 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11869 if test "x$with_build_sysroot" != x
; then
11870 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11872 # This value is used, even on a native system, because
11873 # CROSS_SYSTEM_HEADER_DIR is just
11874 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11875 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11878 if test x
$host != x
$target
11880 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11882 SYSTEM_HEADER_DIR
=$build_system_header_dir
11883 case "$host","$target" in
11884 # Darwin crosses can use the host system's libraries and headers,
11885 # because of the fat library support. Of course, it must be the
11886 # same version of Darwin on both sides. Allow the user to
11887 # just say --target=foo-darwin without a version number to mean
11888 # "the version on this system".
11889 *-*-darwin*,*-*-darwin*)
11890 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11891 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11892 if test $hostos = $targetos -o $targetos = darwin
; then
11894 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11899 i?
86-*-*,x86_64-
*-* \
11900 | powerpc
*-*-*,powerpc64
*-*-*)
11901 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11906 if test "x$with_headers" = x
; then
11913 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11914 SYSTEM_HEADER_DIR
=$build_system_header_dir
11917 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
11918 if test "x$with_headers" != x
; then
11919 target_header_dir
=$with_headers
11920 elif test "x$with_sysroot" = x
; then
11921 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
11922 elif test "x$with_build_sysroot" != "x"; then
11923 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
11924 elif test "x$with_sysroot" = xyes
; then
11925 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11927 target_header_dir
="${with_sysroot}${native_system_header_dir}"
11930 target_header_dir
=${native_system_header_dir}
11933 # If this is a cross-compiler that does not
11934 # have its own set of headers then define
11937 # If this is using newlib, without having the headers available now,
11938 # then define inhibit_libc in LIBGCC2_CFLAGS.
11939 # This prevents libgcc2 from containing any code which requires libc
11941 : ${inhibit_libc=false}
11942 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11943 test x
$with_newlib = xyes
; } &&
11944 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
11949 # When building gcc with a cross-compiler, we need to adjust things so
11950 # that the generator programs are still built with the native compiler.
11951 # Also, we cannot run fixincludes.
11953 # These are the normal (build=host) settings:
11954 CC_FOR_BUILD
='$(CC)'
11955 CXX_FOR_BUILD
='$(CXX)'
11956 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11957 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11958 BUILD_LDFLAGS
='$(LDFLAGS)'
11959 STMP_FIXINC
=stmp-fixinc
11961 # And these apply if build != host, or we are generating coverage data
11962 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11964 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11965 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11966 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11969 # Expand extra_headers to include complete path.
11970 # This substitutes for lots of t-* files.
11971 extra_headers_list
=
11972 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11973 for file in ${extra_headers} ; do
11974 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11977 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11978 if test x
"$use_gcc_tgmath" = xyes
11979 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11982 # Define collect2 in Makefile.
11983 case $host_can_use_collect2 in
11985 *) collect2
='collect2$(exeext)' ;;
11989 # Add a definition of USE_COLLECT2 if system wants one.
11990 case $use_collect2 in
11991 no
) use_collect2
= ;;
11994 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11995 xm_defines
="${xm_defines} USE_COLLECT2"
11996 case $host_can_use_collect2 in
11998 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12005 cat >>confdefs.h
<<_ACEOF
12006 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12010 # ---------------------------
12011 # Assembler & linker features
12012 # ---------------------------
12014 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12015 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12016 # However when ld-new is first executed from the build tree, libtool will
12017 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12018 # to the build tree. While doing this we need to use the previous-stage
12019 # linker, or we have an infinite loop. The presence of a shell script as
12020 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12021 # the gcc/collect-ld script. So we need to know how libtool works, or
12022 # exec-tool will fail.
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12028 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12033 macro_version
='2.2.7a'
12034 macro_revision
='1.3134'
12048 ltmain
="$ac_aux_dir/ltmain.sh"
12050 # Backslashify metacharacters that are still active within
12051 # double-quoted strings.
12052 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12054 # Same as above, but do not quote variable references.
12055 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12057 # Sed substitution to delay expansion of an escaped shell variable in a
12058 # double_quote_subst'ed string.
12059 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12061 # Sed substitution to delay expansion of an escaped single quote.
12062 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12064 # Sed substitution to avoid accidental globbing in evaled expressions
12065 no_glob_subst
='s/\*/\\\*/g'
12067 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12068 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12072 $as_echo_n "checking how to print strings... " >&6; }
12073 # Test print first, because it will be a builtin if present.
12074 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12075 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12077 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12080 # Use this function as a fallback that always works.
12081 func_fallback_echo ()
12083 eval 'cat <<_LTECHO_EOF
12087 ECHO='func_fallback_echo
'
12090 # func_echo_all arg...
12091 # Invoke $ECHO with all args, space-separated.
12098 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12099 $as_echo "printf" >&6; } ;;
12100 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12101 $as_echo "print -r" >&6; } ;;
12102 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12103 $as_echo "cat" >&6; } ;;
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12120 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12121 if test "${ac_cv_path_SED+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12124 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12125 for ac_i in 1 2 3 4 5 6 7; do
12126 ac_script="$ac_script$as_nl$ac_script"
12128 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12129 { ac_script=; unset ac_script;}
12130 if test -z "$SED"; then
12131 ac_path_SED_found=false
12132 # Loop through the user's path and
test for each of PROGNAME-LIST
12133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12134 for as_dir
in $PATH
12137 test -z "$as_dir" && as_dir
=.
12138 for ac_prog
in sed gsed
; do
12139 for ac_exec_ext
in '' $ac_executable_extensions; do
12140 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12141 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12142 # Check for GNU ac_path_SED and select it if it is found.
12143 # Check for GNU $ac_path_SED
12144 case `"$ac_path_SED" --version 2>&1` in
12146 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12149 $as_echo_n 0123456789 >"conftest.in"
12152 cat "conftest.in" "conftest.in" >"conftest.tmp"
12153 mv "conftest.tmp" "conftest.in"
12154 cp "conftest.in" "conftest.nl"
12155 $as_echo '' >> "conftest.nl"
12156 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12157 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12158 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12159 if test $ac_count -gt ${ac_path_SED_max-0}; then
12160 # Best one so far, save it but keep looking for a better one
12161 ac_cv_path_SED
="$ac_path_SED"
12162 ac_path_SED_max
=$ac_count
12164 # 10*(2^10) chars as input seems more than enough
12165 test $ac_count -gt 10 && break
12167 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12170 $ac_path_SED_found && break 3
12175 if test -z "$ac_cv_path_SED"; then
12176 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12179 ac_cv_path_SED
=$SED
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12184 $as_echo "$ac_cv_path_SED" >&6; }
12185 SED
="$ac_cv_path_SED"
12188 test -z "$SED" && SED
=sed
12189 Xsed
="$SED -e 1s/^X//"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12202 $as_echo_n "checking for fgrep... " >&6; }
12203 if test "${ac_cv_path_FGREP+set}" = set; then :
12204 $as_echo_n "(cached) " >&6
12206 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12207 then ac_cv_path_FGREP
="$GREP -F"
12209 if test -z "$FGREP"; then
12210 ac_path_FGREP_found
=false
12211 # Loop through the user's path and test for each of PROGNAME-LIST
12212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12213 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12216 test -z "$as_dir" && as_dir
=.
12217 for ac_prog
in fgrep
; do
12218 for ac_exec_ext
in '' $ac_executable_extensions; do
12219 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12220 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12221 # Check for GNU ac_path_FGREP and select it if it is found.
12222 # Check for GNU $ac_path_FGREP
12223 case `"$ac_path_FGREP" --version 2>&1` in
12225 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12228 $as_echo_n 0123456789 >"conftest.in"
12231 cat "conftest.in" "conftest.in" >"conftest.tmp"
12232 mv "conftest.tmp" "conftest.in"
12233 cp "conftest.in" "conftest.nl"
12234 $as_echo 'FGREP' >> "conftest.nl"
12235 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12236 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12237 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12238 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12239 # Best one so far, save it but keep looking for a better one
12240 ac_cv_path_FGREP
="$ac_path_FGREP"
12241 ac_path_FGREP_max
=$ac_count
12243 # 10*(2^10) chars as input seems more than enough
12244 test $ac_count -gt 10 && break
12246 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12249 $ac_path_FGREP_found && break 3
12254 if test -z "$ac_cv_path_FGREP"; then
12255 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12258 ac_cv_path_FGREP
=$FGREP
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12264 $as_echo "$ac_cv_path_FGREP" >&6; }
12265 FGREP
="$ac_cv_path_FGREP"
12268 test -z "$GREP" && GREP
=grep
12288 # Check whether --with-gnu-ld was given.
12289 if test "${with_gnu_ld+set}" = set; then :
12290 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12296 if test "$GCC" = yes; then
12297 # Check if gcc -print-prog-name=ld gives a path.
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12299 $as_echo_n "checking for ld used by $CC... " >&6; }
12302 # gcc leaves a trailing carriage return which upsets mingw
12303 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12305 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12308 # Accept absolute paths.
12310 re_direlt
='/[^/][^/]*/\.\./'
12311 # Canonicalize the pathname of ld
12312 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12313 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12314 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12316 test -z "$LD" && LD
="$ac_prog"
12319 # If it fails, then pretend we aren't using GCC.
12323 # If it is relative, then search for the first ld in PATH.
12324 with_gnu_ld
=unknown
12327 elif test "$with_gnu_ld" = yes; then
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12329 $as_echo_n "checking for GNU ld... " >&6; }
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12332 $as_echo_n "checking for non-GNU ld... " >&6; }
12334 if test "${lt_cv_path_LD+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12337 if test -z "$LD"; then
12338 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12339 for ac_dir
in $PATH; do
12341 test -z "$ac_dir" && ac_dir
=.
12342 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12343 lt_cv_path_LD
="$ac_dir/$ac_prog"
12344 # Check to see if the program is GNU ld. I'd rather use --version,
12345 # but apparently some variants of GNU ld only accept -v.
12346 # Break only if it was the GNU/non-GNU ld that we prefer.
12347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12348 *GNU
* |
*'with BFD'*)
12349 test "$with_gnu_ld" != no
&& break
12352 test "$with_gnu_ld" != yes && break
12359 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12363 LD
="$lt_cv_path_LD"
12364 if test -n "$LD"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12366 $as_echo "$LD" >&6; }
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12371 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12373 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12374 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12377 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12378 case `$LD -v 2>&1 </dev/null` in
12379 *GNU
* |
*'with BFD'*)
12380 lt_cv_prog_gnu_ld
=yes
12383 lt_cv_prog_gnu_ld
=no
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12388 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12389 with_gnu_ld
=$lt_cv_prog_gnu_ld
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12400 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12401 if test "${lt_cv_path_NM+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12404 if test -n "$NM"; then
12405 # Let the user override the test.
12406 lt_cv_path_NM
="$NM"
12408 lt_nm_to_check
="${ac_tool_prefix}nm"
12409 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12410 lt_nm_to_check
="$lt_nm_to_check nm"
12412 for lt_tmp_nm
in $lt_nm_to_check; do
12413 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12414 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12416 test -z "$ac_dir" && ac_dir
=.
12417 tmp_nm
="$ac_dir/$lt_tmp_nm"
12418 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12419 # Check to see if the nm accepts a BSD-compat flag.
12420 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12421 # nm: unknown option "B" ignored
12422 # Tru64's nm complains that /dev/null is an invalid object file
12423 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12424 */dev
/null
* |
*'Invalid file or object type'*)
12425 lt_cv_path_NM
="$tmp_nm -B"
12429 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12431 lt_cv_path_NM
="$tmp_nm -p"
12435 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12436 continue # so that we can try to find one that supports BSD flags
12445 : ${lt_cv_path_NM=no}
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12449 $as_echo "$lt_cv_path_NM" >&6; }
12450 if test "$lt_cv_path_NM" != "no"; then
12451 NM
="$lt_cv_path_NM"
12453 # Didn't find any BSD compatible name lister, look for dumpbin.
12454 if test -n "$DUMPBIN"; then :
12455 # Let the user override the test.
12457 if test -n "$ac_tool_prefix"; then
12458 for ac_prog
in dumpbin
"link -dump"
12460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12461 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12467 if test -n "$DUMPBIN"; then
12468 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12471 for as_dir
in $PATH
12474 test -z "$as_dir" && as_dir
=.
12475 for ac_exec_ext
in '' $ac_executable_extensions; do
12476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12477 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 DUMPBIN
=$ac_cv_prog_DUMPBIN
12488 if test -n "$DUMPBIN"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12490 $as_echo "$DUMPBIN" >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12497 test -n "$DUMPBIN" && break
12500 if test -z "$DUMPBIN"; then
12501 ac_ct_DUMPBIN
=$DUMPBIN
12502 for ac_prog
in dumpbin
"link -dump"
12504 # Extract the first word of "$ac_prog", so it can be a program name with args.
12505 set dummy
$ac_prog; ac_word
=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507 $as_echo_n "checking for $ac_word... " >&6; }
12508 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12511 if test -n "$ac_ct_DUMPBIN"; then
12512 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12515 for as_dir
in $PATH
12518 test -z "$as_dir" && as_dir
=.
12519 for ac_exec_ext
in '' $ac_executable_extensions; do
12520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12521 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12532 if test -n "$ac_ct_DUMPBIN"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12534 $as_echo "$ac_ct_DUMPBIN" >&6; }
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12541 test -n "$ac_ct_DUMPBIN" && break
12544 if test "x$ac_ct_DUMPBIN" = x
; then
12547 case $cross_compiling:$ac_tool_warned in
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12551 ac_tool_warned
=yes ;;
12553 DUMPBIN
=$ac_ct_DUMPBIN
12557 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12559 DUMPBIN
="$DUMPBIN -symbols"
12567 if test "$DUMPBIN" != ":"; then
12571 test -z "$NM" && NM
=nm
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12579 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12580 if test "${lt_cv_nm_interface+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12583 lt_cv_nm_interface
="BSD nm"
12584 echo "int some_variable = 0;" > conftest.
$ac_ext
12585 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12586 (eval "$ac_compile" 2>conftest.err
)
12587 cat conftest.err
>&5
12588 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12589 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12590 cat conftest.err
>&5
12591 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12592 cat conftest.out
>&5
12593 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12594 lt_cv_nm_interface
="MS dumpbin"
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12599 $as_echo "$lt_cv_nm_interface" >&6; }
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12602 $as_echo_n "checking whether ln -s works... " >&6; }
12604 if test "$LN_S" = "ln -s"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606 $as_echo "yes" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12609 $as_echo "no, using $LN_S" >&6; }
12612 # find the maximum length of command line arguments
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12614 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12615 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12623 # On DJGPP, this test can blow up pretty badly due to problems in libc
12624 # (any single argument exceeding 2000 bytes causes a buffer overrun
12625 # during glob expansion). Even if it were fixed, the result of this
12626 # check would be larger than it should be.
12627 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12631 # Under GNU Hurd, this test is not required because there is
12632 # no limit to the length of command line arguments.
12633 # Libtool will interpret -1 as no limit whatsoever
12634 lt_cv_sys_max_cmd_len
=-1;
12637 cygwin
* | mingw
* | cegcc
*)
12638 # On Win9x/ME, this test blows up -- it succeeds, but takes
12639 # about 5 minutes as the teststring grows exponentially.
12640 # Worse, since 9x/ME are not pre-emptively multitasking,
12641 # you end up with a "frozen" computer, even though with patience
12642 # the test eventually succeeds (with a max line length of 256k).
12643 # Instead, let's just punt: use the minimum linelength reported by
12644 # all of the supported platforms: 8192 (on NT/2K/XP).
12645 lt_cv_sys_max_cmd_len
=8192;
12649 # On MiNT this can take a long time and run out of memory.
12650 lt_cv_sys_max_cmd_len
=8192;
12654 # On AmigaOS with pdksh, this test takes hours, literally.
12655 # So we just punt and use a minimum line length of 8192.
12656 lt_cv_sys_max_cmd_len
=8192;
12659 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12660 # This has been around since 386BSD, at least. Likely further.
12661 if test -x /sbin
/sysctl
; then
12662 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12663 elif test -x /usr
/sbin
/sysctl
; then
12664 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12666 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12668 # And add a safety zone
12669 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12670 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12674 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12675 lt_cv_sys_max_cmd_len
=196608
12679 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12680 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12681 # nice to cause kernel panics so lets avoid the loop below.
12682 # First set a reasonable default.
12683 lt_cv_sys_max_cmd_len
=16384
12685 if test -x /sbin
/sysconfig
; then
12686 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12687 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12692 lt_cv_sys_max_cmd_len
=102400
12694 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12695 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12696 if test -n "$kargmax"; then
12697 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12699 lt_cv_sys_max_cmd_len
=32768
12703 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12704 if test -n "$lt_cv_sys_max_cmd_len"; then
12705 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12706 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12708 # Make teststring a little bigger before we do anything with it.
12709 # a 1K string should be a reasonable start.
12710 for i
in 1 2 3 4 5 6 7 8 ; do
12711 teststring
=$teststring$teststring
12713 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12714 # If test is not a shell built-in, we'll probably end up computing a
12715 # maximum length that is only half of the actual maximum length, but
12717 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12718 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12719 test $i != 17 # 1/2 MB should be enough
12722 teststring
=$teststring$teststring
12724 # Only check the string length outside the loop.
12725 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12727 # Add a significant safety factor because C++ compilers can tack on
12728 # massive amounts of additional arguments before passing them to the
12729 # linker. It appears as though 1/2 is a usable value.
12730 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12737 if test -n $lt_cv_sys_max_cmd_len ; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12739 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12742 $as_echo "none" >&6; }
12744 max_cmd_len
=$lt_cv_sys_max_cmd_len
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12756 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12757 # Try some XSI features
12759 ( _lt_dummy
="a/b/c"
12760 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12762 && eval 'test $(( 1 + 1 )) -eq 2 \
12763 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12766 $as_echo "$xsi_shell" >&6; }
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12770 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12772 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12774 && lt_shell_append=yes
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12776 $as_echo "$lt_shell_append" >&6; }
12779 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12789 # test EBCDIC or ASCII
12790 case `echo X|tr X '\101'` in
12791 A) # ASCII based system
12792 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12793 lt_SP2NL='tr \040 \012'
12794 lt_NL2SP='tr \015\012 \040\040'
12796 *) # EBCDIC based system
12797 lt_SP2NL='tr \100 \n'
12798 lt_NL2SP='tr \r\n \100\100'
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12811 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12812 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12813 $as_echo_n "(cached
) " >&6
12815 lt_cv_ld_reload_flag='-r'
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12818 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12819 reload_flag=$lt_cv_ld_reload_flag
12820 case $reload_flag in
12822 *) reload_flag=" $reload_flag" ;;
12824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12827 if test "$GCC" = yes; then
12828 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12830 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12843 if test -n "$ac_tool_prefix"; then
12844 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12845 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12847 $as_echo_n "checking
for $ac_word...
" >&6; }
12848 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12849 $as_echo_n "(cached
) " >&6
12851 if test -n "$OBJDUMP"; then
12852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12861 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12871 OBJDUMP=$ac_cv_prog_OBJDUMP
12872 if test -n "$OBJDUMP"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12874 $as_echo "$OBJDUMP" >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12877 $as_echo "no
" >&6; }
12882 if test -z "$ac_cv_prog_OBJDUMP"; then
12883 ac_ct_OBJDUMP=$OBJDUMP
12884 # Extract the first word of "objdump
", so it can be a program name with args.
12885 set dummy objdump; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12887 $as_echo_n "checking
for $ac_word...
" >&6; }
12888 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12889 $as_echo_n "(cached
) " >&6
12891 if test -n "$ac_ct_OBJDUMP"; then
12892 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12911 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12912 if test -n "$ac_ct_OBJDUMP"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12914 $as_echo "$ac_ct_OBJDUMP" >&6; }
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12917 $as_echo "no
" >&6; }
12920 if test "x
$ac_ct_OBJDUMP" = x; then
12923 case $cross_compiling:$ac_tool_warned in
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12926 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12927 ac_tool_warned=yes ;;
12929 OBJDUMP=$ac_ct_OBJDUMP
12932 OBJDUMP="$ac_cv_prog_OBJDUMP"
12935 test -z "$OBJDUMP" && OBJDUMP=objdump
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12946 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12947 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12948 $as_echo_n "(cached
) " >&6
12950 lt_cv_file_magic_cmd='$MAGIC_CMD'
12951 lt_cv_file_magic_test_file=
12952 lt_cv_deplibs_check_method='unknown'
12953 # Need to set the preceding variable on all platforms that support
12954 # interlibrary dependencies.
12955 # 'none' -- dependencies not supported.
12956 # `unknown' -- same as none, but documents that we really don't know.
12957 # 'pass_all' -- all dependencies passed with no checks.
12958 # 'test_compile' -- check by making test program.
12959 # 'file_magic [[regex]]' -- check by looking for files in library path
12960 # which responds to the $file_magic_cmd with a given extended regex.
12961 # If you have `file' or equivalent on your system and you're not sure
12962 # whether `pass_all' will *always* work, you probably want this one.
12966 lt_cv_deplibs_check_method=pass_all
12970 lt_cv_deplibs_check_method=pass_all
12974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12975 lt_cv_file_magic_cmd='/usr/bin/file -L'
12976 lt_cv_file_magic_test_file=/shlib/libc.so
12980 # func_win32_libid is a shell function defined in ltmain.sh
12981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12982 lt_cv_file_magic_cmd='func_win32_libid'
12986 # Base MSYS/MinGW do not provide the 'file' command needed by
12987 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12988 # unless we find 'file', for example because we are cross-compiling.
12989 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12990 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12992 lt_cv_file_magic_cmd='func_win32_libid'
12994 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12995 lt_cv_file_magic_cmd='$OBJDUMP -f'
13000 # use the weaker test based on 'objdump'. See mingw*.
13001 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13002 lt_cv_file_magic_cmd='$OBJDUMP -f'
13005 darwin* | rhapsody*)
13006 lt_cv_deplibs_check_method=pass_all
13009 freebsd* | dragonfly*)
13010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13013 # Not sure whether the presence of OpenBSD here was a mistake.
13014 # Let's accept both of them until this is cleared up.
13015 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13016 lt_cv_file_magic_cmd=/usr/bin/file
13017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13021 lt_cv_deplibs_check_method=pass_all
13026 lt_cv_deplibs_check_method=pass_all
13030 lt_cv_deplibs_check_method=pass_all
13033 hpux10.20* | hpux11*)
13034 lt_cv_file_magic_cmd=/usr/bin/file
13037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13038 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13041 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]'
13042 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13046 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13056 irix5* | irix6* | nonstopux*)
13058 *-32|*"-32 ") libmagic=32-bit;;
13059 *-n32|*"-n32 ") libmagic=N32;;
13060 *-64|*"-64 ") libmagic=64-bit;;
13061 *) libmagic=never-match;;
13063 lt_cv_deplibs_check_method=pass_all
13066 # This must be Linux ELF.
13067 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13068 lt_cv_deplibs_check_method=pass_all
13072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13081 lt_cv_file_magic_cmd=/usr/bin/file
13082 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13086 lt_cv_deplibs_check_method=pass_all
13090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13097 osf3* | osf4* | osf5*)
13098 lt_cv_deplibs_check_method=pass_all
13102 lt_cv_deplibs_check_method=pass_all
13106 lt_cv_deplibs_check_method=pass_all
13109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13110 lt_cv_deplibs_check_method=pass_all
13114 case $host_vendor in
13116 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]'
13117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13120 lt_cv_deplibs_check_method=pass_all
13123 lt_cv_file_magic_cmd='/bin/file'
13124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13127 lt_cv_file_magic_cmd='/bin/file'
13128 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13129 lt_cv_file_magic_test_file=/lib/libc.so
13132 lt_cv_deplibs_check_method=pass_all
13135 lt_cv_deplibs_check_method=pass_all
13141 lt_cv_deplibs_check_method=pass_all
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13147 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13148 file_magic_cmd=$lt_cv_file_magic_cmd
13149 deplibs_check_method=$lt_cv_deplibs_check_method
13150 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13163 if test -n "$ac_tool_prefix"; then
13164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13165 set dummy ${ac_tool_prefix}ar; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13167 $as_echo_n "checking
for $ac_word...
" >&6; }
13168 if test "${ac_cv_prog_AR+set}" = set; then :
13169 $as_echo_n "(cached
) " >&6
13171 if test -n "$AR"; then
13172 ac_cv_prog_AR="$AR" # Let the user override the test.
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13181 ac_cv_prog_AR="${ac_tool_prefix}ar"
13182 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13192 if test -n "$AR"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13194 $as_echo "$AR" >&6; }
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13197 $as_echo "no
" >&6; }
13202 if test -z "$ac_cv_prog_AR"; then
13204 # Extract the first word of "ar", so it can be a program name with args.
13205 set dummy ar; ac_word=$2
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13207 $as_echo_n "checking
for $ac_word...
" >&6; }
13208 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13209 $as_echo_n "(cached
) " >&6
13211 if test -n "$ac_ct_AR"; then
13212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13221 ac_cv_prog_ac_ct_AR="ar"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13232 if test -n "$ac_ct_AR"; then
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13234 $as_echo "$ac_ct_AR" >&6; }
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13237 $as_echo "no
" >&6; }
13240 if test "x
$ac_ct_AR" = x; then
13243 case $cross_compiling:$ac_tool_warned in
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13246 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13247 ac_tool_warned=yes ;;
13252 AR="$ac_cv_prog_AR"
13255 test -z "$AR" && AR=ar
13256 test -z "$AR_FLAGS" && AR_FLAGS=cru
13268 if test -n "$ac_tool_prefix"; then
13269 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13270 set dummy ${ac_tool_prefix}strip; ac_word=$2
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13272 $as_echo_n "checking
for $ac_word...
" >&6; }
13273 if test "${ac_cv_prog_STRIP+set}" = set; then :
13274 $as_echo_n "(cached
) " >&6
13276 if test -n "$STRIP"; then
13277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280 for as_dir in $PATH
13283 test -z "$as_dir" && as_dir=.
13284 for ac_exec_ext in '' $ac_executable_extensions; do
13285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13286 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13287 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13296 STRIP=$ac_cv_prog_STRIP
13297 if test -n "$STRIP"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13299 $as_echo "$STRIP" >&6; }
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13302 $as_echo "no
" >&6; }
13307 if test -z "$ac_cv_prog_STRIP"; then
13309 # Extract the first word of "strip
", so it can be a program name with args.
13310 set dummy strip; ac_word=$2
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13312 $as_echo_n "checking
for $ac_word...
" >&6; }
13313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13314 $as_echo_n "(cached
) " >&6
13316 if test -n "$ac_ct_STRIP"; then
13317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $PATH
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13326 ac_cv_prog_ac_ct_STRIP="strip
"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13337 if test -n "$ac_ct_STRIP"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13339 $as_echo "$ac_ct_STRIP" >&6; }
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13342 $as_echo "no
" >&6; }
13345 if test "x
$ac_ct_STRIP" = x; then
13348 case $cross_compiling:$ac_tool_warned in
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13351 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13352 ac_tool_warned=yes ;;
13357 STRIP="$ac_cv_prog_STRIP"
13360 test -z "$STRIP" && STRIP=:
13367 if test -n "$ac_tool_prefix"; then
13368 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13371 $as_echo_n "checking
for $ac_word...
" >&6; }
13372 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13373 $as_echo_n "(cached
) " >&6
13375 if test -n "$RANLIB"; then
13376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 for as_dir in $PATH
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13386 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13395 RANLIB=$ac_cv_prog_RANLIB
13396 if test -n "$RANLIB"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13398 $as_echo "$RANLIB" >&6; }
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13401 $as_echo "no
" >&6; }
13406 if test -z "$ac_cv_prog_RANLIB"; then
13407 ac_ct_RANLIB=$RANLIB
13408 # Extract the first word of "ranlib
", so it can be a program name with args.
13409 set dummy ranlib; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13411 $as_echo_n "checking
for $ac_word...
" >&6; }
13412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13413 $as_echo_n "(cached
) " >&6
13415 if test -n "$ac_ct_RANLIB"; then
13416 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13425 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13426 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13436 if test -n "$ac_ct_RANLIB"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13438 $as_echo "$ac_ct_RANLIB" >&6; }
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13441 $as_echo "no
" >&6; }
13444 if test "x
$ac_ct_RANLIB" = x; then
13447 case $cross_compiling:$ac_tool_warned in
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13450 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13451 ac_tool_warned=yes ;;
13453 RANLIB=$ac_ct_RANLIB
13456 RANLIB="$ac_cv_prog_RANLIB"
13459 test -z "$RANLIB" && RANLIB=:
13466 # Determine commands to create old-style static archives.
13467 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13468 old_postinstall_cmds='chmod 644 $oldlib'
13469 old_postuninstall_cmds=
13471 if test -n "$RANLIB"; then
13474 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13477 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13480 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13485 lock_old_archive_extraction=yes ;;
13487 lock_old_archive_extraction=no ;;
13528 # If no C compiler was specified, use CC.
13531 # If no C compiler flags were specified, use CFLAGS.
13532 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13534 # Allow CC to be a program name with arguments.
13538 # Check for command to grab the raw symbol name followed by C symbol from nm.
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13540 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13541 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13542 $as_echo_n "(cached
) " >&6
13545 # These are sane defaults that work on at least a few old systems.
13546 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13548 # Character class describing NM global symbol codes.
13549 symcode='[BCDEGRST]'
13551 # Regexp to match symbols that can be accessed directly from C.
13552 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13554 # Define system-specific variables.
13559 cygwin* | mingw* | pw32* | cegcc*)
13560 symcode='[ABCDGISTW]'
13563 if test "$host_cpu" = ia64; then
13564 symcode='[ABCDEGRST]'
13567 irix* | nonstopux*)
13568 symcode='[BCDEGRST]'
13571 symcode='[BCDEGQRST]'
13582 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13590 # If we're using GNU nm, then use its standard symbol codes.
13591 case `$NM -V 2>&1` in
13592 *GNU* | *'with BFD'*)
13593 symcode='[ABCDGIRSTW]' ;;
13596 # Transform an extracted symbol line into a proper C declaration.
13597 # Some systems (esp. on ia64) link data and code symbols differently,
13598 # so use this general approach.
13599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13601 # Transform an extracted symbol line into symbol name and symbol address
13602 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13603 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'"
13605 # Handle CRLF in mingw tool chain
13609 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13613 # Try without a prefix underscore, then with it.
13614 for ac_symprfx in "" "_
"; do
13616 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13617 symxfrm="\\1 $ac_symprfx\\2 \\2"
13619 # Write the raw and C identifiers.
13620 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13621 # Fake it for dumpbin and say T for any non-static function
13622 # and D for any global variable.
13623 # Also find C++ and __fastcall symbols from MSVC++,
13624 # which start with @ or ?.
13625 lt_cv_sys_global_symbol_pipe="$AWK '"\
13626 " {last_section=section; section=\$ 3};"\
13627 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13628 " \$ 0!~/External *\|/{next};"\
13629 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13630 " {if(hide[section]) next};"\
13631 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13632 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13633 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13634 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13635 " ' prfx
=^
$ac_symprfx"
13637 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13640 # Check to see that the pipe works correctly.
13644 cat > conftest.$ac_ext <<_LT_EOF
13649 void nm_test_func(void);
13650 void nm_test_func(void){}
13654 int main(){nm_test_var='a';nm_test_func();return(0);}
13657 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13658 (eval $ac_compile) 2>&5
13660 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13661 test $ac_status = 0; }; then
13662 # Now try to grab the symbols.
13664 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13665 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13668 test $ac_status = 0; } && test -s "$nlist"; then
13669 # Try sorting and uniquifying the output.
13670 if sort "$nlist" | uniq > "$nlist"T; then
13671 mv -f "$nlist"T "$nlist"
13676 # Make sure that we snagged all the symbols we need.
13677 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13678 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13679 cat <<_LT_EOF > conftest.$ac_ext
13685 # Now generate the symbol file.
13686 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13688 cat <<_LT_EOF >> conftest.$ac_ext
13690 /* The mapping between symbol names and symbols. */
13695 lt__PROGRAM__LTX_preloaded_symbols[] =
13697 { "@PROGRAM@
", (void *) 0 },
13699 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13700 cat <<\_LT_EOF >> conftest.$ac_ext
13704 /* This works around a problem in FreeBSD linker */
13705 #ifdef FREEBSD_WORKAROUND
13706 static const void *lt_preloaded_setup() {
13707 return lt__PROGRAM__LTX_preloaded_symbols;
13715 # Now try linking the two files.
13716 mv conftest.$ac_objext conftstm.$ac_objext
13717 lt_save_LIBS="$LIBS"
13718 lt_save_CFLAGS="$CFLAGS"
13719 LIBS="conftstm.
$ac_objext"
13720 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13721 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13722 (eval $ac_link) 2>&5
13724 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13725 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13728 LIBS="$lt_save_LIBS"
13729 CFLAGS="$lt_save_CFLAGS"
13731 echo "cannot
find nm_test_func
in $nlist" >&5
13734 echo "cannot
find nm_test_var
in $nlist" >&5
13737 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13740 echo "$progname: failed program was
:" >&5
13741 cat conftest.$ac_ext >&5
13743 rm -rf conftest* conftst*
13745 # Do not use the global_symbol_pipe unless it works.
13746 if test "$pipe_works" = yes; then
13749 lt_cv_sys_global_symbol_pipe=
13755 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13756 lt_cv_sys_global_symbol_to_cdecl=
13758 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13760 $as_echo "failed
" >&6; }
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13763 $as_echo "ok
" >&6; }
13787 # Check whether --enable-libtool-lock was given.
13788 if test "${enable_libtool_lock+set}" = set; then :
13789 enableval=$enable_libtool_lock;
13792 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13794 # Some flags need to be propagated to the compiler or linker for good
13798 # Find out which ABI we are using.
13799 echo 'int i;' > conftest.$ac_ext
13800 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13801 (eval $ac_compile) 2>&5
13803 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13804 test $ac_status = 0; }; then
13805 case `/usr/bin/file conftest.$ac_objext` in
13807 HPUX_IA64_MODE="32"
13810 HPUX_IA64_MODE="64"
13817 # Find out which ABI we are using.
13818 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13819 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13820 (eval $ac_compile) 2>&5
13822 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13823 test $ac_status = 0; }; then
13824 if test "$lt_cv_prog_gnu_ld" = yes; then
13825 case `/usr/bin/file conftest.$ac_objext` in
13827 LD="${LD-ld} -melf32bsmip"
13830 LD="${LD-ld} -melf32bmipn32"
13833 LD="${LD-ld} -melf64bmip"
13837 case `/usr/bin/file conftest.$ac_objext` in
13853 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13854 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13855 # Find out which ABI we are using.
13856 echo 'int i;' > conftest.$ac_ext
13857 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13858 (eval $ac_compile) 2>&5
13860 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13861 test $ac_status = 0; }; then
13862 case `/usr/bin/file conftest.o` in
13865 x86_64-*kfreebsd*-gnu)
13866 LD="${LD-ld} -m elf_i386_fbsd
"
13869 case `/usr/bin/file conftest.o` in
13871 LD="${LD-ld} -m elf32_x86_64
"
13874 LD="${LD-ld} -m elf_i386
"
13878 powerpc64le-*linux*)
13879 LD="${LD-ld} -m elf32lppclinux
"
13882 LD="${LD-ld} -m elf32ppclinux
"
13885 LD="${LD-ld} -m elf_s390
"
13888 LD="${LD-ld} -m elf32_sparc
"
13894 x86_64-*kfreebsd*-gnu)
13895 LD="${LD-ld} -m elf_x86_64_fbsd
"
13898 LD="${LD-ld} -m elf_x86_64
"
13901 LD="${LD-ld} -m elf64lppc
"
13904 LD="${LD-ld} -m elf64ppc
"
13906 s390*-*linux*|s390*-*tpf*)
13907 LD="${LD-ld} -m elf64_s390
"
13910 LD="${LD-ld} -m elf64_sparc
"
13920 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13921 SAVE_CFLAGS="$CFLAGS"
13922 CFLAGS="$CFLAGS -belf"
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13924 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13925 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13926 $as_echo_n "(cached
) " >&6
13929 ac_cpp='$CPP $CPPFLAGS'
13930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 lt_cv_cc_needs_belf=yes
13948 lt_cv_cc_needs_belf=no
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13953 ac_cpp='$CPP $CPPFLAGS'
13954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13960 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13961 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13962 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13963 CFLAGS="$SAVE_CFLAGS"
13967 # Find out which ABI we are using.
13968 echo 'int i;' > conftest.$ac_ext
13969 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13970 (eval $ac_compile) 2>&5
13972 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13973 test $ac_status = 0; }; then
13974 case `/usr/bin/file conftest.o` in
13976 case $lt_cv_prog_gnu_ld in
13977 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13979 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13991 need_locks="$enable_libtool_lock"
13995 rhapsody* | darwin*)
13996 if test -n "$ac_tool_prefix"; then
13997 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13998 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14000 $as_echo_n "checking
for $ac_word...
" >&6; }
14001 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14002 $as_echo_n "(cached
) " >&6
14004 if test -n "$DSYMUTIL"; then
14005 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14008 for as_dir in $PATH
14011 test -z "$as_dir" && as_dir=.
14012 for ac_exec_ext in '' $ac_executable_extensions; do
14013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14014 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14015 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14024 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14025 if test -n "$DSYMUTIL"; then
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14027 $as_echo "$DSYMUTIL" >&6; }
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14030 $as_echo "no
" >&6; }
14035 if test -z "$ac_cv_prog_DSYMUTIL"; then
14036 ac_ct_DSYMUTIL=$DSYMUTIL
14037 # Extract the first word of "dsymutil
", so it can be a program name with args.
14038 set dummy dsymutil; ac_word=$2
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14040 $as_echo_n "checking
for $ac_word...
" >&6; }
14041 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14042 $as_echo_n "(cached
) " >&6
14044 if test -n "$ac_ct_DSYMUTIL"; then
14045 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14054 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14064 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14065 if test -n "$ac_ct_DSYMUTIL"; then
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14067 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14070 $as_echo "no
" >&6; }
14073 if test "x
$ac_ct_DSYMUTIL" = x; then
14076 case $cross_compiling:$ac_tool_warned in
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14079 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14080 ac_tool_warned=yes ;;
14082 DSYMUTIL=$ac_ct_DSYMUTIL
14085 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14088 if test -n "$ac_tool_prefix"; then
14089 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14090 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14092 $as_echo_n "checking
for $ac_word...
" >&6; }
14093 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14094 $as_echo_n "(cached
) " >&6
14096 if test -n "$NMEDIT"; then
14097 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14100 for as_dir in $PATH
14103 test -z "$as_dir" && as_dir=.
14104 for ac_exec_ext in '' $ac_executable_extensions; do
14105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14106 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14107 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14116 NMEDIT=$ac_cv_prog_NMEDIT
14117 if test -n "$NMEDIT"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14119 $as_echo "$NMEDIT" >&6; }
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14122 $as_echo "no
" >&6; }
14127 if test -z "$ac_cv_prog_NMEDIT"; then
14128 ac_ct_NMEDIT=$NMEDIT
14129 # Extract the first word of "nmedit
", so it can be a program name with args.
14130 set dummy nmedit; ac_word=$2
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14132 $as_echo_n "checking
for $ac_word...
" >&6; }
14133 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14134 $as_echo_n "(cached
) " >&6
14136 if test -n "$ac_ct_NMEDIT"; then
14137 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140 for as_dir in $PATH
14143 test -z "$as_dir" && as_dir=.
14144 for ac_exec_ext in '' $ac_executable_extensions; do
14145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14146 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14147 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14156 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14157 if test -n "$ac_ct_NMEDIT"; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14159 $as_echo "$ac_ct_NMEDIT" >&6; }
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14162 $as_echo "no
" >&6; }
14165 if test "x
$ac_ct_NMEDIT" = x; then
14168 case $cross_compiling:$ac_tool_warned in
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14171 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14172 ac_tool_warned=yes ;;
14174 NMEDIT=$ac_ct_NMEDIT
14177 NMEDIT="$ac_cv_prog_NMEDIT"
14180 if test -n "$ac_tool_prefix"; then
14181 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14182 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14184 $as_echo_n "checking
for $ac_word...
" >&6; }
14185 if test "${ac_cv_prog_LIPO+set}" = set; then :
14186 $as_echo_n "(cached
) " >&6
14188 if test -n "$LIPO"; then
14189 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192 for as_dir in $PATH
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
14197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14198 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14208 LIPO=$ac_cv_prog_LIPO
14209 if test -n "$LIPO"; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14211 $as_echo "$LIPO" >&6; }
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14214 $as_echo "no
" >&6; }
14219 if test -z "$ac_cv_prog_LIPO"; then
14221 # Extract the first word of "lipo
", so it can be a program name with args.
14222 set dummy lipo; ac_word=$2
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14224 $as_echo_n "checking
for $ac_word...
" >&6; }
14225 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14226 $as_echo_n "(cached
) " >&6
14228 if test -n "$ac_ct_LIPO"; then
14229 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232 for as_dir in $PATH
14235 test -z "$as_dir" && as_dir=.
14236 for ac_exec_ext in '' $ac_executable_extensions; do
14237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14238 ac_cv_prog_ac_ct_LIPO="lipo
"
14239 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14248 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14249 if test -n "$ac_ct_LIPO"; then
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14251 $as_echo "$ac_ct_LIPO" >&6; }
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14254 $as_echo "no
" >&6; }
14257 if test "x
$ac_ct_LIPO" = x; then
14260 case $cross_compiling:$ac_tool_warned in
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14263 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14264 ac_tool_warned=yes ;;
14269 LIPO="$ac_cv_prog_LIPO"
14272 if test -n "$ac_tool_prefix"; then
14273 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14274 set dummy ${ac_tool_prefix}otool; ac_word=$2
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14276 $as_echo_n "checking
for $ac_word...
" >&6; }
14277 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14278 $as_echo_n "(cached
) " >&6
14280 if test -n "$OTOOL"; then
14281 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14290 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14291 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14300 OTOOL=$ac_cv_prog_OTOOL
14301 if test -n "$OTOOL"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14303 $as_echo "$OTOOL" >&6; }
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14306 $as_echo "no
" >&6; }
14311 if test -z "$ac_cv_prog_OTOOL"; then
14313 # Extract the first word of "otool
", so it can be a program name with args.
14314 set dummy otool; ac_word=$2
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14316 $as_echo_n "checking
for $ac_word...
" >&6; }
14317 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14318 $as_echo_n "(cached
) " >&6
14320 if test -n "$ac_ct_OTOOL"; then
14321 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14330 ac_cv_prog_ac_ct_OTOOL="otool
"
14331 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14340 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14341 if test -n "$ac_ct_OTOOL"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14343 $as_echo "$ac_ct_OTOOL" >&6; }
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14346 $as_echo "no
" >&6; }
14349 if test "x
$ac_ct_OTOOL" = x; then
14352 case $cross_compiling:$ac_tool_warned in
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14355 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14356 ac_tool_warned=yes ;;
14361 OTOOL="$ac_cv_prog_OTOOL"
14364 if test -n "$ac_tool_prefix"; then
14365 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14366 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14368 $as_echo_n "checking
for $ac_word...
" >&6; }
14369 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14370 $as_echo_n "(cached
) " >&6
14372 if test -n "$OTOOL64"; then
14373 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14382 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14392 OTOOL64=$ac_cv_prog_OTOOL64
14393 if test -n "$OTOOL64"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14395 $as_echo "$OTOOL64" >&6; }
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14398 $as_echo "no
" >&6; }
14403 if test -z "$ac_cv_prog_OTOOL64"; then
14404 ac_ct_OTOOL64=$OTOOL64
14405 # Extract the first word of "otool64
", so it can be a program name with args.
14406 set dummy otool64; ac_word=$2
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14408 $as_echo_n "checking
for $ac_word...
" >&6; }
14409 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14410 $as_echo_n "(cached
) " >&6
14412 if test -n "$ac_ct_OTOOL64"; then
14413 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416 for as_dir in $PATH
14419 test -z "$as_dir" && as_dir=.
14420 for ac_exec_ext in '' $ac_executable_extensions; do
14421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14422 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14423 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14432 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14433 if test -n "$ac_ct_OTOOL64"; then
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14435 $as_echo "$ac_ct_OTOOL64" >&6; }
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14438 $as_echo "no
" >&6; }
14441 if test "x
$ac_ct_OTOOL64" = x; then
14444 case $cross_compiling:$ac_tool_warned in
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14447 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14448 ac_tool_warned=yes ;;
14450 OTOOL64=$ac_ct_OTOOL64
14453 OTOOL64="$ac_cv_prog_OTOOL64"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14483 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14484 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14485 $as_echo_n "(cached
) " >&6
14487 lt_cv_apple_cc_single_mod=no
14488 if test -z "${LT_MULTI_MODULE}"; then
14489 # By default we will add the -single_module flag. You can override
14490 # by either setting the environment variable LT_MULTI_MODULE
14491 # non-empty at configure time, or by adding -multi_module to the
14493 rm -rf libconftest.dylib*
14494 echo "int foo
(void
){return 1;}" > conftest.c
14495 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14496 -dynamiclib -Wl,-single_module conftest.c
" >&5
14497 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14498 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14500 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14501 lt_cv_apple_cc_single_mod=yes
14503 cat conftest.err >&5
14505 rm -rf libconftest.dylib*
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14510 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14512 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14513 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14514 $as_echo_n "(cached
) " >&6
14516 lt_cv_ld_exported_symbols_list=no
14517 save_LDFLAGS=$LDFLAGS
14518 echo "_main
" > conftest.sym
14519 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14531 if ac_fn_c_try_link "$LINENO"; then :
14532 lt_cv_ld_exported_symbols_list=yes
14534 lt_cv_ld_exported_symbols_list=no
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LDFLAGS="$save_LDFLAGS"
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14542 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14544 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14545 if test "${lt_cv_ld_force_load+set}" = set; then :
14546 $as_echo_n "(cached
) " >&6
14548 lt_cv_ld_force_load=no
14549 cat > conftest.c << _LT_EOF
14550 int forced_loaded() { return 2;}
14552 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14553 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14554 echo "$AR cru libconftest.a conftest.o
" >&5
14555 $AR cru libconftest.a conftest.o 2>&5
14556 cat > conftest.c << _LT_EOF
14557 int main() { return 0;}
14559 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14560 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14562 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14563 lt_cv_ld_force_load=yes
14565 cat conftest.err >&5
14567 rm -f conftest.err libconftest.a conftest conftest.c
14568 rm -rf conftest.dSYM
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14572 $as_echo "$lt_cv_ld_force_load" >&6; }
14574 rhapsody* | darwin1.[012])
14575 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14577 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14578 darwin*) # darwin 5.x on
14579 # if running on 10.5 or later, the deployment target defaults
14580 # to the OS version, if on x86, and 10.4, the deployment
14581 # target defaults to 10.4. Don't you love it?
14582 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14583 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14584 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14588 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14592 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14593 _lt_dar_single_mod='$single_module'
14595 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14596 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14598 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14600 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14601 _lt_dsymutil='~$DSYMUTIL $lib || :'
14608 for ac_header in dlfcn.h
14610 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14611 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14612 cat >>confdefs.h <<_ACEOF
14613 #define HAVE_DLFCN_H 1
14630 enable_win32_dll=no
14633 # Check whether --enable-shared was given.
14634 if test "${enable_shared+set}" = set; then :
14635 enableval=$enable_shared; p=${PACKAGE-default}
14637 yes) enable_shared=yes ;;
14638 no) enable_shared=no ;;
14641 # Look at the argument we got. We use all the common list separators.
14642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14643 for pkg in $enableval; do
14645 if test "X
$pkg" = "X
$p"; then
14664 # Check whether --enable-static was given.
14665 if test "${enable_static+set}" = set; then :
14666 enableval=$enable_static; p=${PACKAGE-default}
14668 yes) enable_static=yes ;;
14669 no) enable_static=no ;;
14672 # Look at the argument we got. We use all the common list separators.
14673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14674 for pkg in $enableval; do
14676 if test "X
$pkg" = "X
$p"; then
14696 # Check whether --with-pic was given.
14697 if test "${with_pic+set}" = set; then :
14698 withval=$with_pic; pic_mode="$withval"
14704 test -z "$pic_mode" && pic_mode=default
14712 # Check whether --enable-fast-install was given.
14713 if test "${enable_fast_install+set}" = set; then :
14714 enableval=$enable_fast_install; p=${PACKAGE-default}
14716 yes) enable_fast_install=yes ;;
14717 no) enable_fast_install=no ;;
14719 enable_fast_install=no
14720 # Look at the argument we got. We use all the common list separators.
14721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14722 for pkg in $enableval; do
14724 if test "X
$pkg" = "X
$p"; then
14725 enable_fast_install=yes
14732 enable_fast_install=yes
14745 # This can be used to rebuild libtool when needed
14746 LIBTOOL_DEPS="$ltmain"
14748 # Always use our own libtool.
14749 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14776 test -z "$LN_S" && LN_S="ln -s"
14791 if test -n "${ZSH_VERSION+set}" ; then
14792 setopt NO_GLOB_SUBST
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14796 $as_echo_n "checking
for objdir...
" >&6; }
14797 if test "${lt_cv_objdir+set}" = set; then :
14798 $as_echo_n "(cached
) " >&6
14800 rm -f .libs 2>/dev/null
14801 mkdir .libs 2>/dev/null
14802 if test -d .libs; then
14805 # MS-DOS does not allow filenames that begin with a dot.
14808 rmdir .libs 2>/dev/null
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14811 $as_echo "$lt_cv_objdir" >&6; }
14812 objdir=$lt_cv_objdir
14818 cat >>confdefs.h <<_ACEOF
14819 #define LT_OBJDIR "$lt_cv_objdir/"
14827 # AIX sometimes has problems with the GCC collect2 program. For some
14828 # reason, if we set the COLLECT_NAMES environment variable, the problems
14829 # vanish in a puff of smoke.
14830 if test "X
${COLLECT_NAMES+set}" != Xset; then
14832 export COLLECT_NAMES
14837 # Global variables:
14839 can_build_shared=yes
14841 # All known linkers require a `.a' archive for static linking (except MSVC,
14842 # which needs '.lib').
14845 with_gnu_ld="$lt_cv_prog_gnu_ld"
14848 old_CFLAGS="$CFLAGS"
14850 # Set sane defaults for various variables
14851 test -z "$CC" && CC=cc
14852 test -z "$LTCC" && LTCC=$CC
14853 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14854 test -z "$LD" && LD=ld
14855 test -z "$ac_objext" && ac_objext=o
14857 for cc_temp in $compiler""; do
14859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14865 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14868 # Only perform the check for file, if the check method requires it
14869 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14870 case $deplibs_check_method in
14872 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14874 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14875 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14876 $as_echo_n "(cached
) " >&6
14880 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14883 lt_save_MAGIC_CMD="$MAGIC_CMD"
14884 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14885 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14886 for ac_dir in $ac_dummy; do
14888 test -z "$ac_dir" && ac_dir=.
14889 if test -f $ac_dir/${ac_tool_prefix}file; then
14890 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14891 if test -n "$file_magic_test_file"; then
14892 case $deplibs_check_method in
14894 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14896 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14897 $EGREP "$file_magic_regex" > /dev/null; then
14902 *** Warning: the command libtool uses to detect shared libraries,
14903 *** $file_magic_cmd, produces output that libtool cannot recognize.
14904 *** The result is that libtool may fail to recognize shared libraries
14905 *** as such. This will affect the creation of libtool libraries that
14906 *** depend on shared libraries, but programs linked with such libtool
14907 *** libraries will work regardless of this problem. Nevertheless, you
14908 *** may want to report the problem to your system manager and/or to
14909 *** bug-libtool@gnu.org
14919 MAGIC_CMD="$lt_save_MAGIC_CMD"
14924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14925 if test -n "$MAGIC_CMD"; then
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14927 $as_echo "$MAGIC_CMD" >&6; }
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14930 $as_echo "no
" >&6; }
14937 if test -z "$lt_cv_path_MAGIC_CMD"; then
14938 if test -n "$ac_tool_prefix"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14940 $as_echo_n "checking
for file...
" >&6; }
14941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14942 $as_echo_n "(cached
) " >&6
14946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14949 lt_save_MAGIC_CMD="$MAGIC_CMD"
14950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14951 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14952 for ac_dir in $ac_dummy; do
14954 test -z "$ac_dir" && ac_dir=.
14955 if test -f $ac_dir/file; then
14956 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14957 if test -n "$file_magic_test_file"; then
14958 case $deplibs_check_method in
14960 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14963 $EGREP "$file_magic_regex" > /dev/null; then
14968 *** Warning: the command libtool uses to detect shared libraries,
14969 *** $file_magic_cmd, produces output that libtool cannot recognize.
14970 *** The result is that libtool may fail to recognize shared libraries
14971 *** as such. This will affect the creation of libtool libraries that
14972 *** depend on shared libraries, but programs linked with such libtool
14973 *** libraries will work regardless of this problem. Nevertheless, you
14974 *** may want to report the problem to your system manager and/or to
14975 *** bug-libtool@gnu.org
14985 MAGIC_CMD="$lt_save_MAGIC_CMD"
14990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14991 if test -n "$MAGIC_CMD"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14993 $as_echo "$MAGIC_CMD" >&6; }
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14996 $as_echo "no
" >&6; }
15009 # Use C for the default configuration in the libtool script
15013 ac_cpp='$CPP $CPPFLAGS'
15014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15019 # Source file extension for C test sources.
15022 # Object file extension for compiled C test sources.
15026 # Code to be used in simple compile tests
15027 lt_simple_compile_test_code="int some_variable
= 0;"
15029 # Code to be used in simple link tests
15030 lt_simple_link_test_code='int main(){return(0);}'
15038 # If no C compiler was specified, use CC.
15041 # If no C compiler flags were specified, use CFLAGS.
15042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15044 # Allow CC to be a program name with arguments.
15047 # Save the default compiler, since it gets overwritten when the other
15048 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15049 compiler_DEFAULT=$CC
15051 # save warnings/boilerplate of simple test code
15052 ac_outfile=conftest.$ac_objext
15053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15055 _lt_compiler_boilerplate=`cat conftest.err`
15058 ac_outfile=conftest.$ac_objext
15059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15061 _lt_linker_boilerplate=`cat conftest.err`
15066 ## There is no encapsulation within the following macros, do not change
15067 ## the running order or otherwise move them around unless you know exactly
15068 ## what you are doing...
15069 if test -n "$compiler"; then
15071 lt_prog_compiler_no_builtin_flag=
15073 if test "$GCC" = yes; then
15074 case $cc_basename in
15076 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15078 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15082 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15083 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15084 $as_echo_n "(cached
) " >&6
15086 lt_cv_prog_compiler_rtti_exceptions=no
15087 ac_outfile=conftest.$ac_objext
15088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15089 lt_compiler_flag="-fno-rtti -fno-exceptions"
15090 # Insert the option either (1) after the last *FLAGS variable, or
15091 # (2) before a word containing "conftest.
", or (3) at the end.
15092 # Note that $ac_compile itself does not contain backslashes and begins
15093 # with a dollar sign (not a hyphen), so the echo should work correctly.
15094 # The option is referenced via a variable to avoid confusing sed.
15095 lt_compile=`echo "$ac_compile" | $SED \
15096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15098 -e 's:$: $lt_compiler_flag:'`
15099 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15100 (eval "$lt_compile" 2>conftest.err)
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15104 if (exit $ac_status) && test -s "$ac_outfile"; then
15105 # The compiler can only warn and ignore the option if not recognized
15106 # So say no if there are warnings other than the usual output.
15107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15110 lt_cv_prog_compiler_rtti_exceptions=yes
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15117 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15119 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15120 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15132 lt_prog_compiler_wl=
15133 lt_prog_compiler_pic=
15134 lt_prog_compiler_static=
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15137 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15139 if test "$GCC" = yes; then
15140 lt_prog_compiler_wl='-Wl,'
15141 lt_prog_compiler_static='-static'
15145 # All AIX code is PIC.
15146 if test "$host_cpu" = ia64; then
15147 # AIX 5 now supports IA64 processor
15148 lt_prog_compiler_static='-Bstatic'
15150 lt_prog_compiler_pic='-fPIC'
15156 # see comment about AmigaOS4 .so support
15157 lt_prog_compiler_pic='-fPIC'
15160 # FIXME: we need at least 68020 code to build shared libraries, but
15161 # adding the `-m68020' flag to GCC prevents building anything better,
15163 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15168 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15169 # PIC is the default for these OSes.
15172 mingw* | cygwin* | pw32* | os2* | cegcc*)
15173 # This hack is so that the source file can tell whether it is being
15174 # built for inclusion in a dll (and should export symbols for example).
15175 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15176 # (--disable-auto-import) libraries
15177 lt_prog_compiler_pic='-DDLL_EXPORT'
15180 darwin* | rhapsody*)
15181 # PIC is the default on this platform
15182 # Common symbols not allowed in MH_DYLIB files
15183 lt_prog_compiler_pic='-fno-common'
15187 # PIC is the default for Haiku.
15188 # The "-static" flag exists, but is broken.
15189 lt_prog_compiler_static=
15193 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15194 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15195 # sets the default TLS model and affects inlining.
15201 lt_prog_compiler_pic='-fPIC'
15207 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15208 # Instead, we relocate shared libraries at runtime.
15212 # Just because we use GCC doesn't mean we suddenly get shared libraries
15213 # on systems that don't support them.
15214 lt_prog_compiler_can_build_shared=no
15219 # QNX uses GNU C++, but need to define -shared option too, otherwise
15220 # it will coredump.
15221 lt_prog_compiler_pic='-fPIC -shared'
15225 if test -d /usr/nec; then
15226 lt_prog_compiler_pic=-Kconform_pic
15231 lt_prog_compiler_pic='-fPIC'
15235 case $cc_basename in
15236 nvcc*) # Cuda Compiler Driver 2.2
15237 lt_prog_compiler_wl='-Xlinker '
15238 lt_prog_compiler_pic='-Xcompiler -fPIC'
15242 # PORTME Check for flag to pass linker flags through the system compiler.
15245 lt_prog_compiler_wl='-Wl,'
15246 if test "$host_cpu" = ia64; then
15247 # AIX 5 now supports IA64 processor
15248 lt_prog_compiler_static='-Bstatic'
15250 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15254 mingw* | cygwin* | pw32* | os2* | cegcc*)
15255 # This hack is so that the source file can tell whether it is being
15256 # built for inclusion in a dll (and should export symbols for example).
15257 lt_prog_compiler_pic='-DDLL_EXPORT'
15260 hpux9* | hpux10* | hpux11*)
15261 lt_prog_compiler_wl='-Wl,'
15262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15263 # not for PA HP-UX.
15269 lt_prog_compiler_pic='+Z'
15272 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15273 lt_prog_compiler_static='${wl}-a ${wl}archive'
15276 irix5* | irix6* | nonstopux*)
15277 lt_prog_compiler_wl='-Wl,'
15278 # PIC (with -KPIC) is the default.
15279 lt_prog_compiler_static='-non_shared'
15282 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15283 case $cc_basename in
15284 # old Intel for x86_64 which still supported -KPIC.
15286 lt_prog_compiler_wl='-Wl,'
15287 lt_prog_compiler_pic='-KPIC'
15288 lt_prog_compiler_static='-static'
15290 # icc used to be incompatible with GCC.
15291 # ICC 10 doesn't accept -KPIC any more.
15293 lt_prog_compiler_wl='-Wl,'
15294 lt_prog_compiler_pic='-fPIC'
15295 lt_prog_compiler_static='-static'
15297 # Lahey Fortran 8.1.
15299 lt_prog_compiler_wl='-Wl,'
15300 lt_prog_compiler_pic='--shared'
15301 lt_prog_compiler_static='--static'
15303 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15304 # Portland Group compilers (*not* the Pentium gcc compiler,
15305 # which looks to be a dead project)
15306 lt_prog_compiler_wl='-Wl,'
15307 lt_prog_compiler_pic='-fpic'
15308 lt_prog_compiler_static='-Bstatic'
15311 lt_prog_compiler_wl='-Wl,'
15312 # All Alpha code is PIC.
15313 lt_prog_compiler_static='-non_shared'
15315 xl* | bgxl* | bgf* | mpixl*)
15316 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15317 lt_prog_compiler_wl='-Wl,'
15318 lt_prog_compiler_pic='-qpic'
15319 lt_prog_compiler_static='-qstaticlink'
15322 case `$CC -V 2>&1 | sed 5q` in
15323 *Sun\ F* | *Sun*Fortran*)
15324 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15325 lt_prog_compiler_pic='-KPIC'
15326 lt_prog_compiler_static='-Bstatic'
15327 lt_prog_compiler_wl=''
15331 lt_prog_compiler_pic='-KPIC'
15332 lt_prog_compiler_static='-Bstatic'
15333 lt_prog_compiler_wl='-Wl,'
15341 lt_prog_compiler_pic='-KPIC'
15342 lt_prog_compiler_static='-Bstatic'
15346 # QNX uses GNU C++, but need to define -shared option too, otherwise
15347 # it will coredump.
15348 lt_prog_compiler_pic='-fPIC -shared'
15351 osf3* | osf4* | osf5*)
15352 lt_prog_compiler_wl='-Wl,'
15353 # All OSF/1 code is PIC.
15354 lt_prog_compiler_static='-non_shared'
15358 lt_prog_compiler_static='-non_shared'
15362 lt_prog_compiler_pic='-KPIC'
15363 lt_prog_compiler_static='-Bstatic'
15364 case $cc_basename in
15365 f77* | f90* | f95*)
15366 lt_prog_compiler_wl='-Qoption ld ';;
15368 lt_prog_compiler_wl='-Wl,';;
15373 lt_prog_compiler_wl='-Qoption ld '
15374 lt_prog_compiler_pic='-PIC'
15375 lt_prog_compiler_static='-Bstatic'
15378 sysv4 | sysv4.2uw2* | sysv4.3*)
15379 lt_prog_compiler_wl='-Wl,'
15380 lt_prog_compiler_pic='-KPIC'
15381 lt_prog_compiler_static='-Bstatic'
15385 if test -d /usr/nec ;then
15386 lt_prog_compiler_pic='-Kconform_pic'
15387 lt_prog_compiler_static='-Bstatic'
15391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15392 lt_prog_compiler_wl='-Wl,'
15393 lt_prog_compiler_pic='-KPIC'
15394 lt_prog_compiler_static='-Bstatic'
15398 lt_prog_compiler_wl='-Wl,'
15399 lt_prog_compiler_can_build_shared=no
15403 lt_prog_compiler_pic='-pic'
15404 lt_prog_compiler_static='-Bstatic'
15408 lt_prog_compiler_can_build_shared=no
15414 # For platforms which do not support PIC, -DPIC is meaningless:
15416 lt_prog_compiler_pic=
15419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15423 $as_echo "$lt_prog_compiler_pic" >&6; }
15431 # Check to make sure the PIC flag actually works.
15433 if test -n "$lt_prog_compiler_pic"; then
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15435 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15436 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15437 $as_echo_n "(cached
) " >&6
15439 lt_cv_prog_compiler_pic_works=no
15440 ac_outfile=conftest.$ac_objext
15441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15442 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15443 # Insert the option either (1) after the last *FLAGS variable, or
15444 # (2) before a word containing "conftest.
", or (3) at the end.
15445 # Note that $ac_compile itself does not contain backslashes and begins
15446 # with a dollar sign (not a hyphen), so the echo should work correctly.
15447 # The option is referenced via a variable to avoid confusing sed.
15448 lt_compile=`echo "$ac_compile" | $SED \
15449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15451 -e 's:$: $lt_compiler_flag:'`
15452 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15453 (eval "$lt_compile" 2>conftest.err)
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15457 if (exit $ac_status) && test -s "$ac_outfile"; then
15458 # The compiler can only warn and ignore the option if not recognized
15459 # So say no if there are warnings other than the usual output.
15460 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15463 lt_cv_prog_compiler_pic_works=yes
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15470 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15472 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15473 case $lt_prog_compiler_pic in
15475 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15478 lt_prog_compiler_pic=
15479 lt_prog_compiler_can_build_shared=no
15490 # Check to make sure the static flag actually works.
15492 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15494 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15495 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15496 $as_echo_n "(cached
) " >&6
15498 lt_cv_prog_compiler_static_works=no
15499 save_LDFLAGS="$LDFLAGS"
15500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15501 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15503 # The linker can only warn and ignore the option if not recognized
15504 # So say no if there are warnings
15505 if test -s conftest.err; then
15506 # Append any errors to the config.log.
15507 cat conftest.err 1>&5
15508 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15510 if diff conftest.exp conftest.er2 >/dev/null; then
15511 lt_cv_prog_compiler_static_works=yes
15514 lt_cv_prog_compiler_static_works=yes
15518 LDFLAGS="$save_LDFLAGS"
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15522 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15524 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15527 lt_prog_compiler_static=
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15537 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15538 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15539 $as_echo_n "(cached
) " >&6
15541 lt_cv_prog_compiler_c_o=no
15542 $RM -r conftest 2>/dev/null
15546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15548 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15549 # Insert the option either (1) after the last *FLAGS variable, or
15550 # (2) before a word containing "conftest.
", or (3) at the end.
15551 # Note that $ac_compile itself does not contain backslashes and begins
15552 # with a dollar sign (not a hyphen), so the echo should work correctly.
15553 lt_compile=`echo "$ac_compile" | $SED \
15554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15556 -e 's:$: $lt_compiler_flag:'`
15557 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15558 (eval "$lt_compile" 2>out/conftest.err)
15560 cat out/conftest.err >&5
15561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15564 # The compiler can only warn and ignore the option if not recognized
15565 # So say no if there are warnings
15566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15569 lt_cv_prog_compiler_c_o=yes
15574 # SGI C++ compiler will create directory out/ii_files/ for
15575 # template instantiation
15576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15577 $RM out/* && rmdir out
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15584 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15592 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15593 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15594 $as_echo_n "(cached
) " >&6
15596 lt_cv_prog_compiler_c_o=no
15597 $RM -r conftest 2>/dev/null
15601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15603 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15604 # Insert the option either (1) after the last *FLAGS variable, or
15605 # (2) before a word containing "conftest.
", or (3) at the end.
15606 # Note that $ac_compile itself does not contain backslashes and begins
15607 # with a dollar sign (not a hyphen), so the echo should work correctly.
15608 lt_compile=`echo "$ac_compile" | $SED \
15609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15611 -e 's:$: $lt_compiler_flag:'`
15612 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15613 (eval "$lt_compile" 2>out/conftest.err)
15615 cat out/conftest.err >&5
15616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15619 # The compiler can only warn and ignore the option if not recognized
15620 # So say no if there are warnings
15621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15624 lt_cv_prog_compiler_c_o=yes
15629 # SGI C++ compiler will create directory out/ii_files/ for
15630 # template instantiation
15631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15632 $RM out/* && rmdir out
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15639 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15644 hard_links="nottested
"
15645 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15646 # do not overwrite the value of need_locks provided by the user
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15648 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15653 ln conftest.a conftest.b 2>&5 || hard_links=no
15654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15656 $as_echo "$hard_links" >&6; }
15657 if test "$hard_links" = no; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15659 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15672 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15675 allow_undefined_flag=
15676 always_export_symbols=no
15678 archive_expsym_cmds=
15679 compiler_needs_object=no
15680 enable_shared_with_static_runtimes=no
15681 export_dynamic_flag_spec=
15682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15683 hardcode_automatic=no
15685 hardcode_direct_absolute=no
15686 hardcode_libdir_flag_spec=
15687 hardcode_libdir_flag_spec_ld=
15688 hardcode_libdir_separator=
15689 hardcode_minus_L=no
15690 hardcode_shlibpath_var=unsupported
15692 link_all_deplibs=unknown
15694 module_expsym_cmds=
15695 old_archive_from_new_cmds=
15696 old_archive_from_expsyms_cmds=
15697 thread_safe_flag_spec=
15698 whole_archive_flag_spec=
15699 # include_expsyms should be a list of space-separated symbols to be *always*
15700 # included in the symbol list
15702 # exclude_expsyms can be an extended regexp of symbols to exclude
15703 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15704 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15705 # as well as any symbol that contains `d'.
15706 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15707 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15708 # platforms (ab)use it in PIC code, but their linkers get confused if
15709 # the symbol is explicitly referenced. Since portable code cannot
15710 # rely on this symbol name, it's probably fine to never include it in
15711 # preloaded symbol tables.
15712 # Exclude shared library initialization/finalization symbols.
15713 extract_expsyms_cmds=
15716 cygwin* | mingw* | pw32* | cegcc*)
15717 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15718 # When not using gcc, we currently assume that we are using
15719 # Microsoft Visual C++.
15720 if test "$GCC" != yes; then
15725 # we just hope/assume this is gcc and not c89 (= MSVC++)
15735 # On some targets, GNU ld is compatible enough with the native linker
15736 # that we're better off using the native interface for both.
15737 lt_use_gnu_ld_interface=no
15738 if test "$with_gnu_ld" = yes; then
15741 # The AIX port of GNU ld has always aspired to compatibility
15742 # with the native linker. However, as the warning in the GNU ld
15743 # block says, versions before 2.19.5* couldn't really create working
15744 # shared libraries, regardless of the interface used.
15745 case `$LD -v 2>&1` in
15746 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15747 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15748 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15750 lt_use_gnu_ld_interface=yes
15755 lt_use_gnu_ld_interface=yes
15760 if test "$lt_use_gnu_ld_interface" = yes; then
15761 # If archive_cmds runs LD, not CC, wlarc should be empty
15764 # Set some defaults for GNU ld with shared library support. These
15765 # are reset later if shared libraries are not supported. Putting them
15766 # here allows them to be overridden if necessary.
15767 runpath_var=LD_RUN_PATH
15768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15769 export_dynamic_flag_spec='${wl}--export-dynamic'
15770 # ancient GNU ld didn't support --whole-archive et. al.
15771 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15772 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15774 whole_archive_flag_spec=
15776 supports_anon_versioning=no
15777 case `$LD -v 2>&1` in
15778 *GNU\ gold*) supports_anon_versioning=yes ;;
15779 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15780 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15781 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15782 *\ 2.11.*) ;; # other 2.11 versions
15783 *) supports_anon_versioning=yes ;;
15786 # See if GNU ld supports shared libraries.
15789 # On AIX/PPC, the GNU linker is very broken
15790 if test "$host_cpu" != ia64; then
15794 *** Warning: the GNU linker, at least up to release 2.19, is reported
15795 *** to be unable to reliably create shared libraries on AIX.
15796 *** Therefore, libtool is disabling shared libraries support. If you
15797 *** really care for shared libraries, you may want to install binutils
15798 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15799 *** You will then need to restart the configuration process.
15808 # see comment about AmigaOS4 .so support
15809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15810 archive_expsym_cmds=''
15813 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)'
15814 hardcode_libdir_flag_spec
='-L$libdir'
15815 hardcode_minus_L
=yes
15821 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15822 allow_undefined_flag
=unsupported
15823 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15824 # support --undefined. This deserves some investigation. FIXME
15825 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15831 cygwin
* | mingw
* | pw32
* | cegcc
*)
15832 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15833 # as there is no search path for DLLs.
15834 hardcode_libdir_flag_spec
='-L$libdir'
15835 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15836 allow_undefined_flag
=unsupported
15837 always_export_symbols
=no
15838 enable_shared_with_static_runtimes
=yes
15839 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15841 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15842 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15843 # If the export-symbols file already is a .def file (1st line
15844 # is EXPORTS), use it as is; otherwise, prepend...
15845 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15846 cp $export_symbols $output_objdir/$soname.def;
15848 echo EXPORTS > $output_objdir/$soname.def;
15849 cat $export_symbols >> $output_objdir/$soname.def;
15851 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15858 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15859 link_all_deplibs
=yes
15864 hardcode_shlibpath_var
=no
15865 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15866 export_dynamic_flag_spec
='${wl}-E'
15867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15868 # Instead, shared libraries are loaded at an image base (0x10000000 by
15869 # default) and relocated if they conflict, which is a slow very memory
15870 # consuming and fragmenting process. To avoid this, we pick a random,
15871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15873 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15874 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'
15877 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15879 if test "$host_os" = linux-dietlibc
; then
15880 case $cc_basename in
15881 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15884 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15885 && test "$tmp_diet" = no
15888 tmp_sharedflag
='-shared'
15889 case $cc_basename,$host_cpu in
15890 pgcc
*) # Portland Group C compiler
15891 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'
15892 tmp_addflag
=' $pic_flag'
15894 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15895 # Portland Group f77 and f90 compilers
15896 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'
15897 tmp_addflag
=' $pic_flag -Mnomain' ;;
15898 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15899 tmp_addflag
=' -i_dynamic' ;;
15900 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15901 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15902 ifc
* | ifort
*) # Intel Fortran compiler
15903 tmp_addflag
=' -nofor_main' ;;
15904 lf95
*) # Lahey Fortran 8.1
15905 whole_archive_flag_spec
=
15906 tmp_sharedflag
='--shared' ;;
15907 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15908 tmp_sharedflag
='-qmkshrobj'
15910 nvcc
*) # Cuda Compiler Driver 2.2
15911 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'
15912 compiler_needs_object
=yes
15915 case `$CC -V 2>&1 | sed 5q` in
15916 *Sun\ C
*) # Sun C 5.9
15917 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'
15918 compiler_needs_object
=yes
15919 tmp_sharedflag
='-G' ;;
15920 *Sun\ F
*) # Sun Fortran 8.3
15921 tmp_sharedflag
='-G' ;;
15923 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15925 if test "x$supports_anon_versioning" = xyes
; then
15926 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15927 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15928 echo "local: *; };" >> $output_objdir/$libname.ver~
15929 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15932 case $cc_basename in
15933 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15934 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15935 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15936 hardcode_libdir_flag_spec
=
15937 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15938 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15939 if test "x$supports_anon_versioning" = xyes
; then
15940 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15942 echo "local: *; };" >> $output_objdir/$libname.ver~
15943 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15953 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15954 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15957 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15958 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15963 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15967 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15968 *** create shared libraries on Solaris systems. Therefore, libtool
15969 *** is disabling shared libraries support. We urge you to upgrade GNU
15970 *** binutils to release 2.9.1 or newer. Another option is to modify
15971 *** your PATH or compiler configuration so that the native linker is
15972 *** used, and then restart.
15975 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15976 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15977 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15983 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15984 case `$LD -v 2>&1` in
15985 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15989 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15990 *** reliably create shared libraries on SCO systems. Therefore, libtool
15991 *** is disabling shared libraries support. We urge you to upgrade GNU
15992 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15993 *** your PATH or compiler configuration so that the native linker is
15994 *** used, and then restart.
15999 # For security reasons, it is highly recommended that you always
16000 # use absolute paths for naming shared libraries, and exclude the
16001 # DT_RUNPATH tag from executables and libraries. But doing so
16002 # requires that you compile everything twice, which is a pain.
16003 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16004 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16005 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16006 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16015 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16017 hardcode_direct
=yes
16018 hardcode_shlibpath_var
=no
16022 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16023 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16024 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16031 if test "$ld_shlibs" = no
; then
16033 hardcode_libdir_flag_spec
=
16034 export_dynamic_flag_spec
=
16035 whole_archive_flag_spec
=
16038 # PORTME fill in a description of your system's linker (not GNU ld)
16041 allow_undefined_flag
=unsupported
16042 always_export_symbols
=yes
16043 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'
16044 # Note: this linker hardcodes the directories in LIBPATH if there
16045 # are no directories specified by -L.
16046 hardcode_minus_L
=yes
16047 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16048 # Neither direct hardcoding nor static linking is supported with a
16050 hardcode_direct
=unsupported
16055 if test "$host_cpu" = ia64
; then
16056 # On IA64, the linker does run time linking by default, so we don't
16057 # have to do anything special.
16058 aix_use_runtimelinking
=no
16059 exp_sym_flag
='-Bexport'
16062 # If we're using GNU nm, then we don't want the "-C" option.
16063 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16064 # Also, AIX nm treats weak defined symbols like other global
16065 # defined symbols, whereas GNU nm marks them as "W".
16066 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16067 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'
16069 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'
16071 aix_use_runtimelinking
=no
16073 # Test if we are trying to use run time linking or normal
16074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16075 # need to do runtime linking.
16076 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16077 for ld_flag
in $LDFLAGS; do
16078 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16079 aix_use_runtimelinking
=yes
16086 exp_sym_flag
='-bexport'
16087 no_entry_flag
='-bnoentry'
16090 # When large executables or shared objects are built, AIX ld can
16091 # have problems creating the table of contents. If linking a library
16092 # or program results in "error TOC overflow" add -mminimal-toc to
16093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16097 hardcode_direct
=yes
16098 hardcode_direct_absolute
=yes
16099 hardcode_libdir_separator
=':'
16100 link_all_deplibs
=yes
16101 file_list_spec
='${wl}-f,'
16103 if test "$GCC" = yes; then
16104 case $host_os in aix4.
[012]|aix4.
[012].
*)
16105 # We only want to do this on AIX 4.2 and lower, the check
16106 # below for broken collect2 doesn't work under 4.3+
16107 collect2name
=`${CC} -print-prog-name=collect2`
16108 if test -f "$collect2name" &&
16109 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16111 # We have reworked collect2
16114 # We have old collect2
16115 hardcode_direct
=unsupported
16116 # It fails to find uninstalled libraries when the uninstalled
16117 # path is not listed in the libpath. Setting hardcode_minus_L
16118 # to unsupported forces relinking
16119 hardcode_minus_L
=yes
16120 hardcode_libdir_flag_spec
='-L$libdir'
16121 hardcode_libdir_separator
=
16125 shared_flag
='-shared'
16126 if test "$aix_use_runtimelinking" = yes; then
16127 shared_flag
="$shared_flag "'${wl}-G'
16131 if test "$host_cpu" = ia64
; then
16132 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16133 # chokes on -Wl,-G. The following line is correct:
16136 if test "$aix_use_runtimelinking" = yes; then
16137 shared_flag
='${wl}-G'
16139 shared_flag
='${wl}-bM:SRE'
16144 export_dynamic_flag_spec
='${wl}-bexpall'
16145 # It seems that -bexpall does not export symbols beginning with
16146 # underscore (_), so it is better to generate a list of symbols to export.
16147 always_export_symbols
=yes
16148 if test "$aix_use_runtimelinking" = yes; then
16149 # Warning - without using the other runtime loading flags (-brtl),
16150 # -berok will link without error, but may produce a broken library.
16151 allow_undefined_flag
='-berok'
16152 # Determine the default libpath from the value encoded in an
16153 # empty executable.
16154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16165 if ac_fn_c_try_link
"$LINENO"; then :
16167 lt_aix_libpath_sed
='
16168 /Import File Strings/,/^$/ {
16174 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16175 # Check for a 64-bit object if we didn't find anything.
16176 if test -z "$aix_libpath"; then
16177 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16180 rm -f core conftest.err conftest.
$ac_objext \
16181 conftest
$ac_exeext conftest.
$ac_ext
16182 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16184 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16185 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"
16187 if test "$host_cpu" = ia64
; then
16188 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16189 allow_undefined_flag
="-z nodefs"
16190 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"
16192 # Determine the default libpath from the value encoded in an
16193 # empty executable.
16194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16205 if ac_fn_c_try_link
"$LINENO"; then :
16207 lt_aix_libpath_sed
='
16208 /Import File Strings/,/^$/ {
16214 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16215 # Check for a 64-bit object if we didn't find anything.
16216 if test -z "$aix_libpath"; then
16217 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16220 rm -f core conftest.err conftest.
$ac_objext \
16221 conftest
$ac_exeext conftest.
$ac_ext
16222 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16224 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16225 # Warning - without using the other run time loading flags,
16226 # -berok will link without error, but may produce a broken library.
16227 no_undefined_flag
=' ${wl}-bernotok'
16228 allow_undefined_flag
=' ${wl}-berok'
16229 if test "$with_gnu_ld" = yes; then
16230 # We only use this code for GNU lds that support --whole-archive.
16231 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16233 # Exported symbols can be pulled into shared objects from archives
16234 whole_archive_flag_spec
='$convenience'
16236 archive_cmds_need_lc
=yes
16237 # This is similar to how AIX traditionally builds its shared libraries.
16238 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'
16246 # see comment about AmigaOS4 .so support
16247 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16248 archive_expsym_cmds
=''
16251 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)'
16252 hardcode_libdir_flag_spec
='-L$libdir'
16253 hardcode_minus_L
=yes
16259 export_dynamic_flag_spec
=-rdynamic
16262 cygwin
* | mingw
* | pw32
* | cegcc
*)
16263 # When not using gcc, we currently assume that we are using
16264 # Microsoft Visual C++.
16265 # hardcode_libdir_flag_spec is actually meaningless, as there is
16266 # no search path for DLLs.
16267 hardcode_libdir_flag_spec
=' '
16268 allow_undefined_flag
=unsupported
16269 # Tell ltmain to make .lib files, not .a files.
16271 # Tell ltmain to make .dll files, not .so files.
16273 # FIXME: Setting linknames here is a bad hack.
16274 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16275 # The linker will automatically build a .lib file if we build a DLL.
16276 old_archive_from_new_cmds
='true'
16277 # FIXME: Should let the user specify the lib program.
16278 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16279 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16280 enable_shared_with_static_runtimes
=yes
16283 darwin
* | rhapsody
*)
16286 archive_cmds_need_lc
=no
16288 hardcode_automatic
=yes
16289 hardcode_shlibpath_var
=unsupported
16290 if test "$lt_cv_ld_force_load" = "yes"; then
16291 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\"`'
16293 whole_archive_flag_spec
=''
16295 link_all_deplibs
=yes
16296 allow_undefined_flag
="$_lt_dar_allow_undefined"
16297 case $cc_basename in
16298 ifort
*) _lt_dar_can_shared
=yes ;;
16299 *) _lt_dar_can_shared
=$GCC ;;
16301 if test "$_lt_dar_can_shared" = "yes"; then
16302 output_verbose_link_cmd
=func_echo_all
16303 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16304 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16305 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}"
16306 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}"
16315 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16316 hardcode_libdir_flag_spec
='-L$libdir'
16317 hardcode_shlibpath_var
=no
16320 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16321 # support. Future versions do this automatically, but an explicit c++rt0.o
16322 # does not break anything, and helps significantly (at the cost of a little
16325 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16326 hardcode_libdir_flag_spec
='-R$libdir'
16327 hardcode_direct
=yes
16328 hardcode_shlibpath_var
=no
16331 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16333 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16334 hardcode_direct
=yes
16335 hardcode_minus_L
=yes
16336 hardcode_shlibpath_var
=no
16339 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16340 freebsd
* | dragonfly
*)
16341 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16342 hardcode_libdir_flag_spec
='-R$libdir'
16343 hardcode_direct
=yes
16344 hardcode_shlibpath_var
=no
16348 if test "$GCC" = yes; then
16349 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'
16351 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'
16353 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16354 hardcode_libdir_separator
=:
16355 hardcode_direct
=yes
16357 # hardcode_minus_L: Not really in the search PATH,
16358 # but as the default location of the library.
16359 hardcode_minus_L
=yes
16360 export_dynamic_flag_spec
='${wl}-E'
16364 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16365 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16367 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16369 if test "$with_gnu_ld" = no
; then
16370 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16371 hardcode_libdir_flag_spec_ld
='+b $libdir'
16372 hardcode_libdir_separator
=:
16373 hardcode_direct
=yes
16374 hardcode_direct_absolute
=yes
16375 export_dynamic_flag_spec
='${wl}-E'
16376 # hardcode_minus_L: Not really in the search PATH,
16377 # but as the default location of the library.
16378 hardcode_minus_L
=yes
16383 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16386 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16389 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16392 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16398 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16401 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16405 # Older versions of the 11.00 compiler do not understand -b yet
16406 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16408 $as_echo_n "checking if $CC understands -b... " >&6; }
16409 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16410 $as_echo_n "(cached) " >&6
16412 lt_cv_prog_compiler__b
=no
16413 save_LDFLAGS
="$LDFLAGS"
16414 LDFLAGS
="$LDFLAGS -b"
16415 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16416 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16417 # The linker can only warn and ignore the option if not recognized
16418 # So say no if there are warnings
16419 if test -s conftest.err
; then
16420 # Append any errors to the config.log.
16421 cat conftest.err
1>&5
16422 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16423 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16424 if diff conftest.exp conftest.er2
>/dev
/null
; then
16425 lt_cv_prog_compiler__b
=yes
16428 lt_cv_prog_compiler__b
=yes
16432 LDFLAGS
="$save_LDFLAGS"
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16436 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16438 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16439 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16441 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16447 if test "$with_gnu_ld" = no
; then
16448 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16449 hardcode_libdir_separator
=:
16454 hardcode_shlibpath_var
=no
16457 hardcode_direct
=yes
16458 hardcode_direct_absolute
=yes
16459 export_dynamic_flag_spec
='${wl}-E'
16461 # hardcode_minus_L: Not really in the search PATH,
16462 # but as the default location of the library.
16463 hardcode_minus_L
=yes
16469 irix5
* | irix6
* | nonstopux
*)
16470 if test "$GCC" = yes; then
16471 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'
16472 # Try to use the -exported_symbol ld option, if it does not
16473 # work, assume that -exports_file does not work either and
16474 # implicitly export all symbols.
16475 save_LDFLAGS
="$LDFLAGS"
16476 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16481 if ac_fn_c_try_link
"$LINENO"; then :
16482 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'
16485 rm -f core conftest.err conftest.
$ac_objext \
16486 conftest
$ac_exeext conftest.
$ac_ext
16487 LDFLAGS
="$save_LDFLAGS"
16489 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'
16490 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'
16492 archive_cmds_need_lc
='no'
16493 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16494 hardcode_libdir_separator
=:
16496 link_all_deplibs
=yes
16500 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16501 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16503 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16505 hardcode_libdir_flag_spec
='-R$libdir'
16506 hardcode_direct
=yes
16507 hardcode_shlibpath_var
=no
16511 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_direct
=yes
16513 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16514 hardcode_libdir_separator
=:
16515 hardcode_shlibpath_var
=no
16522 if test -f /usr
/libexec
/ld.so
; then
16523 hardcode_direct
=yes
16524 hardcode_shlibpath_var
=no
16525 hardcode_direct_absolute
=yes
16526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16527 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16528 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16529 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16530 export_dynamic_flag_spec
='${wl}-E'
16533 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16534 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_libdir_flag_spec
='-R$libdir'
16538 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16539 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16549 hardcode_libdir_flag_spec
='-L$libdir'
16550 hardcode_minus_L
=yes
16551 allow_undefined_flag
=unsupported
16552 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'
16553 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16557 if test "$GCC" = yes; then
16558 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16559 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'
16561 allow_undefined_flag
=' -expect_unresolved \*'
16562 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'
16564 archive_cmds_need_lc
='no'
16565 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16566 hardcode_libdir_separator
=:
16569 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16570 if test "$GCC" = yes; then
16571 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16572 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'
16573 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16575 allow_undefined_flag
=' -expect_unresolved \*'
16576 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'
16577 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~
16578 $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'
16580 # Both c and cxx compiler support -rpath directly
16581 hardcode_libdir_flag_spec
='-rpath $libdir'
16583 archive_cmds_need_lc
='no'
16584 hardcode_libdir_separator
=:
16588 no_undefined_flag
=' -z defs'
16589 if test "$GCC" = yes; then
16591 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16593 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16595 case `$CC -V 2>&1` in
16598 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16600 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16604 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16605 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16606 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16610 hardcode_libdir_flag_spec
='-R$libdir'
16611 hardcode_shlibpath_var
=no
16613 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16615 # The compiler driver will combine and reorder linker options,
16616 # but understands `-z linker_flag'. GCC discards it without `$wl',
16617 # but is careful enough not to reorder.
16618 # Supported since Solaris 2.6 (maybe 2.5.1?)
16619 if test "$GCC" = yes; then
16620 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16622 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16626 link_all_deplibs
=yes
16630 if test "x$host_vendor" = xsequent
; then
16631 # Use $CC to link under sequent, because it throws in some extra .o
16632 # files that make .init and .fini sections work.
16633 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16635 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16637 hardcode_libdir_flag_spec
='-L$libdir'
16638 hardcode_direct
=yes
16639 hardcode_minus_L
=yes
16640 hardcode_shlibpath_var
=no
16644 case $host_vendor in
16646 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16647 hardcode_direct
=yes # is this really true???
16650 ## LD is ld it makes a PLAMLIB
16651 ## CC just makes a GrossModule.
16652 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16653 reload_cmds
='$CC -r -o $output$reload_objs'
16657 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16661 runpath_var
='LD_RUN_PATH'
16662 hardcode_shlibpath_var
=no
16666 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16667 hardcode_shlibpath_var
=no
16668 export_dynamic_flag_spec
='-Bexport'
16672 if test -d /usr
/nec
; then
16673 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16674 hardcode_shlibpath_var
=no
16675 runpath_var
=LD_RUN_PATH
16676 hardcode_runpath_var
=yes
16681 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16682 no_undefined_flag
='${wl}-z,text'
16683 archive_cmds_need_lc
=no
16684 hardcode_shlibpath_var
=no
16685 runpath_var
='LD_RUN_PATH'
16687 if test "$GCC" = yes; then
16688 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16691 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16696 sysv5
* | sco3.2v5
* | sco5v6
*)
16697 # Note: We can NOT use -z defs as we might desire, because we do not
16698 # link with -lc, and that would cause any symbols used from libc to
16699 # always be unresolved, which means just about no library would
16700 # ever link correctly. If we're not using GNU ld we use -z text
16701 # though, which does catch some bad symbols but isn't as heavy-handed
16703 no_undefined_flag
='${wl}-z,text'
16704 allow_undefined_flag
='${wl}-z,nodefs'
16705 archive_cmds_need_lc
=no
16706 hardcode_shlibpath_var
=no
16707 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16708 hardcode_libdir_separator
=':'
16709 link_all_deplibs
=yes
16710 export_dynamic_flag_spec
='${wl}-Bexport'
16711 runpath_var
='LD_RUN_PATH'
16713 if test "$GCC" = yes; then
16714 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16715 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16717 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16723 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16724 hardcode_libdir_flag_spec
='-L$libdir'
16725 hardcode_shlibpath_var
=no
16733 if test x
$host_vendor = xsni
; then
16735 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16736 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16743 $as_echo "$ld_shlibs" >&6; }
16744 test "$ld_shlibs" = no
&& can_build_shared
=no
16746 with_gnu_ld
=$with_gnu_ld
16763 # Do we need to explicitly link libc?
16765 case "x$archive_cmds_need_lc" in
16767 # Assume -lc should be added
16768 archive_cmds_need_lc
=yes
16770 if test "$enable_shared" = yes && test "$GCC" = yes; then
16771 case $archive_cmds in
16773 # FIXME: we may have to deal with multi-command sequences.
16776 # Test whether the compiler implicitly links with -lc since on some
16777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16778 # to ld, don't add -lc before -lgcc.
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16780 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16781 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16782 $as_echo_n "(cached) " >&6
16785 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16788 (eval $ac_compile) 2>&5
16790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16791 test $ac_status = 0; } 2>conftest.err
; then
16794 libobjs
=conftest.
$ac_objext
16796 wl
=$lt_prog_compiler_wl
16797 pic_flag
=$lt_prog_compiler_pic
16803 lt_save_allow_undefined_flag
=$allow_undefined_flag
16804 allow_undefined_flag
=
16805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16806 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16809 test $ac_status = 0; }
16811 lt_cv_archive_cmds_need_lc
=no
16813 lt_cv_archive_cmds_need_lc
=yes
16815 allow_undefined_flag
=$lt_save_allow_undefined_flag
16817 cat conftest.err
1>&5
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16823 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16824 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16988 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16990 if test "$GCC" = yes; then
16992 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16993 *) lt_awk_arg
="/^libraries:/" ;;
16996 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16997 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16999 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17000 case $lt_search_path_spec in
17002 # if the path contains ";" then we assume it to be the separator
17003 # otherwise default to the standard path separator (i.e. ":") - it is
17004 # assumed that no part of a normal pathname contains ";" but that should
17005 # okay in the real world where ";" in dirpaths is itself problematic.
17006 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17009 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17012 # Ok, now we have the path, separated by spaces, we can step through it
17013 # and add multilib dir if necessary.
17014 lt_tmp_lt_search_path_spec
=
17015 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17016 for lt_sys_path
in $lt_search_path_spec; do
17017 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17018 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17020 test -d "$lt_sys_path" && \
17021 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17024 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17025 BEGIN {RS=" "; FS="/|\n";} {
17028 for (lt_i = NF; lt_i > 0; lt_i--) {
17029 if ($lt_i != "" && $lt_i != ".") {
17030 if ($lt_i == "..") {
17033 if (lt_count == 0) {
17034 lt_foo="/" $lt_i lt_foo;
17041 if (lt_foo != "") { lt_freq[lt_foo]++; }
17042 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17044 # AWK program above erroneously prepends '/' to C:/dos/paths
17047 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17048 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17050 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17052 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17054 library_names_spec
=
17055 libname_spec
='lib$name'
17059 postuninstall_cmds
=
17063 shlibpath_overrides_runpath
=unknown
17065 dynamic_linker
="$host_os ld.so"
17066 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17067 need_lib_prefix
=unknown
17068 hardcode_into_libs
=no
17070 # when you set need_version to no, make sure it does not cause -set_version
17071 # flags to be left without arguments
17072 need_version
=unknown
17077 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17078 shlibpath_var
=LIBPATH
17080 # AIX 3 has no versioning support, so we append a major version to the name.
17081 soname_spec
='${libname}${release}${shared_ext}$major'
17088 hardcode_into_libs
=yes
17089 if test "$host_cpu" = ia64
; then
17090 # AIX 5 supports IA64
17091 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17092 shlibpath_var
=LD_LIBRARY_PATH
17094 # With GCC up to 2.95.x, collect2 would create an import file
17095 # for dependence libraries. The import file would start with
17096 # the line `#! .'. This would cause the generated library to
17097 # depend on `.', always an invalid library. This was fixed in
17098 # development snapshots of GCC prior to 3.0.
17100 aix4 | aix4.
[01] | aix4.
[01].
*)
17101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17103 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17106 can_build_shared
=no
17110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17111 # soname into executable. Probably we can add versioning support to
17112 # collect2, so additional links can be useful in future.
17113 if test "$aix_use_runtimelinking" = yes; then
17114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17115 # instead of lib<name>.a to let people know that these are not
17116 # typical AIX shared libraries.
17117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 # We preserve .a as extension for shared libraries through AIX4.2
17120 # and later when we are not doing run time linking.
17121 library_names_spec
='${libname}${release}.a $libname.a'
17122 soname_spec
='${libname}${release}${shared_ext}$major'
17124 shlibpath_var
=LIBPATH
17131 # Since July 2007 AmigaOS4 officially supports .so libraries.
17132 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 library_names_spec
='$libname.ixlibrary $libname.a'
17137 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17138 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'
17144 library_names_spec
='${libname}${shared_ext}'
17145 dynamic_linker
="$host_os ld.so"
17146 shlibpath_var
=LIBRARY_PATH
17152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec
='${libname}${release}${shared_ext}$major'
17154 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17155 shlibpath_var
=LD_LIBRARY_PATH
17156 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17157 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17158 # the default ld.so.conf also contains /usr/contrib/lib and
17159 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17160 # libtool to hard-code these into programs
17163 cygwin
* | mingw
* | pw32
* | cegcc
*)
17164 version_type
=windows
17169 case $GCC,$host_os in
17170 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17171 library_names_spec
='$libname.dll.a'
17172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17173 postinstall_cmds
='base_file=`basename \${file}`~
17174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17175 dldir=$destdir/`dirname \$dlpath`~
17176 test -d \$dldir || mkdir -p \$dldir~
17177 $install_prog $dir/$dlname \$dldir/$dlname~
17178 chmod a+x \$dldir/$dlname~
17179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17180 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17182 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17183 dlpath=$dir/\$dldll~
17185 shlibpath_overrides_runpath
=yes
17189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17190 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17192 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17195 # MinGW DLLs use traditional 'lib' prefix
17196 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17199 # pw32 DLLs use 'pw' prefix rather than 'lib'
17200 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17206 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17209 dynamic_linker
='Win32 ld.exe'
17210 # FIXME: first we should search . and the directory the executable is in
17214 darwin
* | rhapsody
*)
17215 dynamic_linker
="$host_os dyld"
17216 version_type
=darwin
17219 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17220 soname_spec
='${libname}${release}${major}$shared_ext'
17221 shlibpath_overrides_runpath
=yes
17222 shlibpath_var
=DYLD_LIBRARY_PATH
17223 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17225 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17226 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17234 soname_spec
='${libname}${release}${shared_ext}$major'
17235 shlibpath_var
=LD_LIBRARY_PATH
17238 freebsd
* | dragonfly
*)
17239 # DragonFly does not have aout. When/if they implement a new
17240 # versioning mechanism, adjust this.
17241 if test -x /usr
/bin
/objformat
; then
17242 objformat
=`/usr/bin/objformat`
17245 freebsd
[23].
*) objformat
=aout
;;
17246 *) objformat
=elf
;;
17249 version_type
=freebsd-
$objformat
17250 case $version_type in
17252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17257 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17261 shlibpath_var
=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath
=yes
17266 freebsd3.
[01]* | freebsdelf3.
[01]*)
17267 shlibpath_overrides_runpath
=yes
17268 hardcode_into_libs
=yes
17270 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17271 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17272 shlibpath_overrides_runpath
=no
17273 hardcode_into_libs
=yes
17275 *) # from 4.6 on, and DragonFly
17276 shlibpath_overrides_runpath
=yes
17277 hardcode_into_libs
=yes
17286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17287 soname_spec
='${libname}${release}${shared_ext}$major'
17288 shlibpath_var
=LD_LIBRARY_PATH
17289 hardcode_into_libs
=yes
17296 dynamic_linker
="$host_os runtime_loader"
17297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17298 soname_spec
='${libname}${release}${shared_ext}$major'
17299 shlibpath_var
=LIBRARY_PATH
17300 shlibpath_overrides_runpath
=yes
17301 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17302 hardcode_into_libs
=yes
17305 hpux9
* | hpux10
* | hpux11
*)
17306 # Give a soname corresponding to the major version so that dld.sl refuses to
17307 # link against other versions.
17314 hardcode_into_libs
=yes
17315 dynamic_linker
="$host_os dld.so"
17316 shlibpath_var
=LD_LIBRARY_PATH
17317 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319 soname_spec
='${libname}${release}${shared_ext}$major'
17320 if test "X$HPUX_IA64_MODE" = X32
; then
17321 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17323 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17325 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17329 hardcode_into_libs
=yes
17330 dynamic_linker
="$host_os dld.sl"
17331 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17332 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 soname_spec
='${libname}${release}${shared_ext}$major'
17335 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17336 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17340 dynamic_linker
="$host_os dld.sl"
17341 shlibpath_var
=SHLIB_PATH
17342 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344 soname_spec
='${libname}${release}${shared_ext}$major'
17347 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17348 postinstall_cmds
='chmod 555 $lib'
17349 # or fails outright, so override atomically:
17350 install_override_mode
=555
17357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17358 soname_spec
='${libname}${release}${shared_ext}$major'
17359 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17360 shlibpath_var
=LD_LIBRARY_PATH
17361 shlibpath_overrides_runpath
=no
17362 hardcode_into_libs
=yes
17365 irix5
* | irix6
* | nonstopux
*)
17367 nonstopux
*) version_type
=nonstopux
;;
17369 if test "$lt_cv_prog_gnu_ld" = yes; then
17377 soname_spec
='${libname}${release}${shared_ext}$major'
17378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17380 irix5
* | nonstopux
*)
17381 libsuff
= shlibsuff
=
17384 case $LD in # libtool.m4 will add one of these switches to LD
17385 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17386 libsuff
= shlibsuff
= libmagic
=32-bit;;
17387 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17388 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17389 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17390 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17391 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17395 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17396 shlibpath_overrides_runpath
=no
17397 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17398 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17399 hardcode_into_libs
=yes
17402 # No shared lib support for Linux oldld, aout, or coff.
17403 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17407 # This must be Linux ELF.
17408 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413 soname_spec
='${libname}${release}${shared_ext}$major'
17414 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17415 shlibpath_var
=LD_LIBRARY_PATH
17416 shlibpath_overrides_runpath
=no
17418 # Some binutils ld are patched to set DT_RUNPATH
17419 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17420 $as_echo_n "(cached) " >&6
17422 lt_cv_shlibpath_overrides_runpath
=no
17423 save_LDFLAGS
=$LDFLAGS
17424 save_libdir
=$libdir
17425 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17426 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17438 if ac_fn_c_try_link
"$LINENO"; then :
17439 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17440 lt_cv_shlibpath_overrides_runpath
=yes
17443 rm -f core conftest.err conftest.
$ac_objext \
17444 conftest
$ac_exeext conftest.
$ac_ext
17445 LDFLAGS
=$save_LDFLAGS
17446 libdir
=$save_libdir
17450 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17452 # This implies no fast_install, which is unacceptable.
17453 # Some rework will be needed to allow for fast_install
17454 # before this can be enabled.
17455 hardcode_into_libs
=yes
17457 # Append ld.so.conf contents to the search path
17458 if test -f /etc
/ld.so.conf
; then
17459 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' ' '`
17460 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17463 # We used to test for /lib/ld.so.1 and disable shared libraries on
17464 # powerpc, because MkLinux only supported shared libraries with the
17465 # GNU dynamic linker. Since this was broken with cross compilers,
17466 # most powerpc-linux boxes support dynamic linking these days and
17467 # people can always --disable-shared, the test was removed, and we
17468 # assume the GNU/Linux dynamic linker is in use.
17469 dynamic_linker
='GNU/Linux ld.so'
17476 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17478 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17479 dynamic_linker
='NetBSD (a.out) ld.so'
17481 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17482 soname_spec
='${libname}${release}${shared_ext}$major'
17483 dynamic_linker
='NetBSD ld.elf_so'
17485 shlibpath_var
=LD_LIBRARY_PATH
17486 shlibpath_overrides_runpath
=yes
17487 hardcode_into_libs
=yes
17492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493 shlibpath_var
=LD_LIBRARY_PATH
17494 shlibpath_overrides_runpath
=yes
17501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502 soname_spec
='${libname}${release}${shared_ext}$major'
17503 shlibpath_var
=LD_LIBRARY_PATH
17504 shlibpath_overrides_runpath
=no
17505 hardcode_into_libs
=yes
17506 dynamic_linker
='ldqnx.so'
17511 sys_lib_dlsearch_path_spec
="/usr/lib"
17513 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17515 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17516 *) need_version
=no
;;
17518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17519 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17520 shlibpath_var
=LD_LIBRARY_PATH
17521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17523 openbsd2.
[89] | openbsd2.
[89].
*)
17524 shlibpath_overrides_runpath
=no
17527 shlibpath_overrides_runpath
=yes
17531 shlibpath_overrides_runpath
=yes
17536 libname_spec
='$name'
17539 library_names_spec
='$libname${shared_ext} $libname.a'
17540 dynamic_linker
='OS/2 ld.exe'
17541 shlibpath_var
=LIBPATH
17544 osf3
* | osf4
* | osf5
*)
17548 soname_spec
='${libname}${release}${shared_ext}$major'
17549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 shlibpath_var
=LD_LIBRARY_PATH
17551 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17552 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564 soname_spec
='${libname}${release}${shared_ext}$major'
17565 shlibpath_var
=LD_LIBRARY_PATH
17566 shlibpath_overrides_runpath
=yes
17567 hardcode_into_libs
=yes
17568 # ldd complains unless libraries are executable
17569 postinstall_cmds
='chmod +x $lib'
17574 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17575 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17576 shlibpath_var
=LD_LIBRARY_PATH
17577 shlibpath_overrides_runpath
=yes
17578 if test "$with_gnu_ld" = yes; then
17586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587 soname_spec
='${libname}${release}${shared_ext}$major'
17588 shlibpath_var
=LD_LIBRARY_PATH
17589 case $host_vendor in
17591 shlibpath_overrides_runpath
=no
17593 runpath_var
=LD_RUN_PATH
17601 shlibpath_overrides_runpath
=no
17602 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17608 if test -d /usr
/nec
;then
17610 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17611 soname_spec
='$libname${shared_ext}.$major'
17612 shlibpath_var
=LD_LIBRARY_PATH
17616 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17617 version_type
=freebsd-elf
17620 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17621 soname_spec
='${libname}${release}${shared_ext}$major'
17622 shlibpath_var
=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath
=yes
17624 hardcode_into_libs
=yes
17625 if test "$with_gnu_ld" = yes; then
17626 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17628 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17631 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17635 sys_lib_dlsearch_path_spec
='/usr/lib'
17639 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17643 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 shlibpath_var
=LD_LIBRARY_PATH
17645 shlibpath_overrides_runpath
=no
17646 hardcode_into_libs
=yes
17651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652 soname_spec
='${libname}${release}${shared_ext}$major'
17653 shlibpath_var
=LD_LIBRARY_PATH
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17661 $as_echo "$dynamic_linker" >&6; }
17662 test "$dynamic_linker" = no
&& can_build_shared
=no
17664 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17665 if test "$GCC" = yes; then
17666 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17669 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17670 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17672 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17673 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17768 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17770 if test -n "$hardcode_libdir_flag_spec" ||
17771 test -n "$runpath_var" ||
17772 test "X$hardcode_automatic" = "Xyes" ; then
17774 # We can hardcode non-existent directories.
17775 if test "$hardcode_direct" != no
&&
17776 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17777 # have to relink, otherwise we might link with an installed library
17778 # when we should be linking with a yet-to-be-installed one
17779 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17780 test "$hardcode_minus_L" != no
; then
17781 # Linking always hardcodes the temporary library directory.
17782 hardcode_action
=relink
17784 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17785 hardcode_action
=immediate
17788 # We cannot hardcode anything, or else we can only hardcode existing
17790 hardcode_action
=unsupported
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17793 $as_echo "$hardcode_action" >&6; }
17795 if test "$hardcode_action" = relink ||
17796 test "$inherit_rpath" = yes; then
17797 # Fast installation is not supported
17798 enable_fast_install
=no
17799 elif test "$shlibpath_overrides_runpath" = yes ||
17800 test "$enable_shared" = no
; then
17801 # Fast installation is not necessary
17802 enable_fast_install
=needless
17810 if test "x$enable_dlopen" != xyes
; then
17811 enable_dlopen
=unknown
17812 enable_dlopen_self
=unknown
17813 enable_dlopen_self_static
=unknown
17820 lt_cv_dlopen
="load_add_on"
17822 lt_cv_dlopen_self
=yes
17825 mingw
* | pw32
* | cegcc
*)
17826 lt_cv_dlopen
="LoadLibrary"
17831 lt_cv_dlopen
="dlopen"
17836 # if libdl is installed we need to link against it
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17838 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17840 $as_echo_n "(cached) " >&6
17842 ac_check_lib_save_LIBS
=$LIBS
17844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17847 /* Override any GCC internal prototype to avoid an error.
17848 Use char because int might match the return type of a GCC
17849 builtin and then its argument prototype would still apply. */
17862 if ac_fn_c_try_link
"$LINENO"; then :
17863 ac_cv_lib_dl_dlopen
=yes
17865 ac_cv_lib_dl_dlopen
=no
17867 rm -f core conftest.err conftest.
$ac_objext \
17868 conftest
$ac_exeext conftest.
$ac_ext
17869 LIBS
=$ac_check_lib_save_LIBS
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17872 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17873 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17874 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17877 lt_cv_dlopen
="dyld"
17879 lt_cv_dlopen_self
=yes
17886 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17887 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17888 lt_cv_dlopen
="shl_load"
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17891 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17892 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17893 $as_echo_n "(cached) " >&6
17895 ac_check_lib_save_LIBS
=$LIBS
17897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17910 return shl_load ();
17915 if ac_fn_c_try_link
"$LINENO"; then :
17916 ac_cv_lib_dld_shl_load
=yes
17918 ac_cv_lib_dld_shl_load
=no
17920 rm -f core conftest.err conftest.
$ac_objext \
17921 conftest
$ac_exeext conftest.
$ac_ext
17922 LIBS
=$ac_check_lib_save_LIBS
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17925 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17926 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17927 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17929 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17930 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17931 lt_cv_dlopen
="dlopen"
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17934 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17936 $as_echo_n "(cached) " >&6
17938 ac_check_lib_save_LIBS
=$LIBS
17940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17943 /* Override any GCC internal prototype to avoid an error.
17944 Use char because int might match the return type of a GCC
17945 builtin and then its argument prototype would still apply. */
17958 if ac_fn_c_try_link
"$LINENO"; then :
17959 ac_cv_lib_dl_dlopen
=yes
17961 ac_cv_lib_dl_dlopen
=no
17963 rm -f core conftest.err conftest.
$ac_objext \
17964 conftest
$ac_exeext conftest.
$ac_ext
17965 LIBS
=$ac_check_lib_save_LIBS
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17969 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17970 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17973 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17974 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17975 $as_echo_n "(cached) " >&6
17977 ac_check_lib_save_LIBS
=$LIBS
17978 LIBS
="-lsvld $LIBS"
17979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17982 /* Override any GCC internal prototype to avoid an error.
17983 Use char because int might match the return type of a GCC
17984 builtin and then its argument prototype would still apply. */
17997 if ac_fn_c_try_link
"$LINENO"; then :
17998 ac_cv_lib_svld_dlopen
=yes
18000 ac_cv_lib_svld_dlopen
=no
18002 rm -f core conftest.err conftest.
$ac_objext \
18003 conftest
$ac_exeext conftest.
$ac_ext
18004 LIBS
=$ac_check_lib_save_LIBS
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18007 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18008 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18009 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18012 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18014 $as_echo_n "(cached) " >&6
18016 ac_check_lib_save_LIBS
=$LIBS
18018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18021 /* Override any GCC internal prototype to avoid an error.
18022 Use char because int might match the return type of a GCC
18023 builtin and then its argument prototype would still apply. */
18031 return dld_link ();
18036 if ac_fn_c_try_link
"$LINENO"; then :
18037 ac_cv_lib_dld_dld_link
=yes
18039 ac_cv_lib_dld_dld_link
=no
18041 rm -f core conftest.err conftest.
$ac_objext \
18042 conftest
$ac_exeext conftest.
$ac_ext
18043 LIBS
=$ac_check_lib_save_LIBS
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18046 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18047 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18048 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18069 if test "x$lt_cv_dlopen" != xno
; then
18075 case $lt_cv_dlopen in
18077 save_CPPFLAGS
="$CPPFLAGS"
18078 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18080 save_LDFLAGS
="$LDFLAGS"
18081 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18084 LIBS
="$lt_cv_dlopen_libs $LIBS"
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18087 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18088 if test "${lt_cv_dlopen_self+set}" = set; then :
18089 $as_echo_n "(cached) " >&6
18091 if test "$cross_compiling" = yes; then :
18092 lt_cv_dlopen_self
=cross
18094 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18095 lt_status
=$lt_dlunknown
18096 cat > conftest.
$ac_ext <<_LT_EOF
18097 #line 18097 "configure"
18098 #include "confdefs.h"
18107 # define LT_DLGLOBAL RTLD_GLOBAL
18110 # define LT_DLGLOBAL DL_GLOBAL
18112 # define LT_DLGLOBAL 0
18116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18117 find out it does not work in some platform. */
18118 #ifndef LT_DLLAZY_OR_NOW
18120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18123 # define LT_DLLAZY_OR_NOW DL_LAZY
18126 # define LT_DLLAZY_OR_NOW RTLD_NOW
18129 # define LT_DLLAZY_OR_NOW DL_NOW
18131 # define LT_DLLAZY_OR_NOW 0
18138 /* When -fvisbility=hidden is used, assume the code has been annotated
18139 correspondingly for the symbols needed. */
18140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18141 void fnord () __attribute__((visibility("default")));
18144 void fnord () { int i=42; }
18147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18148 int status = $lt_dlunknown;
18152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18156 else puts (dlerror ());
18158 /* dlclose (self); */
18166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18167 (eval $ac_link) 2>&5
18169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18170 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18171 (.
/conftest
; exit; ) >&5 2>/dev
/null
18173 case x
$lt_status in
18174 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18175 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18176 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18179 # compilation failed
18180 lt_cv_dlopen_self
=no
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18188 $as_echo "$lt_cv_dlopen_self" >&6; }
18190 if test "x$lt_cv_dlopen_self" = xyes
; then
18191 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18193 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18194 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18195 $as_echo_n "(cached) " >&6
18197 if test "$cross_compiling" = yes; then :
18198 lt_cv_dlopen_self_static
=cross
18200 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18201 lt_status
=$lt_dlunknown
18202 cat > conftest.
$ac_ext <<_LT_EOF
18203 #line 18203 "configure"
18204 #include "confdefs.h"
18213 # define LT_DLGLOBAL RTLD_GLOBAL
18216 # define LT_DLGLOBAL DL_GLOBAL
18218 # define LT_DLGLOBAL 0
18222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18223 find out it does not work in some platform. */
18224 #ifndef LT_DLLAZY_OR_NOW
18226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18229 # define LT_DLLAZY_OR_NOW DL_LAZY
18232 # define LT_DLLAZY_OR_NOW RTLD_NOW
18235 # define LT_DLLAZY_OR_NOW DL_NOW
18237 # define LT_DLLAZY_OR_NOW 0
18244 /* When -fvisbility=hidden is used, assume the code has been annotated
18245 correspondingly for the symbols needed. */
18246 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18247 void fnord () __attribute__((visibility("default")));
18250 void fnord () { int i=42; }
18253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18254 int status = $lt_dlunknown;
18258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18262 else puts (dlerror ());
18264 /* dlclose (self); */
18272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18273 (eval $ac_link) 2>&5
18275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18276 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18277 (.
/conftest
; exit; ) >&5 2>/dev
/null
18279 case x
$lt_status in
18280 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18281 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18282 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18285 # compilation failed
18286 lt_cv_dlopen_self_static
=no
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18294 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18297 CPPFLAGS
="$save_CPPFLAGS"
18298 LDFLAGS
="$save_LDFLAGS"
18303 case $lt_cv_dlopen_self in
18304 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18305 *) enable_dlopen_self
=unknown
;;
18308 case $lt_cv_dlopen_self_static in
18309 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18310 *) enable_dlopen_self_static
=unknown
;;
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18333 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18334 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18335 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18336 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18338 $as_echo "yes" >&6; }
18340 # FIXME - insert some real tests, host_os isn't really good enough
18343 if test -n "$STRIP" ; then
18344 striplib
="$STRIP -x"
18345 old_striplib
="$STRIP -S"
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18347 $as_echo "yes" >&6; }
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350 $as_echo "no" >&6; }
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18355 $as_echo "no" >&6; }
18371 # Report which library types will actually be built
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18373 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18375 $as_echo "$can_build_shared" >&6; }
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18378 $as_echo_n "checking whether to build shared libraries... " >&6; }
18379 test "$can_build_shared" = "no" && enable_shared
=no
18381 # On AIX, shared libraries and static libraries use the same namespace, and
18382 # are all built from PIC.
18385 test "$enable_shared" = yes && enable_static
=no
18386 if test -n "$RANLIB"; then
18387 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18388 postinstall_cmds
='$RANLIB $lib'
18393 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18394 test "$enable_shared" = yes && enable_static
=no
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18399 $as_echo "$enable_shared" >&6; }
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18402 $as_echo_n "checking whether to build static libraries... " >&6; }
18403 # Make sure either enable_shared or enable_static is yes.
18404 test "$enable_shared" = yes || enable_static
=yes
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18406 $as_echo "$enable_static" >&6; }
18413 ac_cpp
='$CPP $CPPFLAGS'
18414 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18415 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18416 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18420 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18421 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18422 (test "X$CXX" != "Xg++"))) ; then
18424 ac_cpp
='$CXXCPP $CPPFLAGS'
18425 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18426 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18427 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18429 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18430 if test -z "$CXXCPP"; then
18431 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18432 $as_echo_n "(cached) " >&6
18434 # Double quotes because CXXCPP needs to be expanded
18435 for CXXCPP
in "$CXX -E" "/lib/cpp"
18437 ac_preproc_ok
=false
18438 for ac_cxx_preproc_warn_flag
in '' yes
18440 # Use a header file that comes with gcc, so configuring glibc
18441 # with a fresh cross-compiler works.
18442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18443 # <limits.h> exists even on freestanding compilers.
18444 # On the NeXT, cc -E runs the code through the compiler's parser,
18445 # not just through cpp. "Syntax error" is here to catch this case.
18446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18449 # include <limits.h>
18451 # include <assert.h>
18455 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18458 # Broken: fails on valid input.
18461 rm -f conftest.err conftest.
$ac_ext
18463 # OK, works on sane cases. Now check whether nonexistent headers
18464 # can be detected and how.
18465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18466 /* end confdefs.h. */
18467 #include <ac_nonexistent.h>
18469 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18470 # Broken: success on invalid input.
18473 # Passes both tests.
18477 rm -f conftest.err conftest.
$ac_ext
18480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18481 rm -f conftest.err conftest.
$ac_ext
18482 if $ac_preproc_ok; then :
18487 ac_cv_prog_CXXCPP
=$CXXCPP
18490 CXXCPP
=$ac_cv_prog_CXXCPP
18492 ac_cv_prog_CXXCPP
=$CXXCPP
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18495 $as_echo "$CXXCPP" >&6; }
18496 ac_preproc_ok
=false
18497 for ac_cxx_preproc_warn_flag
in '' yes
18499 # Use a header file that comes with gcc, so configuring glibc
18500 # with a fresh cross-compiler works.
18501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18502 # <limits.h> exists even on freestanding compilers.
18503 # On the NeXT, cc -E runs the code through the compiler's parser,
18504 # not just through cpp. "Syntax error" is here to catch this case.
18505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18506 /* end confdefs.h. */
18508 # include <limits.h>
18510 # include <assert.h>
18514 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18517 # Broken: fails on valid input.
18520 rm -f conftest.err conftest.
$ac_ext
18522 # OK, works on sane cases. Now check whether nonexistent headers
18523 # can be detected and how.
18524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18525 /* end confdefs.h. */
18526 #include <ac_nonexistent.h>
18528 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18529 # Broken: success on invalid input.
18532 # Passes both tests.
18536 rm -f conftest.err conftest.
$ac_ext
18539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18540 rm -f conftest.err conftest.
$ac_ext
18541 if $ac_preproc_ok; then :
18544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18546 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18547 See \`config.log' for more details." "$LINENO" 5; }
18551 ac_cpp
='$CPP $CPPFLAGS'
18552 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18557 _lt_caught_CXX_error
=yes
18561 ac_cpp
='$CXXCPP $CPPFLAGS'
18562 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18563 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18564 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18566 archive_cmds_need_lc_CXX
=no
18567 allow_undefined_flag_CXX
=
18568 always_export_symbols_CXX
=no
18569 archive_expsym_cmds_CXX
=
18570 compiler_needs_object_CXX
=no
18571 export_dynamic_flag_spec_CXX
=
18572 hardcode_direct_CXX
=no
18573 hardcode_direct_absolute_CXX
=no
18574 hardcode_libdir_flag_spec_CXX
=
18575 hardcode_libdir_flag_spec_ld_CXX
=
18576 hardcode_libdir_separator_CXX
=
18577 hardcode_minus_L_CXX
=no
18578 hardcode_shlibpath_var_CXX
=unsupported
18579 hardcode_automatic_CXX
=no
18580 inherit_rpath_CXX
=no
18582 module_expsym_cmds_CXX
=
18583 link_all_deplibs_CXX
=unknown
18584 old_archive_cmds_CXX
=$old_archive_cmds
18585 reload_flag_CXX
=$reload_flag
18586 reload_cmds_CXX
=$reload_cmds
18587 no_undefined_flag_CXX
=
18588 whole_archive_flag_spec_CXX
=
18589 enable_shared_with_static_runtimes_CXX
=no
18591 # Source file extension for C++ test sources.
18594 # Object file extension for compiled C++ test sources.
18598 # No sense in running all these tests if we already determined that
18599 # the CXX compiler isn't working. Some variables (like enable_shared)
18600 # are currently assumed to apply to all compilers on this platform,
18601 # and will be corrupted by setting them based on a non-working compiler.
18602 if test "$_lt_caught_CXX_error" != yes; then
18603 # Code to be used in simple compile tests
18604 lt_simple_compile_test_code
="int some_variable = 0;"
18606 # Code to be used in simple link tests
18607 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18609 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18616 # If no C compiler was specified, use CC.
18619 # If no C compiler flags were specified, use CFLAGS.
18620 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18622 # Allow CC to be a program name with arguments.
18626 # save warnings/boilerplate of simple test code
18627 ac_outfile
=conftest.
$ac_objext
18628 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18629 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18630 _lt_compiler_boilerplate
=`cat conftest.err`
18633 ac_outfile
=conftest.
$ac_objext
18634 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18635 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18636 _lt_linker_boilerplate
=`cat conftest.err`
18640 # Allow CC to be a program name with arguments.
18645 lt_save_with_gnu_ld
=$with_gnu_ld
18646 lt_save_path_LD
=$lt_cv_path_LD
18647 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18648 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18650 $as_unset lt_cv_prog_gnu_ld
18652 if test -n "${lt_cv_path_LDCXX+set}"; then
18653 lt_cv_path_LD
=$lt_cv_path_LDCXX
18655 $as_unset lt_cv_path_LD
18657 test -z "${LDCXX+set}" || LD
=$LDCXX
18661 for cc_temp
in $compiler""; do
18663 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18664 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18669 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18672 if test -n "$compiler"; then
18673 # We don't want -fno-exception when compiling C++ code, so set the
18674 # no_builtin_flag separately
18675 if test "$GXX" = yes; then
18676 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18678 lt_prog_compiler_no_builtin_flag_CXX
=
18681 if test "$GXX" = yes; then
18682 # Set up default GNU C++ configuration
18686 # Check whether --with-gnu-ld was given.
18687 if test "${with_gnu_ld+set}" = set; then :
18688 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18694 if test "$GCC" = yes; then
18695 # Check if gcc -print-prog-name=ld gives a path.
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18697 $as_echo_n "checking for ld used by $CC... " >&6; }
18700 # gcc leaves a trailing carriage return which upsets mingw
18701 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18703 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18706 # Accept absolute paths.
18708 re_direlt
='/[^/][^/]*/\.\./'
18709 # Canonicalize the pathname of ld
18710 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18711 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18712 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18714 test -z "$LD" && LD
="$ac_prog"
18717 # If it fails, then pretend we aren't using GCC.
18721 # If it is relative, then search for the first ld in PATH.
18722 with_gnu_ld
=unknown
18725 elif test "$with_gnu_ld" = yes; then
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18727 $as_echo_n "checking for GNU ld... " >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18730 $as_echo_n "checking for non-GNU ld... " >&6; }
18732 if test "${lt_cv_path_LD+set}" = set; then :
18733 $as_echo_n "(cached) " >&6
18735 if test -z "$LD"; then
18736 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18737 for ac_dir
in $PATH; do
18739 test -z "$ac_dir" && ac_dir
=.
18740 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18741 lt_cv_path_LD
="$ac_dir/$ac_prog"
18742 # Check to see if the program is GNU ld. I'd rather use --version,
18743 # but apparently some variants of GNU ld only accept -v.
18744 # Break only if it was the GNU/non-GNU ld that we prefer.
18745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18746 *GNU
* |
*'with BFD'*)
18747 test "$with_gnu_ld" != no
&& break
18750 test "$with_gnu_ld" != yes && break
18757 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18761 LD
="$lt_cv_path_LD"
18762 if test -n "$LD"; then
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18764 $as_echo "$LD" >&6; }
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18767 $as_echo "no" >&6; }
18769 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18772 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18773 $as_echo_n "(cached) " >&6
18775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18776 case `$LD -v 2>&1 </dev/null` in
18777 *GNU
* |
*'with BFD'*)
18778 lt_cv_prog_gnu_ld
=yes
18781 lt_cv_prog_gnu_ld
=no
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18787 with_gnu_ld
=$lt_cv_prog_gnu_ld
18795 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18796 # archiving commands below assume that GNU ld is being used.
18797 if test "$with_gnu_ld" = yes; then
18798 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18799 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'
18801 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18802 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18804 # If archive_cmds runs LD, not CC, wlarc should be empty
18805 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18806 # investigate it a little bit more. (MM)
18809 # ancient GNU ld didn't support --whole-archive et. al.
18810 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18811 $GREP 'no-whole-archive' > /dev
/null
; then
18812 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18814 whole_archive_flag_spec_CXX
=
18820 # A generic and very simple default shared library creation
18821 # command for GNU C++ for the case where it uses the native
18822 # linker, instead of GNU ld. If possible, this setting should
18823 # overridden to take advantage of the native linker features on
18824 # the platform it is being used on.
18825 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18828 # Commands to make compiler produce verbose output that lists
18829 # what "hidden" libraries, object files and flags are used when
18830 # linking a shared library.
18831 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18839 # PORTME: fill in a description of your system's C++ link characteristics
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18841 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18845 # FIXME: insert proper C++ library support
18849 if test "$host_cpu" = ia64
; then
18850 # On IA64, the linker does run time linking by default, so we don't
18851 # have to do anything special.
18852 aix_use_runtimelinking
=no
18853 exp_sym_flag
='-Bexport'
18856 aix_use_runtimelinking
=no
18858 # Test if we are trying to use run time linking or normal
18859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18860 # need to do runtime linking.
18861 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18862 for ld_flag
in $LDFLAGS; do
18865 aix_use_runtimelinking
=yes
18873 exp_sym_flag
='-bexport'
18874 no_entry_flag
='-bnoentry'
18877 # When large executables or shared objects are built, AIX ld can
18878 # have problems creating the table of contents. If linking a library
18879 # or program results in "error TOC overflow" add -mminimal-toc to
18880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18883 archive_cmds_CXX
=''
18884 hardcode_direct_CXX
=yes
18885 hardcode_direct_absolute_CXX
=yes
18886 hardcode_libdir_separator_CXX
=':'
18887 link_all_deplibs_CXX
=yes
18888 file_list_spec_CXX
='${wl}-f,'
18890 if test "$GXX" = yes; then
18891 case $host_os in aix4.
[012]|aix4.
[012].
*)
18892 # We only want to do this on AIX 4.2 and lower, the check
18893 # below for broken collect2 doesn't work under 4.3+
18894 collect2name
=`${CC} -print-prog-name=collect2`
18895 if test -f "$collect2name" &&
18896 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18898 # We have reworked collect2
18901 # We have old collect2
18902 hardcode_direct_CXX
=unsupported
18903 # It fails to find uninstalled libraries when the uninstalled
18904 # path is not listed in the libpath. Setting hardcode_minus_L
18905 # to unsupported forces relinking
18906 hardcode_minus_L_CXX
=yes
18907 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18908 hardcode_libdir_separator_CXX
=
18911 shared_flag
='-shared'
18912 if test "$aix_use_runtimelinking" = yes; then
18913 shared_flag
="$shared_flag "'${wl}-G'
18917 if test "$host_cpu" = ia64
; then
18918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18919 # chokes on -Wl,-G. The following line is correct:
18922 if test "$aix_use_runtimelinking" = yes; then
18923 shared_flag
='${wl}-G'
18925 shared_flag
='${wl}-bM:SRE'
18930 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18931 # It seems that -bexpall does not export symbols beginning with
18932 # underscore (_), so it is better to generate a list of symbols to
18934 always_export_symbols_CXX
=yes
18935 if test "$aix_use_runtimelinking" = yes; then
18936 # Warning - without using the other runtime loading flags (-brtl),
18937 # -berok will link without error, but may produce a broken library.
18938 allow_undefined_flag_CXX
='-berok'
18939 # Determine the default libpath from the value encoded in an empty
18941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18942 /* end confdefs.h. */
18952 if ac_fn_cxx_try_link
"$LINENO"; then :
18954 lt_aix_libpath_sed
='
18955 /Import File Strings/,/^$/ {
18961 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18962 # Check for a 64-bit object if we didn't find anything.
18963 if test -z "$aix_libpath"; then
18964 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18967 rm -f core conftest.err conftest.
$ac_objext \
18968 conftest
$ac_exeext conftest.
$ac_ext
18969 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18971 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18973 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"
18975 if test "$host_cpu" = ia64
; then
18976 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18977 allow_undefined_flag_CXX
="-z nodefs"
18978 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"
18980 # Determine the default libpath from the value encoded in an
18981 # empty executable.
18982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18993 if ac_fn_cxx_try_link
"$LINENO"; then :
18995 lt_aix_libpath_sed
='
18996 /Import File Strings/,/^$/ {
19002 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19003 # Check for a 64-bit object if we didn't find anything.
19004 if test -z "$aix_libpath"; then
19005 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19008 rm -f core conftest.err conftest.
$ac_objext \
19009 conftest
$ac_exeext conftest.
$ac_ext
19010 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19012 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19013 # Warning - without using the other run time loading flags,
19014 # -berok will link without error, but may produce a broken library.
19015 no_undefined_flag_CXX
=' ${wl}-bernotok'
19016 allow_undefined_flag_CXX
=' ${wl}-berok'
19017 if test "$with_gnu_ld" = yes; then
19018 # We only use this code for GNU lds that support --whole-archive.
19019 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19021 # Exported symbols can be pulled into shared objects from archives
19022 whole_archive_flag_spec_CXX
='$convenience'
19024 archive_cmds_need_lc_CXX
=yes
19025 # This is similar to how AIX traditionally builds its shared
19027 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'
19033 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19034 allow_undefined_flag_CXX
=unsupported
19035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19036 # support --undefined. This deserves some investigation. FIXME
19037 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19044 case $cc_basename in
19046 # FIXME: insert proper C++ library support
19052 cygwin
* | mingw
* | pw32
* | cegcc
*)
19053 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19054 # as there is no search path for DLLs.
19055 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19056 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19057 allow_undefined_flag_CXX
=unsupported
19058 always_export_symbols_CXX
=no
19059 enable_shared_with_static_runtimes_CXX
=yes
19061 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19062 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'
19063 # If the export-symbols file already is a .def file (1st line
19064 # is EXPORTS), use it as is; otherwise, prepend...
19065 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19066 cp $export_symbols $output_objdir/$soname.def;
19068 echo EXPORTS > $output_objdir/$soname.def;
19069 cat $export_symbols >> $output_objdir/$soname.def;
19071 $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'
19076 darwin
* | rhapsody
*)
19079 archive_cmds_need_lc_CXX
=no
19080 hardcode_direct_CXX
=no
19081 hardcode_automatic_CXX
=yes
19082 hardcode_shlibpath_var_CXX
=unsupported
19083 if test "$lt_cv_ld_force_load" = "yes"; then
19084 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\"`'
19086 whole_archive_flag_spec_CXX
=''
19088 link_all_deplibs_CXX
=yes
19089 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19090 case $cc_basename in
19091 ifort
*) _lt_dar_can_shared
=yes ;;
19092 *) _lt_dar_can_shared
=$GCC ;;
19094 if test "$_lt_dar_can_shared" = "yes"; then
19095 output_verbose_link_cmd
=func_echo_all
19096 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}"
19097 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19098 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}"
19099 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}"
19100 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19101 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}"
19102 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}"
19112 case $cc_basename in
19114 # FIXME: insert proper C++ library support
19118 # Green Hills C++ Compiler
19119 # FIXME: insert proper C++ library support
19123 # FIXME: insert proper C++ library support
19130 # C++ shared libraries reported to be fairly broken before
19136 archive_cmds_need_lc_CXX
=no
19139 freebsd
* | dragonfly
*)
19140 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19149 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150 link_all_deplibs_CXX
=yes
19154 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19155 hardcode_libdir_separator_CXX
=:
19156 export_dynamic_flag_spec_CXX
='${wl}-E'
19157 hardcode_direct_CXX
=yes
19158 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19159 # but as the default
19160 # location of the library.
19162 case $cc_basename in
19164 # FIXME: insert proper C++ library support
19168 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'
19169 # Commands to make compiler produce verbose output that lists
19170 # what "hidden" libraries, object files and flags are used when
19171 # linking a shared library.
19173 # There doesn't appear to be a way to prevent this compiler from
19174 # explicitly linking system object files so we need to strip them
19175 # from the output so that they don't get included in the library
19177 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"'
19180 if test "$GXX" = yes; then
19181 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'
19183 # FIXME: insert proper C++ library support
19191 if test $with_gnu_ld = no
; then
19192 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19193 hardcode_libdir_separator_CXX
=:
19199 export_dynamic_flag_spec_CXX
='${wl}-E'
19205 hardcode_direct_CXX
=no
19206 hardcode_shlibpath_var_CXX
=no
19209 hardcode_direct_CXX
=yes
19210 hardcode_direct_absolute_CXX
=yes
19211 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19212 # but as the default
19213 # location of the library.
19217 case $cc_basename in
19219 # FIXME: insert proper C++ library support
19225 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19228 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19231 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19234 # Commands to make compiler produce verbose output that lists
19235 # what "hidden" libraries, object files and flags are used when
19236 # linking a shared library.
19238 # There doesn't appear to be a way to prevent this compiler from
19239 # explicitly linking system object files so we need to strip them
19240 # from the output so that they don't get included in the library
19242 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"'
19245 if test "$GXX" = yes; then
19246 if test $with_gnu_ld = no
; then
19249 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19252 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19255 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'
19260 # FIXME: insert proper C++ library support
19268 hardcode_direct_CXX
=no
19269 hardcode_shlibpath_var_CXX
=no
19270 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19271 export_dynamic_flag_spec_CXX
='${wl}-E'
19272 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19273 # Instead, shared libraries are loaded at an image base (0x10000000 by
19274 # default) and relocated if they conflict, which is a slow very memory
19275 # consuming and fragmenting process. To avoid this, we pick a random,
19276 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19277 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19278 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'
19279 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'
19282 case $cc_basename in
19285 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'
19287 # Archives containing C++ object files must be created using
19288 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19289 # necessary to make sure instantiated templates are included
19291 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19294 if test "$GXX" = yes; then
19295 if test "$with_gnu_ld" = no
; then
19296 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'
19298 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'
19301 link_all_deplibs_CXX
=yes
19304 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19305 hardcode_libdir_separator_CXX
=:
19306 inherit_rpath_CXX
=yes
19309 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19310 case $cc_basename in
19312 # Kuck and Associates, Inc. (KAI) C++ Compiler
19314 # KCC will only create a shared library if the output file
19315 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19316 # to its proper name (with version) after linking.
19317 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'
19318 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'
19319 # Commands to make compiler produce verbose output that lists
19320 # what "hidden" libraries, object files and flags are used when
19321 # linking a shared library.
19323 # There doesn't appear to be a way to prevent this compiler from
19324 # explicitly linking system object files so we need to strip them
19325 # from the output so that they don't get included in the library
19327 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"'
19329 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19330 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19332 # Archives containing C++ object files must be created using
19333 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19334 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19339 # version 8.0 and above of icpc choke on multiply defined symbols
19340 # if we add $predep_objects and $postdep_objects, however 7.1 and
19341 # earlier do not add the objects themselves.
19342 case `$CC -V 2>&1` in
19344 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345 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'
19347 *) # Version 8.0 or newer
19350 ia64
*) tmp_idyn
=' -i_dynamic';;
19352 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19353 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'
19356 archive_cmds_need_lc_CXX
=no
19357 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19358 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19359 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19362 # Portland Group C++ compiler
19364 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19365 prelink_cmds_CXX
='tpldir=Template.dir~
19367 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19368 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19369 old_archive_cmds_CXX
='tpldir=Template.dir~
19371 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19372 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19374 archive_cmds_CXX
='tpldir=Template.dir~
19376 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19377 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19378 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19380 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19381 $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'
19383 *) # Version 6 and above use weak symbols
19384 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19385 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'
19389 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19390 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19391 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'
19395 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19396 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'
19398 runpath_var
=LD_RUN_PATH
19399 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19400 hardcode_libdir_separator_CXX
=:
19402 # Commands to make compiler produce verbose output that lists
19403 # what "hidden" libraries, object files and flags are used when
19404 # linking a shared library.
19406 # There doesn't appear to be a way to prevent this compiler from
19407 # explicitly linking system object files so we need to strip them
19408 # from the output so that they don't get included in the library
19410 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'
19412 xl
* | mpixl
* | bgxl
*)
19413 # IBM XL 8.0 on PPC, with GNU ld
19414 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19415 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19416 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19417 if test "x$supports_anon_versioning" = xyes
; then
19418 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19420 echo "local: *; };" >> $output_objdir/$libname.ver~
19421 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19425 case `$CC -V 2>&1 | sed 5q` in
19428 no_undefined_flag_CXX
=' -zdefs'
19429 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19430 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'
19431 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19432 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'
19433 compiler_needs_object_CXX
=yes
19435 # Not sure whether something based on
19436 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19438 output_verbose_link_cmd
='func_echo_all'
19440 # Archives containing C++ object files must be created using
19441 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19442 # necessary to make sure instantiated templates are included
19444 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19452 # FIXME: insert proper C++ library support
19457 # FIXME: insert proper C++ library support
19462 case $cc_basename in
19464 # FIXME: insert proper C++ library support
19468 # FIXME: insert proper C++ library support
19475 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19476 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19478 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19479 hardcode_direct_CXX
=yes
19480 hardcode_shlibpath_var_CXX
=no
19482 # Workaround some broken pre-1.5 toolchains
19483 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19491 # C++ shared libraries are fairly broken
19496 if test -f /usr
/libexec
/ld.so
; then
19497 hardcode_direct_CXX
=yes
19498 hardcode_shlibpath_var_CXX
=no
19499 hardcode_direct_absolute_CXX
=yes
19500 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19501 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19503 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19504 export_dynamic_flag_spec_CXX
='${wl}-E'
19505 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19507 output_verbose_link_cmd
=func_echo_all
19513 osf3
* | osf4
* | osf5
*)
19514 case $cc_basename in
19516 # Kuck and Associates, Inc. (KAI) C++ Compiler
19518 # KCC will only create a shared library if the output file
19519 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19520 # to its proper name (with version) after linking.
19521 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'
19523 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19524 hardcode_libdir_separator_CXX
=:
19526 # Archives containing C++ object files must be created using
19527 # the KAI C++ compiler.
19529 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19530 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19534 # Rational C++ 2.4.1
19535 # FIXME: insert proper C++ library support
19541 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19542 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'
19543 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19546 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19547 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'
19548 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19549 echo "-hidden">> $lib.exp~
19550 $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~
19552 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19556 hardcode_libdir_separator_CXX
=:
19558 # Commands to make compiler produce verbose output that lists
19559 # what "hidden" libraries, object files and flags are used when
19560 # linking a shared library.
19562 # There doesn't appear to be a way to prevent this compiler from
19563 # explicitly linking system object files so we need to strip them
19564 # from the output so that they don't get included in the library
19566 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"'
19569 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19570 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19573 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'
19576 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'
19580 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19581 hardcode_libdir_separator_CXX
=:
19583 # Commands to make compiler produce verbose output that lists
19584 # what "hidden" libraries, object files and flags are used when
19585 # linking a shared library.
19586 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19589 # FIXME: insert proper C++ library support
19597 # FIXME: insert proper C++ library support
19602 case $cc_basename in
19605 # FIXME: insert proper C++ library support
19610 # FIXME: insert proper C++ library support
19614 # FIXME: insert proper C++ library support
19621 case $cc_basename in
19623 # Sun C++ 4.2, 5.x and Centerline C++
19624 archive_cmds_need_lc_CXX
=yes
19625 no_undefined_flag_CXX
=' -zdefs'
19626 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19627 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19628 $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'
19630 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19631 hardcode_shlibpath_var_CXX
=no
19633 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19635 # The compiler driver will combine and reorder linker options,
19636 # but understands `-z linker_flag'.
19637 # Supported since Solaris 2.6 (maybe 2.5.1?)
19638 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19641 link_all_deplibs_CXX
=yes
19643 output_verbose_link_cmd
='func_echo_all'
19645 # Archives containing C++ object files must be created using
19646 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19647 # necessary to make sure instantiated templates are included
19649 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19652 # Green Hills C++ Compiler
19653 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19655 # The C++ compiler must be used to create the archive.
19656 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19659 # GNU C++ compiler with Solaris linker
19660 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19661 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19662 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19663 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19664 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19665 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19667 # Commands to make compiler produce verbose output that lists
19668 # what "hidden" libraries, object files and flags are used when
19669 # linking a shared library.
19670 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19672 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19674 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19675 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19676 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19678 # Commands to make compiler produce verbose output that lists
19679 # what "hidden" libraries, object files and flags are used when
19680 # linking a shared library.
19681 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19684 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19686 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19688 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19696 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19697 no_undefined_flag_CXX
='${wl}-z,text'
19698 archive_cmds_need_lc_CXX
=no
19699 hardcode_shlibpath_var_CXX
=no
19700 runpath_var
='LD_RUN_PATH'
19702 case $cc_basename in
19704 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19705 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19708 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19709 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19714 sysv5
* | sco3.2v5
* | sco5v6
*)
19715 # Note: We can NOT use -z defs as we might desire, because we do not
19716 # link with -lc, and that would cause any symbols used from libc to
19717 # always be unresolved, which means just about no library would
19718 # ever link correctly. If we're not using GNU ld we use -z text
19719 # though, which does catch some bad symbols but isn't as heavy-handed
19721 no_undefined_flag_CXX
='${wl}-z,text'
19722 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19723 archive_cmds_need_lc_CXX
=no
19724 hardcode_shlibpath_var_CXX
=no
19725 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19726 hardcode_libdir_separator_CXX
=':'
19727 link_all_deplibs_CXX
=yes
19728 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19729 runpath_var
='LD_RUN_PATH'
19731 case $cc_basename in
19733 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19734 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19735 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19736 '"$old_archive_cmds_CXX"
19737 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19738 '"$reload_cmds_CXX"
19741 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19742 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19748 case $cc_basename in
19750 # NonStop-UX NCC 3.20
19751 # FIXME: insert proper C++ library support
19755 # FIXME: insert proper C++ library support
19762 # FIXME: insert proper C++ library support
19767 # FIXME: insert proper C++ library support
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19773 $as_echo "$ld_shlibs_CXX" >&6; }
19774 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19780 ## There is no encapsulation within the following macros, do not change
19781 ## the running order or otherwise move them around unless you know exactly
19782 ## what you are doing...
19783 # Dependencies to place before and after the object being linked:
19784 predep_objects_CXX
=
19785 postdep_objects_CXX
=
19788 compiler_lib_search_path_CXX
=
19790 cat > conftest.
$ac_ext <<_LT_EOF
19794 Foo (void) { a = 0; }
19800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19801 (eval $ac_compile) 2>&5
19803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19804 test $ac_status = 0; }; then
19805 # Parse the compiler output and extract the necessary
19806 # objects, libraries and library flags.
19808 # Sentinel used to keep track of whether or not we are before
19809 # the conftest object file.
19810 pre_test_object_deps_done
=no
19812 for p
in `eval "$output_verbose_link_cmd"`; do
19816 # Some compilers place space between "-{L,R}" and the path.
19817 # Remove the space.
19818 if test $p = "-L" ||
19819 test $p = "-R"; then
19826 if test "$pre_test_object_deps_done" = no
; then
19829 # Internal compiler library paths should come after those
19830 # provided the user. The postdeps already come after the
19831 # user supplied libs so there is no need to process them.
19832 if test -z "$compiler_lib_search_path_CXX"; then
19833 compiler_lib_search_path_CXX
="${prev}${p}"
19835 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19838 # The "-l" case would never come before the object being
19839 # linked, so don't bother handling this case.
19842 if test -z "$postdeps_CXX"; then
19843 postdeps_CXX
="${prev}${p}"
19845 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19851 # This assumes that the test object file only shows up
19852 # once in the compiler output.
19853 if test "$p" = "conftest.$objext"; then
19854 pre_test_object_deps_done
=yes
19858 if test "$pre_test_object_deps_done" = no
; then
19859 if test -z "$predep_objects_CXX"; then
19860 predep_objects_CXX
="$p"
19862 predep_objects_CXX
="$predep_objects_CXX $p"
19865 if test -z "$postdep_objects_CXX"; then
19866 postdep_objects_CXX
="$p"
19868 postdep_objects_CXX
="$postdep_objects_CXX $p"
19873 *) ;; # Ignore the rest.
19881 echo "libtool.m4: error: problem compiling CXX test program"
19884 $RM -f confest.
$objext
19886 # PORTME: override above test on systems where it is broken
19889 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19890 # hack all around it, let's just trust "g++" to DTRT.
19891 predep_objects_CXX
=
19892 postdep_objects_CXX
=
19897 case `$CC -V 2>&1 | sed 5q` in
19901 # The more standards-conforming stlport4 library is
19902 # incompatible with the Cstd library. Avoid specifying
19903 # it if it's in CXXFLAGS. Ignore libCrun as
19904 # -library=stlport4 depends on it.
19905 case " $CXX $CXXFLAGS " in
19906 *" -library=stlport4 "*)
19907 solaris_use_stlport4
=yes
19911 if test "$solaris_use_stlport4" != yes; then
19912 postdeps_CXX
='-library=Cstd -library=Crun'
19919 case $cc_basename in
19921 # The more standards-conforming stlport4 library is
19922 # incompatible with the Cstd library. Avoid specifying
19923 # it if it's in CXXFLAGS. Ignore libCrun as
19924 # -library=stlport4 depends on it.
19925 case " $CXX $CXXFLAGS " in
19926 *" -library=stlport4 "*)
19927 solaris_use_stlport4
=yes
19931 # Adding this requires a known-good setup of shared libraries for
19932 # Sun compiler versions before 5.6, else PIC objects from an old
19933 # archive will be linked into the output, leading to subtle bugs.
19934 if test "$solaris_use_stlport4" != yes; then
19935 postdeps_CXX
='-library=Cstd -library=Crun'
19943 case " $postdeps_CXX " in
19944 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19946 compiler_lib_search_dirs_CXX
=
19947 if test -n "${compiler_lib_search_path_CXX}"; then
19948 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19981 lt_prog_compiler_wl_CXX
=
19982 lt_prog_compiler_pic_CXX
=
19983 lt_prog_compiler_static_CXX
=
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19986 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19988 # C++ specific cases for pic, static, wl, etc.
19989 if test "$GXX" = yes; then
19990 lt_prog_compiler_wl_CXX
='-Wl,'
19991 lt_prog_compiler_static_CXX
='-static'
19995 # All AIX code is PIC.
19996 if test "$host_cpu" = ia64
; then
19997 # AIX 5 now supports IA64 processor
19998 lt_prog_compiler_static_CXX
='-Bstatic'
20000 lt_prog_compiler_pic_CXX
='-fPIC'
20006 # see comment about AmigaOS4 .so support
20007 lt_prog_compiler_pic_CXX
='-fPIC'
20010 # FIXME: we need at least 68020 code to build shared libraries, but
20011 # adding the `-m68020' flag to GCC prevents building anything better,
20013 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20018 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20019 # PIC is the default for these OSes.
20021 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20022 # This hack is so that the source file can tell whether it is being
20023 # built for inclusion in a dll (and should export symbols for example).
20024 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20025 # (--disable-auto-import) libraries
20026 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20028 darwin
* | rhapsody
*)
20029 # PIC is the default on this platform
20030 # Common symbols not allowed in MH_DYLIB files
20031 lt_prog_compiler_pic_CXX
='-fno-common'
20034 # DJGPP does not support shared libraries at all
20035 lt_prog_compiler_pic_CXX
=
20038 # PIC is the default for Haiku.
20039 # The "-static" flag exists, but is broken.
20040 lt_prog_compiler_static_CXX
=
20043 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20044 # Instead, we relocate shared libraries at runtime.
20047 if test -d /usr
/nec
; then
20048 lt_prog_compiler_pic_CXX
=-Kconform_pic
20052 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20053 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20054 # sets the default TLS model and affects inlining.
20059 lt_prog_compiler_pic_CXX
='-fPIC'
20064 # QNX uses GNU C++, but need to define -shared option too, otherwise
20065 # it will coredump.
20066 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20069 lt_prog_compiler_pic_CXX
='-fPIC'
20075 # All AIX code is PIC.
20076 if test "$host_cpu" = ia64
; then
20077 # AIX 5 now supports IA64 processor
20078 lt_prog_compiler_static_CXX
='-Bstatic'
20080 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20084 case $cc_basename in
20086 # Green Hills C++ Compiler
20087 # _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"
20092 case $cc_basename in
20094 lt_prog_compiler_pic_CXX
='-KPIC'
20097 # Green Hills C++ Compiler
20098 lt_prog_compiler_pic_CXX
='-pic'
20104 freebsd
* | dragonfly
*)
20105 # FreeBSD uses GNU C++
20107 hpux9
* | hpux10
* | hpux11
*)
20108 case $cc_basename in
20110 lt_prog_compiler_wl_CXX
='-Wl,'
20111 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20112 if test "$host_cpu" != ia64
; then
20113 lt_prog_compiler_pic_CXX
='+Z'
20117 lt_prog_compiler_wl_CXX
='-Wl,'
20118 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20124 lt_prog_compiler_pic_CXX
='+Z'
20133 # This is c89, which is MS Visual C++ (no shared libs)
20134 # Anyone wants to do a port?
20136 irix5
* | irix6
* | nonstopux
*)
20137 case $cc_basename in
20139 lt_prog_compiler_wl_CXX
='-Wl,'
20140 lt_prog_compiler_static_CXX
='-non_shared'
20141 # CC pic flag -KPIC is the default.
20147 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20148 case $cc_basename in
20151 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20152 lt_prog_compiler_pic_CXX
='-fPIC'
20155 # old Intel C++ for x86_64 which still supported -KPIC.
20156 lt_prog_compiler_wl_CXX
='-Wl,'
20157 lt_prog_compiler_pic_CXX
='-KPIC'
20158 lt_prog_compiler_static_CXX
='-static'
20161 # Intel C++, used to be incompatible with GCC.
20162 # ICC 10 doesn't accept -KPIC any more.
20163 lt_prog_compiler_wl_CXX
='-Wl,'
20164 lt_prog_compiler_pic_CXX
='-fPIC'
20165 lt_prog_compiler_static_CXX
='-static'
20168 # Portland Group C++ compiler
20169 lt_prog_compiler_wl_CXX
='-Wl,'
20170 lt_prog_compiler_pic_CXX
='-fpic'
20171 lt_prog_compiler_static_CXX
='-Bstatic'
20175 # Make sure the PIC flag is empty. It appears that all Alpha
20176 # Linux and Compaq Tru64 Unix objects are PIC.
20177 lt_prog_compiler_pic_CXX
=
20178 lt_prog_compiler_static_CXX
='-non_shared'
20180 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20181 # IBM XL 8.0, 9.0 on PPC and BlueGene
20182 lt_prog_compiler_wl_CXX
='-Wl,'
20183 lt_prog_compiler_pic_CXX
='-qpic'
20184 lt_prog_compiler_static_CXX
='-qstaticlink'
20187 case `$CC -V 2>&1 | sed 5q` in
20190 lt_prog_compiler_pic_CXX
='-KPIC'
20191 lt_prog_compiler_static_CXX
='-Bstatic'
20192 lt_prog_compiler_wl_CXX
='-Qoption ld '
20203 case $cc_basename in
20205 lt_prog_compiler_pic_CXX
='-W c,exportall'
20214 # QNX uses GNU C++, but need to define -shared option too, otherwise
20215 # it will coredump.
20216 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20218 osf3
* | osf4
* | osf5
*)
20219 case $cc_basename in
20221 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20224 # Rational C++ 2.4.1
20225 lt_prog_compiler_pic_CXX
='-pic'
20228 # Digital/Compaq C++
20229 lt_prog_compiler_wl_CXX
='-Wl,'
20230 # Make sure the PIC flag is empty. It appears that all Alpha
20231 # Linux and Compaq Tru64 Unix objects are PIC.
20232 lt_prog_compiler_pic_CXX
=
20233 lt_prog_compiler_static_CXX
='-non_shared'
20242 case $cc_basename in
20244 # Sun C++ 4.2, 5.x and Centerline C++
20245 lt_prog_compiler_pic_CXX
='-KPIC'
20246 lt_prog_compiler_static_CXX
='-Bstatic'
20247 lt_prog_compiler_wl_CXX
='-Qoption ld '
20250 # Green Hills C++ Compiler
20251 lt_prog_compiler_pic_CXX
='-PIC'
20258 case $cc_basename in
20261 lt_prog_compiler_pic_CXX
='-pic'
20262 lt_prog_compiler_static_CXX
='-Bstatic'
20266 lt_prog_compiler_pic_CXX
='-pic'
20272 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20273 case $cc_basename in
20275 lt_prog_compiler_wl_CXX
='-Wl,'
20276 lt_prog_compiler_pic_CXX
='-KPIC'
20277 lt_prog_compiler_static_CXX
='-Bstatic'
20282 case $cc_basename in
20284 # NonStop-UX NCC 3.20
20285 lt_prog_compiler_pic_CXX
='-KPIC'
20294 lt_prog_compiler_can_build_shared_CXX
=no
20300 # For platforms which do not support PIC, -DPIC is meaningless:
20302 lt_prog_compiler_pic_CXX
=
20305 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20309 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20314 # Check to make sure the PIC flag actually works.
20316 if test -n "$lt_prog_compiler_pic_CXX"; then
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20318 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20319 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20320 $as_echo_n "(cached) " >&6
20322 lt_cv_prog_compiler_pic_works_CXX
=no
20323 ac_outfile
=conftest.
$ac_objext
20324 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20325 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20326 # Insert the option either (1) after the last *FLAGS variable, or
20327 # (2) before a word containing "conftest.", or (3) at the end.
20328 # Note that $ac_compile itself does not contain backslashes and begins
20329 # with a dollar sign (not a hyphen), so the echo should work correctly.
20330 # The option is referenced via a variable to avoid confusing sed.
20331 lt_compile
=`echo "$ac_compile" | $SED \
20332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20334 -e 's:$: $lt_compiler_flag:'`
20335 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20336 (eval "$lt_compile" 2>conftest.err
)
20338 cat conftest.err
>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 if (exit $ac_status) && test -s "$ac_outfile"; then
20341 # The compiler can only warn and ignore the option if not recognized
20342 # So say no if there are warnings other than the usual output.
20343 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20344 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20345 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20346 lt_cv_prog_compiler_pic_works_CXX
=yes
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20353 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20355 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20356 case $lt_prog_compiler_pic_CXX in
20358 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20361 lt_prog_compiler_pic_CXX
=
20362 lt_prog_compiler_can_build_shared_CXX
=no
20370 # Check to make sure the static flag actually works.
20372 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20374 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20375 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20376 $as_echo_n "(cached) " >&6
20378 lt_cv_prog_compiler_static_works_CXX
=no
20379 save_LDFLAGS
="$LDFLAGS"
20380 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20381 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20382 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20383 # The linker can only warn and ignore the option if not recognized
20384 # So say no if there are warnings
20385 if test -s conftest.err
; then
20386 # Append any errors to the config.log.
20387 cat conftest.err
1>&5
20388 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20389 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20390 if diff conftest.exp conftest.er2
>/dev
/null
; then
20391 lt_cv_prog_compiler_static_works_CXX
=yes
20394 lt_cv_prog_compiler_static_works_CXX
=yes
20398 LDFLAGS
="$save_LDFLAGS"
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20402 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20404 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20407 lt_prog_compiler_static_CXX
=
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20415 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20416 $as_echo_n "(cached) " >&6
20418 lt_cv_prog_compiler_c_o_CXX
=no
20419 $RM -r conftest
2>/dev
/null
20423 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20425 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20426 # Insert the option either (1) after the last *FLAGS variable, or
20427 # (2) before a word containing "conftest.", or (3) at the end.
20428 # Note that $ac_compile itself does not contain backslashes and begins
20429 # with a dollar sign (not a hyphen), so the echo should work correctly.
20430 lt_compile
=`echo "$ac_compile" | $SED \
20431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20433 -e 's:$: $lt_compiler_flag:'`
20434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20435 (eval "$lt_compile" 2>out
/conftest.err
)
20437 cat out
/conftest.err
>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20441 # The compiler can only warn and ignore the option if not recognized
20442 # So say no if there are warnings
20443 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20444 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20445 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20446 lt_cv_prog_compiler_c_o_CXX
=yes
20451 # SGI C++ compiler will create directory out/ii_files/ for
20452 # template instantiation
20453 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20454 $RM out
/* && rmdir out
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20461 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20467 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20468 $as_echo_n "(cached) " >&6
20470 lt_cv_prog_compiler_c_o_CXX
=no
20471 $RM -r conftest
2>/dev
/null
20475 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20477 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20478 # Insert the option either (1) after the last *FLAGS variable, or
20479 # (2) before a word containing "conftest.", or (3) at the end.
20480 # Note that $ac_compile itself does not contain backslashes and begins
20481 # with a dollar sign (not a hyphen), so the echo should work correctly.
20482 lt_compile
=`echo "$ac_compile" | $SED \
20483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20485 -e 's:$: $lt_compiler_flag:'`
20486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20487 (eval "$lt_compile" 2>out
/conftest.err
)
20489 cat out
/conftest.err
>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20493 # The compiler can only warn and ignore the option if not recognized
20494 # So say no if there are warnings
20495 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20496 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20497 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20498 lt_cv_prog_compiler_c_o_CXX
=yes
20503 # SGI C++ compiler will create directory out/ii_files/ for
20504 # template instantiation
20505 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20506 $RM out
/* && rmdir out
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20513 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20518 hard_links
="nottested"
20519 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20520 # do not overwrite the value of need_locks provided by the user
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20522 $as_echo_n "checking if we can lock with hard links... " >&6; }
20525 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20527 ln conftest.a conftest.b
2>&5 || hard_links
=no
20528 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20530 $as_echo "$hard_links" >&6; }
20531 if test "$hard_links" = no
; then
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20533 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20543 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20545 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20548 # If we're using GNU nm, then we don't want the "-C" option.
20549 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20550 # Also, AIX nm treats weak defined symbols like other global defined
20551 # symbols, whereas GNU nm marks them as "W".
20552 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20553 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'
20555 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'
20559 export_symbols_cmds_CXX
="$ltdll_cmds"
20561 cygwin
* | mingw
* | cegcc
*)
20562 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'
20565 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20568 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20571 $as_echo "$ld_shlibs_CXX" >&6; }
20572 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20574 with_gnu_ld_CXX
=$with_gnu_ld
20582 # Do we need to explicitly link libc?
20584 case "x$archive_cmds_need_lc_CXX" in
20586 # Assume -lc should be added
20587 archive_cmds_need_lc_CXX
=yes
20589 if test "$enable_shared" = yes && test "$GCC" = yes; then
20590 case $archive_cmds_CXX in
20592 # FIXME: we may have to deal with multi-command sequences.
20595 # Test whether the compiler implicitly links with -lc since on some
20596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20597 # to ld, don't add -lc before -lgcc.
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20600 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20601 $as_echo_n "(cached) " >&6
20604 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20607 (eval $ac_compile) 2>&5
20609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20610 test $ac_status = 0; } 2>conftest.err
; then
20613 libobjs
=conftest.
$ac_objext
20615 wl
=$lt_prog_compiler_wl_CXX
20616 pic_flag
=$lt_prog_compiler_pic_CXX
20622 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20623 allow_undefined_flag_CXX
=
20624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20625 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20628 test $ac_status = 0; }
20630 lt_cv_archive_cmds_need_lc_CXX
=no
20632 lt_cv_archive_cmds_need_lc_CXX
=yes
20634 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20636 cat conftest.err
1>&5
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20642 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20643 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20714 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20716 library_names_spec
=
20717 libname_spec
='lib$name'
20721 postuninstall_cmds
=
20725 shlibpath_overrides_runpath
=unknown
20727 dynamic_linker
="$host_os ld.so"
20728 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20729 need_lib_prefix
=unknown
20730 hardcode_into_libs
=no
20732 # when you set need_version to no, make sure it does not cause -set_version
20733 # flags to be left without arguments
20734 need_version
=unknown
20739 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20740 shlibpath_var
=LIBPATH
20742 # AIX 3 has no versioning support, so we append a major version to the name.
20743 soname_spec
='${libname}${release}${shared_ext}$major'
20750 hardcode_into_libs
=yes
20751 if test "$host_cpu" = ia64
; then
20752 # AIX 5 supports IA64
20753 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20754 shlibpath_var
=LD_LIBRARY_PATH
20756 # With GCC up to 2.95.x, collect2 would create an import file
20757 # for dependence libraries. The import file would start with
20758 # the line `#! .'. This would cause the generated library to
20759 # depend on `.', always an invalid library. This was fixed in
20760 # development snapshots of GCC prior to 3.0.
20762 aix4 | aix4.
[01] | aix4.
[01].
*)
20763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20765 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20768 can_build_shared
=no
20772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20773 # soname into executable. Probably we can add versioning support to
20774 # collect2, so additional links can be useful in future.
20775 if test "$aix_use_runtimelinking" = yes; then
20776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20777 # instead of lib<name>.a to let people know that these are not
20778 # typical AIX shared libraries.
20779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20781 # We preserve .a as extension for shared libraries through AIX4.2
20782 # and later when we are not doing run time linking.
20783 library_names_spec
='${libname}${release}.a $libname.a'
20784 soname_spec
='${libname}${release}${shared_ext}$major'
20786 shlibpath_var
=LIBPATH
20793 # Since July 2007 AmigaOS4 officially supports .so libraries.
20794 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 library_names_spec
='$libname.ixlibrary $libname.a'
20799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20800 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'
20806 library_names_spec
='${libname}${shared_ext}'
20807 dynamic_linker
="$host_os ld.so"
20808 shlibpath_var
=LIBRARY_PATH
20814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20815 soname_spec
='${libname}${release}${shared_ext}$major'
20816 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20817 shlibpath_var
=LD_LIBRARY_PATH
20818 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20819 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20820 # the default ld.so.conf also contains /usr/contrib/lib and
20821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20822 # libtool to hard-code these into programs
20825 cygwin
* | mingw
* | pw32
* | cegcc
*)
20826 version_type
=windows
20831 case $GCC,$host_os in
20832 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20833 library_names_spec
='$libname.dll.a'
20834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20835 postinstall_cmds
='base_file=`basename \${file}`~
20836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20837 dldir=$destdir/`dirname \$dlpath`~
20838 test -d \$dldir || mkdir -p \$dldir~
20839 $install_prog $dir/$dlname \$dldir/$dlname~
20840 chmod a+x \$dldir/$dlname~
20841 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20842 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20844 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20845 dlpath=$dir/\$dldll~
20847 shlibpath_overrides_runpath
=yes
20851 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20852 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20856 # MinGW DLLs use traditional 'lib' prefix
20857 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20860 # pw32 DLLs use 'pw' prefix rather than 'lib'
20861 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20867 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20870 dynamic_linker
='Win32 ld.exe'
20871 # FIXME: first we should search . and the directory the executable is in
20875 darwin
* | rhapsody
*)
20876 dynamic_linker
="$host_os dyld"
20877 version_type
=darwin
20880 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20881 soname_spec
='${libname}${release}${major}$shared_ext'
20882 shlibpath_overrides_runpath
=yes
20883 shlibpath_var
=DYLD_LIBRARY_PATH
20884 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20886 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20894 soname_spec
='${libname}${release}${shared_ext}$major'
20895 shlibpath_var
=LD_LIBRARY_PATH
20898 freebsd
* | dragonfly
*)
20899 # DragonFly does not have aout. When/if they implement a new
20900 # versioning mechanism, adjust this.
20901 if test -x /usr
/bin
/objformat
; then
20902 objformat
=`/usr/bin/objformat`
20905 freebsd
[23].
*) objformat
=aout
;;
20906 *) objformat
=elf
;;
20909 version_type
=freebsd-
$objformat
20910 case $version_type in
20912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20917 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20921 shlibpath_var
=LD_LIBRARY_PATH
20924 shlibpath_overrides_runpath
=yes
20926 freebsd3.
[01]* | freebsdelf3.
[01]*)
20927 shlibpath_overrides_runpath
=yes
20928 hardcode_into_libs
=yes
20930 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20931 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20932 shlibpath_overrides_runpath
=no
20933 hardcode_into_libs
=yes
20935 *) # from 4.6 on, and DragonFly
20936 shlibpath_overrides_runpath
=yes
20937 hardcode_into_libs
=yes
20946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20947 soname_spec
='${libname}${release}${shared_ext}$major'
20948 shlibpath_var
=LD_LIBRARY_PATH
20949 hardcode_into_libs
=yes
20956 dynamic_linker
="$host_os runtime_loader"
20957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20958 soname_spec
='${libname}${release}${shared_ext}$major'
20959 shlibpath_var
=LIBRARY_PATH
20960 shlibpath_overrides_runpath
=yes
20961 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20962 hardcode_into_libs
=yes
20965 hpux9
* | hpux10
* | hpux11
*)
20966 # Give a soname corresponding to the major version so that dld.sl refuses to
20967 # link against other versions.
20974 hardcode_into_libs
=yes
20975 dynamic_linker
="$host_os dld.so"
20976 shlibpath_var
=LD_LIBRARY_PATH
20977 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 soname_spec
='${libname}${release}${shared_ext}$major'
20980 if test "X$HPUX_IA64_MODE" = X32
; then
20981 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20983 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20985 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20989 hardcode_into_libs
=yes
20990 dynamic_linker
="$host_os dld.sl"
20991 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20992 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20993 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20994 soname_spec
='${libname}${release}${shared_ext}$major'
20995 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20996 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21000 dynamic_linker
="$host_os dld.sl"
21001 shlibpath_var
=SHLIB_PATH
21002 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21003 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21004 soname_spec
='${libname}${release}${shared_ext}$major'
21007 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21008 postinstall_cmds
='chmod 555 $lib'
21009 # or fails outright, so override atomically:
21010 install_override_mode
=555
21017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21018 soname_spec
='${libname}${release}${shared_ext}$major'
21019 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21020 shlibpath_var
=LD_LIBRARY_PATH
21021 shlibpath_overrides_runpath
=no
21022 hardcode_into_libs
=yes
21025 irix5
* | irix6
* | nonstopux
*)
21027 nonstopux
*) version_type
=nonstopux
;;
21029 if test "$lt_cv_prog_gnu_ld" = yes; then
21037 soname_spec
='${libname}${release}${shared_ext}$major'
21038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21040 irix5
* | nonstopux
*)
21041 libsuff
= shlibsuff
=
21044 case $LD in # libtool.m4 will add one of these switches to LD
21045 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21046 libsuff
= shlibsuff
= libmagic
=32-bit;;
21047 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21048 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21049 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21050 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21051 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21055 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21056 shlibpath_overrides_runpath
=no
21057 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21058 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21059 hardcode_into_libs
=yes
21062 # No shared lib support for Linux oldld, aout, or coff.
21063 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21067 # This must be Linux ELF.
21068 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21073 soname_spec
='${libname}${release}${shared_ext}$major'
21074 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21075 shlibpath_var
=LD_LIBRARY_PATH
21076 shlibpath_overrides_runpath
=no
21078 # Some binutils ld are patched to set DT_RUNPATH
21079 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21080 $as_echo_n "(cached) " >&6
21082 lt_cv_shlibpath_overrides_runpath
=no
21083 save_LDFLAGS
=$LDFLAGS
21084 save_libdir
=$libdir
21085 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21086 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21088 /* end confdefs.h. */
21098 if ac_fn_cxx_try_link
"$LINENO"; then :
21099 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21100 lt_cv_shlibpath_overrides_runpath
=yes
21103 rm -f core conftest.err conftest.
$ac_objext \
21104 conftest
$ac_exeext conftest.
$ac_ext
21105 LDFLAGS
=$save_LDFLAGS
21106 libdir
=$save_libdir
21110 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21112 # This implies no fast_install, which is unacceptable.
21113 # Some rework will be needed to allow for fast_install
21114 # before this can be enabled.
21115 hardcode_into_libs
=yes
21117 # Append ld.so.conf contents to the search path
21118 if test -f /etc
/ld.so.conf
; then
21119 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' ' '`
21120 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21123 # We used to test for /lib/ld.so.1 and disable shared libraries on
21124 # powerpc, because MkLinux only supported shared libraries with the
21125 # GNU dynamic linker. Since this was broken with cross compilers,
21126 # most powerpc-linux boxes support dynamic linking these days and
21127 # people can always --disable-shared, the test was removed, and we
21128 # assume the GNU/Linux dynamic linker is in use.
21129 dynamic_linker
='GNU/Linux ld.so'
21136 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21138 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21139 dynamic_linker
='NetBSD (a.out) ld.so'
21141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21142 soname_spec
='${libname}${release}${shared_ext}$major'
21143 dynamic_linker
='NetBSD ld.elf_so'
21145 shlibpath_var
=LD_LIBRARY_PATH
21146 shlibpath_overrides_runpath
=yes
21147 hardcode_into_libs
=yes
21152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21153 shlibpath_var
=LD_LIBRARY_PATH
21154 shlibpath_overrides_runpath
=yes
21161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21162 soname_spec
='${libname}${release}${shared_ext}$major'
21163 shlibpath_var
=LD_LIBRARY_PATH
21164 shlibpath_overrides_runpath
=no
21165 hardcode_into_libs
=yes
21166 dynamic_linker
='ldqnx.so'
21171 sys_lib_dlsearch_path_spec
="/usr/lib"
21173 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21175 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21176 *) need_version
=no
;;
21178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21179 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21180 shlibpath_var
=LD_LIBRARY_PATH
21181 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21183 openbsd2.
[89] | openbsd2.
[89].
*)
21184 shlibpath_overrides_runpath
=no
21187 shlibpath_overrides_runpath
=yes
21191 shlibpath_overrides_runpath
=yes
21196 libname_spec
='$name'
21199 library_names_spec
='$libname${shared_ext} $libname.a'
21200 dynamic_linker
='OS/2 ld.exe'
21201 shlibpath_var
=LIBPATH
21204 osf3
* | osf4
* | osf5
*)
21208 soname_spec
='${libname}${release}${shared_ext}$major'
21209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21210 shlibpath_var
=LD_LIBRARY_PATH
21211 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21212 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21223 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21224 soname_spec
='${libname}${release}${shared_ext}$major'
21225 shlibpath_var
=LD_LIBRARY_PATH
21226 shlibpath_overrides_runpath
=yes
21227 hardcode_into_libs
=yes
21228 # ldd complains unless libraries are executable
21229 postinstall_cmds
='chmod +x $lib'
21234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21235 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21236 shlibpath_var
=LD_LIBRARY_PATH
21237 shlibpath_overrides_runpath
=yes
21238 if test "$with_gnu_ld" = yes; then
21246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21247 soname_spec
='${libname}${release}${shared_ext}$major'
21248 shlibpath_var
=LD_LIBRARY_PATH
21249 case $host_vendor in
21251 shlibpath_overrides_runpath
=no
21253 runpath_var
=LD_RUN_PATH
21261 shlibpath_overrides_runpath
=no
21262 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21268 if test -d /usr
/nec
;then
21270 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21271 soname_spec
='$libname${shared_ext}.$major'
21272 shlibpath_var
=LD_LIBRARY_PATH
21276 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21277 version_type
=freebsd-elf
21280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21281 soname_spec
='${libname}${release}${shared_ext}$major'
21282 shlibpath_var
=LD_LIBRARY_PATH
21283 shlibpath_overrides_runpath
=yes
21284 hardcode_into_libs
=yes
21285 if test "$with_gnu_ld" = yes; then
21286 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21288 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21291 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21295 sys_lib_dlsearch_path_spec
='/usr/lib'
21299 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21304 shlibpath_var
=LD_LIBRARY_PATH
21305 shlibpath_overrides_runpath
=no
21306 hardcode_into_libs
=yes
21311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21312 soname_spec
='${libname}${release}${shared_ext}$major'
21313 shlibpath_var
=LD_LIBRARY_PATH
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21321 $as_echo "$dynamic_linker" >&6; }
21322 test "$dynamic_linker" = no
&& can_build_shared
=no
21324 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21325 if test "$GCC" = yes; then
21326 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21329 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21330 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21332 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21333 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21374 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21375 hardcode_action_CXX
=
21376 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21377 test -n "$runpath_var_CXX" ||
21378 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21380 # We can hardcode non-existent directories.
21381 if test "$hardcode_direct_CXX" != no
&&
21382 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21383 # have to relink, otherwise we might link with an installed library
21384 # when we should be linking with a yet-to-be-installed one
21385 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21386 test "$hardcode_minus_L_CXX" != no
; then
21387 # Linking always hardcodes the temporary library directory.
21388 hardcode_action_CXX
=relink
21390 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21391 hardcode_action_CXX
=immediate
21394 # We cannot hardcode anything, or else we can only hardcode existing
21396 hardcode_action_CXX
=unsupported
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21399 $as_echo "$hardcode_action_CXX" >&6; }
21401 if test "$hardcode_action_CXX" = relink ||
21402 test "$inherit_rpath_CXX" = yes; then
21403 # Fast installation is not supported
21404 enable_fast_install
=no
21405 elif test "$shlibpath_overrides_runpath" = yes ||
21406 test "$enable_shared" = no
; then
21407 # Fast installation is not necessary
21408 enable_fast_install
=needless
21417 fi # test -n "$compiler"
21423 with_gnu_ld
=$lt_save_with_gnu_ld
21424 lt_cv_path_LDCXX
=$lt_cv_path_LD
21425 lt_cv_path_LD
=$lt_save_path_LD
21426 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21427 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21428 fi # test "$_lt_caught_CXX_error" != yes
21431 ac_cpp
='$CPP $CPPFLAGS'
21432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21451 # Only expand once:
21457 # Identify the assembler which will work hand-in-glove with the newly
21458 # built GCC, so that we can examine its features. This is the assembler
21459 # which will be driven by the driver program.
21461 # If build != host, and we aren't building gas in-tree, we identify a
21462 # build->target assembler and hope that it will have the same features
21463 # as the host->target assembler we'll be using.
21464 gcc_cv_gas_major_version
=
21465 gcc_cv_gas_minor_version
=
21466 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21468 if test "${gcc_cv_as+set}" = set; then :
21472 if test -x "$DEFAULT_ASSEMBLER"; then
21473 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21474 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21475 && test -f ..
/gas
/Makefile \
21476 && test x
$build = x
$host; then
21477 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21478 elif test -x as
$build_exeext; then
21479 # Build using assembler in the current directory.
21480 gcc_cv_as
=.
/as
$build_exeext
21481 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21482 gcc_cv_as
="$AS_FOR_TARGET"
21484 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21485 set dummy
$AS_FOR_TARGET; ac_word
=$2
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21487 $as_echo_n "checking for $ac_word... " >&6; }
21488 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21489 $as_echo_n "(cached) " >&6
21493 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21497 for as_dir
in $PATH
21500 test -z "$as_dir" && as_dir
=.
21501 for ac_exec_ext
in '' $ac_executable_extensions; do
21502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21503 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21514 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21515 if test -n "$gcc_cv_as"; then
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21517 $as_echo "$gcc_cv_as" >&6; }
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21520 $as_echo "no" >&6; }
21527 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21529 case "$ORIGINAL_AS_FOR_TARGET" in
21530 .
/as | .
/as
$build_exeext) ;;
21531 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21536 $as_echo_n "checking what assembler to use... " >&6; }
21537 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21538 # Single tree build which includes gas. We want to prefer it
21539 # over whatever linker top-level may have detected, since
21540 # we'll use what we're building after installation anyway.
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21542 $as_echo "newly built gas" >&6; }
21544 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21545 for f
in $gcc_cv_as_bfd_srcdir/configure \
21546 $gcc_cv_as_gas_srcdir/configure \
21547 $gcc_cv_as_gas_srcdir/configure.
in \
21548 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21549 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21550 if test x
$gcc_cv_gas_version != x
; then
21554 case $gcc_cv_gas_version in
21556 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21558 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21559 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21560 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21561 case $gcc_cv_gas_patch_version in
21562 "") gcc_cv_gas_patch_version
="0" ;;
21564 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21565 + $gcc_cv_gas_minor_version \) \* 1000 \
21566 + $gcc_cv_gas_patch_version`
21568 in_tree_gas_is_elf
=no
21569 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21570 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21571 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21573 in_tree_gas_is_elf
=yes
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21577 $as_echo "$gcc_cv_as" >&6; }
21582 # Check whether --enable-ld was given.
21583 if test "${enable_ld+set}" = set; then :
21584 enableval
=$enable_ld; case "${enableval}" in
21592 install_gold_as_default
=no
21593 # Check whether --enable-gold was given.
21594 if test "${enable_gold+set}" = set; then :
21595 enableval
=$enable_gold; case "${enableval}" in
21597 install_gold_as_default
=yes
21600 if test x
${default_ld} != x
; then
21601 install_gold_as_default
=yes
21607 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21613 # Identify the linker which will work hand-in-glove with the newly
21614 # built GCC, so that we can examine its features. This is the linker
21615 # which will be driven by the driver program.
21617 # If build != host, and we aren't building gas in-tree, we identify a
21618 # build->target linker and hope that it will have the same features
21619 # as the host->target linker we'll be using.
21620 gcc_cv_gld_major_version
=
21621 gcc_cv_gld_minor_version
=
21622 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21623 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21624 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21626 if test "${gcc_cv_ld+set}" = set; then :
21630 if test -x "$DEFAULT_LINKER"; then
21631 gcc_cv_ld
="$DEFAULT_LINKER"
21632 elif test $install_gold_as_default = yes \
21633 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21634 && test -f ..
/gold
/Makefile \
21635 && test x
$build = x
$host; then
21636 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21637 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21638 && test -f ..
/ld
/Makefile \
21639 && test x
$build = x
$host; then
21640 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21641 elif test -x collect-ld
$build_exeext; then
21642 # Build using linker in the current directory.
21643 gcc_cv_ld
=.
/collect-ld
$build_exeext
21644 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21645 gcc_cv_ld
="$LD_FOR_TARGET"
21647 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21648 set dummy
$LD_FOR_TARGET; ac_word
=$2
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21650 $as_echo_n "checking for $ac_word... " >&6; }
21651 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21652 $as_echo_n "(cached) " >&6
21656 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21660 for as_dir
in $PATH
21663 test -z "$as_dir" && as_dir
=.
21664 for ac_exec_ext
in '' $ac_executable_extensions; do
21665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21666 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21677 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21678 if test -n "$gcc_cv_ld"; then
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21680 $as_echo "$gcc_cv_ld" >&6; }
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 $as_echo "no" >&6; }
21690 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21691 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21692 # if the PLUGIN_LD is set ld-new, just have it as ld
21693 # as that is the installed named.
21694 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21695 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21696 PLUGIN_LD_SUFFIX
=ld
21699 # Check whether --with-plugin-ld was given.
21700 if test "${with_plugin_ld+set}" = set; then :
21701 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21702 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21703 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21709 cat >>confdefs.h
<<_ACEOF
21710 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21714 # Check to see if we are using gold instead of ld
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21716 $as_echo_n "checking whether we are using gold... " >&6; }
21718 if test x
$gcc_cv_ld != x
; then
21719 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21720 |
grep "GNU gold" > /dev
/null
; then
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21725 $as_echo "$ld_is_gold" >&6; }
21727 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21729 case "$ORIGINAL_LD_FOR_TARGET" in
21730 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21731 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21736 $as_echo_n "checking what linker to use... " >&6; }
21737 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21738 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21739 # Single tree build which includes ld. We want to prefer it
21740 # over whatever linker top-level may have detected, since
21741 # we'll use what we're building after installation anyway.
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21743 $as_echo "newly built ld" >&6; }
21745 in_tree_ld_is_elf
=no
21746 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21747 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21748 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21749 in_tree_ld_is_elf
=yes
21750 elif test "$ld_is_gold" = yes; then
21751 in_tree_ld_is_elf
=yes
21753 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
21755 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21756 if test x
$gcc_cv_gld_version != x
; then
21760 case $gcc_cv_gld_version in
21762 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21764 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21765 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21766 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21767 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21770 $as_echo "$gcc_cv_ld" >&6; }
21772 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21773 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21774 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21780 # Figure out what nm we will be using.
21781 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21782 if test "${gcc_cv_nm+set}" = set; then :
21786 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21787 && test -f ..
/binutils
/Makefile \
21788 && test x
$build = x
$host; then
21789 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21790 elif test -x nm
$build_exeext; then
21791 gcc_cv_nm
=.
/nm
$build_exeext
21792 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21793 gcc_cv_nm
="$NM_FOR_TARGET"
21795 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21796 set dummy
$NM_FOR_TARGET; ac_word
=$2
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21798 $as_echo_n "checking for $ac_word... " >&6; }
21799 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21800 $as_echo_n "(cached) " >&6
21804 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21808 for as_dir
in $PATH
21811 test -z "$as_dir" && as_dir
=.
21812 for ac_exec_ext
in '' $ac_executable_extensions; do
21813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21814 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21825 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21826 if test -n "$gcc_cv_nm"; then
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21828 $as_echo "$gcc_cv_nm" >&6; }
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21831 $as_echo "no" >&6; }
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21839 $as_echo_n "checking what nm to use... " >&6; }
21840 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21841 # Single tree build which includes binutils.
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21843 $as_echo "newly built nm" >&6; }
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21847 $as_echo "$gcc_cv_nm" >&6; }
21851 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21853 case "$ORIGINAL_NM_FOR_TARGET" in
21854 .
/nm | .
/nm
$build_exeext) ;;
21855 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21860 # Figure out what objdump we will be using.
21861 if test "${gcc_cv_objdump+set}" = set; then :
21865 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21866 && test -f ..
/binutils
/Makefile \
21867 && test x
$build = x
$host; then
21868 # Single tree build which includes binutils.
21869 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21870 elif test -x objdump
$build_exeext; then
21871 gcc_cv_objdump
=.
/objdump
$build_exeext
21872 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21873 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21875 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21876 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21878 $as_echo_n "checking for $ac_word... " >&6; }
21879 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21880 $as_echo_n "(cached) " >&6
21882 case $gcc_cv_objdump in
21884 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21888 for as_dir
in $PATH
21891 test -z "$as_dir" && as_dir
=.
21892 for ac_exec_ext
in '' $ac_executable_extensions; do
21893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21894 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21905 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21906 if test -n "$gcc_cv_objdump"; then
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21908 $as_echo "$gcc_cv_objdump" >&6; }
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21911 $as_echo "no" >&6; }
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21919 $as_echo_n "checking what objdump to use... " >&6; }
21920 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21921 # Single tree build which includes binutils.
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21923 $as_echo "newly built objdump" >&6; }
21924 elif test x
$gcc_cv_objdump = x
; then
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21926 $as_echo "not found" >&6; }
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21929 $as_echo "$gcc_cv_objdump" >&6; }
21932 # Figure out what readelf we will be using.
21933 if test "${gcc_cv_readelf+set}" = set; then :
21937 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21938 && test -f ..
/binutils
/Makefile \
21939 && test x
$build = x
$host; then
21940 # Single tree build which includes binutils.
21941 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21942 elif test -x readelf
$build_exeext; then
21943 gcc_cv_readelf
=.
/readelf
$build_exeext
21945 # Extract the first word of "readelf", so it can be a program name with args.
21946 set dummy readelf
; ac_word
=$2
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21948 $as_echo_n "checking for $ac_word... " >&6; }
21949 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21950 $as_echo_n "(cached) " >&6
21952 case $gcc_cv_readelf in
21954 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21958 for as_dir
in $PATH
21961 test -z "$as_dir" && as_dir
=.
21962 for ac_exec_ext
in '' $ac_executable_extensions; do
21963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21964 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21975 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21976 if test -n "$gcc_cv_readelf"; then
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21978 $as_echo "$gcc_cv_readelf" >&6; }
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21981 $as_echo "no" >&6; }
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21989 $as_echo_n "checking what readelf to use... " >&6; }
21990 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21991 # Single tree build which includes binutils.
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21993 $as_echo "newly built readelf" >&6; }
21994 elif test x
$gcc_cv_readelf = x
; then
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21996 $as_echo "not found" >&6; }
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21999 $as_echo "$gcc_cv_readelf" >&6; }
22002 # Figure out what assembler alignment features are present.
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22004 $as_echo_n "checking assembler flags... " >&6; }
22005 if test "${gcc_cv_as_flags+set}" = set; then :
22006 $as_echo_n "(cached) " >&6
22009 i
[34567]86-*-linux*)
22010 gcc_cv_as_flags
=--32
22012 x86_64-
*-linux-gnux32)
22013 gcc_cv_as_flags
=--x32
22016 gcc_cv_as_flags
=--64
22018 powerpc
*-*-darwin*)
22019 gcc_cv_as_flags
="-arch ppc"
22022 gcc_cv_as_flags
=" "
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22027 $as_echo "$gcc_cv_as_flags" >&6; }
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22030 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22031 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22034 gcc_cv_as_balign_and_p2align
=no
22035 if test $in_tree_gas = yes; then
22036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22037 then gcc_cv_as_balign_and_p2align
=yes
22039 elif test x
$gcc_cv_as != x
; then
22040 $as_echo '.balign 4
22041 .p2align 2' > conftest.s
22042 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22044 (eval $ac_try) 2>&5
22046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22047 test $ac_status = 0; }; }
22049 gcc_cv_as_balign_and_p2align
=yes
22051 echo "configure: failed program was" >&5
22054 rm -f conftest.o conftest.s
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22058 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22059 if test $gcc_cv_as_balign_and_p2align = yes; then
22061 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22066 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22067 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22068 $as_echo_n "(cached) " >&6
22070 gcc_cv_as_max_skip_p2align
=no
22071 if test $in_tree_gas = yes; then
22072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22073 then gcc_cv_as_max_skip_p2align
=yes
22075 elif test x
$gcc_cv_as != x
; then
22076 $as_echo '.p2align 4,,7' > conftest.s
22077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22079 (eval $ac_try) 2>&5
22081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082 test $ac_status = 0; }; }
22084 gcc_cv_as_max_skip_p2align
=yes
22086 echo "configure: failed program was" >&5
22089 rm -f conftest.o conftest.s
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22093 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22094 if test $gcc_cv_as_max_skip_p2align = yes; then
22096 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22101 $as_echo_n "checking assembler for .literal16... " >&6; }
22102 if test "${gcc_cv_as_literal16+set}" = set; then :
22103 $as_echo_n "(cached) " >&6
22105 gcc_cv_as_literal16
=no
22106 if test $in_tree_gas = yes; then
22107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22108 then gcc_cv_as_literal16
=yes
22110 elif test x
$gcc_cv_as != x
; then
22111 $as_echo '.literal16' > conftest.s
22112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22114 (eval $ac_try) 2>&5
22116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22117 test $ac_status = 0; }; }
22119 gcc_cv_as_literal16
=yes
22121 echo "configure: failed program was" >&5
22124 rm -f conftest.o conftest.s
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22128 $as_echo "$gcc_cv_as_literal16" >&6; }
22129 if test $gcc_cv_as_literal16 = yes; then
22131 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22136 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22137 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22138 $as_echo_n "(cached) " >&6
22140 gcc_cv_as_subsection_m1
=no
22141 if test $in_tree_gas = yes; then
22142 if test $in_tree_gas_is_elf = yes \
22143 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22144 then gcc_cv_as_subsection_m1
=yes
22146 elif test x
$gcc_cv_as != x
; then
22147 $as_echo 'conftest_label1: .word 0
22149 conftest_label2: .word 0
22150 .previous' > conftest.s
22151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22153 (eval $ac_try) 2>&5
22155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22156 test $ac_status = 0; }; }
22158 if test x
$gcc_cv_nm != x
; then
22159 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22160 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22161 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22163 else gcc_cv_as_subsection_m1
=yes
22165 rm -f conftest.nm1 conftest.nm2
22168 echo "configure: failed program was" >&5
22171 rm -f conftest.o conftest.s
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22175 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22176 if test $gcc_cv_as_subsection_m1 = yes; then
22178 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22183 $as_echo_n "checking assembler for .weak... " >&6; }
22184 if test "${gcc_cv_as_weak+set}" = set; then :
22185 $as_echo_n "(cached) " >&6
22188 if test $in_tree_gas = yes; then
22189 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22190 then gcc_cv_as_weak
=yes
22192 elif test x
$gcc_cv_as != x
; then
22193 $as_echo ' .weak foobar' > conftest.s
22194 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22196 (eval $ac_try) 2>&5
22198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22199 test $ac_status = 0; }; }
22203 echo "configure: failed program was" >&5
22206 rm -f conftest.o conftest.s
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22210 $as_echo "$gcc_cv_as_weak" >&6; }
22211 if test $gcc_cv_as_weak = yes; then
22213 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22218 $as_echo_n "checking assembler for .weakref... " >&6; }
22219 if test "${gcc_cv_as_weakref+set}" = set; then :
22220 $as_echo_n "(cached) " >&6
22222 gcc_cv_as_weakref
=no
22223 if test $in_tree_gas = yes; then
22224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22225 then gcc_cv_as_weakref
=yes
22227 elif test x
$gcc_cv_as != x
; then
22228 $as_echo ' .weakref foobar, barfnot' > conftest.s
22229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22231 (eval $ac_try) 2>&5
22233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22234 test $ac_status = 0; }; }
22236 gcc_cv_as_weakref
=yes
22238 echo "configure: failed program was" >&5
22241 rm -f conftest.o conftest.s
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22245 $as_echo "$gcc_cv_as_weakref" >&6; }
22246 if test $gcc_cv_as_weakref = yes; then
22248 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22253 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22254 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22255 $as_echo_n "(cached) " >&6
22257 gcc_cv_as_nsubspa_comdat
=no
22258 if test $in_tree_gas = yes; then
22259 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22260 then gcc_cv_as_nsubspa_comdat
=yes
22262 elif test x
$gcc_cv_as != x
; then
22263 $as_echo ' .SPACE $TEXT$
22264 .NSUBSPA $CODE$,COMDAT' > conftest.s
22265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22267 (eval $ac_try) 2>&5
22269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22270 test $ac_status = 0; }; }
22272 gcc_cv_as_nsubspa_comdat
=yes
22274 echo "configure: failed program was" >&5
22277 rm -f conftest.o conftest.s
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22281 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22282 if test $gcc_cv_as_nsubspa_comdat = yes; then
22284 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22288 # .hidden needs to be supported in both the assembler and the linker,
22289 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22290 # This is irritatingly difficult to feature test for; we have to check the
22291 # date string after the version number. If we've got an in-tree
22292 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22294 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22296 $as_echo_n "checking assembler for .hidden... " >&6; }
22297 if test "${gcc_cv_as_hidden+set}" = set; then :
22298 $as_echo_n "(cached) " >&6
22300 gcc_cv_as_hidden
=no
22301 if test $in_tree_gas = yes; then
22302 if test $in_tree_gas_is_elf = yes \
22303 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22304 then gcc_cv_as_hidden
=yes
22306 elif test x
$gcc_cv_as != x
; then
22307 $as_echo ' .hidden foobar
22308 foobar:' > conftest.s
22309 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22311 (eval $ac_try) 2>&5
22313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22314 test $ac_status = 0; }; }
22316 gcc_cv_as_hidden
=yes
22318 echo "configure: failed program was" >&5
22321 rm -f conftest.o conftest.s
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22325 $as_echo "$gcc_cv_as_hidden" >&6; }
22327 case "${target}" in
22329 # Darwin as has some visibility support, though with a different syntax.
22330 gcc_cv_as_hidden
=yes
22334 # gnu_indirect_function type is an extension proposed at
22335 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22336 # selection of function implementation
22337 # Check whether --enable-gnu-indirect-function was given.
22338 if test "${enable_gnu_indirect_function+set}" = set; then :
22339 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22341 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22342 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22345 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22349 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22351 cat >>confdefs.h
<<_ACEOF
22352 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22357 if test $in_tree_ld != yes ; then
22358 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22359 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22360 if test x
"$ld_is_gold" = xyes
; then
22361 # GNU gold --version looks like this:
22363 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22365 # We extract the binutils version which is more familiar and specific
22366 # than the gold version.
22367 ld_vers
=`echo $ld_ver | sed -n \
22368 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22370 # GNU ld --version looks like this:
22372 # GNU ld (GNU Binutils) 2.21.51.20110225
22373 ld_vers
=`echo $ld_ver | sed -n \
22374 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22376 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'`
22377 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22378 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22379 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22381 case "${target}" in
22383 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22386 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22387 # /usr/ccs/bin/ld has been configured.
22388 ld_ver
=`$gcc_cv_ld -V 2>&1`
22389 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22390 ld_vers
=`echo $ld_ver | sed -n \
22391 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22392 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22393 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22401 $as_echo_n "checking linker for .hidden support... " >&6; }
22402 if test "${gcc_cv_ld_hidden+set}" = set; then :
22403 $as_echo_n "(cached) " >&6
22405 if test $in_tree_ld = yes ; then
22406 gcc_cv_ld_hidden
=no
22407 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 \
22408 && test $in_tree_ld_is_elf = yes; then
22409 gcc_cv_ld_hidden
=yes
22412 gcc_cv_ld_hidden
=yes
22413 if test x
"$ld_is_gold" = xyes
; then
22415 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22416 case "${target}" in
22417 mmix-knuth-mmixware
)
22418 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22419 gcc_cv_ld_hidden
=no
22422 if test 0"$ld_date" -lt 20020404; then
22423 if test -n "$ld_date"; then
22424 # If there was date string, but was earlier than 2002-04-04, fail
22425 gcc_cv_ld_hidden
=no
22426 elif test -z "$ld_vers"; then
22427 # If there was no date string nor ld version number, something is wrong
22428 gcc_cv_ld_hidden
=no
22430 test -z "$ld_vers_patch" && ld_vers_patch
=0
22431 if test "$ld_vers_major" -lt 2; then
22432 gcc_cv_ld_hidden
=no
22433 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22434 gcc_cv_ld_hidden
="no"
22435 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22436 gcc_cv_ld_hidden
=no
22441 case "${target}" in
22443 # Darwin ld has some visibility support.
22444 gcc_cv_ld_hidden
=yes
22446 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22447 gcc_cv_ld_hidden
=yes
22449 *-*-solaris2.1
[0-9]*)
22450 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22451 # .symbolic was only added in Solaris 9 12/02.
22452 gcc_cv_ld_hidden
=yes
22455 gcc_cv_ld_hidden
=no
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22462 $as_echo "$gcc_cv_ld_hidden" >&6; }
22463 libgcc_visibility
=no
22466 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22467 libgcc_visibility
=yes
22469 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22474 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22475 gcc_cv_ld_ro_rw_mix
=unknown
22476 if test $in_tree_ld = yes ; then
22477 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 \
22478 && test $in_tree_ld_is_elf = yes; then
22479 gcc_cv_ld_ro_rw_mix
=read-write
22481 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22482 echo '.section myfoosect, "a"' > conftest1.s
22483 echo '.section myfoosect, "aw"' > conftest2.s
22484 echo '.byte 1' >> conftest2.s
22485 echo '.section myfoosect, "a"' > conftest3.s
22486 echo '.byte 0' >> conftest3.s
22487 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22488 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22489 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22490 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22491 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22492 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22493 | sed -e '/myfoosect/!d' -e N`
22494 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22495 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22496 gcc_cv_ld_ro_rw_mix
=read-only
22498 gcc_cv_ld_ro_rw_mix
=read-write
22502 rm -f conftest.
* conftest
[123].
*
22504 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22506 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22510 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22512 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22513 case "${target}" in
22516 # Solaris 2 ld -V output looks like this for a regular version:
22518 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22520 # but test versions add stuff at the end:
22522 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22524 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22525 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22526 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22527 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22528 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22529 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22535 # Check whether --enable-initfini-array was given.
22536 if test "${enable_initfini_array+set}" = set; then :
22537 enableval
=$enable_initfini_array;
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22541 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22542 if test "${gcc_cv_initfini_array+set}" = set; then :
22543 $as_echo_n "(cached) " >&6
22545 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22546 case "${target}" in
22548 if test "$cross_compiling" = yes; then :
22549 gcc_cv_initfini_array
=no
22551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h. */
22555 #error Not an ELF OS
22557 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22558 if it can be used. */
22560 int main (void) { return x; }
22561 int foo (void) { x = 0; }
22562 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22565 if ac_fn_c_try_run
"$LINENO"; then :
22566 gcc_cv_initfini_array
=yes
22568 gcc_cv_initfini_array
=no
22570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22571 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22575 gcc_cv_initfini_array
=no
22576 if test $in_tree_ld = yes ; then
22577 if test "$gcc_cv_gld_major_version" -eq 2 \
22578 -a "$gcc_cv_gld_minor_version" -ge 22 \
22579 -o "$gcc_cv_gld_major_version" -gt 2 \
22580 && test $in_tree_ld_is_elf = yes; then
22581 gcc_cv_initfini_array
=yes
22583 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22584 cat > conftest.s
<<\EOF
22585 .section .dtors
,"a",%progbits
22587 .byte
'A', 'A', 'A', 'A'
22588 .section .ctors
,"a",%progbits
22590 .byte
'B', 'B', 'B', 'B'
22591 .section .fini_array
.65530,"a",%progbits
22593 .byte
'C', 'C', 'C', 'C'
22594 .section .init_array
.65530,"a",%progbits
22596 .byte
'D', 'D', 'D', 'D'
22597 .section .dtors
.64528,"a",%progbits
22599 .byte
'E', 'E', 'E', 'E'
22600 .section .ctors
.64528,"a",%progbits
22602 .byte
'F', 'F', 'F', 'F'
22603 .section .fini_array
.01005,"a",%progbits
22605 .byte
'G', 'G', 'G', 'G'
22606 .section .init_array
.01005,"a",%progbits
22608 .byte
'H', 'H', 'H', 'H'
22613 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22614 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22615 && $gcc_cv_objdump -s -j .init_array conftest \
22616 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22617 && $gcc_cv_objdump -s -j .fini_array conftest \
22618 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22619 gcc_cv_initfini_array
=yes
22621 rm -f conftest conftest.
*
22623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22627 # error Not an ELF OS
22629 #include <stdlib.h>
22630 #if defined __GLIBC_PREREQ
22631 # if __GLIBC_PREREQ (2, 4)
22633 # error GLIBC 2.4 required
22636 # if defined __sun__ && defined __svr4__
22637 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22639 # error The C library not known to support .init_array/.fini_array
22644 if ac_fn_c_try_cpp
"$LINENO"; then :
22647 gcc_cv_initfini_array
=no
22649 rm -f conftest.err conftest.
$ac_ext;;
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22653 $as_echo_n "checking cross compile... guessing... " >&6; }
22654 gcc_cv_initfini_array
=no
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22658 $as_echo "$gcc_cv_initfini_array" >&6; }
22659 enable_initfini_array
=$gcc_cv_initfini_array
22663 if test $enable_initfini_array = yes; then
22665 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22669 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22671 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22672 if test "${gcc_cv_as_leb128+set}" = set; then :
22673 $as_echo_n "(cached) " >&6
22675 gcc_cv_as_leb128
=no
22676 if test $in_tree_gas = yes; then
22677 if test $in_tree_gas_is_elf = yes \
22678 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22679 then gcc_cv_as_leb128
=yes
22681 elif test x
$gcc_cv_as != x
; then
22688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22690 (eval $ac_try) 2>&5
22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693 test $ac_status = 0; }; }
22695 # GAS versions before 2.11 do not support uleb128,
22696 # despite appearing to.
22697 # ??? There exists an elf-specific test that will crash
22698 # the assembler. Perhaps it's better to figure out whether
22699 # arbitrary sections are supported and try the test.
22700 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22701 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22702 as_vers
=`echo $as_ver | sed -n \
22703 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22704 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22705 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22706 if test $as_major -eq 2 && test $as_minor -lt 11
22708 else gcc_cv_as_leb128
=yes
22712 echo "configure: failed program was" >&5
22715 rm -f conftest.o conftest.s
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22719 $as_echo "$gcc_cv_as_leb128" >&6; }
22720 if test $gcc_cv_as_leb128 = yes; then
22722 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22726 # Check if we have assembler support for unwind directives.
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22728 $as_echo_n "checking assembler for cfi directives... " >&6; }
22729 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22730 $as_echo_n "(cached) " >&6
22732 gcc_cv_as_cfi_directive
=no
22733 if test x
$gcc_cv_as != x
; then
22739 .cfi_escape 1, 2, 3, 4, 5
22740 .cfi_endproc' > conftest.s
22741 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22743 (eval $ac_try) 2>&5
22745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22746 test $ac_status = 0; }; }
22750 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22751 # read-only and read-write sections, we need to make sure that the
22752 # assembler used emits read-write .eh_frame sections.
22753 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22754 if test "x$gcc_cv_objdump" != x
; then
22755 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22756 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22757 gcc_cv_as_cfi_directive
=no
22760 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22761 # On Solaris/x86, make sure that GCC and assembler agree on using
22762 # read-only .eh_frame sections for 64-bit.
22763 if test x
$gas = xyes
; then
22764 as_ix86_64_opt
="--64"
22766 as_ix86_64_opt
="-xarch=amd64"
22768 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22769 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22770 sed -e /.eh_frame
/!d
-e N | \
22771 grep READONLY
> /dev
/null
; then
22772 gcc_cv_as_cfi_directive
=yes
22774 gcc_cv_as_cfi_directive
=no
22778 gcc_cv_as_cfi_directive
=yes
22783 # no objdump, err on the side of caution
22784 gcc_cv_as_cfi_directive
=no
22787 gcc_cv_as_cfi_directive
=yes
22791 gcc_cv_as_cfi_directive
=yes
22795 echo "configure: failed program was" >&5
22798 rm -f conftest.o conftest.s
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22802 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22804 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22806 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22807 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22808 $as_echo_n "(cached) " >&6
22810 gcc_cv_as_cfi_advance_working
=no
22811 if test x
$gcc_cv_as != x
; then
22814 .cfi_adjust_cfa_offset 64
22816 .cfi_adjust_cfa_offset 128
22817 .cfi_endproc' > conftest.s
22818 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22820 (eval $ac_try) 2>&5
22822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22823 test $ac_status = 0; }; }
22826 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22827 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22828 gcc_cv_as_cfi_advance_working
=yes
22832 echo "configure: failed program was" >&5
22835 rm -f conftest.o conftest.s
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22839 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22842 # no objdump, err on the side of caution
22843 gcc_cv_as_cfi_advance_working
=no
22847 cat >>confdefs.h
<<_ACEOF
22848 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22849 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22855 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22856 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22859 gcc_cv_as_cfi_personality_directive
=no
22860 if test x
$gcc_cv_as != x
; then
22863 .cfi_personality 0, symbol
22864 .cfi_endproc' > conftest.s
22865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }
22872 gcc_cv_as_cfi_personality_directive
=yes
22874 echo "configure: failed program was" >&5
22877 rm -f conftest.o conftest.s
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22881 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22884 cat >>confdefs.h
<<_ACEOF
22885 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22886 then echo 1; else echo 0; fi`
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22891 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22892 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22893 $as_echo_n "(cached) " >&6
22895 gcc_cv_as_cfi_sections_directive
=no
22896 if test x
$gcc_cv_as != x
; then
22898 .cfi_sections .debug_frame, .eh_frame
22900 .cfi_endproc' > conftest.s
22901 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22903 (eval $ac_try) 2>&5
22905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22906 test $ac_status = 0; }; }
22909 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22910 # Need to check that we generated the correct relocation for the
22911 # .debug_frame section. This was fixed for binutils 2.21.
22912 gcc_cv_as_cfi_sections_directive
=no
22913 if test "x$gcc_cv_objdump" != x
; then
22914 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22915 grep secrel
> /dev
/null
; then
22916 gcc_cv_as_cfi_sections_directive
=yes
22921 gcc_cv_as_cfi_sections_directive
=yes
22925 echo "configure: failed program was" >&5
22928 rm -f conftest.o conftest.s
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22932 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22936 cat >>confdefs.h
<<_ACEOF
22937 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22938 then echo 1; else echo 0; fi`
22942 # GAS versions up to and including 2.11.0 may mis-optimize
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22945 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22946 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22947 $as_echo_n "(cached) " >&6
22949 gcc_cv_as_eh_frame
=no
22950 if test $in_tree_gas = yes; then
22951 if test $in_tree_gas_is_elf = yes \
22952 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22953 then gcc_cv_as_eh_frame
=yes
22955 elif test x
$gcc_cv_as != x
; then
22962 .section .eh_frame,"aw",@progbits
22964 .4byte .LECIE1-.LSCIE1
22978 .4byte .LEFDE1-.LASFDE1
22980 .4byte .LASFDE1-__FRAME_BEGIN__
22987 .LEFDE1:' > conftest.s
22988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22990 (eval $ac_try) 2>&5
22992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993 test $ac_status = 0; }; }
22995 cat > conftest.lit
<<EOF
22996 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22997 0010 01000000 12000000 18000000 00000000 ................
22998 0020 08000000 04080000 0044 .........D
23000 cat > conftest.big
<<EOF
23001 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23002 0010 00000001 00000012 00000018 00000000 ................
23003 0020 00000008 04000000 0844 .........D
23005 # If the assembler didn't choke, and we can objdump,
23006 # and we got the correct data, then succeed.
23007 # The text in the here-document typically retains its unix-style line
23008 # endings, while the output of objdump will use host line endings.
23009 # Therefore, use diff -b for the comparisons.
23010 if test x
$gcc_cv_objdump != x \
23011 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23012 |
tail -3 > conftest.got \
23013 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23014 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23016 gcc_cv_as_eh_frame
=yes
23017 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23019 (eval $ac_try) 2>&5
23021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23022 test $ac_status = 0; }; }; then
23023 gcc_cv_as_eh_frame
=buggy
23025 # Uh oh, what do we do now?
23026 gcc_cv_as_eh_frame
=no
23029 echo "configure: failed program was" >&5
23032 rm -f conftest.o conftest.s
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23036 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23039 if test $gcc_cv_as_eh_frame = buggy
; then
23041 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23046 $as_echo_n "checking assembler for section merging support... " >&6; }
23047 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23048 $as_echo_n "(cached) " >&6
23050 gcc_cv_as_shf_merge
=no
23051 if test $in_tree_gas = yes; then
23052 if test $in_tree_gas_is_elf = yes \
23053 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23054 then gcc_cv_as_shf_merge
=yes
23056 elif test x
$gcc_cv_as != x
; then
23057 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23060 (eval $ac_try) 2>&5
23062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23063 test $ac_status = 0; }; }
23065 gcc_cv_as_shf_merge
=yes
23067 echo "configure: failed program was" >&5
23070 rm -f conftest.o conftest.s
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23074 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23076 if test $gcc_cv_as_shf_merge = no
; then
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23078 $as_echo_n "checking assembler for section merging support... " >&6; }
23079 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23080 $as_echo_n "(cached) " >&6
23082 gcc_cv_as_shf_merge
=no
23083 if test $in_tree_gas = yes; then
23084 if test $in_tree_gas_is_elf = yes \
23085 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23086 then gcc_cv_as_shf_merge
=yes
23088 elif test x
$gcc_cv_as != x
; then
23089 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23090 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23092 (eval $ac_try) 2>&5
23094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23095 test $ac_status = 0; }; }
23097 gcc_cv_as_shf_merge
=yes
23099 echo "configure: failed program was" >&5
23102 rm -f conftest.o conftest.s
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23106 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23110 cat >>confdefs.h
<<_ACEOF
23111 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23116 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23117 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23118 $as_echo_n "(cached) " >&6
23120 gcc_cv_as_comdat_group
=no
23121 if test $in_tree_gas = yes; then
23122 if test $in_tree_gas_is_elf = yes \
23123 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23124 then gcc_cv_as_comdat_group
=yes
23126 elif test x
$gcc_cv_as != x
; then
23127 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23130 (eval $ac_try) 2>&5
23132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23133 test $ac_status = 0; }; }
23135 gcc_cv_as_comdat_group
=yes
23137 echo "configure: failed program was" >&5
23140 rm -f conftest.o conftest.s
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23144 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23146 if test $gcc_cv_as_comdat_group = yes; then
23147 gcc_cv_as_comdat_group_percent
=no
23148 gcc_cv_as_comdat_group_group
=no
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23151 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23152 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23153 $as_echo_n "(cached) " >&6
23155 gcc_cv_as_comdat_group_percent
=no
23156 if test $in_tree_gas = yes; then
23157 if test $in_tree_gas_is_elf = yes \
23158 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23159 then gcc_cv_as_comdat_group_percent
=yes
23161 elif test x
$gcc_cv_as != x
; then
23162 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23165 (eval $ac_try) 2>&5
23167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23168 test $ac_status = 0; }; }
23170 gcc_cv_as_comdat_group_percent
=yes
23172 echo "configure: failed program was" >&5
23175 rm -f conftest.o conftest.s
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23179 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23181 if test $gcc_cv_as_comdat_group_percent = yes; then
23182 gcc_cv_as_comdat_group_group
=no
23184 case "${target}" in
23185 # Sun as uses a completely different syntax.
23187 case "${target}" in
23188 sparc
*-*-solaris2*)
23190 .group foo,".text%foo",#comdat
23191 .section ".text%foo", #alloc,#execinstr,#progbits
23196 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23198 .group foo,.text%foo,#comdat
23199 .section .text%foo, "ax", @progbits
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23206 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23207 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23208 $as_echo_n "(cached) " >&6
23210 gcc_cv_as_comdat_group_group
=no
23211 if test x
$gcc_cv_as != x
; then
23212 $as_echo "$conftest_s" > conftest.s
23213 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23215 (eval $ac_try) 2>&5
23217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23218 test $ac_status = 0; }; }
23220 gcc_cv_as_comdat_group_group
=yes
23222 echo "configure: failed program was" >&5
23225 rm -f conftest.o conftest.s
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23229 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23233 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23234 gcc_cv_as_comdat_group_group
=no
23238 if test x
"$ld_is_gold" = xyes
; then
23240 elif test $in_tree_ld = yes ; then
23242 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 \
23243 && test $in_tree_ld_is_elf = yes; then
23246 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23248 if test 0"$ld_date" -lt 20050308; then
23249 if test -n "$ld_date"; then
23250 # If there was date string, but was earlier than 2005-03-08, fail
23252 elif test "$ld_vers_major" -lt 2; then
23254 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23259 case "${target}" in
23260 *-*-solaris2.1
[1-9]*)
23262 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23263 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23266 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23267 # least ld version 1.2267.
23268 if test "$ld_vers_major" -gt 1; then
23270 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23272 elif test "$ld_vers_minor" -ge 2267; then
23277 # Assume linkers other than GNU ld don't support COMDAT group.
23282 # Allow overriding the automatic COMDAT group tests above.
23283 # Check whether --enable-comdat was given.
23284 if test "${enable_comdat+set}" = set; then :
23285 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23288 if test $comdat_group = no
; then
23289 gcc_cv_as_comdat_group
=no
23290 gcc_cv_as_comdat_group_percent
=no
23291 gcc_cv_as_comdat_group_group
=no
23294 cat >>confdefs.h
<<_ACEOF
23295 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23296 || test $gcc_cv_as_comdat_group_percent = yes \
23297 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23302 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23303 if test "${gcc_cv_as_discriminator+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23306 gcc_cv_as_discriminator
=no
23307 if test $in_tree_gas = yes; then
23308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23309 then gcc_cv_as_discriminator
=yes
23311 elif test x
$gcc_cv_as != x
; then
23314 .loc 1 1 0 discriminator 1' > conftest.s
23315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23317 (eval $ac_try) 2>&5
23319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23320 test $ac_status = 0; }; }
23322 gcc_cv_as_discriminator
=yes
23324 echo "configure: failed program was" >&5
23327 rm -f conftest.o conftest.s
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23331 $as_echo "$gcc_cv_as_discriminator" >&6; }
23332 if test $gcc_cv_as_discriminator = yes; then
23334 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23338 # Thread-local storage - the check is heavily parameterized.
23346 .section ".tdata","awT",@progbits
23349 ldq $27,__tls_get_addr($29) !literal!1
23350 lda $16,foo($29) !tlsgd!1
23351 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23352 ldq $27,__tls_get_addr($29) !literal!2
23353 lda $16,foo($29) !tlsldm!2
23354 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23355 ldq $1,foo($29) !gotdtprel
23356 ldah $2,foo($29) !dtprelhi
23357 lda $3,foo($2) !dtprello
23358 lda $4,foo($29) !dtprel
23359 ldq $1,foo($29) !gottprel
23360 ldah $2,foo($29) !tprelhi
23361 lda $3,foo($2) !tprello
23362 lda $4,foo($29) !tprel'
23365 tls_as_opt
=--fatal-warnings
23367 cris-
*-*|crisv32-
*-*)
23369 .section ".tdata","awT",@progbits
23376 tls_as_opt
=--fatal-warnings
23380 .section ".tdata","awT",@progbits
23383 call #gettlsoff(x)'
23392 .section ".tdata","awT",@progbits
23396 addil LT%foo-$tls_gdidx$,gp
23397 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23400 addil LT%foo-$tls_ldidx$,gp
23402 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23403 addil LR%foo-$tls_dtpoff$,%ret0
23404 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23406 addil LT%foo-$tls_ieoff$,gp
23407 ldw RT%foo-$tls_ieoff$(%r1),%t2
23410 addil LR%foo-$tls_leoff$,%t1
23411 ldo RR%foo-$tls_leoff$(%r1),%t2'
23414 tls_as_opt
=--fatal-warnings
23418 .section ".tdata","awT",%progbits
23421 .word foo(gottpoff)
23429 i
[34567]86-*-* | x86_64-
*-*)
23431 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23438 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23440 .section .tdata,"awt",@progbits'
23445 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23449 .section ".tdata","awT",@progbits'
23453 tls_as_opt
="--fatal-warnings"
23457 conftest_s
="$conftest_s
23461 leal foo@tlsgd(,%ebx,1), %eax
23462 leal foo@tlsldm(%ebx), %eax
23463 leal foo@dtpoff(%eax), %edx
23464 movl foo@gottpoff(%ebx), %eax
23465 subl foo@gottpoff(%ebx), %eax
23466 addl foo@gotntpoff(%ebx), %eax
23467 movl foo@indntpoff, %eax
23468 movl \$foo@tpoff, %eax
23469 subl \$foo@tpoff, %eax
23470 leal foo@ntpoff(%ecx), %eax"
23473 if test x
$on_solaris = xyes
; then
23475 yes) tls_as_opt
="$tls_as_opt --64" ;;
23476 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23479 conftest_s
="$conftest_s
23483 leaq foo@tlsgd(%rip), %rdi
23484 leaq foo@tlsld(%rip), %rdi
23485 leaq foo@dtpoff(%rax), %rdx
23486 movq foo@gottpoff(%rip), %rax
23487 movq \$foo@tpoff, %rax"
23493 .section ".tdata","awT",@progbits
23496 addl r16 = @ltoff(@dtpmod(foo#)), gp
23497 addl r17 = @ltoff(@dtprel(foo#)), gp
23498 addl r18 = @ltoff(@tprel(foo#)), gp
23499 addl r19 = @dtprel(foo#), gp
23500 adds r21 = @dtprel(foo#), r13
23501 movl r23 = @dtprel(foo#)
23502 addl r20 = @tprel(foo#), gp
23503 adds r22 = @tprel(foo#), r13
23504 movl r24 = @tprel(foo#)'
23507 tls_as_opt
=--fatal-warnings
23511 .section .tdata,"awT",@progbits
23515 addik r5,r20,x@TLSGD
23516 addik r5,r20,x@TLSLDM'
23519 tls_as_opt
='--fatal-warnings'
23523 .section .tdata,"awT",@progbits
23527 addiu $4, $28, %tlsgd(x)
23528 addiu $4, $28, %tlsldm(x)
23529 lui $4, %dtprel_hi(x)
23530 addiu $4, $4, %dtprel_lo(x)
23531 lw $4, %gottprel(x)($28)
23532 lui $4, %tprel_hi(x)
23533 addiu $4, $4, %tprel_lo(x)'
23536 tls_as_opt
='-32 --fatal-warnings'
23540 .section .tdata,"awT",@progbits
23545 move.l x@TLSGD(%a5),%a0
23546 move.l x@TLSLDM(%a5),%a0
23547 move.l x@TLSLDO(%a5),%a0
23548 move.l x@TLSIE(%a5),%a0
23549 move.l x@TLSLE(%a5),%a0'
23552 tls_as_opt
='--fatal-warnings'
23556 .section ".tdata","awT",@progbits'
23559 tls_as_opt
="--fatal-warnings"
23563 .section ".tdata","awT",%progbits
23567 add x0, x0, #:tlsgd_lo12:x
23572 tls_as_opt
='--fatal-warnings'
23576 .extern __get_tpointer
23594 .section ".tdata","awT",@progbits
23602 addi 3,2,ld0@got@tlsgd
23608 addi 3,2,x1@got@tlsld
23614 addis 9,3,x2@dtprel@ha
23615 addi 9,9,x2@dtprel@l
23618 ld 9,x3@got@dtprel(2)
23624 tls_as_opt
="-a64 --fatal-warnings"
23628 .section ".tdata","awT",@progbits
23636 addi 3,31,ld0@got@tlsgd
23638 addi 3,31,x1@got@tlsld
23641 addis 9,3,x2@dtprel@ha
23642 addi 9,9,x2@dtprel@l
23643 lwz 9,x3@got@tprel(31)
23646 addis 9,2,x2@tprel@ha
23647 addi 9,9,x2@tprel@l'
23650 tls_as_opt
="-a32 --fatal-warnings"
23654 .section ".tdata","awT",@progbits
23661 .long foo@GOTNTPOFF
23662 .long foo@INDNTPOFF
23663 l %r1,foo@GOTNTPOFF(%r12)
23664 l %r1,0(%r1):tls_load:foo
23665 bas %r14,0(%r1,%r13):tls_gdcall:foo
23666 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23669 tls_as_opt
="-m31 --fatal-warnings"
23673 .section ".tdata","awT",@progbits
23680 .quad foo@GOTNTPOFF
23681 lg %r1,foo@GOTNTPOFF(%r12)
23682 larl %r1,foo@INDNTPOFF
23683 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23684 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23687 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23689 sh-
*-* | sh
[34]-*-*)
23691 .section ".tdata","awT",@progbits
23701 tls_as_opt
=--fatal-warnings
23705 sparc
*-sun-solaris2.
*)
23712 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23714 .section ".tdata",#alloc,#write,#tls'
23719 .section ".tdata","awT",@progbits'
23722 tls_as_opt
="-32 --fatal-warnings"
23724 conftest_s
="$conftest_s
23727 sethi %tgd_hi22(foo), %o0
23728 add %o0, %tgd_lo10(foo), %o1
23729 add %l7, %o1, %o0, %tgd_add(foo)
23730 call __tls_get_addr, %tgd_call(foo)
23731 sethi %tldm_hi22(foo), %l1
23732 add %l1, %tldm_lo10(foo), %l2
23733 add %l7, %l2, %o0, %tldm_add(foo)
23734 call __tls_get_addr, %tldm_call(foo)
23735 sethi %tldo_hix22(foo), %l3
23736 xor %l3, %tldo_lox10(foo), %l4
23737 add %o0, %l4, %l5, %tldo_add(foo)
23738 sethi %tie_hi22(foo), %o3
23739 add %o3, %tie_lo10(foo), %o3
23740 ld [%l7 + %o3], %o2, %tie_ld(foo)
23741 add %g7, %o2, %o4, %tie_add(foo)
23742 sethi %tle_hix22(foo), %l1
23743 xor %l1, %tle_lox10(foo), %o5
23744 ld [%g7 + %o5], %o1"
23748 .section ".tdata","awT",@progbits
23751 addli r0, zero, tls_gd(foo)
23752 auli r0, zero, tls_gd_ha16(foo)
23753 addli r0, r0, tls_gd_lo16(foo)
23755 addli r0, zero, tls_ie(foo)
23756 auli r0, r0, tls_ie_ha16(foo)
23757 addli r0, r0, tls_ie_lo16(foo)'
23760 tls_as_opt
="--fatal-warnings"
23764 .section ".tdata","awT",@progbits
23767 shl16insli r0, zero, hw0_last_tls_gd(foo)
23768 shl16insli r0, zero, hw1_last_tls_gd(foo)
23769 shl16insli r0, r0, hw0_tls_gd(foo)
23771 shl16insli r0, zero, hw1_last_tls_ie(foo)
23772 shl16insli r0, r0, hw0_tls_ie(foo)'
23775 tls_as_opt
="--fatal-warnings"
23779 .section ".tdata","awT",@progbits
23782 movi a8, foo@TLSFUNC
23783 movi a10, foo@TLSARG
23784 callx8.tls a8, foo@TLSCALL'
23790 if test "x$enable_tls" = xno
; then
23791 : # TLS explicitly disabled.
23792 elif test "x$enable_tls" = xyes
; then
23793 set_have_as_tls
=yes # TLS explicitly enabled.
23794 elif test -z "$tls_first_major"; then
23795 : # If we don't have a check, assume no support.
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23798 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23799 if test "${gcc_cv_as_tls+set}" = set; then :
23800 $as_echo_n "(cached) " >&6
23803 if test $in_tree_gas = yes; then
23804 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23805 then gcc_cv_as_tls
=yes
23807 elif test x
$gcc_cv_as != x
; then
23808 $as_echo "$conftest_s" > conftest.s
23809 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23811 (eval $ac_try) 2>&5
23813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23814 test $ac_status = 0; }; }
23818 echo "configure: failed program was" >&5
23821 rm -f conftest.o conftest.s
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23825 $as_echo "$gcc_cv_as_tls" >&6; }
23826 if test $gcc_cv_as_tls = yes; then
23827 set_have_as_tls
=yes
23830 if test $set_have_as_tls = yes ; then
23832 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23836 # Target-specific assembler checks.
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23839 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23840 gcc_cv_ld_static_dynamic
=no
23841 gcc_cv_ld_static_option
='-Bstatic'
23842 gcc_cv_ld_dynamic_option
='-Bdynamic'
23843 if test $in_tree_ld = yes ; then
23844 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
23845 gcc_cv_ld_static_dynamic
=yes
23847 elif test x
$gcc_cv_ld != x
; then
23848 # Check if linker supports -Bstatic/-Bdynamic option
23849 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23850 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23851 gcc_cv_ld_static_dynamic
=yes
23854 # AIX ld uses -b flags
23855 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23856 gcc_cv_ld_static_dynamic
=yes
23857 gcc_cv_ld_static_option
="-bstatic"
23858 gcc_cv_ld_dynamic_option
="-bdynamic"
23860 # HP-UX ld uses -a flags to select between shared and archive.
23862 if test x
"$gnu_ld" = xno
; then
23863 gcc_cv_ld_static_dynamic
=yes
23864 gcc_cv_ld_static_option
="-aarchive_shared"
23865 gcc_cv_ld_dynamic_option
="-adefault"
23868 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23870 gcc_cv_ld_static_dynamic
=yes
23875 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23877 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23880 cat >>confdefs.h
<<_ACEOF
23881 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23885 cat >>confdefs.h
<<_ACEOF
23886 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23891 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23893 if test x
"$demangler_in_ld" = xyes
; then
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23895 $as_echo_n "checking linker --demangle support... " >&6; }
23896 gcc_cv_ld_demangle
=no
23897 if test $in_tree_ld = yes; then
23898 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 \
23899 gcc_cv_ld_demangle
=yes
23901 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23902 # Check if the GNU linker supports --demangle option
23903 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23904 gcc_cv_ld_demangle
=yes
23907 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23909 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23913 $as_echo "$gcc_cv_ld_demangle" >&6; }
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23917 $as_echo_n "checking linker plugin support... " >&6; }
23918 gcc_cv_lto_plugin
=0
23919 if test -f liblto_plugin.la
; then
23920 save_ld_ver
="$ld_ver"
23921 save_ld_vers_major
="$ld_vers_major"
23922 save_ld_vers_minor
="$ld_vers_minor"
23923 save_ld_is_gold
="$ld_is_gold"
23927 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23929 # FIXME: ld_is_gold?
23930 ld_vers_major
="$gcc_cv_gld_major_version"
23931 ld_vers_minor
="$gcc_cv_gld_minor_version"
23933 # Determine plugin linker version.
23934 # FIXME: Partial duplicate from above, generalize.
23935 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23936 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23937 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23939 ld_vers
=`echo $ld_ver | sed -n \
23940 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23942 ld_vers
=`echo $ld_ver | sed -n \
23943 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23945 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23946 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23950 # Determine plugin support.
23951 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23952 # Require GNU ld or gold 2.21+ for plugin support by default.
23953 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23954 gcc_cv_lto_plugin
=2
23955 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23956 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23957 gcc_cv_lto_plugin
=1
23961 ld_ver
="$save_ld_ver"
23962 ld_vers_major
="$save_ld_vers_major"
23963 ld_vers_minor
="$save_ld_vers_minor"
23964 ld_is_gold
="$save_ld_is_gold"
23967 cat >>confdefs.h
<<_ACEOF
23968 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23972 $as_echo "$gcc_cv_lto_plugin" >&6; }
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23977 $as_echo_n "checking assembler for -mabi option... " >&6; }
23978 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23979 $as_echo_n "(cached) " >&6
23981 gcc_cv_as_aarch64_mabi
=no
23982 if test x
$gcc_cv_as != x
; then
23983 $as_echo '.text' > conftest.s
23984 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23986 (eval $ac_try) 2>&5
23988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23989 test $ac_status = 0; }; }
23991 gcc_cv_as_aarch64_mabi
=yes
23993 echo "configure: failed program was" >&5
23996 rm -f conftest.o conftest.s
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24000 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24002 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24004 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24007 if test x
$with_abi = xilp32
; then
24008 as_fn_error
"Assembler does not support -mabi=ilp32.\
24009 Upgrade the Assembler." "$LINENO" 5
24011 if test x
"$with_multilib_list" = xdefault
; then
24012 TM_MULTILIB_CONFIG
=lp64
24014 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24015 for aarch64_multilib
in ${aarch64_multilibs}; do
24016 case ${aarch64_multilib} in
24018 as_fn_error
"Assembler does not support -mabi=ilp32.\
24019 Upgrade the Assembler." "$LINENO" 5
24027 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24028 # Check whether --enable-fix-cortex-a53-835769 was given.
24029 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24030 enableval
=$enable_fix_cortex_a53_835769;
24033 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24038 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24039 Valid choices are 'yes' and 'no'." "$LINENO" 5
24048 # All TARGET_ABI_OSF targets.
24049 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24051 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24052 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24055 gcc_cv_as_alpha_explicit_relocs
=no
24056 if test $in_tree_gas = yes; then
24057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24058 then gcc_cv_as_alpha_explicit_relocs
=yes
24060 elif test x
$gcc_cv_as != x
; then
24061 $as_echo ' .set nomacro
24063 extbl $3, $2, $3 !lituse_bytoff!1
24064 ldq $2, a($29) !literal!1
24065 ldq $4, b($29) !literal!2
24066 ldq_u $3, 0($2) !lituse_base!1
24067 ldq $27, f($29) !literal!5
24068 jsr $26, ($27), f !lituse_jsr!5
24069 ldah $29, 0($26) !gpdisp!3
24070 lda $0, c($29) !gprel
24071 ldah $1, d($29) !gprelhigh
24072 lda $1, d($1) !gprellow
24073 lda $29, 0($29) !gpdisp!3' > conftest.s
24074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24076 (eval $ac_try) 2>&5
24078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24079 test $ac_status = 0; }; }
24081 gcc_cv_as_alpha_explicit_relocs
=yes
24083 echo "configure: failed program was" >&5
24086 rm -f conftest.o conftest.s
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24090 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24091 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24093 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24097 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24098 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24101 gcc_cv_as_alpha_jsrdirect_relocs
=no
24102 if test $in_tree_gas = yes; then
24103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24104 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24106 elif test x
$gcc_cv_as != x
; then
24107 $as_echo ' .set nomacro
24109 ldq $27, a($29) !literal!1
24110 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24113 (eval $ac_try) 2>&5
24115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24116 test $ac_status = 0; }; }
24118 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24120 echo "configure: failed program was" >&5
24123 rm -f conftest.o conftest.s
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24127 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24128 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24130 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24137 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24138 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
24141 gcc_cv_as_cris_no_mul_bug
=no
24142 if test $in_tree_gas = yes; then
24143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24144 then gcc_cv_as_cris_no_mul_bug
=yes
24146 elif test x
$gcc_cv_as != x
; then
24147 $as_echo '.text' > conftest.s
24148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24150 (eval $ac_try) 2>&5
24152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24153 test $ac_status = 0; }; }
24155 gcc_cv_as_cris_no_mul_bug
=yes
24157 echo "configure: failed program was" >&5
24160 rm -f conftest.o conftest.s
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24164 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24165 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24167 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24174 $as_echo_n "checking assembler for .register... " >&6; }
24175 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24176 $as_echo_n "(cached) " >&6
24178 gcc_cv_as_sparc_register_op
=no
24179 if test x
$gcc_cv_as != x
; then
24180 $as_echo '.register %g2, #scratch' > conftest.s
24181 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24183 (eval $ac_try) 2>&5
24185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24186 test $ac_status = 0; }; }
24188 gcc_cv_as_sparc_register_op
=yes
24190 echo "configure: failed program was" >&5
24193 rm -f conftest.o conftest.s
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24197 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24198 if test $gcc_cv_as_sparc_register_op = yes; then
24200 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24205 $as_echo_n "checking assembler for #nobits... " >&6; }
24206 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24207 $as_echo_n "(cached) " >&6
24209 gcc_cv_as_sparc_nobits
=no
24210 if test x
$gcc_cv_as != x
; then
24211 $as_echo '.section "nobits",#alloc,#write,#nobits
24212 .section "progbits",#alloc,#write,#progbits' > conftest.s
24213 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24215 (eval $ac_try) 2>&5
24217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24218 test $ac_status = 0; }; }
24220 gcc_cv_as_sparc_nobits
=yes
24222 echo "configure: failed program was" >&5
24225 rm -f conftest.o conftest.s
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24229 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24232 cat >>confdefs.h
<<_ACEOF
24233 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24238 $as_echo_n "checking assembler for -relax option... " >&6; }
24239 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24240 $as_echo_n "(cached) " >&6
24242 gcc_cv_as_sparc_relax
=no
24243 if test x
$gcc_cv_as != x
; then
24244 $as_echo '.text' > conftest.s
24245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24247 (eval $ac_try) 2>&5
24249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24250 test $ac_status = 0; }; }
24252 gcc_cv_as_sparc_relax
=yes
24254 echo "configure: failed program was" >&5
24257 rm -f conftest.o conftest.s
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24261 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24262 if test $gcc_cv_as_sparc_relax = yes; then
24264 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24269 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24270 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24273 gcc_cv_as_sparc_gotdata_op
=no
24274 if test x
$gcc_cv_as != x
; then
24280 sethi %gdop_hix22(foo), %g1
24281 xor %g1, %gdop_lox10(foo), %g1
24282 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24283 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24285 (eval $ac_try) 2>&5
24287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24288 test $ac_status = 0; }; }
24290 if test x
$gcc_cv_ld != x \
24291 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24292 if test x
$gcc_cv_objdump != x
; then
24293 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24294 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24295 gcc_cv_as_sparc_gotdata_op
=no
24297 gcc_cv_as_sparc_gotdata_op
=yes
24303 echo "configure: failed program was" >&5
24306 rm -f conftest.o conftest.s
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24310 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24311 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24313 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24318 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24319 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24320 $as_echo_n "(cached) " >&6
24322 gcc_cv_as_sparc_ua_pcrel
=no
24323 if test x
$gcc_cv_as != x
; then
24330 .uaword %r_disp32(foo)' > conftest.s
24331 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24333 (eval $ac_try) 2>&5
24335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24336 test $ac_status = 0; }; }
24338 if test x
$gcc_cv_ld != x \
24339 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24340 gcc_cv_as_sparc_ua_pcrel
=yes
24344 echo "configure: failed program was" >&5
24347 rm -f conftest.o conftest.s
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24351 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24352 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24354 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24358 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24359 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24360 $as_echo_n "(cached) " >&6
24362 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24363 if test x
$gcc_cv_as != x
; then
24367 .uaword %r_disp32(foo)
24368 .byte 0x32, 0x33, 0x34
24372 .skip 4' > conftest.s
24373 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24375 (eval $ac_try) 2>&5
24377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24378 test $ac_status = 0; }; }
24380 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24381 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24382 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24383 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24384 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24385 |
grep 'DISP32' > /dev
/null
2>&1; then
24388 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24393 echo "configure: failed program was" >&5
24396 rm -f conftest.o conftest.s
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24400 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24401 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24403 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24407 fi # unaligned pcrel relocs
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24410 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24411 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24412 $as_echo_n "(cached) " >&6
24414 gcc_cv_as_sparc_offsetable_lo10
=no
24415 if test x
$gcc_cv_as != x
; then
24417 or %g1, %lo(ab) + 12, %g1
24418 or %g1, %lo(ab + 12), %g1' > conftest.s
24419 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24421 (eval $ac_try) 2>&5
24423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24424 test $ac_status = 0; }; }
24426 if test x
$gcc_cv_objdump != x \
24427 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24428 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24429 gcc_cv_as_sparc_offsetable_lo10
=yes
24432 echo "configure: failed program was" >&5
24435 rm -f conftest.o conftest.s
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24439 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24440 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24442 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24447 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24448 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24449 $as_echo_n "(cached) " >&6
24451 gcc_cv_as_sparc_fmaf
=no
24452 if test x
$gcc_cv_as != x
; then
24454 .register %g2, #scratch
24455 .register %g3, #scratch
24457 fmaddd %f0, %f2, %f4, %f6
24458 addxccc %g1, %g2, %g3
24459 fsrl32 %f2, %f4, %f8
24460 fnaddd %f10, %f12, %f14' > conftest.s
24461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24463 (eval $ac_try) 2>&5
24465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24466 test $ac_status = 0; }; }
24468 gcc_cv_as_sparc_fmaf
=yes
24470 echo "configure: failed program was" >&5
24473 rm -f conftest.o conftest.s
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24477 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24478 if test $gcc_cv_as_sparc_fmaf = yes; then
24480 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24485 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24486 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24487 $as_echo_n "(cached) " >&6
24489 gcc_cv_as_sparc_sparc4
=no
24490 if test x
$gcc_cv_as != x
; then
24492 .register %g2, #scratch
24493 .register %g3, #scratch
24496 1: cwbneg %g2, %g3, 1f
24499 aes_kexpand0 %f4, %f6, %f8
24500 des_round %f38, %f40, %f42, %f44
24501 camellia_f %f54, %f56, %f58, %f60
24502 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -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_sparc_sparc4
=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_sparc_sparc4" >&5
24519 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24520 if test $gcc_cv_as_sparc_sparc4 = yes; then
24522 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24527 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24528 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24531 gcc_cv_as_sparc_leon
=no
24532 if test x
$gcc_cv_as != x
; then
24534 .register %g2, #scratch
24535 .register %g3, #scratch
24539 casa [%g2] 0xb, %g3, %g1' > conftest.s
24540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24542 (eval $ac_try) 2>&5
24544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24545 test $ac_status = 0; }; }
24547 gcc_cv_as_sparc_leon
=yes
24549 echo "configure: failed program was" >&5
24552 rm -f conftest.o conftest.s
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24556 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24557 if test $gcc_cv_as_sparc_leon = yes; then
24559 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24564 i
[34567]86-*-* | x86_64-
*-*)
24567 # Full C++ conformance when using a shared libstdc++-v3 requires some
24568 # support from the Cygwin DLL, which in more recent versions exports
24569 # wrappers to aid in interposing and redirecting operators new, delete,
24570 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24571 # are configuring for a version of Cygwin that exports the wrappers.
24572 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24573 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24574 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24575 gcc_ac_cygwin_dll_wrappers
=yes
24577 gcc_ac_cygwin_dll_wrappers
=no
24581 # Can't check presence of libc functions during cross-compile, so
24582 # we just have to assume we're building for an up-to-date target.
24583 gcc_ac_cygwin_dll_wrappers
=yes
24586 cat >>confdefs.h
<<_ACEOF
24587 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24592 cygwin
* | pe | mingw32
* | interix
*)
24593 # Recent binutils allows the three-operand form of ".comm" on PE. This
24594 # definition is used unconditionally to initialise the default state of
24595 # the target option variable that governs usage of the feature.
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24597 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24598 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24601 gcc_cv_as_comm_has_align
=no
24602 if test $in_tree_gas = yes; then
24603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24604 then gcc_cv_as_comm_has_align
=yes
24606 elif test x
$gcc_cv_as != x
; then
24607 $as_echo '.comm foo,1,32' > conftest.s
24608 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24615 gcc_cv_as_comm_has_align
=yes
24617 echo "configure: failed program was" >&5
24620 rm -f conftest.o conftest.s
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24624 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24627 cat >>confdefs.h
<<_ACEOF
24628 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24631 # Used for DWARF 2 in PE
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24633 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24634 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24637 gcc_cv_as_ix86_pe_secrel32
=no
24638 if test $in_tree_gas = yes; then
24639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24640 then gcc_cv_as_ix86_pe_secrel32
=yes
24642 elif test x
$gcc_cv_as != x
; then
24646 .secrel32 foo' > conftest.s
24647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24649 (eval $ac_try) 2>&5
24651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24652 test $ac_status = 0; }; }
24654 if test x
$gcc_cv_ld != x \
24655 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24656 gcc_cv_as_ix86_pe_secrel32
=yes
24660 echo "configure: failed program was" >&5
24663 rm -f conftest.o conftest.s
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24667 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24668 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24670 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24673 # Test if the assembler supports the extended form of the .section
24674 # directive that specifies section alignment. LTO support uses this,
24675 # but normally only after installation, so we warn but don't fail the
24676 # configure if LTO is enabled but the assembler does not support it.
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24678 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24679 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24682 gcc_cv_as_section_has_align
=no
24683 if test $in_tree_gas = yes; then
24684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24685 then gcc_cv_as_section_has_align
=yes
24687 elif test x
$gcc_cv_as != x
; then
24688 $as_echo '.section lto_test,"dr0"' > conftest.s
24689 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24691 (eval $ac_try) 2>&5
24693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24694 test $ac_status = 0; }; }
24696 gcc_cv_as_section_has_align
=yes
24698 echo "configure: failed program was" >&5
24701 rm -f conftest.o conftest.s
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24705 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24707 if test x
$gcc_cv_as_section_has_align != xyes
; then
24708 case ",$enable_languages," in
24710 { $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
24711 $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;}
24718 # Test if the assembler supports the section flag 'e' for specifying
24719 # an excluded section.
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24721 $as_echo_n "checking assembler for .section with e... " >&6; }
24722 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24725 gcc_cv_as_section_has_e
=no
24726 if test $in_tree_gas = yes; then
24727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24728 then gcc_cv_as_section_has_e
=yes
24730 elif test x
$gcc_cv_as != x
; then
24731 $as_echo '.section foo1,"e"
24732 .byte 0,0,0,0' > conftest.s
24733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735 (eval $ac_try) 2>&5
24737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; }
24740 gcc_cv_as_section_has_e
=yes
24742 echo "configure: failed program was" >&5
24745 rm -f conftest.o conftest.s
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24749 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24752 cat >>confdefs.h
<<_ACEOF
24753 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24758 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24759 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24760 $as_echo_n "(cached) " >&6
24762 gcc_cv_as_ix86_filds
=no
24763 if test x
$gcc_cv_as != x
; then
24764 $as_echo 'filds mem; fists mem' > conftest.s
24765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24767 (eval $ac_try) 2>&5
24769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24770 test $ac_status = 0; }; }
24772 gcc_cv_as_ix86_filds
=yes
24774 echo "configure: failed program was" >&5
24777 rm -f conftest.o conftest.s
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24781 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24782 if test $gcc_cv_as_ix86_filds = yes; then
24784 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24789 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24790 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24791 $as_echo_n "(cached) " >&6
24793 gcc_cv_as_ix86_fildq
=no
24794 if test x
$gcc_cv_as != x
; then
24795 $as_echo 'fildq mem; fistpq mem' > conftest.s
24796 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24798 (eval $ac_try) 2>&5
24800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24801 test $ac_status = 0; }; }
24803 gcc_cv_as_ix86_fildq
=yes
24805 echo "configure: failed program was" >&5
24808 rm -f conftest.o conftest.s
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24812 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24813 if test $gcc_cv_as_ix86_fildq = yes; then
24815 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24820 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24821 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24822 $as_echo_n "(cached) " >&6
24824 gcc_cv_as_ix86_cmov_sun_syntax
=no
24825 if test x
$gcc_cv_as != x
; then
24826 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24834 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24836 echo "configure: failed program was" >&5
24839 rm -f conftest.o conftest.s
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24843 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24844 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24846 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24851 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24852 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24855 gcc_cv_as_ix86_ffreep
=no
24856 if test x
$gcc_cv_as != x
; then
24857 $as_echo 'ffreep %st(1)' > conftest.s
24858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }
24865 gcc_cv_as_ix86_ffreep
=yes
24867 echo "configure: failed program was" >&5
24870 rm -f conftest.o conftest.s
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24874 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24875 if test $gcc_cv_as_ix86_ffreep = yes; then
24877 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24882 $as_echo_n "checking assembler for .quad directive... " >&6; }
24883 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24884 $as_echo_n "(cached) " >&6
24886 gcc_cv_as_ix86_quad
=no
24887 if test x
$gcc_cv_as != x
; then
24888 $as_echo '.quad 0' > conftest.s
24889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891 (eval $ac_try) 2>&5
24893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894 test $ac_status = 0; }; }
24896 gcc_cv_as_ix86_quad
=yes
24898 echo "configure: failed program was" >&5
24901 rm -f conftest.o conftest.s
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24905 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24906 if test $gcc_cv_as_ix86_quad = yes; then
24908 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24913 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24914 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24915 $as_echo_n "(cached) " >&6
24917 gcc_cv_as_ix86_sahf
=no
24918 if test x
$gcc_cv_as != x
; then
24921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }
24928 gcc_cv_as_ix86_sahf
=yes
24930 echo "configure: failed program was" >&5
24933 rm -f conftest.o conftest.s
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24937 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24938 if test $gcc_cv_as_ix86_sahf = yes; then
24940 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24945 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24946 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24947 $as_echo_n "(cached) " >&6
24949 gcc_cv_as_ix86_interunit_movq
=no
24950 if test x
$gcc_cv_as != x
; then
24953 movq %rax, %xmm0' > conftest.s
24954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24956 (eval $ac_try) 2>&5
24958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24959 test $ac_status = 0; }; }
24961 gcc_cv_as_ix86_interunit_movq
=yes
24963 echo "configure: failed program was" >&5
24966 rm -f conftest.o conftest.s
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24970 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24973 cat >>confdefs.h
<<_ACEOF
24974 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24979 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24980 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24981 $as_echo_n "(cached) " >&6
24983 gcc_cv_as_ix86_hle
=no
24984 if test x
$gcc_cv_as != x
; then
24985 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24988 (eval $ac_try) 2>&5
24990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24991 test $ac_status = 0; }; }
24993 gcc_cv_as_ix86_hle
=yes
24995 echo "configure: failed program was" >&5
24998 rm -f conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25002 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25003 if test $gcc_cv_as_ix86_hle = yes; then
25005 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25010 $as_echo_n "checking assembler for swap suffix... " >&6; }
25011 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25012 $as_echo_n "(cached) " >&6
25014 gcc_cv_as_ix86_swap
=no
25015 if test x
$gcc_cv_as != x
; then
25016 $as_echo 'movl.s %esp, %ebp' > conftest.s
25017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25019 (eval $ac_try) 2>&5
25021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25022 test $ac_status = 0; }; }
25024 gcc_cv_as_ix86_swap
=yes
25026 echo "configure: failed program was" >&5
25029 rm -f conftest.o conftest.s
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25033 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25034 if test $gcc_cv_as_ix86_swap = yes; then
25036 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25041 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25042 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25043 $as_echo_n "(cached) " >&6
25045 gcc_cv_as_ix86_diff_sect_delta
=no
25046 if test x
$gcc_cv_as != x
; then
25047 $as_echo '.section .rodata
25053 .L2: nop' > conftest.s
25054 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25056 (eval $ac_try) 2>&5
25058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25059 test $ac_status = 0; }; }
25061 gcc_cv_as_ix86_diff_sect_delta
=yes
25063 echo "configure: failed program was" >&5
25066 rm -f conftest.o conftest.s
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25070 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25071 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25073 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25077 # These two are used unconditionally by i386.[ch]; it is to be defined
25078 # to 1 if the feature is present, 0 otherwise.
25079 as_ix86_gotoff_in_data_opt
=
25080 if test x
$gas = xyes
; then
25081 as_ix86_gotoff_in_data_opt
="--32"
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25084 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25085 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25088 gcc_cv_as_ix86_gotoff_in_data
=no
25089 if test $in_tree_gas = yes; then
25090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25091 then gcc_cv_as_ix86_gotoff_in_data
=yes
25093 elif test x
$gcc_cv_as != x
; then
25098 .long .L0@GOTOFF' > conftest.s
25099 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25101 (eval $ac_try) 2>&5
25103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25104 test $ac_status = 0; }; }
25106 gcc_cv_as_ix86_gotoff_in_data
=yes
25108 echo "configure: failed program was" >&5
25111 rm -f conftest.o conftest.s
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25115 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25118 cat >>confdefs.h
<<_ACEOF
25119 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25124 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25125 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25126 $as_echo_n "(cached) " >&6
25128 gcc_cv_as_ix86_rep_lock_prefix
=no
25129 if test x
$gcc_cv_as != x
; then
25130 $as_echo 'rep movsl
25135 lock addl %edi, (%eax,%esi)
25136 lock orl $0, (%esp)' > conftest.s
25137 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25139 (eval $ac_try) 2>&5
25141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25142 test $ac_status = 0; }; }
25144 gcc_cv_as_ix86_rep_lock_prefix
=yes
25146 echo "configure: failed program was" >&5
25149 rm -f conftest.o conftest.s
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25153 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25154 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25156 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25161 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25162 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25163 $as_echo_n "(cached) " >&6
25165 gcc_cv_as_ix86_ud2
=no
25166 if test x
$gcc_cv_as != x
; then
25167 $as_echo 'ud2' > conftest.s
25168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170 (eval $ac_try) 2>&5
25172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; }
25175 gcc_cv_as_ix86_ud2
=yes
25177 echo "configure: failed program was" >&5
25180 rm -f conftest.o conftest.s
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25184 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25185 if test $gcc_cv_as_ix86_ud2 = yes; then
25187 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25192 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25193 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25194 $as_echo_n "(cached) " >&6
25196 gcc_cv_as_ix86_tlsgdplt
=no
25197 if test x
$gcc_cv_as != x
; then
25198 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25201 (eval $ac_try) 2>&5
25203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25204 test $ac_status = 0; }; }
25206 if test x
$gcc_cv_ld != x \
25207 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25208 gcc_cv_as_ix86_tlsgdplt
=yes
25212 echo "configure: failed program was" >&5
25215 rm -f conftest.o conftest.s
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25219 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25220 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25222 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25227 .section .tdata,"aw'$tls_section_flag'",@progbits
25229 .section .text,"ax",@progbits
25230 call tls_ld@tlsldmplt'
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25232 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25233 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25234 $as_echo_n "(cached) " >&6
25236 gcc_cv_as_ix86_tlsldmplt
=no
25237 if test x
$gcc_cv_as != x
; then
25238 $as_echo "$conftest_s" > conftest.s
25239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25241 (eval $ac_try) 2>&5
25243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25244 test $ac_status = 0; }; }
25246 if test x
$gcc_cv_ld != x \
25247 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25248 gcc_cv_as_ix86_tlsldmplt
=yes
25252 echo "configure: failed program was" >&5
25255 rm -f conftest.o conftest.s
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25259 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25262 cat >>confdefs.h
<<_ACEOF
25263 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25267 # Enforce 32-bit output with gas and gld.
25268 if test x
$gas = xyes
; then
25269 as_ix86_tls_ldm_opt
="--32"
25271 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25272 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25273 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25275 ld_ix86_tls_ldm_opt
="-melf_i386"
25279 .section .text,"ax",@progbits
25281 .type _start, @function
25283 leal value@tlsldm(%ebx), %eax
25284 call ___tls_get_addr@plt
25286 .section .tdata,"aw'$tls_section_flag'",@progbits
25287 .type value, @object
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25290 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25291 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25292 $as_echo_n "(cached) " >&6
25294 gcc_cv_as_ix86_tlsldm
=no
25295 if test x
$gcc_cv_as != x
; then
25296 $as_echo "$conftest_s" > conftest.s
25297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25299 (eval $ac_try) 2>&5
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; }
25304 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25305 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25306 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25307 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25308 gcc_cv_as_ix86_tlsldm
=yes
25313 echo "configure: failed program was" >&5
25316 rm -f conftest.o conftest.s
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25320 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25323 cat >>confdefs.h
<<_ACEOF
25324 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25332 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25333 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25334 $as_echo_n "(cached) " >&6
25336 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25337 if test $in_tree_gas = yes; then
25338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25339 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25341 elif test x
$gcc_cv_as != x
; then
25343 addl r15 = @ltoffx(x#), gp
25345 ld8.mov r16 = [r15], x#' > conftest.s
25346 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25348 (eval $ac_try) 2>&5
25350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25351 test $ac_status = 0; }; }
25353 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25355 echo "configure: failed program was" >&5
25358 rm -f conftest.o conftest.s
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25362 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25363 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25365 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25373 *-*-aix*) conftest_s
=' .machine "pwr5"
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25378 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25379 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25380 $as_echo_n "(cached) " >&6
25382 gcc_cv_as_machine_directive
=no
25383 if test x
$gcc_cv_as != x
; then
25384 $as_echo ' .machine ppc7400' > conftest.s
25385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; }
25392 gcc_cv_as_machine_directive
=yes
25394 echo "configure: failed program was" >&5
25397 rm -f conftest.o conftest.s
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25401 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25403 if test x
$gcc_cv_as_machine_directive != xyes
; then
25404 echo "*** This target requires an assembler supporting \".machine\"" >&2
25405 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25406 test x
$build = x
$target && exit 1
25410 *) conftest_s
=' .machine power4
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25416 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25417 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25418 $as_echo_n "(cached) " >&6
25420 gcc_cv_as_powerpc_mfcrf
=no
25421 if test $in_tree_gas = yes; then
25422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25423 then gcc_cv_as_powerpc_mfcrf
=yes
25425 elif test x
$gcc_cv_as != x
; then
25426 $as_echo "$conftest_s" > conftest.s
25427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25429 (eval $ac_try) 2>&5
25431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25432 test $ac_status = 0; }; }
25434 gcc_cv_as_powerpc_mfcrf
=yes
25436 echo "configure: failed program was" >&5
25439 rm -f conftest.o conftest.s
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25443 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25444 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25446 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25451 *-*-aix*) conftest_s
=' .machine "pwr5"
25454 *) conftest_s
=' .machine power5
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25460 $as_echo_n "checking assembler for popcntb support... " >&6; }
25461 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25464 gcc_cv_as_powerpc_popcntb
=no
25465 if test $in_tree_gas = yes; then
25466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25467 then gcc_cv_as_powerpc_popcntb
=yes
25469 elif test x
$gcc_cv_as != x
; then
25470 $as_echo "$conftest_s" > conftest.s
25471 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25478 gcc_cv_as_powerpc_popcntb
=yes
25480 echo "configure: failed program was" >&5
25483 rm -f conftest.o conftest.s
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25487 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25488 if test $gcc_cv_as_powerpc_popcntb = yes; then
25490 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25495 *-*-aix*) conftest_s
=' .machine "pwr5x"
25498 *) conftest_s
=' .machine power5
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25504 $as_echo_n "checking assembler for fp round support... " >&6; }
25505 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25506 $as_echo_n "(cached) " >&6
25508 gcc_cv_as_powerpc_fprnd
=no
25509 if test $in_tree_gas = yes; then
25510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25511 then gcc_cv_as_powerpc_fprnd
=yes
25513 elif test x
$gcc_cv_as != x
; then
25514 $as_echo "$conftest_s" > conftest.s
25515 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25517 (eval $ac_try) 2>&5
25519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25520 test $ac_status = 0; }; }
25522 gcc_cv_as_powerpc_fprnd
=yes
25524 echo "configure: failed program was" >&5
25527 rm -f conftest.o conftest.s
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25531 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25532 if test $gcc_cv_as_powerpc_fprnd = yes; then
25534 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25539 *-*-aix*) conftest_s
=' .machine "pwr6"
25542 *) conftest_s
=' .machine power6
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25548 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25549 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25550 $as_echo_n "(cached) " >&6
25552 gcc_cv_as_powerpc_mfpgpr
=no
25553 if test $in_tree_gas = yes; then
25554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25555 then gcc_cv_as_powerpc_mfpgpr
=yes
25557 elif test x
$gcc_cv_as != x
; then
25558 $as_echo "$conftest_s" > conftest.s
25559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25561 (eval $ac_try) 2>&5
25563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25564 test $ac_status = 0; }; }
25566 gcc_cv_as_powerpc_mfpgpr
=yes
25568 echo "configure: failed program was" >&5
25571 rm -f conftest.o conftest.s
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25575 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25576 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25578 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25583 *-*-aix*) conftest_s
=' .csect .text[PR]
25585 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25589 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25590 *) conftest_s
=' .text
25592 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25596 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25597 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25598 $as_echo_n "(cached) " >&6
25600 gcc_cv_as_powerpc_rel16
=no
25601 if test $in_tree_gas = yes; then
25602 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25603 then gcc_cv_as_powerpc_rel16
=yes
25605 elif test x
$gcc_cv_as != x
; then
25606 $as_echo "$conftest_s" > conftest.s
25607 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25609 (eval $ac_try) 2>&5
25611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25612 test $ac_status = 0; }; }
25614 gcc_cv_as_powerpc_rel16
=yes
25616 echo "configure: failed program was" >&5
25619 rm -f conftest.o conftest.s
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25623 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25624 if test $gcc_cv_as_powerpc_rel16 = yes; then
25626 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25631 *-*-aix*) conftest_s
=' .machine "pwr6"
25634 *) conftest_s
=' .machine power6
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25640 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25641 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25644 gcc_cv_as_powerpc_cmpb
=no
25645 if test $in_tree_gas = yes; then
25646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25647 then gcc_cv_as_powerpc_cmpb
=yes
25649 elif test x
$gcc_cv_as != x
; then
25650 $as_echo "$conftest_s" > conftest.s
25651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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_cmpb
=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_cmpb" >&5
25667 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25668 if test $gcc_cv_as_powerpc_cmpb = yes; then
25670 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25675 *-*-aix*) conftest_s
=' .machine "pwr6"
25678 *) conftest_s
=' .machine power6
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25684 $as_echo_n "checking assembler for decimal float support... " >&6; }
25685 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25686 $as_echo_n "(cached) " >&6
25688 gcc_cv_as_powerpc_dfp
=no
25689 if test $in_tree_gas = yes; then
25690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25691 then gcc_cv_as_powerpc_dfp
=yes
25693 elif test x
$gcc_cv_as != x
; then
25694 $as_echo "$conftest_s" > conftest.s
25695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }
25702 gcc_cv_as_powerpc_dfp
=yes
25704 echo "configure: failed program was" >&5
25707 rm -f conftest.o conftest.s
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25711 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25712 if test $gcc_cv_as_powerpc_dfp = yes; then
25714 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25719 *-*-aix*) conftest_s
=' .machine "pwr7"
25722 *) conftest_s
=' .machine power7
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25728 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25729 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25730 $as_echo_n "(cached) " >&6
25732 gcc_cv_as_powerpc_vsx
=no
25733 if test $in_tree_gas = yes; then
25734 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25735 then gcc_cv_as_powerpc_vsx
=yes
25737 elif test x
$gcc_cv_as != x
; then
25738 $as_echo "$conftest_s" > conftest.s
25739 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25741 (eval $ac_try) 2>&5
25743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744 test $ac_status = 0; }; }
25746 gcc_cv_as_powerpc_vsx
=yes
25748 echo "configure: failed program was" >&5
25751 rm -f conftest.o conftest.s
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25755 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25756 if test $gcc_cv_as_powerpc_vsx = yes; then
25758 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25763 *-*-aix*) conftest_s
=' .machine "pwr7"
25766 *) conftest_s
=' .machine power7
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25772 $as_echo_n "checking assembler for popcntd support... " >&6; }
25773 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25774 $as_echo_n "(cached) " >&6
25776 gcc_cv_as_powerpc_popcntd
=no
25777 if test $in_tree_gas = yes; then
25778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25779 then gcc_cv_as_powerpc_popcntd
=yes
25781 elif test x
$gcc_cv_as != x
; then
25782 $as_echo "$conftest_s" > conftest.s
25783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25785 (eval $ac_try) 2>&5
25787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25788 test $ac_status = 0; }; }
25790 gcc_cv_as_powerpc_popcntd
=yes
25792 echo "configure: failed program was" >&5
25795 rm -f conftest.o conftest.s
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25799 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25800 if test $gcc_cv_as_powerpc_popcntd = yes; then
25802 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25807 *-*-aix*) conftest_s
=' .machine "pwr8"
25808 .csect .text[PR]';;
25809 *) conftest_s
=' .machine power8
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25814 $as_echo_n "checking assembler for power8 support... " >&6; }
25815 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25816 $as_echo_n "(cached) " >&6
25818 gcc_cv_as_powerpc_power8
=no
25819 if test $in_tree_gas = yes; then
25820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25821 then gcc_cv_as_powerpc_power8
=yes
25823 elif test x
$gcc_cv_as != x
; then
25824 $as_echo "$conftest_s" > conftest.s
25825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25827 (eval $ac_try) 2>&5
25829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25830 test $ac_status = 0; }; }
25832 gcc_cv_as_powerpc_power8
=yes
25834 echo "configure: failed program was" >&5
25837 rm -f conftest.o conftest.s
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25841 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25842 if test $gcc_cv_as_powerpc_power8 = yes; then
25844 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25849 *-*-aix*) conftest_s
=' .csect .text[PR]
25851 *) conftest_s
=' .text
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25856 $as_echo_n "checking assembler for lwsync support... " >&6; }
25857 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25858 $as_echo_n "(cached) " >&6
25860 gcc_cv_as_powerpc_lwsync
=no
25861 if test $in_tree_gas = yes; then
25862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25863 then gcc_cv_as_powerpc_lwsync
=yes
25865 elif test x
$gcc_cv_as != x
; then
25866 $as_echo "$conftest_s" > conftest.s
25867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25874 gcc_cv_as_powerpc_lwsync
=yes
25876 echo "configure: failed program was" >&5
25879 rm -f conftest.o conftest.s
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25883 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25884 if test $gcc_cv_as_powerpc_lwsync = yes; then
25886 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25891 *-*-aix*) conftest_s
=' .machine "476"
25894 *) conftest_s
=' .machine "476"
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25900 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25901 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25904 gcc_cv_as_powerpc_dci
=no
25905 if test $in_tree_gas = yes; then
25906 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25907 then gcc_cv_as_powerpc_dci
=yes
25909 elif test x
$gcc_cv_as != x
; then
25910 $as_echo "$conftest_s" > conftest.s
25911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_dci
=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_powerpc_dci" >&5
25927 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25928 if test $gcc_cv_as_powerpc_dci = yes; then
25930 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25935 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25936 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25937 $as_echo_n "(cached) " >&6
25939 gcc_cv_as_powerpc_gnu_attribute
=no
25940 if test $in_tree_gas = yes; then
25941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25942 then gcc_cv_as_powerpc_gnu_attribute
=yes
25944 elif test x
$gcc_cv_as != x
; then
25945 $as_echo '.gnu_attribute 4,1' > conftest.s
25946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25948 (eval $ac_try) 2>&5
25950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25951 test $ac_status = 0; }; }
25953 gcc_cv_as_powerpc_gnu_attribute
=yes
25955 echo "configure: failed program was" >&5
25958 rm -f conftest.o conftest.s
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25962 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25963 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25965 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25970 $as_echo_n "checking assembler for tls marker support... " >&6; }
25971 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25972 $as_echo_n "(cached) " >&6
25974 gcc_cv_as_powerpc_tls_markers
=no
25975 if test $in_tree_gas = yes; then
25976 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25977 then gcc_cv_as_powerpc_tls_markers
=yes
25979 elif test x
$gcc_cv_as != x
; then
25980 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983 (eval $ac_try) 2>&5
25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; }
25988 gcc_cv_as_powerpc_tls_markers
=yes
25990 echo "configure: failed program was" >&5
25993 rm -f conftest.o conftest.s
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25997 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25998 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26000 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26007 $as_echo_n "checking assembler for .ref support... " >&6; }
26008 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26009 $as_echo_n "(cached) " >&6
26011 gcc_cv_as_aix_ref
=no
26012 if test $in_tree_gas = yes; then
26013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26014 then gcc_cv_as_aix_ref
=yes
26016 elif test x
$gcc_cv_as != x
; then
26017 $as_echo ' .csect stuff[rw]
26023 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26025 (eval $ac_try) 2>&5
26027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26028 test $ac_status = 0; }; }
26030 gcc_cv_as_aix_ref
=yes
26032 echo "configure: failed program was" >&5
26035 rm -f conftest.o conftest.s
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26039 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26040 if test $gcc_cv_as_aix_ref = yes; then
26042 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26051 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26052 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26053 $as_echo_n "(cached) " >&6
26055 gcc_cv_as_mips_explicit_relocs
=no
26056 if test $in_tree_gas = yes; then
26057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26058 then gcc_cv_as_mips_explicit_relocs
=yes
26060 elif test x
$gcc_cv_as != x
; then
26061 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26062 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26064 (eval $ac_try) 2>&5
26066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26067 test $ac_status = 0; }; }
26069 gcc_cv_as_mips_explicit_relocs
=yes
26071 echo "configure: failed program was" >&5
26074 rm -f conftest.o conftest.s
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26078 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26079 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26080 if test x
$target_cpu_default = x
26081 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26082 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26086 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26087 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26088 $as_echo_n "(cached) " >&6
26090 gcc_cv_as_mips_no_shared
=no
26091 if test $in_tree_gas = yes; then
26092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26093 then gcc_cv_as_mips_no_shared
=yes
26095 elif test x
$gcc_cv_as != x
; then
26096 $as_echo 'nop' > conftest.s
26097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26099 (eval $ac_try) 2>&5
26101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26102 test $ac_status = 0; }; }
26104 gcc_cv_as_mips_no_shared
=yes
26106 echo "configure: failed program was" >&5
26109 rm -f conftest.o conftest.s
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26113 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26114 if test $gcc_cv_as_mips_no_shared = yes; then
26116 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26121 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26122 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26123 $as_echo_n "(cached) " >&6
26125 gcc_cv_as_mips_gnu_attribute
=no
26126 if test $in_tree_gas = yes; then
26127 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26128 then gcc_cv_as_mips_gnu_attribute
=yes
26130 elif test x
$gcc_cv_as != x
; then
26131 $as_echo '.gnu_attribute 4,1' > conftest.s
26132 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26134 (eval $ac_try) 2>&5
26136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26137 test $ac_status = 0; }; }
26139 gcc_cv_as_mips_gnu_attribute
=yes
26141 echo "configure: failed program was" >&5
26144 rm -f conftest.o conftest.s
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26148 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26149 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26151 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26156 $as_echo_n "checking assembler for .micromips support... " >&6; }
26157 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26158 $as_echo_n "(cached) " >&6
26160 gcc_cv_as_micromips_support
=no
26161 if test x
$gcc_cv_as != x
; then
26162 $as_echo '.set micromips' > conftest.s
26163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26165 (eval $ac_try) 2>&5
26167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26168 test $ac_status = 0; }; }
26170 gcc_cv_as_micromips_support
=yes
26172 echo "configure: failed program was" >&5
26175 rm -f conftest.o conftest.s
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26179 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26180 if test $gcc_cv_as_micromips_support = yes; then
26182 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26187 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26188 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26189 $as_echo_n "(cached) " >&6
26191 gcc_cv_as_mips_dtprelword
=no
26192 if test $in_tree_gas = yes; then
26193 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26194 then gcc_cv_as_mips_dtprelword
=yes
26196 elif test x
$gcc_cv_as != x
; then
26197 $as_echo '.section .tdata,"awT",@progbits
26201 .dtprelword x+0x8000' > conftest.s
26202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26204 (eval $ac_try) 2>&5
26206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26207 test $ac_status = 0; }; }
26209 gcc_cv_as_mips_dtprelword
=yes
26211 echo "configure: failed program was" >&5
26214 rm -f conftest.o conftest.s
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26218 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26219 if test $gcc_cv_as_mips_dtprelword = yes; then
26221 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26226 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26227 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26228 $as_echo_n "(cached) " >&6
26230 gcc_cv_as_mips_dspr1_mult
=no
26231 if test x
$gcc_cv_as != x
; then
26232 $as_echo ' .set mips32r2
26240 multu $ac3,$4,$5' > conftest.s
26241 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26243 (eval $ac_try) 2>&5
26245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26246 test $ac_status = 0; }; }
26248 gcc_cv_as_mips_dspr1_mult
=yes
26250 echo "configure: failed program was" >&5
26253 rm -f conftest.o conftest.s
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26257 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26258 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26260 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26265 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26266 gcc_cv_as_ld_jalr_reloc
=no
26267 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26268 if test $in_tree_ld = yes ; then
26269 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 \
26270 && test $in_tree_ld_is_elf = yes; then
26271 gcc_cv_as_ld_jalr_reloc
=yes
26273 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26274 echo ' .ent x' > conftest.s
26275 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26276 echo ' lw $25,%call16(y)($28)' >> conftest.s
26277 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26278 echo '1: jalr $25' >> conftest.s
26279 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26280 echo '1: jalr $25' >> conftest.s
26281 echo ' .end x' >> conftest.s
26282 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26283 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26284 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26285 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26286 gcc_cv_as_ld_jalr_reloc
=yes
26292 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26293 if test x
$target_cpu_default = x
; then
26294 target_cpu_default
=MASK_RELAX_PIC_CALLS
26296 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26300 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26303 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26304 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26305 $as_echo_n "(cached) " >&6
26307 gcc_cv_ld_mips_personality_relaxation
=no
26308 if test $in_tree_ld = yes ; then
26309 if test "$gcc_cv_gld_major_version" -eq 2 \
26310 -a "$gcc_cv_gld_minor_version" -ge 21 \
26311 -o "$gcc_cv_gld_major_version" -gt 2; then
26312 gcc_cv_ld_mips_personality_relaxation
=yes
26314 elif test x
$gcc_cv_as != x \
26315 -a x
$gcc_cv_ld != x \
26316 -a x
$gcc_cv_readelf != x
; then
26317 cat > conftest.s
<<EOF
26319 .cfi_personality 0x80,indirect_ptr
26326 .section .data,"aw",@progbits
26330 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26331 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26332 if $gcc_cv_readelf -d conftest
2>&1 \
26333 |
grep TEXTREL
> /dev
/null
2>&1; then
26335 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26336 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26339 gcc_cv_ld_mips_personality_relaxation
=yes
26343 rm -f conftest.s conftest.o conftest
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26346 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26347 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26349 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26354 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26355 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26356 $as_echo_n "(cached) " >&6
26358 gcc_cv_as_mips_nan
=no
26359 if test x
$gcc_cv_as != x
; then
26360 $as_echo '' > conftest.s
26361 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26363 (eval $ac_try) 2>&5
26365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26366 test $ac_status = 0; }; }
26368 gcc_cv_as_mips_nan
=yes
26370 echo "configure: failed program was" >&5
26373 rm -f conftest.o conftest.s
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26377 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26378 if test $gcc_cv_as_mips_nan = yes; then
26380 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26383 if test x
$gcc_cv_as_mips_nan = xno \
26384 && test x
$with_nan != x
; then
26385 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26390 # Mips and HP-UX need the GNU assembler.
26391 # Linux on IA64 might be able to use the Intel assembler.
26394 mips
*-*-* |
*-*-hpux* )
26395 if test x
$gas_flag = xyes \
26396 ||
test x
"$host" != x
"$build" \
26397 ||
test ! -x "$gcc_cv_as" \
26398 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26401 echo "*** This configuration requires the GNU assembler" >&2
26407 # ??? Not all targets support dwarf2 debug_line, even within a version
26408 # of gas. Moreover, we need to emit a valid instruction to trigger any
26409 # info to the output file. So, as supported targets are added to gas 2.11,
26410 # add some instruction here to (also) show we expect this might work.
26411 # ??? Once 2.11 is released, probably need to add first known working
26412 # version to the per-target configury.
26413 case "$cpu_type" in
26414 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26415 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26416 | xstormy16 | xtensa
)
26426 if test x
"$insn" != x
; then
26428 .file 1 \"conftest.s\"
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26432 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26433 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26434 $as_echo_n "(cached) " >&6
26436 gcc_cv_as_dwarf2_debug_line
=no
26437 if test $in_tree_gas = yes; then
26438 if test $in_tree_gas_is_elf = yes \
26439 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26440 then gcc_cv_as_dwarf2_debug_line
=yes
26442 elif test x
$gcc_cv_as != x
; then
26443 $as_echo "$conftest_s" > conftest.s
26444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26451 if test x
$gcc_cv_objdump != x \
26452 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26453 |
grep debug_line
> /dev
/null
2>&1; then
26454 gcc_cv_as_dwarf2_debug_line
=yes
26457 echo "configure: failed program was" >&5
26460 rm -f conftest.o conftest.s
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26464 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26467 # The .debug_line file table must be in the exact order that
26468 # we specified the files, since these indices are also used
26469 # by DW_AT_decl_file. Approximate this test by testing if
26470 # the assembler bitches if the same index is assigned twice.
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26472 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26473 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26474 $as_echo_n "(cached) " >&6
26476 gcc_cv_as_dwarf2_file_buggy
=no
26477 if test x
$gcc_cv_as != x
; then
26478 $as_echo ' .file 1 "foo.s"
26479 .file 1 "bar.s"' > conftest.s
26480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26482 (eval $ac_try) 2>&5
26484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26485 test $ac_status = 0; }; }
26487 gcc_cv_as_dwarf2_file_buggy
=yes
26489 echo "configure: failed program was" >&5
26492 rm -f conftest.o conftest.s
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26496 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26499 if test $gcc_cv_as_dwarf2_debug_line = yes \
26500 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26502 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26507 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26508 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26509 $as_echo_n "(cached) " >&6
26511 gcc_cv_as_gdwarf2_flag
=no
26512 if test $in_tree_gas = yes; then
26513 if test $in_tree_gas_is_elf = yes \
26514 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26515 then gcc_cv_as_gdwarf2_flag
=yes
26517 elif test x
$gcc_cv_as != x
; then
26518 $as_echo "$insn" > conftest.s
26519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26526 gcc_cv_as_gdwarf2_flag
=yes
26528 echo "configure: failed program was" >&5
26531 rm -f conftest.o conftest.s
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26535 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26536 if test $gcc_cv_as_gdwarf2_flag = yes; then
26538 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26543 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26544 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26545 $as_echo_n "(cached) " >&6
26547 gcc_cv_as_gstabs_flag
=no
26548 if test $in_tree_gas = yes; then
26549 if test $in_tree_gas_is_elf = yes \
26550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26551 then gcc_cv_as_gstabs_flag
=yes
26553 elif test x
$gcc_cv_as != x
; then
26554 $as_echo "$insn" > conftest.s
26555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26557 (eval $ac_try) 2>&5
26559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26560 test $ac_status = 0; }; }
26562 gcc_cv_as_gstabs_flag
=yes
26564 echo "configure: failed program was" >&5
26567 rm -f conftest.o conftest.s
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26571 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26572 if test $gcc_cv_as_gstabs_flag = yes; then
26574 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26579 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26580 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26581 $as_echo_n "(cached) " >&6
26583 gcc_cv_as_debug_prefix_map_flag
=no
26584 if test $in_tree_gas = yes; then
26585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26586 then gcc_cv_as_debug_prefix_map_flag
=yes
26588 elif test x
$gcc_cv_as != x
; then
26589 $as_echo "$insn" > conftest.s
26590 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26592 (eval $ac_try) 2>&5
26594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26595 test $ac_status = 0; }; }
26597 gcc_cv_as_debug_prefix_map_flag
=yes
26599 echo "configure: failed program was" >&5
26602 rm -f conftest.o conftest.s
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26606 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26607 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26609 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26615 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26616 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26617 $as_echo_n "(cached) " >&6
26619 gcc_cv_as_compress_debug
=no
26620 if test x
$gcc_cv_as != x
; then
26621 $as_echo '' > conftest.s
26622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26624 (eval $ac_try) 2>&5
26626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26627 test $ac_status = 0; }; }
26629 # gas compiled without zlib cannot compress debug sections and warns
26630 # about it, but still exits successfully. So check for this, too.
26631 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
26633 gcc_cv_as_compress_debug
=0
26634 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
26636 gcc_cv_as_compress_debug
=1
26637 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
26638 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
26640 gcc_cv_as_compress_debug
=0
26641 # FIXME: Future gas versions will support ELF gABI style via
26642 # --compress-debug-sections[=type].
26645 echo "configure: failed program was" >&5
26648 rm -f conftest.o conftest.s
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26652 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26655 cat >>confdefs.h
<<_ACEOF
26656 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26660 cat >>confdefs.h
<<_ACEOF
26661 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26665 cat >>confdefs.h
<<_ACEOF
26666 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26671 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26672 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26673 $as_echo_n "(cached) " >&6
26675 gcc_cv_as_lcomm_with_alignment
=no
26676 if test x
$gcc_cv_as != x
; then
26677 $as_echo '.lcomm bar,4,16' > conftest.s
26678 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26685 gcc_cv_as_lcomm_with_alignment
=yes
26687 echo "configure: failed program was" >&5
26690 rm -f conftest.o conftest.s
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26694 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26695 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26697 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26701 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26702 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26703 && test "$prefix" != "NONE"; then
26705 cat >>confdefs.h
<<_ACEOF
26706 #define PREFIX_INCLUDE_DIR "$prefix/include"
26711 # Determine the version of glibc, if any, used on the target.
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26713 $as_echo_n "checking for target glibc version... " >&6; }
26715 # Check whether --with-glibc-version was given.
26716 if test "${with_glibc_version+set}" = set; then :
26717 withval
=$with_glibc_version;
26718 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26719 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26720 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26722 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26726 glibc_version_major
=0
26727 glibc_version_minor
=0
26728 if test -f $target_header_dir/features.h \
26729 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26730 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26731 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26732 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26737 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26739 cat >>confdefs.h
<<_ACEOF
26740 #define TARGET_GLIBC_MAJOR $glibc_version_major
26744 cat >>confdefs.h
<<_ACEOF
26745 #define TARGET_GLIBC_MINOR $glibc_version_minor
26749 # Check whether --enable-gnu-unique-object was given.
26750 if test "${enable_gnu_unique_object+set}" = set; then :
26751 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26753 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26754 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26758 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26759 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26760 $as_echo_n "(cached) " >&6
26762 gcc_cv_as_gnu_unique_object
=no
26763 if test $in_tree_gas = yes; then
26764 if test $in_tree_gas_is_elf = yes \
26765 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26766 then gcc_cv_as_gnu_unique_object
=yes
26768 elif test x
$gcc_cv_as != x
; then
26769 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26770 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26772 (eval $ac_try) 2>&5
26774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26775 test $ac_status = 0; }; }
26777 gcc_cv_as_gnu_unique_object
=yes
26779 echo "configure: failed program was" >&5
26782 rm -f conftest.o conftest.s
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26786 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26787 if test $gcc_cv_as_gnu_unique_object = yes; then
26788 # We need to unquote above to to use the definition from config.gcc.
26789 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26791 if test $glibc_version_major -gt 2 \
26792 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26793 enable_gnu_unique_object
=yes
26799 if test x
$enable_gnu_unique_object = xyes
; then
26801 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26806 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26807 if test "${gcc_cv_as_line_zero+set}" = set; then :
26808 $as_echo_n "(cached) " >&6
26810 gcc_cv_as_line_zero
=no
26811 if test $in_tree_gas = yes; then
26812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26813 then gcc_cv_as_line_zero
=yes
26815 elif test "x$gcc_cv_as" != x
; then
26816 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26817 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26819 (eval $ac_try) 2>&5
26821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26822 test $ac_status = 0; }; } &&
26823 test "x`cat conftest.out`" = x
26825 gcc_cv_as_line_zero
=yes
26827 echo "configure: failed program was" >&5
26829 echo "configure: error output was" >&5
26830 cat conftest.out
>&5
26832 rm -f conftest.o conftest.s conftest.out
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26836 $as_echo "$gcc_cv_as_line_zero" >&6; }
26837 if test "x$gcc_cv_as_line_zero" = xyes
; then
26839 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26844 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26845 gcc_cv_ld_eh_frame_hdr
=no
26846 if test $in_tree_ld = yes ; then
26847 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 \
26848 && test $in_tree_ld_is_elf = yes; then
26849 gcc_cv_ld_eh_frame_hdr
=yes
26851 elif test x
$gcc_cv_ld != x
; then
26852 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26853 # Check if linker supports --eh-frame-hdr option
26854 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26855 gcc_cv_ld_eh_frame_hdr
=yes
26860 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26861 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26862 gcc_cv_ld_eh_frame_hdr
=yes
26869 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26871 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26875 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26878 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26879 gcc_cv_ld_eh_frame_ciev3
=no
26880 if test $in_tree_ld = yes ; then
26881 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 \
26882 && test $in_tree_ld_is_elf = yes; then
26883 gcc_cv_ld_eh_frame_ciev3
=yes
26885 elif test x
$gcc_cv_ld != x
; then
26886 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26887 gcc_cv_ld_eh_frame_ciev3
=yes
26888 if test 0"$ld_date" -lt 20040513; then
26889 if test -n "$ld_date"; then
26890 # If there was date string, but was earlier than 2004-05-13, fail
26891 gcc_cv_ld_eh_frame_ciev3
=no
26892 elif test "$ld_vers_major" -lt 2; then
26893 gcc_cv_ld_eh_frame_ciev3
=no
26894 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26895 gcc_cv_ld_eh_frame_ciev3
=no
26901 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26902 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26903 gcc_cv_ld_eh_frame_ciev3
=yes
26910 cat >>confdefs.h
<<_ACEOF
26911 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26915 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26918 $as_echo_n "checking linker position independent executable support... " >&6; }
26920 if test $in_tree_ld = yes ; then
26921 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 \
26922 && test $in_tree_ld_is_elf = yes; then
26925 elif test x
$gcc_cv_ld != x
; then
26926 # Check if linker supports -pie option
26927 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26931 if test x
"$gcc_cv_ld_pie" = xyes
; then
26933 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26937 $as_echo "$gcc_cv_ld_pie" >&6; }
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26940 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26941 gcc_cv_ld_eh_gc_sections
=no
26942 if test $in_tree_ld = yes ; then
26943 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 \
26944 && test $in_tree_ld_is_elf = yes; then
26945 gcc_cv_ld_eh_gc_sections
=yes
26947 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26948 cat > conftest.s
<<EOF
26951 .type _start, @function
26954 .size _start, .-_start
26955 .section .text.foo,"ax",@progbits
26956 .type foo, @function
26960 .section .gcc_except_table.foo,"a",@progbits
26963 .section .eh_frame,"a",@progbits
26966 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26967 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26968 |
grep "gc-sections option ignored" > /dev
/null
; then
26969 gcc_cv_ld_eh_gc_sections
=no
26970 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26971 |
grep gcc_except_table
> /dev
/null
; then
26972 gcc_cv_ld_eh_gc_sections
=yes
26973 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26974 if test x
$gcc_cv_as_comdat_group != xyes
; then
26975 gcc_cv_ld_eh_gc_sections
=no
26976 cat > conftest.s
<<EOF
26979 .type _start, @function
26982 .size _start, .-_start
26983 .section .gnu.linkonce.t.foo,"ax",@progbits
26984 .type foo, @function
26988 .section .gcc_except_table.foo,"a",@progbits
26991 .section .eh_frame,"a",@progbits
26994 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26995 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26996 |
grep "gc-sections option ignored" > /dev
/null
; then
26997 gcc_cv_ld_eh_gc_sections
=no
26998 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26999 |
grep gcc_except_table
> /dev
/null
; then
27000 gcc_cv_ld_eh_gc_sections
=yes
27006 rm -f conftest.s conftest.o conftest
27010 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27011 gcc_cv_ld_eh_gc_sections
=no
27014 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27016 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27020 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27023 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27024 gcc_cv_ld_eh_gc_sections_bug
=no
27025 if test $in_tree_ld = yes ; then
27026 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 \
27027 && test $in_tree_ld_is_elf = yes; then
27028 gcc_cv_ld_eh_gc_sections_bug
=yes
27030 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
27031 gcc_cv_ld_eh_gc_sections_bug
=yes
27032 cat > conftest.s
<<EOF
27035 .type _start, @function
27038 .size _start, .-_start
27039 .section .text.startup.foo,"ax",@progbits
27040 .type foo, @function
27044 .section .gcc_except_table.foo,"a",@progbits
27047 .section .eh_frame,"a",@progbits
27050 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27051 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27052 |
grep "gc-sections option ignored" > /dev
/null
; then
27054 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27055 |
grep gcc_except_table
> /dev
/null
; then
27056 gcc_cv_ld_eh_gc_sections_bug
=no
27059 rm -f conftest.s conftest.o conftest
27061 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27063 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27067 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27070 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27071 # gold/gld support compressed debug sections since binutils 2.19/2.21
27072 if test $in_tree_ld = yes ; then
27073 gcc_cv_ld_compress_debug
=0
27074 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27075 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27076 gcc_cv_ld_compress_debug
=2
27077 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27078 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27079 && test $in_tree_ld_is_elf = yes; then
27080 gcc_cv_ld_compress_debug
=1
27082 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27083 gcc_cv_ld_compress_debug
=1
27084 if test 0"$ld_date" -lt 20050308; then
27085 if test -n "$ld_date"; then
27086 # If there was date string, but was earlier than 2005-03-08, fail
27087 gcc_cv_ld_compress_debug
=0
27088 elif test "$ld_vers_major" -lt 2; then
27089 gcc_cv_ld_compress_debug
=0
27090 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27091 gcc_cv_ld_compress_debug
=0
27094 if test $ld_is_gold = yes; then
27095 gcc_cv_ld_compress_debug
=2
27096 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27099 case "${target}" in
27101 # Introduced in Solaris 11.2.
27102 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27103 gcc_cv_ld_compress_debug
=3
27104 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27106 gcc_cv_ld_compress_debug
=0
27110 # Assume linkers other than GNU ld don't support compessed debug
27112 gcc_cv_ld_compress_debug
=0
27117 cat >>confdefs.h
<<_ACEOF
27118 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27122 cat >>confdefs.h
<<_ACEOF
27123 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27127 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27134 $as_echo_n "checking linker --as-needed support... " >&6; }
27135 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27136 $as_echo_n "(cached) " >&6
27138 gcc_cv_ld_as_needed
=no
27139 gcc_cv_ld_as_needed_option
='--as-needed'
27140 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27141 if test $in_tree_ld = yes ; then
27142 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 \
27143 && test $in_tree_ld_is_elf = yes; then
27144 gcc_cv_ld_as_needed
=yes
27146 elif test x
$gcc_cv_ld != x
; then
27147 # Check if linker supports --as-needed and --no-as-needed options
27148 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27149 gcc_cv_ld_as_needed
=yes
27152 # Solaris 2 ld always supports -z ignore/-z record.
27154 gcc_cv_ld_as_needed
=yes
27155 gcc_cv_ld_as_needed_option
="-z ignore"
27156 gcc_cv_ld_no_as_needed_option
="-z record"
27161 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27162 # dl_iterate_phdr, i.e. since Solaris 11.
27164 *-*-solaris2.1
[1-9]*)
27166 i?
86-*-* | x86_64-
*-*)
27167 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27168 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27169 gcc_cv_ld_as_needed
=no
27175 gcc_cv_ld_as_needed
=no
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27181 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27182 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27184 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27187 cat >>confdefs.h
<<_ACEOF
27188 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27192 cat >>confdefs.h
<<_ACEOF
27193 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27199 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27200 saved_LDFLAGS
="$LDFLAGS"
27201 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27202 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27204 /* end confdefs.h. */
27205 int main(void) {return 0;}
27207 if ac_fn_c_try_link
"$LINENO"; then :
27208 gcc_cv_ld_clearcap
=yes; break
27210 gcc_cv_ld_clearcap
=no
27212 rm -f core conftest.err conftest.
$ac_objext \
27213 conftest
$ac_exeext conftest.
$ac_ext
27215 LDFLAGS
="$saved_LDFLAGS"
27216 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27218 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27220 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27224 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27226 case "$target:$tm_file" in
27227 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27230 emul_name
="-melf64lppc"
27233 emul_name
="-melf64ppc"
27236 emul_name
="-melf64ppc_fbsd"
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27240 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27241 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27242 $as_echo_n "(cached) " >&6
27244 gcc_cv_ld_no_dot_syms
=no
27245 if test x
"$ld_is_gold" = xyes
; then
27246 gcc_cv_ld_no_dot_syms
=yes
27247 elif test $in_tree_ld = yes ; then
27248 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
27249 gcc_cv_ld_no_dot_syms
=yes
27251 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27252 cat > conftest1.s
<<EOF
27256 cat > conftest2.s
<<EOF
27257 .section ".opd","aw"
27260 .type foo,@function
27262 .quad .LEfoo,.TOC.@tocbase,0
27268 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27269 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27270 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27271 gcc_cv_ld_no_dot_syms
=yes
27273 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27278 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27279 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27281 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27286 $as_echo_n "checking linker large toc support... " >&6; }
27287 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27288 $as_echo_n "(cached) " >&6
27290 gcc_cv_ld_large_toc
=no
27291 if test x
"$ld_is_gold" = xyes
; then
27292 gcc_cv_ld_large_toc
=yes
27293 elif test $in_tree_ld = yes ; then
27294 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
27295 gcc_cv_ld_large_toc
=yes
27297 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27298 cat > conftest.s
<<EOF
27299 .section ".tbss","awT",@nobits
27305 addis 9,13,ie0@got@tprel@ha
27306 ld 9,ie0@got@tprel@l(9)
27308 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27309 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27310 gcc_cv_ld_large_toc
=yes
27312 rm -f conftest conftest.o conftest.s
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27317 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27318 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27320 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27329 $as_echo_n "checking linker large toc support... " >&6; }
27330 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27331 $as_echo_n "(cached) " >&6
27333 gcc_cv_ld_large_toc
=no
27334 if test x
$gcc_cv_as != x
; then
27335 cat > conftest.s
<<EOF
27345 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27346 gcc_cv_ld_large_toc
=yes
27348 rm -f conftest conftest.o conftest.s
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27353 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27354 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27356 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27363 $as_echo_n "checking linker --build-id support... " >&6; }
27364 if test "${gcc_cv_ld_buildid+set}" = set; then :
27365 $as_echo_n "(cached) " >&6
27367 gcc_cv_ld_buildid
=no
27368 if test $in_tree_ld = yes ; then
27369 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27370 "$gcc_cv_gld_minor_version" -ge 18 -o \
27371 "$gcc_cv_gld_major_version" -gt 2 \
27372 && test $in_tree_ld_is_elf = yes; then
27373 gcc_cv_ld_buildid
=yes
27375 elif test x
$gcc_cv_ld != x
; then
27376 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27377 gcc_cv_ld_buildid
=yes
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27382 $as_echo "$gcc_cv_ld_buildid" >&6; }
27383 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27385 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27389 # Check whether --enable-linker-build-id was given.
27390 if test "${enable_linker_build_id+set}" = set; then :
27391 enableval
=$enable_linker_build_id;
27393 enable_linker_build_id
=no
27397 if test x
"$enable_linker_build_id" = xyes
; then
27398 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27400 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27404 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27408 # In binutils 2.21, GNU ld gained support for new emulations fully
27409 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27411 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27412 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27413 $as_echo_n "(cached) " >&6
27415 gcc_cv_ld_sol2_emulation
=no
27416 if test $in_tree_ld = yes ; then
27417 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27418 "$gcc_cv_gld_minor_version" -ge 21 -o \
27419 "$gcc_cv_gld_major_version" -gt 2 \
27420 && test $in_tree_ld_is_elf = yes; then
27421 gcc_cv_ld_sol2_emulation
=yes
27423 elif test x
$gcc_cv_ld != x
; then
27424 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27425 grep _sol2
> /dev
/null
; then
27426 gcc_cv_ld_sol2_emulation
=yes
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27431 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27432 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27434 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27439 $as_echo_n "checking linker --sysroot support... " >&6; }
27440 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27441 $as_echo_n "(cached) " >&6
27443 gcc_cv_ld_sysroot
=no
27444 if test $in_tree_ld = yes ; then
27445 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
27446 gcc_cv_ld_sysroot
=yes
27448 elif test x
$gcc_cv_ld != x
; then
27449 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27450 gcc_cv_ld_sysroot
=yes
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27455 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27456 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27458 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27462 # Test for stack protector support in target C library.
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27464 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27465 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27466 $as_echo_n "(cached) " >&6
27468 gcc_cv_libc_provides_ssp
=no
27470 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27471 # glibc 2.4 and later provides __stack_chk_fail and
27472 # either __stack_chk_guard, or TLS access to stack guard canary.
27474 if test $glibc_version_major -gt 2 \
27475 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27476 gcc_cv_libc_provides_ssp
=yes
27479 if test -f $target_header_dir/features.h \
27480 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27481 $target_header_dir/features.h
> /dev
/null
; then
27482 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27483 $target_header_dir/features.h
> /dev
/null
&& \
27484 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27485 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27486 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27487 gcc_cv_libc_provides_ssp
=yes
27489 # all versions of Bionic support stack protector
27490 elif test -f $target_header_dir/sys
/cdefs.h \
27491 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27492 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27493 gcc_cv_libc_provides_ssp
=yes
27498 # Avoid complicated tests (see
27499 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27500 # simply assert that glibc does provide this, which is true for all
27501 # realistically usable GNU/Hurd configurations.
27502 gcc_cv_libc_provides_ssp
=yes;;
27503 *-*-darwin* |
*-*-freebsd*)
27504 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27505 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27506 gcc_cv_libc_provides_ssp
=yes
27508 echo "no __stack_chk_fail on this target"
27512 *) gcc_cv_libc_provides_ssp
=no
;;
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27516 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27518 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27520 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27524 # Test for <sys/sdt.h> on the target.
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27527 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27529 if test -f $target_header_dir/sys
/sdt.h
; then
27532 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27536 $as_echo "$have_sys_sdt_h" >&6; }
27538 # Check if TFmode long double should be used by default or not.
27539 # Some glibc targets used DFmode long double, but with glibc 2.4
27540 # and later they can use TFmode.
27542 powerpc
*-*-linux* | \
27543 sparc
*-*-linux* | \
27547 # Check whether --with-long-double-128 was given.
27548 if test "${with_long_double_128+set}" = set; then :
27549 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27552 if test $glibc_version_major -gt 2 \
27553 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27554 gcc_cv_target_ldbl128
=yes
27557 gcc_cv_target_ldbl128
=no
27558 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27559 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27560 && gcc_cv_target_ldbl128
=yes
27567 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27569 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27574 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27575 gcc_cv_target_dl_iterate_phdr
=unknown
27577 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27578 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27579 # libdl there, both complicating its use and breaking compatibility
27580 # between Solaris 10 updates.
27581 *-*-solaris2.1
[1-9]*)
27582 # <link.h> needs both a dl_iterate_phdr declaration and support for
27583 # compilation with largefile support.
27584 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27585 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27586 gcc_cv_target_dl_iterate_phdr
=yes
27588 gcc_cv_target_dl_iterate_phdr
=no
27591 *-*-dragonfly* |
*-*-freebsd*)
27592 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
27593 gcc_cv_target_dl_iterate_phdr
=yes
27595 gcc_cv_target_dl_iterate_phdr
=no
27600 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27602 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27606 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27608 # We no longer support different GC mechanisms. Emit an error if
27609 # the user configures with --with-gc.
27611 # Check whether --with-gc was given.
27612 if test "${with_gc+set}" = set; then :
27613 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27617 # Libraries to use on the host. This will normally be set by the top
27618 # level Makefile. Here we simply capture the value for our Makefile.
27619 if test -z "${HOST_LIBS+set}"; then
27624 # Use the system's zlib library.
27626 zlibinc
="-I\$(srcdir)/../zlib"
27628 # Check whether --with-system-zlib was given.
27629 if test "${with_system_zlib+set}" = set; then :
27630 withval
=$with_system_zlib; zlibdir
=
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27640 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27641 # Check whether --enable-maintainer-mode was given.
27642 if test "${enable_maintainer_mode+set}" = set; then :
27643 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27650 $as_echo "$maintainer_mode" >&6; }
27652 if test "$maintainer_mode" = "yes"; then
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27660 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27661 # Check whether --enable-link-mutex was given.
27662 if test "${enable_link_mutex+set}" = set; then :
27663 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27669 $as_echo "$do_link_mutex" >&6; }
27671 if test "$do_link_mutex" = "yes"; then
27674 DO_LINK_MUTEX
=false
27682 # Make empty files to contain the specs and options for each language.
27683 # Then add #include lines to for a compiler that has specs and/or options.
27689 # These (without "all_") are set in each config-lang.in.
27690 # `language' must be a single word so is spelled singularly.
27693 all_outputs
='Makefile'
27694 # List of language makefile fragments.
27695 all_lang_makefrags
=
27696 # Additional files for gengtype
27697 all_gtfiles
="$target_gtfiles"
27699 # These are the languages that are set in --enable-languages,
27700 # and are available in the GCC tree.
27701 all_selected_languages
=
27703 # Add the language fragments.
27704 # Languages are added via two mechanisms. Some information must be
27705 # recorded in makefile variables, these are defined in config-lang.in.
27706 # We accumulate them and plug them into the main Makefile.
27707 # The other mechanism is a set of hooks for each of the main targets
27708 # like `clean', `install', etc.
27710 language_hooks
="Make-hooks"
27712 for lang
in ${srcdir}/*/config-lang.
in
27714 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27716 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27717 if test "x$lang_alias" = x
27719 echo "$lang doesn't set \$language." 1>&2
27722 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27723 subdirs
="$subdirs $subdir"
27725 # $gcc_subdir is where the gcc integration files are to be found
27726 # for a language, both for internal compiler purposes (compiler
27727 # sources implementing front-end to GCC tree converters), and for
27728 # build infrastructure purposes (Make-lang.in, etc.)
27730 # This will be <subdir> (relative to $srcdir) if a line like
27731 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27732 # is found in <langdir>/config-lang.in, and will remain <langdir>
27735 # Except for the language alias (fetched above), the regular
27736 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27737 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27738 # only this and the language alias.
27740 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27741 if [ "$gcc_subdir" = "" ]; then
27742 gcc_subdir
="$subdir"
27745 case ",$enable_languages," in
27747 all_selected_languages
="$all_selected_languages $lang_alias"
27748 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27749 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27760 .
${srcdir}/$gcc_subdir/config-lang.
in
27761 if test "x$language" = x
27763 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27768 case ",$enable_languages," in
27769 *,$lang_alias,*) ;;
27771 for i
in $subdir_requires; do
27772 test -f "${srcdir}/$i/config-lang.in" && continue
27780 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27781 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27782 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27783 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27785 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27786 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27788 all_languages
="$all_languages $language"
27789 all_compilers
="$all_compilers $compilers"
27790 all_outputs
="$all_outputs $outputs"
27791 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27792 case ",$enable_languages," in
27795 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27805 for language
in $all_selected_languages
27807 check_languages
="$check_languages check-$language"
27810 # We link each language in with a set of hooks, reached indirectly via
27811 # lang.${target}. Only do so for selected languages.
27815 target_list
="all.cross start.encap rest.encap tags \
27816 install-common install-man install-info install-pdf install-html dvi \
27817 pdf html uninstall info man srcextra srcman srcinfo \
27818 mostlyclean clean distclean maintainer-clean install-plugin"
27820 for t
in $target_list
27823 for lang
in $all_selected_languages
27827 echo "lang.$t: $x" >> Make-hooks
27831 # Option include files
27834 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27835 option_includes
="option-includes.mk"
27844 echo "dir ." > .gdbinit
27845 echo "dir ${srcdir}" >> .gdbinit
27846 if test x
$gdb_needs_out_file_path = xyes
27848 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27850 if test "x$subdirs" != x
; then
27853 echo "dir ${srcdir}/$s" >> .gdbinit
27856 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27857 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27859 # Put a breakpoint on __asan_report_error to help with debugging buffer
27862 *-fsanitize=address
*)
27863 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27867 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27871 # Find a directory in which to install a shared libgcc.
27873 # Check whether --enable-version-specific-runtime-libs was given.
27874 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27875 enableval
=$enable_version_specific_runtime_libs;
27879 # Substitute configuration variables
27943 if test x
${build} = x
${host} ; then
27944 if test x
${host} = x
${target} ; then
27945 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27947 echo "Links are now set up to build a cross-compiler" 1>&2
27948 echo " from ${host} to ${target}." 1>&2
27951 if test x
${host} = x
${target} ; then
27952 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27953 echo " for ${target}." 1>&2
27955 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27956 echo " from ${host} to ${target}." 1>&2
27965 if test "x${ISLLIBS}" != "x" ; then
27967 $as_echo "#define HAVE_isl 1" >>confdefs.h
27971 # Check for plugin support
27972 # Check whether --enable-plugin was given.
27973 if test "${enable_plugin+set}" = set; then :
27974 enableval
=$enable_plugin; enable_plugin
=$enableval
27976 enable_plugin
=yes; default_plugin
=yes
27984 if test x
$build = x
$host; then
27985 export_sym_check
="nm${exeext} -g"
27986 elif test x
$host = x
$target; then
27987 export_sym_check
="$gcc_cv_nm -g"
27993 if test x
$build = x
$host; then
27994 export_sym_check
="objdump${exeext} -T"
27995 elif test x
$host = x
$target; then
27996 export_sym_check
="$gcc_cv_objdump -T"
28003 if test x
"$enable_plugin" = x
"yes"; then
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28006 $as_echo_n "checking for exported symbols... " >&6; }
28007 if test "x$export_sym_check" != x
; then
28008 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28009 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28010 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28011 : # No need to use a flag
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28013 $as_echo "yes" >&6; }
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28016 $as_echo "yes" >&6; }
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28018 $as_echo_n "checking for -rdynamic... " >&6; }
28019 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28020 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28021 plugin_rdynamic
=yes
28022 pluginlibs
="-rdynamic"
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28028 $as_echo "$plugin_rdynamic" >&6; }
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28032 $as_echo "unable to check" >&6; }
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28038 $as_echo_n "checking for library containing dlopen... " >&6; }
28039 if test "${ac_cv_search_dlopen+set}" = set; then :
28040 $as_echo_n "(cached) " >&6
28042 ac_func_search_save_LIBS
=$LIBS
28043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28044 /* end confdefs.h. */
28046 /* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
28061 for ac_lib
in '' dl
; do
28062 if test -z "$ac_lib"; then
28063 ac_res
="none required"
28066 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28068 if ac_fn_c_try_link
"$LINENO"; then :
28069 ac_cv_search_dlopen
=$ac_res
28071 rm -f core conftest.err conftest.
$ac_objext \
28073 if test "${ac_cv_search_dlopen+set}" = set; then :
28077 if test "${ac_cv_search_dlopen+set}" = set; then :
28080 ac_cv_search_dlopen
=no
28082 rm conftest.
$ac_ext
28083 LIBS
=$ac_func_search_save_LIBS
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28086 $as_echo "$ac_cv_search_dlopen" >&6; }
28087 ac_res
=$ac_cv_search_dlopen
28088 if test "$ac_res" != no
; then :
28089 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28093 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28094 pluginlibs
="$pluginlibs -ldl"
28098 # Check that we can build shared objects with -fPIC -shared
28099 saved_LDFLAGS
="$LDFLAGS"
28100 saved_CFLAGS
="$CFLAGS"
28103 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28104 CFLAGS
="$CFLAGS -fPIC"
28105 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28108 CFLAGS
="$CFLAGS -fPIC"
28109 LDFLAGS
="$LDFLAGS -fPIC -shared"
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28113 $as_echo_n "checking for -fPIC -shared... " >&6; }
28114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28115 /* end confdefs.h. */
28125 if ac_fn_c_try_link
"$LINENO"; then :
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28127 $as_echo "yes" >&6; }; have_pic_shared
=yes
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28130 $as_echo "no" >&6; }; have_pic_shared
=no
28132 rm -f core conftest.err conftest.
$ac_objext \
28133 conftest
$ac_exeext conftest.
$ac_ext
28134 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28138 LDFLAGS
="$saved_LDFLAGS"
28139 CFLAGS
="$saved_CFLAGS"
28141 # If plugin support had been requested but not available, fail.
28142 if test x
"$enable_plugin" = x
"no" ; then
28143 if test x
"$default_plugin" != x
"yes"; then
28145 Building GCC with plugin support requires a host that supports
28146 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28153 if test x
"$enable_plugin" = x
"yes"; then
28155 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28160 # Enable --enable-host-shared
28161 # Check whether --enable-host-shared was given.
28162 if test "${enable_host_shared+set}" = set; then :
28163 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28172 # Check whether --enable-libquadmath-support was given.
28173 if test "${enable_libquadmath_support+set}" = set; then :
28174 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28176 ENABLE_LIBQUADMATH_SUPPORT
=yes
28179 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28181 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28186 # Specify what hash style to use by default.
28188 # Check whether --with-linker-hash-style was given.
28189 if test "${with_linker_hash_style+set}" = set; then :
28190 withval
=$with_linker_hash_style; case x
"$withval" in
28192 LINKER_HASH_STYLE
=sysv
28195 LINKER_HASH_STYLE
=gnu
28198 LINKER_HASH_STYLE
=both
28201 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28205 LINKER_HASH_STYLE
=''
28208 if test x
"${LINKER_HASH_STYLE}" != x
; then
28210 cat >>confdefs.h
<<_ACEOF
28211 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28216 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28217 # of jit/jit-playback.c.
28218 cat > gcc-driver-name.h
<<EOF
28219 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28222 # Configure the subdirectories
28223 # AC_CONFIG_SUBDIRS($subdirs)
28225 # Create the Makefile
28226 # and configure language subdirectories
28227 ac_config_files
="$ac_config_files $all_outputs"
28230 ac_config_commands
="$ac_config_commands default"
28232 cat >confcache
<<\_ACEOF
28233 # This file is a shell script that caches the results of configure
28234 # tests run on this system so they can be shared between configure
28235 # scripts and configure runs, see configure's option --config-cache.
28236 # It is not useful on other systems. If it contains results you don't
28237 # want to keep, you may remove or edit it.
28239 # config.status only pays attention to the cache file if you give it
28240 # the --recheck option to rerun configure.
28242 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28244 # following values.
28248 # The following way of writing the cache mishandles newlines in values,
28249 # but we know of no workaround that is simple, portable, and efficient.
28250 # So, we kill variables containing newlines.
28251 # Ultrix sh set writes to stderr and can't be redirected directly,
28252 # and sets the high bit in the cache file unless we assign to the vars.
28254 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28255 eval ac_val
=\$
$ac_var
28259 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28263 _ | IFS | as_nl
) ;; #(
28264 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28265 *) { eval $ac_var=; unset $ac_var;} ;;
28271 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28272 *${as_nl}ac_space
=\
*)
28273 # `set' does not quote correctly, so add quotes: double-quote
28274 # substitution turns \\\\ into \\, and sed turns \\ into \.
28277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28280 # `set' quotes correctly as required by POSIX, so do not add quotes.
28281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28294 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28295 if test -w "$cache_file"; then
28296 test "x$cache_file" != "x/dev/null" &&
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28298 $as_echo "$as_me: updating cache $cache_file" >&6;}
28299 cat confcache
>$cache_file
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28302 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28307 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28308 # Let make expand exec_prefix.
28309 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28311 DEFS
=-DHAVE_CONFIG_H
28315 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28316 # 1. Remove the extension, and $U if already installed.
28317 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28318 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28319 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28320 # will be set to the directory where LIBOBJS objects are built.
28321 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28322 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28324 LIBOBJS
=$ac_libobjs
28326 LTLIBOBJS
=$ac_ltlibobjs
28331 : ${CONFIG_STATUS=./config.status}
28333 ac_clean_files_save
=$ac_clean_files
28334 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28336 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28338 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28340 # Generated by $as_me.
28341 # Run this file to recreate the current configuration.
28342 # Compiler output produced by configure, useful for debugging
28343 # configure, is in config.log if it exists.
28346 ac_cs_recheck=false
28349 SHELL=\${CONFIG_SHELL-$SHELL}
28352 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28353 ## -------------------- ##
28354 ## M4sh Initialization. ##
28355 ## -------------------- ##
28357 # Be more Bourne compatible
28358 DUALCASE
=1; export DUALCASE
# for MKS sh
28359 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28362 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28363 # is contrary to our usage. Disable this feature.
28364 alias -g '${1+"$@"}'='"$@"'
28365 setopt NO_GLOB_SUBST
28367 case `(set -o) 2>/dev/null` in #(
28379 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28380 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28383 # Prefer a ksh shell builtin over an external printf program on Solaris,
28384 # but without wasting forks for bash or zsh.
28385 if test -z "$BASH_VERSION$ZSH_VERSION" \
28386 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28387 as_echo='print
-r --'
28388 as_echo_n='print
-rn --'
28389 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28390 as_echo='printf %s
\n'
28391 as_echo_n='printf %s
'
28393 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28394 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28395 as_echo_n='/usr
/ucb
/echo -n'
28397 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28398 as_echo_n_body='eval
28402 expr "X$arg" : "X\\(.*\\)$as_nl";
28403 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28405 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28407 export as_echo_n_body
28408 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28410 export as_echo_body
28411 as_echo='sh
-c $as_echo_body as_echo
'
28414 # The user is always right.
28415 if test "${PATH_SEPARATOR+set}" != set; then
28417 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28418 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28425 # We need space, tab and new line, in precisely that order. Quoting is
28426 # there to prevent editors from complaining about space-tab.
28427 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28428 # splitting by setting IFS to empty value.)
28431 # Find who we are. Look in the path if we contain no directory separator.
28433 *[\\/]* ) as_myself=$0 ;;
28434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28435 for as_dir in $PATH
28438 test -z "$as_dir" && as_dir=.
28439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28445 # We did not find ourselves, most probably we were run as `sh COMMAND'
28446 # in which case we are not to be found in the path.
28447 if test "x$as_myself" = x
; then
28450 if test ! -f "$as_myself"; then
28451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28455 # Unset variables that we do not need and which cause bugs (e.g. in
28456 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28457 # suppresses any "Segmentation fault" message there. '((' could
28458 # trigger a bug in pdksh 5.2.14.
28459 for as_var
in BASH_ENV ENV MAIL MAILPATH
28460 do eval test x\
${$as_var+set} = xset \
28461 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28474 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28477 # as_fn_error ERROR [LINENO LOG_FD]
28478 # ---------------------------------
28479 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28480 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28481 # script with status $?, using 1 if that was 0.
28484 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28486 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28487 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28489 $as_echo "$as_me: error: $1" >&2
28490 as_fn_exit
$as_status
28494 # as_fn_set_status STATUS
28495 # -----------------------
28496 # Set $? to STATUS, without forking.
28497 as_fn_set_status
()
28500 } # as_fn_set_status
28502 # as_fn_exit STATUS
28503 # -----------------
28504 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28508 as_fn_set_status
$1
28514 # Portably unset VAR.
28517 { eval $1=; unset $1;}
28519 as_unset
=as_fn_unset
28520 # as_fn_append VAR VALUE
28521 # ----------------------
28522 # Append the text in VALUE to the end of the definition contained in VAR. Take
28523 # advantage of any shell optimizations that allow amortized linear growth over
28524 # repeated appends, instead of the typical quadratic growth present in naive
28526 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28527 eval 'as_fn_append ()
28538 # as_fn_arith ARG...
28539 # ------------------
28540 # Perform arithmetic evaluation on the ARGs, and store the result in the
28541 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28542 # must be portable across $(()) and expr.
28543 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28544 eval 'as_fn_arith ()
28551 as_val
=`expr "$@" || test $? -eq 1`
28556 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28557 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28563 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28564 as_basename
=basename
28569 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28575 as_me
=`$as_basename -- "$0" ||
28576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28577 X"$0" : 'X\(//\)$' \| \
28578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28580 sed '/^.*\/\([^/][^/]*\)\/*$/{
28594 # Avoid depending upon Character Ranges.
28595 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28596 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28597 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28598 as_cr_digits
='0123456789'
28599 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28601 ECHO_C
= ECHO_N
= ECHO_T
=
28602 case `echo -n x` in #(((((
28604 case `echo 'xy\c'` in
28605 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28607 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28614 rm -f conf$$ conf$$.exe conf$$.
file
28615 if test -d conf$$.dir
; then
28616 rm -f conf$$.dir
/conf$$.
file
28619 mkdir conf$$.dir
2>/dev
/null
28621 if (echo >conf$$.
file) 2>/dev
/null
; then
28622 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28624 # ... but there are two gotchas:
28625 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28626 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28627 # In both cases, we have to default to `cp -p'.
28628 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28630 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28638 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28639 rmdir conf$$.dir
2>/dev
/null
28644 # Create "$as_dir" as a directory, including parents if necessary.
28649 -*) as_dir
=.
/$as_dir;;
28651 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28655 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28656 *) as_qdir
=$as_dir;;
28658 as_dirs
="'$as_qdir' $as_dirs"
28659 as_dir
=`$as_dirname -- "$as_dir" ||
28660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28661 X"$as_dir" : 'X\(//\)[^/]' \| \
28662 X"$as_dir" : 'X\(//\)$' \| \
28663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28664 $as_echo X"$as_dir" |
28665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28669 /^X\(\/\/\)[^/].*/{
28682 test -d "$as_dir" && break
28684 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28685 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28689 if mkdir
-p .
2>/dev
/null
; then
28690 as_mkdir_p
='mkdir -p "$as_dir"'
28692 test -d .
/-p && rmdir .
/-p
28696 if test -x / >/dev
/null
2>&1; then
28697 as_test_x
='test -x'
28699 if ls -dL / >/dev
/null
2>&1; then
28706 if test -d "$1"; then
28712 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28713 ???[sx]*):;;*)false;;esac;fi
28717 as_executable_p
=$as_test_x
28719 # Sed expression to map a string onto a valid CPP name.
28720 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28722 # Sed expression to map a string onto a valid variable name.
28723 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28727 ## ----------------------------------- ##
28728 ## Main body of $CONFIG_STATUS script. ##
28729 ## ----------------------------------- ##
28731 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28734 # Save the log message, to keep $0 and so on meaningful, and to
28735 # report actual input values of CONFIG_FILES etc. instead of their
28736 # values after options handling.
28738 This file was extended by $as_me, which was
28739 generated by GNU Autoconf 2.64. Invocation command line was
28741 CONFIG_FILES = $CONFIG_FILES
28742 CONFIG_HEADERS = $CONFIG_HEADERS
28743 CONFIG_LINKS = $CONFIG_LINKS
28744 CONFIG_COMMANDS = $CONFIG_COMMANDS
28747 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28752 case $ac_config_files in *"
28753 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28756 case $ac_config_headers in *"
28757 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28762 # Files that config.status was made for.
28763 config_files="$ac_config_files"
28764 config_headers="$ac_config_headers"
28765 config_links="$ac_config_links"
28766 config_commands="$ac_config_commands"
28770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28772 \`$as_me' instantiates files and other configuration actions
28773 from templates according to the current configuration. Unless the files
28774 and actions are specified as TAGs, all are instantiated by default.
28776 Usage: $0 [OPTION]... [TAG]...
28778 -h, --help print this help, then exit
28779 -V, --version print version number and configuration settings, then exit
28780 -q, --quiet, --silent
28781 do not print progress messages
28782 -d, --debug don't remove temporary files
28783 --recheck update $as_me by reconfiguring in the same conditions
28784 --file=FILE[:TEMPLATE]
28785 instantiate the configuration file FILE
28786 --header=FILE[:TEMPLATE]
28787 instantiate the configuration header FILE
28789 Configuration files:
28792 Configuration headers:
28795 Configuration links:
28798 Configuration commands:
28801 Report bugs to the package provider."
28804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28807 configured by $0, generated by GNU Autoconf 2.64,
28808 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28810 Copyright (C) 2009 Free Software Foundation, Inc.
28811 This config.status script is free software; the Free Software Foundation
28812 gives unlimited permission to copy, distribute and modify it."
28817 test -n "\$AWK" || AWK=awk
28820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28821 # The default lists apply if the user does not specify any file.
28827 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28828 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28839 # Handling of the options.
28840 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28842 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28843 $as_echo "$ac_cs_version"; exit ;;
28844 --debug |
--debu |
--deb |
--de |
--d |
-d )
28846 --file |
--fil |
--fi |
--f )
28849 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28851 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28852 ac_need_defaults
=false
;;
28853 --header |
--heade |
--head |
--hea )
28856 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28858 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28859 ac_need_defaults
=false
;;
28861 # Conflict between --help and --header
28862 as_fn_error
"ambiguous option: \`$1'
28863 Try \`$0 --help' for more information.";;
28864 --help |
--hel |
-h )
28865 $as_echo "$ac_cs_usage"; exit ;;
28866 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28867 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28870 # This is an error.
28871 -*) as_fn_error
"unrecognized option: \`$1'
28872 Try \`$0 --help' for more information." ;;
28874 *) as_fn_append ac_config_targets
" $1"
28875 ac_need_defaults
=false
;;
28881 ac_configure_extra_args
=
28883 if $ac_cs_silent; then
28885 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28890 if \$ac_cs_recheck; then
28891 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28894 CONFIG_SHELL='$SHELL'
28895 export CONFIG_SHELL
28900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28905 ## Running $as_me. ##
28911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28915 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28916 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28923 # Handling of arguments.
28924 for ac_config_target
in $ac_config_targets
28926 case $ac_config_target in
28927 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28928 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28929 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28930 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28931 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28932 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28933 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28934 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28935 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28937 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28942 # If the user did not use the arguments to specify the items to instantiate,
28943 # then the envvar interface is used. Set only those that are not.
28944 # We use the long form for the default assignment because of an extremely
28945 # bizarre bug on SunOS 4.1.3.
28946 if $ac_need_defaults; then
28947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28949 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
28950 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28953 # Have a temporary directory for convenience. Make it in the build tree
28954 # simply because there is no reason against having it here, and in addition,
28955 # creating and moving files from /tmp can sometimes cause problems.
28956 # Hook for its removal unless debugging.
28957 # Note that there is a small window in which the directory will not be cleaned:
28958 # after its creation but before its name has been assigned to `$tmp'.
28962 trap 'exit_status=$?
28963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28965 trap 'as_fn_exit 1' 1 2 13 15
28967 # Create a (secure) tmp directory for tmp files.
28970 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28971 test -n "$tmp" && test -d "$tmp"
28974 tmp
=.
/conf$$
-$RANDOM
28975 (umask 077 && mkdir
"$tmp")
28976 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28978 # Set up the scripts for CONFIG_FILES section.
28979 # No need to generate them if there are no CONFIG_FILES.
28980 # This happens for instance with `./config.status config.h'.
28981 if test -n "$CONFIG_FILES"; then
28983 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28984 ac_cs_awk_getline
=:
28985 ac_cs_awk_pipe_init
=
28986 ac_cs_awk_read_file
='
28987 while ((getline aline < (F[key])) > 0)
28990 ac_cs_awk_pipe_fini
=
28992 ac_cs_awk_getline
=false
28993 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28994 ac_cs_awk_read_file
='
28996 print "cat " F[key] " &&"
28997 '$ac_cs_awk_pipe_init
28998 # The final `:' finishes the AND list.
28999 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29001 ac_cr
=`echo X | tr X '\015'`
29002 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29003 # But we know of no other shell where ac_cr would be empty at this
29004 # point, so we can use a bashism as a fallback.
29005 if test "x$ac_cr" = x
; then
29006 eval ac_cr
=\$
\'\\r
\'
29008 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29009 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29012 ac_cs_awk_cr
=$ac_cr
29015 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29018 # Create commands to substitute file output variables.
29020 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29021 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29022 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29025 } >conf$
$files.sh
&&
29026 . .
/conf$
$files.sh ||
29027 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29028 rm -f conf$
$files.sh
29031 echo "cat >conf$$subs.awk <<_ACEOF" &&
29032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29034 } >conf$$subs.sh ||
29035 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29036 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29038 for ac_last_try in false false false false false :; do
29039 . ./conf$$subs.sh ||
29040 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29042 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29043 if test $ac_delim_n = $ac_delim_num; then
29045 elif $ac_last_try; then
29046 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29048 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29051 rm -f conf$$subs.sh
29053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29054 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29058 s/^/S["/; s
/!.
*/"]=/
29068 s/\(.\{148\}\).*/\1/
29070 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29075 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29082 s/\(.\{148\}\).*/\1/
29084 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29088 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29093 ' <conf$$subs.awk | sed '
29098 ' >>$CONFIG_STATUS || ac_write_fail=1
29099 rm -f conf$$subs.awk
29100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29102 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29103 for (key in S) S_is_set[key] = 1
29105 \$ac_cs_awk_pipe_init
29109 nfields = split(line, field, "@
")
29111 len = length(field[1])
29112 for (i = 2; i < nfields; i++) {
29114 keylen = length(key)
29115 if (S_is_set[key]) {
29117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29118 len += length(value) + length(field[++i])
29123 if (nfields == 3 && !substed) {
29125 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29126 \$ac_cs_awk_read_file
29132 \$ac_cs_awk_pipe_fini
29135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29136 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29137 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29140 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29141 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29146 # trailing colons and then remove the whole line if VPATH becomes empty
29147 # (actually we leave an empty line to preserve line numbers).
29148 if test "x
$srcdir" = x.; then
29149 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29150 s/:*\$(srcdir):*/:/
29151 s/:*\${srcdir}:*/:/
29153 s/^\([^=]*=[ ]*\):*/\1/
29159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29160 fi # test -n "$CONFIG_FILES"
29162 # Set up the scripts for CONFIG_HEADERS section.
29163 # No need to generate them if there are no CONFIG_HEADERS.
29164 # This happens for instance with `./config.status Makefile'.
29165 if test -n "$CONFIG_HEADERS"; then
29166 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29170 # Transform confdefs.h into an awk script `defines.awk', embedded as
29171 # here-document in config.status, that substitutes the proper values into
29172 # config.h.in to produce config.h.
29174 # Create a delimiter string that does not exist in confdefs.h, to ease
29175 # handling of long lines.
29177 for ac_last_try in false false :; do
29178 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29179 if test -z "$ac_t"; then
29181 elif $ac_last_try; then
29182 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29184 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29188 # For the awk script, D is an array of macro values keyed by name,
29189 # likewise P contains macro parameters if any. Preserve backslash
29190 # newline sequences.
29192 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29194 s/.\{148\}/&'"$ac_delim"'/g
29197 s/^[ ]*#[ ]*define[ ][ ]*/ /
29204 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29206 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29211 D["\
1"]=" \
3\\\\\\n
"\\/p
29213 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29218 s/.\{148\}/&'"$ac_delim"'/g
29223 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29226 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29228 ' <confdefs.h | sed '
29229 s/'"$ac_delim"'/"\\\
29230 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29233 for (key in D) D_is_set[key] = 1
29236 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29238 split(line, arg, " ")
29239 if (arg[1] == "#") {
29243 defundef
= substr
(arg
[1], 2)
29246 split(mac1
, mac2
, "(") #)
29248 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29249 if (D_is_set
[macro
]) {
29250 # Preserve the white space surrounding the "#".
29251 print prefix
"define", macro P
[macro
] D
[macro
]
29254 # Replace #undef with comments. This is necessary, for example,
29255 # in the case of _POSIX_SOURCE, which is predefined and required
29256 # on some systems where configure will not decide to define it.
29257 if (defundef
== "undef") {
29258 print
"/*", prefix defundef
, macro
, "*/"
29266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29267 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29268 fi # test -n "$CONFIG_HEADERS"
29271 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29276 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29278 case $ac_mode$ac_tag in
29280 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29281 :[FH
]-) ac_tag
=-:-;;
29282 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29299 -) ac_f
="$tmp/stdin";;
29300 *) # Look for the file first in the build tree, then in the source tree
29301 # (if the path is not absolute). The absolute path cannot be DOS-style,
29302 # because $ac_f cannot contain `:'.
29306 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29308 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29310 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29311 as_fn_append ac_file_inputs
" '$ac_f'"
29314 # Let's still pretend it is `configure' which instantiates (i.e., don't
29315 # use $as_me), people would be surprised to read:
29316 # /* config.h. Generated by config.status. */
29317 configure_input
='Generated from '`
29318 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29320 if test x
"$ac_file" != x-
; then
29321 configure_input
="$ac_file. $configure_input"
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29323 $as_echo "$as_me: creating $ac_file" >&6;}
29325 # Neutralize special characters interpreted by sed in replacement strings.
29326 case $configure_input in #(
29327 *\
&* |
*\|
* |
*\\* )
29328 ac_sed_conf_input
=`$as_echo "$configure_input" |
29329 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29330 *) ac_sed_conf_input
=$configure_input;;
29334 *:-:* |
*:-) cat >"$tmp/stdin" \
29335 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29340 ac_dir
=`$as_dirname -- "$ac_file" ||
29341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29342 X"$ac_file" : 'X\(//\)[^/]' \| \
29343 X"$ac_file" : 'X\(//\)$' \| \
29344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29345 $as_echo X"$ac_file" |
29346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29350 /^X\(\/\/\)[^/].*/{
29363 as_dir
="$ac_dir"; as_fn_mkdir_p
29367 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29369 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29370 # A ".." for each directory in $ac_dir_suffix.
29371 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29372 case $ac_top_builddir_sub in
29373 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29374 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29377 ac_abs_top_builddir
=$ac_pwd
29378 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29379 # for backward compatibility:
29380 ac_top_builddir
=$ac_top_build_prefix
29383 .
) # We are building in place.
29385 ac_top_srcdir
=$ac_top_builddir_sub
29386 ac_abs_top_srcdir
=$ac_pwd ;;
29387 [\\/]* | ?
:[\\/]* ) # Absolute name.
29388 ac_srcdir
=$srcdir$ac_dir_suffix;
29389 ac_top_srcdir
=$srcdir
29390 ac_abs_top_srcdir
=$srcdir ;;
29391 *) # Relative name.
29392 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29393 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29394 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29396 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29408 # If the template does not know about datarootdir, expand it.
29409 # FIXME: This hack should be removed a few years after 2.60.
29410 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29421 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29422 *datarootdir
*) ac_datarootdir_seen
=yes;;
29423 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29425 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29428 ac_datarootdir_hack='
29429 s&@datadir@&$datadir&g
29430 s&@docdir@&$docdir&g
29431 s&@infodir@&$infodir&g
29432 s&@localedir@&$localedir&g
29433 s&@mandir@&$mandir&g
29434 s&\\\${datarootdir}&$datarootdir&g' ;;
29438 # Neutralize VPATH when `$srcdir' = `.'.
29439 # Shell code in configure.ac might set extrasub.
29440 # FIXME: do we really want to maintain this feature?
29441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29442 ac_sed_extra="$ac_vpsub
29445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29447 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29448 s|@configure_input@|
$ac_sed_conf_input|
;t t
29449 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29450 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29451 s
&@srcdir@
&$ac_srcdir&;t t
29452 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29453 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29454 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29455 s
&@builddir@
&$ac_builddir&;t t
29456 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29457 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29458 $ac_datarootdir_hack
29460 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29461 if $ac_cs_awk_getline; then
29462 $AWK -f "$tmp/subs.
awk"
29464 $AWK -f "$tmp/subs.
awk" | $SHELL
29466 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29468 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29469 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29470 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29472 which seems to be undefined. Please make sure it is defined." >&5
29473 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29474 which seems to be undefined. Please make sure it is defined." >&2;}
29478 -) cat "$tmp/out" && rm -f "$tmp/out";;
29479 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29481 || as_fn_error "could not create $ac_file" "$LINENO" 5
29487 if test x"$ac_file" != x-; then
29489 $as_echo "/* $configure_input */" \
29490 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29491 } >"$tmp/config.h" \
29492 || as_fn_error "could not create $ac_file" "$LINENO" 5
29493 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29495 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29498 mv "$tmp/config.h" "$ac_file" \
29499 || as_fn_error "could not create $ac_file" "$LINENO" 5
29502 $as_echo "/* $configure_input */" \
29503 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29504 || as_fn_error "could not create -" "$LINENO" 5
29512 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
29515 # Prefer the file from the source tree if names are identical.
29516 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29517 ac_source=$srcdir/$ac_source
29520 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29521 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29523 if test ! -r "$ac_source"; then
29524 as_fn_error "$ac_source: file not found" "$LINENO" 5
29528 # Try a relative symlink, then a hard link, then a copy.
29530 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29531 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29533 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29534 ln "$ac_source" "$ac_file" 2>/dev/null ||
29535 cp -p "$ac_source" "$ac_file" ||
29536 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29539 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29540 $as_echo "$as_me: executing $ac_file commands" >&6;}
29545 case $ac_file$ac_mode in
29546 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29548 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29549 for lang in $subdirs c-family common
29551 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29553 "as":F) chmod +x as ;;
29554 "collect-ld":F) chmod +x collect-ld ;;
29555 "nm":F) chmod +x nm ;;
29557 case ${CONFIG_HEADERS} in
29558 *auto-host.h:config.in*)
29561 # Make sure all the subdirs exist.
29562 for d in $subdirs doc build common c-family
29564 test -d $d || mkdir $d
29574 ac_clean_files=$ac_clean_files_save
29576 test $ac_write_fail = 0 ||
29577 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29580 # configure is writing to config.log, and then calls config.status.
29581 # config.status does its own redirection, appending to config.log.
29582 # Unfortunately, on DOS this fails, as config.log is still kept open
29583 # by configure, so config.status won't be able to
write to it
; its
29584 # output is simply discarded. So we exec the FD to /dev/null,
29585 # effectively closing config.log, so it can be properly (re)opened and
29586 # appended to by config.status. When coming back to configure, we
29587 # need to make the FD available again.
29588 if test "$no_create" != yes; then
29590 ac_config_status_args
=
29591 test "$silent" = yes &&
29592 ac_config_status_args
="$ac_config_status_args --quiet"
29594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29597 # would make configure fail if this is the last instruction.
29598 $ac_cs_success || as_fn_exit $?
29600 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29602 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}