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
627 common_out_object_file
643 gcc_gxx_include_dir_add_sysroot
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
653 TM_MULTILIB_EXCEPTIONS_CONFIG
662 build_xm_include_list
664 build_install_headers_dir
666 all_selected_languages
685 ORIGINAL_NM_FOR_TARGET
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 ORIGINAL_AS_FOR_TARGET
734 NATIVE_SYSTEM_HEADER_DIR
767 real_target_noncanonical
768 enable_as_accelerator
782 valgrind_path_defines
812 CROSS_SYSTEM_HEADER_DIR
813 TARGET_SYSTEM_ROOT_DEFINE
815 SYSROOT_CFLAGS_FOR_TARGET
860 program_transform_name
871 ac_subst_files
='option_includes
874 enable_option_checking
877 with_native_system_header_dir
882 enable_generated_files_in_srcdir
889 enable_build_format_warnings
893 enable_gather_detailed_mem_stats
894 enable_valgrind_annotations
913 enable_sjlj_exceptions
915 enable_leading_mingw64_underscores
918 enable_win32_registry
926 enable_gnu_indirect_function
927 enable_initfini_array
929 enable_fix_cortex_a53_835769
930 enable_fix_cortex_a53_843419
932 enable_gnu_unique_object
933 enable_linker_build_id
938 enable_maintainer_mode
940 enable_version_specific_runtime_libs
943 enable_libquadmath_support
944 with_linker_hash_style
945 with_diagnostics_color
948 ac_precious_vars
='build_alias
967 # Initialize some variables set by options.
969 ac_init_version
=false
970 ac_unrecognized_opts
=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
981 program_transform_name
=s
,x
,x
,
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir
='${exec_prefix}/bin'
996 sbindir
='${exec_prefix}/sbin'
997 libexecdir
='${exec_prefix}/libexec'
998 datarootdir
='${prefix}/share'
999 datadir
='${datarootdir}'
1000 sysconfdir
='${prefix}/etc'
1001 sharedstatedir
='${prefix}/com'
1002 localstatedir
='${prefix}/var'
1003 includedir
='${prefix}/include'
1004 oldincludedir
='/usr/include'
1005 docdir
='${datarootdir}/doc/${PACKAGE}'
1006 infodir
='${datarootdir}/info'
1011 libdir
='${exec_prefix}/lib'
1012 localedir
='${datarootdir}/locale'
1013 mandir
='${datarootdir}/man'
1019 # If the previous option needs an argument, assign it.
1020 if test -n "$ac_prev"; then
1021 eval $ac_prev=\
$ac_option
1027 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1033 case $ac_dashdash$ac_option in
1037 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1039 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1040 bindir
=$ac_optarg ;;
1042 -build |
--build |
--buil |
--bui |
--bu)
1043 ac_prev
=build_alias
;;
1044 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1045 build_alias
=$ac_optarg ;;
1047 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1048 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1049 ac_prev
=cache_file
;;
1050 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1051 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1052 cache_file
=$ac_optarg ;;
1054 --config-cache |
-C)
1055 cache_file
=config.cache
;;
1057 -datadir |
--datadir |
--datadi |
--datad)
1059 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1060 datadir
=$ac_optarg ;;
1062 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1063 |
--dataroo |
--dataro |
--datar)
1064 ac_prev
=datarootdir
;;
1065 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1066 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1067 datarootdir
=$ac_optarg ;;
1069 -disable-* |
--disable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=no
;;
1085 -docdir |
--docdir |
--docdi |
--doc |
--do)
1087 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1088 docdir
=$ac_optarg ;;
1090 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1092 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1093 dvidir
=$ac_optarg ;;
1095 -enable-* |
--enable-*)
1096 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1099 as_fn_error
"invalid feature name: $ac_useropt"
1100 ac_useropt_orig
=$ac_useropt
1101 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_
$ac_useropt"
1106 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep
=', ';;
1109 eval enable_
$ac_useropt=\
$ac_optarg ;;
1111 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1112 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1113 |
--exec |
--exe |
--ex)
1114 ac_prev
=exec_prefix
;;
1115 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1116 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1117 |
--exec=* |
--exe=* |
--ex=*)
1118 exec_prefix
=$ac_optarg ;;
1120 -gas |
--gas |
--ga |
--g)
1121 # Obsolete; use --with-gas.
1124 -help |
--help |
--hel |
--he |
-h)
1125 ac_init_help
=long
;;
1126 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1127 ac_init_help
=recursive
;;
1128 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1129 ac_init_help
=short
;;
1131 -host |
--host |
--hos |
--ho)
1132 ac_prev
=host_alias
;;
1133 -host=* |
--host=* |
--hos=* |
--ho=*)
1134 host_alias
=$ac_optarg ;;
1136 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1138 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1140 htmldir
=$ac_optarg ;;
1142 -includedir |
--includedir |
--includedi |
--included |
--include \
1143 |
--includ |
--inclu |
--incl |
--inc)
1144 ac_prev
=includedir
;;
1145 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1146 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1147 includedir
=$ac_optarg ;;
1149 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1151 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1152 infodir
=$ac_optarg ;;
1154 -libdir |
--libdir |
--libdi |
--libd)
1156 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1157 libdir
=$ac_optarg ;;
1159 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1160 |
--libexe |
--libex |
--libe)
1161 ac_prev
=libexecdir
;;
1162 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1163 |
--libexe=* |
--libex=* |
--libe=*)
1164 libexecdir
=$ac_optarg ;;
1166 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1167 ac_prev
=localedir
;;
1168 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1169 localedir
=$ac_optarg ;;
1171 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1172 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1173 ac_prev
=localstatedir
;;
1174 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1175 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1176 localstatedir
=$ac_optarg ;;
1178 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1180 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1181 mandir
=$ac_optarg ;;
1183 -nfp |
--nfp |
--nf)
1184 # Obsolete; use --without-fp.
1187 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1188 |
--no-cr |
--no-c |
-n)
1191 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1192 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1195 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1196 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1197 |
--oldin |
--oldi |
--old |
--ol |
--o)
1198 ac_prev
=oldincludedir
;;
1199 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1200 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1201 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1202 oldincludedir
=$ac_optarg ;;
1204 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1206 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1207 prefix
=$ac_optarg ;;
1209 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1210 |
--program-pre |
--program-pr |
--program-p)
1211 ac_prev
=program_prefix
;;
1212 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1213 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1214 program_prefix
=$ac_optarg ;;
1216 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1217 |
--program-suf |
--program-su |
--program-s)
1218 ac_prev
=program_suffix
;;
1219 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1220 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1221 program_suffix
=$ac_optarg ;;
1223 -program-transform-name |
--program-transform-name \
1224 |
--program-transform-nam |
--program-transform-na \
1225 |
--program-transform-n |
--program-transform- \
1226 |
--program-transform |
--program-transfor \
1227 |
--program-transfo |
--program-transf \
1228 |
--program-trans |
--program-tran \
1229 |
--progr-tra |
--program-tr |
--program-t)
1230 ac_prev
=program_transform_name
;;
1231 -program-transform-name=* |
--program-transform-name=* \
1232 |
--program-transform-nam=* |
--program-transform-na=* \
1233 |
--program-transform-n=* |
--program-transform-=* \
1234 |
--program-transform=* |
--program-transfor=* \
1235 |
--program-transfo=* |
--program-transf=* \
1236 |
--program-trans=* |
--program-tran=* \
1237 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1238 program_transform_name
=$ac_optarg ;;
1240 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1242 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1243 pdfdir
=$ac_optarg ;;
1245 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1247 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1250 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1251 |
-silent |
--silent |
--silen |
--sile |
--sil)
1254 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1256 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1258 sbindir
=$ac_optarg ;;
1260 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1261 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1262 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1264 ac_prev
=sharedstatedir
;;
1265 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1266 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1267 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1269 sharedstatedir
=$ac_optarg ;;
1271 -site |
--site |
--sit)
1273 -site=* |
--site=* |
--sit=*)
1276 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1278 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1279 srcdir
=$ac_optarg ;;
1281 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1282 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1283 ac_prev
=sysconfdir
;;
1284 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1285 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1286 sysconfdir
=$ac_optarg ;;
1288 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1289 ac_prev
=target_alias
;;
1290 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1291 target_alias
=$ac_optarg ;;
1293 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1296 -version |
--version |
--versio |
--versi |
--vers |
-V)
1297 ac_init_version
=: ;;
1300 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1303 as_fn_error
"invalid package name: $ac_useropt"
1304 ac_useropt_orig
=$ac_useropt
1305 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep
=', ';;
1313 eval with_
$ac_useropt=\
$ac_optarg ;;
1315 -without-* |
--without-*)
1316 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1319 as_fn_error
"invalid package name: $ac_useropt"
1320 ac_useropt_orig
=$ac_useropt
1321 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1326 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep
=', ';;
1329 eval with_
$ac_useropt=no
;;
1332 # Obsolete; use --with-x.
1335 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1336 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1337 ac_prev
=x_includes
;;
1338 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1339 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1340 x_includes
=$ac_optarg ;;
1342 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1343 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1344 ac_prev
=x_libraries
;;
1345 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1346 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1347 x_libraries
=$ac_optarg ;;
1349 -*) as_fn_error
"unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information."
1354 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1358 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1360 eval $ac_envvar=\
$ac_optarg
1361 export $ac_envvar ;;
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1374 if test -n "$ac_prev"; then
1375 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error
"missing argument to $ac_option"
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1382 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387 # Check all directory arguments for consistency.
1388 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val
=\$
$ac_var
1394 # Remove trailing slashes.
1397 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\
$ac_val;;
1400 # Be sure to have absolute directory names.
1402 [\\/$
]* | ?
:[\\/]* ) continue;;
1403 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1405 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1413 target
=$target_alias
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x
; then
1417 if test "x$build_alias" = x
; then
1418 cross_compiling
=maybe
1419 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1420 If a cross compiler is detected then cross compile mode will be used." >&2
1421 elif test "x$build_alias" != "x$host_alias"; then
1427 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1429 test "$silent" = yes && exec 6>/dev
/null
1432 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di
=`ls -di .` &&
1434 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error
"working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error
"pwd does not report name of working directory"
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted
=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir
=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1472 ac_srcdir_defaulted
=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1476 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1478 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1490 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 for ac_var
in $ac_precious_vars; do
1493 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1495 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1500 # Report the --help message.
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1506 \`configure' configures this package to adapt to many kinds of systems.
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1513 Defaults for the options are specified in brackets.
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1537 For better control, use the options below.
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1569 --build=BUILD configure
for building on BUILD
[guessed
]
1570 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1571 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1575 if test -n "$ac_init_help"; then
1580 --disable-option-checking ignore unrecognized
--enable/--with options
1581 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1582 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1583 --enable-generated-files-in-srcdir
1584 put copies of generated files
in source dir intended
1585 for creating
source tarballs
for users without
1586 texinfo bison or flex
1587 --disable-largefile omit support
for large files
1588 --disable-build-format-warnings
1589 don
't use -Wformat while building GCC
1590 --enable-werror-always enable -Werror despite compiler version
1591 --enable-checking[=LIST]
1592 enable expensive run-time checks. With LIST, enable
1593 only specific categories of checks. Categories are:
1594 yes,no,all,none,release. Flags are:
1595 assert,df,fold,gc,gcac,gimple,misc,
1596 rtlflag,rtl,runtime,tree,valgrind,types
1597 --enable-coverage[=LEVEL]
1598 enable compiler's code coverage collection. Use to
1599 measure compiler performance and
locate unused parts
1600 of the compiler. With LEVEL
, specify optimization.
1601 Values are opt
, noopt
, default is noopt
1602 --enable-gather-detailed-mem-stats
1603 enable detailed memory allocation stats gathering
1604 --enable-valgrind-annotations
1605 enable valgrind runtime interaction
1606 --enable-multilib enable library support
for multiple ABIs
1607 --enable-multiarch enable support
for multiarch paths
1608 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1609 --enable-decimal-float={no
,yes,bid
,dpd
}
1610 enable decimal float extension to C. Selecting
'bid'
1611 or
'dpd' choses
which decimal floating point format
1613 --enable-fixed-point enable fixed-point arithmetic extension to C
1614 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1616 --enable-tls enable or disable generation of tls code overriding
1617 the assembler check
for tls support
1618 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1619 GNU Objective-C runtime
1620 --disable-shared don't provide a shared libgcc
1621 --enable-languages=LIST specify
which front-ends to build
1622 --disable-rpath do not hardcode runtime library paths
1623 --enable-sjlj-exceptions
1624 arrange to use setjmp
/longjmp exception handling
1625 --enable-secureplt enable -msecure-plt by default
for PowerPC
1626 --enable-leading-mingw64-underscores
1627 enable leading underscores on
64 bit mingw targets
1628 --enable-cld enable -mcld by default
for 32bit x86
1629 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1631 --disable-win32-registry
1632 disable lookup of installation paths
in the Registry
1634 --enable-win32-registry enable registry lookup
(default
)
1635 --enable-win32-registry=KEY
1636 use KEY instead of GCC version as the last portion
1638 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1639 --enable-static[=PKGS
] build static libraries
[default
=yes]
1640 --enable-fast-install[=PKGS
]
1641 optimize
for fast installation
[default
=yes]
1642 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1643 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1644 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1645 --enable-gnu-indirect-function
1646 enable the use of the @gnu_indirect_function to
1648 --enable-initfini-array use .init_array
/.fini_array sections
1649 --enable-comdat enable COMDAT group support
1651 --enable-fix-cortex-a53-835769
1652 enable workaround
for AArch64 Cortex-A53 erratum
1654 --disable-fix-cortex-a53-835769
1655 disable workaround
for AArch64 Cortex-A53 erratum
1659 --enable-fix-cortex-a53-843419
1660 enable workaround
for AArch64 Cortex-A53 erratum
1662 --disable-fix-cortex-a53-843419
1663 disable workaround
for AArch64 Cortex-A53 erratum
1666 --enable-gnu-unique-object
1667 enable the use of the @gnu_unique_object ELF
1668 extension on glibc systems
1669 --enable-linker-build-id
1670 compiler will always pass
--build-id to linker
1671 --enable-default-ssp enable Stack Smashing Protection as default
1672 --enable-maintainer-mode
1673 enable make rules and dependencies not useful
(and
1674 sometimes confusing
) to the casual installer
1675 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1676 thrashing on the build machine
1677 --enable-version-specific-runtime-libs
1678 specify that runtime libraries should be installed
1679 in a compiler-specific directory
1680 --enable-plugin enable plugin support
1681 --enable-host-shared build
host code as shared libraries
1682 --disable-libquadmath-support
1683 disable libquadmath support
for Fortran
1684 --enable-default-pie enable Position Independent Executable as default
1687 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1688 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1689 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1690 --with-local-prefix=DIR specifies directory to put
local include
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to
look for standard
1693 system header files
in. Defaults to
/usr
/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1697 --with-gxx-include-dir=DIR
1698 specifies directory to put g
++ header files
1699 --with-cpp-install-dir=DIR
1700 install the user visible C preprocessor
in DIR
1701 (relative to PREFIX
) as well as PREFIX
/bin
1702 --with-gnu-ld arrange to work with GNU ld
1703 --with-ld arrange to use the specified ld
(full pathname
)
1704 --with-demangler-in-ld try to use demangler
in GNU ld
1705 --with-gnu-as arrange to work with GNU as
1706 --with-as arrange to use the specified as
(full pathname
)
1707 --with-stabs arrange to use stabs instead of
host debug format
1708 --with-dwarf2 force the default debug format to be DWARF
2
1709 --with-specs=SPECS add SPECS to driver command-line processing
1710 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1711 --with-bugurl=URL Direct users to URL to report a bug
1712 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1713 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1714 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1715 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1716 --with-pic try to use only PIC/non-PIC objects [default=use
1718 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1719 --with-plugin-ld=[ARG] specify the plugin linker
1720 --with-glibc-version=M.N
1721 assume GCC used with glibc version M.N or later
1722 --with-long-double-128 use 128-bit long double by default
1723 --with-gc={page,zone} this option is not supported anymore. It used to
1724 choose the garbage collection mechanism to use with
1726 --with-system-zlib use installed libz
1727 --with-linker-hash-style={sysv,gnu,both}
1728 specify the linker hash style
1729 --with-diagnostics-color={never,auto,auto-if-env,always}
1730 specify the default of -fdiagnostics-color option
1731 auto-if-env stands for -fdiagnostics-color=auto if
1732 GCC_COLOR environment variable is present and
1733 -fdiagnostics-color=never otherwise
1735 Some influential environment variables:
1736 CC C compiler command
1737 CFLAGS C compiler flags
1738 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1739 nonstandard directory <lib dir>
1740 LIBS libraries to pass to the linker, e.g. -l<library>
1741 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1742 you have headers in a nonstandard directory <include dir>
1743 CXX C++ compiler command
1744 CXXFLAGS C++ compiler flags
1745 CXXCPP C++ preprocessor
1747 GMPLIBS How to link GMP
1748 GMPINC How to find GMP include files
1749 ISLLIBS How to link ISL
1750 ISLINC How to find ISL include files
1752 Use these variables to override the choices made by `configure' or to
help
1753 it to
find libraries and programs with nonstandard names
/locations.
1755 Report bugs to the package provider.
1760 if test "$ac_init_help" = "recursive"; then
1761 # If there are subdirs, report their specific --help.
1762 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1763 test -d "$ac_dir" ||
1764 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1769 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1771 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772 # A ".." for each directory in $ac_dir_suffix.
1773 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774 case $ac_top_builddir_sub in
1775 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1776 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1779 ac_abs_top_builddir
=$ac_pwd
1780 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1781 # for backward compatibility:
1782 ac_top_builddir
=$ac_top_build_prefix
1785 .
) # We are building in place.
1787 ac_top_srcdir
=$ac_top_builddir_sub
1788 ac_abs_top_srcdir
=$ac_pwd ;;
1789 [\\/]* | ?
:[\\/]* ) # Absolute name.
1790 ac_srcdir
=$srcdir$ac_dir_suffix;
1791 ac_top_srcdir
=$srcdir
1792 ac_abs_top_srcdir
=$srcdir ;;
1794 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1796 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1798 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1800 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1801 # Check for guested configure.
1802 if test -f "$ac_srcdir/configure.gnu"; then
1804 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805 elif test -f "$ac_srcdir/configure"; then
1807 $SHELL "$ac_srcdir/configure" --help=recursive
1809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1811 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1815 test -n "$ac_init_help" && exit $ac_status
1816 if $ac_init_version; then
1819 generated by GNU Autoconf
2.64
1821 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1822 This configure
script is free software
; the Free Software Foundation
1823 gives unlimited permission to copy
, distribute and modify it.
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile
()
1837 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1838 rm -f conftest.
$ac_objext
1839 if { { ac_try
="$ac_compile"
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 } # ac_fn_c_try_compile
1870 # ac_fn_cxx_try_compile LINENO
1871 # ----------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_compile ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1880 *) ac_try_echo
=$ac_try;;
1882 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1886 if test -s conftest.err
; then
1887 grep -v '^ *+' conftest.err
>conftest.er1
1888 cat conftest.er1
>&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.
$ac_objext; then :
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.
$ac_ext >&5
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1906 } # ac_fn_cxx_try_compile
1908 # ac_fn_cxx_try_cpp LINENO
1909 # ------------------------
1910 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_cpp
()
1913 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1914 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } >/dev/null && {
1930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943 } # ac_fn_cxx_try_cpp
1945 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1946 # ---------------------------------------------------------
1947 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948 # the include files in INCLUDES and setting the cache variable VAR
1950 ac_fn_cxx_check_header_mongrel ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957 $as_echo_n "(cached) " >&6
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1963 # Is the header compilable?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965 $as_echo_n "checking $2 usability... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1971 if ac_fn_cxx_try_compile "$LINENO"; then :
1972 ac_header_compiler=yes
1974 ac_header_compiler=no
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978 $as_echo "$ac_header_compiler" >&6; }
1980 # Is the header present?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982 $as_echo_n "checking $2 presence... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 if ac_fn_cxx_try_cpp "$LINENO"; then :
1988 ac_header_preproc=yes
1990 ac_header_preproc=no
1992 rm -f conftest.err conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994 $as_echo "$ac_header_preproc" >&6; }
1996 # So? What about this header?
1997 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2008 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2012 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2022 eval "$3=\$ac_header_compiler"
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 } # ac_fn_cxx_check_header_mongrel
2032 # ac_fn_cxx_try_run LINENO
2033 # ------------------------
2034 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2035 # that executables *can* be run.
2036 ac_fn_cxx_try_run ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if { { ac_try="$ac_link"
2041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2042 *) ac_try_echo
=$ac_try;;
2044 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_link") 2>&5
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2050 { { case "(($ac_try" in
2051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_try") 2>&5
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; }; }; then :
2062 $as_echo "$as_me: program exited with status $ac_status" >&5
2063 $as_echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2066 ac_retval=$ac_status
2068 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2069 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 } # ac_fn_cxx_try_run
2074 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2075 # ---------------------------------------------------------
2076 # Tests whether HEADER exists and can be compiled using the include files in
2077 # INCLUDES, setting the cache variable VAR accordingly.
2078 ac_fn_cxx_check_header_compile ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084 $as_echo_n "(cached) " >&6
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2091 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_cxx_check_header_compile
2105 # ac_fn_c_try_cpp LINENO
2106 # ----------------------
2107 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { { ac_try="$ac_cpp conftest.$ac_ext"
2113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2114 *) ac_try_echo
=$ac_try;;
2116 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2120 if test -s conftest.err
; then
2121 grep -v '^ *+' conftest.err
>conftest.er1
2122 cat conftest.er1
>&5
2123 mv -f conftest.er1 conftest.err
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } >/dev
/null
&& {
2127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.
$ac_ext >&5
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2142 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2143 # ----------------------------------------------
2144 # Tries to find the compile-time value of EXPR in a program that includes
2145 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2147 ac_fn_cxx_compute_int
()
2149 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2150 if test "$cross_compiling" = yes; then
2151 # Depending upon the size, compute the lo and hi bounds.
2152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 static int test_array [1 - 2 * !(($2) >= 0)];
2165 if ac_fn_cxx_try_compile
"$LINENO"; then :
2168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 if ac_fn_cxx_try_compile
"$LINENO"; then :
2182 ac_hi
=$ac_mid; break
2184 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2185 if test $ac_lo -le $ac_mid; then
2189 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) < 0)];
2207 if ac_fn_cxx_try_compile
"$LINENO"; then :
2210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2216 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2223 if ac_fn_cxx_try_compile
"$LINENO"; then :
2224 ac_lo
=$ac_mid; break
2226 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2227 if test $ac_mid -le $ac_hi; then
2231 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2241 # Binary search between lo and hi bounds.
2242 while test "x$ac_lo" != "x$ac_hi"; do
2243 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2250 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2257 if ac_fn_cxx_try_compile
"$LINENO"; then :
2260 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2265 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2272 static long int longval () { return $2; }
2273 static unsigned long int ulongval () { return $2; }
2280 FILE *f = fopen ("conftest.val", "w");
2285 long int i = longval ();
2288 fprintf (f, "%ld", i);
2292 unsigned long int i = ulongval ();
2295 fprintf (f, "%lu", i);
2297 /* Do not output a trailing newline, as this causes \r\n confusion
2298 on some platforms. */
2299 return ferror (f) || fclose (f) != 0;
2305 if ac_fn_cxx_try_run
"$LINENO"; then :
2306 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2310 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2311 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2315 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2318 } # ac_fn_cxx_compute_int
2320 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2321 # ---------------------------------------------
2322 # Tests whether TYPE exists after having included INCLUDES, setting cache
2323 # variable VAR accordingly.
2324 ac_fn_cxx_check_type
()
2326 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2345 if ac_fn_cxx_try_compile
"$LINENO"; then :
2346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2358 if ac_fn_cxx_try_compile
"$LINENO"; then :
2363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2372 } # ac_fn_cxx_check_type
2374 # ac_fn_c_find_intX_t LINENO BITS VAR
2375 # -----------------------------------
2376 # Finds a signed integer type with width BITS, setting cache variable VAR
2378 ac_fn_c_find_intX_t
()
2380 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2382 $as_echo_n "checking for int$2_t... " >&6; }
2383 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2384 $as_echo_n "(cached) " >&6
2387 for ac_type
in int
$2_t 'int' 'long int' \
2388 'long long int' 'short int' 'signed char'; do
2389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2391 $ac_includes_default
2395 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2402 if ac_fn_cxx_try_compile
"$LINENO"; then :
2403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2409 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2410 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2417 if ac_fn_cxx_try_compile
"$LINENO"; then :
2424 eval "$3=\$ac_type" ;;
2427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2431 if test "x$as_val" = x
""no
; then :
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2443 } # ac_fn_c_find_intX_t
2445 # ac_fn_cxx_try_link LINENO
2446 # -------------------------
2447 # Try to link conftest.$ac_ext, and return whether this succeeded.
2448 ac_fn_cxx_try_link
()
2450 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2451 rm -f conftest.
$ac_objext conftest
$ac_exeext
2452 if { { ac_try
="$ac_link"
2454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_link") 2>conftest.err
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467 test $ac_status = 0; } && {
2468 test -z "$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest$ac_exeext && {
2471 test "$cross_compiling" = yes ||
2472 $as_test_x conftest$ac_exeext
2476 $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483 # interfere with the next link command; also delete a directory that is
2484 # left behind by Apple's compiler. We do this before executing the actions.
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2489 } # ac_fn_cxx_try_link
2491 # ac_fn_c_find_uintX_t LINENO BITS VAR
2492 # ------------------------------------
2493 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2495 ac_fn_c_find_uintX_t ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2499 $as_echo_n "checking for uint$2_t... " >&6; }
2500 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2501 $as_echo_n "(cached) " >&6
2504 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2505 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2508 $ac_includes_default
2512 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 eval "$3=\$ac_type" ;;
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 if test "x$as_val" = x""no; then :
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 } # ac_fn_c_find_uintX_t
2543 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2544 # ------------------------------------------------
2545 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2546 ac_fn_cxx_check_header_preproc ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2558 if ac_fn_cxx_try_cpp "$LINENO"; then :
2563 rm -f conftest.err conftest.$ac_ext
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2570 } # ac_fn_cxx_check_header_preproc
2572 # ac_fn_cxx_check_func LINENO FUNC VAR
2573 # ------------------------------------
2574 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2575 ac_fn_cxx_check_func ()
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2579 $as_echo_n "checking for $2... " >&6; }
2580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2585 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2587 #define $2 innocuous_$2
2589 /* System header to define __stub macros and hopefully few prototypes,
2590 which can conflict with char $2 (); below.
2591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2592 <limits.h> exists even on freestanding compilers. */
2595 # include <limits.h>
2597 # include <assert.h>
2602 /* Override any GCC internal prototype to avoid an error.
2603 Use char because int might match the return type of a GCC
2604 builtin and then its argument prototype would still apply. */
2609 /* The GNU C library defines this for functions which it implements
2610 to always fail with ENOSYS. Some functions are actually named
2611 something starting with __ and the normal name is an alias. */
2612 #if defined __stub_$2 || defined __stub___$2
2624 if ac_fn_cxx_try_link "$LINENO"; then :
2629 rm -f core conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634 $as_echo "$ac_res" >&6; }
2635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2637 } # ac_fn_cxx_check_func
2639 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2640 # --------------------------------------
2641 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2642 ac_fn_cxx_check_decl ()
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2646 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2648 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2650 $as_echo_n "(cached) " >&6
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2658 #ifndef $as_decl_name
2660 (void) $as_decl_use;
2662 (void) $as_decl_name;
2670 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2682 } # ac_fn_cxx_check_decl
2684 # ac_fn_c_try_link LINENO
2685 # -----------------------
2686 # Try to link conftest.$ac_ext, and return whether this succeeded.
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 rm -f conftest.$ac_objext conftest$ac_exeext
2691 if { { ac_try="$ac_link"
2693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2694 *) ac_try_echo
=$ac_try;;
2696 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698 (eval "$ac_link") 2>conftest.err
2700 if test -s conftest.err
; then
2701 grep -v '^ *+' conftest.err
>conftest.er1
2702 cat conftest.er1
>&5
2703 mv -f conftest.er1 conftest.err
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest
$ac_exeext && {
2710 test "$cross_compiling" = yes ||
2711 $as_test_x conftest
$ac_exeext
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.
$ac_ext >&5
2720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2722 # interfere with the next link command; also delete a directory that is
2723 # left behind by Apple's compiler. We do this before executing the actions.
2724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2725 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2728 } # ac_fn_c_try_link
2730 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2731 # ----------------------------------------------
2732 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2733 ac_fn_c_check_header_preproc
()
2735 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2737 $as_echo_n "checking for $2... " >&6; }
2738 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2739 $as_echo_n "(cached) " >&6
2741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2745 if ac_fn_c_try_cpp
"$LINENO"; then :
2750 rm -f conftest.err conftest.
$ac_ext
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2754 $as_echo "$ac_res" >&6; }
2755 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2757 } # ac_fn_c_check_header_preproc
2759 # ac_fn_c_check_func LINENO FUNC VAR
2760 # ----------------------------------
2761 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2762 ac_fn_c_check_func
()
2764 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2766 $as_echo_n "checking for $2... " >&6; }
2767 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2768 $as_echo_n "(cached) " >&6
2770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2772 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2774 #define $2 innocuous_$2
2776 /* System header to define __stub macros and hopefully few prototypes,
2777 which can conflict with char $2 (); below.
2778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2779 <limits.h> exists even on freestanding compilers. */
2782 # include <limits.h>
2784 # include <assert.h>
2789 /* Override any GCC internal prototype to avoid an error.
2790 Use char because int might match the return type of a GCC
2791 builtin and then its argument prototype would still apply. */
2796 /* The GNU C library defines this for functions which it implements
2797 to always fail with ENOSYS. Some functions are actually named
2798 something starting with __ and the normal name is an alias. */
2799 #if defined __stub_$2 || defined __stub___$2
2811 if ac_fn_c_try_link
"$LINENO"; then :
2816 rm -f core conftest.err conftest.
$ac_objext \
2817 conftest
$ac_exeext conftest.
$ac_ext
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2821 $as_echo "$ac_res" >&6; }
2822 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2824 } # ac_fn_c_check_func
2825 cat >config.log
<<_ACEOF
2826 This file contains any messages produced by compilers while
2827 running configure, to aid debugging if configure makes a mistake.
2829 It was created by $as_me, which was
2830 generated by GNU Autoconf 2.64. Invocation command line was
2842 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2843 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2844 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2845 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2846 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2848 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2849 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2851 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2852 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2853 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2854 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2855 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2856 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2857 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir
=.
2866 $as_echo "PATH: $as_dir"
2882 # Keep a trace of the command line.
2883 # Strip out --no-create and --no-recursion so they do not pile up.
2884 # Strip out --silent because we don't want to record it for future runs.
2885 # Also quote any args containing shell meta-characters.
2886 # Make two passes to allow for proper duplicate-argument suppression.
2890 ac_must_keep_next
=false
2896 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2897 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2898 |
-silent |
--silent |
--silen |
--sile |
--sil)
2901 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2904 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2906 as_fn_append ac_configure_args1
" '$ac_arg'"
2907 if test $ac_must_keep_next = true
; then
2908 ac_must_keep_next
=false
# Got value, back to normal.
2911 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2912 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2913 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2914 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2915 case "$ac_configure_args0 " in
2916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2919 -* ) ac_must_keep_next
=true
;;
2922 as_fn_append ac_configure_args
" '$ac_arg'"
2927 { ac_configure_args0
=; unset ac_configure_args0
;}
2928 { ac_configure_args1
=; unset ac_configure_args1
;}
2930 # When interrupted or exit'd, cleanup temporary files, and complete
2931 # config.log. We remove comments because anyway the quotes in there
2932 # would cause problems or look ugly.
2933 # WARNING: Use '\'' to represent an apostrophe within the trap.
2934 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2935 trap 'exit_status=$?
2936 # Save into config.log some information that might help in debugging.
2941 ## ---------------- ##
2942 ## Cache variables. ##
2943 ## ---------------- ##
2946 # The following way of writing the cache mishandles newlines in values,
2948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2949 eval ac_val=\$$ac_var
2953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2957 _ | IFS | as_nl) ;; #(
2958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2959 *) { eval $ac_var=; unset $ac_var;} ;;
2964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2965 *${as_nl}ac_space=\ *)
2967 "s/'\''/'\''\\\\'\'''\''/g;
2968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2979 ## ----------------- ##
2980 ## Output variables. ##
2981 ## ----------------- ##
2984 for ac_var in $ac_subst_vars
2986 eval ac_val=\$$ac_var
2988 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2990 $as_echo "$ac_var='\''$ac_val'\''"
2994 if test -n "$ac_subst_files"; then
2996 ## ------------------- ##
2997 ## File substitutions. ##
2998 ## ------------------- ##
3001 for ac_var
in $ac_subst_files
3003 eval ac_val
=\$
$ac_var
3005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3007 $as_echo "$ac_var='\''$ac_val'\''"
3012 if test -s confdefs.h; then
3022 test "$ac_signal" != 0 &&
3023 $as_echo "$as_me: caught signal $ac_signal"
3024 $as_echo "$as_me: exit $exit_status"
3026 rm -f core *.core core.conftest.* &&
3027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3030 for ac_signal
in 1 2 13 15; do
3031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3036 rm -f -r conftest
* confdefs.h
3038 $as_echo "/* confdefs.h */" > confdefs.h
3040 # Predefined preprocessor variables.
3042 cat >>confdefs.h
<<_ACEOF
3043 #define PACKAGE_NAME "$PACKAGE_NAME"
3046 cat >>confdefs.h
<<_ACEOF
3047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3050 cat >>confdefs.h
<<_ACEOF
3051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3054 cat >>confdefs.h
<<_ACEOF
3055 #define PACKAGE_STRING "$PACKAGE_STRING"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3062 cat >>confdefs.h
<<_ACEOF
3063 #define PACKAGE_URL "$PACKAGE_URL"
3067 # Let the site file select an alternate cache file if it wants to.
3068 # Prefer an explicitly selected file to automatically selected ones.
3071 if test -n "$CONFIG_SITE"; then
3072 ac_site_file1
=$CONFIG_SITE
3073 elif test "x$prefix" != xNONE
; then
3074 ac_site_file1
=$prefix/share
/config.site
3075 ac_site_file2
=$prefix/etc
/config.site
3077 ac_site_file1
=$ac_default_prefix/share
/config.site
3078 ac_site_file2
=$ac_default_prefix/etc
/config.site
3080 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3082 test "x$ac_site_file" = xNONE
&& continue
3083 if test -r "$ac_site_file"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3085 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3086 sed 's/^/| /' "$ac_site_file" >&5
3091 if test -r "$cache_file"; then
3092 # Some versions of bash will fail to source /dev/null (special
3093 # files actually), so we avoid doing that.
3094 if test -f "$cache_file"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3096 $as_echo "$as_me: loading cache $cache_file" >&6;}
3098 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3099 *) .
"./$cache_file";;
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3104 $as_echo "$as_me: creating cache $cache_file" >&6;}
3108 # Check that the precious variables saved in the cache have kept the same
3110 ac_cache_corrupted
=false
3111 for ac_var
in $ac_precious_vars; do
3112 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3113 eval ac_new_set
=\
$ac_env_${ac_var}_set
3114 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3115 eval ac_new_val
=\
$ac_env_${ac_var}_value
3116 case $ac_old_set,$ac_new_set in
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3120 ac_cache_corrupted
=: ;;
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3124 ac_cache_corrupted
=: ;;
3127 if test "x$ac_old_val" != "x$ac_new_val"; then
3128 # differences in whitespace do not lead to failure.
3129 ac_old_val_w
=`echo x $ac_old_val`
3130 ac_new_val_w
=`echo x $ac_new_val`
3131 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3134 ac_cache_corrupted
=:
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3138 eval $ac_var=\
$ac_old_val
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3141 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3143 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3146 # Pass precious variables to config.status.
3147 if test "$ac_new_set" = set; then
3149 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3150 *) ac_arg
=$ac_var=$ac_new_val ;;
3152 case " $ac_configure_args " in
3153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3154 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3158 if $ac_cache_corrupted; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3163 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3165 ## -------------------- ##
3166 ## Main body of script. ##
3167 ## -------------------- ##
3170 ac_cpp
='$CPP $CPPFLAGS'
3171 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3180 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3183 gcc_version
=`cat $srcdir/BASE-VER`
3185 # Determine the host, build, and target systems
3187 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3188 for ac_t
in install-sh
install.sh shtool
; do
3189 if test -f "$ac_dir/$ac_t"; then
3191 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3196 if test -z "$ac_aux_dir"; then
3197 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3200 # These three variables are undocumented and unsupported,
3201 # and are intended to be withdrawn in a future Autoconf release.
3202 # They can cause serious problems if a builder's source tree is in a directory
3203 # whose full name contains unusual characters.
3204 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3205 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3206 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3209 # Make sure we can run config.sub.
3210 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3211 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3214 $as_echo_n "checking build system type... " >&6; }
3215 if test "${ac_cv_build+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3218 ac_build_alias
=$build_alias
3219 test "x$ac_build_alias" = x
&&
3220 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3221 test "x$ac_build_alias" = x
&&
3222 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3223 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3224 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3228 $as_echo "$ac_cv_build" >&6; }
3229 case $ac_cv_build in
3231 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3234 ac_save_IFS
=$IFS; IFS
='-'
3240 # Remember, the first character of IFS is used to create $*,
3241 # except with old shells:
3244 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3248 $as_echo_n "checking host system type... " >&6; }
3249 if test "${ac_cv_host+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3252 if test "x$host_alias" = x
; then
3253 ac_cv_host
=$ac_cv_build
3255 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3256 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3261 $as_echo "$ac_cv_host" >&6; }
3264 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3267 ac_save_IFS
=$IFS; IFS
='-'
3273 # Remember, the first character of IFS is used to create $*,
3274 # except with old shells:
3277 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3281 $as_echo_n "checking target system type... " >&6; }
3282 if test "${ac_cv_target+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3285 if test "x$target_alias" = x
; then
3286 ac_cv_target
=$ac_cv_host
3288 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3289 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3294 $as_echo "$ac_cv_target" >&6; }
3295 case $ac_cv_target in
3297 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3299 target
=$ac_cv_target
3300 ac_save_IFS
=$IFS; IFS
='-'
3306 # Remember, the first character of IFS is used to create $*,
3307 # except with old shells:
3310 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3313 # The aliases save the names the user supplied, while $host etc.
3314 # will get canonicalized.
3315 test -n "$target_alias" &&
3316 test "$program_prefix$program_suffix$program_transform_name" = \
3318 program_prefix
=${target_alias}-
3320 # Determine the noncanonical target name, for directory use.
3321 case ${build_alias} in
3322 "") build_noncanonical
=${build} ;;
3323 *) build_noncanonical
=${build_alias} ;;
3326 case ${host_alias} in
3327 "") host_noncanonical
=${build_noncanonical} ;;
3328 *) host_noncanonical
=${host_alias} ;;
3331 case ${target_alias} in
3332 "") target_noncanonical
=${host_noncanonical} ;;
3333 *) target_noncanonical
=${target_alias} ;;
3339 # Used for constructing correct paths for offload compilers.
3340 real_target_noncanonical
=${target_noncanonical}
3343 # Determine the target- and build-specific subdirectories
3345 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3346 # have matching libraries, they should use host libraries: Makefile.tpl
3347 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3348 # However, they still use the build modules, because the corresponding
3349 # host modules (e.g. bison) are only built for the host when bootstrap
3351 # - build_subdir is where we find build modules, and never changes.
3352 # - build_libsubdir is where we find build libraries, and can be overridden.
3354 # Prefix 'build-' so this never conflicts with target_subdir.
3355 build_subdir
="build-${build_noncanonical}"
3357 # Check whether --with-build-libsubdir was given.
3358 if test "${with_build_libsubdir+set}" = set; then :
3359 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3361 build_libsubdir
="$build_subdir"
3364 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3365 if ( test $srcdir = .
&& test -d gcc
) \
3366 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3367 host_subdir
="host-${host_noncanonical}"
3372 target_subdir
=${target_noncanonical}
3375 # Set program_transform_name
3376 test "$program_prefix" != NONE
&&
3377 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3378 # Use a double $ so make ignores it.
3379 test "$program_suffix" != NONE
&&
3380 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3381 # Double any \ or $.
3382 # By default was `s,x,x', remove it if useless.
3383 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3384 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3387 # Check for bogus environment variables.
3388 # Test if LIBRARY_PATH contains the notation for the current directory
3389 # since this would lead to problems installing/building glibc.
3390 # LIBRARY_PATH contains the current directory if one of the following
3392 # - one of the terminals (":" and ";") is the first or last sign
3393 # - two terminals occur directly after each other
3394 # - the path contains an element with a dot in it
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3396 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3397 case ${LIBRARY_PATH} in
3398 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3399 library_path_setting
="contains current directory"
3402 library_path_setting
="ok"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3406 $as_echo "$library_path_setting" >&6; }
3407 if test "$library_path_setting" != "ok"; then
3409 *** LIBRARY_PATH shouldn't contain the current directory when
3410 *** building gcc. Please change the environment variable
3411 *** and run configure again." "$LINENO" 5
3414 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3415 # since this would lead to problems installing/building glibc.
3416 # GCC_EXEC_PREFIX contains the current directory if one of the following
3418 # - one of the terminals (":" and ";") is the first or last sign
3419 # - two terminals occur directly after each other
3420 # - the path contains an element with a dot in it
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3422 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3423 case ${GCC_EXEC_PREFIX} in
3424 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3425 gcc_exec_prefix_setting
="contains current directory"
3428 gcc_exec_prefix_setting
="ok"
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3432 $as_echo "$gcc_exec_prefix_setting" >&6; }
3433 if test "$gcc_exec_prefix_setting" != "ok"; then
3435 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3436 *** building gcc. Please change the environment variable
3437 *** and run configure again." "$LINENO" 5
3444 # Specify the local prefix
3447 # Check whether --with-local-prefix was given.
3448 if test "${with_local_prefix+set}" = set; then :
3449 withval
=$with_local_prefix; case "${withval}" in
3450 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3452 *) local_prefix
=$with_local_prefix ;;
3457 # Default local prefix if it is empty
3458 if test x
$local_prefix = x
; then
3459 local_prefix
=/usr
/local
3463 # Check whether --with-native-system-header-dir was given.
3464 if test "${with_native_system_header_dir+set}" = set; then :
3465 withval
=$with_native_system_header_dir;
3466 case ${with_native_system_header_dir} in
3467 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3468 /* |
[A-Za-z
]:[\\/]*) ;;
3469 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3471 configured_native_system_header_dir
="${withval}"
3474 configured_native_system_header_dir
=
3479 # Check whether --with-build-sysroot was given.
3480 if test "${with_build_sysroot+set}" = set; then :
3481 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3482 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3485 SYSROOT_CFLAGS_FOR_TARGET
=
3490 if test "x$prefix" = xNONE
; then
3491 test_prefix
=/usr
/local
3495 if test "x$exec_prefix" = xNONE
; then
3496 test_exec_prefix
=$test_prefix
3498 test_exec_prefix
=$exec_prefix
3502 # Check whether --with-sysroot was given.
3503 if test "${with_sysroot+set}" = set; then :
3504 withval
=$with_sysroot;
3505 case ${with_sysroot} in
3507 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3509 case ${with_sysroot} in
3510 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3511 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3514 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3515 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3517 case ${TARGET_SYSTEM_ROOT} in
3518 "${test_prefix}"|
"${test_prefix}/"*|\
3519 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3520 '${prefix}'|
'${prefix}/'*|\
3521 '${exec_prefix}'|
'${exec_prefix}/'*)
3522 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3523 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3530 TARGET_SYSTEM_ROOT_DEFINE
=
3531 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3539 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3540 # passed in by the toplevel make and thus we'd get different behavior
3541 # depending on where we built the sources.
3542 gcc_gxx_include_dir
=
3543 # Specify the g++ header file directory
3545 # Check whether --with-gxx-include-dir was given.
3546 if test "${with_gxx_include_dir+set}" = set; then :
3547 withval
=$with_gxx_include_dir; case "${withval}" in
3548 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3550 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3555 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3556 if test x
${gcc_gxx_include_dir} = x
; then
3557 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3558 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3560 libstdcxx_incdir
='include/c++/$(version)'
3561 if test x
$host != x
$target; then
3562 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3564 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3568 gcc_gxx_include_dir_add_sysroot
=0
3569 if test "${with_sysroot+set}" = set; then
3570 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3571 if test "${gcc_gxx_without_sysroot}"; then
3572 if test x
${with_sysroot} != x
/; then
3573 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3575 gcc_gxx_include_dir_add_sysroot
=1
3580 # Check whether --with-cpp_install_dir was given.
3581 if test "${with_cpp_install_dir+set}" = set; then :
3582 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3583 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3584 elif test x
$withval != xno
; then
3585 cpp_install_dir
=$withval
3590 # We would like to our source tree to be readonly. However when releases or
3591 # pre-releases are generated, the flex/bison generated files as well as the
3592 # various formats of manuals need to be included along with the rest of the
3593 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3597 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3598 # Check whether --enable-generated-files-in-srcdir was given.
3599 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3600 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3602 generated_files_in_srcdir
=no
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3607 $as_echo "$generated_files_in_srcdir" >&6; }
3609 if test "$generated_files_in_srcdir" = "yes"; then
3616 # -------------------
3617 # Find default linker
3618 # -------------------
3622 # Check whether --with-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then :
3624 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3630 # With pre-defined ld
3632 # Check whether --with-ld was given.
3633 if test "${with_ld+set}" = set; then :
3634 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3637 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3638 if test ! -x "$DEFAULT_LINKER"; then
3639 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3640 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3644 cat >>confdefs.h
<<_ACEOF
3645 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3651 $as_echo_n "checking whether a default linker was specified... " >&6; }
3652 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3653 if test x
"$gnu_ld_flag" = x
"no"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3655 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3658 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3665 # With demangler in GNU ld
3667 # Check whether --with-demangler-in-ld was given.
3668 if test "${with_demangler_in_ld+set}" = set; then :
3669 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3675 # ----------------------
3676 # Find default assembler
3677 # ----------------------
3681 # Check whether --with-gnu-as was given.
3682 if test "${with_gnu_as+set}" = set; then :
3683 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3690 # Check whether --with-as was given.
3691 if test "${with_as+set}" = set; then :
3692 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3695 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3696 if test ! -x "$DEFAULT_ASSEMBLER"; then
3697 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3698 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3702 cat >>confdefs.h
<<_ACEOF
3703 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3709 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3710 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3711 if test x
"$gas_flag" = x
"no"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3713 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3716 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3727 # If a non-executable a.out is present (e.g. created by GNU as above even if
3728 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3729 # file, even when creating an executable, so an execution test fails.
3730 # Remove possible default executable files to avoid this.
3732 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3733 # Autoconf includes it.
3734 rm -f a.out a.exe b.out
3736 # Find the native compiler
3738 ac_cpp
='$CPP $CPPFLAGS'
3739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_CC+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC
="$CC" # Let the user override the test.
3753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir
=.
3758 for ac_exec_ext
in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3781 if test -z "$ac_cv_prog_CC"; then
3783 # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc
; ac_word
=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir
=.
3798 for ac_exec_ext
in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_ac_ct_CC
="gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3819 if test "x$ac_ct_CC" = x
; then
3822 case $cross_compiling:$ac_tool_warned in
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned
=yes ;;
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC
="$CC" # Let the user override the test.
3846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir
=.
3851 for ac_exec_ext
in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3875 if test -z "$CC"; then
3876 # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc
; ac_word
=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC
="$CC" # Let the user override the test.
3887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3891 test -z "$as_dir" && as_dir
=.
3892 for ac_exec_ext
in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected
=yes
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy
$ac_cv_prog_CC
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3915 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog
in cl.exe
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_CC+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC
="$CC" # Let the user override the test.
3945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir
=.
3950 for ac_exec_ext
in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3972 test -n "$CC" && break
3975 if test -z "$CC"; then
3977 for ac_prog
in cl.exe
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy
$ac_prog; ac_word
=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_exec_ext
in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_ac_ct_CC
="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$ac_ct_CC" && break
4019 if test "x$ac_ct_CC" = x
; then
4022 case $cross_compiling:$ac_tool_warned in
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned
=yes ;;
4035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error
"no acceptable C compiler found in \$PATH
4038 See \`config.log' for more details." "$LINENO" 5; }
4040 # Provide some information about the compiler.
4041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4044 for ac_option
in --version -v -V -qversion; do
4045 { { ac_try
="$ac_compiler $ac_option >&5"
4047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4054 if test -s conftest.err; then
4056 ... rest of stderr output deleted ...
4057 10q' conftest.err >conftest.er1
4058 cat conftest.er1 >&5
4059 rm -f conftest.er1 conftest.err
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4076 ac_clean_files_save=$ac_clean_files
4077 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4078 # Try to create an executable without -o first, disregard a.out.
4079 # It will help us diagnose broken compilers, and finding out an intuition
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4082 $as_echo_n "checking for C compiler default output file name... " >&6; }
4083 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4085 # The possible output files:
4086 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4089 for ac_file in $ac_files
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4093 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4098 if { { ac_try="$ac_link_default"
4100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4101 *) ac_try_echo
=$ac_try;;
4103 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_link_default") 2>&5
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; then :
4109 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4110 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4111 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4112 # so that the user can short-circuit this test for compilers unknown to
4114 for ac_file
in $ac_files ''
4116 test -f "$ac_file" ||
continue
4118 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4121 # We found the default executable, but exeext='' is most
4125 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4127 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4129 # We set ac_cv_exeext here because the later test for it is not
4130 # safe: cross compilers may not add the suffix if given an `-o'
4131 # argument, so we may need to know it at that point already.
4132 # Even if this section looks crufty: it has the advantage of
4139 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4145 $as_echo "$ac_file" >&6; }
4146 if test -z "$ac_file"; then :
4147 $as_echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.
$ac_ext >&5
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 { as_fn_set_status
77
4153 as_fn_error
"C compiler cannot create executables
4154 See \`config.log' for more details." "$LINENO" 5; }; }
4156 ac_exeext
=$ac_cv_exeext
4158 # Check that the compiler produces executables we can run. If not, either
4159 # the compiler is broken, or we cross compile.
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4161 $as_echo_n "checking whether the C compiler works... " >&6; }
4162 # If not cross compiling, check that we can run a simple program.
4163 if test "$cross_compiling" != yes; then
4164 if { ac_try
='./$ac_file'
4165 { { case "(($ac_try" in
4166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4170 $as_echo "$ac_try_echo"; } >&5
4171 (eval "$ac_try") 2>&5
4173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174 test $ac_status = 0; }; }; then
4177 if test "$cross_compiling" = maybe; then
4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error "cannot run C compiled programs.
4183 If you meant to cross compile
, use \
`--host'.
4184 See \`config.log
' for more details." "$LINENO" 5; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189 $as_echo "yes" >&6; }
4191 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4192 ac_clean_files=$ac_clean_files_save
4193 # Check that the compiler produces executables we can run. If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196 $as_echo_n "checking whether we are cross compiling... " >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4198 $as_echo "$cross_compiling" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4201 $as_echo_n "checking for suffix of executables... " >&6; }
4202 if { { ac_try="$ac_link"
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209 (eval "$ac_link") 2>&5
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }; then :
4213 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4214 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4215 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4217 for ac_file
in conftest.exe conftest conftest.
*; do
4218 test -f "$ac_file" ||
continue
4220 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4221 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4230 See \`config.log' for more details." "$LINENO" 5; }
4232 rm -f conftest
$ac_cv_exeext
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4234 $as_echo "$ac_cv_exeext" >&6; }
4236 rm -f conftest.
$ac_ext
4237 EXEEXT
=$ac_cv_exeext
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4240 $as_echo_n "checking for suffix of object files... " >&6; }
4241 if test "${ac_cv_objext+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4255 rm -f conftest.o conftest.obj
4256 if { { ac_try
="$ac_compile"
4258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262 $as_echo "$ac_try_echo"; } >&5
4263 (eval "$ac_compile") 2>&5
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }; then :
4267 for ac_file in conftest.o conftest.obj conftest.*; do
4268 test -f "$ac_file" || continue;
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error "cannot compute suffix of object files
: cannot compile
4282 See \
`config.log' for more details." "$LINENO" 5; }
4284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4287 $as_echo "$ac_cv_objext" >&6; }
4288 OBJEXT=$ac_cv_objext
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4309 if ac_fn_c_try_compile "$LINENO"; then :
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320 if test $ac_compiler_gnu = yes; then
4325 ac_test_CFLAGS=${CFLAGS+set}
4326 ac_save_CFLAGS=$CFLAGS
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4329 if test "${ac_cv_prog_cc_g+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4347 if ac_fn_c_try_compile "$LINENO"; then :
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4362 if ac_fn_c_try_compile "$LINENO"; then :
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4378 if ac_fn_c_try_compile "$LINENO"; then :
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_c_werror_flag=$ac_save_c_werror_flag
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389 $as_echo "$ac_cv_prog_cc_g" >&6; }
4390 if test "$ac_test_CFLAGS" = set; then
4391 CFLAGS=$ac_save_CFLAGS
4392 elif test $ac_cv_prog_cc_g = yes; then
4393 if test "$GCC" = yes; then
4399 if test "$GCC" = yes; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4410 ac_cv_prog_cc_c89=no
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4416 #include <sys/types.h>
4417 #include <sys/stat.h>
4418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4419 struct buf { int x; };
4420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421 static char *e (p, i)
4427 static char *f (char * (*g) (char **, int), char **p, ...)
4432 s = g (p, va_arg (v,int));
4437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4438 function prototypes and stuff, but not '\xHH' hex character constants.
4439 These don't provoke an error unfortunately, instead are silently treated
4440 as 'x'. The following induces an error, until -std is added to get
4441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4442 array size at least. It's necessary to write '\x00'==0 to get something
4443 that's true only with -std. */
4444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447 inside strings and character constants. */
4449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4468 CC="$ac_save_CC $ac_arg"
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_c89=$ac_arg
4472 rm -f core conftest.err conftest.$ac_objext
4473 test "x$ac_cv_prog_cc_c89" != "xno" && break
4475 rm -f conftest.$ac_ext
4480 case "x$ac_cv_prog_cc_c89" in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483 $as_echo "none needed" >&6; } ;;
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486 $as_echo "unsupported" >&6; } ;;
4488 CC="$CC $ac_cv_prog_cc_c89"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4492 if test "x$ac_cv_prog_cc_c89" != xno; then :
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503 ac_cpp='$CXXCPP $CPPFLAGS'
4504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4507 if test -z "$CXX"; then
4508 if test -n "$CCC"; then
4511 if test -n "$ac_tool_prefix"; then
4512 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if test "${ac_cv_prog_CXX+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4521 if test -n "$CXX"; then
4522 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 if test -n "$CXX"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4544 $as_echo "$CXX" >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4551 test -n "$CXX" && break
4554 if test -z "$CXX"; then
4556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4565 if test -n "$ac_ct_CXX"; then
4566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_ac_ct_CXX="$ac_prog"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4586 if test -n "$ac_ct_CXX"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4588 $as_echo "$ac_ct_CXX" >&6; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4595 test -n "$ac_ct_CXX" && break
4598 if test "x$ac_ct_CXX" = x; then
4601 case $cross_compiling:$ac_tool_warned in
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4613 # Provide some information about the compiler.
4614 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4617 for ac_option in --version -v -V -qversion; do
4618 { { ac_try="$ac_compiler $ac_option >&5"
4620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4621 *) ac_try_echo
=$ac_try;;
4623 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4627 if test -s conftest.err
; then
4629 ... rest of stderr output deleted ...
4630 10q' conftest.err
>conftest.er1
4631 cat conftest.er1
>&5
4632 rm -f conftest.er1 conftest.err
4634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4635 test $ac_status = 0; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4639 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4640 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4657 if ac_fn_cxx_try_compile
"$LINENO"; then :
4662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4663 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4667 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4668 if test $ac_compiler_gnu = yes; then
4673 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4674 ac_save_CXXFLAGS
=$CXXFLAGS
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4676 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4677 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4680 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4681 ac_cxx_werror_flag
=yes
4684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4695 if ac_fn_cxx_try_compile
"$LINENO"; then :
4696 ac_cv_prog_cxx_g
=yes
4699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4710 if ac_fn_cxx_try_compile
"$LINENO"; then :
4713 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4726 if ac_fn_cxx_try_compile
"$LINENO"; then :
4727 ac_cv_prog_cxx_g
=yes
4729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4734 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4737 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4738 if test "$ac_test_CXXFLAGS" = set; then
4739 CXXFLAGS
=$ac_save_CXXFLAGS
4740 elif test $ac_cv_prog_cxx_g = yes; then
4741 if test "$GXX" = yes; then
4747 if test "$GXX" = yes; then
4754 ac_cpp
='$CPP $CPPFLAGS'
4755 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4764 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 if test -n "$GNATBIND"; then
4771 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir
=.
4778 for ac_exec_ext
in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 GNATBIND
=$ac_cv_prog_GNATBIND
4791 if test -n "$GNATBIND"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4793 $as_echo "$GNATBIND" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4801 if test -z "$ac_cv_prog_GNATBIND"; then
4802 ac_ct_GNATBIND
=$GNATBIND
4803 # Extract the first word of "gnatbind", so it can be a program name with args.
4804 set dummy gnatbind
; ac_word
=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4810 if test -n "$ac_ct_GNATBIND"; then
4811 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir
=.
4818 for ac_exec_ext
in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4831 if test -n "$ac_ct_GNATBIND"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4833 $as_echo "$ac_ct_GNATBIND" >&6; }
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4839 if test "x$ac_ct_GNATBIND" = x
; then
4842 case $cross_compiling:$ac_tool_warned in
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned
=yes ;;
4848 GNATBIND
=$ac_ct_GNATBIND
4851 GNATBIND
="$ac_cv_prog_GNATBIND"
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4856 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4862 if test -n "$GNATMAKE"; then
4863 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir
=.
4870 for ac_exec_ext
in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 GNATMAKE
=$ac_cv_prog_GNATMAKE
4883 if test -n "$GNATMAKE"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4885 $as_echo "$GNATMAKE" >&6; }
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4893 if test -z "$ac_cv_prog_GNATMAKE"; then
4894 ac_ct_GNATMAKE
=$GNATMAKE
4895 # Extract the first word of "gnatmake", so it can be a program name with args.
4896 set dummy gnatmake
; ac_word
=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4902 if test -n "$ac_ct_GNATMAKE"; then
4903 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir
=.
4910 for ac_exec_ext
in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4923 if test -n "$ac_ct_GNATMAKE"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4925 $as_echo "$ac_ct_GNATMAKE" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4931 if test "x$ac_ct_GNATMAKE" = x
; then
4934 case $cross_compiling:$ac_tool_warned in
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938 ac_tool_warned
=yes ;;
4940 GNATMAKE
=$ac_ct_GNATMAKE
4943 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4947 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4948 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4951 cat >conftest.adb
<<EOF
4952 procedure conftest is begin null; end conftest;
4954 acx_cv_cc_gcc_supports_ada
=no
4955 # There is a bug in old released versions of GCC which causes the
4956 # driver to exit successfully when the appropriate language module
4957 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4958 # Therefore we must check for the error message as well as an
4959 # unsuccessful exit.
4960 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4961 # given a .adb file, but produce no object file. So we must check
4962 # if an object file was really produced to guard against this.
4963 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4964 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4965 acx_cv_cc_gcc_supports_ada
=yes
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4970 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4972 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4979 # Do configure tests with the C++ compiler, since that's what we build with.
4981 ac_cpp
='$CXXCPP $CPPFLAGS'
4982 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4987 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4988 # optimizations to be activated explicitly by the toplevel.
4990 */prev-gcc
/xgcc
*) ;;
4991 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4992 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4997 # Determine PICFLAG for target gnatlib.
5003 # PIC is the default on some targets or must not be used.
5005 # For darwin, common symbols are not allowed in MH_DYLIB files
5007 # If we are using a compiler supporting mdynamic-no-pic
5008 # and the option has been tested as safe to add, then cancel
5009 # it here, since the code generated is incompatible with shared
5011 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5012 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5016 # PIC is the default.
5019 # PIC is the default for 64-bit PA HP-UX.
5021 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5023 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5025 i
[34567]86-*-interix[3-9]*)
5026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5027 # Instead, we relocate shared libraries at runtime.
5029 i
[34567]86-*-nto-qnx*)
5030 # QNX uses GNU C++, but need to define -shared option too, otherwise
5032 PICFLAG_FOR_TARGET
='-fPIC -shared'
5034 i
[34567]86-pc-msdosdjgpp*)
5035 # DJGPP does not support shared libraries at all.
5038 # On IA64 HP-UX, PIC is the default but the pic flag
5039 # sets the default TLS model and affects inlining.
5040 PICFLAG_FOR_TARGET
=-fPIC
5043 # PIC is the default.
5045 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5046 # All AIX code is PIC.
5049 # Some targets support both -fPIC and -fpic, but prefer the latter.
5051 i
[34567]86-*-* | x86_64-
*-*)
5052 PICFLAG_FOR_TARGET
=-fpic
5054 # FIXME: Override -fPIC default in libgcc only?
5055 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5056 PICFLAG_FOR_TARGET
=-fpic
5058 # FIXME: Simplify to sh*-*-netbsd*?
5059 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5060 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5061 PICFLAG_FOR_TARGET
=-fpic
5063 # Default to -fPIC unless specified otherwise.
5065 PICFLAG_FOR_TARGET
=-fPIC
5069 # If the user explicitly uses -fpic/-fPIC, keep that.
5070 case "${CFLAGS_FOR_TARGET}" in
5072 PICFLAG_FOR_TARGET
=-fpic
5075 PICFLAG_FOR_TARGET
=-fPIC
5081 # -------------------------
5082 # Check C compiler features
5083 # -------------------------
5087 ac_cpp
='$CXXCPP $CPPFLAGS'
5088 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5092 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5093 if test -z "$CXXCPP"; then
5094 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5097 # Double quotes because CXXCPP needs to be expanded
5098 for CXXCPP
in "$CXX -E" "/lib/cpp"
5101 for ac_cxx_preproc_warn_flag
in '' yes
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5112 # include <limits.h>
5114 # include <assert.h>
5118 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5121 # Broken: fails on valid input.
5124 rm -f conftest.err conftest.
$ac_ext
5126 # OK, works on sane cases. Now check whether nonexistent headers
5127 # can be detected and how.
5128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <ac_nonexistent.h>
5132 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5133 # Broken: success on invalid input.
5136 # Passes both tests.
5140 rm -f conftest.err conftest.
$ac_ext
5143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144 rm -f conftest.err conftest.
$ac_ext
5145 if $ac_preproc_ok; then :
5150 ac_cv_prog_CXXCPP
=$CXXCPP
5153 CXXCPP
=$ac_cv_prog_CXXCPP
5155 ac_cv_prog_CXXCPP
=$CXXCPP
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5158 $as_echo "$CXXCPP" >&6; }
5160 for ac_cxx_preproc_warn_flag
in '' yes
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5171 # include <limits.h>
5173 # include <assert.h>
5177 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5180 # Broken: fails on valid input.
5183 rm -f conftest.err conftest.
$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <ac_nonexistent.h>
5191 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5192 # Broken: success on invalid input.
5195 # Passes both tests.
5199 rm -f conftest.err conftest.
$ac_ext
5202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203 rm -f conftest.err conftest.
$ac_ext
5204 if $ac_preproc_ok; then :
5207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5209 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5210 See \`config.log' for more details." "$LINENO" 5; }
5214 ac_cpp
='$CXXCPP $CPPFLAGS'
5215 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5222 if test "${ac_cv_path_GREP+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -z "$GREP"; then
5226 ac_path_GREP_found
=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5229 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5232 test -z "$as_dir" && as_dir
=.
5233 for ac_prog
in grep ggrep
; do
5234 for ac_exec_ext
in '' $ac_executable_extensions; do
5235 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5236 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5237 # Check for GNU ac_path_GREP and select it if it is found.
5238 # Check for GNU $ac_path_GREP
5239 case `"$ac_path_GREP" --version 2>&1` in
5241 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5244 $as_echo_n 0123456789 >"conftest.in"
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'GREP' >> "conftest.nl"
5251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5252 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5253 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_GREP
="$ac_path_GREP"
5257 ac_path_GREP_max
=$ac_count
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5262 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5265 $ac_path_GREP_found && break 3
5270 if test -z "$ac_cv_path_GREP"; then
5271 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5274 ac_cv_path_GREP
=$GREP
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5279 $as_echo "$ac_cv_path_GREP" >&6; }
5280 GREP
="$ac_cv_path_GREP"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5284 $as_echo_n "checking for egrep... " >&6; }
5285 if test "${ac_cv_path_EGREP+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5288 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5289 then ac_cv_path_EGREP
="$GREP -E"
5291 if test -z "$EGREP"; then
5292 ac_path_EGREP_found
=false
5293 # Loop through the user's path and test for each of PROGNAME-LIST
5294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5295 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5298 test -z "$as_dir" && as_dir
=.
5299 for ac_prog
in egrep; do
5300 for ac_exec_ext
in '' $ac_executable_extensions; do
5301 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5303 # Check for GNU ac_path_EGREP and select it if it is found.
5304 # Check for GNU $ac_path_EGREP
5305 case `"$ac_path_EGREP" --version 2>&1` in
5307 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5310 $as_echo_n 0123456789 >"conftest.in"
5313 cat "conftest.in" "conftest.in" >"conftest.tmp"
5314 mv "conftest.tmp" "conftest.in"
5315 cp "conftest.in" "conftest.nl"
5316 $as_echo 'EGREP' >> "conftest.nl"
5317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5318 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5319 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5321 # Best one so far, save it but keep looking for a better one
5322 ac_cv_path_EGREP
="$ac_path_EGREP"
5323 ac_path_EGREP_max
=$ac_count
5325 # 10*(2^10) chars as input seems more than enough
5326 test $ac_count -gt 10 && break
5328 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5331 $ac_path_EGREP_found && break 3
5336 if test -z "$ac_cv_path_EGREP"; then
5337 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5340 ac_cv_path_EGREP
=$EGREP
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5346 $as_echo "$ac_cv_path_EGREP" >&6; }
5347 EGREP
="$ac_cv_path_EGREP"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5351 $as_echo_n "checking for ANSI C header files... " >&6; }
5352 if test "${ac_cv_header_stdc+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5370 if ac_fn_cxx_try_compile
"$LINENO"; then :
5371 ac_cv_header_stdc
=yes
5373 ac_cv_header_stdc
=no
5375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5377 if test $ac_cv_header_stdc = yes; then
5378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385 $EGREP "memchr" >/dev
/null
2>&1; then :
5388 ac_cv_header_stdc
=no
5394 if test $ac_cv_header_stdc = yes; then
5395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev
/null
2>&1; then :
5405 ac_cv_header_stdc
=no
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then :
5416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5443 if ac_fn_cxx_try_run
"$LINENO"; then :
5446 ac_cv_header_stdc
=no
5448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5455 $as_echo "$ac_cv_header_stdc" >&6; }
5456 if test $ac_cv_header_stdc = yes; then
5458 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5463 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5464 inttypes.h stdint.h unistd.h
5466 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5469 eval as_val
=\$
$as_ac_Header
5470 if test "x$as_val" = x
""yes; then :
5471 cat >>confdefs.h
<<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5481 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5482 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5489 if test "$MINIX" = yes; then
5491 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5494 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5497 $as_echo "#define _MINIX 1" >>confdefs.h
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5503 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5504 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 # define __EXTENSIONS__ 1
5511 $ac_includes_default
5520 if ac_fn_cxx_try_compile
"$LINENO"; then :
5521 ac_cv_safe_to_define___extensions__
=yes
5523 ac_cv_safe_to_define___extensions__
=no
5525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5528 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5529 test $ac_cv_safe_to_define___extensions__ = yes &&
5530 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5532 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5534 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5536 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5538 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5542 ac_cpp
='$CPP $CPPFLAGS'
5543 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5547 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5548 # On Suns, sometimes $CPP names a directory.
5549 if test -n "$CPP" && test -d "$CPP"; then
5552 if test -z "$CPP"; then
5553 if test "${ac_cv_prog_CPP+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 # Double quotes because CPP needs to be expanded
5557 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5560 for ac_c_preproc_warn_flag
in '' yes
5562 # Use a header file that comes with gcc, so configuring glibc
5563 # with a fresh cross-compiler works.
5564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 # <limits.h> exists even on freestanding compilers.
5566 # On the NeXT, cc -E runs the code through the compiler's parser,
5567 # not just through cpp. "Syntax error" is here to catch this case.
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5571 # include <limits.h>
5573 # include <assert.h>
5577 if ac_fn_c_try_cpp
"$LINENO"; then :
5580 # Broken: fails on valid input.
5583 rm -f conftest.err conftest.
$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ac_nonexistent.h>
5591 if ac_fn_c_try_cpp
"$LINENO"; then :
5592 # Broken: success on invalid input.
5595 # Passes both tests.
5599 rm -f conftest.err conftest.
$ac_ext
5602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603 rm -f conftest.err conftest.
$ac_ext
5604 if $ac_preproc_ok; then :
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5617 $as_echo "$CPP" >&6; }
5619 for ac_c_preproc_warn_flag
in '' yes
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5630 # include <limits.h>
5632 # include <assert.h>
5636 if ac_fn_c_try_cpp
"$LINENO"; then :
5639 # Broken: fails on valid input.
5642 rm -f conftest.err conftest.
$ac_ext
5644 # OK, works on sane cases. Now check whether nonexistent headers
5645 # can be detected and how.
5646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <ac_nonexistent.h>
5650 if ac_fn_c_try_cpp
"$LINENO"; then :
5651 # Broken: success on invalid input.
5654 # Passes both tests.
5658 rm -f conftest.err conftest.
$ac_ext
5661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5662 rm -f conftest.err conftest.
$ac_ext
5663 if $ac_preproc_ok; then :
5666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5668 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5669 See \`config.log' for more details." "$LINENO" 5; }
5673 ac_cpp
='$CXXCPP $CPPFLAGS'
5674 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5679 $as_echo_n "checking for inline... " >&6; }
5680 if test "${ac_cv_c_inline+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5684 for ac_kw
in inline __inline__ __inline
; do
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5689 static $ac_kw foo_t static_foo () {return 0; }
5690 $ac_kw foo_t foo () {return 0; }
5694 if ac_fn_cxx_try_compile
"$LINENO"; then :
5695 ac_cv_c_inline
=$ac_kw
5697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5698 test "$ac_cv_c_inline" != no
&& break
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5703 $as_echo "$ac_cv_c_inline" >&6; }
5705 case $ac_cv_c_inline in
5708 case $ac_cv_c_inline in
5710 *) ac_val
=$ac_cv_c_inline;;
5712 cat >>confdefs.h
<<_ACEOF
5714 #define inline $ac_val
5721 # Check whether --enable-largefile was given.
5722 if test "${enable_largefile+set}" = set; then :
5723 enableval
=$enable_largefile;
5726 if test "$enable_largefile" != no
; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5729 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5730 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5733 ac_cv_sys_largefile_CC
=no
5734 if test "$GCC" != yes; then
5737 # IRIX 6.2 and later do not support large files by default,
5738 # so use the C compiler's -n32 option if that helps.
5739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <sys/types.h>
5742 /* Check that off_t can represent 2**63 - 1 correctly.
5743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5744 since some C++ compilers masquerading as C compilers
5745 incorrectly reject 9223372036854775807. */
5746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5748 && LARGE_OFF_T % 2147483647 == 1)
5758 if ac_fn_cxx_try_compile
"$LINENO"; then :
5761 rm -f core conftest.err conftest.
$ac_objext
5763 if ac_fn_cxx_try_compile
"$LINENO"; then :
5764 ac_cv_sys_largefile_CC
=' -n32'; break
5766 rm -f core conftest.err conftest.
$ac_objext
5770 rm -f conftest.
$ac_ext
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5774 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5775 if test "$ac_cv_sys_largefile_CC" != no
; then
5776 CC
=$CC$ac_cv_sys_largefile_CC
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5780 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5781 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5804 if ac_fn_cxx_try_compile
"$LINENO"; then :
5805 ac_cv_sys_file_offset_bits
=no
; break
5807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #define _FILE_OFFSET_BITS 64
5811 #include <sys/types.h>
5812 /* Check that off_t can represent 2**63 - 1 correctly.
5813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5814 since some C++ compilers masquerading as C compilers
5815 incorrectly reject 9223372036854775807. */
5816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5818 && LARGE_OFF_T % 2147483647 == 1)
5828 if ac_fn_cxx_try_compile
"$LINENO"; then :
5829 ac_cv_sys_file_offset_bits
=64; break
5831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 ac_cv_sys_file_offset_bits
=unknown
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5837 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5838 case $ac_cv_sys_file_offset_bits in #(
5841 cat >>confdefs.h
<<_ACEOF
5842 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5847 if test $ac_cv_sys_file_offset_bits = unknown
; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5849 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5850 if test "${ac_cv_sys_large_files+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <sys/types.h>
5857 /* Check that off_t can represent 2**63 - 1 correctly.
5858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5859 since some C++ compilers masquerading as C compilers
5860 incorrectly reject 9223372036854775807. */
5861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5863 && LARGE_OFF_T % 2147483647 == 1)
5873 if ac_fn_cxx_try_compile
"$LINENO"; then :
5874 ac_cv_sys_large_files
=no
; break
5876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #define _LARGE_FILES 1
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5897 if ac_fn_cxx_try_compile
"$LINENO"; then :
5898 ac_cv_sys_large_files
=1; break
5900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5901 ac_cv_sys_large_files
=unknown
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5906 $as_echo "$ac_cv_sys_large_files" >&6; }
5907 case $ac_cv_sys_large_files in #(
5910 cat >>confdefs.h
<<_ACEOF
5911 #define _LARGE_FILES $ac_cv_sys_large_files
5920 # sizeof(char) is 1 by definition.
5921 # The cast to long int works around a bug in the HP C Compiler
5922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5924 # This bug is HP SR number 8606223364.
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5926 $as_echo_n "checking size of void *... " >&6; }
5927 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5930 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5933 if test "$ac_cv_type_void_p" = yes; then
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936 { as_fn_set_status
77
5937 as_fn_error
"cannot compute sizeof (void *)
5938 See \`config.log' for more details." "$LINENO" 5; }; }
5940 ac_cv_sizeof_void_p
=0
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5946 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5950 cat >>confdefs.h
<<_ACEOF
5951 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5955 # The cast to long int works around a bug in the HP C Compiler
5956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5958 # This bug is HP SR number 8606223364.
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5960 $as_echo_n "checking size of short... " >&6; }
5961 if test "${ac_cv_sizeof_short+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5964 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5967 if test "$ac_cv_type_short" = yes; then
5968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 { as_fn_set_status
77
5971 as_fn_error
"cannot compute sizeof (short)
5972 See \`config.log' for more details." "$LINENO" 5; }; }
5974 ac_cv_sizeof_short
=0
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5980 $as_echo "$ac_cv_sizeof_short" >&6; }
5984 cat >>confdefs.h
<<_ACEOF
5985 #define SIZEOF_SHORT $ac_cv_sizeof_short
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5994 $as_echo_n "checking size of int... " >&6; }
5995 if test "${ac_cv_sizeof_int+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6001 if test "$ac_cv_type_int" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status
77
6005 as_fn_error
"cannot compute sizeof (int)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6014 $as_echo "$ac_cv_sizeof_int" >&6; }
6018 cat >>confdefs.h
<<_ACEOF
6019 #define SIZEOF_INT $ac_cv_sizeof_int
6023 # The cast to long int works around a bug in the HP C Compiler
6024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6026 # This bug is HP SR number 8606223364.
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6028 $as_echo_n "checking size of long... " >&6; }
6029 if test "${ac_cv_sizeof_long+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6032 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6035 if test "$ac_cv_type_long" = yes; then
6036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038 { as_fn_set_status
77
6039 as_fn_error
"cannot compute sizeof (long)
6040 See \`config.log' for more details." "$LINENO" 5; }; }
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6048 $as_echo "$ac_cv_sizeof_long" >&6; }
6052 cat >>confdefs.h
<<_ACEOF
6053 #define SIZEOF_LONG $ac_cv_sizeof_long
6057 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6058 if test "x$ac_cv_type_long_long" = x
""yes; then :
6060 cat >>confdefs.h
<<_ACEOF
6061 #define HAVE_LONG_LONG 1
6064 # The cast to long int works around a bug in the HP C Compiler
6065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6067 # This bug is HP SR number 8606223364.
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6069 $as_echo_n "checking size of long long... " >&6; }
6070 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6073 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6076 if test "$ac_cv_type_long_long" = yes; then
6077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6079 { as_fn_set_status
77
6080 as_fn_error
"cannot compute sizeof (long long)
6081 See \`config.log' for more details." "$LINENO" 5; }; }
6083 ac_cv_sizeof_long_long
=0
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6089 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6093 cat >>confdefs.h
<<_ACEOF
6094 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6100 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6101 case $ac_cv_c_int8_t in #(
6105 cat >>confdefs.h
<<_ACEOF
6106 #define int8_t $ac_cv_c_int8_t
6111 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6112 case $ac_cv_c_int16_t in #(
6116 cat >>confdefs.h
<<_ACEOF
6117 #define int16_t $ac_cv_c_int16_t
6122 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6123 case $ac_cv_c_int32_t in #(
6127 cat >>confdefs.h
<<_ACEOF
6128 #define int32_t $ac_cv_c_int32_t
6133 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6134 case $ac_cv_c_int64_t in #(
6138 cat >>confdefs.h
<<_ACEOF
6139 #define int64_t $ac_cv_c_int64_t
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6146 $as_echo_n "checking for long long int... " >&6; }
6147 if test "${ac_cv_type_long_long_int+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6153 /* For now, do not test the preprocessor; as of 2007 there are too many
6154 implementations with broken preprocessors. Perhaps this can
6155 be revisited in 2012. In the meantime, code should not expect
6156 #if to work with literals wider than 32 bits. */
6157 /* Test literals. */
6158 long long int ll = 9223372036854775807ll;
6159 long long int nll = -9223372036854775807LL;
6160 unsigned long long int ull = 18446744073709551615ULL;
6161 /* Test constant expressions. */
6162 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6164 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6170 /* Test availability of runtime routines for shift and division. */
6171 long long int llmax = 9223372036854775807ll;
6172 unsigned long long int ullmax = 18446744073709551615ull;
6173 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6174 | (llmax / ll) | (llmax % ll)
6175 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6176 | (ullmax / ull) | (ullmax % ull));
6182 if ac_fn_cxx_try_link
"$LINENO"; then :
6183 if test "$cross_compiling" = yes; then :
6184 ac_cv_type_long_long_int
=yes
6186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6191 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6192 # define LLONG_MAX (HALF - 1 + HALF)
6197 long long int n = 1;
6201 long long int m = n << i;
6204 if (LLONG_MAX / 2 < m)
6212 if ac_fn_cxx_try_run
"$LINENO"; then :
6213 ac_cv_type_long_long_int
=yes
6215 ac_cv_type_long_long_int
=no
6217 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6218 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6222 ac_cv_type_long_long_int
=no
6224 rm -f core conftest.err conftest.
$ac_objext \
6225 conftest
$ac_exeext conftest.
$ac_ext
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6228 $as_echo "$ac_cv_type_long_long_int" >&6; }
6229 if test $ac_cv_type_long_long_int = yes; then
6231 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6237 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6238 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6240 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6243 test $ac_cv_type_long_long_int = yes \
6244 && ac_type
='long long int' \
6245 || ac_type
='long int'
6247 cat >>confdefs.h
<<_ACEOF
6248 #define intmax_t $ac_type
6255 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6256 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6258 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6261 for ac_type
in 'int' 'long int' 'long long int'; do
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 $ac_includes_default
6268 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6275 if ac_fn_cxx_try_compile
"$LINENO"; then :
6277 cat >>confdefs.h
<<_ACEOF
6278 #define intptr_t $ac_type
6283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6284 test -z "$ac_type" && break
6289 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6290 case $ac_cv_c_uint8_t in #(
6294 $as_echo "#define _UINT8_T 1" >>confdefs.h
6297 cat >>confdefs.h
<<_ACEOF
6298 #define uint8_t $ac_cv_c_uint8_t
6303 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6304 case $ac_cv_c_uint16_t in #(
6309 cat >>confdefs.h
<<_ACEOF
6310 #define uint16_t $ac_cv_c_uint16_t
6315 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6316 case $ac_cv_c_uint32_t in #(
6320 $as_echo "#define _UINT32_T 1" >>confdefs.h
6323 cat >>confdefs.h
<<_ACEOF
6324 #define uint32_t $ac_cv_c_uint32_t
6329 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6330 case $ac_cv_c_uint64_t in #(
6334 $as_echo "#define _UINT64_T 1" >>confdefs.h
6337 cat >>confdefs.h
<<_ACEOF
6338 #define uint64_t $ac_cv_c_uint64_t
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6345 $as_echo_n "checking for unsigned long long int... " >&6; }
6346 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6352 /* For now, do not test the preprocessor; as of 2007 there are too many
6353 implementations with broken preprocessors. Perhaps this can
6354 be revisited in 2012. In the meantime, code should not expect
6355 #if to work with literals wider than 32 bits. */
6356 /* Test literals. */
6357 long long int ll = 9223372036854775807ll;
6358 long long int nll = -9223372036854775807LL;
6359 unsigned long long int ull = 18446744073709551615ULL;
6360 /* Test constant expressions. */
6361 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6363 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6369 /* Test availability of runtime routines for shift and division. */
6370 long long int llmax = 9223372036854775807ll;
6371 unsigned long long int ullmax = 18446744073709551615ull;
6372 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6373 | (llmax / ll) | (llmax % ll)
6374 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6375 | (ullmax / ull) | (ullmax % ull));
6381 if ac_fn_cxx_try_link
"$LINENO"; then :
6382 ac_cv_type_unsigned_long_long_int
=yes
6384 ac_cv_type_unsigned_long_long_int
=no
6386 rm -f core conftest.err conftest.
$ac_objext \
6387 conftest
$ac_exeext conftest.
$ac_ext
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6390 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6391 if test $ac_cv_type_unsigned_long_long_int = yes; then
6393 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6399 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6400 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6402 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6405 test $ac_cv_type_unsigned_long_long_int = yes \
6406 && ac_type
='unsigned long long int' \
6407 || ac_type
='unsigned long int'
6409 cat >>confdefs.h
<<_ACEOF
6410 #define uintmax_t $ac_type
6417 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6418 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6420 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6423 for ac_type
in 'unsigned int' 'unsigned long int' \
6424 'unsigned long long int'; do
6425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 $ac_includes_default
6431 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6438 if ac_fn_cxx_try_compile
"$LINENO"; then :
6440 cat >>confdefs.h
<<_ACEOF
6441 #define uintptr_t $ac_type
6446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6447 test -z "$ac_type" && break
6464 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6465 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6468 # check what underlying integer type int64_t uses
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6470 $as_echo_n "checking for int64_t underlying type... " >&6; }
6471 if test "${ac_cv_int64_t_type+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6478 #ifdef HAVE_STDINT_H
6481 template <typename T> struct X { };
6483 struct X<long> { typedef long t; };
6493 if ac_fn_cxx_try_compile
"$LINENO"; then :
6494 ac_cv_int64_t_type
=long
6496 ac_cv_int64_t_type
="long long"
6498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6501 $as_echo "$ac_cv_int64_t_type" >&6; }
6502 if test "$ac_cv_int64_t_type" = "long"; then
6504 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6510 #ifdef HAVE_STDINT_H
6513 template <typename T> struct X { };
6515 struct X<long long> { typedef long long t; };
6525 if ac_fn_cxx_try_compile
"$LINENO"; then :
6528 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6533 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6534 # If the host compiler is affected by the bug, and we build with optimization
6535 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6536 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6537 # Since there is no reliable feature check for the presence of this bug,
6538 # we simply use a GCC version number check. (This should never trigger for
6539 # stages 2 or 3 of a native bootstrap.)
6541 if test "$GCC" = yes; then
6542 saved_CXXFLAGS
="$CXXFLAGS"
6544 # The following test compilation will succeed if and only if $CXX accepts
6545 # -fno-strict-aliasing *and* is older than GCC 4.3.
6546 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6548 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6552 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6553 #error compiler not affected by placement new aliasing bug
6557 if ac_fn_cxx_try_compile
"$LINENO"; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6559 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6566 CXXFLAGS
="$saved_CXXFLAGS"
6572 # ---------------------
6573 # Warnings and checking
6574 # ---------------------
6576 # Check $CC warning features (if it's GCC).
6577 # We want to use -pedantic, but we don't want warnings about
6580 # * overlong strings
6581 # * C++11 narrowing conversions in { }
6582 # So, we only use -pedantic if we can disable those warnings.
6584 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6585 # Check whether --enable-build-format-warnings was given.
6586 if test "${enable_build_format_warnings+set}" = set; then :
6587 enableval
=$enable_build_format_warnings;
6589 enable_build_format_warnings
=yes
6592 if test $enable_build_format_warnings = no
; then :
6598 ac_cpp
='$CXXCPP $CPPFLAGS'
6599 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6604 save_CXXFLAGS
="$CXXFLAGS"
6605 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6606 # Do the check with the no- prefix removed since gcc silently
6607 # accepts any -Wno-* option on purpose
6608 case $real_option in
6609 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6610 *) option
=$real_option ;;
6612 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6615 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6616 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6617 $as_echo_n "(cached) " >&6
6620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6631 if ac_fn_cxx_try_compile
"$LINENO"; then :
6632 eval "$as_acx_Woption=yes"
6634 eval "$as_acx_Woption=no"
6636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6639 eval ac_res
=\$
$as_acx_Woption
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6641 $as_echo "$ac_res" >&6; }
6642 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6643 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6646 CXXFLAGS
="$save_CXXFLAGS"
6648 ac_cpp
='$CXXCPP $CPPFLAGS'
6649 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6656 ac_cpp
='$CPP $CPPFLAGS'
6657 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6662 save_CFLAGS
="$CFLAGS"
6663 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6664 # Do the check with the no- prefix removed since gcc silently
6665 # accepts any -Wno-* option on purpose
6666 case $real_option in
6667 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6668 *) option
=$real_option ;;
6670 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6673 $as_echo_n "checking whether $CC supports $option... " >&6; }
6674 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6675 $as_echo_n "(cached) " >&6
6678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6689 if ac_fn_c_try_compile
"$LINENO"; then :
6690 eval "$as_acx_Woption=yes"
6692 eval "$as_acx_Woption=no"
6694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6697 eval ac_res
=\$
$as_acx_Woption
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6699 $as_echo "$ac_res" >&6; }
6700 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6701 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6704 CFLAGS
="$save_CFLAGS"
6706 ac_cpp
='$CXXCPP $CPPFLAGS'
6707 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6713 ac_cpp
='$CXXCPP $CPPFLAGS'
6714 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6719 save_CXXFLAGS
="$CXXFLAGS"
6720 for real_option
in -Wmissing-format-attribute; do
6721 # Do the check with the no- prefix removed since gcc silently
6722 # accepts any -Wno-* option on purpose
6723 case $real_option in
6724 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6725 *) option
=$real_option ;;
6727 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6730 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6731 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6732 $as_echo_n "(cached) " >&6
6735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6746 if ac_fn_cxx_try_compile
"$LINENO"; then :
6747 eval "$as_acx_Woption=yes"
6749 eval "$as_acx_Woption=no"
6751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6754 eval ac_res
=\$
$as_acx_Woption
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6756 $as_echo "$ac_res" >&6; }
6757 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6758 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6761 CXXFLAGS
="$save_CXXFLAGS"
6763 ac_cpp
='$CXXCPP $CPPFLAGS'
6764 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6770 ac_cpp
='$CXXCPP $CPPFLAGS'
6771 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6775 save_CXXFLAGS
="$CXXFLAGS"
6776 for real_option
in -Woverloaded-virtual; do
6777 # Do the check with the no- prefix removed since gcc silently
6778 # accepts any -Wno-* option on purpose
6779 case $real_option in
6780 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6781 *) option
=$real_option ;;
6783 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6786 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6787 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6788 $as_echo_n "(cached) " >&6
6791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6802 if ac_fn_cxx_try_compile
"$LINENO"; then :
6803 eval "$as_acx_Woption=yes"
6805 eval "$as_acx_Woption=no"
6807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6810 eval ac_res
=\$
$as_acx_Woption
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6812 $as_echo "$ac_res" >&6; }
6813 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6814 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6817 CXXFLAGS
="$save_CXXFLAGS"
6819 ac_cpp
='$CXXCPP $CPPFLAGS'
6820 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6821 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6822 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6826 ac_cpp
='$CPP $CPPFLAGS'
6827 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6832 save_CFLAGS
="$CFLAGS"
6833 for real_option
in -Wold-style-definition -Wc++-compat; do
6834 # Do the check with the no- prefix removed since gcc silently
6835 # accepts any -Wno-* option on purpose
6836 case $real_option in
6837 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6838 *) option
=$real_option ;;
6840 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6843 $as_echo_n "checking whether $CC supports $option... " >&6; }
6844 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6845 $as_echo_n "(cached) " >&6
6848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6859 if ac_fn_c_try_compile
"$LINENO"; then :
6860 eval "$as_acx_Woption=yes"
6862 eval "$as_acx_Woption=no"
6864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6867 eval ac_res
=\$
$as_acx_Woption
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6871 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6874 CFLAGS
="$save_CFLAGS"
6876 ac_cpp
='$CXXCPP $CPPFLAGS'
6877 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6883 ac_cpp
='$CXXCPP $CPPFLAGS'
6884 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6888 # Do the check with the no- prefix removed from the warning options
6889 # since gcc silently accepts any -Wno-* option on purpose
6890 if test "$GXX" = yes; then :
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6892 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6893 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6896 save_CXXFLAGS
="$CXXFLAGS"
6897 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6909 if ac_fn_cxx_try_compile
"$LINENO"; then :
6910 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6912 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6915 CXXFLAGS
="$save_CXXFLAGS"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6918 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6919 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6920 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6925 ac_cpp
='$CXXCPP $CPPFLAGS'
6926 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6932 ac_cpp
='$CXXCPP $CPPFLAGS'
6933 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6937 # Check whether --enable-werror-always was given.
6938 if test "${enable_werror_always+set}" = set; then :
6939 enableval
=$enable_werror_always;
6941 enable_werror_always
=no
6944 if test $enable_werror_always = yes; then :
6945 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6949 ac_cpp
='$CXXCPP $CPPFLAGS'
6950 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6956 # The above macros do nothing if the compiler is not GCC. However, the
6957 # Makefile has more goo to add other flags, so these variables are used
6958 # to enable warnings only for GCC.
6961 if test "x$GCC" = "xyes"; then
6962 warn_cflags
='$(GCC_WARN_CFLAGS)'
6963 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6968 # Disable exceptions and RTTI if building with g++
6970 ac_cpp
='$CPP $CPPFLAGS'
6971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6976 save_CFLAGS
="$CFLAGS"
6977 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6978 # Do the check with the no- prefix removed since gcc silently
6979 # accepts any -Wno-* option on purpose
6980 case $real_option in
6981 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6982 *) option
=$real_option ;;
6984 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6987 $as_echo_n "checking whether $CC supports $option... " >&6; }
6988 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6989 $as_echo_n "(cached) " >&6
6992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
7003 if ac_fn_c_try_compile
"$LINENO"; then :
7004 eval "$as_acx_Woption=yes"
7006 eval "$as_acx_Woption=no"
7008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7011 eval ac_res
=\$
$as_acx_Woption
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7013 $as_echo "$ac_res" >&6; }
7014 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7015 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7018 CFLAGS
="$save_CFLAGS"
7020 ac_cpp
='$CXXCPP $CPPFLAGS'
7021 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7027 # Enable expensive internal checks
7029 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7033 # Check whether --enable-checking was given.
7034 if test "${enable_checking+set}" = set; then :
7035 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7038 # Determine the default checks.
7039 if test x
$is_release = x
; then
7040 ac_checking_flags
=yes
7042 ac_checking_flags
=release
7046 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7047 for check
in release
$ac_checking_flags
7050 # these set all the flags to specific states
7051 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7052 ac_fold_checking
= ; ac_gc_checking
=1 ;
7053 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7054 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7055 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7056 ac_types_checking
=1 ;;
7057 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7058 ac_fold_checking
= ; ac_gc_checking
= ;
7059 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7060 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7061 ac_tree_checking
= ; ac_valgrind_checking
= ;
7062 ac_types_checking
= ;;
7063 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7064 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7065 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7066 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7067 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7068 ac_types_checking
=1 ;;
7069 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7070 ac_fold_checking
= ; ac_gc_checking
= ;
7071 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7072 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7073 ac_tree_checking
= ; ac_valgrind_checking
= ;
7074 ac_types_checking
= ;;
7075 # these enable particular checks
7076 assert
) ac_assert_checking
=1 ;;
7077 df
) ac_df_checking
=1 ;;
7078 fold) ac_fold_checking
=1 ;;
7079 gc
) ac_gc_checking
=1 ;;
7080 gcac
) ac_gc_always_collect
=1 ;;
7081 gimple
) ac_gimple_checking
=1 ;;
7082 misc
) ac_checking
=1 ;;
7083 rtl
) ac_rtl_checking
=1 ;;
7084 rtlflag
) ac_rtlflag_checking
=1 ;;
7085 runtime
) ac_runtime_checking
=1 ;;
7086 tree
) ac_tree_checking
=1 ;;
7087 types
) ac_types_checking
=1 ;;
7088 valgrind
) ac_valgrind_checking
=1 ;;
7089 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7095 if test x
$ac_checking != x
; then
7097 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7099 nocommon_flag
=-fno-common
7102 if test x
$ac_df_checking != x
; then
7104 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7107 if test x
$ac_assert_checking != x
; then
7109 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7112 if test x
$ac_gimple_checking != x
; then
7114 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7118 if test x
$ac_runtime_checking != x
; then
7120 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7123 if test x
$ac_tree_checking != x
; then
7125 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7129 if test x
$ac_types_checking != x
; then
7131 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7135 if test x
$ac_rtl_checking != x
; then
7137 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7140 if test x
$ac_rtlflag_checking != x
; then
7142 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7145 if test x
$ac_gc_checking != x
; then
7147 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7150 if test x
$ac_gc_always_collect != x
; then
7152 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7155 if test x
$ac_fold_checking != x
; then
7157 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7160 valgrind_path_defines
=
7163 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7164 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7172 # It is certainly possible that there's valgrind but no valgrind.h.
7173 # GCC relies on making annotations so we must have both.
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7175 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 #include <valgrind/memcheck.h>
7179 #ifndef VALGRIND_DISCARD
7180 #error VALGRIND_DISCARD not defined
7183 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7184 gcc_cv_header_valgrind_memcheck_h
=yes
7186 gcc_cv_header_valgrind_memcheck_h
=no
7188 rm -f conftest.err conftest.
$ac_ext
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7190 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <memcheck.h>
7196 #ifndef VALGRIND_DISCARD
7197 #error VALGRIND_DISCARD not defined
7200 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7201 gcc_cv_header_memcheck_h
=yes
7203 gcc_cv_header_memcheck_h
=no
7205 rm -f conftest.err conftest.
$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7207 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7208 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7210 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7213 if test $gcc_cv_header_memcheck_h = yes; then
7215 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7219 if test x
$ac_valgrind_checking != x
; then
7221 # Prepare PATH_SEPARATOR.
7222 # The user is always right.
7223 if test "${PATH_SEPARATOR+set}" != set; then
7224 echo "#! /bin/sh" >conf$$.sh
7225 echo "exit 0" >>conf$$.sh
7227 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7235 # Find out how to test for executable files. Don't use a zero-byte file,
7236 # as systems may use methods other than mode bits to determine executability.
7237 cat >conf$$.
file <<_ASEOF
7241 chmod +x conf$$.
file
7242 if test -x conf$$.
file >/dev
/null
2>&1; then
7243 ac_executable_p
="test -x"
7245 ac_executable_p
="test -f"
7249 # Extract the first word of "valgrind", so it can be a program name with args.
7250 set dummy valgrind
; ac_word
=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7256 case "$valgrind_path" in
7258 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7261 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7262 for ac_dir
in $PATH; do
7264 test -z "$ac_dir" && ac_dir
=.
7265 for ac_exec_ext
in '' $ac_executable_extensions; do
7266 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7267 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7268 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7278 valgrind_path
="$ac_cv_path_valgrind_path"
7279 if test -n "$valgrind_path"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7281 $as_echo "$valgrind_path" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7287 if test "x$valgrind_path" = "x" \
7288 ||
(test $have_valgrind_h = no \
7289 && test $gcc_cv_header_memcheck_h = no \
7290 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7291 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7293 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7294 valgrind_command
="$valgrind_path -q"
7296 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7302 # Enable code coverage collection
7303 # Check whether --enable-coverage was given.
7304 if test "${enable_coverage+set}" = set; then :
7305 enableval
=$enable_coverage; case "${enableval}" in
7307 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7310 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7313 # a.k.a. --disable-coverage
7317 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7326 # Check whether --enable-gather-detailed-mem-stats was given.
7327 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7328 enableval
=$enable_gather_detailed_mem_stats;
7330 enable_gather_detailed_mem_stats
=no
7333 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7335 cat >>confdefs.h
<<_ACEOF
7336 #define GATHER_STATISTICS $gather_stats
7340 # Check whether --enable-valgrind-annotations was given.
7341 if test "${enable_valgrind_annotations+set}" = set; then :
7342 enableval
=$enable_valgrind_annotations;
7344 enable_valgrind_annotations
=no
7347 if test x
$enable_valgrind_annotations != xno \
7348 ||
test x
$ac_valgrind_checking != x
; then
7349 if (test $have_valgrind_h = no \
7350 && test $gcc_cv_header_memcheck_h = no \
7351 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7352 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7355 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7359 # -------------------------------
7360 # Miscenalleous configure options
7361 # -------------------------------
7365 # Check whether --with-stabs was given.
7366 if test "${with_stabs+set}" = set; then :
7367 withval
=$with_stabs; stabs
="$with_stabs"
7373 # Determine whether or not multilibs are enabled.
7374 # Check whether --enable-multilib was given.
7375 if test "${enable_multilib+set}" = set; then :
7376 enableval
=$enable_multilib;
7383 # Determine whether or not multiarch is enabled.
7384 # Check whether --enable-multiarch was given.
7385 if test "${enable_multiarch+set}" = set; then :
7386 enableval
=$enable_multiarch; case "${enableval}" in
7387 yes|no|auto
) enable_multiarch
=$enableval;;
7388 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7391 enable_multiarch
=auto
7394 if test x
${enable_multiarch} = xauto
; then
7395 if test x
${with_native_system_header_dir} != x
; then
7396 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7399 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7400 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7405 $as_echo_n "checking for multiarch configuration... " >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7408 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7410 # needed for setting the multiarch name for soft-float/hard-float ABIs
7414 # Enable __cxa_atexit for C++.
7415 # Check whether --enable-__cxa_atexit was given.
7416 if test "${enable___cxa_atexit+set}" = set; then :
7417 enableval
=$enable___cxa_atexit;
7421 # Enable C extension for decimal float if target supports it.
7423 # Check whether --enable-decimal-float was given.
7424 if test "${enable_decimal_float+set}" = set; then :
7425 enableval
=$enable_decimal_float;
7426 case $enable_decimal_float in
7427 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7428 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7429 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7435 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7436 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7437 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7438 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7439 enable_decimal_float
=yes
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7443 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7444 enable_decimal_float
=no
7451 # x86's use BID format instead of DPD
7452 case x
$enable_decimal_float in
7455 i?
86*-*-* | x86_64
*-*-*)
7456 enable_decimal_float
=bid
7459 enable_decimal_float
=dpd
7462 default_decimal_float
=$enable_decimal_float
7465 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7466 # dependency on libdecnumber.
7467 default_decimal_float
=dpd
7474 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7476 cat >>confdefs.h
<<_ACEOF
7477 #define ENABLE_DECIMAL_FLOAT $dfp
7481 # Use default_decimal_float for dependency.
7482 enable_decimal_float
=$default_decimal_float
7484 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7486 cat >>confdefs.h
<<_ACEOF
7487 #define ENABLE_DECIMAL_BID_FORMAT $bid
7491 # Enable C extension for fixed-point arithmetic.
7492 # Check whether --enable-fixed-point was given.
7493 if test "${enable_fixed_point+set}" = set; then :
7494 enableval
=$enable_fixed_point;
7499 enable_fixed_point
=yes
7503 enable_fixed_point
=yes
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7507 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7508 enable_fixed_point
=no
7516 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7518 cat >>confdefs.h
<<_ACEOF
7519 #define ENABLE_FIXED_POINT $fixedpoint
7524 # Pass with no value to take the default
7525 # Pass with a value to specify a thread package
7526 # Check whether --enable-threads was given.
7527 if test "${enable_threads+set}" = set; then :
7528 enableval
=$enable_threads;
7534 # Check whether --enable-tls was given.
7535 if test "${enable_tls+set}" = set; then :
7536 enableval
=$enable_tls;
7539 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7540 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7548 # Check whether --enable-objc-gc was given.
7549 if test "${enable_objc_gc+set}" = set; then :
7550 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7561 # Check whether --with-dwarf2 was given.
7562 if test "${with_dwarf2+set}" = set; then :
7563 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7569 # Check whether --enable-shared was given.
7570 if test "${enable_shared+set}" = set; then :
7571 enableval
=$enable_shared;
7572 case $enable_shared in
7576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7577 for pkg
in $enableval; do
7578 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7593 # Check whether --with-specs was given.
7594 if test "${with_specs+set}" = set; then :
7595 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7605 # Check whether --with-pkgversion was given.
7606 if test "${with_pkgversion+set}" = set; then :
7607 withval
=$with_pkgversion; case "$withval" in
7608 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7610 *) PKGVERSION
="($withval) " ;;
7621 # Check whether --with-bugurl was given.
7622 if test "${with_bugurl+set}" = set; then :
7623 withval
=$with_bugurl; case "$withval" in
7624 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7627 *) BUGURL
="$withval"
7631 BUGURL
="http://gcc.gnu.org/bugs.html"
7641 REPORT_BUGS_TO
="<$BUGURL>"
7642 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7649 # Sanity check enable_languages in case someone does not run the toplevel
7650 # configure # script.
7651 # Check whether --enable-languages was given.
7652 if test "${enable_languages+set}" = set; then :
7653 enableval
=$enable_languages; case ,${enable_languages}, in
7655 # go safe -- we cannot be much sure without the toplevel
7657 # analysis of which target libs are present and usable
7661 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7666 enable_languages
=c
,${enable_languages}
7674 if test x
"$enable_as_accelerator_for" != x
; then
7676 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7678 enable_as_accelerator
=yes
7681 # In this case we expect offload compiler to be built as native, so we
7682 # need to rename the driver to avoid clashes with host's drivers.
7683 program_transform_name
="s&^&${target}-&" ;;
7685 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7686 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7687 accel_dir_suffix
=/accel
/${target_noncanonical}
7688 real_target_noncanonical
=${enable_as_accelerator_for}
7694 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7695 tgt
=`echo $tgt | sed 's/=.*//'`
7696 if test x
"$offload_targets" = x
; then
7697 offload_targets
=$tgt
7699 offload_targets
="$offload_targets:$tgt"
7703 cat >>confdefs.h
<<_ACEOF
7704 #define OFFLOAD_TARGETS "$offload_targets"
7707 if test x
"$offload_targets" != x
; then
7709 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7714 # Check whether --with-multilib-list was given.
7715 if test "${with_multilib_list+set}" = set; then :
7716 withval
=$with_multilib_list; :
7718 with_multilib_list
=default
7722 # -------------------------
7723 # Checks for other programs
7724 # -------------------------
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7727 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7729 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7730 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7731 $as_echo_n "(cached) " >&6
7733 cat >conftest.
make <<\_ACEOF
7736 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7738 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7741 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7743 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7747 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7749 $as_echo "yes" >&6; }
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 SET_MAKE
="MAKE=${MAKE-make}"
7758 # Find some useful tools
7759 for ac_prog
in gawk mawk nawk
awk
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy
$ac_prog; ac_word
=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_AWK+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7768 if test -n "$AWK"; then
7769 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir
=.
7776 for ac_exec_ext
in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_AWK
="$ac_prog"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 if test -n "$AWK"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7791 $as_echo "$AWK" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7798 test -n "$AWK" && break
7801 # We need awk to create options.c and options.h.
7802 # Bail out if it's missing.
7804 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7808 $as_echo_n "checking whether ln -s works... " >&6; }
7809 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7812 rm -f conftestdata_t
7813 echo >conftestdata_f
7814 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7816 gcc_cv_prog_LN_S
="ln -s"
7818 if ln conftestdata_f conftestdata_t
2>/dev
/null
7822 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7824 gcc_cv_prog_LN_S
="cp -p"
7830 rm -f conftestdata_f conftestdata_t
7833 LN_S
="$gcc_cv_prog_LN_S"
7834 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7838 if test "$gcc_cv_prog_LN_S" = "ln"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7840 $as_echo "no, using ln" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7843 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7848 $as_echo_n "checking whether ln works... " >&6; }
7849 if test "${acx_cv_prog_LN+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7852 rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln conftestdata_f conftestdata_t
2>/dev
/null
7860 rm -f conftestdata_f conftestdata_t
7863 if test $acx_cv_prog_LN = no
; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7866 $as_echo "no, using $LN" >&6; }
7868 LN
="$acx_cv_prog_LN"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870 $as_echo "yes" >&6; }
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7875 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7881 if test -n "$RANLIB"; then
7882 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir
=.
7889 for ac_exec_ext
in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 RANLIB
=$ac_cv_prog_RANLIB
7902 if test -n "$RANLIB"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7904 $as_echo "$RANLIB" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7912 if test -z "$ac_cv_prog_RANLIB"; then
7913 ac_ct_RANLIB
=$RANLIB
7914 # Extract the first word of "ranlib", so it can be a program name with args.
7915 set dummy ranlib
; ac_word
=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7921 if test -n "$ac_ct_RANLIB"; then
7922 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir
=.
7929 for ac_exec_ext
in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7942 if test -n "$ac_ct_RANLIB"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7944 $as_echo "$ac_ct_RANLIB" >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7950 if test "x$ac_ct_RANLIB" = x
; then
7953 case $cross_compiling:$ac_tool_warned in
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned
=yes ;;
7959 RANLIB
=$ac_ct_RANLIB
7962 RANLIB
="$ac_cv_prog_RANLIB"
7968 # Find a good install program. We prefer a C program (faster),
7969 # so one script is as good as another. But avoid the broken or
7970 # incompatible versions:
7971 # SysV /etc/install, /usr/sbin/install
7972 # SunOS /usr/etc/install
7973 # IRIX /sbin/install
7975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7977 # ./install, which can be erroneously created by make from ./install.sh.
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7979 $as_echo_n "checking for a BSD compatible install... " >&6; }
7980 if test -z "$INSTALL"; then
7981 if test "${ac_cv_path_install+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7984 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7985 for ac_dir
in $PATH; do
7986 # Account for people who put trailing slashes in PATH elements.
7988 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7990 # OSF1 and SCO ODT 3.0 have their own names for install.
7991 for ac_prog
in ginstall scoinst
install; do
7992 if test -f $ac_dir/$ac_prog; then
7993 if test $ac_prog = install &&
7994 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7995 # AIX install. It has an incompatible calling convention.
7996 # OSF/1 installbsd also uses dspmsg, but is usable.
7999 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8010 if test "${ac_cv_path_install+set}" = set; then
8011 INSTALL
="$ac_cv_path_install"
8013 # As a last resort, use the slow shell script. We don't cache a
8014 # path for INSTALL within a source directory, because that will
8015 # break other packages using the cache if that directory is
8016 # removed, or if the path is relative.
8017 INSTALL
="$ac_install_sh"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8021 $as_echo "$INSTALL" >&6; }
8023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8024 # It thinks the first close brace ends the variable substitution.
8025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8027 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8030 # See if cmp has --ignore-initial.
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8032 $as_echo_n "checking for cmp's capabilities... " >&6; }
8033 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8038 gcc_cv_prog_cmp_skip
=slowcompare
8039 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8040 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8043 gcc_cv_prog_cmp_skip
=gnucompare
8046 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8047 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8048 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8051 gcc_cv_prog_cmp_skip
=fastcompare
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8059 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8060 make_compare_target
=$gcc_cv_prog_cmp_skip
8064 # See if we have the mktemp command.
8065 # Extract the first word of "mktemp", so it can be a program name with args.
8066 set dummy mktemp
; ac_word
=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8072 if test -n "$have_mktemp_command"; then
8073 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8079 test -z "$as_dir" && as_dir
=.
8080 for ac_exec_ext
in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_have_mktemp_command
="yes"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8093 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8094 if test -n "$have_mktemp_command"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8096 $as_echo "$have_mktemp_command" >&6; }
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8104 # See if makeinfo has been installed and is modern enough
8105 # that we can use it.
8107 # Extract the first word of "makeinfo", so it can be a program name with args.
8108 set dummy makeinfo
; ac_word
=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8114 if test -n "$MAKEINFO"; then
8115 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir
=.
8122 for ac_exec_ext
in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_prog_MAKEINFO
="makeinfo"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 MAKEINFO
=$ac_cv_prog_MAKEINFO
8135 if test -n "$MAKEINFO"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8137 $as_echo "$MAKEINFO" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8144 if test -n "$MAKEINFO"; then
8145 # Found it, now check the version.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8147 $as_echo_n "checking for modern makeinfo... " >&6; }
8148 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8151 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8152 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8154 case $ac_prog_version in
8155 '') gcc_cv_prog_makeinfo_modern
=no
;;
8156 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8157 *) gcc_cv_prog_makeinfo_modern
=no
;;
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8162 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8164 gcc_cv_prog_makeinfo_modern
=no
8166 if test $gcc_cv_prog_makeinfo_modern = no
; then
8167 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8170 if test $gcc_cv_prog_makeinfo_modern = no
; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8172 *** Makeinfo is missing or too old.
8173 *** Info documentation will not be built." >&5
8174 $as_echo "$as_me: WARNING:
8175 *** Makeinfo is missing or too old.
8176 *** Info documentation will not be built." >&2;}
8183 # Is pod2man recent enough to regenerate manpages?
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8185 $as_echo_n "checking for recent Pod::Man... " >&6; }
8186 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8188 $as_echo "yes" >&6; }
8189 GENERATED_MANPAGES
=generated-manpages
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8197 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8202 # Extract the first word of "$ac_prog", so it can be a program name with args.
8203 set dummy
$ac_prog; ac_word
=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_FLEX+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 if test -n "$FLEX"; then
8210 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8216 test -z "$as_dir" && as_dir
=.
8217 for ac_exec_ext
in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_FLEX
="$ac_prog"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 FLEX
=$ac_cv_prog_FLEX
8230 if test -n "$FLEX"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8232 $as_echo "$FLEX" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8239 test -n "$FLEX" && break
8241 test -n "$FLEX" || FLEX
="$MISSING flex"
8245 for ac_prog
in bison
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy
$ac_prog; ac_word
=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_BISON+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8254 if test -n "$BISON"; then
8255 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir
=.
8262 for ac_exec_ext
in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_BISON
="$ac_prog"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 BISON
=$ac_cv_prog_BISON
8275 if test -n "$BISON"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8277 $as_echo "$BISON" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8284 test -n "$BISON" && break
8286 test -n "$BISON" || BISON
="$MISSING bison"
8289 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8290 # check for build == host before using them.
8293 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8294 && test -d ..
/binutils
; then
8295 NM
='${objdir}/../binutils/nm-new'
8297 # Extract the first word of "nm", so it can be a program name with args.
8298 set dummy nm
; ac_word
=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if test "${ac_cv_prog_NM+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8304 if test -n "$NM"; then
8305 ac_cv_prog_NM
="$NM" # Let the user override the test.
8307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir
=.
8312 for ac_exec_ext
in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8326 if test -n "$NM"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8328 $as_echo "$NM" >&6; }
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8338 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8339 && test -d ..
/binutils
; then
8340 AR
='${objdir}/../binutils/ar'
8342 # Extract the first word of "ar", so it can be a program name with args.
8343 set dummy
ar; ac_word
=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_AR+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8349 if test -n "$AR"; then
8350 ac_cv_prog_AR
="$AR" # Let the user override the test.
8352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir
=.
8357 for ac_exec_ext
in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8371 if test -n "$AR"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8373 $as_echo "$AR" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8382 # The jit documentation looks better if built with sphinx, but can be
8383 # built with texinfo if sphinx is not available.
8384 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8385 # Extract the first word of "sphinx-build", so it can be a program name with args.
8386 set dummy sphinx-build
; ac_word
=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8390 $as_echo_n "(cached) " >&6
8392 if test -n "$doc_build_sys"; then
8393 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8399 test -z "$as_dir" && as_dir
=.
8400 for ac_exec_ext
in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_prog_doc_build_sys
="sphinx"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8413 doc_build_sys
=$ac_cv_prog_doc_build_sys
8414 if test -n "$doc_build_sys"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8416 $as_echo "$doc_build_sys" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8424 # --------------------
8425 # Checks for C headers
8426 # --------------------
8428 # Need to reject headers which give warnings, so that the -Werror bootstrap
8429 # works later. *sigh* This needs to come before all header checks.
8431 ac_c_preproc_warn_flag
=yes
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8434 $as_echo_n "checking for ANSI C header files... " >&6; }
8435 if test "${ac_cv_header_stdc+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8453 if ac_fn_cxx_try_compile
"$LINENO"; then :
8454 ac_cv_header_stdc
=yes
8456 ac_cv_header_stdc
=no
8458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8460 if test $ac_cv_header_stdc = yes; then
8461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8468 $EGREP "memchr" >/dev
/null
2>&1; then :
8471 ac_cv_header_stdc
=no
8477 if test $ac_cv_header_stdc = yes; then
8478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "free" >/dev
/null
2>&1; then :
8488 ac_cv_header_stdc
=no
8494 if test $ac_cv_header_stdc = yes; then
8495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8496 if test "$cross_compiling" = yes; then :
8499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8503 #if ((' ' & 0x0FF) == 0x020)
8504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8507 # define ISLOWER(c) \
8508 (('a' <= (c) && (c) <= 'i') \
8509 || ('j' <= (c) && (c) <= 'r') \
8510 || ('s' <= (c) && (c) <= 'z'))
8511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8519 for (i = 0; i < 256; i++)
8520 if (XOR (islower (i), ISLOWER (i))
8521 || toupper (i) != TOUPPER (i))
8526 if ac_fn_cxx_try_run
"$LINENO"; then :
8529 ac_cv_header_stdc
=no
8531 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8532 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8538 $as_echo "$ac_cv_header_stdc" >&6; }
8539 if test $ac_cv_header_stdc = yes; then
8541 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8546 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8547 if test "${ac_cv_header_time+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 #include <sys/types.h>
8553 #include <sys/time.h>
8559 if ((struct tm *) 0)
8565 if ac_fn_cxx_try_compile
"$LINENO"; then :
8566 ac_cv_header_time
=yes
8568 ac_cv_header_time
=no
8570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8573 $as_echo "$ac_cv_header_time" >&6; }
8574 if test $ac_cv_header_time = yes; then
8576 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8581 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8582 if test "${gcc_cv_header_string+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8588 #include <strings.h>
8597 if ac_fn_cxx_try_compile
"$LINENO"; then :
8598 gcc_cv_header_string
=yes
8600 gcc_cv_header_string
=no
8602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8605 $as_echo "$gcc_cv_header_string" >&6; }
8606 if test $gcc_cv_header_string = yes; then
8608 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8613 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8614 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <sys/wait.h>
8622 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8638 if ac_fn_cxx_try_compile
"$LINENO"; then :
8639 ac_cv_header_sys_wait_h
=yes
8641 ac_cv_header_sys_wait_h
=no
8643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8646 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8647 if test $ac_cv_header_sys_wait_h = yes; then
8649 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8654 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8655 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <sys/types.h>
8661 #include <termios.h>
8667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8668 $EGREP "yes" >/dev
/null
2>&1; then :
8669 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8671 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8677 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8679 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8681 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8682 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <sys/types.h>
8688 #include <sys/ioctl.h>
8694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8695 $EGREP "yes" >/dev
/null
2>&1; then :
8696 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8698 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8704 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8706 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8708 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8713 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8714 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8715 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8716 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8718 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8719 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8720 eval as_val
=\$
$as_ac_Header
8721 if test "x$as_val" = x
""yes; then :
8722 cat >>confdefs.h
<<_ACEOF
8723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8730 # Check for thread headers.
8731 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8732 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8738 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8739 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8746 # These tests can't be done till we know if we have limits.h.
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8748 $as_echo_n "checking for CHAR_BIT... " >&6; }
8749 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8750 $as_echo_n "(cached) " >&6
8752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 #ifdef HAVE_LIMITS_H
8761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8762 $EGREP "found" >/dev
/null
2>&1; then :
8763 gcc_cv_decl_char_bit
=yes
8765 gcc_cv_decl_char_bit
=no
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8772 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8773 if test $gcc_cv_decl_char_bit = no
; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8775 $as_echo_n "checking number of bits in a byte... " >&6; }
8776 if test "${gcc_cv_c_nbby+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8781 while test $i -lt 65; do
8782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8789 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8790 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8796 if ac_fn_cxx_try_compile
"$LINENO"; then :
8797 gcc_cv_c_nbby
=$i; break
8799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8802 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8806 $as_echo "$gcc_cv_c_nbby" >&6; }
8807 if test $gcc_cv_c_nbby = failed
; then
8808 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8811 cat >>confdefs.h
<<_ACEOF
8812 #define CHAR_BIT $gcc_cv_c_nbby
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8818 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8819 if test "${ac_cv_c_bigendian+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8822 ac_cv_c_bigendian
=unknown
8823 # See if we're dealing with a universal compiler.
8824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 #ifndef __APPLE_CC__
8827 not a universal capable compiler
8832 if ac_fn_cxx_try_compile
"$LINENO"; then :
8834 # Check for potential -arch flags. It is not universal unless
8835 # there are at least two -arch flags with different values.
8838 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8839 if test -n "$ac_prev"; then
8841 i?
86 | x86_64 | ppc | ppc64
)
8842 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8845 ac_cv_c_bigendian
=universal
8851 elif test "x$ac_word" = "x-arch"; then
8856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8857 if test $ac_cv_c_bigendian = unknown
; then
8858 # See if sys/param.h defines the BYTE_ORDER macro.
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8862 #include <sys/param.h>
8867 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8868 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8877 if ac_fn_cxx_try_compile
"$LINENO"; then :
8878 # It does; now see whether it defined to BIG_ENDIAN or not.
8879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #include <sys/types.h>
8882 #include <sys/param.h>
8887 #if BYTE_ORDER != BIG_ENDIAN
8895 if ac_fn_cxx_try_compile
"$LINENO"; then :
8896 ac_cv_c_bigendian
=yes
8898 ac_cv_c_bigendian
=no
8900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8904 if test $ac_cv_c_bigendian = unknown
; then
8905 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8913 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8921 if ac_fn_cxx_try_compile
"$LINENO"; then :
8922 # It does; now see whether it defined to _BIG_ENDIAN or not.
8923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8938 if ac_fn_cxx_try_compile
"$LINENO"; then :
8939 ac_cv_c_bigendian
=yes
8941 ac_cv_c_bigendian
=no
8943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8947 if test $ac_cv_c_bigendian = unknown
; then
8948 # Compile a test program.
8949 if test "$cross_compiling" = yes; then :
8950 # Try to guess by grepping values from an object file.
8951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 short int ascii_mm[] =
8954 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8955 short int ascii_ii[] =
8956 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8957 int use_ascii (int i) {
8958 return ascii_mm[i] + ascii_ii[i];
8960 short int ebcdic_ii[] =
8961 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8962 short int ebcdic_mm[] =
8963 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8964 int use_ebcdic (int i) {
8965 return ebcdic_mm[i] + ebcdic_ii[i];
8972 return use_ascii (foo) == use_ebcdic (foo);
8977 if ac_fn_cxx_try_compile
"$LINENO"; then :
8978 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8979 ac_cv_c_bigendian
=yes
8981 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8982 if test "$ac_cv_c_bigendian" = unknown
; then
8983 ac_cv_c_bigendian
=no
8985 # finding both strings is unlikely to happen, but who knows?
8986 ac_cv_c_bigendian
=unknown
8990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 $ac_includes_default
8999 /* Are we little or big endian? From Harbison&Steele. */
9003 char c[sizeof (long int)];
9006 return u.c[sizeof (long int) - 1] == 1;
9012 if ac_fn_cxx_try_run
"$LINENO"; then :
9013 ac_cv_c_bigendian
=no
9015 ac_cv_c_bigendian
=yes
9017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9024 $as_echo "$ac_cv_c_bigendian" >&6; }
9025 case $ac_cv_c_bigendian in #(
9027 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9033 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9037 as_fn_error
"unknown endianness
9038 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9042 # ----------------------
9043 # Checks for C++ headers
9044 # ----------------------
9047 ac_cpp
='$CXXCPP $CPPFLAGS'
9048 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9052 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9053 if test -z "$CXXCPP"; then
9054 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9057 # Double quotes because CXXCPP needs to be expanded
9058 for CXXCPP
in "$CXX -E" "/lib/cpp"
9061 for ac_cxx_preproc_warn_flag
in '' yes
9063 # Use a header file that comes with gcc, so configuring glibc
9064 # with a fresh cross-compiler works.
9065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066 # <limits.h> exists even on freestanding compilers.
9067 # On the NeXT, cc -E runs the code through the compiler's parser,
9068 # not just through cpp. "Syntax error" is here to catch this case.
9069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9072 # include <limits.h>
9074 # include <assert.h>
9078 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9081 # Broken: fails on valid input.
9084 rm -f conftest.err conftest.
$ac_ext
9086 # OK, works on sane cases. Now check whether nonexistent headers
9087 # can be detected and how.
9088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <ac_nonexistent.h>
9092 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9093 # Broken: success on invalid input.
9096 # Passes both tests.
9100 rm -f conftest.err conftest.
$ac_ext
9103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9104 rm -f conftest.err conftest.
$ac_ext
9105 if $ac_preproc_ok; then :
9110 ac_cv_prog_CXXCPP
=$CXXCPP
9113 CXXCPP
=$ac_cv_prog_CXXCPP
9115 ac_cv_prog_CXXCPP
=$CXXCPP
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9118 $as_echo "$CXXCPP" >&6; }
9120 for ac_cxx_preproc_warn_flag
in '' yes
9122 # Use a header file that comes with gcc, so configuring glibc
9123 # with a fresh cross-compiler works.
9124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9125 # <limits.h> exists even on freestanding compilers.
9126 # On the NeXT, cc -E runs the code through the compiler's parser,
9127 # not just through cpp. "Syntax error" is here to catch this case.
9128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9131 # include <limits.h>
9133 # include <assert.h>
9137 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9140 # Broken: fails on valid input.
9143 rm -f conftest.err conftest.
$ac_ext
9145 # OK, works on sane cases. Now check whether nonexistent headers
9146 # can be detected and how.
9147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 #include <ac_nonexistent.h>
9151 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9152 # Broken: success on invalid input.
9155 # Passes both tests.
9159 rm -f conftest.err conftest.
$ac_ext
9162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9163 rm -f conftest.err conftest.
$ac_ext
9164 if $ac_preproc_ok; then :
9167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9170 See \`config.log' for more details." >&5
9171 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9172 See \`config.log' for more details." >&2;}; }
9176 ac_cpp
='$CXXCPP $CPPFLAGS'
9177 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9182 for ac_header
in unordered_map
9184 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9185 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9186 cat >>confdefs.h
<<_ACEOF
9187 #define HAVE_UNORDERED_MAP 1
9193 for ac_header
in tr1/unordered_map
9195 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9196 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9197 cat >>confdefs.h
<<_ACEOF
9198 #define HAVE_TR1_UNORDERED_MAP 1
9204 for ac_header
in ext
/hash_map
9206 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9207 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9208 cat >>confdefs.h
<<_ACEOF
9209 #define HAVE_EXT_HASH_MAP 1
9217 # Dependency checking.
9220 rm -rf .tst
2>/dev
/null
9221 mkdir .tst
2>/dev
/null
9222 if test -d .tst
; then
9227 rmdir .tst
2>/dev
/null
9229 DEPDIR
="${am__leading_dot}deps"
9231 ac_config_commands
="$ac_config_commands depdir"
9234 ac_config_commands
="$ac_config_commands gccdepdir"
9237 depcc
="$CXX" am_compiler_list
=
9239 am_depcomp
=$ac_aux_dir/depcomp
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9241 $as_echo_n "checking dependency style of $depcc... " >&6; }
9242 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
9245 if test -f "$am_depcomp"; then
9246 # We make a subdir and do the tests there. Otherwise we can end up
9247 # making bogus files that we don't know about and never remove. For
9248 # instance it was reported that on HP-UX the gcc test will end up
9249 # making a dummy file named `D' -- because `-MD' means `put the output
9252 # Copy depcomp to subdir because otherwise we won't find it if we're
9253 # using a relative directory.
9254 cp "$am_depcomp" conftest.dir
9256 # We will build objects and dependencies in a subdirectory because
9257 # it helps to detect inapplicable dependency modes. For instance
9258 # both Tru64's cc and ICC support -MD to output dependencies as a
9259 # side effect of compilation, but ICC will put the dependencies in
9260 # the current directory while Tru64 will put them in the object
9264 am_cv_CXX_dependencies_compiler_type
=none
9265 if test "$am_compiler_list" = ""; then
9266 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9268 for depmode
in $am_compiler_list; do
9269 if test $depmode = none
; then break; fi
9271 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9272 # Setup a source with many dependencies, because some compilers
9273 # like to wrap large dependency lists on column 80 (with \), and
9274 # we should not choose a depcomp mode which is confused by this.
9276 # We need to recreate these files for each test, as the compiler may
9277 # overwrite some of them when testing with obscure command lines.
9278 # This happens at least with the AIX C compiler.
9280 for i
in 1 2 3 4 5 6; do
9281 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9282 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9283 # Solaris 8's {/usr,}/bin/sh.
9284 touch sub
/conftst
$i.h
9286 echo "include sub/conftest.Po" > confmf
9288 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9289 # mode. It turns out that the SunPro C++ compiler does not properly
9290 # handle `-M -o', and we need to detect this.
9291 depcmd
="depmode=$depmode \
9292 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9294 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9295 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9296 if env
$depcmd > conftest.err
2>&1 &&
9297 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9298 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9299 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9300 # icc doesn't choke on unknown options, it will just issue warnings
9301 # or remarks (even with -Werror). So we grep stderr for any message
9302 # that says an option was ignored or not supported.
9303 # When given -MP, icc 7.0 and 7.1 complain thusly:
9304 # icc: Command line warning: ignoring option '-M'; no argument required
9305 # The diagnosis changed in icc 8.0:
9306 # icc: Command line remark: option '-MP' not supported
9307 if (grep 'ignoring option' conftest.err ||
9308 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9309 am_cv_CXX_dependencies_compiler_type
=$depmode
9310 $as_echo "$as_me:$LINENO: success" >&5
9314 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9315 sed -e 's/^/| /' < conftest.err
>&5
9321 am_cv_CXX_dependencies_compiler_type
=none
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9326 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9327 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9328 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9329 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9339 # These libraries may be used by collect2.
9340 # We may need a special search path to get them linked.
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9342 $as_echo_n "checking for collect2 libraries... " >&6; }
9343 if test "${gcc_cv_collect2_libs+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9347 for libs
in '' -lld -lmld \
9348 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9349 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9370 if ac_fn_cxx_try_link
"$LINENO"; then :
9371 gcc_cv_collect2_libs
="$libs"; break
9373 rm -f core conftest.err conftest.
$ac_objext \
9374 conftest
$ac_exeext conftest.
$ac_ext
9377 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9380 $as_echo "$gcc_cv_collect2_libs" >&6; }
9381 case $gcc_cv_collect2_libs in
9383 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9387 # When building Ada code on Alpha, we need exc_resume which is usually in
9388 # -lexc. So test for it.
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9392 $as_echo_n "checking for library containing exc_resume... " >&6; }
9393 if test "${ac_cv_search_exc_resume+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9396 ac_func_search_save_LIBS
=$LIBS
9397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9410 return exc_resume ();
9415 for ac_lib
in '' exc
; do
9416 if test -z "$ac_lib"; then
9417 ac_res
="none required"
9420 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9422 if ac_fn_cxx_try_link
"$LINENO"; then :
9423 ac_cv_search_exc_resume
=$ac_res
9425 rm -f core conftest.err conftest.
$ac_objext \
9427 if test "${ac_cv_search_exc_resume+set}" = set; then :
9431 if test "${ac_cv_search_exc_resume+set}" = set; then :
9434 ac_cv_search_exc_resume
=no
9437 LIBS
=$ac_func_search_save_LIBS
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9440 $as_echo "$ac_cv_search_exc_resume" >&6; }
9441 ac_res
=$ac_cv_search_exc_resume
9442 if test "$ac_res" != no
; then :
9443 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9451 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9455 $as_echo_n "checking for library containing kstat_open... " >&6; }
9456 if test "${ac_cv_search_kstat_open+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9459 ac_func_search_save_LIBS
=$LIBS
9460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9473 return kstat_open ();
9478 for ac_lib
in '' kstat
; do
9479 if test -z "$ac_lib"; then
9480 ac_res
="none required"
9483 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9485 if ac_fn_cxx_try_link
"$LINENO"; then :
9486 ac_cv_search_kstat_open
=$ac_res
9488 rm -f core conftest.err conftest.
$ac_objext \
9490 if test "${ac_cv_search_kstat_open+set}" = set; then :
9494 if test "${ac_cv_search_kstat_open+set}" = set; then :
9497 ac_cv_search_kstat_open
=no
9500 LIBS
=$ac_func_search_save_LIBS
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9503 $as_echo "$ac_cv_search_kstat_open" >&6; }
9504 ac_res
=$ac_cv_search_kstat_open
9505 if test "$ac_res" != no
; then :
9506 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9510 EXTRA_GCC_LIBS
="$LIBS"
9514 # Some systems put ldexp and frexp in libm instead of libc; assume
9515 # they're both in the same place. jcf-dump needs them.
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9519 $as_echo_n "checking for library containing ldexp... " >&6; }
9520 if test "${ac_cv_search_ldexp+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9523 ac_func_search_save_LIBS
=$LIBS
9524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9542 for ac_lib
in '' m
; do
9543 if test -z "$ac_lib"; then
9544 ac_res
="none required"
9547 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9549 if ac_fn_cxx_try_link
"$LINENO"; then :
9550 ac_cv_search_ldexp
=$ac_res
9552 rm -f core conftest.err conftest.
$ac_objext \
9554 if test "${ac_cv_search_ldexp+set}" = set; then :
9558 if test "${ac_cv_search_ldexp+set}" = set; then :
9561 ac_cv_search_ldexp
=no
9564 LIBS
=$ac_func_search_save_LIBS
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9567 $as_echo "$ac_cv_search_ldexp" >&6; }
9568 ac_res
=$ac_cv_search_ldexp
9569 if test "$ac_res" != no
; then :
9570 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9578 # Use <inttypes.h> only if it exists,
9579 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9582 $as_echo_n "checking for inttypes.h... " >&6; }
9583 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 #define __STDC_FORMAT_MACROS
9589 #include <sys/types.h>
9590 #include <inttypes.h>
9602 if ac_fn_cxx_try_compile
"$LINENO"; then :
9603 gcc_cv_header_inttypes_h
=yes
9605 gcc_cv_header_inttypes_h
=no
9607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9611 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9612 if test $gcc_cv_header_inttypes_h = yes; then
9614 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9620 for ac_func
in times clock kill getrlimit setrlimit atoq \
9621 popen sysconf strsignal getrusage nl_langinfo \
9622 gettimeofday mbstowcs wcswidth mmap setlocale \
9623 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
9625 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9626 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9627 eval as_val
=\$
$as_ac_var
9628 if test "x$as_val" = x
""yes; then :
9629 cat >>confdefs.h
<<_ACEOF
9630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9637 if test x
$ac_cv_func_mbstowcs = xyes
; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9639 $as_echo_n "checking whether mbstowcs works... " >&6; }
9640 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9643 if test "$cross_compiling" = yes; then :
9644 gcc_cv_func_mbstowcs_works
=yes
9646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9655 if ac_fn_cxx_try_run
"$LINENO"; then :
9656 gcc_cv_func_mbstowcs_works
=yes
9658 gcc_cv_func_mbstowcs_works
=no
9660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9666 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9667 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9669 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9674 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9675 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9679 cat >>confdefs.h
<<_ACEOF
9685 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9686 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9690 cat >>confdefs.h
<<_ACEOF
9691 #define caddr_t char *
9698 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9699 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9700 gcc_header_sys_mman_h
=yes
9702 gcc_header_sys_mman_h
=no
9705 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9706 if test "x$ac_cv_func_mmap" = x
""yes; then :
9712 if test "$gcc_header_sys_mman_h" != yes \
9713 ||
test "$gcc_func_mmap" != yes; then
9714 gcc_cv_func_mmap_file
=no
9715 gcc_cv_func_mmap_dev_zero
=no
9716 gcc_cv_func_mmap_anon
=no
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9719 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9720 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9723 # Add a system to this blacklist if
9724 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9725 # memory area containing the same data that you'd get if you applied
9726 # read() to the same fd. The only system known to have a problem here
9727 # is VMS, where text files have record structure.
9730 gcc_cv_func_mmap_file
=no
;;
9732 gcc_cv_func_mmap_file
=yes;;
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9736 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9738 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9739 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9740 $as_echo_n "(cached) " >&6
9742 # Add a system to this blacklist if it has mmap() but /dev/zero
9743 # does not exist, or if mmapping /dev/zero does not give anonymous
9744 # zeroed pages with both the following properties:
9745 # 1. If you map N consecutive pages in with one call, and then
9746 # unmap any subset of those pages, the pages that were not
9747 # explicitly unmapped remain accessible.
9748 # 2. If you map two adjacent blocks of memory and then unmap them
9749 # both at once, they must both go away.
9750 # Systems known to be in this category are Windows (all variants),
9753 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9754 gcc_cv_func_mmap_dev_zero
=no
;;
9756 gcc_cv_func_mmap_dev_zero
=yes;;
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9760 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9762 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9764 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9765 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 #include <sys/types.h>
9771 #include <sys/mman.h>
9774 #ifndef MAP_ANONYMOUS
9775 #define MAP_ANONYMOUS MAP_ANON
9781 int n = MAP_ANONYMOUS;
9786 if ac_fn_cxx_try_compile
"$LINENO"; then :
9787 gcc_cv_decl_map_anon
=yes
9789 gcc_cv_decl_map_anon
=no
9791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9794 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9796 if test $gcc_cv_decl_map_anon = no
; then
9797 gcc_cv_func_mmap_anon
=no
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9800 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9801 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9804 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9805 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9806 # doesn't give anonymous zeroed pages with the same properties listed
9807 # above for use of /dev/zero.
9808 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9810 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9811 gcc_cv_func_mmap_anon
=no
;;
9813 gcc_cv_func_mmap_anon
=yes;;
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9817 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9821 if test $gcc_cv_func_mmap_file = yes; then
9823 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9826 if test $gcc_cv_func_mmap_dev_zero = yes; then
9828 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9831 if test $gcc_cv_func_mmap_anon = yes; then
9833 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9840 # Under VMS, vfork works very differently than on Unix. The standard test
9841 # won't work, and it isn't easily adaptable. It makes more sense to
9843 ac_cv_func_vfork_works
=yes
9846 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9847 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9851 cat >>confdefs.h
<<_ACEOF
9857 for ac_header
in vfork.h
9859 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9860 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9861 cat >>confdefs.h
<<_ACEOF
9862 #define HAVE_VFORK_H 1
9868 for ac_func
in fork vfork
9870 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9871 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9872 eval as_val
=\$
$as_ac_var
9873 if test "x$as_val" = x
""yes; then :
9874 cat >>confdefs.h
<<_ACEOF
9875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9881 if test "x$ac_cv_func_fork" = xyes
; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9883 $as_echo_n "checking for working fork... " >&6; }
9884 if test "${ac_cv_func_fork_works+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9887 if test "$cross_compiling" = yes; then :
9888 ac_cv_func_fork_works
=cross
9890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 $ac_includes_default
9897 /* By Ruediger Kuhlmann. */
9904 if ac_fn_cxx_try_run
"$LINENO"; then :
9905 ac_cv_func_fork_works
=yes
9907 ac_cv_func_fork_works
=no
9909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9915 $as_echo "$ac_cv_func_fork_works" >&6; }
9918 ac_cv_func_fork_works
=$ac_cv_func_fork
9920 if test "x$ac_cv_func_fork_works" = xcross
; then
9922 *-*-amigaos* |
*-*-msdosdjgpp*)
9923 # Override, as these systems have only a dummy fork() stub
9924 ac_cv_func_fork_works
=no
9927 ac_cv_func_fork_works
=yes
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9931 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9933 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9934 if test "x$ac_cv_func_vfork" = xyes
; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9936 $as_echo_n "checking for working vfork... " >&6; }
9937 if test "${ac_cv_func_vfork_works+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9940 if test "$cross_compiling" = yes; then :
9941 ac_cv_func_vfork_works
=cross
9943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 /* Thanks to Paul Eggert for this test. */
9946 $ac_includes_default
9947 #include <sys/wait.h>
9951 /* On some sparc systems, changes by the child to local and incoming
9952 argument registers are propagated back to the parent. The compiler
9953 is told about this with #include <vfork.h>, but some compilers
9954 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9955 static variable whose address is put into a register that is
9956 clobbered by the vfork. */
9959 sparc_address_test (int arg)
9961 sparc_address_test (arg) int arg;
9982 pid_t parent = getpid ();
9985 sparc_address_test (0);
9990 /* Here is another test for sparc vfork register problems. This
9991 test uses lots of local variables, at least as many local
9992 variables as main has allocated so far including compiler
9993 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9994 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9995 reuse the register of parent for one of the local variables,
9996 since it will think that parent can't possibly be used any more
9997 in this routine. Assigning to the local variable will thus
9998 munge parent in the parent process. */
10000 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10001 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10002 /* Convince the compiler that p..p7 are live; otherwise, it might
10003 use the same hardware register for all 8 local variables. */
10004 if (p != p1 || p != p2 || p != p3 || p != p4
10005 || p != p5 || p != p6 || p != p7)
10008 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10009 from child file descriptors. If the child closes a descriptor
10010 before it execs or exits, this munges the parent's descriptor
10011 as well. Test for this by closing stdout in the child. */
10012 _exit(close(fileno(stdout)) != 0);
10017 while (wait(&status) != child)
10020 /* Was there some problem with vforking? */
10023 /* Did the child fail? (This shouldn't happen.) */
10026 /* Did the vfork/compiler bug occur? */
10027 || parent != getpid()
10029 /* Did the file descriptor bug occur? */
10030 || fstat(fileno(stdout), &st) != 0
10035 if ac_fn_cxx_try_run
"$LINENO"; then :
10036 ac_cv_func_vfork_works
=yes
10038 ac_cv_func_vfork_works
=no
10040 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10041 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10046 $as_echo "$ac_cv_func_vfork_works" >&6; }
10049 if test "x$ac_cv_func_fork_works" = xcross
; then
10050 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10052 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10055 if test "x$ac_cv_func_vfork_works" = xyes
; then
10057 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10061 $as_echo "#define vfork fork" >>confdefs.h
10064 if test "x$ac_cv_func_fork_works" = xyes
; then
10066 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10072 if test "X$prefix" = "XNONE"; then
10073 acl_final_prefix
="$ac_default_prefix"
10075 acl_final_prefix
="$prefix"
10077 if test "X$exec_prefix" = "XNONE"; then
10078 acl_final_exec_prefix
='${prefix}'
10080 acl_final_exec_prefix
="$exec_prefix"
10082 acl_save_prefix
="$prefix"
10083 prefix
="$acl_final_prefix"
10084 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10085 prefix
="$acl_save_prefix"
10088 # Check whether --with-gnu-ld was given.
10089 if test "${with_gnu_ld+set}" = set; then :
10090 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10095 # Prepare PATH_SEPARATOR.
10096 # The user is always right.
10097 if test "${PATH_SEPARATOR+set}" != set; then
10098 echo "#! /bin/sh" >conf$$.sh
10099 echo "exit 0" >>conf$$.sh
10101 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10109 if test "$GCC" = yes; then
10110 # Check if gcc -print-prog-name=ld gives a path.
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10112 $as_echo_n "checking for ld used by GCC... " >&6; }
10115 # gcc leaves a trailing carriage return which upsets mingw
10116 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10118 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10121 # Accept absolute paths.
10122 [\\/]* |
[A-Za-z
]:[\\/]*)
10123 re_direlt
='/[^/][^/]*/\.\./'
10124 # Canonicalize the path of ld
10125 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10126 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10127 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10129 test -z "$LD" && LD
="$ac_prog"
10132 # If it fails, then pretend we aren't using GCC.
10136 # If it is relative, then search for the first ld in PATH.
10137 with_gnu_ld
=unknown
10140 elif test "$with_gnu_ld" = yes; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10142 $as_echo_n "checking for GNU ld... " >&6; }
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10145 $as_echo_n "checking for non-GNU ld... " >&6; }
10147 if test "${acl_cv_path_LD+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10150 if test -z "$LD"; then
10151 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10152 for ac_dir
in $PATH; do
10153 test -z "$ac_dir" && ac_dir
=.
10154 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10155 acl_cv_path_LD
="$ac_dir/$ac_prog"
10156 # Check to see if the program is GNU ld. I'd rather use --version,
10157 # but apparently some GNU ld's only accept -v.
10158 # Break only if it was the GNU/non-GNU ld that we prefer.
10159 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10160 test "$with_gnu_ld" != no
&& break
10162 test "$with_gnu_ld" != yes && break
10168 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10172 LD
="$acl_cv_path_LD"
10173 if test -n "$LD"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10175 $as_echo "$LD" >&6; }
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10180 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10183 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10187 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10188 acl_cv_prog_gnu_ld
=yes
10190 acl_cv_prog_gnu_ld
=no
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10194 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10195 with_gnu_ld
=$acl_cv_prog_gnu_ld
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10200 $as_echo_n "checking for shared library run path origin... " >&6; }
10201 if test "${acl_cv_rpath+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10205 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10206 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10208 rm -f .
/conftest.sh
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10213 $as_echo "$acl_cv_rpath" >&6; }
10215 libext
="$acl_cv_libext"
10216 shlibext
="$acl_cv_shlibext"
10217 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10218 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10219 hardcode_direct
="$acl_cv_hardcode_direct"
10220 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10221 # Check whether --enable-rpath was given.
10222 if test "${enable_rpath+set}" = set; then :
10223 enableval
=$enable_rpath; :
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 eval additional_includedir
=\"$includedir\"
10243 eval additional_libdir
=\"$libdir\"
10245 exec_prefix
="$acl_save_exec_prefix"
10246 prefix
="$acl_save_prefix"
10249 # Check whether --with-libiconv-prefix was given.
10250 if test "${with_libiconv_prefix+set}" = set; then :
10251 withval
=$with_libiconv_prefix;
10252 if test "X$withval" = "Xno"; then
10255 if test "X$withval" = "X"; then
10257 acl_save_prefix
="$prefix"
10258 prefix
="$acl_final_prefix"
10259 acl_save_exec_prefix
="$exec_prefix"
10260 exec_prefix
="$acl_final_exec_prefix"
10262 eval additional_includedir
=\"$includedir\"
10263 eval additional_libdir
=\"$libdir\"
10265 exec_prefix
="$acl_save_exec_prefix"
10266 prefix
="$acl_save_prefix"
10269 additional_includedir
="$withval/include"
10270 additional_libdir
="$withval/lib"
10281 names_already_handled
=
10282 names_next_round
='iconv '
10283 while test -n "$names_next_round"; do
10284 names_this_round
="$names_next_round"
10286 for name
in $names_this_round; do
10288 for n
in $names_already_handled; do
10289 if test "$n" = "$name"; then
10290 already_handled
=yes
10294 if test -z "$already_handled"; then
10295 names_already_handled
="$names_already_handled $name"
10296 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10297 eval value
=\"\
$HAVE_LIB$uppername\"
10298 if test -n "$value"; then
10299 if test "$value" = yes; then
10300 eval value
=\"\
$LIB$uppername\"
10301 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10302 eval value
=\"\
$LTLIB$uppername\"
10303 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10312 if test $use_additional = yes; then
10313 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10314 found_dir
="$additional_libdir"
10315 found_so
="$additional_libdir/lib$name.$shlibext"
10316 if test -f "$additional_libdir/lib$name.la"; then
10317 found_la
="$additional_libdir/lib$name.la"
10320 if test -f "$additional_libdir/lib$name.$libext"; then
10321 found_dir
="$additional_libdir"
10322 found_a
="$additional_libdir/lib$name.$libext"
10323 if test -f "$additional_libdir/lib$name.la"; then
10324 found_la
="$additional_libdir/lib$name.la"
10329 if test "X$found_dir" = "X"; then
10330 for x
in $LDFLAGS $LTLIBICONV; do
10332 acl_save_prefix
="$prefix"
10333 prefix
="$acl_final_prefix"
10334 acl_save_exec_prefix
="$exec_prefix"
10335 exec_prefix
="$acl_final_exec_prefix"
10337 exec_prefix
="$acl_save_exec_prefix"
10338 prefix
="$acl_save_prefix"
10342 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10343 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10345 found_so
="$dir/lib$name.$shlibext"
10346 if test -f "$dir/lib$name.la"; then
10347 found_la
="$dir/lib$name.la"
10350 if test -f "$dir/lib$name.$libext"; then
10352 found_a
="$dir/lib$name.$libext"
10353 if test -f "$dir/lib$name.la"; then
10354 found_la
="$dir/lib$name.la"
10360 if test "X$found_dir" != "X"; then
10365 if test "X$found_dir" != "X"; then
10366 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10367 if test "X$found_so" != "X"; then
10368 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10369 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10372 for x
in $ltrpathdirs; do
10373 if test "X$x" = "X$found_dir"; then
10378 if test -z "$haveit"; then
10379 ltrpathdirs
="$ltrpathdirs $found_dir"
10381 if test "$hardcode_direct" = yes; then
10382 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10384 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10385 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10387 for x
in $rpathdirs; do
10388 if test "X$x" = "X$found_dir"; then
10393 if test -z "$haveit"; then
10394 rpathdirs
="$rpathdirs $found_dir"
10398 for x
in $LDFLAGS $LIBICONV; do
10400 acl_save_prefix
="$prefix"
10401 prefix
="$acl_final_prefix"
10402 acl_save_exec_prefix
="$exec_prefix"
10403 exec_prefix
="$acl_final_exec_prefix"
10405 exec_prefix
="$acl_save_exec_prefix"
10406 prefix
="$acl_save_prefix"
10408 if test "X$x" = "X-L$found_dir"; then
10413 if test -z "$haveit"; then
10414 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10416 if test "$hardcode_minus_L" != no
; then
10417 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10419 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10425 if test "X$found_a" != "X"; then
10426 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10428 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10431 additional_includedir
=
10432 case "$found_dir" in
10434 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10435 additional_includedir
="$basedir/include"
10438 if test "X$additional_includedir" != "X"; then
10439 if test "X$additional_includedir" != "X/usr/include"; then
10441 if test "X$additional_includedir" = "X/usr/local/include"; then
10442 if test -n "$GCC"; then
10444 linux
*) haveit
=yes;;
10448 if test -z "$haveit"; then
10449 for x
in $CPPFLAGS $INCICONV; do
10451 acl_save_prefix
="$prefix"
10452 prefix
="$acl_final_prefix"
10453 acl_save_exec_prefix
="$exec_prefix"
10454 exec_prefix
="$acl_final_exec_prefix"
10456 exec_prefix
="$acl_save_exec_prefix"
10457 prefix
="$acl_save_prefix"
10459 if test "X$x" = "X-I$additional_includedir"; then
10464 if test -z "$haveit"; then
10465 if test -d "$additional_includedir"; then
10466 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10472 if test -n "$found_la"; then
10473 save_libdir
="$libdir"
10474 case "$found_la" in
10475 */* |
*\\*) .
"$found_la" ;;
10476 *) .
"./$found_la" ;;
10478 libdir
="$save_libdir"
10479 for dep
in $dependency_libs; do
10482 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10483 if test "X$additional_libdir" != "X/usr/lib"; then
10485 if test "X$additional_libdir" = "X/usr/local/lib"; then
10486 if test -n "$GCC"; then
10488 linux
*) haveit
=yes;;
10492 if test -z "$haveit"; then
10494 for x
in $LDFLAGS $LIBICONV; do
10496 acl_save_prefix
="$prefix"
10497 prefix
="$acl_final_prefix"
10498 acl_save_exec_prefix
="$exec_prefix"
10499 exec_prefix
="$acl_final_exec_prefix"
10501 exec_prefix
="$acl_save_exec_prefix"
10502 prefix
="$acl_save_prefix"
10504 if test "X$x" = "X-L$additional_libdir"; then
10509 if test -z "$haveit"; then
10510 if test -d "$additional_libdir"; then
10511 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10515 for x
in $LDFLAGS $LTLIBICONV; do
10517 acl_save_prefix
="$prefix"
10518 prefix
="$acl_final_prefix"
10519 acl_save_exec_prefix
="$exec_prefix"
10520 exec_prefix
="$acl_final_exec_prefix"
10522 exec_prefix
="$acl_save_exec_prefix"
10523 prefix
="$acl_save_prefix"
10525 if test "X$x" = "X-L$additional_libdir"; then
10530 if test -z "$haveit"; then
10531 if test -d "$additional_libdir"; then
10532 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10539 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10540 if test "$enable_rpath" != no
; then
10542 for x
in $rpathdirs; do
10543 if test "X$x" = "X$dir"; then
10548 if test -z "$haveit"; then
10549 rpathdirs
="$rpathdirs $dir"
10552 for x
in $ltrpathdirs; do
10553 if test "X$x" = "X$dir"; then
10558 if test -z "$haveit"; then
10559 ltrpathdirs
="$ltrpathdirs $dir"
10564 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10567 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10570 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10571 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10577 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10578 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10584 if test "X$rpathdirs" != "X"; then
10585 if test -n "$hardcode_libdir_separator"; then
10587 for found_dir
in $rpathdirs; do
10588 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10590 acl_save_libdir
="$libdir"
10592 eval flag
=\"$hardcode_libdir_flag_spec\"
10593 libdir
="$acl_save_libdir"
10594 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10596 for found_dir
in $rpathdirs; do
10597 acl_save_libdir
="$libdir"
10598 libdir
="$found_dir"
10599 eval flag
=\"$hardcode_libdir_flag_spec\"
10600 libdir
="$acl_save_libdir"
10601 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10605 if test "X$ltrpathdirs" != "X"; then
10606 for found_dir
in $ltrpathdirs; do
10607 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10618 $as_echo_n "checking for iconv... " >&6; }
10619 if test "${am_cv_func_iconv+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10623 am_cv_func_iconv
="no, consider installing GNU libiconv"
10625 am_save_CPPFLAGS
="$CPPFLAGS"
10626 CPPFLAGS
="$CPPFLAGS $INCICONV"
10627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 #include <stdlib.h>
10634 iconv_t cd = iconv_open("","");
10635 iconv(cd,NULL,NULL,NULL,NULL);
10641 if ac_fn_cxx_try_link
"$LINENO"; then :
10642 am_cv_func_iconv
=yes
10644 rm -f core conftest.err conftest.
$ac_objext \
10645 conftest
$ac_exeext conftest.
$ac_ext
10646 CPPFLAGS
="$am_save_CPPFLAGS"
10648 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10649 for _libs
in .libs _libs
; do
10650 am_save_CPPFLAGS
="$CPPFLAGS"
10651 am_save_LIBS
="$LIBS"
10652 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10653 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10656 #include <stdlib.h>
10661 iconv_t cd = iconv_open("","");
10662 iconv(cd,NULL,NULL,NULL,NULL);
10668 if ac_fn_cxx_try_link
"$LINENO"; then :
10669 INCICONV
="-I../libiconv/include"
10670 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10671 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10672 am_cv_lib_iconv
=yes
10673 am_cv_func_iconv
=yes
10675 rm -f core conftest.err conftest.
$ac_objext \
10676 conftest
$ac_exeext conftest.
$ac_ext
10677 CPPFLAGS
="$am_save_CPPFLAGS"
10678 LIBS
="$am_save_LIBS"
10679 if test "$am_cv_func_iconv" = "yes"; then
10685 if test "$am_cv_func_iconv" != yes; then
10686 am_save_CPPFLAGS
="$CPPFLAGS"
10687 am_save_LIBS
="$LIBS"
10688 CPPFLAGS
="$LIBS $INCICONV"
10689 LIBS
="$LIBS $LIBICONV"
10690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 #include <stdlib.h>
10697 iconv_t cd = iconv_open("","");
10698 iconv(cd,NULL,NULL,NULL,NULL);
10704 if ac_fn_cxx_try_link
"$LINENO"; then :
10705 am_cv_lib_iconv
=yes
10706 am_cv_func_iconv
=yes
10708 rm -f core conftest.err conftest.
$ac_objext \
10709 conftest
$ac_exeext conftest.
$ac_ext
10710 CPPFLAGS
="$am_save_CPPFLAGS"
10711 LIBS
="$am_save_LIBS"
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10716 $as_echo "$am_cv_func_iconv" >&6; }
10717 if test "$am_cv_func_iconv" = yes; then
10719 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10722 if test "$am_cv_lib_iconv" = yes; then
10724 for element
in $INCICONV; do
10726 for x
in $CPPFLAGS; do
10728 acl_save_prefix
="$prefix"
10729 prefix
="$acl_final_prefix"
10730 acl_save_exec_prefix
="$exec_prefix"
10731 exec_prefix
="$acl_final_exec_prefix"
10733 exec_prefix
="$acl_save_exec_prefix"
10734 prefix
="$acl_save_prefix"
10736 if test "X$x" = "X$element"; then
10741 if test -z "$haveit"; then
10742 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10747 $as_echo_n "checking how to link with libiconv... " >&6; }
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10749 $as_echo "$LIBICONV" >&6; }
10757 if test "$am_cv_func_iconv" = yes; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10759 $as_echo_n "checking for iconv declaration... " >&6; }
10760 if test "${am_cv_proto_iconv+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10767 #include <stdlib.h>
10773 #if defined(__STDC__) || defined(__cplusplus)
10774 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10787 if ac_fn_cxx_try_compile
"$LINENO"; then :
10788 am_cv_proto_iconv_arg1
=""
10790 am_cv_proto_iconv_arg1
="const"
10792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10793 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);"
10796 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10798 }$am_cv_proto_iconv" >&5
10800 }$am_cv_proto_iconv" >&6; }
10802 cat >>confdefs.h
<<_ACEOF
10803 #define ICONV_CONST $am_cv_proto_iconv_arg1
10809 # Until we have in-tree GNU iconv:
10811 if test -f "$LTLIBICONV"; then
10812 LIBICONV_DEP
=$LTLIBICONV
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10818 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10819 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 #include <locale.h>
10833 if ac_fn_cxx_try_link
"$LINENO"; then :
10834 am_cv_val_LC_MESSAGES
=yes
10836 am_cv_val_LC_MESSAGES
=no
10838 rm -f core conftest.err conftest.
$ac_objext \
10839 conftest
$ac_exeext conftest.
$ac_ext
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10842 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10843 if test $am_cv_val_LC_MESSAGES = yes; then
10845 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10852 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10853 if test "${am_cv_langinfo_codeset+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858 #include <langinfo.h>
10862 char* cs = nl_langinfo(CODESET);
10867 if ac_fn_cxx_try_link
"$LINENO"; then :
10868 am_cv_langinfo_codeset
=yes
10870 am_cv_langinfo_codeset
=no
10872 rm -f core conftest.err conftest.
$ac_objext \
10873 conftest
$ac_exeext conftest.
$ac_ext
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10877 $as_echo "$am_cv_langinfo_codeset" >&6; }
10878 if test $am_cv_langinfo_codeset = yes; then
10880 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10885 # We will need to find libiberty.h and ansidecl.h
10886 saved_CFLAGS
="$CFLAGS"
10887 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10888 saved_CXXFLAGS
="$CXXFLAGS"
10889 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10891 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10892 # normal autoconf function for these. But force definition of
10893 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10894 # basename handling in libiberty.h.
10895 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10896 #undef HAVE_DECL_BASENAME
10897 #define HAVE_DECL_BASENAME 1
10898 #include \"ansidecl.h\"
10899 #include \"system.h\"
10901 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10907 cat >>confdefs.h
<<_ACEOF
10908 #define HAVE_DECL_BASENAME $ac_have_decl
10910 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10911 #undef HAVE_DECL_BASENAME
10912 #define HAVE_DECL_BASENAME 1
10913 #include \"ansidecl.h\"
10914 #include \"system.h\"
10916 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10922 cat >>confdefs.h
<<_ACEOF
10923 #define HAVE_DECL_STRSTR $ac_have_decl
10927 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10928 madvise stpcpy strnlen strsignal strverscmp \
10929 strtol strtoul strtoll strtoull setenv unsetenv \
10930 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10931 free 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
10933 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10935 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10936 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10937 $as_echo_n "(cached) " >&6
10939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10942 #define $ac_tr_decl 1
10944 #include "ansidecl.h"
10945 #include "system.h"
10951 char *(*pfn) = (char *(*)) $ac_func ;
10957 if ac_fn_cxx_try_compile
"$LINENO"; then :
10958 eval "gcc_cv_have_decl_$ac_func=yes"
10960 eval "gcc_cv_have_decl_$ac_func=no"
10962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10965 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10968 #define $ac_tr_decl 1
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10974 #define $ac_tr_decl 0
10982 for ac_func
in getrlimit setrlimit getrusage
10984 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10986 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10987 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10988 $as_echo_n "(cached) " >&6
10990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 #define $ac_tr_decl 1
10995 #include "ansidecl.h"
10996 #include "system.h"
10997 #ifdef HAVE_SYS_RESOURCE_H
10998 #include <sys/resource.h>
11006 char *(*pfn) = (char *(*)) $ac_func ;
11012 if ac_fn_cxx_try_compile
"$LINENO"; then :
11013 eval "gcc_cv_have_decl_$ac_func=yes"
11015 eval "gcc_cv_have_decl_$ac_func=no"
11017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11020 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11022 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11023 #define $ac_tr_decl 1
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11029 #define $ac_tr_decl 0
11037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11040 #include "ansidecl.h"
11041 #include "system.h"
11042 #ifdef HAVE_SYS_RESOURCE_H
11043 #include <sys/resource.h>
11054 if ac_fn_cxx_try_compile
"$LINENO"; then :
11058 $as_echo "#define rlim_t long" >>confdefs.h
11061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11063 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11064 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11065 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11066 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11067 for ac_func
in ldgetname
11069 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11071 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11072 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11073 $as_echo_n "(cached) " >&6
11075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11078 #define $ac_tr_decl 1
11080 #include "ansidecl.h"
11081 #include "system.h"
11082 #ifdef HAVE_LDFCN_H
11093 char *(*pfn) = (char *(*)) $ac_func ;
11099 if ac_fn_cxx_try_compile
"$LINENO"; then :
11100 eval "gcc_cv_have_decl_$ac_func=yes"
11102 eval "gcc_cv_have_decl_$ac_func=no"
11104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11107 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11109 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11110 #define $ac_tr_decl 1
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11116 #define $ac_tr_decl 0
11124 for ac_func
in times
11126 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11128 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11129 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11130 $as_echo_n "(cached) " >&6
11132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11135 #define $ac_tr_decl 1
11137 #include "ansidecl.h"
11138 #include "system.h"
11139 #ifdef HAVE_SYS_TIMES_H
11140 #include <sys/times.h>
11148 char *(*pfn) = (char *(*)) $ac_func ;
11154 if ac_fn_cxx_try_compile
"$LINENO"; then :
11155 eval "gcc_cv_have_decl_$ac_func=yes"
11157 eval "gcc_cv_have_decl_$ac_func=no"
11159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11162 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11164 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11165 #define $ac_tr_decl 1
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11171 #define $ac_tr_decl 0
11179 for ac_func
in sigaltstack
11181 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11183 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11184 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11185 $as_echo_n "(cached) " >&6
11187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11190 #define $ac_tr_decl 1
11192 #include "ansidecl.h"
11193 #include "system.h"
11194 #include <signal.h>
11201 char *(*pfn) = (char *(*)) $ac_func ;
11207 if ac_fn_cxx_try_compile
"$LINENO"; then :
11208 eval "gcc_cv_have_decl_$ac_func=yes"
11210 eval "gcc_cv_have_decl_$ac_func=no"
11212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11215 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11217 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11218 #define $ac_tr_decl 1
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11224 #define $ac_tr_decl 0
11232 # More time-related stuff.
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11234 $as_echo_n "checking for struct tms... " >&6; }
11235 if test "${ac_cv_struct_tms+set}" = set; then :
11236 $as_echo_n "(cached) " >&6
11239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11242 #include "ansidecl.h"
11243 #include "system.h"
11244 #ifdef HAVE_SYS_TIMES_H
11245 #include <sys/times.h>
11256 if ac_fn_cxx_try_compile
"$LINENO"; then :
11257 ac_cv_struct_tms
=yes
11259 ac_cv_struct_tms
=no
11261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11264 $as_echo "$ac_cv_struct_tms" >&6; }
11265 if test $ac_cv_struct_tms = yes; then
11267 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11271 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11272 # revisit after autoconf 2.50.
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11274 $as_echo_n "checking for clock_t... " >&6; }
11275 if test "${gcc_cv_type_clock_t+set}" = set; then :
11276 $as_echo_n "(cached) " >&6
11279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11282 #include "ansidecl.h"
11283 #include "system.h"
11293 if ac_fn_cxx_try_compile
"$LINENO"; then :
11294 gcc_cv_type_clock_t
=yes
11296 gcc_cv_type_clock_t
=no
11298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11301 $as_echo "$gcc_cv_type_clock_t" >&6; }
11302 if test $gcc_cv_type_clock_t = yes; then
11304 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11308 # Check if F_SETLKW is supported by fcntl.
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11310 $as_echo_n "checking for F_SETLKW... " >&6; }
11311 if test "${ac_cv_f_setlkw+set}" = set; then :
11312 $as_echo_n "(cached) " >&6
11315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11328 return fcntl (1, F_SETLKW, &fl);
11333 if ac_fn_cxx_try_compile
"$LINENO"; then :
11338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11341 $as_echo "$ac_cv_f_setlkw" >&6; }
11342 if test $ac_cv_f_setlkw = yes; then
11344 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11348 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11349 CFLAGS
="$saved_CFLAGS"
11350 CXXFLAGS
="$saved_CXXFLAGS"
11352 # mkdir takes a single argument on some systems.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11354 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11355 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11361 #include <sys/types.h>
11362 #ifdef HAVE_SYS_STAT_H
11363 # include <sys/stat.h>
11365 #ifdef HAVE_UNISTD_H
11366 # include <unistd.h>
11368 #ifdef HAVE_DIRECT_H
11369 # include <direct.h>
11379 if ac_fn_cxx_try_compile
"$LINENO"; then :
11380 gcc_cv_mkdir_takes_one_arg
=no
11382 gcc_cv_mkdir_takes_one_arg
=yes
11384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11387 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11388 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11390 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11401 # With Setjmp/Longjmp based exception handling.
11402 # Check whether --enable-sjlj-exceptions was given.
11403 if test "${enable_sjlj_exceptions+set}" = set; then :
11404 enableval
=$enable_sjlj_exceptions; case $target in
11406 if test $enableval != yes; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11408 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11413 force_sjlj_exceptions
=yes
11417 force_sjlj_exceptions
=yes
11421 force_sjlj_exceptions
=yes
11425 force_sjlj_exceptions
=no
11430 if test $force_sjlj_exceptions = yes; then
11431 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11433 cat >>confdefs.h
<<_ACEOF
11434 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11439 # --------------------------------------------------------
11440 # Build, host, and target specific configuration fragments
11441 # --------------------------------------------------------
11443 # Collect build-machine-specific information.
11444 .
${srcdir}/config.build
11446 # Collect host-machine-specific information.
11447 .
${srcdir}/config.
host
11451 # Collect target-machine-specific information.
11452 .
${srcdir}/config.gcc
11454 extra_objs
="${host_extra_objs} ${extra_objs}"
11455 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11457 # Default the target-machine variables that were not explicitly set.
11458 if test x
"$tm_file" = x
11459 then tm_file
=$cpu_type/$cpu_type.h
; fi
11461 if test x
"$extra_headers" = x
11462 then extra_headers
=; fi
11464 if test x
$md_file = x
11465 then md_file
=$cpu_type/$cpu_type.md
; fi
11467 if test x
$out_file = x
11468 then out_file
=$cpu_type/$cpu_type.c
; fi
11470 if test x
"$tmake_file" = x
11471 then tmake_file
=$cpu_type/t-
$cpu_type
11474 # Support --enable-initfini-array.
11475 if test x
$enable_initfini_array != xno
; then
11476 tm_file
="${tm_file} initfini-array.h"
11479 if test x
"$dwarf2" = xyes
11480 then tm_file
="$tm_file tm-dwarf2.h"
11483 # Say what files are being used for the output code and MD file.
11484 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11485 echo "Using \`$srcdir/config/$md_file' as machine description file."
11487 # If any of the xm_file variables contain nonexistent files, warn
11488 # about them and drop them.
11491 for x
in $build_xm_file; do
11492 if test -f $srcdir/config
/$x
11494 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11495 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11498 build_xm_file
="$bx"
11501 for x
in $host_xm_file; do
11502 if test -f $srcdir/config
/$x
11504 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11505 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11511 for x
in $xm_file; do
11512 if test -f $srcdir/config
/$x
11514 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11515 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11521 for f
in $tm_file; do
11524 if test $count = ax
; then
11525 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11527 echo "Using the following target machine macro files:"
11528 for f
in $tm_file; do
11529 echo " $srcdir/config/$f"
11533 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11535 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11539 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11541 cat >>confdefs.h
<<_ACEOF
11542 #define HAVE_GNU_LD $gnu_ld_bool
11546 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11548 cat >>confdefs.h
<<_ACEOF
11549 #define HAVE_GNU_AS $gnu_as_bool
11554 for f
in $host_xm_file; do
11557 if test $count = a
; then
11559 elif test $count = ax
; then
11560 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11562 echo "Using the following host machine macro files:"
11563 for f
in $host_xm_file; do
11564 echo " $srcdir/config/$f"
11567 echo "Using ${out_host_hook_obj} for host machine hooks."
11569 if test "$host_xm_file" != "$build_xm_file"; then
11571 for f
in $build_xm_file; do
11574 if test $count = a
; then
11576 elif test $count = ax
; then
11577 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11579 echo "Using the following build machine macro files:"
11580 for f
in $build_xm_file; do
11581 echo " $srcdir/config/$f"
11586 if test -n "$configured_native_system_header_dir"; then
11587 native_system_header_dir
=$configured_native_system_header_dir
11589 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11593 powerpc
*-*-darwin*)
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11595 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11596 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11602 #include <sys/cdefs.h>
11603 #include <sys/signal.h>
11604 #include <ucontext.h>
11605 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11608 if ac_fn_cxx_try_compile
"$LINENO"; then :
11609 gcc_cv_mcontext_underscores
=no
11611 gcc_cv_mcontext_underscores
=yes
11613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11616 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11617 if test $gcc_cv_mcontext_underscores = yes; then
11619 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11629 # Check if a valid thread package
11630 case ${enable_threads} in
11633 target_thread_file
='single'
11637 target_thread_file
='single'
11639 aix | dce | lynx | mipssde | posix | rtems | \
11640 single | tpf | vxworks | win32
)
11641 target_thread_file
=${enable_threads}
11644 echo "${enable_threads} is an unknown thread package" 1>&2
11649 if test x
${thread_file} = x
; then
11650 # No thread file set by target-specific clauses in config.gcc,
11651 # so use file chosen by default logic above
11652 thread_file
=${target_thread_file}
11660 if test x
$enable___cxa_atexit = xyes || \
11661 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11662 if test x
$host = x
$target; then
11664 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11665 # keyed to flag_use_cxa_atexit
11673 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11674 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11677 echo "__cxa_atexit can't be enabled on this target"
11683 # We can't check for __cxa_atexit when building a cross, so assume
11687 if test x
$use_cxa_atexit = xyes
; then
11689 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11694 # Look for a file containing extra machine modes.
11695 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11696 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11699 cat >>confdefs.h
<<_ACEOF
11700 #define EXTRA_MODES_FILE "config/$extra_modes"
11705 # Convert extra_options into a form suitable for Makefile use.
11708 for f
in $extra_options; do
11709 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11710 all_opt_files
="$all_opt_files $srcdir/config/$f"
11714 # auto-host.h is the file containing items generated by autoconf and is
11715 # the first file included by config.h.
11716 # If host=build, it is correct to have bconfig include auto-host.h
11717 # as well. If host!=build, we are in error and need to do more
11718 # work to find out the build config parameters.
11719 if test x
$host = x
$build
11721 build_auto
=auto-host.h
11723 # We create a subdir, then run autoconf in the subdir.
11724 # To prevent recursion we set host and build for the new
11725 # invocation of configure to the build for this invocation
11732 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11733 *) realsrcdir
=..
/${srcdir};;
11735 # Clearing GMPINC is necessary to prevent host headers being
11736 # used by the build compiler. Defining GENERATOR_FILE stops
11737 # system.h from including gmp.h.
11738 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11739 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11740 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11741 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11742 ${realsrcdir}/configure \
11743 --enable-languages=${enable_languages-all} \
11744 --target=$target_alias --host=$build_alias --build=$build_alias
11746 # We just finished tests for the build machine, so rename
11747 # the file auto-build.h in the gcc directory.
11748 mv auto-host.h ..
/auto-build.h
11751 build_auto
=auto-build.h
11755 tm_file
="${tm_file} defaults.h"
11756 tm_p_file
="${tm_p_file} tm-preds.h"
11757 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11758 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11759 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11760 # put this back in temporarily.
11761 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11767 # Compile in configure arguments.
11768 if test -f configargs.h
; then
11769 # Being re-configured.
11770 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11771 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11773 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11776 # Double all backslashes and backslash all quotes to turn
11777 # gcc_config_arguments into a C string.
11778 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11779 $gcc_config_arguments
11781 gcc_config_arguments_str
=`cat conftest.out`
11784 cat > configargs.h
<<EOF
11785 /* Generated automatically. */
11786 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11787 static const char thread_model[] = "$thread_file";
11789 static const struct {
11790 const char *name, *value;
11791 } configure_default_options[] = $configure_default_options;
11794 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11795 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11796 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11797 if test -f $srcdir/REVISION
; then
11798 gcc_REVISION
=`cat $srcdir/REVISION`
11802 cat > plugin-version.h
<<EOF
11803 #include "configargs.h"
11805 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11806 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11807 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11808 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11810 static char basever[] = "$gcc_BASEVER";
11811 static char datestamp[] = "$gcc_DATESTAMP";
11812 static char devphase[] = "$gcc_DEVPHASE";
11813 static char revision[] = "$gcc_REVISION";
11815 /* FIXME plugins: We should make the version information more precise.
11816 One way to do is to add a checksum. */
11818 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11819 devphase, revision,
11820 configuration_arguments};
11823 # Internationalization
11824 # If we haven't got the data from the intl directory,
11825 # assume NLS is disabled.
11834 if test -f ..
/intl
/config.intl
; then
11835 . ..
/intl
/config.intl
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11838 $as_echo_n "checking whether NLS is requested... " >&6; }
11839 if test x
"$USE_NLS" != xyes
; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11844 $as_echo "yes" >&6; }
11846 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11850 $as_echo_n "checking for catalogs to be installed... " >&6; }
11851 # Look for .po and .gmo files in the source directory.
11854 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11855 # If there aren't any .gmo files the shell will give us the
11856 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11858 case "$cat" in *\
**)
11861 # The quadruple backslash is collapsed to a double backslash
11862 # by the backticks, then collapsed again by the double quotes,
11863 # leaving us with one backslash in the sed expression (right
11864 # before the dot that mustn't act as a wildcard).
11865 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11866 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11867 # The user is allowed to set LINGUAS to a list of languages to
11868 # install catalogs for. If it's empty that means "all of them."
11869 if test "x$LINGUAS" = x
; then
11870 CATALOGS
="$CATALOGS $cat"
11871 XLINGUAS
="$XLINGUAS $lang"
11873 case "$LINGUAS" in *$lang*)
11874 CATALOGS
="$CATALOGS $cat"
11875 XLINGUAS
="$XLINGUAS $lang"
11880 LINGUAS
="$XLINGUAS"
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11882 $as_echo "$LINGUAS" >&6; }
11895 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11896 # -liconv on the link line twice.
11897 case "$LIBINTL" in *$LIBICONV*)
11901 # Check whether --enable-secureplt was given.
11902 if test "${enable_secureplt+set}" = set; then :
11903 enableval
=$enable_secureplt;
11907 # Check whether --enable-leading-mingw64-underscores was given.
11908 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11909 enableval
=$enable_leading_mingw64_underscores;
11912 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11914 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11918 # Check whether --enable-cld was given.
11919 if test "${enable_cld+set}" = set; then :
11920 enableval
=$enable_cld;
11926 # Check whether --enable-frame-pointer was given.
11927 if test "${enable_frame_pointer+set}" = set; then :
11928 enableval
=$enable_frame_pointer;
11932 linux
* | darwin
[8912]*)
11933 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11935 enable_frame_pointer
=no
11938 enable_frame_pointer
=yes
11945 # Windows32 Registry support for specifying GCC installation paths.
11946 # Check whether --enable-win32-registry was given.
11947 if test "${enable_win32_registry+set}" = set; then :
11948 enableval
=$enable_win32_registry;
11953 win32 | pe | cygwin
* | mingw32
*)
11954 if test "x$enable_win32_registry" != xno
; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11956 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11957 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11960 ac_func_search_save_LIBS
=$LIBS
11961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11970 char RegOpenKeyExA ();
11974 return RegOpenKeyExA ();
11979 for ac_lib
in '' advapi32
; do
11980 if test -z "$ac_lib"; then
11981 ac_res
="none required"
11984 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11986 if ac_fn_cxx_try_link
"$LINENO"; then :
11987 ac_cv_search_RegOpenKeyExA
=$ac_res
11989 rm -f core conftest.err conftest.
$ac_objext \
11991 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11995 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11998 ac_cv_search_RegOpenKeyExA
=no
12000 rm conftest.
$ac_ext
12001 LIBS
=$ac_func_search_save_LIBS
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12004 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12005 ac_res
=$ac_cv_search_RegOpenKeyExA
12006 if test "$ac_res" != no
; then :
12007 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12010 enable_win32_registry
=no
12015 if test "x$enable_win32_registry" != xno
; then
12017 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12020 if test "x$enable_win32_registry" != xyes \
12021 && test "x$enable_win32_registry" != x
; then
12023 cat >>confdefs.h
<<_ACEOF
12024 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12032 # Get an absolute path to the GCC top-level source directory
12033 holddir
=`${PWDCMD-pwd}`
12035 topdir
=`${PWDCMD-pwd}`
12038 # Conditionalize the makefile for this host machine.
12040 for f
in ${host_xmake_file}
12042 if test -f ${srcdir}/config
/$f
12044 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12048 # Conditionalize the makefile for this target machine.
12050 for f
in ${tmake_file}
12052 if test -f ${srcdir}/config
/$f
12054 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12057 tmake_file
="${tmake_file_}"
12059 out_object_file
=`basename $out_file .c`.o
12060 common_out_object_file
=`basename $common_out_file .c`.o
12062 tm_file_list
="options.h"
12063 tm_include_list
="options.h insn-constants.h"
12064 for f
in $tm_file; do
12067 f
=`echo $f | sed 's/^..//'`
12068 tm_file_list
="${tm_file_list} $f"
12069 tm_include_list
="${tm_include_list} $f"
12072 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12073 tm_include_list
="${tm_include_list} $f"
12076 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12077 tm_include_list
="${tm_include_list} config/$f"
12084 for f
in $tm_p_file; do
12087 tm_p_file_list
="${tm_p_file_list} $f"
12088 tm_p_include_list
="${tm_p_include_list} $f"
12091 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12092 tm_p_include_list
="${tm_p_include_list} config/$f"
12098 for f
in $xm_file; do
12101 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12102 xm_include_list
="${xm_include_list} $f"
12105 xm_file_list
="${xm_file_list} $f"
12106 xm_include_list
="${xm_include_list} $f"
12109 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12110 xm_include_list
="${xm_include_list} config/$f"
12116 host_xm_include_list
=
12117 for f
in $host_xm_file; do
12120 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12121 host_xm_include_list
="${host_xm_include_list} $f"
12124 host_xm_file_list
="${host_xm_file_list} $f"
12125 host_xm_include_list
="${host_xm_include_list} $f"
12128 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12129 host_xm_include_list
="${host_xm_include_list} config/$f"
12134 build_xm_file_list
=
12135 for f
in $build_xm_file; do
12138 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12139 build_xm_include_list
="${build_xm_include_list} $f"
12141 auto-build.h | auto-host.h
)
12142 build_xm_file_list
="${build_xm_file_list} $f"
12143 build_xm_include_list
="${build_xm_include_list} $f"
12146 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12147 build_xm_include_list
="${build_xm_include_list} config/$f"
12152 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12153 # cross-compiler which does not use the native headers and libraries.
12154 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12157 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12159 if test "x$with_build_sysroot" != x
; then
12160 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12162 # This value is used, even on a native system, because
12163 # CROSS_SYSTEM_HEADER_DIR is just
12164 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12165 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12168 if test x
$host != x
$target
12170 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12172 SYSTEM_HEADER_DIR
=$build_system_header_dir
12173 case "$host","$target" in
12174 # Darwin crosses can use the host system's libraries and headers,
12175 # because of the fat library support. Of course, it must be the
12176 # same version of Darwin on both sides. Allow the user to
12177 # just say --target=foo-darwin without a version number to mean
12178 # "the version on this system".
12179 *-*-darwin*,*-*-darwin*)
12180 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12181 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12182 if test $hostos = $targetos -o $targetos = darwin
; then
12184 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12189 i?
86-*-*,x86_64-
*-* \
12190 | powerpc
*-*-*,powerpc64
*-*-*)
12191 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12196 if test "x$with_headers" = x
; then
12203 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12204 SYSTEM_HEADER_DIR
=$build_system_header_dir
12207 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12208 if test "x$with_headers" != x
; then
12209 target_header_dir
=$with_headers
12210 elif test "x$with_sysroot" = x
; then
12211 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12212 elif test "x$with_build_sysroot" != "x"; then
12213 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12214 elif test "x$with_sysroot" = xyes
; then
12215 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12217 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12220 target_header_dir
=${native_system_header_dir}
12223 # If this is a cross-compiler that does not
12224 # have its own set of headers then define
12227 # If this is using newlib, without having the headers available now,
12228 # then define inhibit_libc in LIBGCC2_CFLAGS.
12229 # This prevents libgcc2 from containing any code which requires libc
12231 : ${inhibit_libc=false}
12232 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12233 test x
$with_newlib = xyes
; } &&
12234 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12239 # When building gcc with a cross-compiler, we need to adjust things so
12240 # that the generator programs are still built with the native compiler.
12241 # Also, we cannot run fixincludes.
12243 # These are the normal (build=host) settings:
12244 CC_FOR_BUILD
='$(CC)'
12245 CXX_FOR_BUILD
='$(CXX)'
12246 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12247 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12248 BUILD_LDFLAGS
='$(LDFLAGS)'
12249 STMP_FIXINC
=stmp-fixinc
12251 # And these apply if build != host, or we are generating coverage data
12252 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12254 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12255 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12256 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12259 # Expand extra_headers to include complete path.
12260 # This substitutes for lots of t-* files.
12261 extra_headers_list
=
12262 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12263 for file in ${extra_headers} ; do
12264 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12267 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12268 if test x
"$use_gcc_tgmath" = xyes
12269 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12272 # Define collect2 in Makefile.
12273 case $host_can_use_collect2 in
12275 *) collect2
='collect2$(exeext)' ;;
12279 # Add a definition of USE_COLLECT2 if system wants one.
12280 case $use_collect2 in
12281 no
) use_collect2
= ;;
12284 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12285 xm_defines
="${xm_defines} USE_COLLECT2"
12286 case $host_can_use_collect2 in
12288 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12295 cat >>confdefs.h
<<_ACEOF
12296 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12300 # ---------------------------
12301 # Assembler & linker features
12302 # ---------------------------
12304 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12305 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12306 # However when ld-new is first executed from the build tree, libtool will
12307 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12308 # to the build tree. While doing this we need to use the previous-stage
12309 # linker, or we have an infinite loop. The presence of a shell script as
12310 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12311 # the gcc/collect-ld script. So we need to know how libtool works, or
12312 # exec-tool will fail.
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12318 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12323 macro_version
='2.2.7a'
12324 macro_revision
='1.3134'
12338 ltmain
="$ac_aux_dir/ltmain.sh"
12340 # Backslashify metacharacters that are still active within
12341 # double-quoted strings.
12342 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12344 # Same as above, but do not quote variable references.
12345 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12347 # Sed substitution to delay expansion of an escaped shell variable in a
12348 # double_quote_subst'ed string.
12349 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12351 # Sed substitution to delay expansion of an escaped single quote.
12352 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12354 # Sed substitution to avoid accidental globbing in evaled expressions
12355 no_glob_subst
='s/\*/\\\*/g'
12357 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12359 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12362 $as_echo_n "checking how to print strings... " >&6; }
12363 # Test print first, because it will be a builtin if present.
12364 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12365 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12367 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12370 # Use this function as a fallback that always works.
12371 func_fallback_echo ()
12373 eval 'cat <<_LTECHO_EOF
12377 ECHO='func_fallback_echo
'
12380 # func_echo_all arg...
12381 # Invoke $ECHO with all args, space-separated.
12388 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12389 $as_echo "printf" >&6; } ;;
12390 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12391 $as_echo "print -r" >&6; } ;;
12392 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12393 $as_echo "cat" >&6; } ;;
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12410 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12411 if test "${ac_cv_path_SED+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12414 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12415 for ac_i in 1 2 3 4 5 6 7; do
12416 ac_script="$ac_script$as_nl$ac_script"
12418 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12419 { ac_script=; unset ac_script;}
12420 if test -z "$SED"; then
12421 ac_path_SED_found=false
12422 # Loop through the user's path and
test for each of PROGNAME-LIST
12423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12424 for as_dir
in $PATH
12427 test -z "$as_dir" && as_dir
=.
12428 for ac_prog
in sed gsed
; do
12429 for ac_exec_ext
in '' $ac_executable_extensions; do
12430 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12431 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12432 # Check for GNU ac_path_SED and select it if it is found.
12433 # Check for GNU $ac_path_SED
12434 case `"$ac_path_SED" --version 2>&1` in
12436 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12439 $as_echo_n 0123456789 >"conftest.in"
12442 cat "conftest.in" "conftest.in" >"conftest.tmp"
12443 mv "conftest.tmp" "conftest.in"
12444 cp "conftest.in" "conftest.nl"
12445 $as_echo '' >> "conftest.nl"
12446 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12447 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12448 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12449 if test $ac_count -gt ${ac_path_SED_max-0}; then
12450 # Best one so far, save it but keep looking for a better one
12451 ac_cv_path_SED
="$ac_path_SED"
12452 ac_path_SED_max
=$ac_count
12454 # 10*(2^10) chars as input seems more than enough
12455 test $ac_count -gt 10 && break
12457 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12460 $ac_path_SED_found && break 3
12465 if test -z "$ac_cv_path_SED"; then
12466 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12469 ac_cv_path_SED
=$SED
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12474 $as_echo "$ac_cv_path_SED" >&6; }
12475 SED
="$ac_cv_path_SED"
12478 test -z "$SED" && SED
=sed
12479 Xsed
="$SED -e 1s/^X//"
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12492 $as_echo_n "checking for fgrep... " >&6; }
12493 if test "${ac_cv_path_FGREP+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12496 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12497 then ac_cv_path_FGREP
="$GREP -F"
12499 if test -z "$FGREP"; then
12500 ac_path_FGREP_found
=false
12501 # Loop through the user's path and test for each of PROGNAME-LIST
12502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12503 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12506 test -z "$as_dir" && as_dir
=.
12507 for ac_prog
in fgrep
; do
12508 for ac_exec_ext
in '' $ac_executable_extensions; do
12509 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12510 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12511 # Check for GNU ac_path_FGREP and select it if it is found.
12512 # Check for GNU $ac_path_FGREP
12513 case `"$ac_path_FGREP" --version 2>&1` in
12515 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12518 $as_echo_n 0123456789 >"conftest.in"
12521 cat "conftest.in" "conftest.in" >"conftest.tmp"
12522 mv "conftest.tmp" "conftest.in"
12523 cp "conftest.in" "conftest.nl"
12524 $as_echo 'FGREP' >> "conftest.nl"
12525 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12526 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12527 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12528 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12529 # Best one so far, save it but keep looking for a better one
12530 ac_cv_path_FGREP
="$ac_path_FGREP"
12531 ac_path_FGREP_max
=$ac_count
12533 # 10*(2^10) chars as input seems more than enough
12534 test $ac_count -gt 10 && break
12536 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12539 $ac_path_FGREP_found && break 3
12544 if test -z "$ac_cv_path_FGREP"; then
12545 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12548 ac_cv_path_FGREP
=$FGREP
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12554 $as_echo "$ac_cv_path_FGREP" >&6; }
12555 FGREP
="$ac_cv_path_FGREP"
12558 test -z "$GREP" && GREP
=grep
12578 # Check whether --with-gnu-ld was given.
12579 if test "${with_gnu_ld+set}" = set; then :
12580 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12586 if test "$GCC" = yes; then
12587 # Check if gcc -print-prog-name=ld gives a path.
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12589 $as_echo_n "checking for ld used by $CC... " >&6; }
12592 # gcc leaves a trailing carriage return which upsets mingw
12593 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12595 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12598 # Accept absolute paths.
12600 re_direlt
='/[^/][^/]*/\.\./'
12601 # Canonicalize the pathname of ld
12602 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12603 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12604 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12606 test -z "$LD" && LD
="$ac_prog"
12609 # If it fails, then pretend we aren't using GCC.
12613 # If it is relative, then search for the first ld in PATH.
12614 with_gnu_ld
=unknown
12617 elif test "$with_gnu_ld" = yes; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12619 $as_echo_n "checking for GNU ld... " >&6; }
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12622 $as_echo_n "checking for non-GNU ld... " >&6; }
12624 if test "${lt_cv_path_LD+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
12627 if test -z "$LD"; then
12628 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12629 for ac_dir
in $PATH; do
12631 test -z "$ac_dir" && ac_dir
=.
12632 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12633 lt_cv_path_LD
="$ac_dir/$ac_prog"
12634 # Check to see if the program is GNU ld. I'd rather use --version,
12635 # but apparently some variants of GNU ld only accept -v.
12636 # Break only if it was the GNU/non-GNU ld that we prefer.
12637 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12638 *GNU
* |
*'with BFD'*)
12639 test "$with_gnu_ld" != no
&& break
12642 test "$with_gnu_ld" != yes && break
12649 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12653 LD
="$lt_cv_path_LD"
12654 if test -n "$LD"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12656 $as_echo "$LD" >&6; }
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12661 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12663 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12664 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12665 $as_echo_n "(cached) " >&6
12667 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12668 case `$LD -v 2>&1 </dev/null` in
12669 *GNU
* |
*'with BFD'*)
12670 lt_cv_prog_gnu_ld
=yes
12673 lt_cv_prog_gnu_ld
=no
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12678 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12679 with_gnu_ld
=$lt_cv_prog_gnu_ld
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12690 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12691 if test "${lt_cv_path_NM+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12694 if test -n "$NM"; then
12695 # Let the user override the test.
12696 lt_cv_path_NM
="$NM"
12698 lt_nm_to_check
="${ac_tool_prefix}nm"
12699 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12700 lt_nm_to_check
="$lt_nm_to_check nm"
12702 for lt_tmp_nm
in $lt_nm_to_check; do
12703 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12704 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12706 test -z "$ac_dir" && ac_dir
=.
12707 tmp_nm
="$ac_dir/$lt_tmp_nm"
12708 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12709 # Check to see if the nm accepts a BSD-compat flag.
12710 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12711 # nm: unknown option "B" ignored
12712 # Tru64's nm complains that /dev/null is an invalid object file
12713 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12714 */dev
/null
* |
*'Invalid file or object type'*)
12715 lt_cv_path_NM
="$tmp_nm -B"
12719 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12721 lt_cv_path_NM
="$tmp_nm -p"
12725 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12726 continue # so that we can try to find one that supports BSD flags
12735 : ${lt_cv_path_NM=no}
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12739 $as_echo "$lt_cv_path_NM" >&6; }
12740 if test "$lt_cv_path_NM" != "no"; then
12741 NM
="$lt_cv_path_NM"
12743 # Didn't find any BSD compatible name lister, look for dumpbin.
12744 if test -n "$DUMPBIN"; then :
12745 # Let the user override the test.
12747 if test -n "$ac_tool_prefix"; then
12748 for ac_prog
in dumpbin
"link -dump"
12750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12751 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12757 if test -n "$DUMPBIN"; then
12758 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12761 for as_dir
in $PATH
12764 test -z "$as_dir" && as_dir
=.
12765 for ac_exec_ext
in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 DUMPBIN
=$ac_cv_prog_DUMPBIN
12778 if test -n "$DUMPBIN"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12780 $as_echo "$DUMPBIN" >&6; }
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12787 test -n "$DUMPBIN" && break
12790 if test -z "$DUMPBIN"; then
12791 ac_ct_DUMPBIN
=$DUMPBIN
12792 for ac_prog
in dumpbin
"link -dump"
12794 # Extract the first word of "$ac_prog", so it can be a program name with args.
12795 set dummy
$ac_prog; ac_word
=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12801 if test -n "$ac_ct_DUMPBIN"; then
12802 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12805 for as_dir
in $PATH
12808 test -z "$as_dir" && as_dir
=.
12809 for ac_exec_ext
in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12822 if test -n "$ac_ct_DUMPBIN"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12824 $as_echo "$ac_ct_DUMPBIN" >&6; }
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12831 test -n "$ac_ct_DUMPBIN" && break
12834 if test "x$ac_ct_DUMPBIN" = x
; then
12837 case $cross_compiling:$ac_tool_warned in
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12841 ac_tool_warned
=yes ;;
12843 DUMPBIN
=$ac_ct_DUMPBIN
12847 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12849 DUMPBIN
="$DUMPBIN -symbols"
12857 if test "$DUMPBIN" != ":"; then
12861 test -z "$NM" && NM
=nm
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12869 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12870 if test "${lt_cv_nm_interface+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12873 lt_cv_nm_interface
="BSD nm"
12874 echo "int some_variable = 0;" > conftest.
$ac_ext
12875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12876 (eval "$ac_compile" 2>conftest.err
)
12877 cat conftest.err
>&5
12878 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12879 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12880 cat conftest.err
>&5
12881 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12882 cat conftest.out
>&5
12883 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12884 lt_cv_nm_interface
="MS dumpbin"
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12889 $as_echo "$lt_cv_nm_interface" >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12892 $as_echo_n "checking whether ln -s works... " >&6; }
12894 if test "$LN_S" = "ln -s"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12896 $as_echo "yes" >&6; }
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12899 $as_echo "no, using $LN_S" >&6; }
12902 # find the maximum length of command line arguments
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12904 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12905 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
12913 # On DJGPP, this test can blow up pretty badly due to problems in libc
12914 # (any single argument exceeding 2000 bytes causes a buffer overrun
12915 # during glob expansion). Even if it were fixed, the result of this
12916 # check would be larger than it should be.
12917 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12921 # Under GNU Hurd, this test is not required because there is
12922 # no limit to the length of command line arguments.
12923 # Libtool will interpret -1 as no limit whatsoever
12924 lt_cv_sys_max_cmd_len
=-1;
12927 cygwin
* | mingw
* | cegcc
*)
12928 # On Win9x/ME, this test blows up -- it succeeds, but takes
12929 # about 5 minutes as the teststring grows exponentially.
12930 # Worse, since 9x/ME are not pre-emptively multitasking,
12931 # you end up with a "frozen" computer, even though with patience
12932 # the test eventually succeeds (with a max line length of 256k).
12933 # Instead, let's just punt: use the minimum linelength reported by
12934 # all of the supported platforms: 8192 (on NT/2K/XP).
12935 lt_cv_sys_max_cmd_len
=8192;
12939 # On MiNT this can take a long time and run out of memory.
12940 lt_cv_sys_max_cmd_len
=8192;
12944 # On AmigaOS with pdksh, this test takes hours, literally.
12945 # So we just punt and use a minimum line length of 8192.
12946 lt_cv_sys_max_cmd_len
=8192;
12949 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12950 # This has been around since 386BSD, at least. Likely further.
12951 if test -x /sbin
/sysctl
; then
12952 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12953 elif test -x /usr
/sbin
/sysctl
; then
12954 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12956 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12958 # And add a safety zone
12959 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12960 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12964 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12965 lt_cv_sys_max_cmd_len
=196608
12969 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12970 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12971 # nice to cause kernel panics so lets avoid the loop below.
12972 # First set a reasonable default.
12973 lt_cv_sys_max_cmd_len
=16384
12975 if test -x /sbin
/sysconfig
; then
12976 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12977 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12982 lt_cv_sys_max_cmd_len
=102400
12984 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12985 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12986 if test -n "$kargmax"; then
12987 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12989 lt_cv_sys_max_cmd_len
=32768
12993 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12994 if test -n "$lt_cv_sys_max_cmd_len"; then
12995 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12996 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12998 # Make teststring a little bigger before we do anything with it.
12999 # a 1K string should be a reasonable start.
13000 for i
in 1 2 3 4 5 6 7 8 ; do
13001 teststring
=$teststring$teststring
13003 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13004 # If test is not a shell built-in, we'll probably end up computing a
13005 # maximum length that is only half of the actual maximum length, but
13007 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13008 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13009 test $i != 17 # 1/2 MB should be enough
13012 teststring
=$teststring$teststring
13014 # Only check the string length outside the loop.
13015 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13017 # Add a significant safety factor because C++ compilers can tack on
13018 # massive amounts of additional arguments before passing them to the
13019 # linker. It appears as though 1/2 is a usable value.
13020 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13027 if test -n $lt_cv_sys_max_cmd_len ; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13032 $as_echo "none" >&6; }
13034 max_cmd_len
=$lt_cv_sys_max_cmd_len
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13046 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13047 # Try some XSI features
13049 ( _lt_dummy
="a/b/c"
13050 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13052 && eval 'test $(( 1 + 1 )) -eq 2 \
13053 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13056 $as_echo "$xsi_shell" >&6; }
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13060 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13062 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13064 && lt_shell_append=yes
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13066 $as_echo "$lt_shell_append" >&6; }
13069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13079 # test EBCDIC or ASCII
13080 case `echo X|tr X '\101'` in
13081 A) # ASCII based system
13082 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13083 lt_SP2NL='tr \040 \012'
13084 lt_NL2SP='tr \015\012 \040\040'
13086 *) # EBCDIC based system
13087 lt_SP2NL='tr \100 \n'
13088 lt_NL2SP='tr \r\n \100\100'
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13101 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13102 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13103 $as_echo_n "(cached
) " >&6
13105 lt_cv_ld_reload_flag='-r'
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13108 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13109 reload_flag=$lt_cv_ld_reload_flag
13110 case $reload_flag in
13112 *) reload_flag=" $reload_flag" ;;
13114 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13117 if test "$GCC" = yes; then
13118 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13120 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13133 if test -n "$ac_tool_prefix"; then
13134 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13135 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13137 $as_echo_n "checking
for $ac_word...
" >&6; }
13138 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13139 $as_echo_n "(cached
) " >&6
13141 if test -n "$OBJDUMP"; then
13142 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13161 OBJDUMP=$ac_cv_prog_OBJDUMP
13162 if test -n "$OBJDUMP"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13164 $as_echo "$OBJDUMP" >&6; }
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13167 $as_echo "no
" >&6; }
13172 if test -z "$ac_cv_prog_OBJDUMP"; then
13173 ac_ct_OBJDUMP=$OBJDUMP
13174 # Extract the first word of "objdump
", so it can be a program name with args.
13175 set dummy objdump; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13177 $as_echo_n "checking
for $ac_word...
" >&6; }
13178 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13179 $as_echo_n "(cached
) " >&6
13181 if test -n "$ac_ct_OBJDUMP"; then
13182 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13191 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13201 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13202 if test -n "$ac_ct_OBJDUMP"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13204 $as_echo "$ac_ct_OBJDUMP" >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13207 $as_echo "no
" >&6; }
13210 if test "x
$ac_ct_OBJDUMP" = x; then
13213 case $cross_compiling:$ac_tool_warned in
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13216 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13217 ac_tool_warned=yes ;;
13219 OBJDUMP=$ac_ct_OBJDUMP
13222 OBJDUMP="$ac_cv_prog_OBJDUMP"
13225 test -z "$OBJDUMP" && OBJDUMP=objdump
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13236 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13237 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13238 $as_echo_n "(cached
) " >&6
13240 lt_cv_file_magic_cmd='$MAGIC_CMD'
13241 lt_cv_file_magic_test_file=
13242 lt_cv_deplibs_check_method='unknown'
13243 # Need to set the preceding variable on all platforms that support
13244 # interlibrary dependencies.
13245 # 'none' -- dependencies not supported.
13246 # `unknown' -- same as none, but documents that we really don't know.
13247 # 'pass_all' -- all dependencies passed with no checks.
13248 # 'test_compile' -- check by making test program.
13249 # 'file_magic [[regex]]' -- check by looking for files in library path
13250 # which responds to the $file_magic_cmd with a given extended regex.
13251 # If you have `file' or equivalent on your system and you're not sure
13252 # whether `pass_all' will *always* work, you probably want this one.
13256 lt_cv_deplibs_check_method=pass_all
13260 lt_cv_deplibs_check_method=pass_all
13264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13265 lt_cv_file_magic_cmd='/usr/bin/file -L'
13266 lt_cv_file_magic_test_file=/shlib/libc.so
13270 # func_win32_libid is a shell function defined in ltmain.sh
13271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13272 lt_cv_file_magic_cmd='func_win32_libid'
13276 # Base MSYS/MinGW do not provide the 'file' command needed by
13277 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13278 # unless we find 'file', for example because we are cross-compiling.
13279 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13280 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13282 lt_cv_file_magic_cmd='func_win32_libid'
13284 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13285 lt_cv_file_magic_cmd='$OBJDUMP -f'
13290 # use the weaker test based on 'objdump'. See mingw*.
13291 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13292 lt_cv_file_magic_cmd='$OBJDUMP -f'
13295 darwin* | rhapsody*)
13296 lt_cv_deplibs_check_method=pass_all
13299 freebsd* | dragonfly*)
13300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13303 # Not sure whether the presence of OpenBSD here was a mistake.
13304 # Let's accept both of them until this is cleared up.
13305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13306 lt_cv_file_magic_cmd=/usr/bin/file
13307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13311 lt_cv_deplibs_check_method=pass_all
13316 lt_cv_deplibs_check_method=pass_all
13320 lt_cv_deplibs_check_method=pass_all
13323 hpux10.20* | hpux11*)
13324 lt_cv_file_magic_cmd=/usr/bin/file
13327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13331 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]'
13332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13346 irix5* | irix6* | nonstopux*)
13348 *-32|*"-32 ") libmagic=32-bit;;
13349 *-n32|*"-n32 ") libmagic=N32;;
13350 *-64|*"-64 ") libmagic=64-bit;;
13351 *) libmagic=never-match;;
13353 lt_cv_deplibs_check_method=pass_all
13356 # This must be Linux ELF.
13357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13358 lt_cv_deplibs_check_method=pass_all
13362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13371 lt_cv_file_magic_cmd=/usr/bin/file
13372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13376 lt_cv_deplibs_check_method=pass_all
13380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13387 osf3* | osf4* | osf5*)
13388 lt_cv_deplibs_check_method=pass_all
13392 lt_cv_deplibs_check_method=pass_all
13396 lt_cv_deplibs_check_method=pass_all
13399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13400 lt_cv_deplibs_check_method=pass_all
13404 case $host_vendor in
13406 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]'
13407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13410 lt_cv_deplibs_check_method=pass_all
13413 lt_cv_file_magic_cmd='/bin/file'
13414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13417 lt_cv_file_magic_cmd='/bin/file'
13418 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13419 lt_cv_file_magic_test_file=/lib/libc.so
13422 lt_cv_deplibs_check_method=pass_all
13425 lt_cv_deplibs_check_method=pass_all
13431 lt_cv_deplibs_check_method=pass_all
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13437 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13438 file_magic_cmd=$lt_cv_file_magic_cmd
13439 deplibs_check_method=$lt_cv_deplibs_check_method
13440 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13453 if test -n "$ac_tool_prefix"; then
13454 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13455 set dummy ${ac_tool_prefix}ar; ac_word=$2
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13457 $as_echo_n "checking
for $ac_word...
" >&6; }
13458 if test "${ac_cv_prog_AR+set}" = set; then :
13459 $as_echo_n "(cached
) " >&6
13461 if test -n "$AR"; then
13462 ac_cv_prog_AR="$AR" # Let the user override the test.
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13471 ac_cv_prog_AR="${ac_tool_prefix}ar"
13472 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13482 if test -n "$AR"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13484 $as_echo "$AR" >&6; }
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13487 $as_echo "no
" >&6; }
13492 if test -z "$ac_cv_prog_AR"; then
13494 # Extract the first word of "ar", so it can be a program name with args.
13495 set dummy ar; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13497 $as_echo_n "checking
for $ac_word...
" >&6; }
13498 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13499 $as_echo_n "(cached
) " >&6
13501 if test -n "$ac_ct_AR"; then
13502 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13511 ac_cv_prog_ac_ct_AR="ar"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13521 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13522 if test -n "$ac_ct_AR"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13524 $as_echo "$ac_ct_AR" >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13527 $as_echo "no
" >&6; }
13530 if test "x
$ac_ct_AR" = x; then
13533 case $cross_compiling:$ac_tool_warned in
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13536 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13537 ac_tool_warned=yes ;;
13542 AR="$ac_cv_prog_AR"
13545 test -z "$AR" && AR=ar
13546 test -z "$AR_FLAGS" && AR_FLAGS=cru
13558 if test -n "$ac_tool_prefix"; then
13559 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13560 set dummy ${ac_tool_prefix}strip; ac_word=$2
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13562 $as_echo_n "checking
for $ac_word...
" >&6; }
13563 if test "${ac_cv_prog_STRIP+set}" = set; then :
13564 $as_echo_n "(cached
) " >&6
13566 if test -n "$STRIP"; then
13567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13576 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13586 STRIP=$ac_cv_prog_STRIP
13587 if test -n "$STRIP"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13589 $as_echo "$STRIP" >&6; }
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13592 $as_echo "no
" >&6; }
13597 if test -z "$ac_cv_prog_STRIP"; then
13599 # Extract the first word of "strip
", so it can be a program name with args.
13600 set dummy strip; ac_word=$2
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13602 $as_echo_n "checking
for $ac_word...
" >&6; }
13603 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13604 $as_echo_n "(cached
) " >&6
13606 if test -n "$ac_ct_STRIP"; then
13607 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_ac_ct_STRIP="strip
"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13626 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13627 if test -n "$ac_ct_STRIP"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13629 $as_echo "$ac_ct_STRIP" >&6; }
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13632 $as_echo "no
" >&6; }
13635 if test "x
$ac_ct_STRIP" = x; then
13638 case $cross_compiling:$ac_tool_warned in
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13641 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13642 ac_tool_warned=yes ;;
13647 STRIP="$ac_cv_prog_STRIP"
13650 test -z "$STRIP" && STRIP=:
13657 if test -n "$ac_tool_prefix"; then
13658 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13661 $as_echo_n "checking
for $ac_word...
" >&6; }
13662 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13663 $as_echo_n "(cached
) " >&6
13665 if test -n "$RANLIB"; then
13666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13685 RANLIB=$ac_cv_prog_RANLIB
13686 if test -n "$RANLIB"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13688 $as_echo "$RANLIB" >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13691 $as_echo "no
" >&6; }
13696 if test -z "$ac_cv_prog_RANLIB"; then
13697 ac_ct_RANLIB=$RANLIB
13698 # Extract the first word of "ranlib
", so it can be a program name with args.
13699 set dummy ranlib; ac_word=$2
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13701 $as_echo_n "checking
for $ac_word...
" >&6; }
13702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13703 $as_echo_n "(cached
) " >&6
13705 if test -n "$ac_ct_RANLIB"; then
13706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709 for as_dir in $PATH
13712 test -z "$as_dir" && as_dir=.
13713 for ac_exec_ext in '' $ac_executable_extensions; do
13714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13715 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13726 if test -n "$ac_ct_RANLIB"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13728 $as_echo "$ac_ct_RANLIB" >&6; }
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13731 $as_echo "no
" >&6; }
13734 if test "x
$ac_ct_RANLIB" = x; then
13737 case $cross_compiling:$ac_tool_warned in
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13740 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13741 ac_tool_warned=yes ;;
13743 RANLIB=$ac_ct_RANLIB
13746 RANLIB="$ac_cv_prog_RANLIB"
13749 test -z "$RANLIB" && RANLIB=:
13756 # Determine commands to create old-style static archives.
13757 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13758 old_postinstall_cmds='chmod 644 $oldlib'
13759 old_postuninstall_cmds=
13761 if test -n "$RANLIB"; then
13764 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13767 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13770 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13775 lock_old_archive_extraction=yes ;;
13777 lock_old_archive_extraction=no ;;
13818 # If no C compiler was specified, use CC.
13821 # If no C compiler flags were specified, use CFLAGS.
13822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13824 # Allow CC to be a program name with arguments.
13828 # Check for command to grab the raw symbol name followed by C symbol from nm.
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13830 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13831 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13832 $as_echo_n "(cached
) " >&6
13835 # These are sane defaults that work on at least a few old systems.
13836 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13838 # Character class describing NM global symbol codes.
13839 symcode='[BCDEGRST]'
13841 # Regexp to match symbols that can be accessed directly from C.
13842 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13844 # Define system-specific variables.
13849 cygwin* | mingw* | pw32* | cegcc*)
13850 symcode='[ABCDGISTW]'
13853 if test "$host_cpu" = ia64; then
13854 symcode='[ABCDEGRST]'
13857 irix* | nonstopux*)
13858 symcode='[BCDEGRST]'
13861 symcode='[BCDEGQRST]'
13872 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13880 # If we're using GNU nm, then use its standard symbol codes.
13881 case `$NM -V 2>&1` in
13882 *GNU* | *'with BFD'*)
13883 symcode='[ABCDGIRSTW]' ;;
13886 # Transform an extracted symbol line into a proper C declaration.
13887 # Some systems (esp. on ia64) link data and code symbols differently,
13888 # so use this general approach.
13889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13891 # Transform an extracted symbol line into symbol name and symbol address
13892 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13893 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'"
13895 # Handle CRLF in mingw tool chain
13899 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13903 # Try without a prefix underscore, then with it.
13904 for ac_symprfx in "" "_
"; do
13906 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13907 symxfrm="\\1 $ac_symprfx\\2 \\2"
13909 # Write the raw and C identifiers.
13910 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13911 # Fake it for dumpbin and say T for any non-static function
13912 # and D for any global variable.
13913 # Also find C++ and __fastcall symbols from MSVC++,
13914 # which start with @ or ?.
13915 lt_cv_sys_global_symbol_pipe="$AWK '"\
13916 " {last_section=section; section=\$ 3};"\
13917 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13918 " \$ 0!~/External *\|/{next};"\
13919 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13920 " {if(hide[section]) next};"\
13921 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13922 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13923 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13924 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13925 " ' prfx
=^
$ac_symprfx"
13927 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13930 # Check to see that the pipe works correctly.
13934 cat > conftest.$ac_ext <<_LT_EOF
13939 void nm_test_func(void);
13940 void nm_test_func(void){}
13944 int main(){nm_test_var='a';nm_test_func();return(0);}
13947 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13948 (eval $ac_compile) 2>&5
13950 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13951 test $ac_status = 0; }; then
13952 # Now try to grab the symbols.
13954 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13955 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13957 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13958 test $ac_status = 0; } && test -s "$nlist"; then
13959 # Try sorting and uniquifying the output.
13960 if sort "$nlist" | uniq > "$nlist"T; then
13961 mv -f "$nlist"T "$nlist"
13966 # Make sure that we snagged all the symbols we need.
13967 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13968 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13969 cat <<_LT_EOF > conftest.$ac_ext
13975 # Now generate the symbol file.
13976 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13978 cat <<_LT_EOF >> conftest.$ac_ext
13980 /* The mapping between symbol names and symbols. */
13985 lt__PROGRAM__LTX_preloaded_symbols[] =
13987 { "@PROGRAM@
", (void *) 0 },
13989 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13990 cat <<\_LT_EOF >> conftest.$ac_ext
13994 /* This works around a problem in FreeBSD linker */
13995 #ifdef FREEBSD_WORKAROUND
13996 static const void *lt_preloaded_setup() {
13997 return lt__PROGRAM__LTX_preloaded_symbols;
14005 # Now try linking the two files.
14006 mv conftest.$ac_objext conftstm.$ac_objext
14007 lt_save_LIBS="$LIBS"
14008 lt_save_CFLAGS="$CFLAGS"
14009 LIBS="conftstm.
$ac_objext"
14010 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14011 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14012 (eval $ac_link) 2>&5
14014 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14015 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14018 LIBS="$lt_save_LIBS"
14019 CFLAGS="$lt_save_CFLAGS"
14021 echo "cannot
find nm_test_func
in $nlist" >&5
14024 echo "cannot
find nm_test_var
in $nlist" >&5
14027 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14030 echo "$progname: failed program was
:" >&5
14031 cat conftest.$ac_ext >&5
14033 rm -rf conftest* conftst*
14035 # Do not use the global_symbol_pipe unless it works.
14036 if test "$pipe_works" = yes; then
14039 lt_cv_sys_global_symbol_pipe=
14045 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14046 lt_cv_sys_global_symbol_to_cdecl=
14048 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14050 $as_echo "failed
" >&6; }
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14053 $as_echo "ok
" >&6; }
14077 # Check whether --enable-libtool-lock was given.
14078 if test "${enable_libtool_lock+set}" = set; then :
14079 enableval=$enable_libtool_lock;
14082 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14084 # Some flags need to be propagated to the compiler or linker for good
14088 # Find out which ABI we are using.
14089 echo 'int i;' > conftest.$ac_ext
14090 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14091 (eval $ac_compile) 2>&5
14093 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14094 test $ac_status = 0; }; then
14095 case `/usr/bin/file conftest.$ac_objext` in
14097 HPUX_IA64_MODE="32"
14100 HPUX_IA64_MODE="64"
14107 # Find out which ABI we are using.
14108 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14109 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14110 (eval $ac_compile) 2>&5
14112 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14113 test $ac_status = 0; }; then
14114 if test "$lt_cv_prog_gnu_ld" = yes; then
14115 case `/usr/bin/file conftest.$ac_objext` in
14117 LD="${LD-ld} -melf32bsmip"
14120 LD="${LD-ld} -melf32bmipn32"
14123 LD="${LD-ld} -melf64bmip"
14127 case `/usr/bin/file conftest.$ac_objext` in
14143 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14144 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14145 # Find out which ABI we are using.
14146 echo 'int i;' > conftest.$ac_ext
14147 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14148 (eval $ac_compile) 2>&5
14150 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14151 test $ac_status = 0; }; then
14152 case `/usr/bin/file conftest.o` in
14155 x86_64-*kfreebsd*-gnu)
14156 LD="${LD-ld} -m elf_i386_fbsd
"
14159 case `/usr/bin/file conftest.o` in
14161 LD="${LD-ld} -m elf32_x86_64
"
14164 LD="${LD-ld} -m elf_i386
"
14168 powerpc64le-*linux*)
14169 LD="${LD-ld} -m elf32lppclinux
"
14172 LD="${LD-ld} -m elf32ppclinux
"
14175 LD="${LD-ld} -m elf_s390
"
14178 LD="${LD-ld} -m elf32_sparc
"
14184 x86_64-*kfreebsd*-gnu)
14185 LD="${LD-ld} -m elf_x86_64_fbsd
"
14188 LD="${LD-ld} -m elf_x86_64
"
14191 LD="${LD-ld} -m elf64lppc
"
14194 LD="${LD-ld} -m elf64ppc
"
14196 s390*-*linux*|s390*-*tpf*)
14197 LD="${LD-ld} -m elf64_s390
"
14200 LD="${LD-ld} -m elf64_sparc
"
14210 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14211 SAVE_CFLAGS="$CFLAGS"
14212 CFLAGS="$CFLAGS -belf"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14214 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14215 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14216 $as_echo_n "(cached
) " >&6
14219 ac_cpp='$CPP $CPPFLAGS'
14220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14235 if ac_fn_c_try_link "$LINENO"; then :
14236 lt_cv_cc_needs_belf=yes
14238 lt_cv_cc_needs_belf=no
14240 rm -f core conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
14243 ac_cpp='$CPP $CPPFLAGS'
14244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14250 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14251 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14252 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14253 CFLAGS="$SAVE_CFLAGS"
14257 # Find out which ABI we are using.
14258 echo 'int i;' > conftest.$ac_ext
14259 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14260 (eval $ac_compile) 2>&5
14262 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14263 test $ac_status = 0; }; then
14264 case `/usr/bin/file conftest.o` in
14266 case $lt_cv_prog_gnu_ld in
14267 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14269 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14281 need_locks="$enable_libtool_lock"
14285 rhapsody* | darwin*)
14286 if test -n "$ac_tool_prefix"; then
14287 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14288 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14290 $as_echo_n "checking
for $ac_word...
" >&6; }
14291 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14292 $as_echo_n "(cached
) " >&6
14294 if test -n "$DSYMUTIL"; then
14295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $PATH
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14305 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14314 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14315 if test -n "$DSYMUTIL"; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14317 $as_echo "$DSYMUTIL" >&6; }
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14320 $as_echo "no
" >&6; }
14325 if test -z "$ac_cv_prog_DSYMUTIL"; then
14326 ac_ct_DSYMUTIL=$DSYMUTIL
14327 # Extract the first word of "dsymutil
", so it can be a program name with args.
14328 set dummy dsymutil; ac_word=$2
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14330 $as_echo_n "checking
for $ac_word...
" >&6; }
14331 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14332 $as_echo_n "(cached
) " >&6
14334 if test -n "$ac_ct_DSYMUTIL"; then
14335 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14338 for as_dir in $PATH
14341 test -z "$as_dir" && as_dir=.
14342 for ac_exec_ext in '' $ac_executable_extensions; do
14343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14344 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14345 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14354 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14355 if test -n "$ac_ct_DSYMUTIL"; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14357 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14360 $as_echo "no
" >&6; }
14363 if test "x
$ac_ct_DSYMUTIL" = x; then
14366 case $cross_compiling:$ac_tool_warned in
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14369 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14370 ac_tool_warned=yes ;;
14372 DSYMUTIL=$ac_ct_DSYMUTIL
14375 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14378 if test -n "$ac_tool_prefix"; then
14379 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14380 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14382 $as_echo_n "checking
for $ac_word...
" >&6; }
14383 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14384 $as_echo_n "(cached
) " >&6
14386 if test -n "$NMEDIT"; then
14387 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14393 test -z "$as_dir" && as_dir=.
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14396 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14406 NMEDIT=$ac_cv_prog_NMEDIT
14407 if test -n "$NMEDIT"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14409 $as_echo "$NMEDIT" >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14412 $as_echo "no
" >&6; }
14417 if test -z "$ac_cv_prog_NMEDIT"; then
14418 ac_ct_NMEDIT=$NMEDIT
14419 # Extract the first word of "nmedit
", so it can be a program name with args.
14420 set dummy nmedit; ac_word=$2
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14422 $as_echo_n "checking
for $ac_word...
" >&6; }
14423 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14424 $as_echo_n "(cached
) " >&6
14426 if test -n "$ac_ct_NMEDIT"; then
14427 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14430 for as_dir in $PATH
14433 test -z "$as_dir" && as_dir=.
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14436 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14446 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14447 if test -n "$ac_ct_NMEDIT"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14449 $as_echo "$ac_ct_NMEDIT" >&6; }
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14452 $as_echo "no
" >&6; }
14455 if test "x
$ac_ct_NMEDIT" = x; then
14458 case $cross_compiling:$ac_tool_warned in
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14461 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14462 ac_tool_warned=yes ;;
14464 NMEDIT=$ac_ct_NMEDIT
14467 NMEDIT="$ac_cv_prog_NMEDIT"
14470 if test -n "$ac_tool_prefix"; then
14471 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14472 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14474 $as_echo_n "checking
for $ac_word...
" >&6; }
14475 if test "${ac_cv_prog_LIPO+set}" = set; then :
14476 $as_echo_n "(cached
) " >&6
14478 if test -n "$LIPO"; then
14479 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14485 test -z "$as_dir" && as_dir=.
14486 for ac_exec_ext in '' $ac_executable_extensions; do
14487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14488 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14489 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14498 LIPO=$ac_cv_prog_LIPO
14499 if test -n "$LIPO"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14501 $as_echo "$LIPO" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14504 $as_echo "no
" >&6; }
14509 if test -z "$ac_cv_prog_LIPO"; then
14511 # Extract the first word of "lipo
", so it can be a program name with args.
14512 set dummy lipo; ac_word=$2
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14514 $as_echo_n "checking
for $ac_word...
" >&6; }
14515 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14516 $as_echo_n "(cached
) " >&6
14518 if test -n "$ac_ct_LIPO"; then
14519 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14522 for as_dir in $PATH
14525 test -z "$as_dir" && as_dir=.
14526 for ac_exec_ext in '' $ac_executable_extensions; do
14527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14528 ac_cv_prog_ac_ct_LIPO="lipo
"
14529 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14538 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14539 if test -n "$ac_ct_LIPO"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14541 $as_echo "$ac_ct_LIPO" >&6; }
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14544 $as_echo "no
" >&6; }
14547 if test "x
$ac_ct_LIPO" = x; then
14550 case $cross_compiling:$ac_tool_warned in
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14553 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14554 ac_tool_warned=yes ;;
14559 LIPO="$ac_cv_prog_LIPO"
14562 if test -n "$ac_tool_prefix"; then
14563 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14564 set dummy ${ac_tool_prefix}otool; ac_word=$2
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14566 $as_echo_n "checking
for $ac_word...
" >&6; }
14567 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14568 $as_echo_n "(cached
) " >&6
14570 if test -n "$OTOOL"; then
14571 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574 for as_dir in $PATH
14577 test -z "$as_dir" && as_dir=.
14578 for ac_exec_ext in '' $ac_executable_extensions; do
14579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14580 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14581 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14590 OTOOL=$ac_cv_prog_OTOOL
14591 if test -n "$OTOOL"; then
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14593 $as_echo "$OTOOL" >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14596 $as_echo "no
" >&6; }
14601 if test -z "$ac_cv_prog_OTOOL"; then
14603 # Extract the first word of "otool
", so it can be a program name with args.
14604 set dummy otool; ac_word=$2
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14606 $as_echo_n "checking
for $ac_word...
" >&6; }
14607 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14608 $as_echo_n "(cached
) " >&6
14610 if test -n "$ac_ct_OTOOL"; then
14611 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14620 ac_cv_prog_ac_ct_OTOOL="otool
"
14621 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14630 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14631 if test -n "$ac_ct_OTOOL"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14633 $as_echo "$ac_ct_OTOOL" >&6; }
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14636 $as_echo "no
" >&6; }
14639 if test "x
$ac_ct_OTOOL" = x; then
14642 case $cross_compiling:$ac_tool_warned in
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14645 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14646 ac_tool_warned=yes ;;
14651 OTOOL="$ac_cv_prog_OTOOL"
14654 if test -n "$ac_tool_prefix"; then
14655 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14656 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14658 $as_echo_n "checking
for $ac_word...
" >&6; }
14659 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14660 $as_echo_n "(cached
) " >&6
14662 if test -n "$OTOOL64"; then
14663 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14669 test -z "$as_dir" && as_dir=.
14670 for ac_exec_ext in '' $ac_executable_extensions; do
14671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14672 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14673 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14682 OTOOL64=$ac_cv_prog_OTOOL64
14683 if test -n "$OTOOL64"; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14685 $as_echo "$OTOOL64" >&6; }
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14688 $as_echo "no
" >&6; }
14693 if test -z "$ac_cv_prog_OTOOL64"; then
14694 ac_ct_OTOOL64=$OTOOL64
14695 # Extract the first word of "otool64
", so it can be a program name with args.
14696 set dummy otool64; ac_word=$2
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14698 $as_echo_n "checking
for $ac_word...
" >&6; }
14699 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14700 $as_echo_n "(cached
) " >&6
14702 if test -n "$ac_ct_OTOOL64"; then
14703 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706 for as_dir in $PATH
14709 test -z "$as_dir" && as_dir=.
14710 for ac_exec_ext in '' $ac_executable_extensions; do
14711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14712 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14713 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14722 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14723 if test -n "$ac_ct_OTOOL64"; then
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14725 $as_echo "$ac_ct_OTOOL64" >&6; }
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14728 $as_echo "no
" >&6; }
14731 if test "x
$ac_ct_OTOOL64" = x; then
14734 case $cross_compiling:$ac_tool_warned in
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14737 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14738 ac_tool_warned=yes ;;
14740 OTOOL64=$ac_ct_OTOOL64
14743 OTOOL64="$ac_cv_prog_OTOOL64"
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14773 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14774 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14775 $as_echo_n "(cached
) " >&6
14777 lt_cv_apple_cc_single_mod=no
14778 if test -z "${LT_MULTI_MODULE}"; then
14779 # By default we will add the -single_module flag. You can override
14780 # by either setting the environment variable LT_MULTI_MODULE
14781 # non-empty at configure time, or by adding -multi_module to the
14783 rm -rf libconftest.dylib*
14784 echo "int foo
(void
){return 1;}" > conftest.c
14785 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14786 -dynamiclib -Wl,-single_module conftest.c
" >&5
14787 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14788 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14790 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14791 lt_cv_apple_cc_single_mod=yes
14793 cat conftest.err >&5
14795 rm -rf libconftest.dylib*
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14800 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14802 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14803 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14804 $as_echo_n "(cached
) " >&6
14806 lt_cv_ld_exported_symbols_list=no
14807 save_LDFLAGS=$LDFLAGS
14808 echo "_main
" > conftest.sym
14809 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14821 if ac_fn_c_try_link "$LINENO"; then :
14822 lt_cv_ld_exported_symbols_list=yes
14824 lt_cv_ld_exported_symbols_list=no
14826 rm -f core conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
14828 LDFLAGS="$save_LDFLAGS"
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14832 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14834 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14835 if test "${lt_cv_ld_force_load+set}" = set; then :
14836 $as_echo_n "(cached
) " >&6
14838 lt_cv_ld_force_load=no
14839 cat > conftest.c << _LT_EOF
14840 int forced_loaded() { return 2;}
14842 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14843 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14844 echo "$AR cru libconftest.a conftest.o
" >&5
14845 $AR cru libconftest.a conftest.o 2>&5
14846 cat > conftest.c << _LT_EOF
14847 int main() { return 0;}
14849 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14850 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14852 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14853 lt_cv_ld_force_load=yes
14855 cat conftest.err >&5
14857 rm -f conftest.err libconftest.a conftest conftest.c
14858 rm -rf conftest.dSYM
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14862 $as_echo "$lt_cv_ld_force_load" >&6; }
14864 rhapsody* | darwin1.[012])
14865 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14867 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14868 darwin*) # darwin 5.x on
14869 # if running on 10.5 or later, the deployment target defaults
14870 # to the OS version, if on x86, and 10.4, the deployment
14871 # target defaults to 10.4. Don't you love it?
14872 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14873 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14874 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14876 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14878 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14882 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14883 _lt_dar_single_mod='$single_module'
14885 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14886 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14888 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14890 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14891 _lt_dsymutil='~$DSYMUTIL $lib || :'
14899 for ac_header in dlfcn.h
14901 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14902 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14903 cat >>confdefs.h <<_ACEOF
14904 #define HAVE_DLFCN_H 1
14921 enable_win32_dll=no
14924 # Check whether --enable-shared was given.
14925 if test "${enable_shared+set}" = set; then :
14926 enableval=$enable_shared; p=${PACKAGE-default}
14928 yes) enable_shared=yes ;;
14929 no) enable_shared=no ;;
14932 # Look at the argument we got. We use all the common list separators.
14933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14934 for pkg in $enableval; do
14936 if test "X
$pkg" = "X
$p"; then
14955 # Check whether --enable-static was given.
14956 if test "${enable_static+set}" = set; then :
14957 enableval=$enable_static; p=${PACKAGE-default}
14959 yes) enable_static=yes ;;
14960 no) enable_static=no ;;
14963 # Look at the argument we got. We use all the common list separators.
14964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14965 for pkg in $enableval; do
14967 if test "X
$pkg" = "X
$p"; then
14987 # Check whether --with-pic was given.
14988 if test "${with_pic+set}" = set; then :
14989 withval=$with_pic; pic_mode="$withval"
14995 test -z "$pic_mode" && pic_mode=default
15003 # Check whether --enable-fast-install was given.
15004 if test "${enable_fast_install+set}" = set; then :
15005 enableval=$enable_fast_install; p=${PACKAGE-default}
15007 yes) enable_fast_install=yes ;;
15008 no) enable_fast_install=no ;;
15010 enable_fast_install=no
15011 # Look at the argument we got. We use all the common list separators.
15012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15013 for pkg in $enableval; do
15015 if test "X
$pkg" = "X
$p"; then
15016 enable_fast_install=yes
15023 enable_fast_install=yes
15036 # This can be used to rebuild libtool when needed
15037 LIBTOOL_DEPS="$ltmain"
15039 # Always use our own libtool.
15040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15067 test -z "$LN_S" && LN_S="ln -s"
15082 if test -n "${ZSH_VERSION+set}" ; then
15083 setopt NO_GLOB_SUBST
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15087 $as_echo_n "checking
for objdir...
" >&6; }
15088 if test "${lt_cv_objdir+set}" = set; then :
15089 $as_echo_n "(cached
) " >&6
15091 rm -f .libs 2>/dev/null
15092 mkdir .libs 2>/dev/null
15093 if test -d .libs; then
15096 # MS-DOS does not allow filenames that begin with a dot.
15099 rmdir .libs 2>/dev/null
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15102 $as_echo "$lt_cv_objdir" >&6; }
15103 objdir=$lt_cv_objdir
15109 cat >>confdefs.h <<_ACEOF
15110 #define LT_OBJDIR "$lt_cv_objdir/"
15118 # AIX sometimes has problems with the GCC collect2 program. For some
15119 # reason, if we set the COLLECT_NAMES environment variable, the problems
15120 # vanish in a puff of smoke.
15121 if test "X
${COLLECT_NAMES+set}" != Xset; then
15123 export COLLECT_NAMES
15128 # Global variables:
15130 can_build_shared=yes
15132 # All known linkers require a `.a' archive for static linking (except MSVC,
15133 # which needs '.lib').
15136 with_gnu_ld="$lt_cv_prog_gnu_ld"
15139 old_CFLAGS="$CFLAGS"
15141 # Set sane defaults for various variables
15142 test -z "$CC" && CC=cc
15143 test -z "$LTCC" && LTCC=$CC
15144 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15145 test -z "$LD" && LD=ld
15146 test -z "$ac_objext" && ac_objext=o
15148 for cc_temp in $compiler""; do
15150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15156 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15159 # Only perform the check for file, if the check method requires it
15160 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15161 case $deplibs_check_method in
15163 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15165 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15166 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15167 $as_echo_n "(cached
) " >&6
15171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15174 lt_save_MAGIC_CMD="$MAGIC_CMD"
15175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15176 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15177 for ac_dir in $ac_dummy; do
15179 test -z "$ac_dir" && ac_dir=.
15180 if test -f $ac_dir/${ac_tool_prefix}file; then
15181 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15182 if test -n "$file_magic_test_file"; then
15183 case $deplibs_check_method in
15185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15188 $EGREP "$file_magic_regex" > /dev/null; then
15193 *** Warning: the command libtool uses to detect shared libraries,
15194 *** $file_magic_cmd, produces output that libtool cannot recognize.
15195 *** The result is that libtool may fail to recognize shared libraries
15196 *** as such. This will affect the creation of libtool libraries that
15197 *** depend on shared libraries, but programs linked with such libtool
15198 *** libraries will work regardless of this problem. Nevertheless, you
15199 *** may want to report the problem to your system manager and/or to
15200 *** bug-libtool@gnu.org
15210 MAGIC_CMD="$lt_save_MAGIC_CMD"
15215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15216 if test -n "$MAGIC_CMD"; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15218 $as_echo "$MAGIC_CMD" >&6; }
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15221 $as_echo "no
" >&6; }
15228 if test -z "$lt_cv_path_MAGIC_CMD"; then
15229 if test -n "$ac_tool_prefix"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15231 $as_echo_n "checking
for file...
" >&6; }
15232 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15233 $as_echo_n "(cached
) " >&6
15237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15240 lt_save_MAGIC_CMD="$MAGIC_CMD"
15241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15242 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15243 for ac_dir in $ac_dummy; do
15245 test -z "$ac_dir" && ac_dir=.
15246 if test -f $ac_dir/file; then
15247 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15248 if test -n "$file_magic_test_file"; then
15249 case $deplibs_check_method in
15251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15254 $EGREP "$file_magic_regex" > /dev/null; then
15259 *** Warning: the command libtool uses to detect shared libraries,
15260 *** $file_magic_cmd, produces output that libtool cannot recognize.
15261 *** The result is that libtool may fail to recognize shared libraries
15262 *** as such. This will affect the creation of libtool libraries that
15263 *** depend on shared libraries, but programs linked with such libtool
15264 *** libraries will work regardless of this problem. Nevertheless, you
15265 *** may want to report the problem to your system manager and/or to
15266 *** bug-libtool@gnu.org
15276 MAGIC_CMD="$lt_save_MAGIC_CMD"
15281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15282 if test -n "$MAGIC_CMD"; then
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15284 $as_echo "$MAGIC_CMD" >&6; }
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15287 $as_echo "no
" >&6; }
15300 # Use C for the default configuration in the libtool script
15304 ac_cpp='$CPP $CPPFLAGS'
15305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15310 # Source file extension for C test sources.
15313 # Object file extension for compiled C test sources.
15317 # Code to be used in simple compile tests
15318 lt_simple_compile_test_code="int some_variable
= 0;"
15320 # Code to be used in simple link tests
15321 lt_simple_link_test_code='int main(){return(0);}'
15329 # If no C compiler was specified, use CC.
15332 # If no C compiler flags were specified, use CFLAGS.
15333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15335 # Allow CC to be a program name with arguments.
15338 # Save the default compiler, since it gets overwritten when the other
15339 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15340 compiler_DEFAULT=$CC
15342 # save warnings/boilerplate of simple test code
15343 ac_outfile=conftest.$ac_objext
15344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15346 _lt_compiler_boilerplate=`cat conftest.err`
15349 ac_outfile=conftest.$ac_objext
15350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15352 _lt_linker_boilerplate=`cat conftest.err`
15357 ## There is no encapsulation within the following macros, do not change
15358 ## the running order or otherwise move them around unless you know exactly
15359 ## what you are doing...
15360 if test -n "$compiler"; then
15362 lt_prog_compiler_no_builtin_flag=
15364 if test "$GCC" = yes; then
15365 case $cc_basename in
15367 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15369 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15373 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15374 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15375 $as_echo_n "(cached
) " >&6
15377 lt_cv_prog_compiler_rtti_exceptions=no
15378 ac_outfile=conftest.$ac_objext
15379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15380 lt_compiler_flag="-fno-rtti -fno-exceptions"
15381 # Insert the option either (1) after the last *FLAGS variable, or
15382 # (2) before a word containing "conftest.
", or (3) at the end.
15383 # Note that $ac_compile itself does not contain backslashes and begins
15384 # with a dollar sign (not a hyphen), so the echo should work correctly.
15385 # The option is referenced via a variable to avoid confusing sed.
15386 lt_compile=`echo "$ac_compile" | $SED \
15387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15389 -e 's:$: $lt_compiler_flag:'`
15390 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15391 (eval "$lt_compile" 2>conftest.err)
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15395 if (exit $ac_status) && test -s "$ac_outfile"; then
15396 # The compiler can only warn and ignore the option if not recognized
15397 # So say no if there are warnings other than the usual output.
15398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15401 lt_cv_prog_compiler_rtti_exceptions=yes
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15408 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15410 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15411 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15423 lt_prog_compiler_wl=
15424 lt_prog_compiler_pic=
15425 lt_prog_compiler_static=
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15428 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15430 if test "$GCC" = yes; then
15431 lt_prog_compiler_wl='-Wl,'
15432 lt_prog_compiler_static='-static'
15436 # All AIX code is PIC.
15437 if test "$host_cpu" = ia64; then
15438 # AIX 5 now supports IA64 processor
15439 lt_prog_compiler_static='-Bstatic'
15441 lt_prog_compiler_pic='-fPIC'
15447 # see comment about AmigaOS4 .so support
15448 lt_prog_compiler_pic='-fPIC'
15451 # FIXME: we need at least 68020 code to build shared libraries, but
15452 # adding the `-m68020' flag to GCC prevents building anything better,
15454 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15459 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15460 # PIC is the default for these OSes.
15463 mingw* | cygwin* | pw32* | os2* | cegcc*)
15464 # This hack is so that the source file can tell whether it is being
15465 # built for inclusion in a dll (and should export symbols for example).
15466 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15467 # (--disable-auto-import) libraries
15468 lt_prog_compiler_pic='-DDLL_EXPORT'
15471 darwin* | rhapsody*)
15472 # PIC is the default on this platform
15473 # Common symbols not allowed in MH_DYLIB files
15474 lt_prog_compiler_pic='-fno-common'
15478 # PIC is the default for Haiku.
15479 # The "-static" flag exists, but is broken.
15480 lt_prog_compiler_static=
15484 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15485 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15486 # sets the default TLS model and affects inlining.
15492 lt_prog_compiler_pic='-fPIC'
15498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15499 # Instead, we relocate shared libraries at runtime.
15503 # Just because we use GCC doesn't mean we suddenly get shared libraries
15504 # on systems that don't support them.
15505 lt_prog_compiler_can_build_shared=no
15510 # QNX uses GNU C++, but need to define -shared option too, otherwise
15511 # it will coredump.
15512 lt_prog_compiler_pic='-fPIC -shared'
15516 if test -d /usr/nec; then
15517 lt_prog_compiler_pic=-Kconform_pic
15522 lt_prog_compiler_pic='-fPIC'
15526 case $cc_basename in
15527 nvcc*) # Cuda Compiler Driver 2.2
15528 lt_prog_compiler_wl='-Xlinker '
15529 lt_prog_compiler_pic='-Xcompiler -fPIC'
15533 # PORTME Check for flag to pass linker flags through the system compiler.
15536 lt_prog_compiler_wl='-Wl,'
15537 if test "$host_cpu" = ia64; then
15538 # AIX 5 now supports IA64 processor
15539 lt_prog_compiler_static='-Bstatic'
15541 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15545 mingw* | cygwin* | pw32* | os2* | cegcc*)
15546 # This hack is so that the source file can tell whether it is being
15547 # built for inclusion in a dll (and should export symbols for example).
15548 lt_prog_compiler_pic='-DDLL_EXPORT'
15551 hpux9* | hpux10* | hpux11*)
15552 lt_prog_compiler_wl='-Wl,'
15553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15554 # not for PA HP-UX.
15560 lt_prog_compiler_pic='+Z'
15563 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15564 lt_prog_compiler_static='${wl}-a ${wl}archive'
15567 irix5* | irix6* | nonstopux*)
15568 lt_prog_compiler_wl='-Wl,'
15569 # PIC (with -KPIC) is the default.
15570 lt_prog_compiler_static='-non_shared'
15573 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15574 case $cc_basename in
15575 # old Intel for x86_64 which still supported -KPIC.
15577 lt_prog_compiler_wl='-Wl,'
15578 lt_prog_compiler_pic='-KPIC'
15579 lt_prog_compiler_static='-static'
15581 # icc used to be incompatible with GCC.
15582 # ICC 10 doesn't accept -KPIC any more.
15584 lt_prog_compiler_wl='-Wl,'
15585 lt_prog_compiler_pic='-fPIC'
15586 lt_prog_compiler_static='-static'
15588 # Lahey Fortran 8.1.
15590 lt_prog_compiler_wl='-Wl,'
15591 lt_prog_compiler_pic='--shared'
15592 lt_prog_compiler_static='--static'
15594 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15595 # Portland Group compilers (*not* the Pentium gcc compiler,
15596 # which looks to be a dead project)
15597 lt_prog_compiler_wl='-Wl,'
15598 lt_prog_compiler_pic='-fpic'
15599 lt_prog_compiler_static='-Bstatic'
15602 lt_prog_compiler_wl='-Wl,'
15603 # All Alpha code is PIC.
15604 lt_prog_compiler_static='-non_shared'
15606 xl* | bgxl* | bgf* | mpixl*)
15607 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15608 lt_prog_compiler_wl='-Wl,'
15609 lt_prog_compiler_pic='-qpic'
15610 lt_prog_compiler_static='-qstaticlink'
15613 case `$CC -V 2>&1 | sed 5q` in
15614 *Sun\ F* | *Sun*Fortran*)
15615 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15616 lt_prog_compiler_pic='-KPIC'
15617 lt_prog_compiler_static='-Bstatic'
15618 lt_prog_compiler_wl=''
15622 lt_prog_compiler_pic='-KPIC'
15623 lt_prog_compiler_static='-Bstatic'
15624 lt_prog_compiler_wl='-Wl,'
15632 lt_prog_compiler_pic='-KPIC'
15633 lt_prog_compiler_static='-Bstatic'
15637 # QNX uses GNU C++, but need to define -shared option too, otherwise
15638 # it will coredump.
15639 lt_prog_compiler_pic='-fPIC -shared'
15642 osf3* | osf4* | osf5*)
15643 lt_prog_compiler_wl='-Wl,'
15644 # All OSF/1 code is PIC.
15645 lt_prog_compiler_static='-non_shared'
15649 lt_prog_compiler_static='-non_shared'
15653 lt_prog_compiler_pic='-KPIC'
15654 lt_prog_compiler_static='-Bstatic'
15655 case $cc_basename in
15656 f77* | f90* | f95*)
15657 lt_prog_compiler_wl='-Qoption ld ';;
15659 lt_prog_compiler_wl='-Wl,';;
15664 lt_prog_compiler_wl='-Qoption ld '
15665 lt_prog_compiler_pic='-PIC'
15666 lt_prog_compiler_static='-Bstatic'
15669 sysv4 | sysv4.2uw2* | sysv4.3*)
15670 lt_prog_compiler_wl='-Wl,'
15671 lt_prog_compiler_pic='-KPIC'
15672 lt_prog_compiler_static='-Bstatic'
15676 if test -d /usr/nec ;then
15677 lt_prog_compiler_pic='-Kconform_pic'
15678 lt_prog_compiler_static='-Bstatic'
15682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15683 lt_prog_compiler_wl='-Wl,'
15684 lt_prog_compiler_pic='-KPIC'
15685 lt_prog_compiler_static='-Bstatic'
15689 lt_prog_compiler_wl='-Wl,'
15690 lt_prog_compiler_can_build_shared=no
15694 lt_prog_compiler_pic='-pic'
15695 lt_prog_compiler_static='-Bstatic'
15699 lt_prog_compiler_can_build_shared=no
15705 # For platforms which do not support PIC, -DPIC is meaningless:
15707 lt_prog_compiler_pic=
15710 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15714 $as_echo "$lt_prog_compiler_pic" >&6; }
15722 # Check to make sure the PIC flag actually works.
15724 if test -n "$lt_prog_compiler_pic"; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15726 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15727 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15728 $as_echo_n "(cached
) " >&6
15730 lt_cv_prog_compiler_pic_works=no
15731 ac_outfile=conftest.$ac_objext
15732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15733 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15734 # Insert the option either (1) after the last *FLAGS variable, or
15735 # (2) before a word containing "conftest.
", or (3) at the end.
15736 # Note that $ac_compile itself does not contain backslashes and begins
15737 # with a dollar sign (not a hyphen), so the echo should work correctly.
15738 # The option is referenced via a variable to avoid confusing sed.
15739 lt_compile=`echo "$ac_compile" | $SED \
15740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15742 -e 's:$: $lt_compiler_flag:'`
15743 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15744 (eval "$lt_compile" 2>conftest.err)
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15748 if (exit $ac_status) && test -s "$ac_outfile"; then
15749 # The compiler can only warn and ignore the option if not recognized
15750 # So say no if there are warnings other than the usual output.
15751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15754 lt_cv_prog_compiler_pic_works=yes
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15761 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15763 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15764 case $lt_prog_compiler_pic in
15766 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15769 lt_prog_compiler_pic=
15770 lt_prog_compiler_can_build_shared=no
15781 # Check to make sure the static flag actually works.
15783 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15785 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15786 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15787 $as_echo_n "(cached
) " >&6
15789 lt_cv_prog_compiler_static_works=no
15790 save_LDFLAGS="$LDFLAGS"
15791 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15792 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15794 # The linker can only warn and ignore the option if not recognized
15795 # So say no if there are warnings
15796 if test -s conftest.err; then
15797 # Append any errors to the config.log.
15798 cat conftest.err 1>&5
15799 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15801 if diff conftest.exp conftest.er2 >/dev/null; then
15802 lt_cv_prog_compiler_static_works=yes
15805 lt_cv_prog_compiler_static_works=yes
15809 LDFLAGS="$save_LDFLAGS"
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15813 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15815 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15818 lt_prog_compiler_static=
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15828 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15829 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15830 $as_echo_n "(cached
) " >&6
15832 lt_cv_prog_compiler_c_o=no
15833 $RM -r conftest 2>/dev/null
15837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15839 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15840 # Insert the option either (1) after the last *FLAGS variable, or
15841 # (2) before a word containing "conftest.
", or (3) at the end.
15842 # Note that $ac_compile itself does not contain backslashes and begins
15843 # with a dollar sign (not a hyphen), so the echo should work correctly.
15844 lt_compile=`echo "$ac_compile" | $SED \
15845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15847 -e 's:$: $lt_compiler_flag:'`
15848 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15849 (eval "$lt_compile" 2>out/conftest.err)
15851 cat out/conftest.err >&5
15852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15855 # The compiler can only warn and ignore the option if not recognized
15856 # So say no if there are warnings
15857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15860 lt_cv_prog_compiler_c_o=yes
15865 # SGI C++ compiler will create directory out/ii_files/ for
15866 # template instantiation
15867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15868 $RM out/* && rmdir out
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15875 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15883 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15885 $as_echo_n "(cached
) " >&6
15887 lt_cv_prog_compiler_c_o=no
15888 $RM -r conftest 2>/dev/null
15892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15894 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15895 # Insert the option either (1) after the last *FLAGS variable, or
15896 # (2) before a word containing "conftest.
", or (3) at the end.
15897 # Note that $ac_compile itself does not contain backslashes and begins
15898 # with a dollar sign (not a hyphen), so the echo should work correctly.
15899 lt_compile=`echo "$ac_compile" | $SED \
15900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15902 -e 's:$: $lt_compiler_flag:'`
15903 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15904 (eval "$lt_compile" 2>out/conftest.err)
15906 cat out/conftest.err >&5
15907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15910 # The compiler can only warn and ignore the option if not recognized
15911 # So say no if there are warnings
15912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15915 lt_cv_prog_compiler_c_o=yes
15920 # SGI C++ compiler will create directory out/ii_files/ for
15921 # template instantiation
15922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15923 $RM out/* && rmdir out
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15930 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15935 hard_links="nottested
"
15936 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15937 # do not overwrite the value of need_locks provided by the user
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15939 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15944 ln conftest.a conftest.b 2>&5 || hard_links=no
15945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15947 $as_echo "$hard_links" >&6; }
15948 if test "$hard_links" = no; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15950 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15963 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15966 allow_undefined_flag=
15967 always_export_symbols=no
15969 archive_expsym_cmds=
15970 compiler_needs_object=no
15971 enable_shared_with_static_runtimes=no
15972 export_dynamic_flag_spec=
15973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15974 hardcode_automatic=no
15976 hardcode_direct_absolute=no
15977 hardcode_libdir_flag_spec=
15978 hardcode_libdir_flag_spec_ld=
15979 hardcode_libdir_separator=
15980 hardcode_minus_L=no
15981 hardcode_shlibpath_var=unsupported
15983 link_all_deplibs=unknown
15985 module_expsym_cmds=
15986 old_archive_from_new_cmds=
15987 old_archive_from_expsyms_cmds=
15988 thread_safe_flag_spec=
15989 whole_archive_flag_spec=
15990 # include_expsyms should be a list of space-separated symbols to be *always*
15991 # included in the symbol list
15993 # exclude_expsyms can be an extended regexp of symbols to exclude
15994 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15995 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15996 # as well as any symbol that contains `d'.
15997 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15998 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15999 # platforms (ab)use it in PIC code, but their linkers get confused if
16000 # the symbol is explicitly referenced. Since portable code cannot
16001 # rely on this symbol name, it's probably fine to never include it in
16002 # preloaded symbol tables.
16003 # Exclude shared library initialization/finalization symbols.
16004 extract_expsyms_cmds=
16007 cygwin* | mingw* | pw32* | cegcc*)
16008 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16009 # When not using gcc, we currently assume that we are using
16010 # Microsoft Visual C++.
16011 if test "$GCC" != yes; then
16016 # we just hope/assume this is gcc and not c89 (= MSVC++)
16026 # On some targets, GNU ld is compatible enough with the native linker
16027 # that we're better off using the native interface for both.
16028 lt_use_gnu_ld_interface=no
16029 if test "$with_gnu_ld" = yes; then
16032 # The AIX port of GNU ld has always aspired to compatibility
16033 # with the native linker. However, as the warning in the GNU ld
16034 # block says, versions before 2.19.5* couldn't really create working
16035 # shared libraries, regardless of the interface used.
16036 case `$LD -v 2>&1` in
16037 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16038 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16039 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16041 lt_use_gnu_ld_interface=yes
16046 lt_use_gnu_ld_interface=yes
16051 if test "$lt_use_gnu_ld_interface" = yes; then
16052 # If archive_cmds runs LD, not CC, wlarc should be empty
16055 # Set some defaults for GNU ld with shared library support. These
16056 # are reset later if shared libraries are not supported. Putting them
16057 # here allows them to be overridden if necessary.
16058 runpath_var=LD_RUN_PATH
16059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16060 export_dynamic_flag_spec='${wl}--export-dynamic'
16061 # ancient GNU ld didn't support --whole-archive et. al.
16062 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16063 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16065 whole_archive_flag_spec=
16067 supports_anon_versioning=no
16068 case `$LD -v 2>&1` in
16069 *GNU\ gold*) supports_anon_versioning=yes ;;
16070 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16073 *\ 2.11.*) ;; # other 2.11 versions
16074 *) supports_anon_versioning=yes ;;
16077 # See if GNU ld supports shared libraries.
16080 # On AIX/PPC, the GNU linker is very broken
16081 if test "$host_cpu" != ia64; then
16085 *** Warning: the GNU linker, at least up to release 2.19, is reported
16086 *** to be unable to reliably create shared libraries on AIX.
16087 *** Therefore, libtool is disabling shared libraries support. If you
16088 *** really care for shared libraries, you may want to install binutils
16089 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16090 *** You will then need to restart the configuration process.
16099 # see comment about AmigaOS4 .so support
16100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16101 archive_expsym_cmds=''
16104 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)'
16105 hardcode_libdir_flag_spec
='-L$libdir'
16106 hardcode_minus_L
=yes
16112 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16113 allow_undefined_flag
=unsupported
16114 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16115 # support --undefined. This deserves some investigation. FIXME
16116 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16122 cygwin
* | mingw
* | pw32
* | cegcc
*)
16123 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16124 # as there is no search path for DLLs.
16125 hardcode_libdir_flag_spec
='-L$libdir'
16126 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16127 allow_undefined_flag
=unsupported
16128 always_export_symbols
=no
16129 enable_shared_with_static_runtimes
=yes
16130 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16132 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16133 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16134 # If the export-symbols file already is a .def file (1st line
16135 # is EXPORTS), use it as is; otherwise, prepend...
16136 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16137 cp $export_symbols $output_objdir/$soname.def;
16139 echo EXPORTS > $output_objdir/$soname.def;
16140 cat $export_symbols >> $output_objdir/$soname.def;
16142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16149 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16150 link_all_deplibs
=yes
16155 hardcode_shlibpath_var
=no
16156 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16157 export_dynamic_flag_spec
='${wl}-E'
16158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16159 # Instead, shared libraries are loaded at an image base (0x10000000 by
16160 # default) and relocated if they conflict, which is a slow very memory
16161 # consuming and fragmenting process. To avoid this, we pick a random,
16162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16163 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16164 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16165 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'
16168 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16170 if test "$host_os" = linux-dietlibc
; then
16171 case $cc_basename in
16172 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16175 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16176 && test "$tmp_diet" = no
16178 tmp_addflag
=' $pic_flag'
16179 tmp_sharedflag
='-shared'
16180 case $cc_basename,$host_cpu in
16181 pgcc
*) # Portland Group C compiler
16182 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'
16183 tmp_addflag
=' $pic_flag'
16185 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16186 # Portland Group f77 and f90 compilers
16187 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'
16188 tmp_addflag
=' $pic_flag -Mnomain' ;;
16189 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16190 tmp_addflag
=' -i_dynamic' ;;
16191 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16192 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16193 ifc
* | ifort
*) # Intel Fortran compiler
16194 tmp_addflag
=' -nofor_main' ;;
16195 lf95
*) # Lahey Fortran 8.1
16196 whole_archive_flag_spec
=
16197 tmp_sharedflag
='--shared' ;;
16198 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16199 tmp_sharedflag
='-qmkshrobj'
16201 nvcc
*) # Cuda Compiler Driver 2.2
16202 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'
16203 compiler_needs_object
=yes
16206 case `$CC -V 2>&1 | sed 5q` in
16207 *Sun\ C
*) # Sun C 5.9
16208 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'
16209 compiler_needs_object
=yes
16210 tmp_sharedflag
='-G' ;;
16211 *Sun\ F
*) # Sun Fortran 8.3
16212 tmp_sharedflag
='-G' ;;
16214 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16216 if test "x$supports_anon_versioning" = xyes
; then
16217 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16219 echo "local: *; };" >> $output_objdir/$libname.ver~
16220 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16223 case $cc_basename in
16224 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16225 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16226 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16227 hardcode_libdir_flag_spec
=
16228 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16229 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16230 if test "x$supports_anon_versioning" = xyes
; then
16231 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16233 echo "local: *; };" >> $output_objdir/$libname.ver~
16234 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16244 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16245 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16248 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16249 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16254 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16259 *** create shared libraries on Solaris systems. Therefore, libtool
16260 *** is disabling shared libraries support. We urge you to upgrade GNU
16261 *** binutils to release 2.9.1 or newer. Another option is to modify
16262 *** your PATH or compiler configuration so that the native linker is
16263 *** used, and then restart.
16266 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16267 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16274 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16275 case `$LD -v 2>&1` in
16276 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16280 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16281 *** reliably create shared libraries on SCO systems. Therefore, libtool
16282 *** is disabling shared libraries support. We urge you to upgrade GNU
16283 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16284 *** your PATH or compiler configuration so that the native linker is
16285 *** used, and then restart.
16290 # For security reasons, it is highly recommended that you always
16291 # use absolute paths for naming shared libraries, and exclude the
16292 # DT_RUNPATH tag from executables and libraries. But doing so
16293 # requires that you compile everything twice, which is a pain.
16294 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16295 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16296 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16297 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16306 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct
=yes
16309 hardcode_shlibpath_var
=no
16313 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16314 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16315 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16322 if test "$ld_shlibs" = no
; then
16324 hardcode_libdir_flag_spec
=
16325 export_dynamic_flag_spec
=
16326 whole_archive_flag_spec
=
16329 # PORTME fill in a description of your system's linker (not GNU ld)
16332 allow_undefined_flag
=unsupported
16333 always_export_symbols
=yes
16334 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'
16335 # Note: this linker hardcodes the directories in LIBPATH if there
16336 # are no directories specified by -L.
16337 hardcode_minus_L
=yes
16338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16339 # Neither direct hardcoding nor static linking is supported with a
16341 hardcode_direct
=unsupported
16346 if test "$host_cpu" = ia64
; then
16347 # On IA64, the linker does run time linking by default, so we don't
16348 # have to do anything special.
16349 aix_use_runtimelinking
=no
16350 exp_sym_flag
='-Bexport'
16353 # If we're using GNU nm, then we don't want the "-C" option.
16354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16355 # Also, AIX nm treats weak defined symbols like other global
16356 # defined symbols, whereas GNU nm marks them as "W".
16357 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16358 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'
16360 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'
16362 aix_use_runtimelinking
=no
16364 # Test if we are trying to use run time linking or normal
16365 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16366 # need to do runtime linking.
16367 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16368 for ld_flag
in $LDFLAGS; do
16369 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16370 aix_use_runtimelinking
=yes
16377 exp_sym_flag
='-bexport'
16378 no_entry_flag
='-bnoentry'
16381 # When large executables or shared objects are built, AIX ld can
16382 # have problems creating the table of contents. If linking a library
16383 # or program results in "error TOC overflow" add -mminimal-toc to
16384 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16385 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16388 hardcode_direct
=yes
16389 hardcode_direct_absolute
=yes
16390 hardcode_libdir_separator
=':'
16391 link_all_deplibs
=yes
16392 file_list_spec
='${wl}-f,'
16394 if test "$GCC" = yes; then
16395 case $host_os in aix4.
[012]|aix4.
[012].
*)
16396 # We only want to do this on AIX 4.2 and lower, the check
16397 # below for broken collect2 doesn't work under 4.3+
16398 collect2name
=`${CC} -print-prog-name=collect2`
16399 if test -f "$collect2name" &&
16400 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16402 # We have reworked collect2
16405 # We have old collect2
16406 hardcode_direct
=unsupported
16407 # It fails to find uninstalled libraries when the uninstalled
16408 # path is not listed in the libpath. Setting hardcode_minus_L
16409 # to unsupported forces relinking
16410 hardcode_minus_L
=yes
16411 hardcode_libdir_flag_spec
='-L$libdir'
16412 hardcode_libdir_separator
=
16416 shared_flag
='-shared'
16417 if test "$aix_use_runtimelinking" = yes; then
16418 shared_flag
="$shared_flag "'${wl}-G'
16422 if test "$host_cpu" = ia64
; then
16423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16424 # chokes on -Wl,-G. The following line is correct:
16427 if test "$aix_use_runtimelinking" = yes; then
16428 shared_flag
='${wl}-G'
16430 shared_flag
='${wl}-bM:SRE'
16435 export_dynamic_flag_spec
='${wl}-bexpall'
16436 # It seems that -bexpall does not export symbols beginning with
16437 # underscore (_), so it is better to generate a list of symbols to export.
16438 always_export_symbols
=yes
16439 if test "$aix_use_runtimelinking" = yes; then
16440 # Warning - without using the other runtime loading flags (-brtl),
16441 # -berok will link without error, but may produce a broken library.
16442 allow_undefined_flag
='-berok'
16443 # Determine the default libpath from the value encoded in an
16444 # empty executable.
16445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16456 if ac_fn_c_try_link
"$LINENO"; then :
16458 lt_aix_libpath_sed
='
16459 /Import File Strings/,/^$/ {
16465 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16466 # Check for a 64-bit object if we didn't find anything.
16467 if test -z "$aix_libpath"; then
16468 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16471 rm -f core conftest.err conftest.
$ac_objext \
16472 conftest
$ac_exeext conftest.
$ac_ext
16473 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16475 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16476 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"
16478 if test "$host_cpu" = ia64
; then
16479 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16480 allow_undefined_flag
="-z nodefs"
16481 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"
16483 # Determine the default libpath from the value encoded in an
16484 # empty executable.
16485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16496 if ac_fn_c_try_link
"$LINENO"; then :
16498 lt_aix_libpath_sed
='
16499 /Import File Strings/,/^$/ {
16505 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16506 # Check for a 64-bit object if we didn't find anything.
16507 if test -z "$aix_libpath"; then
16508 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16511 rm -f core conftest.err conftest.
$ac_objext \
16512 conftest
$ac_exeext conftest.
$ac_ext
16513 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16515 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16516 # Warning - without using the other run time loading flags,
16517 # -berok will link without error, but may produce a broken library.
16518 no_undefined_flag
=' ${wl}-bernotok'
16519 allow_undefined_flag
=' ${wl}-berok'
16520 if test "$with_gnu_ld" = yes; then
16521 # We only use this code for GNU lds that support --whole-archive.
16522 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16524 # Exported symbols can be pulled into shared objects from archives
16525 whole_archive_flag_spec
='$convenience'
16527 archive_cmds_need_lc
=yes
16528 # This is similar to how AIX traditionally builds its shared libraries.
16529 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'
16537 # see comment about AmigaOS4 .so support
16538 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16539 archive_expsym_cmds
=''
16542 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)'
16543 hardcode_libdir_flag_spec
='-L$libdir'
16544 hardcode_minus_L
=yes
16550 export_dynamic_flag_spec
=-rdynamic
16553 cygwin
* | mingw
* | pw32
* | cegcc
*)
16554 # When not using gcc, we currently assume that we are using
16555 # Microsoft Visual C++.
16556 # hardcode_libdir_flag_spec is actually meaningless, as there is
16557 # no search path for DLLs.
16558 hardcode_libdir_flag_spec
=' '
16559 allow_undefined_flag
=unsupported
16560 # Tell ltmain to make .lib files, not .a files.
16562 # Tell ltmain to make .dll files, not .so files.
16564 # FIXME: Setting linknames here is a bad hack.
16565 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16566 # The linker will automatically build a .lib file if we build a DLL.
16567 old_archive_from_new_cmds
='true'
16568 # FIXME: Should let the user specify the lib program.
16569 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16570 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16571 enable_shared_with_static_runtimes
=yes
16574 darwin
* | rhapsody
*)
16577 archive_cmds_need_lc
=no
16579 hardcode_automatic
=yes
16580 hardcode_shlibpath_var
=unsupported
16581 if test "$lt_cv_ld_force_load" = "yes"; then
16582 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\"`'
16584 whole_archive_flag_spec
=''
16586 link_all_deplibs
=yes
16587 allow_undefined_flag
="$_lt_dar_allow_undefined"
16588 case $cc_basename in
16589 ifort
*) _lt_dar_can_shared
=yes ;;
16590 *) _lt_dar_can_shared
=$GCC ;;
16592 if test "$_lt_dar_can_shared" = "yes"; then
16593 output_verbose_link_cmd
=func_echo_all
16594 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16595 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16596 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}"
16597 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}"
16606 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16607 hardcode_libdir_flag_spec
='-L$libdir'
16608 hardcode_shlibpath_var
=no
16611 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16612 # support. Future versions do this automatically, but an explicit c++rt0.o
16613 # does not break anything, and helps significantly (at the cost of a little
16616 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16617 hardcode_libdir_flag_spec
='-R$libdir'
16618 hardcode_direct
=yes
16619 hardcode_shlibpath_var
=no
16622 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16624 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_direct
=yes
16626 hardcode_minus_L
=yes
16627 hardcode_shlibpath_var
=no
16630 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16631 freebsd
* | dragonfly
*)
16632 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16633 hardcode_libdir_flag_spec
='-R$libdir'
16634 hardcode_direct
=yes
16635 hardcode_shlibpath_var
=no
16639 if test "$GCC" = yes; then
16640 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'
16642 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'
16644 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16645 hardcode_libdir_separator
=:
16646 hardcode_direct
=yes
16648 # hardcode_minus_L: Not really in the search PATH,
16649 # but as the default location of the library.
16650 hardcode_minus_L
=yes
16651 export_dynamic_flag_spec
='${wl}-E'
16655 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16656 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16658 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16660 if test "$with_gnu_ld" = no
; then
16661 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16662 hardcode_libdir_flag_spec_ld
='+b $libdir'
16663 hardcode_libdir_separator
=:
16664 hardcode_direct
=yes
16665 hardcode_direct_absolute
=yes
16666 export_dynamic_flag_spec
='${wl}-E'
16667 # hardcode_minus_L: Not really in the search PATH,
16668 # but as the default location of the library.
16669 hardcode_minus_L
=yes
16674 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16677 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16680 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16683 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16689 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16696 # Older versions of the 11.00 compiler do not understand -b yet
16697 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16699 $as_echo_n "checking if $CC understands -b... " >&6; }
16700 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16701 $as_echo_n "(cached) " >&6
16703 lt_cv_prog_compiler__b
=no
16704 save_LDFLAGS
="$LDFLAGS"
16705 LDFLAGS
="$LDFLAGS -b"
16706 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16707 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16708 # The linker can only warn and ignore the option if not recognized
16709 # So say no if there are warnings
16710 if test -s conftest.err
; then
16711 # Append any errors to the config.log.
16712 cat conftest.err
1>&5
16713 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16714 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16715 if diff conftest.exp conftest.er2
>/dev
/null
; then
16716 lt_cv_prog_compiler__b
=yes
16719 lt_cv_prog_compiler__b
=yes
16723 LDFLAGS
="$save_LDFLAGS"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16727 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16729 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16730 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16732 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16738 if test "$with_gnu_ld" = no
; then
16739 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16740 hardcode_libdir_separator
=:
16745 hardcode_shlibpath_var
=no
16748 hardcode_direct
=yes
16749 hardcode_direct_absolute
=yes
16750 export_dynamic_flag_spec
='${wl}-E'
16752 # hardcode_minus_L: Not really in the search PATH,
16753 # but as the default location of the library.
16754 hardcode_minus_L
=yes
16760 irix5
* | irix6
* | nonstopux
*)
16761 if test "$GCC" = yes; then
16762 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'
16763 # Try to use the -exported_symbol ld option, if it does not
16764 # work, assume that -exports_file does not work either and
16765 # implicitly export all symbols.
16766 save_LDFLAGS
="$LDFLAGS"
16767 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16772 if ac_fn_c_try_link
"$LINENO"; then :
16773 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'
16776 rm -f core conftest.err conftest.
$ac_objext \
16777 conftest
$ac_exeext conftest.
$ac_ext
16778 LDFLAGS
="$save_LDFLAGS"
16780 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'
16781 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'
16783 archive_cmds_need_lc
='no'
16784 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16785 hardcode_libdir_separator
=:
16787 link_all_deplibs
=yes
16791 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16792 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16794 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16796 hardcode_libdir_flag_spec
='-R$libdir'
16797 hardcode_direct
=yes
16798 hardcode_shlibpath_var
=no
16802 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16803 hardcode_direct
=yes
16804 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16805 hardcode_libdir_separator
=:
16806 hardcode_shlibpath_var
=no
16813 if test -f /usr
/libexec
/ld.so
; then
16814 hardcode_direct
=yes
16815 hardcode_shlibpath_var
=no
16816 hardcode_direct_absolute
=yes
16817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16818 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16819 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16820 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16821 export_dynamic_flag_spec
='${wl}-E'
16824 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16825 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16826 hardcode_libdir_flag_spec
='-R$libdir'
16829 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16830 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16840 hardcode_libdir_flag_spec
='-L$libdir'
16841 hardcode_minus_L
=yes
16842 allow_undefined_flag
=unsupported
16843 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'
16844 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16848 if test "$GCC" = yes; then
16849 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16850 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'
16852 allow_undefined_flag
=' -expect_unresolved \*'
16853 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'
16855 archive_cmds_need_lc
='no'
16856 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16857 hardcode_libdir_separator
=:
16860 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16861 if test "$GCC" = yes; then
16862 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16863 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'
16864 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16866 allow_undefined_flag
=' -expect_unresolved \*'
16867 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'
16868 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~
16869 $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'
16871 # Both c and cxx compiler support -rpath directly
16872 hardcode_libdir_flag_spec
='-rpath $libdir'
16874 archive_cmds_need_lc
='no'
16875 hardcode_libdir_separator
=:
16879 no_undefined_flag
=' -z defs'
16880 if test "$GCC" = yes; then
16882 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16883 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16884 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16886 case `$CC -V 2>&1` in
16889 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16890 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16895 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16896 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16897 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16901 hardcode_libdir_flag_spec
='-R$libdir'
16902 hardcode_shlibpath_var
=no
16904 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16906 # The compiler driver will combine and reorder linker options,
16907 # but understands `-z linker_flag'. GCC discards it without `$wl',
16908 # but is careful enough not to reorder.
16909 # Supported since Solaris 2.6 (maybe 2.5.1?)
16910 if test "$GCC" = yes; then
16911 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16913 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16917 link_all_deplibs
=yes
16921 if test "x$host_vendor" = xsequent
; then
16922 # Use $CC to link under sequent, because it throws in some extra .o
16923 # files that make .init and .fini sections work.
16924 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16926 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16928 hardcode_libdir_flag_spec
='-L$libdir'
16929 hardcode_direct
=yes
16930 hardcode_minus_L
=yes
16931 hardcode_shlibpath_var
=no
16935 case $host_vendor in
16937 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 hardcode_direct
=yes # is this really true???
16941 ## LD is ld it makes a PLAMLIB
16942 ## CC just makes a GrossModule.
16943 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16944 reload_cmds
='$CC -r -o $output$reload_objs'
16948 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16952 runpath_var
='LD_RUN_PATH'
16953 hardcode_shlibpath_var
=no
16957 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958 hardcode_shlibpath_var
=no
16959 export_dynamic_flag_spec
='-Bexport'
16963 if test -d /usr
/nec
; then
16964 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965 hardcode_shlibpath_var
=no
16966 runpath_var
=LD_RUN_PATH
16967 hardcode_runpath_var
=yes
16972 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16973 no_undefined_flag
='${wl}-z,text'
16974 archive_cmds_need_lc
=no
16975 hardcode_shlibpath_var
=no
16976 runpath_var
='LD_RUN_PATH'
16978 if test "$GCC" = yes; then
16979 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16980 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16982 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16983 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16987 sysv5
* | sco3.2v5
* | sco5v6
*)
16988 # Note: We can NOT use -z defs as we might desire, because we do not
16989 # link with -lc, and that would cause any symbols used from libc to
16990 # always be unresolved, which means just about no library would
16991 # ever link correctly. If we're not using GNU ld we use -z text
16992 # though, which does catch some bad symbols but isn't as heavy-handed
16994 no_undefined_flag
='${wl}-z,text'
16995 allow_undefined_flag
='${wl}-z,nodefs'
16996 archive_cmds_need_lc
=no
16997 hardcode_shlibpath_var
=no
16998 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16999 hardcode_libdir_separator
=':'
17000 link_all_deplibs
=yes
17001 export_dynamic_flag_spec
='${wl}-Bexport'
17002 runpath_var
='LD_RUN_PATH'
17004 if test "$GCC" = yes; then
17005 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17008 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17009 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17014 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 hardcode_libdir_flag_spec
='-L$libdir'
17016 hardcode_shlibpath_var
=no
17024 if test x
$host_vendor = xsni
; then
17026 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17027 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17034 $as_echo "$ld_shlibs" >&6; }
17035 test "$ld_shlibs" = no
&& can_build_shared
=no
17037 with_gnu_ld
=$with_gnu_ld
17054 # Do we need to explicitly link libc?
17056 case "x$archive_cmds_need_lc" in
17058 # Assume -lc should be added
17059 archive_cmds_need_lc
=yes
17061 if test "$enable_shared" = yes && test "$GCC" = yes; then
17062 case $archive_cmds in
17064 # FIXME: we may have to deal with multi-command sequences.
17067 # Test whether the compiler implicitly links with -lc since on some
17068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17069 # to ld, don't add -lc before -lgcc.
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17071 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17072 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17073 $as_echo_n "(cached) " >&6
17076 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17079 (eval $ac_compile) 2>&5
17081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17082 test $ac_status = 0; } 2>conftest.err
; then
17085 libobjs
=conftest.
$ac_objext
17087 wl
=$lt_prog_compiler_wl
17088 pic_flag
=$lt_prog_compiler_pic
17094 lt_save_allow_undefined_flag
=$allow_undefined_flag
17095 allow_undefined_flag
=
17096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17097 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17100 test $ac_status = 0; }
17102 lt_cv_archive_cmds_need_lc
=no
17104 lt_cv_archive_cmds_need_lc
=yes
17106 allow_undefined_flag
=$lt_save_allow_undefined_flag
17108 cat conftest.err
1>&5
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17114 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17115 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17279 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17281 if test "$GCC" = yes; then
17283 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17284 *) lt_awk_arg
="/^libraries:/" ;;
17287 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17288 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17290 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17291 case $lt_search_path_spec in
17293 # if the path contains ";" then we assume it to be the separator
17294 # otherwise default to the standard path separator (i.e. ":") - it is
17295 # assumed that no part of a normal pathname contains ";" but that should
17296 # okay in the real world where ";" in dirpaths is itself problematic.
17297 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17300 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17303 # Ok, now we have the path, separated by spaces, we can step through it
17304 # and add multilib dir if necessary.
17305 lt_tmp_lt_search_path_spec
=
17306 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17307 for lt_sys_path
in $lt_search_path_spec; do
17308 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17309 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17311 test -d "$lt_sys_path" && \
17312 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17315 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17316 BEGIN {RS=" "; FS="/|\n";} {
17319 for (lt_i = NF; lt_i > 0; lt_i--) {
17320 if ($lt_i != "" && $lt_i != ".") {
17321 if ($lt_i == "..") {
17324 if (lt_count == 0) {
17325 lt_foo="/" $lt_i lt_foo;
17332 if (lt_foo != "") { lt_freq[lt_foo]++; }
17333 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17335 # AWK program above erroneously prepends '/' to C:/dos/paths
17338 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17339 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17341 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17343 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17345 library_names_spec
=
17346 libname_spec
='lib$name'
17350 postuninstall_cmds
=
17354 shlibpath_overrides_runpath
=unknown
17356 dynamic_linker
="$host_os ld.so"
17357 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17358 need_lib_prefix
=unknown
17359 hardcode_into_libs
=no
17361 # when you set need_version to no, make sure it does not cause -set_version
17362 # flags to be left without arguments
17363 need_version
=unknown
17368 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17369 shlibpath_var
=LIBPATH
17371 # AIX 3 has no versioning support, so we append a major version to the name.
17372 soname_spec
='${libname}${release}${shared_ext}$major'
17379 hardcode_into_libs
=yes
17380 if test "$host_cpu" = ia64
; then
17381 # AIX 5 supports IA64
17382 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17383 shlibpath_var
=LD_LIBRARY_PATH
17385 # With GCC up to 2.95.x, collect2 would create an import file
17386 # for dependence libraries. The import file would start with
17387 # the line `#! .'. This would cause the generated library to
17388 # depend on `.', always an invalid library. This was fixed in
17389 # development snapshots of GCC prior to 3.0.
17391 aix4 | aix4.
[01] | aix4.
[01].
*)
17392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17394 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17397 can_build_shared
=no
17401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17402 # soname into executable. Probably we can add versioning support to
17403 # collect2, so additional links can be useful in future.
17404 if test "$aix_use_runtimelinking" = yes; then
17405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17406 # instead of lib<name>.a to let people know that these are not
17407 # typical AIX shared libraries.
17408 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17410 # We preserve .a as extension for shared libraries through AIX4.2
17411 # and later when we are not doing run time linking.
17412 library_names_spec
='${libname}${release}.a $libname.a'
17413 soname_spec
='${libname}${release}${shared_ext}$major'
17415 shlibpath_var
=LIBPATH
17422 # Since July 2007 AmigaOS4 officially supports .so libraries.
17423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427 library_names_spec
='$libname.ixlibrary $libname.a'
17428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17429 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'
17435 library_names_spec
='${libname}${shared_ext}'
17436 dynamic_linker
="$host_os ld.so"
17437 shlibpath_var
=LIBRARY_PATH
17443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 soname_spec
='${libname}${release}${shared_ext}$major'
17445 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17446 shlibpath_var
=LD_LIBRARY_PATH
17447 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17448 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17449 # the default ld.so.conf also contains /usr/contrib/lib and
17450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17451 # libtool to hard-code these into programs
17454 cygwin
* | mingw
* | pw32
* | cegcc
*)
17455 version_type
=windows
17460 case $GCC,$host_os in
17461 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17462 library_names_spec
='$libname.dll.a'
17463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17464 postinstall_cmds
='base_file=`basename \${file}`~
17465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17466 dldir=$destdir/`dirname \$dlpath`~
17467 test -d \$dldir || mkdir -p \$dldir~
17468 $install_prog $dir/$dlname \$dldir/$dlname~
17469 chmod a+x \$dldir/$dlname~
17470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17473 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17474 dlpath=$dir/\$dldll~
17476 shlibpath_overrides_runpath
=yes
17480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17481 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17483 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17486 # MinGW DLLs use traditional 'lib' prefix
17487 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17490 # pw32 DLLs use 'pw' prefix rather than 'lib'
17491 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17497 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17500 dynamic_linker
='Win32 ld.exe'
17501 # FIXME: first we should search . and the directory the executable is in
17505 darwin
* | rhapsody
*)
17506 dynamic_linker
="$host_os dyld"
17507 version_type
=darwin
17510 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17511 soname_spec
='${libname}${release}${major}$shared_ext'
17512 shlibpath_overrides_runpath
=yes
17513 shlibpath_var
=DYLD_LIBRARY_PATH
17514 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17516 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17517 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17525 soname_spec
='${libname}${release}${shared_ext}$major'
17526 shlibpath_var
=LD_LIBRARY_PATH
17529 freebsd
* | dragonfly
*)
17530 # DragonFly does not have aout. When/if they implement a new
17531 # versioning mechanism, adjust this.
17532 if test -x /usr
/bin
/objformat
; then
17533 objformat
=`/usr/bin/objformat`
17536 freebsd
[23].
*) objformat
=aout
;;
17537 *) objformat
=elf
;;
17540 version_type
=freebsd-
$objformat
17541 case $version_type in
17543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17548 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17552 shlibpath_var
=LD_LIBRARY_PATH
17555 shlibpath_overrides_runpath
=yes
17557 freebsd3.
[01]* | freebsdelf3.
[01]*)
17558 shlibpath_overrides_runpath
=yes
17559 hardcode_into_libs
=yes
17561 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17562 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17563 shlibpath_overrides_runpath
=no
17564 hardcode_into_libs
=yes
17566 *) # from 4.6 on, and DragonFly
17567 shlibpath_overrides_runpath
=yes
17568 hardcode_into_libs
=yes
17577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17578 soname_spec
='${libname}${release}${shared_ext}$major'
17579 shlibpath_var
=LD_LIBRARY_PATH
17580 hardcode_into_libs
=yes
17587 dynamic_linker
="$host_os runtime_loader"
17588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17589 soname_spec
='${libname}${release}${shared_ext}$major'
17590 shlibpath_var
=LIBRARY_PATH
17591 shlibpath_overrides_runpath
=yes
17592 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17593 hardcode_into_libs
=yes
17596 hpux9
* | hpux10
* | hpux11
*)
17597 # Give a soname corresponding to the major version so that dld.sl refuses to
17598 # link against other versions.
17605 hardcode_into_libs
=yes
17606 dynamic_linker
="$host_os dld.so"
17607 shlibpath_var
=LD_LIBRARY_PATH
17608 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610 soname_spec
='${libname}${release}${shared_ext}$major'
17611 if test "X$HPUX_IA64_MODE" = X32
; then
17612 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17614 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17616 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17620 hardcode_into_libs
=yes
17621 dynamic_linker
="$host_os dld.sl"
17622 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17623 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17625 soname_spec
='${libname}${release}${shared_ext}$major'
17626 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17627 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17631 dynamic_linker
="$host_os dld.sl"
17632 shlibpath_var
=SHLIB_PATH
17633 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 soname_spec
='${libname}${release}${shared_ext}$major'
17638 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17639 postinstall_cmds
='chmod 555 $lib'
17640 # or fails outright, so override atomically:
17641 install_override_mode
=555
17648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17649 soname_spec
='${libname}${release}${shared_ext}$major'
17650 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17651 shlibpath_var
=LD_LIBRARY_PATH
17652 shlibpath_overrides_runpath
=no
17653 hardcode_into_libs
=yes
17656 irix5
* | irix6
* | nonstopux
*)
17658 nonstopux
*) version_type
=nonstopux
;;
17660 if test "$lt_cv_prog_gnu_ld" = yes; then
17668 soname_spec
='${libname}${release}${shared_ext}$major'
17669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17671 irix5
* | nonstopux
*)
17672 libsuff
= shlibsuff
=
17675 case $LD in # libtool.m4 will add one of these switches to LD
17676 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17677 libsuff
= shlibsuff
= libmagic
=32-bit;;
17678 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17679 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17680 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17681 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17682 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17686 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17687 shlibpath_overrides_runpath
=no
17688 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17689 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17690 hardcode_into_libs
=yes
17693 # No shared lib support for Linux oldld, aout, or coff.
17694 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17698 # This must be Linux ELF.
17699 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704 soname_spec
='${libname}${release}${shared_ext}$major'
17705 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17706 shlibpath_var
=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath
=no
17709 # Some binutils ld are patched to set DT_RUNPATH
17710 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17711 $as_echo_n "(cached) " >&6
17713 lt_cv_shlibpath_overrides_runpath
=no
17714 save_LDFLAGS
=$LDFLAGS
17715 save_libdir
=$libdir
17716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h. */
17729 if ac_fn_c_try_link
"$LINENO"; then :
17730 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17731 lt_cv_shlibpath_overrides_runpath
=yes
17734 rm -f core conftest.err conftest.
$ac_objext \
17735 conftest
$ac_exeext conftest.
$ac_ext
17736 LDFLAGS
=$save_LDFLAGS
17737 libdir
=$save_libdir
17741 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17743 # This implies no fast_install, which is unacceptable.
17744 # Some rework will be needed to allow for fast_install
17745 # before this can be enabled.
17746 hardcode_into_libs
=yes
17748 # Append ld.so.conf contents to the search path
17749 if test -f /etc
/ld.so.conf
; then
17750 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' ' '`
17751 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17754 # We used to test for /lib/ld.so.1 and disable shared libraries on
17755 # powerpc, because MkLinux only supported shared libraries with the
17756 # GNU dynamic linker. Since this was broken with cross compilers,
17757 # most powerpc-linux boxes support dynamic linking these days and
17758 # people can always --disable-shared, the test was removed, and we
17759 # assume the GNU/Linux dynamic linker is in use.
17760 dynamic_linker
='GNU/Linux ld.so'
17767 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17769 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17770 dynamic_linker
='NetBSD (a.out) ld.so'
17772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17773 soname_spec
='${libname}${release}${shared_ext}$major'
17774 dynamic_linker
='NetBSD ld.elf_so'
17776 shlibpath_var
=LD_LIBRARY_PATH
17777 shlibpath_overrides_runpath
=yes
17778 hardcode_into_libs
=yes
17783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17784 shlibpath_var
=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath
=yes
17792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17793 soname_spec
='${libname}${release}${shared_ext}$major'
17794 shlibpath_var
=LD_LIBRARY_PATH
17795 shlibpath_overrides_runpath
=no
17796 hardcode_into_libs
=yes
17797 dynamic_linker
='ldqnx.so'
17802 sys_lib_dlsearch_path_spec
="/usr/lib"
17804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17806 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17807 *) need_version
=no
;;
17809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17810 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17811 shlibpath_var
=LD_LIBRARY_PATH
17812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17814 openbsd2.
[89] | openbsd2.
[89].
*)
17815 shlibpath_overrides_runpath
=no
17818 shlibpath_overrides_runpath
=yes
17822 shlibpath_overrides_runpath
=yes
17827 libname_spec
='$name'
17830 library_names_spec
='$libname${shared_ext} $libname.a'
17831 dynamic_linker
='OS/2 ld.exe'
17832 shlibpath_var
=LIBPATH
17835 osf3
* | osf4
* | osf5
*)
17839 soname_spec
='${libname}${release}${shared_ext}$major'
17840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 shlibpath_var
=LD_LIBRARY_PATH
17842 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17843 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17854 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855 soname_spec
='${libname}${release}${shared_ext}$major'
17856 shlibpath_var
=LD_LIBRARY_PATH
17857 shlibpath_overrides_runpath
=yes
17858 hardcode_into_libs
=yes
17859 # ldd complains unless libraries are executable
17860 postinstall_cmds
='chmod +x $lib'
17865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17866 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17867 shlibpath_var
=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath
=yes
17869 if test "$with_gnu_ld" = yes; then
17877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 soname_spec
='${libname}${release}${shared_ext}$major'
17879 shlibpath_var
=LD_LIBRARY_PATH
17880 case $host_vendor in
17882 shlibpath_overrides_runpath
=no
17884 runpath_var
=LD_RUN_PATH
17892 shlibpath_overrides_runpath
=no
17893 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17899 if test -d /usr
/nec
;then
17901 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17902 soname_spec
='$libname${shared_ext}.$major'
17903 shlibpath_var
=LD_LIBRARY_PATH
17907 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17908 version_type
=freebsd-elf
17911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17912 soname_spec
='${libname}${release}${shared_ext}$major'
17913 shlibpath_var
=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath
=yes
17915 hardcode_into_libs
=yes
17916 if test "$with_gnu_ld" = yes; then
17917 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17919 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17922 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17926 sys_lib_dlsearch_path_spec
='/usr/lib'
17930 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 shlibpath_var
=LD_LIBRARY_PATH
17936 shlibpath_overrides_runpath
=no
17937 hardcode_into_libs
=yes
17942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 soname_spec
='${libname}${release}${shared_ext}$major'
17944 shlibpath_var
=LD_LIBRARY_PATH
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17952 $as_echo "$dynamic_linker" >&6; }
17953 test "$dynamic_linker" = no
&& can_build_shared
=no
17955 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17956 if test "$GCC" = yes; then
17957 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17960 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17961 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17963 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17964 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18059 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18061 if test -n "$hardcode_libdir_flag_spec" ||
18062 test -n "$runpath_var" ||
18063 test "X$hardcode_automatic" = "Xyes" ; then
18065 # We can hardcode non-existent directories.
18066 if test "$hardcode_direct" != no
&&
18067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18068 # have to relink, otherwise we might link with an installed library
18069 # when we should be linking with a yet-to-be-installed one
18070 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18071 test "$hardcode_minus_L" != no
; then
18072 # Linking always hardcodes the temporary library directory.
18073 hardcode_action
=relink
18075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18076 hardcode_action
=immediate
18079 # We cannot hardcode anything, or else we can only hardcode existing
18081 hardcode_action
=unsupported
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18084 $as_echo "$hardcode_action" >&6; }
18086 if test "$hardcode_action" = relink ||
18087 test "$inherit_rpath" = yes; then
18088 # Fast installation is not supported
18089 enable_fast_install
=no
18090 elif test "$shlibpath_overrides_runpath" = yes ||
18091 test "$enable_shared" = no
; then
18092 # Fast installation is not necessary
18093 enable_fast_install
=needless
18101 if test "x$enable_dlopen" != xyes
; then
18102 enable_dlopen
=unknown
18103 enable_dlopen_self
=unknown
18104 enable_dlopen_self_static
=unknown
18111 lt_cv_dlopen
="load_add_on"
18113 lt_cv_dlopen_self
=yes
18116 mingw
* | pw32
* | cegcc
*)
18117 lt_cv_dlopen
="LoadLibrary"
18122 lt_cv_dlopen
="dlopen"
18127 # if libdl is installed we need to link against it
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18129 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18131 $as_echo_n "(cached) " >&6
18133 ac_check_lib_save_LIBS
=$LIBS
18135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18138 /* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18153 if ac_fn_c_try_link
"$LINENO"; then :
18154 ac_cv_lib_dl_dlopen
=yes
18156 ac_cv_lib_dl_dlopen
=no
18158 rm -f core conftest.err conftest.
$ac_objext \
18159 conftest
$ac_exeext conftest.
$ac_ext
18160 LIBS
=$ac_check_lib_save_LIBS
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18163 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18164 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18165 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18168 lt_cv_dlopen
="dyld"
18170 lt_cv_dlopen_self
=yes
18177 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18178 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18179 lt_cv_dlopen
="shl_load"
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18182 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18183 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18184 $as_echo_n "(cached) " >&6
18186 ac_check_lib_save_LIBS
=$LIBS
18188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18201 return shl_load ();
18206 if ac_fn_c_try_link
"$LINENO"; then :
18207 ac_cv_lib_dld_shl_load
=yes
18209 ac_cv_lib_dld_shl_load
=no
18211 rm -f core conftest.err conftest.
$ac_objext \
18212 conftest
$ac_exeext conftest.
$ac_ext
18213 LIBS
=$ac_check_lib_save_LIBS
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18216 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18217 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18218 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18220 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18221 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18222 lt_cv_dlopen
="dlopen"
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18225 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18227 $as_echo_n "(cached) " >&6
18229 ac_check_lib_save_LIBS
=$LIBS
18231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18234 /* Override any GCC internal prototype to avoid an error.
18235 Use char because int might match the return type of a GCC
18236 builtin and then its argument prototype would still apply. */
18249 if ac_fn_c_try_link
"$LINENO"; then :
18250 ac_cv_lib_dl_dlopen
=yes
18252 ac_cv_lib_dl_dlopen
=no
18254 rm -f core conftest.err conftest.
$ac_objext \
18255 conftest
$ac_exeext conftest.
$ac_ext
18256 LIBS
=$ac_check_lib_save_LIBS
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18259 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18260 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18261 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18264 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18265 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18266 $as_echo_n "(cached) " >&6
18268 ac_check_lib_save_LIBS
=$LIBS
18269 LIBS
="-lsvld $LIBS"
18270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18273 /* Override any GCC internal prototype to avoid an error.
18274 Use char because int might match the return type of a GCC
18275 builtin and then its argument prototype would still apply. */
18288 if ac_fn_c_try_link
"$LINENO"; then :
18289 ac_cv_lib_svld_dlopen
=yes
18291 ac_cv_lib_svld_dlopen
=no
18293 rm -f core conftest.err conftest.
$ac_objext \
18294 conftest
$ac_exeext conftest.
$ac_ext
18295 LIBS
=$ac_check_lib_save_LIBS
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18298 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18299 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18300 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18303 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18304 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18305 $as_echo_n "(cached) " >&6
18307 ac_check_lib_save_LIBS
=$LIBS
18309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18312 /* Override any GCC internal prototype to avoid an error.
18313 Use char because int might match the return type of a GCC
18314 builtin and then its argument prototype would still apply. */
18322 return dld_link ();
18327 if ac_fn_c_try_link
"$LINENO"; then :
18328 ac_cv_lib_dld_dld_link
=yes
18330 ac_cv_lib_dld_dld_link
=no
18332 rm -f core conftest.err conftest.
$ac_objext \
18333 conftest
$ac_exeext conftest.
$ac_ext
18334 LIBS
=$ac_check_lib_save_LIBS
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18337 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18338 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18339 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18360 if test "x$lt_cv_dlopen" != xno
; then
18366 case $lt_cv_dlopen in
18368 save_CPPFLAGS
="$CPPFLAGS"
18369 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18371 save_LDFLAGS
="$LDFLAGS"
18372 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18375 LIBS
="$lt_cv_dlopen_libs $LIBS"
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18378 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18379 if test "${lt_cv_dlopen_self+set}" = set; then :
18380 $as_echo_n "(cached) " >&6
18382 if test "$cross_compiling" = yes; then :
18383 lt_cv_dlopen_self
=cross
18385 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18386 lt_status
=$lt_dlunknown
18387 cat > conftest.
$ac_ext <<_LT_EOF
18388 #line 18388 "configure"
18389 #include "confdefs.h"
18398 # define LT_DLGLOBAL RTLD_GLOBAL
18401 # define LT_DLGLOBAL DL_GLOBAL
18403 # define LT_DLGLOBAL 0
18407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18408 find out it does not work in some platform. */
18409 #ifndef LT_DLLAZY_OR_NOW
18411 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18414 # define LT_DLLAZY_OR_NOW DL_LAZY
18417 # define LT_DLLAZY_OR_NOW RTLD_NOW
18420 # define LT_DLLAZY_OR_NOW DL_NOW
18422 # define LT_DLLAZY_OR_NOW 0
18429 /* When -fvisbility=hidden is used, assume the code has been annotated
18430 correspondingly for the symbols needed. */
18431 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18432 void fnord () __attribute__((visibility("default")));
18435 void fnord () { int i=42; }
18438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18439 int status = $lt_dlunknown;
18443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18446 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18447 else puts (dlerror ());
18449 /* dlclose (self); */
18457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18458 (eval $ac_link) 2>&5
18460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18461 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18462 (.
/conftest
; exit; ) >&5 2>/dev
/null
18464 case x
$lt_status in
18465 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18466 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18467 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18470 # compilation failed
18471 lt_cv_dlopen_self
=no
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18479 $as_echo "$lt_cv_dlopen_self" >&6; }
18481 if test "x$lt_cv_dlopen_self" = xyes
; then
18482 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18484 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18485 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18488 if test "$cross_compiling" = yes; then :
18489 lt_cv_dlopen_self_static
=cross
18491 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18492 lt_status
=$lt_dlunknown
18493 cat > conftest.
$ac_ext <<_LT_EOF
18494 #line 18494 "configure"
18495 #include "confdefs.h"
18504 # define LT_DLGLOBAL RTLD_GLOBAL
18507 # define LT_DLGLOBAL DL_GLOBAL
18509 # define LT_DLGLOBAL 0
18513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18514 find out it does not work in some platform. */
18515 #ifndef LT_DLLAZY_OR_NOW
18517 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18520 # define LT_DLLAZY_OR_NOW DL_LAZY
18523 # define LT_DLLAZY_OR_NOW RTLD_NOW
18526 # define LT_DLLAZY_OR_NOW DL_NOW
18528 # define LT_DLLAZY_OR_NOW 0
18535 /* When -fvisbility=hidden is used, assume the code has been annotated
18536 correspondingly for the symbols needed. */
18537 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18538 void fnord () __attribute__((visibility("default")));
18541 void fnord () { int i=42; }
18544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18545 int status = $lt_dlunknown;
18549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18552 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18553 else puts (dlerror ());
18555 /* dlclose (self); */
18563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18564 (eval $ac_link) 2>&5
18566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18567 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18568 (.
/conftest
; exit; ) >&5 2>/dev
/null
18570 case x
$lt_status in
18571 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18572 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18573 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18576 # compilation failed
18577 lt_cv_dlopen_self_static
=no
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18585 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18588 CPPFLAGS
="$save_CPPFLAGS"
18589 LDFLAGS
="$save_LDFLAGS"
18594 case $lt_cv_dlopen_self in
18595 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18596 *) enable_dlopen_self
=unknown
;;
18599 case $lt_cv_dlopen_self_static in
18600 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18601 *) enable_dlopen_self_static
=unknown
;;
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18624 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18625 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18626 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18627 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18629 $as_echo "yes" >&6; }
18631 # FIXME - insert some real tests, host_os isn't really good enough
18634 if test -n "$STRIP" ; then
18635 striplib
="$STRIP -x"
18636 old_striplib
="$STRIP -S"
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18638 $as_echo "yes" >&6; }
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18641 $as_echo "no" >&6; }
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18662 # Report which library types will actually be built
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18664 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18666 $as_echo "$can_build_shared" >&6; }
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18669 $as_echo_n "checking whether to build shared libraries... " >&6; }
18670 test "$can_build_shared" = "no" && enable_shared
=no
18672 # On AIX, shared libraries and static libraries use the same namespace, and
18673 # are all built from PIC.
18676 test "$enable_shared" = yes && enable_static
=no
18677 if test -n "$RANLIB"; then
18678 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18679 postinstall_cmds
='$RANLIB $lib'
18684 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18685 test "$enable_shared" = yes && enable_static
=no
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18690 $as_echo "$enable_shared" >&6; }
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18693 $as_echo_n "checking whether to build static libraries... " >&6; }
18694 # Make sure either enable_shared or enable_static is yes.
18695 test "$enable_shared" = yes || enable_static
=yes
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18697 $as_echo "$enable_static" >&6; }
18704 ac_cpp
='$CXXCPP $CPPFLAGS'
18705 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18711 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18712 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18713 (test "X$CXX" != "Xg++"))) ; then
18715 ac_cpp
='$CXXCPP $CPPFLAGS'
18716 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18720 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18721 if test -z "$CXXCPP"; then
18722 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18723 $as_echo_n "(cached) " >&6
18725 # Double quotes because CXXCPP needs to be expanded
18726 for CXXCPP
in "$CXX -E" "/lib/cpp"
18728 ac_preproc_ok
=false
18729 for ac_cxx_preproc_warn_flag
in '' yes
18731 # Use a header file that comes with gcc, so configuring glibc
18732 # with a fresh cross-compiler works.
18733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734 # <limits.h> exists even on freestanding compilers.
18735 # On the NeXT, cc -E runs the code through the compiler's parser,
18736 # not just through cpp. "Syntax error" is here to catch this case.
18737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18740 # include <limits.h>
18742 # include <assert.h>
18746 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18749 # Broken: fails on valid input.
18752 rm -f conftest.err conftest.
$ac_ext
18754 # OK, works on sane cases. Now check whether nonexistent headers
18755 # can be detected and how.
18756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18758 #include <ac_nonexistent.h>
18760 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18761 # Broken: success on invalid input.
18764 # Passes both tests.
18768 rm -f conftest.err conftest.
$ac_ext
18771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18772 rm -f conftest.err conftest.
$ac_ext
18773 if $ac_preproc_ok; then :
18778 ac_cv_prog_CXXCPP
=$CXXCPP
18781 CXXCPP
=$ac_cv_prog_CXXCPP
18783 ac_cv_prog_CXXCPP
=$CXXCPP
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18786 $as_echo "$CXXCPP" >&6; }
18787 ac_preproc_ok
=false
18788 for ac_cxx_preproc_warn_flag
in '' yes
18790 # Use a header file that comes with gcc, so configuring glibc
18791 # with a fresh cross-compiler works.
18792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18793 # <limits.h> exists even on freestanding compilers.
18794 # On the NeXT, cc -E runs the code through the compiler's parser,
18795 # not just through cpp. "Syntax error" is here to catch this case.
18796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18797 /* end confdefs.h. */
18799 # include <limits.h>
18801 # include <assert.h>
18805 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18808 # Broken: fails on valid input.
18811 rm -f conftest.err conftest.
$ac_ext
18813 # OK, works on sane cases. Now check whether nonexistent headers
18814 # can be detected and how.
18815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817 #include <ac_nonexistent.h>
18819 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18820 # Broken: success on invalid input.
18823 # Passes both tests.
18827 rm -f conftest.err conftest.
$ac_ext
18830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18831 rm -f conftest.err conftest.
$ac_ext
18832 if $ac_preproc_ok; then :
18835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18837 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18838 See \`config.log' for more details." "$LINENO" 5; }
18842 ac_cpp
='$CXXCPP $CPPFLAGS'
18843 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18844 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18845 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18848 _lt_caught_CXX_error
=yes
18852 ac_cpp
='$CXXCPP $CPPFLAGS'
18853 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18854 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18855 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18857 archive_cmds_need_lc_CXX
=no
18858 allow_undefined_flag_CXX
=
18859 always_export_symbols_CXX
=no
18860 archive_expsym_cmds_CXX
=
18861 compiler_needs_object_CXX
=no
18862 export_dynamic_flag_spec_CXX
=
18863 hardcode_direct_CXX
=no
18864 hardcode_direct_absolute_CXX
=no
18865 hardcode_libdir_flag_spec_CXX
=
18866 hardcode_libdir_flag_spec_ld_CXX
=
18867 hardcode_libdir_separator_CXX
=
18868 hardcode_minus_L_CXX
=no
18869 hardcode_shlibpath_var_CXX
=unsupported
18870 hardcode_automatic_CXX
=no
18871 inherit_rpath_CXX
=no
18873 module_expsym_cmds_CXX
=
18874 link_all_deplibs_CXX
=unknown
18875 old_archive_cmds_CXX
=$old_archive_cmds
18876 reload_flag_CXX
=$reload_flag
18877 reload_cmds_CXX
=$reload_cmds
18878 no_undefined_flag_CXX
=
18879 whole_archive_flag_spec_CXX
=
18880 enable_shared_with_static_runtimes_CXX
=no
18882 # Source file extension for C++ test sources.
18885 # Object file extension for compiled C++ test sources.
18889 # No sense in running all these tests if we already determined that
18890 # the CXX compiler isn't working. Some variables (like enable_shared)
18891 # are currently assumed to apply to all compilers on this platform,
18892 # and will be corrupted by setting them based on a non-working compiler.
18893 if test "$_lt_caught_CXX_error" != yes; then
18894 # Code to be used in simple compile tests
18895 lt_simple_compile_test_code
="int some_variable = 0;"
18897 # Code to be used in simple link tests
18898 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18900 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18907 # If no C compiler was specified, use CC.
18910 # If no C compiler flags were specified, use CFLAGS.
18911 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18913 # Allow CC to be a program name with arguments.
18917 # save warnings/boilerplate of simple test code
18918 ac_outfile
=conftest.
$ac_objext
18919 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18920 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18921 _lt_compiler_boilerplate
=`cat conftest.err`
18924 ac_outfile
=conftest.
$ac_objext
18925 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18926 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18927 _lt_linker_boilerplate
=`cat conftest.err`
18931 # Allow CC to be a program name with arguments.
18936 lt_save_with_gnu_ld
=$with_gnu_ld
18937 lt_save_path_LD
=$lt_cv_path_LD
18938 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18939 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18941 $as_unset lt_cv_prog_gnu_ld
18943 if test -n "${lt_cv_path_LDCXX+set}"; then
18944 lt_cv_path_LD
=$lt_cv_path_LDCXX
18946 $as_unset lt_cv_path_LD
18948 test -z "${LDCXX+set}" || LD
=$LDCXX
18952 for cc_temp
in $compiler""; do
18954 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18955 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18960 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18963 if test -n "$compiler"; then
18964 # We don't want -fno-exception when compiling C++ code, so set the
18965 # no_builtin_flag separately
18966 if test "$GXX" = yes; then
18967 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18969 lt_prog_compiler_no_builtin_flag_CXX
=
18972 if test "$GXX" = yes; then
18973 # Set up default GNU C++ configuration
18977 # Check whether --with-gnu-ld was given.
18978 if test "${with_gnu_ld+set}" = set; then :
18979 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18985 if test "$GCC" = yes; then
18986 # Check if gcc -print-prog-name=ld gives a path.
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18988 $as_echo_n "checking for ld used by $CC... " >&6; }
18991 # gcc leaves a trailing carriage return which upsets mingw
18992 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18994 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18997 # Accept absolute paths.
18999 re_direlt
='/[^/][^/]*/\.\./'
19000 # Canonicalize the pathname of ld
19001 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19002 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19003 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19005 test -z "$LD" && LD
="$ac_prog"
19008 # If it fails, then pretend we aren't using GCC.
19012 # If it is relative, then search for the first ld in PATH.
19013 with_gnu_ld
=unknown
19016 elif test "$with_gnu_ld" = yes; then
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19018 $as_echo_n "checking for GNU ld... " >&6; }
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19021 $as_echo_n "checking for non-GNU ld... " >&6; }
19023 if test "${lt_cv_path_LD+set}" = set; then :
19024 $as_echo_n "(cached) " >&6
19026 if test -z "$LD"; then
19027 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19028 for ac_dir
in $PATH; do
19030 test -z "$ac_dir" && ac_dir
=.
19031 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19032 lt_cv_path_LD
="$ac_dir/$ac_prog"
19033 # Check to see if the program is GNU ld. I'd rather use --version,
19034 # but apparently some variants of GNU ld only accept -v.
19035 # Break only if it was the GNU/non-GNU ld that we prefer.
19036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19037 *GNU
* |
*'with BFD'*)
19038 test "$with_gnu_ld" != no
&& break
19041 test "$with_gnu_ld" != yes && break
19048 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19052 LD
="$lt_cv_path_LD"
19053 if test -n "$LD"; then
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19055 $as_echo "$LD" >&6; }
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 $as_echo "no" >&6; }
19060 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19062 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19063 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19064 $as_echo_n "(cached) " >&6
19066 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19067 case `$LD -v 2>&1 </dev/null` in
19068 *GNU
* |
*'with BFD'*)
19069 lt_cv_prog_gnu_ld
=yes
19072 lt_cv_prog_gnu_ld
=no
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19077 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19078 with_gnu_ld
=$lt_cv_prog_gnu_ld
19086 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19087 # archiving commands below assume that GNU ld is being used.
19088 if test "$with_gnu_ld" = yes; then
19089 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19090 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19092 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19093 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19095 # If archive_cmds runs LD, not CC, wlarc should be empty
19096 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19097 # investigate it a little bit more. (MM)
19100 # ancient GNU ld didn't support --whole-archive et. al.
19101 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19102 $GREP 'no-whole-archive' > /dev
/null
; then
19103 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19105 whole_archive_flag_spec_CXX
=
19111 # A generic and very simple default shared library creation
19112 # command for GNU C++ for the case where it uses the native
19113 # linker, instead of GNU ld. If possible, this setting should
19114 # overridden to take advantage of the native linker features on
19115 # the platform it is being used on.
19116 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19119 # Commands to make compiler produce verbose output that lists
19120 # what "hidden" libraries, object files and flags are used when
19121 # linking a shared library.
19122 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19130 # PORTME: fill in a description of your system's C++ link characteristics
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19132 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19136 # FIXME: insert proper C++ library support
19140 if test "$host_cpu" = ia64
; then
19141 # On IA64, the linker does run time linking by default, so we don't
19142 # have to do anything special.
19143 aix_use_runtimelinking
=no
19144 exp_sym_flag
='-Bexport'
19147 aix_use_runtimelinking
=no
19149 # Test if we are trying to use run time linking or normal
19150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19151 # need to do runtime linking.
19152 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19153 for ld_flag
in $LDFLAGS; do
19156 aix_use_runtimelinking
=yes
19164 exp_sym_flag
='-bexport'
19165 no_entry_flag
='-bnoentry'
19168 # When large executables or shared objects are built, AIX ld can
19169 # have problems creating the table of contents. If linking a library
19170 # or program results in "error TOC overflow" add -mminimal-toc to
19171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19174 archive_cmds_CXX
=''
19175 hardcode_direct_CXX
=yes
19176 hardcode_direct_absolute_CXX
=yes
19177 hardcode_libdir_separator_CXX
=':'
19178 link_all_deplibs_CXX
=yes
19179 file_list_spec_CXX
='${wl}-f,'
19181 if test "$GXX" = yes; then
19182 case $host_os in aix4.
[012]|aix4.
[012].
*)
19183 # We only want to do this on AIX 4.2 and lower, the check
19184 # below for broken collect2 doesn't work under 4.3+
19185 collect2name
=`${CC} -print-prog-name=collect2`
19186 if test -f "$collect2name" &&
19187 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19189 # We have reworked collect2
19192 # We have old collect2
19193 hardcode_direct_CXX
=unsupported
19194 # It fails to find uninstalled libraries when the uninstalled
19195 # path is not listed in the libpath. Setting hardcode_minus_L
19196 # to unsupported forces relinking
19197 hardcode_minus_L_CXX
=yes
19198 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19199 hardcode_libdir_separator_CXX
=
19202 shared_flag
='-shared'
19203 if test "$aix_use_runtimelinking" = yes; then
19204 shared_flag
="$shared_flag "'${wl}-G'
19208 if test "$host_cpu" = ia64
; then
19209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19210 # chokes on -Wl,-G. The following line is correct:
19213 if test "$aix_use_runtimelinking" = yes; then
19214 shared_flag
='${wl}-G'
19216 shared_flag
='${wl}-bM:SRE'
19221 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19222 # It seems that -bexpall does not export symbols beginning with
19223 # underscore (_), so it is better to generate a list of symbols to
19225 always_export_symbols_CXX
=yes
19226 if test "$aix_use_runtimelinking" = yes; then
19227 # Warning - without using the other runtime loading flags (-brtl),
19228 # -berok will link without error, but may produce a broken library.
19229 allow_undefined_flag_CXX
='-berok'
19230 # Determine the default libpath from the value encoded in an empty
19232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19243 if ac_fn_cxx_try_link
"$LINENO"; then :
19245 lt_aix_libpath_sed
='
19246 /Import File Strings/,/^$/ {
19252 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19253 # Check for a 64-bit object if we didn't find anything.
19254 if test -z "$aix_libpath"; then
19255 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19258 rm -f core conftest.err conftest.
$ac_objext \
19259 conftest
$ac_exeext conftest.
$ac_ext
19260 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19262 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19264 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"
19266 if test "$host_cpu" = ia64
; then
19267 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19268 allow_undefined_flag_CXX
="-z nodefs"
19269 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"
19271 # Determine the default libpath from the value encoded in an
19272 # empty executable.
19273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19284 if ac_fn_cxx_try_link
"$LINENO"; then :
19286 lt_aix_libpath_sed
='
19287 /Import File Strings/,/^$/ {
19293 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19294 # Check for a 64-bit object if we didn't find anything.
19295 if test -z "$aix_libpath"; then
19296 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19299 rm -f core conftest.err conftest.
$ac_objext \
19300 conftest
$ac_exeext conftest.
$ac_ext
19301 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19303 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19304 # Warning - without using the other run time loading flags,
19305 # -berok will link without error, but may produce a broken library.
19306 no_undefined_flag_CXX
=' ${wl}-bernotok'
19307 allow_undefined_flag_CXX
=' ${wl}-berok'
19308 if test "$with_gnu_ld" = yes; then
19309 # We only use this code for GNU lds that support --whole-archive.
19310 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19312 # Exported symbols can be pulled into shared objects from archives
19313 whole_archive_flag_spec_CXX
='$convenience'
19315 archive_cmds_need_lc_CXX
=yes
19316 # This is similar to how AIX traditionally builds its shared
19318 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'
19324 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19325 allow_undefined_flag_CXX
=unsupported
19326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19327 # support --undefined. This deserves some investigation. FIXME
19328 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19335 case $cc_basename in
19337 # FIXME: insert proper C++ library support
19343 cygwin
* | mingw
* | pw32
* | cegcc
*)
19344 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19345 # as there is no search path for DLLs.
19346 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19347 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19348 allow_undefined_flag_CXX
=unsupported
19349 always_export_symbols_CXX
=no
19350 enable_shared_with_static_runtimes_CXX
=yes
19352 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19353 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'
19354 # If the export-symbols file already is a .def file (1st line
19355 # is EXPORTS), use it as is; otherwise, prepend...
19356 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19357 cp $export_symbols $output_objdir/$soname.def;
19359 echo EXPORTS > $output_objdir/$soname.def;
19360 cat $export_symbols >> $output_objdir/$soname.def;
19362 $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'
19367 darwin
* | rhapsody
*)
19370 archive_cmds_need_lc_CXX
=no
19371 hardcode_direct_CXX
=no
19372 hardcode_automatic_CXX
=yes
19373 hardcode_shlibpath_var_CXX
=unsupported
19374 if test "$lt_cv_ld_force_load" = "yes"; then
19375 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\"`'
19377 whole_archive_flag_spec_CXX
=''
19379 link_all_deplibs_CXX
=yes
19380 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19381 case $cc_basename in
19382 ifort
*) _lt_dar_can_shared
=yes ;;
19383 *) _lt_dar_can_shared
=$GCC ;;
19385 if test "$_lt_dar_can_shared" = "yes"; then
19386 output_verbose_link_cmd
=func_echo_all
19387 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}"
19388 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19389 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}"
19390 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}"
19391 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19392 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}"
19393 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}"
19403 case $cc_basename in
19405 # FIXME: insert proper C++ library support
19409 # Green Hills C++ Compiler
19410 # FIXME: insert proper C++ library support
19414 # FIXME: insert proper C++ library support
19421 # C++ shared libraries reported to be fairly broken before
19427 archive_cmds_need_lc_CXX
=no
19430 freebsd
* | dragonfly
*)
19431 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19440 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19441 link_all_deplibs_CXX
=yes
19445 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19446 hardcode_libdir_separator_CXX
=:
19447 export_dynamic_flag_spec_CXX
='${wl}-E'
19448 hardcode_direct_CXX
=yes
19449 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19450 # but as the default
19451 # location of the library.
19453 case $cc_basename in
19455 # FIXME: insert proper C++ library support
19459 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'
19460 # Commands to make compiler produce verbose output that lists
19461 # what "hidden" libraries, object files and flags are used when
19462 # linking a shared library.
19464 # There doesn't appear to be a way to prevent this compiler from
19465 # explicitly linking system object files so we need to strip them
19466 # from the output so that they don't get included in the library
19468 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"'
19471 if test "$GXX" = yes; then
19472 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'
19474 # FIXME: insert proper C++ library support
19482 if test $with_gnu_ld = no
; then
19483 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19484 hardcode_libdir_separator_CXX
=:
19490 export_dynamic_flag_spec_CXX
='${wl}-E'
19496 hardcode_direct_CXX
=no
19497 hardcode_shlibpath_var_CXX
=no
19500 hardcode_direct_CXX
=yes
19501 hardcode_direct_absolute_CXX
=yes
19502 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19503 # but as the default
19504 # location of the library.
19508 case $cc_basename in
19510 # FIXME: insert proper C++ library support
19516 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19519 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19522 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19525 # Commands to make compiler produce verbose output that lists
19526 # what "hidden" libraries, object files and flags are used when
19527 # linking a shared library.
19529 # There doesn't appear to be a way to prevent this compiler from
19530 # explicitly linking system object files so we need to strip them
19531 # from the output so that they don't get included in the library
19533 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"'
19536 if test "$GXX" = yes; then
19537 if test $with_gnu_ld = no
; then
19540 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19543 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19546 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'
19551 # FIXME: insert proper C++ library support
19559 hardcode_direct_CXX
=no
19560 hardcode_shlibpath_var_CXX
=no
19561 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19562 export_dynamic_flag_spec_CXX
='${wl}-E'
19563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19564 # Instead, shared libraries are loaded at an image base (0x10000000 by
19565 # default) and relocated if they conflict, which is a slow very memory
19566 # consuming and fragmenting process. To avoid this, we pick a random,
19567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19569 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'
19570 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'
19573 case $cc_basename in
19576 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'
19578 # Archives containing C++ object files must be created using
19579 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19580 # necessary to make sure instantiated templates are included
19582 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19585 if test "$GXX" = yes; then
19586 if test "$with_gnu_ld" = no
; then
19587 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'
19589 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'
19592 link_all_deplibs_CXX
=yes
19595 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19596 hardcode_libdir_separator_CXX
=:
19597 inherit_rpath_CXX
=yes
19600 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19601 case $cc_basename in
19603 # Kuck and Associates, Inc. (KAI) C++ Compiler
19605 # KCC will only create a shared library if the output file
19606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19607 # to its proper name (with version) after linking.
19608 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'
19609 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'
19610 # Commands to make compiler produce verbose output that lists
19611 # what "hidden" libraries, object files and flags are used when
19612 # linking a shared library.
19614 # There doesn't appear to be a way to prevent this compiler from
19615 # explicitly linking system object files so we need to strip them
19616 # from the output so that they don't get included in the library
19618 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"'
19620 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19621 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19623 # Archives containing C++ object files must be created using
19624 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19625 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19630 # version 8.0 and above of icpc choke on multiply defined symbols
19631 # if we add $predep_objects and $postdep_objects, however 7.1 and
19632 # earlier do not add the objects themselves.
19633 case `$CC -V 2>&1` in
19635 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19636 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'
19638 *) # Version 8.0 or newer
19641 ia64
*) tmp_idyn
=' -i_dynamic';;
19643 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19644 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'
19647 archive_cmds_need_lc_CXX
=no
19648 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19649 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19650 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19653 # Portland Group C++ compiler
19655 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19656 prelink_cmds_CXX
='tpldir=Template.dir~
19658 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19659 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19660 old_archive_cmds_CXX
='tpldir=Template.dir~
19662 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19663 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19665 archive_cmds_CXX
='tpldir=Template.dir~
19667 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19668 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19669 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19671 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19672 $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'
19674 *) # Version 6 and above use weak symbols
19675 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19676 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'
19680 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19681 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19682 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'
19686 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19687 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'
19689 runpath_var
=LD_RUN_PATH
19690 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19691 hardcode_libdir_separator_CXX
=:
19693 # Commands to make compiler produce verbose output that lists
19694 # what "hidden" libraries, object files and flags are used when
19695 # linking a shared library.
19697 # There doesn't appear to be a way to prevent this compiler from
19698 # explicitly linking system object files so we need to strip them
19699 # from the output so that they don't get included in the library
19701 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'
19703 xl
* | mpixl
* | bgxl
*)
19704 # IBM XL 8.0 on PPC, with GNU ld
19705 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19706 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19707 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19708 if test "x$supports_anon_versioning" = xyes
; then
19709 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19710 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19711 echo "local: *; };" >> $output_objdir/$libname.ver~
19712 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19716 case `$CC -V 2>&1 | sed 5q` in
19719 no_undefined_flag_CXX
=' -zdefs'
19720 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19721 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'
19722 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19723 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'
19724 compiler_needs_object_CXX
=yes
19726 # Not sure whether something based on
19727 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19729 output_verbose_link_cmd
='func_echo_all'
19731 # Archives containing C++ object files must be created using
19732 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19733 # necessary to make sure instantiated templates are included
19735 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19743 # FIXME: insert proper C++ library support
19748 # FIXME: insert proper C++ library support
19753 case $cc_basename in
19755 # FIXME: insert proper C++ library support
19759 # FIXME: insert proper C++ library support
19766 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19767 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19769 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19770 hardcode_direct_CXX
=yes
19771 hardcode_shlibpath_var_CXX
=no
19773 # Workaround some broken pre-1.5 toolchains
19774 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19782 # C++ shared libraries are fairly broken
19787 if test -f /usr
/libexec
/ld.so
; then
19788 hardcode_direct_CXX
=yes
19789 hardcode_shlibpath_var_CXX
=no
19790 hardcode_direct_absolute_CXX
=yes
19791 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19792 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19793 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19794 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19795 export_dynamic_flag_spec_CXX
='${wl}-E'
19796 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19798 output_verbose_link_cmd
=func_echo_all
19804 osf3
* | osf4
* | osf5
*)
19805 case $cc_basename in
19807 # Kuck and Associates, Inc. (KAI) C++ Compiler
19809 # KCC will only create a shared library if the output file
19810 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19811 # to its proper name (with version) after linking.
19812 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'
19814 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19815 hardcode_libdir_separator_CXX
=:
19817 # Archives containing C++ object files must be created using
19818 # the KAI C++ compiler.
19820 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19821 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19825 # Rational C++ 2.4.1
19826 # FIXME: insert proper C++ library support
19832 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19833 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'
19834 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19837 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19838 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'
19839 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19840 echo "-hidden">> $lib.exp~
19841 $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~
19843 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19847 hardcode_libdir_separator_CXX
=:
19849 # Commands to make compiler produce verbose output that lists
19850 # what "hidden" libraries, object files and flags are used when
19851 # linking a shared library.
19853 # There doesn't appear to be a way to prevent this compiler from
19854 # explicitly linking system object files so we need to strip them
19855 # from the output so that they don't get included in the library
19857 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"'
19860 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19861 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19864 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'
19867 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'
19871 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19872 hardcode_libdir_separator_CXX
=:
19874 # Commands to make compiler produce verbose output that lists
19875 # what "hidden" libraries, object files and flags are used when
19876 # linking a shared library.
19877 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19880 # FIXME: insert proper C++ library support
19888 # FIXME: insert proper C++ library support
19893 case $cc_basename in
19896 # FIXME: insert proper C++ library support
19901 # FIXME: insert proper C++ library support
19905 # FIXME: insert proper C++ library support
19912 case $cc_basename in
19914 # Sun C++ 4.2, 5.x and Centerline C++
19915 archive_cmds_need_lc_CXX
=yes
19916 no_undefined_flag_CXX
=' -zdefs'
19917 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19918 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19919 $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'
19921 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19922 hardcode_shlibpath_var_CXX
=no
19924 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19926 # The compiler driver will combine and reorder linker options,
19927 # but understands `-z linker_flag'.
19928 # Supported since Solaris 2.6 (maybe 2.5.1?)
19929 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19932 link_all_deplibs_CXX
=yes
19934 output_verbose_link_cmd
='func_echo_all'
19936 # Archives containing C++ object files must be created using
19937 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19938 # necessary to make sure instantiated templates are included
19940 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19943 # Green Hills C++ Compiler
19944 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19946 # The C++ compiler must be used to create the archive.
19947 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19950 # GNU C++ compiler with Solaris linker
19951 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19952 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19953 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19954 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19955 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19956 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19958 # Commands to make compiler produce verbose output that lists
19959 # what "hidden" libraries, object files and flags are used when
19960 # linking a shared library.
19961 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19963 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19965 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19966 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19967 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19969 # Commands to make compiler produce verbose output that lists
19970 # what "hidden" libraries, object files and flags are used when
19971 # linking a shared library.
19972 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19975 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19977 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19979 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19987 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19988 no_undefined_flag_CXX
='${wl}-z,text'
19989 archive_cmds_need_lc_CXX
=no
19990 hardcode_shlibpath_var_CXX
=no
19991 runpath_var
='LD_RUN_PATH'
19993 case $cc_basename in
19995 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19996 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19999 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20000 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20005 sysv5
* | sco3.2v5
* | sco5v6
*)
20006 # Note: We can NOT use -z defs as we might desire, because we do not
20007 # link with -lc, and that would cause any symbols used from libc to
20008 # always be unresolved, which means just about no library would
20009 # ever link correctly. If we're not using GNU ld we use -z text
20010 # though, which does catch some bad symbols but isn't as heavy-handed
20012 no_undefined_flag_CXX
='${wl}-z,text'
20013 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20014 archive_cmds_need_lc_CXX
=no
20015 hardcode_shlibpath_var_CXX
=no
20016 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20017 hardcode_libdir_separator_CXX
=':'
20018 link_all_deplibs_CXX
=yes
20019 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20020 runpath_var
='LD_RUN_PATH'
20022 case $cc_basename in
20024 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20025 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20026 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20027 '"$old_archive_cmds_CXX"
20028 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20029 '"$reload_cmds_CXX"
20032 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20033 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20039 case $cc_basename in
20041 # NonStop-UX NCC 3.20
20042 # FIXME: insert proper C++ library support
20046 # FIXME: insert proper C++ library support
20053 # FIXME: insert proper C++ library support
20058 # FIXME: insert proper C++ library support
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20064 $as_echo "$ld_shlibs_CXX" >&6; }
20065 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20071 ## There is no encapsulation within the following macros, do not change
20072 ## the running order or otherwise move them around unless you know exactly
20073 ## what you are doing...
20074 # Dependencies to place before and after the object being linked:
20075 predep_objects_CXX
=
20076 postdep_objects_CXX
=
20079 compiler_lib_search_path_CXX
=
20081 cat > conftest.
$ac_ext <<_LT_EOF
20085 Foo (void) { a = 0; }
20091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20092 (eval $ac_compile) 2>&5
20094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095 test $ac_status = 0; }; then
20096 # Parse the compiler output and extract the necessary
20097 # objects, libraries and library flags.
20099 # Sentinel used to keep track of whether or not we are before
20100 # the conftest object file.
20101 pre_test_object_deps_done
=no
20103 for p
in `eval "$output_verbose_link_cmd"`; do
20107 # Some compilers place space between "-{L,R}" and the path.
20108 # Remove the space.
20109 if test $p = "-L" ||
20110 test $p = "-R"; then
20117 if test "$pre_test_object_deps_done" = no
; then
20120 # Internal compiler library paths should come after those
20121 # provided the user. The postdeps already come after the
20122 # user supplied libs so there is no need to process them.
20123 if test -z "$compiler_lib_search_path_CXX"; then
20124 compiler_lib_search_path_CXX
="${prev}${p}"
20126 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20129 # The "-l" case would never come before the object being
20130 # linked, so don't bother handling this case.
20133 if test -z "$postdeps_CXX"; then
20134 postdeps_CXX
="${prev}${p}"
20136 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20142 # This assumes that the test object file only shows up
20143 # once in the compiler output.
20144 if test "$p" = "conftest.$objext"; then
20145 pre_test_object_deps_done
=yes
20149 if test "$pre_test_object_deps_done" = no
; then
20150 if test -z "$predep_objects_CXX"; then
20151 predep_objects_CXX
="$p"
20153 predep_objects_CXX
="$predep_objects_CXX $p"
20156 if test -z "$postdep_objects_CXX"; then
20157 postdep_objects_CXX
="$p"
20159 postdep_objects_CXX
="$postdep_objects_CXX $p"
20164 *) ;; # Ignore the rest.
20172 echo "libtool.m4: error: problem compiling CXX test program"
20175 $RM -f confest.
$objext
20177 # PORTME: override above test on systems where it is broken
20180 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20181 # hack all around it, let's just trust "g++" to DTRT.
20182 predep_objects_CXX
=
20183 postdep_objects_CXX
=
20188 case `$CC -V 2>&1 | sed 5q` in
20192 # The more standards-conforming stlport4 library is
20193 # incompatible with the Cstd library. Avoid specifying
20194 # it if it's in CXXFLAGS. Ignore libCrun as
20195 # -library=stlport4 depends on it.
20196 case " $CXX $CXXFLAGS " in
20197 *" -library=stlport4 "*)
20198 solaris_use_stlport4
=yes
20202 if test "$solaris_use_stlport4" != yes; then
20203 postdeps_CXX
='-library=Cstd -library=Crun'
20210 case $cc_basename in
20212 # The more standards-conforming stlport4 library is
20213 # incompatible with the Cstd library. Avoid specifying
20214 # it if it's in CXXFLAGS. Ignore libCrun as
20215 # -library=stlport4 depends on it.
20216 case " $CXX $CXXFLAGS " in
20217 *" -library=stlport4 "*)
20218 solaris_use_stlport4
=yes
20222 # Adding this requires a known-good setup of shared libraries for
20223 # Sun compiler versions before 5.6, else PIC objects from an old
20224 # archive will be linked into the output, leading to subtle bugs.
20225 if test "$solaris_use_stlport4" != yes; then
20226 postdeps_CXX
='-library=Cstd -library=Crun'
20234 case " $postdeps_CXX " in
20235 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20237 compiler_lib_search_dirs_CXX
=
20238 if test -n "${compiler_lib_search_path_CXX}"; then
20239 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20272 lt_prog_compiler_wl_CXX
=
20273 lt_prog_compiler_pic_CXX
=
20274 lt_prog_compiler_static_CXX
=
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20277 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20279 # C++ specific cases for pic, static, wl, etc.
20280 if test "$GXX" = yes; then
20281 lt_prog_compiler_wl_CXX
='-Wl,'
20282 lt_prog_compiler_static_CXX
='-static'
20286 # All AIX code is PIC.
20287 if test "$host_cpu" = ia64
; then
20288 # AIX 5 now supports IA64 processor
20289 lt_prog_compiler_static_CXX
='-Bstatic'
20291 lt_prog_compiler_pic_CXX
='-fPIC'
20297 # see comment about AmigaOS4 .so support
20298 lt_prog_compiler_pic_CXX
='-fPIC'
20301 # FIXME: we need at least 68020 code to build shared libraries, but
20302 # adding the `-m68020' flag to GCC prevents building anything better,
20304 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20309 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20310 # PIC is the default for these OSes.
20312 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20313 # This hack is so that the source file can tell whether it is being
20314 # built for inclusion in a dll (and should export symbols for example).
20315 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20316 # (--disable-auto-import) libraries
20317 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20319 darwin
* | rhapsody
*)
20320 # PIC is the default on this platform
20321 # Common symbols not allowed in MH_DYLIB files
20322 lt_prog_compiler_pic_CXX
='-fno-common'
20325 # DJGPP does not support shared libraries at all
20326 lt_prog_compiler_pic_CXX
=
20329 # PIC is the default for Haiku.
20330 # The "-static" flag exists, but is broken.
20331 lt_prog_compiler_static_CXX
=
20334 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20335 # Instead, we relocate shared libraries at runtime.
20338 if test -d /usr
/nec
; then
20339 lt_prog_compiler_pic_CXX
=-Kconform_pic
20343 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20344 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20345 # sets the default TLS model and affects inlining.
20350 lt_prog_compiler_pic_CXX
='-fPIC'
20355 # QNX uses GNU C++, but need to define -shared option too, otherwise
20356 # it will coredump.
20357 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20360 lt_prog_compiler_pic_CXX
='-fPIC'
20366 # All AIX code is PIC.
20367 if test "$host_cpu" = ia64
; then
20368 # AIX 5 now supports IA64 processor
20369 lt_prog_compiler_static_CXX
='-Bstatic'
20371 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20375 case $cc_basename in
20377 # Green Hills C++ Compiler
20378 # _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"
20383 case $cc_basename in
20385 lt_prog_compiler_pic_CXX
='-KPIC'
20388 # Green Hills C++ Compiler
20389 lt_prog_compiler_pic_CXX
='-pic'
20395 freebsd
* | dragonfly
*)
20396 # FreeBSD uses GNU C++
20398 hpux9
* | hpux10
* | hpux11
*)
20399 case $cc_basename in
20401 lt_prog_compiler_wl_CXX
='-Wl,'
20402 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20403 if test "$host_cpu" != ia64
; then
20404 lt_prog_compiler_pic_CXX
='+Z'
20408 lt_prog_compiler_wl_CXX
='-Wl,'
20409 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20415 lt_prog_compiler_pic_CXX
='+Z'
20424 # This is c89, which is MS Visual C++ (no shared libs)
20425 # Anyone wants to do a port?
20427 irix5
* | irix6
* | nonstopux
*)
20428 case $cc_basename in
20430 lt_prog_compiler_wl_CXX
='-Wl,'
20431 lt_prog_compiler_static_CXX
='-non_shared'
20432 # CC pic flag -KPIC is the default.
20438 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20439 case $cc_basename in
20442 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20443 lt_prog_compiler_pic_CXX
='-fPIC'
20446 # old Intel C++ for x86_64 which still supported -KPIC.
20447 lt_prog_compiler_wl_CXX
='-Wl,'
20448 lt_prog_compiler_pic_CXX
='-KPIC'
20449 lt_prog_compiler_static_CXX
='-static'
20452 # Intel C++, used to be incompatible with GCC.
20453 # ICC 10 doesn't accept -KPIC any more.
20454 lt_prog_compiler_wl_CXX
='-Wl,'
20455 lt_prog_compiler_pic_CXX
='-fPIC'
20456 lt_prog_compiler_static_CXX
='-static'
20459 # Portland Group C++ compiler
20460 lt_prog_compiler_wl_CXX
='-Wl,'
20461 lt_prog_compiler_pic_CXX
='-fpic'
20462 lt_prog_compiler_static_CXX
='-Bstatic'
20466 # Make sure the PIC flag is empty. It appears that all Alpha
20467 # Linux and Compaq Tru64 Unix objects are PIC.
20468 lt_prog_compiler_pic_CXX
=
20469 lt_prog_compiler_static_CXX
='-non_shared'
20471 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20472 # IBM XL 8.0, 9.0 on PPC and BlueGene
20473 lt_prog_compiler_wl_CXX
='-Wl,'
20474 lt_prog_compiler_pic_CXX
='-qpic'
20475 lt_prog_compiler_static_CXX
='-qstaticlink'
20478 case `$CC -V 2>&1 | sed 5q` in
20481 lt_prog_compiler_pic_CXX
='-KPIC'
20482 lt_prog_compiler_static_CXX
='-Bstatic'
20483 lt_prog_compiler_wl_CXX
='-Qoption ld '
20494 case $cc_basename in
20496 lt_prog_compiler_pic_CXX
='-W c,exportall'
20505 # QNX uses GNU C++, but need to define -shared option too, otherwise
20506 # it will coredump.
20507 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20509 osf3
* | osf4
* | osf5
*)
20510 case $cc_basename in
20512 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20515 # Rational C++ 2.4.1
20516 lt_prog_compiler_pic_CXX
='-pic'
20519 # Digital/Compaq C++
20520 lt_prog_compiler_wl_CXX
='-Wl,'
20521 # Make sure the PIC flag is empty. It appears that all Alpha
20522 # Linux and Compaq Tru64 Unix objects are PIC.
20523 lt_prog_compiler_pic_CXX
=
20524 lt_prog_compiler_static_CXX
='-non_shared'
20533 case $cc_basename in
20535 # Sun C++ 4.2, 5.x and Centerline C++
20536 lt_prog_compiler_pic_CXX
='-KPIC'
20537 lt_prog_compiler_static_CXX
='-Bstatic'
20538 lt_prog_compiler_wl_CXX
='-Qoption ld '
20541 # Green Hills C++ Compiler
20542 lt_prog_compiler_pic_CXX
='-PIC'
20549 case $cc_basename in
20552 lt_prog_compiler_pic_CXX
='-pic'
20553 lt_prog_compiler_static_CXX
='-Bstatic'
20557 lt_prog_compiler_pic_CXX
='-pic'
20563 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20564 case $cc_basename in
20566 lt_prog_compiler_wl_CXX
='-Wl,'
20567 lt_prog_compiler_pic_CXX
='-KPIC'
20568 lt_prog_compiler_static_CXX
='-Bstatic'
20573 case $cc_basename in
20575 # NonStop-UX NCC 3.20
20576 lt_prog_compiler_pic_CXX
='-KPIC'
20585 lt_prog_compiler_can_build_shared_CXX
=no
20591 # For platforms which do not support PIC, -DPIC is meaningless:
20593 lt_prog_compiler_pic_CXX
=
20596 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20600 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20605 # Check to make sure the PIC flag actually works.
20607 if test -n "$lt_prog_compiler_pic_CXX"; then
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20609 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20610 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20611 $as_echo_n "(cached) " >&6
20613 lt_cv_prog_compiler_pic_works_CXX
=no
20614 ac_outfile
=conftest.
$ac_objext
20615 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20616 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20617 # Insert the option either (1) after the last *FLAGS variable, or
20618 # (2) before a word containing "conftest.", or (3) at the end.
20619 # Note that $ac_compile itself does not contain backslashes and begins
20620 # with a dollar sign (not a hyphen), so the echo should work correctly.
20621 # The option is referenced via a variable to avoid confusing sed.
20622 lt_compile
=`echo "$ac_compile" | $SED \
20623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20625 -e 's:$: $lt_compiler_flag:'`
20626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20627 (eval "$lt_compile" 2>conftest.err
)
20629 cat conftest.err
>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 if (exit $ac_status) && test -s "$ac_outfile"; then
20632 # The compiler can only warn and ignore the option if not recognized
20633 # So say no if there are warnings other than the usual output.
20634 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20635 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20636 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20637 lt_cv_prog_compiler_pic_works_CXX
=yes
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20644 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20646 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20647 case $lt_prog_compiler_pic_CXX in
20649 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20652 lt_prog_compiler_pic_CXX
=
20653 lt_prog_compiler_can_build_shared_CXX
=no
20661 # Check to make sure the static flag actually works.
20663 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20665 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20666 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20667 $as_echo_n "(cached) " >&6
20669 lt_cv_prog_compiler_static_works_CXX
=no
20670 save_LDFLAGS
="$LDFLAGS"
20671 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20672 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20673 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20674 # The linker can only warn and ignore the option if not recognized
20675 # So say no if there are warnings
20676 if test -s conftest.err
; then
20677 # Append any errors to the config.log.
20678 cat conftest.err
1>&5
20679 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20680 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20681 if diff conftest.exp conftest.er2
>/dev
/null
; then
20682 lt_cv_prog_compiler_static_works_CXX
=yes
20685 lt_cv_prog_compiler_static_works_CXX
=yes
20689 LDFLAGS
="$save_LDFLAGS"
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20693 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20695 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20698 lt_prog_compiler_static_CXX
=
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20705 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20706 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20707 $as_echo_n "(cached) " >&6
20709 lt_cv_prog_compiler_c_o_CXX
=no
20710 $RM -r conftest
2>/dev
/null
20714 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20716 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20717 # Insert the option either (1) after the last *FLAGS variable, or
20718 # (2) before a word containing "conftest.", or (3) at the end.
20719 # Note that $ac_compile itself does not contain backslashes and begins
20720 # with a dollar sign (not a hyphen), so the echo should work correctly.
20721 lt_compile
=`echo "$ac_compile" | $SED \
20722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20724 -e 's:$: $lt_compiler_flag:'`
20725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20726 (eval "$lt_compile" 2>out
/conftest.err
)
20728 cat out
/conftest.err
>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20732 # The compiler can only warn and ignore the option if not recognized
20733 # So say no if there are warnings
20734 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20735 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20736 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20737 lt_cv_prog_compiler_c_o_CXX
=yes
20742 # SGI C++ compiler will create directory out/ii_files/ for
20743 # template instantiation
20744 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20745 $RM out
/* && rmdir out
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20752 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20758 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20759 $as_echo_n "(cached) " >&6
20761 lt_cv_prog_compiler_c_o_CXX
=no
20762 $RM -r conftest
2>/dev
/null
20766 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20768 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20769 # Insert the option either (1) after the last *FLAGS variable, or
20770 # (2) before a word containing "conftest.", or (3) at the end.
20771 # Note that $ac_compile itself does not contain backslashes and begins
20772 # with a dollar sign (not a hyphen), so the echo should work correctly.
20773 lt_compile
=`echo "$ac_compile" | $SED \
20774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20776 -e 's:$: $lt_compiler_flag:'`
20777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20778 (eval "$lt_compile" 2>out
/conftest.err
)
20780 cat out
/conftest.err
>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20784 # The compiler can only warn and ignore the option if not recognized
20785 # So say no if there are warnings
20786 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20787 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20788 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20789 lt_cv_prog_compiler_c_o_CXX
=yes
20794 # SGI C++ compiler will create directory out/ii_files/ for
20795 # template instantiation
20796 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20797 $RM out
/* && rmdir out
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20804 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20809 hard_links
="nottested"
20810 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20811 # do not overwrite the value of need_locks provided by the user
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20813 $as_echo_n "checking if we can lock with hard links... " >&6; }
20816 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20818 ln conftest.a conftest.b
2>&5 || hard_links
=no
20819 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20821 $as_echo "$hard_links" >&6; }
20822 if test "$hard_links" = no
; then
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20824 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20834 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20836 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20839 # If we're using GNU nm, then we don't want the "-C" option.
20840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20841 # Also, AIX nm treats weak defined symbols like other global defined
20842 # symbols, whereas GNU nm marks them as "W".
20843 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20844 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'
20846 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'
20850 export_symbols_cmds_CXX
="$ltdll_cmds"
20852 cygwin
* | mingw
* | cegcc
*)
20853 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'
20856 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20859 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20862 $as_echo "$ld_shlibs_CXX" >&6; }
20863 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20865 with_gnu_ld_CXX
=$with_gnu_ld
20873 # Do we need to explicitly link libc?
20875 case "x$archive_cmds_need_lc_CXX" in
20877 # Assume -lc should be added
20878 archive_cmds_need_lc_CXX
=yes
20880 if test "$enable_shared" = yes && test "$GCC" = yes; then
20881 case $archive_cmds_CXX in
20883 # FIXME: we may have to deal with multi-command sequences.
20886 # Test whether the compiler implicitly links with -lc since on some
20887 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20888 # to ld, don't add -lc before -lgcc.
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20890 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20891 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20892 $as_echo_n "(cached) " >&6
20895 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20898 (eval $ac_compile) 2>&5
20900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20901 test $ac_status = 0; } 2>conftest.err
; then
20904 libobjs
=conftest.
$ac_objext
20906 wl
=$lt_prog_compiler_wl_CXX
20907 pic_flag
=$lt_prog_compiler_pic_CXX
20913 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20914 allow_undefined_flag_CXX
=
20915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20916 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20919 test $ac_status = 0; }
20921 lt_cv_archive_cmds_need_lc_CXX
=no
20923 lt_cv_archive_cmds_need_lc_CXX
=yes
20925 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20927 cat conftest.err
1>&5
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20933 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20934 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21005 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21007 library_names_spec
=
21008 libname_spec
='lib$name'
21012 postuninstall_cmds
=
21016 shlibpath_overrides_runpath
=unknown
21018 dynamic_linker
="$host_os ld.so"
21019 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21020 need_lib_prefix
=unknown
21021 hardcode_into_libs
=no
21023 # when you set need_version to no, make sure it does not cause -set_version
21024 # flags to be left without arguments
21025 need_version
=unknown
21030 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21031 shlibpath_var
=LIBPATH
21033 # AIX 3 has no versioning support, so we append a major version to the name.
21034 soname_spec
='${libname}${release}${shared_ext}$major'
21041 hardcode_into_libs
=yes
21042 if test "$host_cpu" = ia64
; then
21043 # AIX 5 supports IA64
21044 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21045 shlibpath_var
=LD_LIBRARY_PATH
21047 # With GCC up to 2.95.x, collect2 would create an import file
21048 # for dependence libraries. The import file would start with
21049 # the line `#! .'. This would cause the generated library to
21050 # depend on `.', always an invalid library. This was fixed in
21051 # development snapshots of GCC prior to 3.0.
21053 aix4 | aix4.
[01] | aix4.
[01].
*)
21054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21056 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21059 can_build_shared
=no
21063 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21064 # soname into executable. Probably we can add versioning support to
21065 # collect2, so additional links can be useful in future.
21066 if test "$aix_use_runtimelinking" = yes; then
21067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21068 # instead of lib<name>.a to let people know that these are not
21069 # typical AIX shared libraries.
21070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21072 # We preserve .a as extension for shared libraries through AIX4.2
21073 # and later when we are not doing run time linking.
21074 library_names_spec
='${libname}${release}.a $libname.a'
21075 soname_spec
='${libname}${release}${shared_ext}$major'
21077 shlibpath_var
=LIBPATH
21084 # Since July 2007 AmigaOS4 officially supports .so libraries.
21085 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21089 library_names_spec
='$libname.ixlibrary $libname.a'
21090 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21091 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'
21097 library_names_spec
='${libname}${shared_ext}'
21098 dynamic_linker
="$host_os ld.so"
21099 shlibpath_var
=LIBRARY_PATH
21105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21106 soname_spec
='${libname}${release}${shared_ext}$major'
21107 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21108 shlibpath_var
=LD_LIBRARY_PATH
21109 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21110 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21111 # the default ld.so.conf also contains /usr/contrib/lib and
21112 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21113 # libtool to hard-code these into programs
21116 cygwin
* | mingw
* | pw32
* | cegcc
*)
21117 version_type
=windows
21122 case $GCC,$host_os in
21123 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21124 library_names_spec
='$libname.dll.a'
21125 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21126 postinstall_cmds
='base_file=`basename \${file}`~
21127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21128 dldir=$destdir/`dirname \$dlpath`~
21129 test -d \$dldir || mkdir -p \$dldir~
21130 $install_prog $dir/$dlname \$dldir/$dlname~
21131 chmod a+x \$dldir/$dlname~
21132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21135 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21136 dlpath=$dir/\$dldll~
21138 shlibpath_overrides_runpath
=yes
21142 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21143 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21147 # MinGW DLLs use traditional 'lib' prefix
21148 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21151 # pw32 DLLs use 'pw' prefix rather than 'lib'
21152 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21158 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21161 dynamic_linker
='Win32 ld.exe'
21162 # FIXME: first we should search . and the directory the executable is in
21166 darwin
* | rhapsody
*)
21167 dynamic_linker
="$host_os dyld"
21168 version_type
=darwin
21171 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21172 soname_spec
='${libname}${release}${major}$shared_ext'
21173 shlibpath_overrides_runpath
=yes
21174 shlibpath_var
=DYLD_LIBRARY_PATH
21175 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21177 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21185 soname_spec
='${libname}${release}${shared_ext}$major'
21186 shlibpath_var
=LD_LIBRARY_PATH
21189 freebsd
* | dragonfly
*)
21190 # DragonFly does not have aout. When/if they implement a new
21191 # versioning mechanism, adjust this.
21192 if test -x /usr
/bin
/objformat
; then
21193 objformat
=`/usr/bin/objformat`
21196 freebsd
[23].
*) objformat
=aout
;;
21197 *) objformat
=elf
;;
21200 version_type
=freebsd-
$objformat
21201 case $version_type in
21203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21208 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21212 shlibpath_var
=LD_LIBRARY_PATH
21215 shlibpath_overrides_runpath
=yes
21217 freebsd3.
[01]* | freebsdelf3.
[01]*)
21218 shlibpath_overrides_runpath
=yes
21219 hardcode_into_libs
=yes
21221 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21222 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21223 shlibpath_overrides_runpath
=no
21224 hardcode_into_libs
=yes
21226 *) # from 4.6 on, and DragonFly
21227 shlibpath_overrides_runpath
=yes
21228 hardcode_into_libs
=yes
21237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21238 soname_spec
='${libname}${release}${shared_ext}$major'
21239 shlibpath_var
=LD_LIBRARY_PATH
21240 hardcode_into_libs
=yes
21247 dynamic_linker
="$host_os runtime_loader"
21248 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21249 soname_spec
='${libname}${release}${shared_ext}$major'
21250 shlibpath_var
=LIBRARY_PATH
21251 shlibpath_overrides_runpath
=yes
21252 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21253 hardcode_into_libs
=yes
21256 hpux9
* | hpux10
* | hpux11
*)
21257 # Give a soname corresponding to the major version so that dld.sl refuses to
21258 # link against other versions.
21265 hardcode_into_libs
=yes
21266 dynamic_linker
="$host_os dld.so"
21267 shlibpath_var
=LD_LIBRARY_PATH
21268 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21270 soname_spec
='${libname}${release}${shared_ext}$major'
21271 if test "X$HPUX_IA64_MODE" = X32
; then
21272 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21274 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21276 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21280 hardcode_into_libs
=yes
21281 dynamic_linker
="$host_os dld.sl"
21282 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21283 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21285 soname_spec
='${libname}${release}${shared_ext}$major'
21286 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21287 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21291 dynamic_linker
="$host_os dld.sl"
21292 shlibpath_var
=SHLIB_PATH
21293 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21295 soname_spec
='${libname}${release}${shared_ext}$major'
21298 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21299 postinstall_cmds
='chmod 555 $lib'
21300 # or fails outright, so override atomically:
21301 install_override_mode
=555
21308 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21309 soname_spec
='${libname}${release}${shared_ext}$major'
21310 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21311 shlibpath_var
=LD_LIBRARY_PATH
21312 shlibpath_overrides_runpath
=no
21313 hardcode_into_libs
=yes
21316 irix5
* | irix6
* | nonstopux
*)
21318 nonstopux
*) version_type
=nonstopux
;;
21320 if test "$lt_cv_prog_gnu_ld" = yes; then
21328 soname_spec
='${libname}${release}${shared_ext}$major'
21329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21331 irix5
* | nonstopux
*)
21332 libsuff
= shlibsuff
=
21335 case $LD in # libtool.m4 will add one of these switches to LD
21336 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21337 libsuff
= shlibsuff
= libmagic
=32-bit;;
21338 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21339 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21340 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21341 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21342 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21346 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21347 shlibpath_overrides_runpath
=no
21348 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21349 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21350 hardcode_into_libs
=yes
21353 # No shared lib support for Linux oldld, aout, or coff.
21354 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21358 # This must be Linux ELF.
21359 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21364 soname_spec
='${libname}${release}${shared_ext}$major'
21365 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21366 shlibpath_var
=LD_LIBRARY_PATH
21367 shlibpath_overrides_runpath
=no
21369 # Some binutils ld are patched to set DT_RUNPATH
21370 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21371 $as_echo_n "(cached) " >&6
21373 lt_cv_shlibpath_overrides_runpath
=no
21374 save_LDFLAGS
=$LDFLAGS
21375 save_libdir
=$libdir
21376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h. */
21389 if ac_fn_cxx_try_link
"$LINENO"; then :
21390 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21391 lt_cv_shlibpath_overrides_runpath
=yes
21394 rm -f core conftest.err conftest.
$ac_objext \
21395 conftest
$ac_exeext conftest.
$ac_ext
21396 LDFLAGS
=$save_LDFLAGS
21397 libdir
=$save_libdir
21401 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21403 # This implies no fast_install, which is unacceptable.
21404 # Some rework will be needed to allow for fast_install
21405 # before this can be enabled.
21406 hardcode_into_libs
=yes
21408 # Append ld.so.conf contents to the search path
21409 if test -f /etc
/ld.so.conf
; then
21410 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' ' '`
21411 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21414 # We used to test for /lib/ld.so.1 and disable shared libraries on
21415 # powerpc, because MkLinux only supported shared libraries with the
21416 # GNU dynamic linker. Since this was broken with cross compilers,
21417 # most powerpc-linux boxes support dynamic linking these days and
21418 # people can always --disable-shared, the test was removed, and we
21419 # assume the GNU/Linux dynamic linker is in use.
21420 dynamic_linker
='GNU/Linux ld.so'
21427 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21429 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21430 dynamic_linker
='NetBSD (a.out) ld.so'
21432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21433 soname_spec
='${libname}${release}${shared_ext}$major'
21434 dynamic_linker
='NetBSD ld.elf_so'
21436 shlibpath_var
=LD_LIBRARY_PATH
21437 shlibpath_overrides_runpath
=yes
21438 hardcode_into_libs
=yes
21443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21444 shlibpath_var
=LD_LIBRARY_PATH
21445 shlibpath_overrides_runpath
=yes
21452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21453 soname_spec
='${libname}${release}${shared_ext}$major'
21454 shlibpath_var
=LD_LIBRARY_PATH
21455 shlibpath_overrides_runpath
=no
21456 hardcode_into_libs
=yes
21457 dynamic_linker
='ldqnx.so'
21462 sys_lib_dlsearch_path_spec
="/usr/lib"
21464 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21466 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21467 *) need_version
=no
;;
21469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21470 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21471 shlibpath_var
=LD_LIBRARY_PATH
21472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21474 openbsd2.
[89] | openbsd2.
[89].
*)
21475 shlibpath_overrides_runpath
=no
21478 shlibpath_overrides_runpath
=yes
21482 shlibpath_overrides_runpath
=yes
21487 libname_spec
='$name'
21490 library_names_spec
='$libname${shared_ext} $libname.a'
21491 dynamic_linker
='OS/2 ld.exe'
21492 shlibpath_var
=LIBPATH
21495 osf3
* | osf4
* | osf5
*)
21499 soname_spec
='${libname}${release}${shared_ext}$major'
21500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21501 shlibpath_var
=LD_LIBRARY_PATH
21502 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21503 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21515 soname_spec
='${libname}${release}${shared_ext}$major'
21516 shlibpath_var
=LD_LIBRARY_PATH
21517 shlibpath_overrides_runpath
=yes
21518 hardcode_into_libs
=yes
21519 # ldd complains unless libraries are executable
21520 postinstall_cmds
='chmod +x $lib'
21525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21526 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21527 shlibpath_var
=LD_LIBRARY_PATH
21528 shlibpath_overrides_runpath
=yes
21529 if test "$with_gnu_ld" = yes; then
21537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21538 soname_spec
='${libname}${release}${shared_ext}$major'
21539 shlibpath_var
=LD_LIBRARY_PATH
21540 case $host_vendor in
21542 shlibpath_overrides_runpath
=no
21544 runpath_var
=LD_RUN_PATH
21552 shlibpath_overrides_runpath
=no
21553 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21559 if test -d /usr
/nec
;then
21561 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21562 soname_spec
='$libname${shared_ext}.$major'
21563 shlibpath_var
=LD_LIBRARY_PATH
21567 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21568 version_type
=freebsd-elf
21571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21572 soname_spec
='${libname}${release}${shared_ext}$major'
21573 shlibpath_var
=LD_LIBRARY_PATH
21574 shlibpath_overrides_runpath
=yes
21575 hardcode_into_libs
=yes
21576 if test "$with_gnu_ld" = yes; then
21577 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21579 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21582 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21586 sys_lib_dlsearch_path_spec
='/usr/lib'
21590 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595 shlibpath_var
=LD_LIBRARY_PATH
21596 shlibpath_overrides_runpath
=no
21597 hardcode_into_libs
=yes
21602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21603 soname_spec
='${libname}${release}${shared_ext}$major'
21604 shlibpath_var
=LD_LIBRARY_PATH
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21612 $as_echo "$dynamic_linker" >&6; }
21613 test "$dynamic_linker" = no
&& can_build_shared
=no
21615 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21616 if test "$GCC" = yes; then
21617 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21620 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21621 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21623 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21624 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21665 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21666 hardcode_action_CXX
=
21667 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21668 test -n "$runpath_var_CXX" ||
21669 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21671 # We can hardcode non-existent directories.
21672 if test "$hardcode_direct_CXX" != no
&&
21673 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21674 # have to relink, otherwise we might link with an installed library
21675 # when we should be linking with a yet-to-be-installed one
21676 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21677 test "$hardcode_minus_L_CXX" != no
; then
21678 # Linking always hardcodes the temporary library directory.
21679 hardcode_action_CXX
=relink
21681 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21682 hardcode_action_CXX
=immediate
21685 # We cannot hardcode anything, or else we can only hardcode existing
21687 hardcode_action_CXX
=unsupported
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21690 $as_echo "$hardcode_action_CXX" >&6; }
21692 if test "$hardcode_action_CXX" = relink ||
21693 test "$inherit_rpath_CXX" = yes; then
21694 # Fast installation is not supported
21695 enable_fast_install
=no
21696 elif test "$shlibpath_overrides_runpath" = yes ||
21697 test "$enable_shared" = no
; then
21698 # Fast installation is not necessary
21699 enable_fast_install
=needless
21708 fi # test -n "$compiler"
21714 with_gnu_ld
=$lt_save_with_gnu_ld
21715 lt_cv_path_LDCXX
=$lt_cv_path_LD
21716 lt_cv_path_LD
=$lt_save_path_LD
21717 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21718 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21719 fi # test "$_lt_caught_CXX_error" != yes
21722 ac_cpp
='$CXXCPP $CPPFLAGS'
21723 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21724 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21725 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21742 # Only expand once:
21748 # Identify the assembler which will work hand-in-glove with the newly
21749 # built GCC, so that we can examine its features. This is the assembler
21750 # which will be driven by the driver program.
21752 # If build != host, and we aren't building gas in-tree, we identify a
21753 # build->target assembler and hope that it will have the same features
21754 # as the host->target assembler we'll be using.
21755 gcc_cv_gas_major_version
=
21756 gcc_cv_gas_minor_version
=
21757 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21759 if test "${gcc_cv_as+set}" = set; then :
21763 if test -x "$DEFAULT_ASSEMBLER"; then
21764 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21765 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21766 && test -f ..
/gas
/Makefile \
21767 && test x
$build = x
$host; then
21768 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21769 elif test -x as
$build_exeext; then
21770 # Build using assembler in the current directory.
21771 gcc_cv_as
=.
/as
$build_exeext
21772 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21773 gcc_cv_as
="$AS_FOR_TARGET"
21775 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21776 set dummy
$AS_FOR_TARGET; ac_word
=$2
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21778 $as_echo_n "checking for $ac_word... " >&6; }
21779 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21784 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21788 for as_dir
in $PATH
21791 test -z "$as_dir" && as_dir
=.
21792 for ac_exec_ext
in '' $ac_executable_extensions; do
21793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21794 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21805 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21806 if test -n "$gcc_cv_as"; then
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21808 $as_echo "$gcc_cv_as" >&6; }
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21811 $as_echo "no" >&6; }
21818 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21820 case "$ORIGINAL_AS_FOR_TARGET" in
21821 .
/as | .
/as
$build_exeext) ;;
21822 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21827 $as_echo_n "checking what assembler to use... " >&6; }
21828 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21829 # Single tree build which includes gas. We want to prefer it
21830 # over whatever linker top-level may have detected, since
21831 # we'll use what we're building after installation anyway.
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21833 $as_echo "newly built gas" >&6; }
21835 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21836 for f
in $gcc_cv_as_bfd_srcdir/configure \
21837 $gcc_cv_as_gas_srcdir/configure \
21838 $gcc_cv_as_gas_srcdir/configure.ac \
21839 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21840 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21841 if test x
$gcc_cv_gas_version != x
; then
21845 case $gcc_cv_gas_version in
21847 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21849 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21850 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21851 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21852 case $gcc_cv_gas_patch_version in
21853 "") gcc_cv_gas_patch_version
="0" ;;
21855 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21856 + $gcc_cv_gas_minor_version \) \* 1000 \
21857 + $gcc_cv_gas_patch_version`
21859 in_tree_gas_is_elf
=no
21860 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21861 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21862 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21864 in_tree_gas_is_elf
=yes
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21868 $as_echo "$gcc_cv_as" >&6; }
21873 # Check whether --enable-ld was given.
21874 if test "${enable_ld+set}" = set; then :
21875 enableval
=$enable_ld; case "${enableval}" in
21883 install_gold_as_default
=no
21884 # Check whether --enable-gold was given.
21885 if test "${enable_gold+set}" = set; then :
21886 enableval
=$enable_gold; case "${enableval}" in
21888 install_gold_as_default
=yes
21891 if test x
${default_ld} != x
; then
21892 install_gold_as_default
=yes
21898 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21904 # Identify the linker which will work hand-in-glove with the newly
21905 # built GCC, so that we can examine its features. This is the linker
21906 # which will be driven by the driver program.
21908 # If build != host, and we aren't building gas in-tree, we identify a
21909 # build->target linker and hope that it will have the same features
21910 # as the host->target linker we'll be using.
21911 gcc_cv_gld_major_version
=
21912 gcc_cv_gld_minor_version
=
21913 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21914 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21915 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21917 if test "${gcc_cv_ld+set}" = set; then :
21921 if test -x "$DEFAULT_LINKER"; then
21922 gcc_cv_ld
="$DEFAULT_LINKER"
21923 elif test $install_gold_as_default = yes \
21924 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21925 && test -f ..
/gold
/Makefile \
21926 && test x
$build = x
$host; then
21927 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21928 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21929 && test -f ..
/ld
/Makefile \
21930 && test x
$build = x
$host; then
21931 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21932 elif test -x collect-ld
$build_exeext; then
21933 # Build using linker in the current directory.
21934 gcc_cv_ld
=.
/collect-ld
$build_exeext
21935 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21936 gcc_cv_ld
="$LD_FOR_TARGET"
21938 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21939 set dummy
$LD_FOR_TARGET; ac_word
=$2
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21941 $as_echo_n "checking for $ac_word... " >&6; }
21942 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21943 $as_echo_n "(cached) " >&6
21947 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21951 for as_dir
in $PATH
21954 test -z "$as_dir" && as_dir
=.
21955 for ac_exec_ext
in '' $ac_executable_extensions; do
21956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21957 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21968 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21969 if test -n "$gcc_cv_ld"; then
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21971 $as_echo "$gcc_cv_ld" >&6; }
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21974 $as_echo "no" >&6; }
21981 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21982 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21983 # if the PLUGIN_LD is set ld-new, just have it as ld
21984 # as that is the installed named.
21985 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21986 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21987 PLUGIN_LD_SUFFIX
=ld
21990 # Check whether --with-plugin-ld was given.
21991 if test "${with_plugin_ld+set}" = set; then :
21992 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21993 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21994 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
22000 cat >>confdefs.h
<<_ACEOF
22001 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22005 # Check to see if we are using gold instead of ld
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22007 $as_echo_n "checking whether we are using gold... " >&6; }
22009 if test x
$gcc_cv_ld != x
; then
22010 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22011 |
grep "GNU gold" > /dev
/null
; then
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22016 $as_echo "$ld_is_gold" >&6; }
22018 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22020 case "$ORIGINAL_LD_FOR_TARGET" in
22021 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22022 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22027 $as_echo_n "checking what linker to use... " >&6; }
22028 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22029 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22030 # Single tree build which includes ld. We want to prefer it
22031 # over whatever linker top-level may have detected, since
22032 # we'll use what we're building after installation anyway.
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22034 $as_echo "newly built ld" >&6; }
22036 in_tree_ld_is_elf
=no
22037 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22038 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22039 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22040 in_tree_ld_is_elf
=yes
22041 elif test "$ld_is_gold" = yes; then
22042 in_tree_ld_is_elf
=yes
22044 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.ac
$gcc_cv_ld_gld_srcdir/Makefile.
in
22046 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22047 if test x
$gcc_cv_gld_version != x
; then
22051 case $gcc_cv_gld_version in
22053 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22055 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22056 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22057 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22058 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22061 $as_echo "$gcc_cv_ld" >&6; }
22063 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22064 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22065 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22071 # Figure out what nm we will be using.
22072 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22073 if test "${gcc_cv_nm+set}" = set; then :
22077 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22078 && test -f ..
/binutils
/Makefile \
22079 && test x
$build = x
$host; then
22080 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22081 elif test -x nm
$build_exeext; then
22082 gcc_cv_nm
=.
/nm
$build_exeext
22083 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22084 gcc_cv_nm
="$NM_FOR_TARGET"
22086 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22087 set dummy
$NM_FOR_TARGET; ac_word
=$2
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22089 $as_echo_n "checking for $ac_word... " >&6; }
22090 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22091 $as_echo_n "(cached) " >&6
22095 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22099 for as_dir
in $PATH
22102 test -z "$as_dir" && as_dir
=.
22103 for ac_exec_ext
in '' $ac_executable_extensions; do
22104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22105 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22116 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22117 if test -n "$gcc_cv_nm"; then
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22119 $as_echo "$gcc_cv_nm" >&6; }
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22122 $as_echo "no" >&6; }
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22130 $as_echo_n "checking what nm to use... " >&6; }
22131 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22132 # Single tree build which includes binutils.
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22134 $as_echo "newly built nm" >&6; }
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22138 $as_echo "$gcc_cv_nm" >&6; }
22142 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22144 case "$ORIGINAL_NM_FOR_TARGET" in
22145 .
/nm | .
/nm
$build_exeext) ;;
22146 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22151 # Figure out what objdump we will be using.
22152 if test "${gcc_cv_objdump+set}" = set; then :
22156 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22157 && test -f ..
/binutils
/Makefile \
22158 && test x
$build = x
$host; then
22159 # Single tree build which includes binutils.
22160 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22161 elif test -x objdump
$build_exeext; then
22162 gcc_cv_objdump
=.
/objdump
$build_exeext
22163 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22164 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22166 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22167 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22169 $as_echo_n "checking for $ac_word... " >&6; }
22170 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22173 case $gcc_cv_objdump in
22175 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22179 for as_dir
in $PATH
22182 test -z "$as_dir" && as_dir
=.
22183 for ac_exec_ext
in '' $ac_executable_extensions; do
22184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22185 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22196 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22197 if test -n "$gcc_cv_objdump"; then
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22199 $as_echo "$gcc_cv_objdump" >&6; }
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22202 $as_echo "no" >&6; }
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22210 $as_echo_n "checking what objdump to use... " >&6; }
22211 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22212 # Single tree build which includes binutils.
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22214 $as_echo "newly built objdump" >&6; }
22215 elif test x
$gcc_cv_objdump = x
; then
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22217 $as_echo "not found" >&6; }
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22220 $as_echo "$gcc_cv_objdump" >&6; }
22223 # Figure out what readelf we will be using.
22224 if test "${gcc_cv_readelf+set}" = set; then :
22228 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22229 && test -f ..
/binutils
/Makefile \
22230 && test x
$build = x
$host; then
22231 # Single tree build which includes binutils.
22232 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22233 elif test -x readelf
$build_exeext; then
22234 gcc_cv_readelf
=.
/readelf
$build_exeext
22236 # Extract the first word of "readelf", so it can be a program name with args.
22237 set dummy readelf
; ac_word
=$2
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22239 $as_echo_n "checking for $ac_word... " >&6; }
22240 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22241 $as_echo_n "(cached) " >&6
22243 case $gcc_cv_readelf in
22245 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22249 for as_dir
in $PATH
22252 test -z "$as_dir" && as_dir
=.
22253 for ac_exec_ext
in '' $ac_executable_extensions; do
22254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22255 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22266 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22267 if test -n "$gcc_cv_readelf"; then
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22269 $as_echo "$gcc_cv_readelf" >&6; }
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22272 $as_echo "no" >&6; }
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22280 $as_echo_n "checking what readelf to use... " >&6; }
22281 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22282 # Single tree build which includes binutils.
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22284 $as_echo "newly built readelf" >&6; }
22285 elif test x
$gcc_cv_readelf = x
; then
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22287 $as_echo "not found" >&6; }
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22290 $as_echo "$gcc_cv_readelf" >&6; }
22293 # Figure out what assembler alignment features are present.
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22295 $as_echo_n "checking assembler flags... " >&6; }
22296 if test "${gcc_cv_as_flags+set}" = set; then :
22297 $as_echo_n "(cached) " >&6
22300 i
[34567]86-*-linux*)
22301 gcc_cv_as_flags
=--32
22303 x86_64-
*-linux-gnux32)
22304 gcc_cv_as_flags
=--x32
22307 gcc_cv_as_flags
=--64
22309 powerpc
*-*-darwin*)
22310 gcc_cv_as_flags
="-arch ppc"
22313 gcc_cv_as_flags
=" "
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22318 $as_echo "$gcc_cv_as_flags" >&6; }
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22321 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22322 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22325 gcc_cv_as_balign_and_p2align
=no
22326 if test $in_tree_gas = yes; then
22327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22328 then gcc_cv_as_balign_and_p2align
=yes
22330 elif test x
$gcc_cv_as != x
; then
22331 $as_echo '.balign 4
22332 .p2align 2' > conftest.s
22333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22335 (eval $ac_try) 2>&5
22337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22338 test $ac_status = 0; }; }
22340 gcc_cv_as_balign_and_p2align
=yes
22342 echo "configure: failed program was" >&5
22345 rm -f conftest.o conftest.s
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22349 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22350 if test $gcc_cv_as_balign_and_p2align = yes; then
22352 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22357 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22358 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22359 $as_echo_n "(cached) " >&6
22361 gcc_cv_as_max_skip_p2align
=no
22362 if test $in_tree_gas = yes; then
22363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22364 then gcc_cv_as_max_skip_p2align
=yes
22366 elif test x
$gcc_cv_as != x
; then
22367 $as_echo '.p2align 4,,7' > conftest.s
22368 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22370 (eval $ac_try) 2>&5
22372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22373 test $ac_status = 0; }; }
22375 gcc_cv_as_max_skip_p2align
=yes
22377 echo "configure: failed program was" >&5
22380 rm -f conftest.o conftest.s
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22384 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22385 if test $gcc_cv_as_max_skip_p2align = yes; then
22387 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22392 $as_echo_n "checking assembler for .literal16... " >&6; }
22393 if test "${gcc_cv_as_literal16+set}" = set; then :
22394 $as_echo_n "(cached) " >&6
22396 gcc_cv_as_literal16
=no
22397 if test $in_tree_gas = yes; then
22398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22399 then gcc_cv_as_literal16
=yes
22401 elif test x
$gcc_cv_as != x
; then
22402 $as_echo '.literal16' > conftest.s
22403 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22405 (eval $ac_try) 2>&5
22407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22408 test $ac_status = 0; }; }
22410 gcc_cv_as_literal16
=yes
22412 echo "configure: failed program was" >&5
22415 rm -f conftest.o conftest.s
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22419 $as_echo "$gcc_cv_as_literal16" >&6; }
22420 if test $gcc_cv_as_literal16 = yes; then
22422 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22427 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22428 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22431 gcc_cv_as_subsection_m1
=no
22432 if test $in_tree_gas = yes; then
22433 if test $in_tree_gas_is_elf = yes \
22434 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22435 then gcc_cv_as_subsection_m1
=yes
22437 elif test x
$gcc_cv_as != x
; then
22438 $as_echo 'conftest_label1: .word 0
22440 conftest_label2: .word 0
22441 .previous' > conftest.s
22442 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444 (eval $ac_try) 2>&5
22446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447 test $ac_status = 0; }; }
22449 if test x
$gcc_cv_nm != x
; then
22450 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22451 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22452 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22454 else gcc_cv_as_subsection_m1
=yes
22456 rm -f conftest.nm1 conftest.nm2
22459 echo "configure: failed program was" >&5
22462 rm -f conftest.o conftest.s
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22466 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22467 if test $gcc_cv_as_subsection_m1 = yes; then
22469 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22474 $as_echo_n "checking assembler for .weak... " >&6; }
22475 if test "${gcc_cv_as_weak+set}" = set; then :
22476 $as_echo_n "(cached) " >&6
22479 if test $in_tree_gas = yes; then
22480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22481 then gcc_cv_as_weak
=yes
22483 elif test x
$gcc_cv_as != x
; then
22484 $as_echo ' .weak foobar' > conftest.s
22485 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22487 (eval $ac_try) 2>&5
22489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22490 test $ac_status = 0; }; }
22494 echo "configure: failed program was" >&5
22497 rm -f conftest.o conftest.s
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22501 $as_echo "$gcc_cv_as_weak" >&6; }
22502 if test $gcc_cv_as_weak = yes; then
22504 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22509 $as_echo_n "checking assembler for .weakref... " >&6; }
22510 if test "${gcc_cv_as_weakref+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22513 gcc_cv_as_weakref
=no
22514 if test $in_tree_gas = yes; then
22515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22516 then gcc_cv_as_weakref
=yes
22518 elif test x
$gcc_cv_as != x
; then
22519 $as_echo ' .weakref foobar, barfnot' > conftest.s
22520 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22522 (eval $ac_try) 2>&5
22524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22525 test $ac_status = 0; }; }
22527 gcc_cv_as_weakref
=yes
22529 echo "configure: failed program was" >&5
22532 rm -f conftest.o conftest.s
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22536 $as_echo "$gcc_cv_as_weakref" >&6; }
22537 if test $gcc_cv_as_weakref = yes; then
22539 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22544 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22545 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22546 $as_echo_n "(cached) " >&6
22548 gcc_cv_as_nsubspa_comdat
=no
22549 if test $in_tree_gas = yes; then
22550 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22551 then gcc_cv_as_nsubspa_comdat
=yes
22553 elif test x
$gcc_cv_as != x
; then
22554 $as_echo ' .SPACE $TEXT$
22555 .NSUBSPA $CODE$,COMDAT' > conftest.s
22556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22558 (eval $ac_try) 2>&5
22560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561 test $ac_status = 0; }; }
22563 gcc_cv_as_nsubspa_comdat
=yes
22565 echo "configure: failed program was" >&5
22568 rm -f conftest.o conftest.s
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22572 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22573 if test $gcc_cv_as_nsubspa_comdat = yes; then
22575 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22579 # .hidden needs to be supported in both the assembler and the linker,
22580 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22581 # This is irritatingly difficult to feature test for; we have to check the
22582 # date string after the version number. If we've got an in-tree
22583 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22585 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22587 $as_echo_n "checking assembler for .hidden... " >&6; }
22588 if test "${gcc_cv_as_hidden+set}" = set; then :
22589 $as_echo_n "(cached) " >&6
22591 gcc_cv_as_hidden
=no
22592 if test $in_tree_gas = yes; then
22593 if test $in_tree_gas_is_elf = yes \
22594 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22595 then gcc_cv_as_hidden
=yes
22597 elif test x
$gcc_cv_as != x
; then
22598 $as_echo ' .hidden foobar
22599 foobar:' > conftest.s
22600 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22602 (eval $ac_try) 2>&5
22604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22605 test $ac_status = 0; }; }
22607 gcc_cv_as_hidden
=yes
22609 echo "configure: failed program was" >&5
22612 rm -f conftest.o conftest.s
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22616 $as_echo "$gcc_cv_as_hidden" >&6; }
22618 case "${target}" in
22620 # Darwin as has some visibility support, though with a different syntax.
22621 gcc_cv_as_hidden
=yes
22625 # gnu_indirect_function type is an extension proposed at
22626 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22627 # selection of function implementation
22628 # Check whether --enable-gnu-indirect-function was given.
22629 if test "${enable_gnu_indirect_function+set}" = set; then :
22630 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22632 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22633 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22636 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22640 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22642 cat >>confdefs.h
<<_ACEOF
22643 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22648 if test $in_tree_ld != yes ; then
22649 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22650 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22651 if test x
"$ld_is_gold" = xyes
; then
22652 # GNU gold --version looks like this:
22654 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22656 # We extract the binutils version which is more familiar and specific
22657 # than the gold version.
22658 ld_vers
=`echo $ld_ver | sed -n \
22659 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22661 # GNU ld --version looks like this:
22663 # GNU ld (GNU Binutils) 2.21.51.20110225
22664 ld_vers
=`echo $ld_ver | sed -n \
22665 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22667 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'`
22668 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22669 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22670 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22672 case "${target}" in
22674 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22677 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22678 # /usr/ccs/bin/ld has been configured.
22679 ld_ver
=`$gcc_cv_ld -V 2>&1`
22680 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22681 ld_vers
=`echo $ld_ver | sed -n \
22682 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22683 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22684 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22692 $as_echo_n "checking linker for .hidden support... " >&6; }
22693 if test "${gcc_cv_ld_hidden+set}" = set; then :
22694 $as_echo_n "(cached) " >&6
22696 if test $in_tree_ld = yes ; then
22697 gcc_cv_ld_hidden
=no
22698 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 \
22699 && test $in_tree_ld_is_elf = yes; then
22700 gcc_cv_ld_hidden
=yes
22703 gcc_cv_ld_hidden
=yes
22704 if test x
"$ld_is_gold" = xyes
; then
22706 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22707 case "${target}" in
22708 mmix-knuth-mmixware
)
22709 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22710 gcc_cv_ld_hidden
=no
22713 if test 0"$ld_date" -lt 20020404; then
22714 if test -n "$ld_date"; then
22715 # If there was date string, but was earlier than 2002-04-04, fail
22716 gcc_cv_ld_hidden
=no
22717 elif test -z "$ld_vers"; then
22718 # If there was no date string nor ld version number, something is wrong
22719 gcc_cv_ld_hidden
=no
22721 test -z "$ld_vers_patch" && ld_vers_patch
=0
22722 if test "$ld_vers_major" -lt 2; then
22723 gcc_cv_ld_hidden
=no
22724 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22725 gcc_cv_ld_hidden
="no"
22726 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22727 gcc_cv_ld_hidden
=no
22732 case "${target}" in
22734 # Darwin ld has some visibility support.
22735 gcc_cv_ld_hidden
=yes
22737 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22738 gcc_cv_ld_hidden
=yes
22740 *-*-solaris2.1
[0-9]*)
22741 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22742 # .symbolic was only added in Solaris 9 12/02.
22743 gcc_cv_ld_hidden
=yes
22746 gcc_cv_ld_hidden
=no
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22753 $as_echo "$gcc_cv_ld_hidden" >&6; }
22754 libgcc_visibility
=no
22757 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22758 libgcc_visibility
=yes
22760 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22765 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22766 gcc_cv_ld_ro_rw_mix
=unknown
22767 if test $in_tree_ld = yes ; then
22768 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 \
22769 && test $in_tree_ld_is_elf = yes; then
22770 gcc_cv_ld_ro_rw_mix
=read-write
22772 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22773 echo '.section myfoosect, "a"' > conftest1.s
22774 echo '.section myfoosect, "aw"' > conftest2.s
22775 echo '.byte 1' >> conftest2.s
22776 echo '.section myfoosect, "a"' > conftest3.s
22777 echo '.byte 0' >> conftest3.s
22778 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22779 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22780 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22781 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22782 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22783 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22784 | sed -e '/myfoosect/!d' -e N`
22785 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22786 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22787 gcc_cv_ld_ro_rw_mix
=read-only
22789 gcc_cv_ld_ro_rw_mix
=read-write
22793 rm -f conftest.
* conftest
[123].
*
22795 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22797 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22801 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22803 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22804 case "${target}" in
22807 # Solaris 2 ld -V output looks like this for a regular version:
22809 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22811 # but test versions add stuff at the end:
22813 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22815 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22816 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22817 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22818 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22819 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22820 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22826 # Check whether --enable-initfini-array was given.
22827 if test "${enable_initfini_array+set}" = set; then :
22828 enableval
=$enable_initfini_array;
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22832 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22833 if test "${gcc_cv_initfini_array+set}" = set; then :
22834 $as_echo_n "(cached) " >&6
22836 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22837 case "${target}" in
22839 if test "$cross_compiling" = yes; then :
22840 gcc_cv_initfini_array
=no
22842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22846 #error Not an ELF OS
22848 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22849 if it can be used. */
22851 int main (void) { return x; }
22852 int foo (void) { x = 0; }
22853 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22856 if ac_fn_cxx_try_run
"$LINENO"; then :
22857 gcc_cv_initfini_array
=yes
22859 gcc_cv_initfini_array
=no
22861 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22862 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22866 gcc_cv_initfini_array
=no
22867 if test $in_tree_ld = yes ; then
22868 if test "$gcc_cv_gld_major_version" -eq 2 \
22869 -a "$gcc_cv_gld_minor_version" -ge 22 \
22870 -o "$gcc_cv_gld_major_version" -gt 2 \
22871 && test $in_tree_ld_is_elf = yes; then
22872 gcc_cv_initfini_array
=yes
22874 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22875 cat > conftest.s
<<\EOF
22876 .section .dtors
,"a",%progbits
22878 .byte
'A', 'A', 'A', 'A'
22879 .section .ctors
,"a",%progbits
22881 .byte
'B', 'B', 'B', 'B'
22882 .section .fini_array
.65530,"a",%progbits
22884 .byte
'C', 'C', 'C', 'C'
22885 .section .init_array
.65530,"a",%progbits
22887 .byte
'D', 'D', 'D', 'D'
22888 .section .dtors
.64528,"a",%progbits
22890 .byte
'E', 'E', 'E', 'E'
22891 .section .ctors
.64528,"a",%progbits
22893 .byte
'F', 'F', 'F', 'F'
22894 .section .fini_array
.01005,"a",%progbits
22896 .byte
'G', 'G', 'G', 'G'
22897 .section .init_array
.01005,"a",%progbits
22899 .byte
'H', 'H', 'H', 'H'
22904 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22905 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22906 && $gcc_cv_objdump -s -j .init_array conftest \
22907 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22908 && $gcc_cv_objdump -s -j .fini_array conftest \
22909 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22910 gcc_cv_initfini_array
=yes
22912 rm -f conftest conftest.
*
22914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22915 /* end confdefs.h. */
22918 # error Not an ELF OS
22920 #include <stdlib.h>
22921 #if defined __GLIBC_PREREQ
22922 # if __GLIBC_PREREQ (2, 4)
22924 # error GLIBC 2.4 required
22927 # if defined __sun__ && defined __svr4__
22928 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22930 # error The C library not known to support .init_array/.fini_array
22935 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22938 gcc_cv_initfini_array
=no
22940 rm -f conftest.err conftest.
$ac_ext;;
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22944 $as_echo_n "checking cross compile... guessing... " >&6; }
22945 gcc_cv_initfini_array
=no
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22949 $as_echo "$gcc_cv_initfini_array" >&6; }
22950 enable_initfini_array
=$gcc_cv_initfini_array
22954 if test $enable_initfini_array = yes; then
22956 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22960 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22962 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22963 if test "${gcc_cv_as_leb128+set}" = set; then :
22964 $as_echo_n "(cached) " >&6
22966 gcc_cv_as_leb128
=no
22967 if test $in_tree_gas = yes; then
22968 if test $in_tree_gas_is_elf = yes \
22969 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22970 then gcc_cv_as_leb128
=yes
22972 elif test x
$gcc_cv_as != x
; then
22979 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22981 (eval $ac_try) 2>&5
22983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22984 test $ac_status = 0; }; }
22986 # GAS versions before 2.11 do not support uleb128,
22987 # despite appearing to.
22988 # ??? There exists an elf-specific test that will crash
22989 # the assembler. Perhaps it's better to figure out whether
22990 # arbitrary sections are supported and try the test.
22991 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22992 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22993 as_vers
=`echo $as_ver | sed -n \
22994 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22995 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22996 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22997 if test $as_major -eq 2 && test $as_minor -lt 11
22999 else gcc_cv_as_leb128
=yes
23003 echo "configure: failed program was" >&5
23006 rm -f conftest.o conftest.s
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23010 $as_echo "$gcc_cv_as_leb128" >&6; }
23011 if test $gcc_cv_as_leb128 = yes; then
23013 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23017 # Check if we have assembler support for unwind directives.
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23019 $as_echo_n "checking assembler for cfi directives... " >&6; }
23020 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23021 $as_echo_n "(cached) " >&6
23023 gcc_cv_as_cfi_directive
=no
23024 if test x
$gcc_cv_as != x
; then
23030 .cfi_escape 1, 2, 3, 4, 5
23031 .cfi_endproc' > conftest.s
23032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23034 (eval $ac_try) 2>&5
23036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23037 test $ac_status = 0; }; }
23041 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23042 # read-only and read-write sections, we need to make sure that the
23043 # assembler used emits read-write .eh_frame sections.
23044 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23045 if test "x$gcc_cv_objdump" != x
; then
23046 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23047 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23048 gcc_cv_as_cfi_directive
=no
23051 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23052 # On Solaris/x86, make sure that GCC and assembler agree on using
23053 # read-only .eh_frame sections for 64-bit.
23054 if test x
$gas = xyes
; then
23055 as_ix86_64_opt
="--64"
23057 as_ix86_64_opt
="-xarch=amd64"
23059 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23060 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23061 sed -e /.eh_frame
/!d
-e N | \
23062 grep READONLY
> /dev
/null
; then
23063 gcc_cv_as_cfi_directive
=yes
23065 gcc_cv_as_cfi_directive
=no
23069 gcc_cv_as_cfi_directive
=yes
23074 # no objdump, err on the side of caution
23075 gcc_cv_as_cfi_directive
=no
23078 gcc_cv_as_cfi_directive
=yes
23082 gcc_cv_as_cfi_directive
=yes
23086 echo "configure: failed program was" >&5
23089 rm -f conftest.o conftest.s
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23093 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23095 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23097 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23098 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23099 $as_echo_n "(cached) " >&6
23101 gcc_cv_as_cfi_advance_working
=no
23102 if test x
$gcc_cv_as != x
; then
23105 .cfi_adjust_cfa_offset 64
23107 .cfi_adjust_cfa_offset 128
23108 .cfi_endproc' > conftest.s
23109 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23111 (eval $ac_try) 2>&5
23113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23114 test $ac_status = 0; }; }
23117 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23118 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23119 gcc_cv_as_cfi_advance_working
=yes
23123 echo "configure: failed program was" >&5
23126 rm -f conftest.o conftest.s
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23130 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23133 # no objdump, err on the side of caution
23134 gcc_cv_as_cfi_advance_working
=no
23138 cat >>confdefs.h
<<_ACEOF
23139 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23140 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23146 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23147 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23148 $as_echo_n "(cached) " >&6
23150 gcc_cv_as_cfi_personality_directive
=no
23151 if test x
$gcc_cv_as != x
; then
23154 .cfi_personality 0, symbol
23155 .cfi_endproc' > conftest.s
23156 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23158 (eval $ac_try) 2>&5
23160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23161 test $ac_status = 0; }; }
23163 gcc_cv_as_cfi_personality_directive
=yes
23165 echo "configure: failed program was" >&5
23168 rm -f conftest.o conftest.s
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23172 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23175 cat >>confdefs.h
<<_ACEOF
23176 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23177 then echo 1; else echo 0; fi`
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23182 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23183 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23184 $as_echo_n "(cached) " >&6
23186 gcc_cv_as_cfi_sections_directive
=no
23187 if test x
$gcc_cv_as != x
; then
23189 .cfi_sections .debug_frame, .eh_frame
23191 .cfi_endproc' > conftest.s
23192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23194 (eval $ac_try) 2>&5
23196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23197 test $ac_status = 0; }; }
23200 win32 | pe | cygwin
* | mingw32
*)
23201 # Need to check that we generated the correct relocation for the
23202 # .debug_frame section. This was fixed for binutils 2.21.
23203 gcc_cv_as_cfi_sections_directive
=no
23204 if test "x$gcc_cv_objdump" != x
; then
23205 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23206 grep secrel
> /dev
/null
; then
23207 gcc_cv_as_cfi_sections_directive
=yes
23212 gcc_cv_as_cfi_sections_directive
=yes
23216 echo "configure: failed program was" >&5
23219 rm -f conftest.o conftest.s
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23223 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23227 cat >>confdefs.h
<<_ACEOF
23228 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23229 then echo 1; else echo 0; fi`
23233 # GAS versions up to and including 2.11.0 may mis-optimize
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23236 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23237 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23238 $as_echo_n "(cached) " >&6
23240 gcc_cv_as_eh_frame
=no
23241 if test $in_tree_gas = yes; then
23242 if test $in_tree_gas_is_elf = yes \
23243 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23244 then gcc_cv_as_eh_frame
=yes
23246 elif test x
$gcc_cv_as != x
; then
23253 .section .eh_frame,"aw",@progbits
23255 .4byte .LECIE1-.LSCIE1
23269 .4byte .LEFDE1-.LASFDE1
23271 .4byte .LASFDE1-__FRAME_BEGIN__
23278 .LEFDE1:' > conftest.s
23279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23286 cat > conftest.lit
<<EOF
23287 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23288 0010 01000000 12000000 18000000 00000000 ................
23289 0020 08000000 04080000 0044 .........D
23291 cat > conftest.big
<<EOF
23292 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23293 0010 00000001 00000012 00000018 00000000 ................
23294 0020 00000008 04000000 0844 .........D
23296 # If the assembler didn't choke, and we can objdump,
23297 # and we got the correct data, then succeed.
23298 # The text in the here-document typically retains its unix-style line
23299 # endings, while the output of objdump will use host line endings.
23300 # Therefore, use diff -b for the comparisons.
23301 if test x
$gcc_cv_objdump != x \
23302 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23303 |
tail -3 > conftest.got \
23304 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23305 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23307 gcc_cv_as_eh_frame
=yes
23308 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; }; then
23314 gcc_cv_as_eh_frame
=buggy
23316 # Uh oh, what do we do now?
23317 gcc_cv_as_eh_frame
=no
23320 echo "configure: failed program was" >&5
23323 rm -f conftest.o conftest.s
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23327 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23330 if test $gcc_cv_as_eh_frame = buggy
; then
23332 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23337 $as_echo_n "checking assembler for section merging support... " >&6; }
23338 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23339 $as_echo_n "(cached) " >&6
23341 gcc_cv_as_shf_merge
=no
23342 if test $in_tree_gas = yes; then
23343 if test $in_tree_gas_is_elf = yes \
23344 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23345 then gcc_cv_as_shf_merge
=yes
23347 elif test x
$gcc_cv_as != x
; then
23348 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23351 (eval $ac_try) 2>&5
23353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23354 test $ac_status = 0; }; }
23356 gcc_cv_as_shf_merge
=yes
23358 echo "configure: failed program was" >&5
23361 rm -f conftest.o conftest.s
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23365 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23367 if test $gcc_cv_as_shf_merge = no
; then
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23369 $as_echo_n "checking assembler for section merging support... " >&6; }
23370 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23371 $as_echo_n "(cached) " >&6
23373 gcc_cv_as_shf_merge
=no
23374 if test $in_tree_gas = yes; then
23375 if test $in_tree_gas_is_elf = yes \
23376 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23377 then gcc_cv_as_shf_merge
=yes
23379 elif test x
$gcc_cv_as != x
; then
23380 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23383 (eval $ac_try) 2>&5
23385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23386 test $ac_status = 0; }; }
23388 gcc_cv_as_shf_merge
=yes
23390 echo "configure: failed program was" >&5
23393 rm -f conftest.o conftest.s
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23397 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23401 cat >>confdefs.h
<<_ACEOF
23402 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23407 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23408 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23409 $as_echo_n "(cached) " >&6
23411 gcc_cv_as_comdat_group
=no
23412 if test $in_tree_gas = yes; then
23413 if test $in_tree_gas_is_elf = yes \
23414 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23415 then gcc_cv_as_comdat_group
=yes
23417 elif test x
$gcc_cv_as != x
; then
23418 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23419 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23421 (eval $ac_try) 2>&5
23423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; }
23426 gcc_cv_as_comdat_group
=yes
23428 echo "configure: failed program was" >&5
23431 rm -f conftest.o conftest.s
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23435 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23437 if test $gcc_cv_as_comdat_group = yes; then
23438 gcc_cv_as_comdat_group_percent
=no
23439 gcc_cv_as_comdat_group_group
=no
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23442 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23443 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23444 $as_echo_n "(cached) " >&6
23446 gcc_cv_as_comdat_group_percent
=no
23447 if test $in_tree_gas = yes; then
23448 if test $in_tree_gas_is_elf = yes \
23449 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23450 then gcc_cv_as_comdat_group_percent
=yes
23452 elif test x
$gcc_cv_as != x
; then
23453 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23456 (eval $ac_try) 2>&5
23458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23459 test $ac_status = 0; }; }
23461 gcc_cv_as_comdat_group_percent
=yes
23463 echo "configure: failed program was" >&5
23466 rm -f conftest.o conftest.s
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23470 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23472 if test $gcc_cv_as_comdat_group_percent = yes; then
23473 gcc_cv_as_comdat_group_group
=no
23475 case "${target}" in
23476 # Sun as uses a completely different syntax.
23478 case "${target}" in
23479 sparc
*-*-solaris2*)
23481 .group foo,".text%foo",#comdat
23482 .section ".text%foo", #alloc,#execinstr,#progbits
23487 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23489 .group foo,.text%foo,#comdat
23490 .section .text%foo, "ax", @progbits
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23497 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23498 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23499 $as_echo_n "(cached) " >&6
23501 gcc_cv_as_comdat_group_group
=no
23502 if test x
$gcc_cv_as != x
; then
23503 $as_echo "$conftest_s" > conftest.s
23504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23506 (eval $ac_try) 2>&5
23508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23509 test $ac_status = 0; }; }
23511 gcc_cv_as_comdat_group_group
=yes
23513 echo "configure: failed program was" >&5
23516 rm -f conftest.o conftest.s
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23520 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23524 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23525 gcc_cv_as_comdat_group_group
=no
23529 if test x
"$ld_is_gold" = xyes
; then
23531 elif test $in_tree_ld = yes ; then
23533 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 \
23534 && test $in_tree_ld_is_elf = yes; then
23537 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23539 if test 0"$ld_date" -lt 20050308; then
23540 if test -n "$ld_date"; then
23541 # If there was date string, but was earlier than 2005-03-08, fail
23543 elif test "$ld_vers_major" -lt 2; then
23545 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23550 case "${target}" in
23551 *-*-solaris2.1
[1-9]*)
23553 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23554 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23557 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23558 # least ld version 1.2267.
23559 if test "$ld_vers_major" -gt 1; then
23561 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23563 elif test "$ld_vers_minor" -ge 2267; then
23568 # Assume linkers other than GNU ld don't support COMDAT group.
23573 # Allow overriding the automatic COMDAT group tests above.
23574 # Check whether --enable-comdat was given.
23575 if test "${enable_comdat+set}" = set; then :
23576 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23579 if test $comdat_group = no
; then
23580 gcc_cv_as_comdat_group
=no
23581 gcc_cv_as_comdat_group_percent
=no
23582 gcc_cv_as_comdat_group_group
=no
23585 cat >>confdefs.h
<<_ACEOF
23586 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23587 || test $gcc_cv_as_comdat_group_percent = yes \
23588 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23593 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23594 if test "${gcc_cv_as_discriminator+set}" = set; then :
23595 $as_echo_n "(cached) " >&6
23597 gcc_cv_as_discriminator
=no
23598 if test $in_tree_gas = yes; then
23599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23600 then gcc_cv_as_discriminator
=yes
23602 elif test x
$gcc_cv_as != x
; then
23605 .loc 1 1 0 discriminator 1' > conftest.s
23606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23608 (eval $ac_try) 2>&5
23610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23611 test $ac_status = 0; }; }
23613 gcc_cv_as_discriminator
=yes
23615 echo "configure: failed program was" >&5
23618 rm -f conftest.o conftest.s
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23622 $as_echo "$gcc_cv_as_discriminator" >&6; }
23623 if test $gcc_cv_as_discriminator = yes; then
23625 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23629 # Thread-local storage - the check is heavily parameterized.
23637 .section ".tdata","awT",@progbits
23640 ldq $27,__tls_get_addr($29) !literal!1
23641 lda $16,foo($29) !tlsgd!1
23642 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23643 ldq $27,__tls_get_addr($29) !literal!2
23644 lda $16,foo($29) !tlsldm!2
23645 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23646 ldq $1,foo($29) !gotdtprel
23647 ldah $2,foo($29) !dtprelhi
23648 lda $3,foo($2) !dtprello
23649 lda $4,foo($29) !dtprel
23650 ldq $1,foo($29) !gottprel
23651 ldah $2,foo($29) !tprelhi
23652 lda $3,foo($2) !tprello
23653 lda $4,foo($29) !tprel'
23656 tls_as_opt
=--fatal-warnings
23658 cris-
*-*|crisv32-
*-*)
23660 .section ".tdata","awT",@progbits
23667 tls_as_opt
=--fatal-warnings
23671 .section ".tdata","awT",@progbits
23674 call #gettlsoff(x)'
23683 .section ".tdata","awT",@progbits
23687 addil LT%foo-$tls_gdidx$,gp
23688 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23691 addil LT%foo-$tls_ldidx$,gp
23693 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23694 addil LR%foo-$tls_dtpoff$,%ret0
23695 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23697 addil LT%foo-$tls_ieoff$,gp
23698 ldw RT%foo-$tls_ieoff$(%r1),%t2
23701 addil LR%foo-$tls_leoff$,%t1
23702 ldo RR%foo-$tls_leoff$(%r1),%t2'
23705 tls_as_opt
=--fatal-warnings
23709 .section ".tdata","awT",%progbits
23712 .word foo(gottpoff)
23720 i
[34567]86-*-* | x86_64-
*-*)
23722 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23729 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23731 .section .tdata,"awt",@progbits'
23736 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23740 .section ".tdata","awT",@progbits'
23744 tls_as_opt
="--fatal-warnings"
23748 conftest_s
="$conftest_s
23752 leal foo@tlsgd(,%ebx,1), %eax
23753 leal foo@tlsldm(%ebx), %eax
23754 leal foo@dtpoff(%eax), %edx
23755 movl foo@gottpoff(%ebx), %eax
23756 subl foo@gottpoff(%ebx), %eax
23757 addl foo@gotntpoff(%ebx), %eax
23758 movl foo@indntpoff, %eax
23759 movl \$foo@tpoff, %eax
23760 subl \$foo@tpoff, %eax
23761 leal foo@ntpoff(%ecx), %eax"
23764 if test x
$on_solaris = xyes
; then
23766 yes) tls_as_opt
="$tls_as_opt --64" ;;
23767 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23770 conftest_s
="$conftest_s
23774 leaq foo@tlsgd(%rip), %rdi
23775 leaq foo@tlsld(%rip), %rdi
23776 leaq foo@dtpoff(%rax), %rdx
23777 movq foo@gottpoff(%rip), %rax
23778 movq \$foo@tpoff, %rax"
23784 .section ".tdata","awT",@progbits
23787 addl r16 = @ltoff(@dtpmod(foo#)), gp
23788 addl r17 = @ltoff(@dtprel(foo#)), gp
23789 addl r18 = @ltoff(@tprel(foo#)), gp
23790 addl r19 = @dtprel(foo#), gp
23791 adds r21 = @dtprel(foo#), r13
23792 movl r23 = @dtprel(foo#)
23793 addl r20 = @tprel(foo#), gp
23794 adds r22 = @tprel(foo#), r13
23795 movl r24 = @tprel(foo#)'
23798 tls_as_opt
=--fatal-warnings
23802 .section .tdata,"awT",@progbits
23806 addik r5,r20,x@TLSGD
23807 addik r5,r20,x@TLSLDM'
23810 tls_as_opt
='--fatal-warnings'
23814 .section .tdata,"awT",@progbits
23818 addiu $4, $28, %tlsgd(x)
23819 addiu $4, $28, %tlsldm(x)
23820 lui $4, %dtprel_hi(x)
23821 addiu $4, $4, %dtprel_lo(x)
23822 lw $4, %gottprel(x)($28)
23823 lui $4, %tprel_hi(x)
23824 addiu $4, $4, %tprel_lo(x)'
23827 tls_as_opt
='-32 --fatal-warnings'
23831 .section .tdata,"awT",@progbits
23836 move.l x@TLSGD(%a5),%a0
23837 move.l x@TLSLDM(%a5),%a0
23838 move.l x@TLSLDO(%a5),%a0
23839 move.l x@TLSIE(%a5),%a0
23840 move.l x@TLSLE(%a5),%a0'
23843 tls_as_opt
='--fatal-warnings'
23847 .section ".tdata","awT",@progbits'
23850 tls_as_opt
="--fatal-warnings"
23854 .section ".tdata","awT",%progbits
23858 add x0, x0, #:tlsgd_lo12:x
23863 tls_as_opt
='--fatal-warnings'
23867 .extern __get_tpointer
23885 .section ".tdata","awT",@progbits
23893 addi 3,2,ld0@got@tlsgd
23899 addi 3,2,x1@got@tlsld
23905 addis 9,3,x2@dtprel@ha
23906 addi 9,9,x2@dtprel@l
23909 ld 9,x3@got@dtprel(2)
23915 tls_as_opt
="-a64 --fatal-warnings"
23919 .section ".tdata","awT",@progbits
23927 addi 3,31,ld0@got@tlsgd
23929 addi 3,31,x1@got@tlsld
23932 addis 9,3,x2@dtprel@ha
23933 addi 9,9,x2@dtprel@l
23934 lwz 9,x3@got@tprel(31)
23937 addis 9,2,x2@tprel@ha
23938 addi 9,9,x2@tprel@l'
23941 tls_as_opt
="-a32 --fatal-warnings"
23945 .section ".tdata","awT",@progbits
23952 .long foo@GOTNTPOFF
23953 .long foo@INDNTPOFF
23954 l %r1,foo@GOTNTPOFF(%r12)
23955 l %r1,0(%r1):tls_load:foo
23956 bas %r14,0(%r1,%r13):tls_gdcall:foo
23957 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23960 tls_as_opt
="-m31 --fatal-warnings"
23964 .section ".tdata","awT",@progbits
23971 .quad foo@GOTNTPOFF
23972 lg %r1,foo@GOTNTPOFF(%r12)
23973 larl %r1,foo@INDNTPOFF
23974 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23975 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23978 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23980 sh-
*-* | sh
[34]-*-*)
23982 .section ".tdata","awT",@progbits
23992 tls_as_opt
=--fatal-warnings
23996 sparc
*-sun-solaris2.
*)
24003 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24005 .section ".tdata",#alloc,#write,#tls'
24010 .section ".tdata","awT",@progbits'
24013 tls_as_opt
="-32 --fatal-warnings"
24015 conftest_s
="$conftest_s
24018 sethi %tgd_hi22(foo), %o0
24019 add %o0, %tgd_lo10(foo), %o1
24020 add %l7, %o1, %o0, %tgd_add(foo)
24021 call __tls_get_addr, %tgd_call(foo)
24022 sethi %tldm_hi22(foo), %l1
24023 add %l1, %tldm_lo10(foo), %l2
24024 add %l7, %l2, %o0, %tldm_add(foo)
24025 call __tls_get_addr, %tldm_call(foo)
24026 sethi %tldo_hix22(foo), %l3
24027 xor %l3, %tldo_lox10(foo), %l4
24028 add %o0, %l4, %l5, %tldo_add(foo)
24029 sethi %tie_hi22(foo), %o3
24030 add %o3, %tie_lo10(foo), %o3
24031 ld [%l7 + %o3], %o2, %tie_ld(foo)
24032 add %g7, %o2, %o4, %tie_add(foo)
24033 sethi %tle_hix22(foo), %l1
24034 xor %l1, %tle_lox10(foo), %o5
24035 ld [%g7 + %o5], %o1"
24039 .section ".tdata","awT",@progbits
24042 addli r0, zero, tls_gd(foo)
24043 auli r0, zero, tls_gd_ha16(foo)
24044 addli r0, r0, tls_gd_lo16(foo)
24046 addli r0, zero, tls_ie(foo)
24047 auli r0, r0, tls_ie_ha16(foo)
24048 addli r0, r0, tls_ie_lo16(foo)'
24051 tls_as_opt
="--fatal-warnings"
24055 .section ".tdata","awT",@progbits
24058 shl16insli r0, zero, hw0_last_tls_gd(foo)
24059 shl16insli r0, zero, hw1_last_tls_gd(foo)
24060 shl16insli r0, r0, hw0_tls_gd(foo)
24062 shl16insli r0, zero, hw1_last_tls_ie(foo)
24063 shl16insli r0, r0, hw0_tls_ie(foo)'
24066 tls_as_opt
="--fatal-warnings"
24070 .section ".tdata","awT",@progbits
24073 movi a8, foo@TLSFUNC
24074 movi a10, foo@TLSARG
24075 callx8.tls a8, foo@TLSCALL'
24081 if test "x$enable_tls" = xno
; then
24082 : # TLS explicitly disabled.
24083 elif test "x$enable_tls" = xyes
; then
24084 set_have_as_tls
=yes # TLS explicitly enabled.
24085 elif test -z "$tls_first_major"; then
24086 : # If we don't have a check, assume no support.
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24089 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24090 if test "${gcc_cv_as_tls+set}" = set; then :
24091 $as_echo_n "(cached) " >&6
24094 if test $in_tree_gas = yes; then
24095 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24096 then gcc_cv_as_tls
=yes
24098 elif test x
$gcc_cv_as != x
; then
24099 $as_echo "$conftest_s" > conftest.s
24100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24102 (eval $ac_try) 2>&5
24104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24105 test $ac_status = 0; }; }
24109 echo "configure: failed program was" >&5
24112 rm -f conftest.o conftest.s
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24116 $as_echo "$gcc_cv_as_tls" >&6; }
24117 if test $gcc_cv_as_tls = yes; then
24118 set_have_as_tls
=yes
24121 if test $set_have_as_tls = yes ; then
24123 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24127 # Target-specific assembler checks.
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24130 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24131 gcc_cv_ld_static_dynamic
=no
24132 gcc_cv_ld_static_option
='-Bstatic'
24133 gcc_cv_ld_dynamic_option
='-Bdynamic'
24134 if test $in_tree_ld = yes ; then
24135 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
24136 gcc_cv_ld_static_dynamic
=yes
24138 elif test x
$gcc_cv_ld != x
; then
24139 # Check if linker supports -Bstatic/-Bdynamic option
24140 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24141 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24142 gcc_cv_ld_static_dynamic
=yes
24145 # AIX ld uses -b flags
24146 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24147 gcc_cv_ld_static_dynamic
=yes
24148 gcc_cv_ld_static_option
="-bstatic"
24149 gcc_cv_ld_dynamic_option
="-bdynamic"
24151 # HP-UX ld uses -a flags to select between shared and archive.
24153 if test x
"$gnu_ld" = xno
; then
24154 gcc_cv_ld_static_dynamic
=yes
24155 gcc_cv_ld_static_option
="-aarchive_shared"
24156 gcc_cv_ld_dynamic_option
="-adefault"
24159 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24161 gcc_cv_ld_static_dynamic
=yes
24166 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24168 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24171 cat >>confdefs.h
<<_ACEOF
24172 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24176 cat >>confdefs.h
<<_ACEOF
24177 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24182 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24184 if test x
"$demangler_in_ld" = xyes
; then
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24186 $as_echo_n "checking linker --demangle support... " >&6; }
24187 gcc_cv_ld_demangle
=no
24188 if test $in_tree_ld = yes; then
24189 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 \
24190 gcc_cv_ld_demangle
=yes
24192 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24193 # Check if the GNU linker supports --demangle option
24194 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24195 gcc_cv_ld_demangle
=yes
24198 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24200 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24204 $as_echo "$gcc_cv_ld_demangle" >&6; }
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24208 $as_echo_n "checking linker plugin support... " >&6; }
24209 gcc_cv_lto_plugin
=0
24210 if test -f liblto_plugin.la
; then
24211 save_ld_ver
="$ld_ver"
24212 save_ld_vers_major
="$ld_vers_major"
24213 save_ld_vers_minor
="$ld_vers_minor"
24214 save_ld_is_gold
="$ld_is_gold"
24218 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24220 # FIXME: ld_is_gold?
24221 ld_vers_major
="$gcc_cv_gld_major_version"
24222 ld_vers_minor
="$gcc_cv_gld_minor_version"
24224 # Determine plugin linker version.
24225 # FIXME: Partial duplicate from above, generalize.
24226 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24227 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24228 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24230 ld_vers
=`echo $ld_ver | sed -n \
24231 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24233 ld_vers
=`echo $ld_ver | sed -n \
24234 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24236 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24237 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24241 # Determine plugin support.
24242 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24243 # Require GNU ld or gold 2.21+ for plugin support by default.
24244 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24245 gcc_cv_lto_plugin
=2
24246 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24247 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24248 gcc_cv_lto_plugin
=1
24252 ld_ver
="$save_ld_ver"
24253 ld_vers_major
="$save_ld_vers_major"
24254 ld_vers_minor
="$save_ld_vers_minor"
24255 ld_is_gold
="$save_ld_is_gold"
24258 cat >>confdefs.h
<<_ACEOF
24259 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24263 $as_echo "$gcc_cv_lto_plugin" >&6; }
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24268 $as_echo_n "checking assembler for -mabi option... " >&6; }
24269 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24270 $as_echo_n "(cached) " >&6
24272 gcc_cv_as_aarch64_mabi
=no
24273 if test x
$gcc_cv_as != x
; then
24274 $as_echo '.text' > conftest.s
24275 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24277 (eval $ac_try) 2>&5
24279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24280 test $ac_status = 0; }; }
24282 gcc_cv_as_aarch64_mabi
=yes
24284 echo "configure: failed program was" >&5
24287 rm -f conftest.o conftest.s
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24291 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24293 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24295 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24298 if test x
$with_abi = xilp32
; then
24299 as_fn_error
"Assembler does not support -mabi=ilp32.\
24300 Upgrade the Assembler." "$LINENO" 5
24302 if test x
"$with_multilib_list" = xdefault
; then
24303 TM_MULTILIB_CONFIG
=lp64
24305 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24306 for aarch64_multilib
in ${aarch64_multilibs}; do
24307 case ${aarch64_multilib} in
24309 as_fn_error
"Assembler does not support -mabi=ilp32.\
24310 Upgrade the Assembler." "$LINENO" 5
24318 # Check if we have binutils support for relocations types needed by -fpic
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24320 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24321 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24322 $as_echo_n "(cached) " >&6
24324 gcc_cv_as_aarch64_picreloc
=no
24325 if test x
$gcc_cv_as != x
; then
24328 ldr x0, [x2, #:gotpage_lo15:globalsym]
24330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24332 (eval $ac_try) 2>&5
24334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24335 test $ac_status = 0; }; }
24337 gcc_cv_as_aarch64_picreloc
=yes
24339 echo "configure: failed program was" >&5
24342 rm -f conftest.o conftest.s
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24346 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24347 if test $gcc_cv_as_aarch64_picreloc = yes; then
24349 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24352 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24353 # Check whether --enable-fix-cortex-a53-835769 was given.
24354 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24355 enableval
=$enable_fix_cortex_a53_835769;
24358 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24363 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24364 Valid choices are 'yes' and 'no'." "$LINENO" 5
24371 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24372 # Check whether --enable-fix-cortex-a53-843419 was given.
24373 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24374 enableval
=$enable_fix_cortex_a53_843419;
24377 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24382 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24383 Valid choices are 'yes' and 'no'." "$LINENO" 5
24392 # All TARGET_ABI_OSF targets.
24393 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24395 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24396 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24397 $as_echo_n "(cached) " >&6
24399 gcc_cv_as_alpha_explicit_relocs
=no
24400 if test $in_tree_gas = yes; then
24401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24402 then gcc_cv_as_alpha_explicit_relocs
=yes
24404 elif test x
$gcc_cv_as != x
; then
24405 $as_echo ' .set nomacro
24407 extbl $3, $2, $3 !lituse_bytoff!1
24408 ldq $2, a($29) !literal!1
24409 ldq $4, b($29) !literal!2
24410 ldq_u $3, 0($2) !lituse_base!1
24411 ldq $27, f($29) !literal!5
24412 jsr $26, ($27), f !lituse_jsr!5
24413 ldah $29, 0($26) !gpdisp!3
24414 lda $0, c($29) !gprel
24415 ldah $1, d($29) !gprelhigh
24416 lda $1, d($1) !gprellow
24417 lda $29, 0($29) !gpdisp!3' > conftest.s
24418 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24420 (eval $ac_try) 2>&5
24422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24423 test $ac_status = 0; }; }
24425 gcc_cv_as_alpha_explicit_relocs
=yes
24427 echo "configure: failed program was" >&5
24430 rm -f conftest.o conftest.s
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24434 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24435 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24437 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24441 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24442 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24445 gcc_cv_as_alpha_jsrdirect_relocs
=no
24446 if test $in_tree_gas = yes; then
24447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24448 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24450 elif test x
$gcc_cv_as != x
; then
24451 $as_echo ' .set nomacro
24453 ldq $27, a($29) !literal!1
24454 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457 (eval $ac_try) 2>&5
24459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460 test $ac_status = 0; }; }
24462 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24464 echo "configure: failed program was" >&5
24467 rm -f conftest.o conftest.s
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24471 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24472 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24474 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24481 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24482 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24483 $as_echo_n "(cached) " >&6
24485 gcc_cv_as_avr_mlink_relax
=no
24486 if test x
$gcc_cv_as != x
; then
24487 $as_echo '.text' > conftest.s
24488 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24490 (eval $ac_try) 2>&5
24492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24493 test $ac_status = 0; }; }
24495 gcc_cv_as_avr_mlink_relax
=yes
24497 echo "configure: failed program was" >&5
24500 rm -f conftest.o conftest.s
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24504 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24505 if test $gcc_cv_as_avr_mlink_relax = yes; then
24507 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24512 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24513 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24514 $as_echo_n "(cached) " >&6
24516 gcc_cv_as_avr_mrmw
=no
24517 if test x
$gcc_cv_as != x
; then
24518 $as_echo '.text' > conftest.s
24519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24521 (eval $ac_try) 2>&5
24523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24524 test $ac_status = 0; }; }
24526 gcc_cv_as_avr_mrmw
=yes
24528 echo "configure: failed program was" >&5
24531 rm -f conftest.o conftest.s
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24535 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24536 if test $gcc_cv_as_avr_mrmw = yes; then
24538 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24545 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24546 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24547 $as_echo_n "(cached) " >&6
24549 gcc_cv_as_cris_no_mul_bug
=no
24550 if test $in_tree_gas = yes; then
24551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24552 then gcc_cv_as_cris_no_mul_bug
=yes
24554 elif test x
$gcc_cv_as != x
; then
24555 $as_echo '.text' > conftest.s
24556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24563 gcc_cv_as_cris_no_mul_bug
=yes
24565 echo "configure: failed program was" >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24572 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24573 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24575 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24582 $as_echo_n "checking assembler for .register... " >&6; }
24583 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24584 $as_echo_n "(cached) " >&6
24586 gcc_cv_as_sparc_register_op
=no
24587 if test x
$gcc_cv_as != x
; then
24588 $as_echo '.register %g2, #scratch' > conftest.s
24589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24591 (eval $ac_try) 2>&5
24593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24594 test $ac_status = 0; }; }
24596 gcc_cv_as_sparc_register_op
=yes
24598 echo "configure: failed program was" >&5
24601 rm -f conftest.o conftest.s
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24605 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24606 if test $gcc_cv_as_sparc_register_op = yes; then
24608 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24613 $as_echo_n "checking assembler for #nobits... " >&6; }
24614 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24615 $as_echo_n "(cached) " >&6
24617 gcc_cv_as_sparc_nobits
=no
24618 if test x
$gcc_cv_as != x
; then
24619 $as_echo '.section "nobits",#alloc,#write,#nobits
24620 .section "progbits",#alloc,#write,#progbits' > conftest.s
24621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623 (eval $ac_try) 2>&5
24625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626 test $ac_status = 0; }; }
24628 gcc_cv_as_sparc_nobits
=yes
24630 echo "configure: failed program was" >&5
24633 rm -f conftest.o conftest.s
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24637 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24640 cat >>confdefs.h
<<_ACEOF
24641 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24646 $as_echo_n "checking assembler for -relax option... " >&6; }
24647 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24648 $as_echo_n "(cached) " >&6
24650 gcc_cv_as_sparc_relax
=no
24651 if test x
$gcc_cv_as != x
; then
24652 $as_echo '.text' > conftest.s
24653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24660 gcc_cv_as_sparc_relax
=yes
24662 echo "configure: failed program was" >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24669 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24670 if test $gcc_cv_as_sparc_relax = yes; then
24672 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24677 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24678 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24679 $as_echo_n "(cached) " >&6
24681 gcc_cv_as_sparc_gotdata_op
=no
24682 if test x
$gcc_cv_as != x
; then
24688 sethi %gdop_hix22(foo), %g1
24689 xor %g1, %gdop_lox10(foo), %g1
24690 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24693 (eval $ac_try) 2>&5
24695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24696 test $ac_status = 0; }; }
24698 if test x
$gcc_cv_ld != x \
24699 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24700 if test x
$gcc_cv_objdump != x
; then
24701 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24702 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24703 gcc_cv_as_sparc_gotdata_op
=no
24705 gcc_cv_as_sparc_gotdata_op
=yes
24711 echo "configure: failed program was" >&5
24714 rm -f conftest.o conftest.s
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24718 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24719 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24721 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24726 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24727 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24730 gcc_cv_as_sparc_ua_pcrel
=no
24731 if test x
$gcc_cv_as != x
; then
24738 .uaword %r_disp32(foo)' > conftest.s
24739 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24741 (eval $ac_try) 2>&5
24743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24744 test $ac_status = 0; }; }
24746 if test x
$gcc_cv_ld != x \
24747 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24748 gcc_cv_as_sparc_ua_pcrel
=yes
24752 echo "configure: failed program was" >&5
24755 rm -f conftest.o conftest.s
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24759 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24760 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24762 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24766 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24767 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24768 $as_echo_n "(cached) " >&6
24770 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24771 if test x
$gcc_cv_as != x
; then
24775 .uaword %r_disp32(foo)
24776 .byte 0x32, 0x33, 0x34
24780 .skip 4' > conftest.s
24781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24783 (eval $ac_try) 2>&5
24785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24786 test $ac_status = 0; }; }
24788 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24789 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24790 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24791 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24792 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24793 |
grep 'DISP32' > /dev
/null
2>&1; then
24796 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24801 echo "configure: failed program was" >&5
24804 rm -f conftest.o conftest.s
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24808 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24809 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24811 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24815 fi # unaligned pcrel relocs
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24818 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24819 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24820 $as_echo_n "(cached) " >&6
24822 gcc_cv_as_sparc_offsetable_lo10
=no
24823 if test x
$gcc_cv_as != x
; then
24825 or %g1, %lo(ab) + 12, %g1
24826 or %g1, %lo(ab + 12), %g1' > conftest.s
24827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -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 if test x
$gcc_cv_objdump != x \
24835 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24836 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24837 gcc_cv_as_sparc_offsetable_lo10
=yes
24840 echo "configure: failed program was" >&5
24843 rm -f conftest.o conftest.s
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24847 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24848 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24850 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24855 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24856 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24857 $as_echo_n "(cached) " >&6
24859 gcc_cv_as_sparc_fmaf
=no
24860 if test x
$gcc_cv_as != x
; then
24862 .register %g2, #scratch
24863 .register %g3, #scratch
24865 fmaddd %f0, %f2, %f4, %f6
24866 addxccc %g1, %g2, %g3
24867 fsrl32 %f2, %f4, %f8
24868 fnaddd %f10, %f12, %f14' > conftest.s
24869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24871 (eval $ac_try) 2>&5
24873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24874 test $ac_status = 0; }; }
24876 gcc_cv_as_sparc_fmaf
=yes
24878 echo "configure: failed program was" >&5
24881 rm -f conftest.o conftest.s
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24885 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24886 if test $gcc_cv_as_sparc_fmaf = yes; then
24888 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24893 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24894 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24895 $as_echo_n "(cached) " >&6
24897 gcc_cv_as_sparc_sparc4
=no
24898 if test x
$gcc_cv_as != x
; then
24900 .register %g2, #scratch
24901 .register %g3, #scratch
24904 1: cwbneg %g2, %g3, 1f
24907 aes_kexpand0 %f4, %f6, %f8
24908 des_round %f38, %f40, %f42, %f44
24909 camellia_f %f54, %f56, %f58, %f60
24910 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24918 gcc_cv_as_sparc_sparc4
=yes
24920 echo "configure: failed program was" >&5
24923 rm -f conftest.o conftest.s
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24927 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24928 if test $gcc_cv_as_sparc_sparc4 = yes; then
24930 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24935 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24936 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24937 $as_echo_n "(cached) " >&6
24939 gcc_cv_as_sparc_leon
=no
24940 if test x
$gcc_cv_as != x
; then
24942 .register %g2, #scratch
24943 .register %g3, #scratch
24947 casa [%g2] 0xb, %g3, %g1' > conftest.s
24948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24950 (eval $ac_try) 2>&5
24952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953 test $ac_status = 0; }; }
24955 gcc_cv_as_sparc_leon
=yes
24957 echo "configure: failed program was" >&5
24960 rm -f conftest.o conftest.s
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24964 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24965 if test $gcc_cv_as_sparc_leon = yes; then
24967 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24972 i
[34567]86-*-* | x86_64-
*-*)
24975 # Full C++ conformance when using a shared libstdc++-v3 requires some
24976 # support from the Cygwin DLL, which in more recent versions exports
24977 # wrappers to aid in interposing and redirecting operators new, delete,
24978 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24979 # are configuring for a version of Cygwin that exports the wrappers.
24980 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24981 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24982 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24983 gcc_ac_cygwin_dll_wrappers
=yes
24985 gcc_ac_cygwin_dll_wrappers
=no
24989 # Can't check presence of libc functions during cross-compile, so
24990 # we just have to assume we're building for an up-to-date target.
24991 gcc_ac_cygwin_dll_wrappers
=yes
24994 cat >>confdefs.h
<<_ACEOF
24995 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25000 cygwin
* | pe | mingw32
* | interix
*)
25001 # Recent binutils allows the three-operand form of ".comm" on PE. This
25002 # definition is used unconditionally to initialise the default state of
25003 # the target option variable that governs usage of the feature.
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25005 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25006 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25009 gcc_cv_as_comm_has_align
=no
25010 if test $in_tree_gas = yes; then
25011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25012 then gcc_cv_as_comm_has_align
=yes
25014 elif test x
$gcc_cv_as != x
; then
25015 $as_echo '.comm foo,1,32' > conftest.s
25016 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018 (eval $ac_try) 2>&5
25020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021 test $ac_status = 0; }; }
25023 gcc_cv_as_comm_has_align
=yes
25025 echo "configure: failed program was" >&5
25028 rm -f conftest.o conftest.s
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25032 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25035 cat >>confdefs.h
<<_ACEOF
25036 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25039 # Used for DWARF 2 in PE
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25041 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25042 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25043 $as_echo_n "(cached) " >&6
25045 gcc_cv_as_ix86_pe_secrel32
=no
25046 if test $in_tree_gas = yes; then
25047 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25048 then gcc_cv_as_ix86_pe_secrel32
=yes
25050 elif test x
$gcc_cv_as != x
; then
25054 .secrel32 foo' > conftest.s
25055 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25057 (eval $ac_try) 2>&5
25059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25060 test $ac_status = 0; }; }
25062 if test x
$gcc_cv_ld != x \
25063 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25064 gcc_cv_as_ix86_pe_secrel32
=yes
25068 echo "configure: failed program was" >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25075 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25076 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25078 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25081 # Test if the assembler supports the extended form of the .section
25082 # directive that specifies section alignment. LTO support uses this,
25083 # but normally only after installation, so we warn but don't fail the
25084 # configure if LTO is enabled but the assembler does not support it.
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25086 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25087 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25090 gcc_cv_as_section_has_align
=no
25091 if test $in_tree_gas = yes; then
25092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25093 then gcc_cv_as_section_has_align
=yes
25095 elif test x
$gcc_cv_as != x
; then
25096 $as_echo '.section lto_test,"dr0"' > conftest.s
25097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25104 gcc_cv_as_section_has_align
=yes
25106 echo "configure: failed program was" >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25113 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25115 if test x
$gcc_cv_as_section_has_align != xyes
; then
25116 case ",$enable_languages," in
25118 { $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
25119 $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;}
25126 # Test if the assembler supports the section flag 'e' for specifying
25127 # an excluded section.
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25129 $as_echo_n "checking assembler for .section with e... " >&6; }
25130 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25131 $as_echo_n "(cached) " >&6
25133 gcc_cv_as_section_has_e
=no
25134 if test $in_tree_gas = yes; then
25135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25136 then gcc_cv_as_section_has_e
=yes
25138 elif test x
$gcc_cv_as != x
; then
25139 $as_echo '.section foo1,"e"
25140 .byte 0,0,0,0' > conftest.s
25141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25148 gcc_cv_as_section_has_e
=yes
25150 echo "configure: failed program was" >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25157 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25160 cat >>confdefs.h
<<_ACEOF
25161 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25166 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25167 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25170 gcc_cv_as_ix86_filds
=no
25171 if test x
$gcc_cv_as != x
; then
25172 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25173 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25175 (eval $ac_try) 2>&5
25177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25178 test $ac_status = 0; }; }
25180 gcc_cv_as_ix86_filds
=yes
25182 echo "configure: failed program was" >&5
25185 rm -f conftest.o conftest.s
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25189 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25190 if test $gcc_cv_as_ix86_filds = yes; then
25192 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25197 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25198 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25199 $as_echo_n "(cached) " >&6
25201 gcc_cv_as_ix86_fildq
=no
25202 if test x
$gcc_cv_as != x
; then
25203 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25206 (eval $ac_try) 2>&5
25208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25209 test $ac_status = 0; }; }
25211 gcc_cv_as_ix86_fildq
=yes
25213 echo "configure: failed program was" >&5
25216 rm -f conftest.o conftest.s
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25220 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25221 if test $gcc_cv_as_ix86_fildq = yes; then
25223 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25228 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25229 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25230 $as_echo_n "(cached) " >&6
25232 gcc_cv_as_ix86_cmov_sun_syntax
=no
25233 if test x
$gcc_cv_as != x
; then
25234 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25237 (eval $ac_try) 2>&5
25239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25240 test $ac_status = 0; }; }
25242 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25244 echo "configure: failed program was" >&5
25247 rm -f conftest.o conftest.s
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25251 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25252 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25254 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25259 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25260 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25261 $as_echo_n "(cached) " >&6
25263 gcc_cv_as_ix86_ffreep
=no
25264 if test x
$gcc_cv_as != x
; then
25265 $as_echo 'ffreep %st(1)' > conftest.s
25266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25268 (eval $ac_try) 2>&5
25270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25271 test $ac_status = 0; }; }
25273 gcc_cv_as_ix86_ffreep
=yes
25275 echo "configure: failed program was" >&5
25278 rm -f conftest.o conftest.s
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25282 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25283 if test $gcc_cv_as_ix86_ffreep = yes; then
25285 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25290 $as_echo_n "checking assembler for .quad directive... " >&6; }
25291 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25292 $as_echo_n "(cached) " >&6
25294 gcc_cv_as_ix86_quad
=no
25295 if test x
$gcc_cv_as != x
; then
25296 $as_echo '.quad 0' > conftest.s
25297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_ix86_quad
=yes
25306 echo "configure: failed program was" >&5
25309 rm -f conftest.o conftest.s
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25313 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25314 if test $gcc_cv_as_ix86_quad = yes; then
25316 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25321 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25322 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25323 $as_echo_n "(cached) " >&6
25325 gcc_cv_as_ix86_sahf
=no
25326 if test x
$gcc_cv_as != x
; then
25329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25331 (eval $ac_try) 2>&5
25333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25334 test $ac_status = 0; }; }
25336 gcc_cv_as_ix86_sahf
=yes
25338 echo "configure: failed program was" >&5
25341 rm -f conftest.o conftest.s
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25345 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25346 if test $gcc_cv_as_ix86_sahf = yes; then
25348 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25353 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25354 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25355 $as_echo_n "(cached) " >&6
25357 gcc_cv_as_ix86_interunit_movq
=no
25358 if test x
$gcc_cv_as != x
; then
25361 movq %rax, %xmm0' > conftest.s
25362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25364 (eval $ac_try) 2>&5
25366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }; }
25369 gcc_cv_as_ix86_interunit_movq
=yes
25371 echo "configure: failed program was" >&5
25374 rm -f conftest.o conftest.s
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25378 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25381 cat >>confdefs.h
<<_ACEOF
25382 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25387 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25388 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25389 $as_echo_n "(cached) " >&6
25391 gcc_cv_as_ix86_hle
=no
25392 if test x
$gcc_cv_as != x
; then
25393 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25394 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25401 gcc_cv_as_ix86_hle
=yes
25403 echo "configure: failed program was" >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25410 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25411 if test $gcc_cv_as_ix86_hle = yes; then
25413 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25418 $as_echo_n "checking assembler for swap suffix... " >&6; }
25419 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25420 $as_echo_n "(cached) " >&6
25422 gcc_cv_as_ix86_swap
=no
25423 if test x
$gcc_cv_as != x
; then
25424 $as_echo 'movl.s %esp, %ebp' > conftest.s
25425 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25427 (eval $ac_try) 2>&5
25429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25430 test $ac_status = 0; }; }
25432 gcc_cv_as_ix86_swap
=yes
25434 echo "configure: failed program was" >&5
25437 rm -f conftest.o conftest.s
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25441 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25442 if test $gcc_cv_as_ix86_swap = yes; then
25444 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25449 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25450 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25451 $as_echo_n "(cached) " >&6
25453 gcc_cv_as_ix86_diff_sect_delta
=no
25454 if test x
$gcc_cv_as != x
; then
25455 $as_echo '.section .rodata
25461 .L2: nop' > conftest.s
25462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25464 (eval $ac_try) 2>&5
25466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25467 test $ac_status = 0; }; }
25469 gcc_cv_as_ix86_diff_sect_delta
=yes
25471 echo "configure: failed program was" >&5
25474 rm -f conftest.o conftest.s
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25478 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25479 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25481 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25485 # These two are used unconditionally by i386.[ch]; it is to be defined
25486 # to 1 if the feature is present, 0 otherwise.
25487 as_ix86_gotoff_in_data_opt
=
25488 if test x
$gas = xyes
; then
25489 as_ix86_gotoff_in_data_opt
="--32"
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25492 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25493 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25494 $as_echo_n "(cached) " >&6
25496 gcc_cv_as_ix86_gotoff_in_data
=no
25497 if test $in_tree_gas = yes; then
25498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25499 then gcc_cv_as_ix86_gotoff_in_data
=yes
25501 elif test x
$gcc_cv_as != x
; then
25506 .long .L0@GOTOFF' > conftest.s
25507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25514 gcc_cv_as_ix86_gotoff_in_data
=yes
25516 echo "configure: failed program was" >&5
25519 rm -f conftest.o conftest.s
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25523 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25526 cat >>confdefs.h
<<_ACEOF
25527 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25532 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25533 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25534 $as_echo_n "(cached) " >&6
25536 gcc_cv_as_ix86_rep_lock_prefix
=no
25537 if test x
$gcc_cv_as != x
; then
25538 $as_echo 'rep movsl
25543 lock addl %edi, (%eax,%esi)
25544 lock orl $0, (%esp)' > conftest.s
25545 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25547 (eval $ac_try) 2>&5
25549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550 test $ac_status = 0; }; }
25552 gcc_cv_as_ix86_rep_lock_prefix
=yes
25554 echo "configure: failed program was" >&5
25557 rm -f conftest.o conftest.s
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25561 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25562 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25564 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25569 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25570 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25571 $as_echo_n "(cached) " >&6
25573 gcc_cv_as_ix86_ud2
=no
25574 if test x
$gcc_cv_as != x
; then
25575 $as_echo 'ud2' > conftest.s
25576 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25578 (eval $ac_try) 2>&5
25580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25581 test $ac_status = 0; }; }
25583 gcc_cv_as_ix86_ud2
=yes
25585 echo "configure: failed program was" >&5
25588 rm -f conftest.o conftest.s
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25592 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25593 if test $gcc_cv_as_ix86_ud2 = yes; then
25595 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25600 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25601 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25602 $as_echo_n "(cached) " >&6
25604 gcc_cv_as_ix86_tlsgdplt
=no
25605 if test x
$gcc_cv_as != x
; then
25606 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25607 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 if test x
$gcc_cv_ld != x \
25615 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25616 gcc_cv_as_ix86_tlsgdplt
=yes
25620 echo "configure: failed program was" >&5
25623 rm -f conftest.o conftest.s
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25627 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25628 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25630 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25635 .section .tdata,"aw'$tls_section_flag'",@progbits
25637 .section .text,"ax",@progbits
25638 call tls_ld@tlsldmplt'
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25640 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25641 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25644 gcc_cv_as_ix86_tlsldmplt
=no
25645 if test x
$gcc_cv_as != x
; then
25646 $as_echo "$conftest_s" > conftest.s
25647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25654 if test x
$gcc_cv_ld != x \
25655 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25656 gcc_cv_as_ix86_tlsldmplt
=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_ix86_tlsldmplt" >&5
25667 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25670 cat >>confdefs.h
<<_ACEOF
25671 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25675 # Enforce 32-bit output with gas and gld.
25676 if test x
$gas = xyes
; then
25677 as_ix86_tls_ldm_opt
="--32"
25679 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25680 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25681 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25683 ld_ix86_tls_ldm_opt
="-melf_i386"
25687 .section .text,"ax",@progbits
25689 .type _start, @function
25691 leal value@tlsldm(%ebx), %eax
25692 call ___tls_get_addr@plt
25694 .section .tdata,"aw'$tls_section_flag'",@progbits
25695 .type value, @object
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25698 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25699 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25700 $as_echo_n "(cached) " >&6
25702 gcc_cv_as_ix86_tlsldm
=no
25703 if test x
$gcc_cv_as != x
; then
25704 $as_echo "$conftest_s" > conftest.s
25705 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25707 (eval $ac_try) 2>&5
25709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25710 test $ac_status = 0; }; }
25712 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25713 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25714 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25715 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25716 gcc_cv_as_ix86_tlsldm
=yes
25721 echo "configure: failed program was" >&5
25724 rm -f conftest.o conftest.s
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25728 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25731 cat >>confdefs.h
<<_ACEOF
25732 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25740 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25741 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25744 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25745 if test $in_tree_gas = yes; then
25746 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25747 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25749 elif test x
$gcc_cv_as != x
; then
25751 addl r15 = @ltoffx(x#), gp
25753 ld8.mov r16 = [r15], x#' > conftest.s
25754 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25756 (eval $ac_try) 2>&5
25758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25759 test $ac_status = 0; }; }
25761 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25763 echo "configure: failed program was" >&5
25766 rm -f conftest.o conftest.s
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25770 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25771 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25773 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25781 *-*-aix*) conftest_s
=' .machine "pwr5"
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25786 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25787 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25790 gcc_cv_as_machine_directive
=no
25791 if test x
$gcc_cv_as != x
; then
25792 $as_echo ' .machine ppc7400' > conftest.s
25793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25795 (eval $ac_try) 2>&5
25797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25798 test $ac_status = 0; }; }
25800 gcc_cv_as_machine_directive
=yes
25802 echo "configure: failed program was" >&5
25805 rm -f conftest.o conftest.s
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25809 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25811 if test x
$gcc_cv_as_machine_directive != xyes
; then
25812 echo "*** This target requires an assembler supporting \".machine\"" >&2
25813 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25814 test x
$build = x
$target && exit 1
25818 *) conftest_s
=' .machine power4
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25824 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25825 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25828 gcc_cv_as_powerpc_mfcrf
=no
25829 if test $in_tree_gas = yes; then
25830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25831 then gcc_cv_as_powerpc_mfcrf
=yes
25833 elif test x
$gcc_cv_as != x
; then
25834 $as_echo "$conftest_s" > conftest.s
25835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; }
25842 gcc_cv_as_powerpc_mfcrf
=yes
25844 echo "configure: failed program was" >&5
25847 rm -f conftest.o conftest.s
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25851 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25852 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25854 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25859 *-*-aix*) conftest_s
=' .machine "pwr5"
25862 *) conftest_s
=' .machine power5
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25868 $as_echo_n "checking assembler for popcntb support... " >&6; }
25869 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25870 $as_echo_n "(cached) " >&6
25872 gcc_cv_as_powerpc_popcntb
=no
25873 if test $in_tree_gas = yes; then
25874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25875 then gcc_cv_as_powerpc_popcntb
=yes
25877 elif test x
$gcc_cv_as != x
; then
25878 $as_echo "$conftest_s" > conftest.s
25879 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25881 (eval $ac_try) 2>&5
25883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25884 test $ac_status = 0; }; }
25886 gcc_cv_as_powerpc_popcntb
=yes
25888 echo "configure: failed program was" >&5
25891 rm -f conftest.o conftest.s
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25895 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25896 if test $gcc_cv_as_powerpc_popcntb = yes; then
25898 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25903 *-*-aix*) conftest_s
=' .machine "pwr5x"
25906 *) conftest_s
=' .machine power5
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25912 $as_echo_n "checking assembler for fp round support... " >&6; }
25913 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25914 $as_echo_n "(cached) " >&6
25916 gcc_cv_as_powerpc_fprnd
=no
25917 if test $in_tree_gas = yes; then
25918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25919 then gcc_cv_as_powerpc_fprnd
=yes
25921 elif test x
$gcc_cv_as != x
; then
25922 $as_echo "$conftest_s" > conftest.s
25923 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25925 (eval $ac_try) 2>&5
25927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25928 test $ac_status = 0; }; }
25930 gcc_cv_as_powerpc_fprnd
=yes
25932 echo "configure: failed program was" >&5
25935 rm -f conftest.o conftest.s
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25939 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25940 if test $gcc_cv_as_powerpc_fprnd = yes; then
25942 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25947 *-*-aix*) conftest_s
=' .machine "pwr6"
25950 *) conftest_s
=' .machine power6
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25956 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25957 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25958 $as_echo_n "(cached) " >&6
25960 gcc_cv_as_powerpc_mfpgpr
=no
25961 if test $in_tree_gas = yes; then
25962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25963 then gcc_cv_as_powerpc_mfpgpr
=yes
25965 elif test x
$gcc_cv_as != x
; then
25966 $as_echo "$conftest_s" > conftest.s
25967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25969 (eval $ac_try) 2>&5
25971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25972 test $ac_status = 0; }; }
25974 gcc_cv_as_powerpc_mfpgpr
=yes
25976 echo "configure: failed program was" >&5
25979 rm -f conftest.o conftest.s
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25983 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25984 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25986 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25991 *-*-aix*) conftest_s
=' .csect .text[PR]
25993 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25997 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25998 *) conftest_s
=' .text
26000 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26004 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26005 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26006 $as_echo_n "(cached) " >&6
26008 gcc_cv_as_powerpc_rel16
=no
26009 if test $in_tree_gas = yes; then
26010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26011 then gcc_cv_as_powerpc_rel16
=yes
26013 elif test x
$gcc_cv_as != x
; then
26014 $as_echo "$conftest_s" > conftest.s
26015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017 (eval $ac_try) 2>&5
26019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020 test $ac_status = 0; }; }
26022 gcc_cv_as_powerpc_rel16
=yes
26024 echo "configure: failed program was" >&5
26027 rm -f conftest.o conftest.s
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26031 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26032 if test $gcc_cv_as_powerpc_rel16 = yes; then
26034 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26039 *-*-aix*) conftest_s
=' .machine "pwr6"
26042 *) conftest_s
=' .machine power6
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26048 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26049 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26050 $as_echo_n "(cached) " >&6
26052 gcc_cv_as_powerpc_cmpb
=no
26053 if test $in_tree_gas = yes; then
26054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26055 then gcc_cv_as_powerpc_cmpb
=yes
26057 elif test x
$gcc_cv_as != x
; then
26058 $as_echo "$conftest_s" > conftest.s
26059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26066 gcc_cv_as_powerpc_cmpb
=yes
26068 echo "configure: failed program was" >&5
26071 rm -f conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26075 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26076 if test $gcc_cv_as_powerpc_cmpb = yes; then
26078 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26083 *-*-aix*) conftest_s
=' .machine "pwr6"
26086 *) conftest_s
=' .machine power6
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26092 $as_echo_n "checking assembler for decimal float support... " >&6; }
26093 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26094 $as_echo_n "(cached) " >&6
26096 gcc_cv_as_powerpc_dfp
=no
26097 if test $in_tree_gas = yes; then
26098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26099 then gcc_cv_as_powerpc_dfp
=yes
26101 elif test x
$gcc_cv_as != x
; then
26102 $as_echo "$conftest_s" > conftest.s
26103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105 (eval $ac_try) 2>&5
26107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; }
26110 gcc_cv_as_powerpc_dfp
=yes
26112 echo "configure: failed program was" >&5
26115 rm -f conftest.o conftest.s
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26119 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26120 if test $gcc_cv_as_powerpc_dfp = yes; then
26122 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26127 *-*-aix*) conftest_s
=' .machine "pwr7"
26130 *) conftest_s
=' .machine power7
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26136 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26137 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26138 $as_echo_n "(cached) " >&6
26140 gcc_cv_as_powerpc_vsx
=no
26141 if test $in_tree_gas = yes; then
26142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26143 then gcc_cv_as_powerpc_vsx
=yes
26145 elif test x
$gcc_cv_as != x
; then
26146 $as_echo "$conftest_s" > conftest.s
26147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149 (eval $ac_try) 2>&5
26151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; }
26154 gcc_cv_as_powerpc_vsx
=yes
26156 echo "configure: failed program was" >&5
26159 rm -f conftest.o conftest.s
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26163 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26164 if test $gcc_cv_as_powerpc_vsx = yes; then
26166 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26171 *-*-aix*) conftest_s
=' .machine "pwr7"
26174 *) conftest_s
=' .machine power7
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26180 $as_echo_n "checking assembler for popcntd support... " >&6; }
26181 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26182 $as_echo_n "(cached) " >&6
26184 gcc_cv_as_powerpc_popcntd
=no
26185 if test $in_tree_gas = yes; then
26186 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26187 then gcc_cv_as_powerpc_popcntd
=yes
26189 elif test x
$gcc_cv_as != x
; then
26190 $as_echo "$conftest_s" > conftest.s
26191 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26193 (eval $ac_try) 2>&5
26195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26196 test $ac_status = 0; }; }
26198 gcc_cv_as_powerpc_popcntd
=yes
26200 echo "configure: failed program was" >&5
26203 rm -f conftest.o conftest.s
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26207 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26208 if test $gcc_cv_as_powerpc_popcntd = yes; then
26210 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26215 *-*-aix*) conftest_s
=' .machine "pwr8"
26216 .csect .text[PR]';;
26217 *) conftest_s
=' .machine power8
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26222 $as_echo_n "checking assembler for power8 support... " >&6; }
26223 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26224 $as_echo_n "(cached) " >&6
26226 gcc_cv_as_powerpc_power8
=no
26227 if test $in_tree_gas = yes; then
26228 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26229 then gcc_cv_as_powerpc_power8
=yes
26231 elif test x
$gcc_cv_as != x
; then
26232 $as_echo "$conftest_s" > conftest.s
26233 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26235 (eval $ac_try) 2>&5
26237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26238 test $ac_status = 0; }; }
26240 gcc_cv_as_powerpc_power8
=yes
26242 echo "configure: failed program was" >&5
26245 rm -f conftest.o conftest.s
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26249 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26250 if test $gcc_cv_as_powerpc_power8 = yes; then
26252 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26257 *-*-aix*) conftest_s
=' .csect .text[PR]
26259 *) conftest_s
=' .text
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26264 $as_echo_n "checking assembler for lwsync support... " >&6; }
26265 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26266 $as_echo_n "(cached) " >&6
26268 gcc_cv_as_powerpc_lwsync
=no
26269 if test $in_tree_gas = yes; then
26270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26271 then gcc_cv_as_powerpc_lwsync
=yes
26273 elif test x
$gcc_cv_as != x
; then
26274 $as_echo "$conftest_s" > conftest.s
26275 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26277 (eval $ac_try) 2>&5
26279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26280 test $ac_status = 0; }; }
26282 gcc_cv_as_powerpc_lwsync
=yes
26284 echo "configure: failed program was" >&5
26287 rm -f conftest.o conftest.s
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26291 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26292 if test $gcc_cv_as_powerpc_lwsync = yes; then
26294 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26299 *-*-aix*) conftest_s
=' .machine "476"
26302 *) conftest_s
=' .machine "476"
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26308 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26309 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26310 $as_echo_n "(cached) " >&6
26312 gcc_cv_as_powerpc_dci
=no
26313 if test $in_tree_gas = yes; then
26314 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26315 then gcc_cv_as_powerpc_dci
=yes
26317 elif test x
$gcc_cv_as != x
; then
26318 $as_echo "$conftest_s" > conftest.s
26319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26321 (eval $ac_try) 2>&5
26323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26324 test $ac_status = 0; }; }
26326 gcc_cv_as_powerpc_dci
=yes
26328 echo "configure: failed program was" >&5
26331 rm -f conftest.o conftest.s
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26335 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26336 if test $gcc_cv_as_powerpc_dci = yes; then
26338 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26343 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26344 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26345 $as_echo_n "(cached) " >&6
26347 gcc_cv_as_powerpc_gnu_attribute
=no
26348 if test $in_tree_gas = yes; then
26349 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26350 then gcc_cv_as_powerpc_gnu_attribute
=yes
26352 elif test x
$gcc_cv_as != x
; then
26353 $as_echo '.gnu_attribute 4,1' > conftest.s
26354 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26356 (eval $ac_try) 2>&5
26358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359 test $ac_status = 0; }; }
26361 gcc_cv_as_powerpc_gnu_attribute
=yes
26363 echo "configure: failed program was" >&5
26366 rm -f conftest.o conftest.s
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26370 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26371 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26373 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26378 $as_echo_n "checking assembler for tls marker support... " >&6; }
26379 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26382 gcc_cv_as_powerpc_tls_markers
=no
26383 if test $in_tree_gas = yes; then
26384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26385 then gcc_cv_as_powerpc_tls_markers
=yes
26387 elif test x
$gcc_cv_as != x
; then
26388 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26389 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26391 (eval $ac_try) 2>&5
26393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26394 test $ac_status = 0; }; }
26396 gcc_cv_as_powerpc_tls_markers
=yes
26398 echo "configure: failed program was" >&5
26401 rm -f conftest.o conftest.s
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26405 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26406 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26408 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26415 $as_echo_n "checking assembler for .ref support... " >&6; }
26416 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26417 $as_echo_n "(cached) " >&6
26419 gcc_cv_as_aix_ref
=no
26420 if test $in_tree_gas = yes; then
26421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26422 then gcc_cv_as_aix_ref
=yes
26424 elif test x
$gcc_cv_as != x
; then
26425 $as_echo ' .csect stuff[rw]
26431 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26433 (eval $ac_try) 2>&5
26435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26436 test $ac_status = 0; }; }
26438 gcc_cv_as_aix_ref
=yes
26440 echo "configure: failed program was" >&5
26443 rm -f conftest.o conftest.s
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26447 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26448 if test $gcc_cv_as_aix_ref = yes; then
26450 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26459 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26460 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26461 $as_echo_n "(cached) " >&6
26463 gcc_cv_as_mips_explicit_relocs
=no
26464 if test $in_tree_gas = yes; then
26465 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26466 then gcc_cv_as_mips_explicit_relocs
=yes
26468 elif test x
$gcc_cv_as != x
; then
26469 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26472 (eval $ac_try) 2>&5
26474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26475 test $ac_status = 0; }; }
26477 gcc_cv_as_mips_explicit_relocs
=yes
26479 echo "configure: failed program was" >&5
26482 rm -f conftest.o conftest.s
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26486 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26487 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26488 if test x
$target_cpu_default = x
26489 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26490 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26494 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26495 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26496 $as_echo_n "(cached) " >&6
26498 gcc_cv_as_mips_no_shared
=no
26499 if test $in_tree_gas = yes; then
26500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26501 then gcc_cv_as_mips_no_shared
=yes
26503 elif test x
$gcc_cv_as != x
; then
26504 $as_echo 'nop' > conftest.s
26505 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26507 (eval $ac_try) 2>&5
26509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26510 test $ac_status = 0; }; }
26512 gcc_cv_as_mips_no_shared
=yes
26514 echo "configure: failed program was" >&5
26517 rm -f conftest.o conftest.s
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26521 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26522 if test $gcc_cv_as_mips_no_shared = yes; then
26524 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26529 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26530 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26531 $as_echo_n "(cached) " >&6
26533 gcc_cv_as_mips_gnu_attribute
=no
26534 if test $in_tree_gas = yes; then
26535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26536 then gcc_cv_as_mips_gnu_attribute
=yes
26538 elif test x
$gcc_cv_as != x
; then
26539 $as_echo '.gnu_attribute 4,1' > conftest.s
26540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26542 (eval $ac_try) 2>&5
26544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26545 test $ac_status = 0; }; }
26547 gcc_cv_as_mips_gnu_attribute
=yes
26549 echo "configure: failed program was" >&5
26552 rm -f conftest.o conftest.s
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26556 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26557 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26559 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26564 $as_echo_n "checking assembler for .module support... " >&6; }
26565 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26566 $as_echo_n "(cached) " >&6
26568 gcc_cv_as_mips_dot_module
=no
26569 if test x
$gcc_cv_as != x
; then
26570 $as_echo '.module mips2
26571 .module fp=xx' > conftest.s
26572 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26574 (eval $ac_try) 2>&5
26576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26577 test $ac_status = 0; }; }
26579 gcc_cv_as_mips_dot_module
=yes
26581 echo "configure: failed program was" >&5
26584 rm -f conftest.o conftest.s
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26588 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26589 if test $gcc_cv_as_mips_dot_module = yes; then
26591 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26594 if test x
$gcc_cv_as_mips_dot_module = xno \
26595 && test x
$with_fp_32 != x
; then
26596 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26600 $as_echo_n "checking assembler for .micromips support... " >&6; }
26601 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26602 $as_echo_n "(cached) " >&6
26604 gcc_cv_as_micromips_support
=no
26605 if test x
$gcc_cv_as != x
; then
26606 $as_echo '.set micromips' > conftest.s
26607 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26614 gcc_cv_as_micromips_support
=yes
26616 echo "configure: failed program was" >&5
26619 rm -f conftest.o conftest.s
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26623 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26624 if test $gcc_cv_as_micromips_support = yes; then
26626 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26631 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26632 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26635 gcc_cv_as_mips_dtprelword
=no
26636 if test $in_tree_gas = yes; then
26637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26638 then gcc_cv_as_mips_dtprelword
=yes
26640 elif test x
$gcc_cv_as != x
; then
26641 $as_echo '.section .tdata,"awT",@progbits
26645 .dtprelword x+0x8000' > conftest.s
26646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26648 (eval $ac_try) 2>&5
26650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26651 test $ac_status = 0; }; }
26653 gcc_cv_as_mips_dtprelword
=yes
26655 echo "configure: failed program was" >&5
26658 rm -f conftest.o conftest.s
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26662 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26663 if test $gcc_cv_as_mips_dtprelword = yes; then
26665 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26670 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26671 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26672 $as_echo_n "(cached) " >&6
26674 gcc_cv_as_mips_dspr1_mult
=no
26675 if test x
$gcc_cv_as != x
; then
26676 $as_echo ' .set mips32r2
26684 multu $ac3,$4,$5' > conftest.s
26685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26687 (eval $ac_try) 2>&5
26689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26690 test $ac_status = 0; }; }
26692 gcc_cv_as_mips_dspr1_mult
=yes
26694 echo "configure: failed program was" >&5
26697 rm -f conftest.o conftest.s
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26701 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26702 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26704 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26709 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26710 gcc_cv_as_ld_jalr_reloc
=no
26711 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26712 if test $in_tree_ld = yes ; then
26713 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 \
26714 && test $in_tree_ld_is_elf = yes; then
26715 gcc_cv_as_ld_jalr_reloc
=yes
26717 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26718 echo ' .ent x' > conftest.s
26719 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26720 echo ' lw $25,%call16(y)($28)' >> conftest.s
26721 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26722 echo '1: jalr $25' >> conftest.s
26723 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26724 echo '1: jalr $25' >> conftest.s
26725 echo ' .end x' >> conftest.s
26726 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26727 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26728 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26729 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26730 gcc_cv_as_ld_jalr_reloc
=yes
26736 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26737 if test x
$target_cpu_default = x
; then
26738 target_cpu_default
=MASK_RELAX_PIC_CALLS
26740 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26744 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26747 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26748 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26749 $as_echo_n "(cached) " >&6
26751 gcc_cv_ld_mips_personality_relaxation
=no
26752 if test $in_tree_ld = yes ; then
26753 if test "$gcc_cv_gld_major_version" -eq 2 \
26754 -a "$gcc_cv_gld_minor_version" -ge 21 \
26755 -o "$gcc_cv_gld_major_version" -gt 2; then
26756 gcc_cv_ld_mips_personality_relaxation
=yes
26758 elif test x
$gcc_cv_as != x \
26759 -a x
$gcc_cv_ld != x \
26760 -a x
$gcc_cv_readelf != x
; then
26761 cat > conftest.s
<<EOF
26763 .cfi_personality 0x80,indirect_ptr
26770 .section .data,"aw",@progbits
26774 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26775 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26776 if $gcc_cv_readelf -d conftest
2>&1 \
26777 |
grep TEXTREL
> /dev
/null
2>&1; then
26779 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26780 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26783 gcc_cv_ld_mips_personality_relaxation
=yes
26787 rm -f conftest.s conftest.o conftest
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26790 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26791 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26793 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26798 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26799 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26800 $as_echo_n "(cached) " >&6
26802 gcc_cv_as_mips_nan
=no
26803 if test x
$gcc_cv_as != x
; then
26804 $as_echo '' > conftest.s
26805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26807 (eval $ac_try) 2>&5
26809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810 test $ac_status = 0; }; }
26812 gcc_cv_as_mips_nan
=yes
26814 echo "configure: failed program was" >&5
26817 rm -f conftest.o conftest.s
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26821 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26822 if test $gcc_cv_as_mips_nan = yes; then
26824 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26827 if test x
$gcc_cv_as_mips_nan = xno \
26828 && test x
$with_nan != x
; then
26829 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26834 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26835 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26836 $as_echo_n "(cached) " >&6
26838 gcc_cv_as_s390_gnu_attribute
=no
26839 if test $in_tree_gas = yes; then
26840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26841 then gcc_cv_as_s390_gnu_attribute
=yes
26843 elif test x
$gcc_cv_as != x
; then
26844 $as_echo '.gnu_attribute 8,1' > conftest.s
26845 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26847 (eval $ac_try) 2>&5
26849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26850 test $ac_status = 0; }; }
26852 gcc_cv_as_s390_gnu_attribute
=yes
26854 echo "configure: failed program was" >&5
26857 rm -f conftest.o conftest.s
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26861 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26862 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26864 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26870 # Mips and HP-UX need the GNU assembler.
26871 # Linux on IA64 might be able to use the Intel assembler.
26874 mips
*-*-* |
*-*-hpux* )
26875 if test x
$gas_flag = xyes \
26876 ||
test x
"$host" != x
"$build" \
26877 ||
test ! -x "$gcc_cv_as" \
26878 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26881 echo "*** This configuration requires the GNU assembler" >&2
26887 # ??? Not all targets support dwarf2 debug_line, even within a version
26888 # of gas. Moreover, we need to emit a valid instruction to trigger any
26889 # info to the output file. So, as supported targets are added to gas 2.11,
26890 # add some instruction here to (also) show we expect this might work.
26891 # ??? Once 2.11 is released, probably need to add first known working
26892 # version to the per-target configury.
26893 case "$cpu_type" in
26894 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26895 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26896 | visium | xstormy16 | xtensa
)
26906 if test x
"$insn" != x
; then
26908 .file 1 \"conftest.s\"
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26912 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26913 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26914 $as_echo_n "(cached) " >&6
26916 gcc_cv_as_dwarf2_debug_line
=no
26917 if test $in_tree_gas = yes; then
26918 if test $in_tree_gas_is_elf = yes \
26919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26920 then gcc_cv_as_dwarf2_debug_line
=yes
26922 elif test x
$gcc_cv_as != x
; then
26923 $as_echo "$conftest_s" > conftest.s
26924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26926 (eval $ac_try) 2>&5
26928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26929 test $ac_status = 0; }; }
26931 if test x
$gcc_cv_objdump != x \
26932 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26933 |
grep debug_line
> /dev
/null
2>&1; then
26934 gcc_cv_as_dwarf2_debug_line
=yes
26937 echo "configure: failed program was" >&5
26940 rm -f conftest.o conftest.s
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26944 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26947 # The .debug_line file table must be in the exact order that
26948 # we specified the files, since these indices are also used
26949 # by DW_AT_decl_file. Approximate this test by testing if
26950 # the assembler bitches if the same index is assigned twice.
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26952 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26953 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26954 $as_echo_n "(cached) " >&6
26956 gcc_cv_as_dwarf2_file_buggy
=no
26957 if test x
$gcc_cv_as != x
; then
26958 $as_echo ' .file 1 "foo.s"
26959 .file 1 "bar.s"' > conftest.s
26960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26962 (eval $ac_try) 2>&5
26964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26965 test $ac_status = 0; }; }
26967 gcc_cv_as_dwarf2_file_buggy
=yes
26969 echo "configure: failed program was" >&5
26972 rm -f conftest.o conftest.s
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26976 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26979 if test $gcc_cv_as_dwarf2_debug_line = yes \
26980 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26982 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26987 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26988 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26989 $as_echo_n "(cached) " >&6
26991 gcc_cv_as_gdwarf2_flag
=no
26992 if test $in_tree_gas = yes; then
26993 if test $in_tree_gas_is_elf = yes \
26994 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26995 then gcc_cv_as_gdwarf2_flag
=yes
26997 elif test x
$gcc_cv_as != x
; then
26998 $as_echo "$insn" > conftest.s
26999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27001 (eval $ac_try) 2>&5
27003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27004 test $ac_status = 0; }; }
27006 gcc_cv_as_gdwarf2_flag
=yes
27008 echo "configure: failed program was" >&5
27011 rm -f conftest.o conftest.s
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27015 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27016 if test $gcc_cv_as_gdwarf2_flag = yes; then
27018 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27023 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27024 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27025 $as_echo_n "(cached) " >&6
27027 gcc_cv_as_gstabs_flag
=no
27028 if test $in_tree_gas = yes; then
27029 if test $in_tree_gas_is_elf = yes \
27030 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27031 then gcc_cv_as_gstabs_flag
=yes
27033 elif test x
$gcc_cv_as != x
; then
27034 $as_echo "$insn" > conftest.s
27035 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27037 (eval $ac_try) 2>&5
27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; }
27042 gcc_cv_as_gstabs_flag
=yes
27044 echo "configure: failed program was" >&5
27047 rm -f conftest.o conftest.s
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27051 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27052 if test $gcc_cv_as_gstabs_flag = yes; then
27054 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27059 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27060 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27061 $as_echo_n "(cached) " >&6
27063 gcc_cv_as_debug_prefix_map_flag
=no
27064 if test $in_tree_gas = yes; then
27065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27066 then gcc_cv_as_debug_prefix_map_flag
=yes
27068 elif test x
$gcc_cv_as != x
; then
27069 $as_echo "$insn" > conftest.s
27070 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27072 (eval $ac_try) 2>&5
27074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27075 test $ac_status = 0; }; }
27077 gcc_cv_as_debug_prefix_map_flag
=yes
27079 echo "configure: failed program was" >&5
27082 rm -f conftest.o conftest.s
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27086 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27087 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27089 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27095 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27096 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27097 $as_echo_n "(cached) " >&6
27099 gcc_cv_as_compress_debug
=no
27100 if test x
$gcc_cv_as != x
; then
27101 $as_echo '' > conftest.s
27102 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27104 (eval $ac_try) 2>&5
27106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27107 test $ac_status = 0; }; }
27109 # gas compiled without zlib cannot compress debug sections and warns
27110 # about it, but still exits successfully. So check for this, too.
27111 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27113 gcc_cv_as_compress_debug
=0
27114 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27116 gcc_cv_as_compress_debug
=1
27117 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27118 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27120 gcc_cv_as_compress_debug
=0
27121 # FIXME: Future gas versions will support ELF gABI style via
27122 # --compress-debug-sections[=type].
27125 echo "configure: failed program was" >&5
27128 rm -f conftest.o conftest.s
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27132 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27135 cat >>confdefs.h
<<_ACEOF
27136 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27140 cat >>confdefs.h
<<_ACEOF
27141 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27145 cat >>confdefs.h
<<_ACEOF
27146 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27151 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27152 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27153 $as_echo_n "(cached) " >&6
27155 gcc_cv_as_lcomm_with_alignment
=no
27156 if test x
$gcc_cv_as != x
; then
27157 $as_echo '.lcomm bar,4,16' > conftest.s
27158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27160 (eval $ac_try) 2>&5
27162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27163 test $ac_status = 0; }; }
27165 gcc_cv_as_lcomm_with_alignment
=yes
27167 echo "configure: failed program was" >&5
27170 rm -f conftest.o conftest.s
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27174 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27175 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27177 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27181 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27182 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27183 && test "$prefix" != "NONE"; then
27185 cat >>confdefs.h
<<_ACEOF
27186 #define PREFIX_INCLUDE_DIR "$prefix/include"
27191 # Determine the version of glibc, if any, used on the target.
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27193 $as_echo_n "checking for target glibc version... " >&6; }
27195 # Check whether --with-glibc-version was given.
27196 if test "${with_glibc_version+set}" = set; then :
27197 withval
=$with_glibc_version;
27198 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27199 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27200 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27202 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27206 glibc_version_major
=0
27207 glibc_version_minor
=0
27208 if test -f $target_header_dir/features.h \
27209 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27210 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27211 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27212 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27217 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27219 cat >>confdefs.h
<<_ACEOF
27220 #define TARGET_GLIBC_MAJOR $glibc_version_major
27224 cat >>confdefs.h
<<_ACEOF
27225 #define TARGET_GLIBC_MINOR $glibc_version_minor
27229 # Check whether --enable-gnu-unique-object was given.
27230 if test "${enable_gnu_unique_object+set}" = set; then :
27231 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27233 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27234 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27238 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27239 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27240 $as_echo_n "(cached) " >&6
27242 gcc_cv_as_gnu_unique_object
=no
27243 if test $in_tree_gas = yes; then
27244 if test $in_tree_gas_is_elf = yes \
27245 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27246 then gcc_cv_as_gnu_unique_object
=yes
27248 elif test x
$gcc_cv_as != x
; then
27249 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27250 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27252 (eval $ac_try) 2>&5
27254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27255 test $ac_status = 0; }; }
27257 gcc_cv_as_gnu_unique_object
=yes
27259 echo "configure: failed program was" >&5
27262 rm -f conftest.o conftest.s
27265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27266 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27267 if test $gcc_cv_as_gnu_unique_object = yes; then
27268 # We need to unquote above to to use the definition from config.gcc.
27269 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27271 if test $glibc_version_major -gt 2 \
27272 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27273 enable_gnu_unique_object
=yes
27279 if test x
$enable_gnu_unique_object = xyes
; then
27281 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27286 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27287 if test "${gcc_cv_as_line_zero+set}" = set; then :
27288 $as_echo_n "(cached) " >&6
27290 gcc_cv_as_line_zero
=no
27291 if test $in_tree_gas = yes; then
27292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27293 then gcc_cv_as_line_zero
=yes
27295 elif test "x$gcc_cv_as" != x
; then
27296 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27297 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27299 (eval $ac_try) 2>&5
27301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27302 test $ac_status = 0; }; } &&
27303 test "x`cat conftest.out`" = x
27305 gcc_cv_as_line_zero
=yes
27307 echo "configure: failed program was" >&5
27309 echo "configure: error output was" >&5
27310 cat conftest.out
>&5
27312 rm -f conftest.o conftest.s conftest.out
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27316 $as_echo "$gcc_cv_as_line_zero" >&6; }
27317 if test "x$gcc_cv_as_line_zero" = xyes
; then
27319 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27324 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27325 gcc_cv_ld_eh_frame_hdr
=no
27326 if test $in_tree_ld = yes ; then
27327 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 \
27328 && test $in_tree_ld_is_elf = yes; then
27329 gcc_cv_ld_eh_frame_hdr
=yes
27331 elif test x
$gcc_cv_ld != x
; then
27332 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27333 # Check if linker supports --eh-frame-hdr option
27334 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27335 gcc_cv_ld_eh_frame_hdr
=yes
27340 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27341 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27342 gcc_cv_ld_eh_frame_hdr
=yes
27349 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27351 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27355 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27358 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27359 gcc_cv_ld_eh_frame_ciev3
=no
27360 if test $in_tree_ld = yes ; then
27361 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 \
27362 && test $in_tree_ld_is_elf = yes; then
27363 gcc_cv_ld_eh_frame_ciev3
=yes
27365 elif test x
$gcc_cv_ld != x
; then
27366 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27367 gcc_cv_ld_eh_frame_ciev3
=yes
27368 if test 0"$ld_date" -lt 20040513; then
27369 if test -n "$ld_date"; then
27370 # If there was date string, but was earlier than 2004-05-13, fail
27371 gcc_cv_ld_eh_frame_ciev3
=no
27372 elif test "$ld_vers_major" -lt 2; then
27373 gcc_cv_ld_eh_frame_ciev3
=no
27374 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27375 gcc_cv_ld_eh_frame_ciev3
=no
27381 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27382 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27383 gcc_cv_ld_eh_frame_ciev3
=yes
27390 cat >>confdefs.h
<<_ACEOF
27391 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27395 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27398 $as_echo_n "checking linker position independent executable support... " >&6; }
27400 if test $in_tree_ld = yes ; then
27401 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 \
27402 && test $in_tree_ld_is_elf = yes; then
27405 elif test x
$gcc_cv_ld != x
; then
27406 # Check if linker supports -pie option
27407 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27411 if test x
"$gcc_cv_ld_pie" = xyes
; then
27413 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27417 $as_echo "$gcc_cv_ld_pie" >&6; }
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27420 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27421 gcc_cv_ld_pie_copyreloc
=no
27422 if test $gcc_cv_ld_pie = yes ; then
27423 if test $in_tree_ld = yes ; then
27424 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27425 gcc_cv_ld_pie_copyreloc
=yes
27427 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27428 # Check if linker supports -pie option with copy reloc
27430 i?
86-*-linux* | x86_64-
*-linux*)
27431 cat > conftest1.s
<<EOF
27434 .type a_glob, @object
27439 cat > conftest2.s
<<EOF
27442 .type main, @function
27444 movl %eax, a_glob(%rip)
27447 .section .data.rel,"aw",@progbits
27452 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27453 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27454 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27455 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27456 gcc_cv_ld_pie_copyreloc
=yes
27458 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27464 cat >>confdefs.h
<<_ACEOF
27465 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27469 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27472 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27473 gcc_cv_ld_eh_gc_sections
=no
27474 if test $in_tree_ld = yes ; then
27475 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 \
27476 && test $in_tree_ld_is_elf = yes; then
27477 gcc_cv_ld_eh_gc_sections
=yes
27479 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27480 cat > conftest.s
<<EOF
27483 .type _start, @function
27486 .size _start, .-_start
27487 .section .text.foo,"ax",@progbits
27488 .type foo, @function
27492 .section .gcc_except_table.foo,"a",@progbits
27495 .section .eh_frame,"a",@progbits
27498 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27499 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27500 |
grep "gc-sections option ignored" > /dev
/null
; then
27501 gcc_cv_ld_eh_gc_sections
=no
27502 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27503 |
grep gcc_except_table
> /dev
/null
; then
27504 gcc_cv_ld_eh_gc_sections
=yes
27505 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27506 if test x
$gcc_cv_as_comdat_group != xyes
; then
27507 gcc_cv_ld_eh_gc_sections
=no
27508 cat > conftest.s
<<EOF
27511 .type _start, @function
27514 .size _start, .-_start
27515 .section .gnu.linkonce.t.foo,"ax",@progbits
27516 .type foo, @function
27520 .section .gcc_except_table.foo,"a",@progbits
27523 .section .eh_frame,"a",@progbits
27526 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27527 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27528 |
grep "gc-sections option ignored" > /dev
/null
; then
27529 gcc_cv_ld_eh_gc_sections
=no
27530 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27531 |
grep gcc_except_table
> /dev
/null
; then
27532 gcc_cv_ld_eh_gc_sections
=yes
27538 rm -f conftest.s conftest.o conftest
27542 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27543 gcc_cv_ld_eh_gc_sections
=no
27546 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27548 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27552 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27555 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27556 gcc_cv_ld_eh_gc_sections_bug
=no
27557 if test $in_tree_ld = yes ; then
27558 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 \
27559 && test $in_tree_ld_is_elf = yes; then
27560 gcc_cv_ld_eh_gc_sections_bug
=yes
27562 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
27563 gcc_cv_ld_eh_gc_sections_bug
=yes
27564 cat > conftest.s
<<EOF
27567 .type _start, @function
27570 .size _start, .-_start
27571 .section .text.startup.foo,"ax",@progbits
27572 .type foo, @function
27576 .section .gcc_except_table.foo,"a",@progbits
27579 .section .eh_frame,"a",@progbits
27582 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27583 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27584 |
grep "gc-sections option ignored" > /dev
/null
; then
27586 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27587 |
grep gcc_except_table
> /dev
/null
; then
27588 gcc_cv_ld_eh_gc_sections_bug
=no
27591 rm -f conftest.s conftest.o conftest
27593 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27595 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27599 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27602 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27603 # gold/gld support compressed debug sections since binutils 2.19/2.21
27604 if test $in_tree_ld = yes ; then
27605 gcc_cv_ld_compress_debug
=0
27606 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 \
27607 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27608 gcc_cv_ld_compress_debug
=2
27609 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27610 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 \
27611 && test $in_tree_ld_is_elf = yes; then
27612 gcc_cv_ld_compress_debug
=1
27614 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27615 gcc_cv_ld_compress_debug
=1
27616 if test 0"$ld_date" -lt 20050308; then
27617 if test -n "$ld_date"; then
27618 # If there was date string, but was earlier than 2005-03-08, fail
27619 gcc_cv_ld_compress_debug
=0
27620 elif test "$ld_vers_major" -lt 2; then
27621 gcc_cv_ld_compress_debug
=0
27622 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27623 gcc_cv_ld_compress_debug
=0
27626 if test $ld_is_gold = yes; then
27627 gcc_cv_ld_compress_debug
=2
27628 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27631 case "${target}" in
27633 # Introduced in Solaris 11.2.
27634 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27635 gcc_cv_ld_compress_debug
=3
27636 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27638 gcc_cv_ld_compress_debug
=0
27642 # Assume linkers other than GNU ld don't support compessed debug
27644 gcc_cv_ld_compress_debug
=0
27649 cat >>confdefs.h
<<_ACEOF
27650 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27654 cat >>confdefs.h
<<_ACEOF
27655 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27659 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27666 $as_echo_n "checking linker --as-needed support... " >&6; }
27667 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27668 $as_echo_n "(cached) " >&6
27670 gcc_cv_ld_as_needed
=no
27671 gcc_cv_ld_as_needed_option
='--as-needed'
27672 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27673 if test $in_tree_ld = yes ; then
27674 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 \
27675 && test $in_tree_ld_is_elf = yes; then
27676 gcc_cv_ld_as_needed
=yes
27678 elif test x
$gcc_cv_ld != x
; then
27679 # Check if linker supports --as-needed and --no-as-needed options
27680 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27681 gcc_cv_ld_as_needed
=yes
27684 # Solaris 2 ld always supports -z ignore/-z record.
27686 gcc_cv_ld_as_needed
=yes
27687 gcc_cv_ld_as_needed_option
="-z ignore"
27688 gcc_cv_ld_no_as_needed_option
="-z record"
27693 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27694 # dl_iterate_phdr, i.e. since Solaris 11.
27696 *-*-solaris2.1
[1-9]*)
27698 i?
86-*-* | x86_64-
*-*)
27699 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27700 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27701 gcc_cv_ld_as_needed
=no
27707 gcc_cv_ld_as_needed
=no
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27713 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27714 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27716 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27719 cat >>confdefs.h
<<_ACEOF
27720 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27724 cat >>confdefs.h
<<_ACEOF
27725 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27731 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27732 saved_LDFLAGS
="$LDFLAGS"
27733 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27734 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27736 /* end confdefs.h. */
27737 int main(void) {return 0;}
27739 if ac_fn_cxx_try_link
"$LINENO"; then :
27740 gcc_cv_ld_clearcap
=yes; break
27742 gcc_cv_ld_clearcap
=no
27744 rm -f core conftest.err conftest.
$ac_objext \
27745 conftest
$ac_exeext conftest.
$ac_ext
27747 LDFLAGS
="$saved_LDFLAGS"
27748 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27750 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27752 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27756 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27758 case "$target:$tm_file" in
27759 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27762 emul_name
="-melf64lppc"
27765 emul_name
="-melf64ppc"
27768 emul_name
="-melf64ppc_fbsd"
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27772 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27773 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27774 $as_echo_n "(cached) " >&6
27776 gcc_cv_ld_no_dot_syms
=no
27777 if test x
"$ld_is_gold" = xyes
; then
27778 gcc_cv_ld_no_dot_syms
=yes
27779 elif test $in_tree_ld = yes ; then
27780 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
27781 gcc_cv_ld_no_dot_syms
=yes
27783 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27784 cat > conftest1.s
<<EOF
27788 cat > conftest2.s
<<EOF
27789 .section ".opd","aw"
27792 .type foo,@function
27794 .quad .LEfoo,.TOC.@tocbase,0
27800 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27801 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27802 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27803 gcc_cv_ld_no_dot_syms
=yes
27805 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27810 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27811 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27813 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27818 $as_echo_n "checking linker large toc support... " >&6; }
27819 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27820 $as_echo_n "(cached) " >&6
27822 gcc_cv_ld_large_toc
=no
27823 if test x
"$ld_is_gold" = xyes
; then
27824 gcc_cv_ld_large_toc
=yes
27825 elif test $in_tree_ld = yes ; then
27826 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
27827 gcc_cv_ld_large_toc
=yes
27829 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27830 cat > conftest.s
<<EOF
27831 .section ".tbss","awT",@nobits
27837 addis 9,13,ie0@got@tprel@ha
27838 ld 9,ie0@got@tprel@l(9)
27840 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27841 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27842 gcc_cv_ld_large_toc
=yes
27844 rm -f conftest conftest.o conftest.s
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27849 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27850 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27852 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27857 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27858 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27859 $as_echo_n "(cached) " >&6
27861 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
27862 cat > conftest.s
<<EOF
27867 .section .data.rel.ro,"aw",@progbits
27872 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27873 && $gcc_cv_ld $emul_name -o conftest conftest.o
> /dev
/null
2>&1; then
27874 gcc_cv_ld_toc_align
=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
27876 rm -f conftest conftest.o conftest.s
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27881 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27882 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27884 cat >>confdefs.h
<<_ACEOF
27885 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27895 $as_echo_n "checking linker large toc support... " >&6; }
27896 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27897 $as_echo_n "(cached) " >&6
27899 gcc_cv_ld_large_toc
=no
27900 if test x
$gcc_cv_as != x
; then
27901 cat > conftest.s
<<EOF
27911 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27912 gcc_cv_ld_large_toc
=yes
27914 rm -f conftest conftest.o conftest.s
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27919 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27920 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27922 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27929 $as_echo_n "checking linker --build-id support... " >&6; }
27930 if test "${gcc_cv_ld_buildid+set}" = set; then :
27931 $as_echo_n "(cached) " >&6
27933 gcc_cv_ld_buildid
=no
27934 if test $in_tree_ld = yes ; then
27935 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27936 "$gcc_cv_gld_minor_version" -ge 18 -o \
27937 "$gcc_cv_gld_major_version" -gt 2 \
27938 && test $in_tree_ld_is_elf = yes; then
27939 gcc_cv_ld_buildid
=yes
27941 elif test x
$gcc_cv_ld != x
; then
27942 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27943 gcc_cv_ld_buildid
=yes
27947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27948 $as_echo "$gcc_cv_ld_buildid" >&6; }
27949 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27951 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27955 # Check whether --enable-linker-build-id was given.
27956 if test "${enable_linker_build_id+set}" = set; then :
27957 enableval
=$enable_linker_build_id;
27959 enable_linker_build_id
=no
27963 if test x
"$enable_linker_build_id" = xyes
; then
27964 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27966 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27970 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27974 # In binutils 2.21, GNU ld gained support for new emulations fully
27975 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27977 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27978 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27979 $as_echo_n "(cached) " >&6
27981 gcc_cv_ld_sol2_emulation
=no
27982 if test $in_tree_ld = yes ; then
27983 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27984 "$gcc_cv_gld_minor_version" -ge 21 -o \
27985 "$gcc_cv_gld_major_version" -gt 2 \
27986 && test $in_tree_ld_is_elf = yes; then
27987 gcc_cv_ld_sol2_emulation
=yes
27989 elif test x
$gcc_cv_ld != x
; then
27990 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27991 grep _sol2
> /dev
/null
; then
27992 gcc_cv_ld_sol2_emulation
=yes
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27997 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27998 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28000 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28005 $as_echo_n "checking linker --sysroot support... " >&6; }
28006 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28007 $as_echo_n "(cached) " >&6
28009 gcc_cv_ld_sysroot
=no
28010 if test $in_tree_ld = yes ; then
28011 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
28012 gcc_cv_ld_sysroot
=yes
28014 elif test x
$gcc_cv_ld != x
; then
28015 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28016 gcc_cv_ld_sysroot
=yes
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28021 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28022 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28024 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28028 # Test for stack protector support in target C library.
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28030 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28031 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28032 $as_echo_n "(cached) " >&6
28034 gcc_cv_libc_provides_ssp
=no
28037 # All versions of musl provide stack protector
28038 gcc_cv_libc_provides_ssp
=yes;;
28039 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
28040 # glibc 2.4 and later provides __stack_chk_fail and
28041 # either __stack_chk_guard, or TLS access to stack guard canary.
28043 if test $glibc_version_major -gt 2 \
28044 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28045 gcc_cv_libc_provides_ssp
=yes
28048 if test -f $target_header_dir/features.h \
28049 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28050 $target_header_dir/features.h
> /dev
/null
; then
28051 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28052 $target_header_dir/features.h
> /dev
/null
&& \
28053 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28054 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28055 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28056 gcc_cv_libc_provides_ssp
=yes
28058 # all versions of Bionic support stack protector
28059 elif test -f $target_header_dir/sys
/cdefs.h \
28060 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28061 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28062 gcc_cv_libc_provides_ssp
=yes
28067 # Avoid complicated tests (see
28068 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28069 # simply assert that glibc does provide this, which is true for all
28070 # realistically usable GNU/Hurd configurations.
28071 # All supported versions of musl provide it as well
28072 gcc_cv_libc_provides_ssp
=yes;;
28073 *-*-darwin* |
*-*-freebsd*)
28074 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28075 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28076 gcc_cv_libc_provides_ssp
=yes
28078 echo "no __stack_chk_fail on this target"
28082 *) gcc_cv_libc_provides_ssp
=no
;;
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28086 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28088 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28090 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28094 # Check whether --enable-default-ssp was given.
28095 # Check whether --enable-default-ssp was given.
28096 if test "${enable_default_ssp+set}" = set; then :
28097 enableval
=$enable_default_ssp;
28098 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28100 ia64
*-*-*) enable_default_ssp
=no
;;
28101 *) enable_default_ssp
=$enableval ;;
28104 enable_default_ssp
=no
28107 enable_default_ssp
=no
28110 if test x
$enable_default_ssp == xyes
; then
28112 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28117 # Test for <sys/sdt.h> on the target.
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28120 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28122 if test -f $target_header_dir/sys
/sdt.h
; then
28125 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28129 $as_echo "$have_sys_sdt_h" >&6; }
28131 # Check if TFmode long double should be used by default or not.
28132 # Some glibc targets used DFmode long double, but with glibc 2.4
28133 # and later they can use TFmode.
28135 powerpc
*-*-linux* | \
28136 sparc
*-*-linux* | \
28140 # Check whether --with-long-double-128 was given.
28141 if test "${with_long_double_128+set}" = set; then :
28142 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28145 if test $glibc_version_major -gt 2 \
28146 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28147 gcc_cv_target_ldbl128
=yes
28150 gcc_cv_target_ldbl128
=no
28151 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28152 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28153 && gcc_cv_target_ldbl128
=yes
28160 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28162 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28167 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28168 gcc_cv_target_dl_iterate_phdr
=unknown
28170 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28171 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28172 # libdl there, both complicating its use and breaking compatibility
28173 # between Solaris 10 updates.
28174 *-*-solaris2.1
[1-9]*)
28175 # <link.h> needs both a dl_iterate_phdr declaration and support for
28176 # compilation with largefile support.
28177 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28178 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28179 gcc_cv_target_dl_iterate_phdr
=yes
28181 gcc_cv_target_dl_iterate_phdr
=no
28184 *-*-dragonfly* |
*-*-freebsd*)
28185 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28186 gcc_cv_target_dl_iterate_phdr
=yes
28188 gcc_cv_target_dl_iterate_phdr
=no
28192 gcc_cv_target_dl_iterate_phdr
=yes
28196 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28198 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28202 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28204 # We no longer support different GC mechanisms. Emit an error if
28205 # the user configures with --with-gc.
28207 # Check whether --with-gc was given.
28208 if test "${with_gc+set}" = set; then :
28209 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28213 # Libraries to use on the host. This will normally be set by the top
28214 # level Makefile. Here we simply capture the value for our Makefile.
28215 if test -z "${HOST_LIBS+set}"; then
28220 # Use the system's zlib library.
28222 # Use the system's zlib library.
28223 zlibdir
="-L\$(top_builddir)/../zlib"
28224 zlibinc
="-I\$(top_srcdir)/../zlib"
28226 # Check whether --with-system-zlib was given.
28227 if test "${with_system_zlib+set}" = set; then :
28228 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28241 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28242 # Check whether --enable-maintainer-mode was given.
28243 if test "${enable_maintainer_mode+set}" = set; then :
28244 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28251 $as_echo "$maintainer_mode" >&6; }
28253 if test "$maintainer_mode" = "yes"; then
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28261 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28262 # Check whether --enable-link-mutex was given.
28263 if test "${enable_link_mutex+set}" = set; then :
28264 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28270 $as_echo "$do_link_mutex" >&6; }
28272 if test "$do_link_mutex" = "yes"; then
28275 DO_LINK_MUTEX
=false
28283 # Make empty files to contain the specs and options for each language.
28284 # Then add #include lines to for a compiler that has specs and/or options.
28290 # These (without "all_") are set in each config-lang.in.
28291 # `language' must be a single word so is spelled singularly.
28294 all_outputs
='Makefile'
28295 # List of language makefile fragments.
28296 all_lang_makefrags
=
28297 # Additional files for gengtype
28298 all_gtfiles
="$target_gtfiles"
28300 # These are the languages that are set in --enable-languages,
28301 # and are available in the GCC tree.
28302 all_selected_languages
=
28304 # Add the language fragments.
28305 # Languages are added via two mechanisms. Some information must be
28306 # recorded in makefile variables, these are defined in config-lang.in.
28307 # We accumulate them and plug them into the main Makefile.
28308 # The other mechanism is a set of hooks for each of the main targets
28309 # like `clean', `install', etc.
28311 language_hooks
="Make-hooks"
28313 for lang
in ${srcdir}/*/config-lang.
in
28315 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28317 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28318 if test "x$lang_alias" = x
28320 echo "$lang doesn't set \$language." 1>&2
28323 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28324 subdirs
="$subdirs $subdir"
28326 # $gcc_subdir is where the gcc integration files are to be found
28327 # for a language, both for internal compiler purposes (compiler
28328 # sources implementing front-end to GCC tree converters), and for
28329 # build infrastructure purposes (Make-lang.in, etc.)
28331 # This will be <subdir> (relative to $srcdir) if a line like
28332 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28333 # is found in <langdir>/config-lang.in, and will remain <langdir>
28336 # Except for the language alias (fetched above), the regular
28337 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28338 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28339 # only this and the language alias.
28341 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28342 if [ "$gcc_subdir" = "" ]; then
28343 gcc_subdir
="$subdir"
28346 case ",$enable_languages," in
28348 all_selected_languages
="$all_selected_languages $lang_alias"
28349 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28350 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28361 .
${srcdir}/$gcc_subdir/config-lang.
in
28362 if test "x$language" = x
28364 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28369 case ",$enable_languages," in
28370 *,$lang_alias,*) ;;
28372 for i
in $subdir_requires; do
28373 test -f "${srcdir}/$i/config-lang.in" && continue
28381 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28382 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28383 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28384 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28386 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28387 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28389 all_languages
="$all_languages $language"
28390 all_compilers
="$all_compilers $compilers"
28391 all_outputs
="$all_outputs $outputs"
28392 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28393 case ",$enable_languages," in
28396 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28406 for language
in $all_selected_languages
28408 check_languages
="$check_languages check-$language"
28411 # We link each language in with a set of hooks, reached indirectly via
28412 # lang.${target}. Only do so for selected languages.
28416 target_list
="all.cross start.encap rest.encap tags \
28417 install-common install-man install-info install-pdf install-html dvi \
28418 pdf html uninstall info man srcextra srcman srcinfo \
28419 mostlyclean clean distclean maintainer-clean install-plugin"
28421 for t
in $target_list
28424 for lang
in $all_selected_languages
28428 echo "lang.$t: $x" >> Make-hooks
28432 # Option include files
28435 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
28436 option_includes
="option-includes.mk"
28445 echo "dir ." > .gdbinit
28446 echo "dir ${srcdir}" >> .gdbinit
28447 if test x
$gdb_needs_out_file_path = xyes
28449 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28451 if test "x$subdirs" != x
; then
28454 echo "dir ${srcdir}/$s" >> .gdbinit
28457 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28458 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28460 # Put a breakpoint on __asan_report_error to help with debugging buffer
28463 *-fsanitize=address
*)
28464 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28468 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28472 # Find a directory in which to install a shared libgcc.
28474 # Check whether --enable-version-specific-runtime-libs was given.
28475 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28476 enableval
=$enable_version_specific_runtime_libs;
28480 # Substitute configuration variables
28544 if test x
${build} = x
${host} ; then
28545 if test x
${host} = x
${target} ; then
28546 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28548 echo "Links are now set up to build a cross-compiler" 1>&2
28549 echo " from ${host} to ${target}." 1>&2
28552 if test x
${host} = x
${target} ; then
28553 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28554 echo " for ${target}." 1>&2
28556 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28557 echo " from ${host} to ${target}." 1>&2
28566 if test "x${ISLLIBS}" != "x" ; then
28568 $as_echo "#define HAVE_isl 1" >>confdefs.h
28572 # Check whether isl_schedule_constraints_compute_schedule is available;
28573 # it's new in ISL-0.13.
28574 # Check whether isl_options_set_schedule_serialize_sccs is available;
28575 # it's new in ISL-0.15.
28576 if test "x${ISLLIBS}" != "x" ; then
28577 saved_CXXFLAGS
="$CXXFLAGS"
28578 CXXFLAGS
="$CXXFLAGS $ISLINC"
28580 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
28582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28583 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28585 /* end confdefs.h. */
28586 #include <isl/schedule.h>
28590 isl_schedule_constraints_compute_schedule (NULL);
28595 if ac_fn_cxx_try_link
"$LINENO"; then :
28596 ac_has_isl_schedule_constraints_compute_schedule
=yes
28598 ac_has_isl_schedule_constraints_compute_schedule
=no
28600 rm -f core conftest.err conftest.
$ac_objext \
28601 conftest
$ac_exeext conftest.
$ac_ext
28602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28603 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28606 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28608 /* end confdefs.h. */
28609 #include <isl/schedule.h>
28613 isl_options_set_schedule_serialize_sccs (NULL, 0);
28618 if ac_fn_cxx_try_link
"$LINENO"; then :
28619 ac_has_isl_options_set_schedule_serialize_sccs
=yes
28621 ac_has_isl_options_set_schedule_serialize_sccs
=no
28623 rm -f core conftest.err conftest.
$ac_objext \
28624 conftest
$ac_exeext conftest.
$ac_ext
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28626 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_ctx_get_max_operations" >&5
28629 $as_echo_n "checking Checking for isl_ctx_get_max_operations... " >&6; }
28630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28631 /* end confdefs.h. */
28632 #include <isl/ctx.h>
28636 isl_ctx_get_max_operations (isl_ctx_alloc ());
28641 if ac_fn_cxx_try_link
"$LINENO"; then :
28642 ac_has_isl_ctx_get_max_operations
=yes
28644 ac_has_isl_ctx_get_max_operations
=no
28646 rm -f core conftest.err conftest.
$ac_objext \
28647 conftest
$ac_exeext conftest.
$ac_ext
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_ctx_get_max_operations" >&5
28649 $as_echo "$ac_has_isl_ctx_get_max_operations" >&6; }
28652 CXXFLAGS
="$saved_CXXFLAGS"
28654 if test x
"$ac_has_isl_schedule_constraints_compute_schedule" = x
"yes"; then
28656 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28660 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
28662 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28665 if test x
"$ac_has_isl_ctx_get_max_operations" = x
"yes"; then
28667 $as_echo "#define HAVE_ISL_CTX_MAX_OPERATIONS 1" >>confdefs.h
28672 # Check for plugin support
28673 # Check whether --enable-plugin was given.
28674 if test "${enable_plugin+set}" = set; then :
28675 enableval
=$enable_plugin; enable_plugin
=$enableval
28677 enable_plugin
=yes; default_plugin
=yes
28685 if test x
$build = x
$host; then
28686 export_sym_check
="nm${exeext} -g"
28687 elif test x
$host = x
$target; then
28688 export_sym_check
="$gcc_cv_nm -g"
28694 if test x
$build = x
$host; then
28695 export_sym_check
="objdump${exeext} -T"
28696 elif test x
$host = x
$target; then
28697 export_sym_check
="$gcc_cv_objdump -T"
28704 if test x
"$enable_plugin" = x
"yes"; then
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28707 $as_echo_n "checking for exported symbols... " >&6; }
28708 if test "x$export_sym_check" != x
; then
28709 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28710 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28711 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28712 : # No need to use a flag
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28714 $as_echo "yes" >&6; }
28716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28717 $as_echo "yes" >&6; }
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28719 $as_echo_n "checking for -rdynamic... " >&6; }
28720 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28721 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28722 plugin_rdynamic
=yes
28723 pluginlibs
="-rdynamic"
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28729 $as_echo "$plugin_rdynamic" >&6; }
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28733 $as_echo "unable to check" >&6; }
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28739 $as_echo_n "checking for library containing dlopen... " >&6; }
28740 if test "${ac_cv_search_dlopen+set}" = set; then :
28741 $as_echo_n "(cached) " >&6
28743 ac_func_search_save_LIBS
=$LIBS
28744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28745 /* end confdefs.h. */
28747 /* Override any GCC internal prototype to avoid an error.
28748 Use char because int might match the return type of a GCC
28749 builtin and then its argument prototype would still apply. */
28762 for ac_lib
in '' dl
; do
28763 if test -z "$ac_lib"; then
28764 ac_res
="none required"
28767 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28769 if ac_fn_cxx_try_link
"$LINENO"; then :
28770 ac_cv_search_dlopen
=$ac_res
28772 rm -f core conftest.err conftest.
$ac_objext \
28774 if test "${ac_cv_search_dlopen+set}" = set; then :
28778 if test "${ac_cv_search_dlopen+set}" = set; then :
28781 ac_cv_search_dlopen
=no
28783 rm conftest.
$ac_ext
28784 LIBS
=$ac_func_search_save_LIBS
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28787 $as_echo "$ac_cv_search_dlopen" >&6; }
28788 ac_res
=$ac_cv_search_dlopen
28789 if test "$ac_res" != no
; then :
28790 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28794 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28795 pluginlibs
="$pluginlibs -ldl"
28799 # Check that we can build shared objects with -fPIC -shared
28800 saved_LDFLAGS
="$LDFLAGS"
28801 saved_CFLAGS
="$CFLAGS"
28804 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28805 CFLAGS
="$CFLAGS -fPIC"
28806 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28809 CFLAGS
="$CFLAGS -fPIC"
28810 LDFLAGS
="$LDFLAGS -fPIC -shared"
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28814 $as_echo_n "checking for -fPIC -shared... " >&6; }
28815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28816 /* end confdefs.h. */
28826 if ac_fn_cxx_try_link
"$LINENO"; then :
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28828 $as_echo "yes" >&6; }; have_pic_shared
=yes
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28831 $as_echo "no" >&6; }; have_pic_shared
=no
28833 rm -f core conftest.err conftest.
$ac_objext \
28834 conftest
$ac_exeext conftest.
$ac_ext
28835 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28839 LDFLAGS
="$saved_LDFLAGS"
28840 CFLAGS
="$saved_CFLAGS"
28842 # If plugin support had been requested but not available, fail.
28843 if test x
"$enable_plugin" = x
"no" ; then
28844 if test x
"$default_plugin" != x
"yes"; then
28846 Building GCC with plugin support requires a host that supports
28847 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28854 if test x
"$enable_plugin" = x
"yes"; then
28856 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28861 # Enable --enable-host-shared
28862 # Check whether --enable-host-shared was given.
28863 if test "${enable_host_shared+set}" = set; then :
28864 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28873 # Check whether --enable-libquadmath-support was given.
28874 if test "${enable_libquadmath_support+set}" = set; then :
28875 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28877 ENABLE_LIBQUADMATH_SUPPORT
=yes
28880 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28882 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28887 # Specify what hash style to use by default.
28889 # Check whether --with-linker-hash-style was given.
28890 if test "${with_linker_hash_style+set}" = set; then :
28891 withval
=$with_linker_hash_style; case x
"$withval" in
28893 LINKER_HASH_STYLE
=sysv
28896 LINKER_HASH_STYLE
=gnu
28899 LINKER_HASH_STYLE
=both
28902 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28906 LINKER_HASH_STYLE
=''
28909 if test x
"${LINKER_HASH_STYLE}" != x
; then
28911 cat >>confdefs.h
<<_ACEOF
28912 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28917 # Specify what should be the default of -fdiagnostics-color option.
28919 # Check whether --with-diagnostics-color was given.
28920 if test "${with_diagnostics_color+set}" = set; then :
28921 withval
=$with_diagnostics_color; case x
"$withval" in
28923 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
28926 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28929 DIAGNOSTICS_COLOR_DEFAULT
=-1
28932 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
28935 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28939 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28943 cat >>confdefs.h
<<_ACEOF
28944 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28948 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28949 # of jit/jit-playback.c.
28950 cat > gcc-driver-name.h
<<EOF
28951 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28954 # Check whether --enable-default-pie was given.
28955 # Check whether --enable-default-pie was given.
28956 if test "${enable_default_pie+set}" = set; then :
28957 enableval
=$enable_default_pie; enable_default_pie
=$enableval
28959 enable_default_pie
=no
28962 if test x
$enable_default_pie == xyes
; then
28964 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28969 # Check if -fno-PIE works.
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28971 $as_echo_n "checking for -fno-PIE option... " >&6; }
28972 if test "${gcc_cv_c_no_fpie+set}" = set; then :
28973 $as_echo_n "(cached) " >&6
28975 saved_CXXFLAGS
="$CXXFLAGS"
28976 CXXFLAGS
="$CXXFLAGS -fno-PIE"
28977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28978 /* end confdefs.h. */
28979 int main(void) {return 0;}
28981 if ac_fn_cxx_try_compile
"$LINENO"; then :
28982 gcc_cv_c_no_fpie
=yes
28984 gcc_cv_c_no_fpie
=no
28986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28987 CXXFLAGS
="$saved_CXXFLAGS"
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28990 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28991 if test "$gcc_cv_c_no_fpie" = "yes"; then
28992 NO_PIE_CFLAGS
="-fno-PIE"
28996 # Check if -no-pie works.
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28998 $as_echo_n "checking for -no-pie option... " >&6; }
28999 if test "${gcc_cv_no_pie+set}" = set; then :
29000 $as_echo_n "(cached) " >&6
29002 saved_LDFLAGS
="$LDFLAGS"
29003 LDFLAGS
="$LDFLAGS -no-pie"
29004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29005 /* end confdefs.h. */
29006 int main(void) {return 0;}
29008 if ac_fn_cxx_try_link
"$LINENO"; then :
29013 rm -f core conftest.err conftest.
$ac_objext \
29014 conftest
$ac_exeext conftest.
$ac_ext
29015 LDFLAGS
="$saved_LDFLAGS"
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29018 $as_echo "$gcc_cv_no_pie" >&6; }
29019 if test "$gcc_cv_no_pie" = "yes"; then
29020 NO_PIE_FLAG
="-no-pie"
29024 # Check linker supports '-z bndplt'
29025 ld_bndplt_support
=no
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29027 $as_echo_n "checking linker -z bndplt option... " >&6; }
29028 if test x
"$ld_is_gold" = xno
; then
29029 if test $in_tree_ld = yes ; then
29030 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
29031 ld_bndplt_support
=yes
29033 elif test x
$gcc_cv_ld != x
; then
29034 # Check if linker supports -a bndplt option
29035 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29036 ld_bndplt_support
=yes
29040 if test x
"$ld_bndplt_support" = xyes
; then
29042 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29046 $as_echo "$ld_bndplt_support" >&6; }
29048 # Configure the subdirectories
29049 # AC_CONFIG_SUBDIRS($subdirs)
29051 # Create the Makefile
29052 # and configure language subdirectories
29053 ac_config_files
="$ac_config_files $all_outputs"
29056 ac_config_commands
="$ac_config_commands default"
29058 cat >confcache
<<\_ACEOF
29059 # This file is a shell script that caches the results of configure
29060 # tests run on this system so they can be shared between configure
29061 # scripts and configure runs, see configure's option --config-cache.
29062 # It is not useful on other systems. If it contains results you don't
29063 # want to keep, you may remove or edit it.
29065 # config.status only pays attention to the cache file if you give it
29066 # the --recheck option to rerun configure.
29068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29070 # following values.
29074 # The following way of writing the cache mishandles newlines in values,
29075 # but we know of no workaround that is simple, portable, and efficient.
29076 # So, we kill variables containing newlines.
29077 # Ultrix sh set writes to stderr and can't be redirected directly,
29078 # and sets the high bit in the cache file unless we assign to the vars.
29080 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29081 eval ac_val
=\$
$ac_var
29085 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29089 _ | IFS | as_nl
) ;; #(
29090 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29091 *) { eval $ac_var=; unset $ac_var;} ;;
29097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29098 *${as_nl}ac_space
=\
*)
29099 # `set' does not quote correctly, so add quotes: double-quote
29100 # substitution turns \\\\ into \\, and sed turns \\ into \.
29103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29106 # `set' quotes correctly as required by POSIX, so do not add quotes.
29107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29120 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29121 if test -w "$cache_file"; then
29122 test "x$cache_file" != "x/dev/null" &&
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29124 $as_echo "$as_me: updating cache $cache_file" >&6;}
29125 cat confcache
>$cache_file
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29128 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29133 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29134 # Let make expand exec_prefix.
29135 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29137 DEFS
=-DHAVE_CONFIG_H
29141 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29142 # 1. Remove the extension, and $U if already installed.
29143 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29144 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29146 # will be set to the directory where LIBOBJS objects are built.
29147 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29148 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29150 LIBOBJS
=$ac_libobjs
29152 LTLIBOBJS
=$ac_ltlibobjs
29157 : ${CONFIG_STATUS=./config.status}
29159 ac_clean_files_save
=$ac_clean_files
29160 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29162 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29164 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29166 # Generated by $as_me.
29167 # Run this file to recreate the current configuration.
29168 # Compiler output produced by configure, useful for debugging
29169 # configure, is in config.log if it exists.
29172 ac_cs_recheck=false
29175 SHELL=\${CONFIG_SHELL-$SHELL}
29178 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29179 ## -------------------- ##
29180 ## M4sh Initialization. ##
29181 ## -------------------- ##
29183 # Be more Bourne compatible
29184 DUALCASE
=1; export DUALCASE
# for MKS sh
29185 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29188 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29189 # is contrary to our usage. Disable this feature.
29190 alias -g '${1+"$@"}'='"$@"'
29191 setopt NO_GLOB_SUBST
29193 case `(set -o) 2>/dev/null` in #(
29205 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29206 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29209 # Prefer a ksh shell builtin over an external printf program on Solaris,
29210 # but without wasting forks for bash or zsh.
29211 if test -z "$BASH_VERSION$ZSH_VERSION" \
29212 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29213 as_echo='print
-r --'
29214 as_echo_n='print
-rn --'
29215 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29216 as_echo='printf %s
\n'
29217 as_echo_n='printf %s
'
29219 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29220 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29221 as_echo_n='/usr
/ucb
/echo -n'
29223 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29224 as_echo_n_body='eval
29228 expr "X$arg" : "X\\(.*\\)$as_nl";
29229 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29231 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29233 export as_echo_n_body
29234 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29236 export as_echo_body
29237 as_echo='sh
-c $as_echo_body as_echo
'
29240 # The user is always right.
29241 if test "${PATH_SEPARATOR+set}" != set; then
29243 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29244 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29251 # We need space, tab and new line, in precisely that order. Quoting is
29252 # there to prevent editors from complaining about space-tab.
29253 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29254 # splitting by setting IFS to empty value.)
29257 # Find who we are. Look in the path if we contain no directory separator.
29259 *[\\/]* ) as_myself=$0 ;;
29260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29261 for as_dir in $PATH
29264 test -z "$as_dir" && as_dir=.
29265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29271 # We did not find ourselves, most probably we were run as `sh COMMAND'
29272 # in which case we are not to be found in the path.
29273 if test "x$as_myself" = x
; then
29276 if test ! -f "$as_myself"; then
29277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29281 # Unset variables that we do not need and which cause bugs (e.g. in
29282 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29283 # suppresses any "Segmentation fault" message there. '((' could
29284 # trigger a bug in pdksh 5.2.14.
29285 for as_var
in BASH_ENV ENV MAIL MAILPATH
29286 do eval test x\
${$as_var+set} = xset \
29287 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29300 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29303 # as_fn_error ERROR [LINENO LOG_FD]
29304 # ---------------------------------
29305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29307 # script with status $?, using 1 if that was 0.
29310 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29312 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29315 $as_echo "$as_me: error: $1" >&2
29316 as_fn_exit
$as_status
29320 # as_fn_set_status STATUS
29321 # -----------------------
29322 # Set $? to STATUS, without forking.
29323 as_fn_set_status
()
29326 } # as_fn_set_status
29328 # as_fn_exit STATUS
29329 # -----------------
29330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29334 as_fn_set_status
$1
29340 # Portably unset VAR.
29343 { eval $1=; unset $1;}
29345 as_unset
=as_fn_unset
29346 # as_fn_append VAR VALUE
29347 # ----------------------
29348 # Append the text in VALUE to the end of the definition contained in VAR. Take
29349 # advantage of any shell optimizations that allow amortized linear growth over
29350 # repeated appends, instead of the typical quadratic growth present in naive
29352 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29353 eval 'as_fn_append ()
29364 # as_fn_arith ARG...
29365 # ------------------
29366 # Perform arithmetic evaluation on the ARGs, and store the result in the
29367 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29368 # must be portable across $(()) and expr.
29369 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29370 eval 'as_fn_arith ()
29377 as_val
=`expr "$@" || test $? -eq 1`
29382 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29383 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29389 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29390 as_basename
=basename
29395 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29401 as_me
=`$as_basename -- "$0" ||
29402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29403 X"$0" : 'X\(//\)$' \| \
29404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29406 sed '/^.*\/\([^/][^/]*\)\/*$/{
29420 # Avoid depending upon Character Ranges.
29421 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29422 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29423 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29424 as_cr_digits
='0123456789'
29425 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29427 ECHO_C
= ECHO_N
= ECHO_T
=
29428 case `echo -n x` in #(((((
29430 case `echo 'xy\c'` in
29431 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29433 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29440 rm -f conf$$ conf$$.exe conf$$.
file
29441 if test -d conf$$.dir
; then
29442 rm -f conf$$.dir
/conf$$.
file
29445 mkdir conf$$.dir
2>/dev
/null
29447 if (echo >conf$$.
file) 2>/dev
/null
; then
29448 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29450 # ... but there are two gotchas:
29451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29453 # In both cases, we have to default to `cp -p'.
29454 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29456 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29464 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29465 rmdir conf$$.dir
2>/dev
/null
29470 # Create "$as_dir" as a directory, including parents if necessary.
29475 -*) as_dir
=.
/$as_dir;;
29477 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29481 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29482 *) as_qdir
=$as_dir;;
29484 as_dirs
="'$as_qdir' $as_dirs"
29485 as_dir
=`$as_dirname -- "$as_dir" ||
29486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29487 X"$as_dir" : 'X\(//\)[^/]' \| \
29488 X"$as_dir" : 'X\(//\)$' \| \
29489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29490 $as_echo X"$as_dir" |
29491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29495 /^X\(\/\/\)[^/].*/{
29508 test -d "$as_dir" && break
29510 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29511 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29515 if mkdir
-p .
2>/dev
/null
; then
29516 as_mkdir_p
='mkdir -p "$as_dir"'
29518 test -d .
/-p && rmdir .
/-p
29522 if test -x / >/dev
/null
2>&1; then
29523 as_test_x
='test -x'
29525 if ls -dL / >/dev
/null
2>&1; then
29532 if test -d "$1"; then
29538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29539 ???[sx]*):;;*)false;;esac;fi
29543 as_executable_p
=$as_test_x
29545 # Sed expression to map a string onto a valid CPP name.
29546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29548 # Sed expression to map a string onto a valid variable name.
29549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29553 ## ----------------------------------- ##
29554 ## Main body of $CONFIG_STATUS script. ##
29555 ## ----------------------------------- ##
29557 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29560 # Save the log message, to keep $0 and so on meaningful, and to
29561 # report actual input values of CONFIG_FILES etc. instead of their
29562 # values after options handling.
29564 This file was extended by $as_me, which was
29565 generated by GNU Autoconf 2.64. Invocation command line was
29567 CONFIG_FILES = $CONFIG_FILES
29568 CONFIG_HEADERS = $CONFIG_HEADERS
29569 CONFIG_LINKS = $CONFIG_LINKS
29570 CONFIG_COMMANDS = $CONFIG_COMMANDS
29573 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29578 case $ac_config_files in *"
29579 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29582 case $ac_config_headers in *"
29583 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29588 # Files that config.status was made for.
29589 config_files="$ac_config_files"
29590 config_headers="$ac_config_headers"
29591 config_links="$ac_config_links"
29592 config_commands="$ac_config_commands"
29596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29598 \`$as_me' instantiates files and other configuration actions
29599 from templates according to the current configuration. Unless the files
29600 and actions are specified as TAGs, all are instantiated by default.
29602 Usage: $0 [OPTION]... [TAG]...
29604 -h, --help print this help, then exit
29605 -V, --version print version number and configuration settings, then exit
29606 -q, --quiet, --silent
29607 do not print progress messages
29608 -d, --debug don't remove temporary files
29609 --recheck update $as_me by reconfiguring in the same conditions
29610 --file=FILE[:TEMPLATE]
29611 instantiate the configuration file FILE
29612 --header=FILE[:TEMPLATE]
29613 instantiate the configuration header FILE
29615 Configuration files:
29618 Configuration headers:
29621 Configuration links:
29624 Configuration commands:
29627 Report bugs to the package provider."
29630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29633 configured by $0, generated by GNU Autoconf 2.64,
29634 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29636 Copyright (C) 2009 Free Software Foundation, Inc.
29637 This config.status script is free software; the Free Software Foundation
29638 gives unlimited permission to copy, distribute and modify it."
29643 test -n "\$AWK" || AWK=awk
29646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29647 # The default lists apply if the user does not specify any file.
29653 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29654 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29665 # Handling of the options.
29666 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29668 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29669 $as_echo "$ac_cs_version"; exit ;;
29670 --debug |
--debu |
--deb |
--de |
--d |
-d )
29672 --file |
--fil |
--fi |
--f )
29675 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29677 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29678 ac_need_defaults
=false
;;
29679 --header |
--heade |
--head |
--hea )
29682 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29684 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29685 ac_need_defaults
=false
;;
29687 # Conflict between --help and --header
29688 as_fn_error
"ambiguous option: \`$1'
29689 Try \`$0 --help' for more information.";;
29690 --help |
--hel |
-h )
29691 $as_echo "$ac_cs_usage"; exit ;;
29692 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29693 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29696 # This is an error.
29697 -*) as_fn_error
"unrecognized option: \`$1'
29698 Try \`$0 --help' for more information." ;;
29700 *) as_fn_append ac_config_targets
" $1"
29701 ac_need_defaults
=false
;;
29707 ac_configure_extra_args
=
29709 if $ac_cs_silent; then
29711 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29716 if \$ac_cs_recheck; then
29717 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29719 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29720 CONFIG_SHELL='$SHELL'
29721 export CONFIG_SHELL
29726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29731 ## Running $as_me. ##
29737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29741 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29742 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29749 # Handling of arguments.
29750 for ac_config_target
in $ac_config_targets
29752 case $ac_config_target in
29753 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29754 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29755 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29756 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29757 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29758 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29759 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29760 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29761 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29763 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29768 # If the user did not use the arguments to specify the items to instantiate,
29769 # then the envvar interface is used. Set only those that are not.
29770 # We use the long form for the default assignment because of an extremely
29771 # bizarre bug on SunOS 4.1.3.
29772 if $ac_need_defaults; then
29773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29775 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29779 # Have a temporary directory for convenience. Make it in the build tree
29780 # simply because there is no reason against having it here, and in addition,
29781 # creating and moving files from /tmp can sometimes cause problems.
29782 # Hook for its removal unless debugging.
29783 # Note that there is a small window in which the directory will not be cleaned:
29784 # after its creation but before its name has been assigned to `$tmp'.
29788 trap 'exit_status=$?
29789 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29791 trap 'as_fn_exit 1' 1 2 13 15
29793 # Create a (secure) tmp directory for tmp files.
29796 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29797 test -n "$tmp" && test -d "$tmp"
29800 tmp
=.
/conf$$
-$RANDOM
29801 (umask 077 && mkdir
"$tmp")
29802 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29804 # Set up the scripts for CONFIG_FILES section.
29805 # No need to generate them if there are no CONFIG_FILES.
29806 # This happens for instance with `./config.status config.h'.
29807 if test -n "$CONFIG_FILES"; then
29809 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29810 ac_cs_awk_getline
=:
29811 ac_cs_awk_pipe_init
=
29812 ac_cs_awk_read_file
='
29813 while ((getline aline < (F[key])) > 0)
29816 ac_cs_awk_pipe_fini
=
29818 ac_cs_awk_getline
=false
29819 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29820 ac_cs_awk_read_file
='
29822 print "cat " F[key] " &&"
29823 '$ac_cs_awk_pipe_init
29824 # The final `:' finishes the AND list.
29825 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29827 ac_cr
=`echo X | tr X '\015'`
29828 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29829 # But we know of no other shell where ac_cr would be empty at this
29830 # point, so we can use a bashism as a fallback.
29831 if test "x$ac_cr" = x
; then
29832 eval ac_cr
=\$
\'\\r
\'
29834 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29835 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29838 ac_cs_awk_cr
=$ac_cr
29841 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29844 # Create commands to substitute file output variables.
29846 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29847 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29848 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29851 } >conf$
$files.sh
&&
29852 . .
/conf$
$files.sh ||
29853 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29854 rm -f conf$
$files.sh
29857 echo "cat >conf$$subs.awk <<_ACEOF" &&
29858 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29860 } >conf$$subs.sh ||
29861 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29862 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29864 for ac_last_try in false false false false false :; do
29865 . ./conf$$subs.sh ||
29866 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29868 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29869 if test $ac_delim_n = $ac_delim_num; then
29871 elif $ac_last_try; then
29872 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29874 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29877 rm -f conf$$subs.sh
29879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29880 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29884 s/^/S["/; s
/!.
*/"]=/
29894 s/\(.\{148\}\).*/\1/
29896 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29901 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29908 s/\(.\{148\}\).*/\1/
29910 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29914 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29919 ' <conf$$subs.awk | sed '
29924 ' >>$CONFIG_STATUS || ac_write_fail=1
29925 rm -f conf$$subs.awk
29926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29928 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29929 for (key in S) S_is_set[key] = 1
29931 \$ac_cs_awk_pipe_init
29935 nfields = split(line, field, "@
")
29937 len = length(field[1])
29938 for (i = 2; i < nfields; i++) {
29940 keylen = length(key)
29941 if (S_is_set[key]) {
29943 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29944 len += length(value) + length(field[++i])
29949 if (nfields == 3 && !substed) {
29951 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29952 \$ac_cs_awk_read_file
29958 \$ac_cs_awk_pipe_fini
29961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29962 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29963 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29966 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29967 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29970 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29971 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29972 # trailing colons and then remove the whole line if VPATH becomes empty
29973 # (actually we leave an empty line to preserve line numbers).
29974 if test "x
$srcdir" = x.; then
29975 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29976 s/:*\$(srcdir):*/:/
29977 s/:*\${srcdir}:*/:/
29979 s/^\([^=]*=[ ]*\):*/\1/
29985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29986 fi # test -n "$CONFIG_FILES"
29988 # Set up the scripts for CONFIG_HEADERS section.
29989 # No need to generate them if there are no CONFIG_HEADERS.
29990 # This happens for instance with `./config.status Makefile'.
29991 if test -n "$CONFIG_HEADERS"; then
29992 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29996 # Transform confdefs.h into an awk script `defines.awk', embedded as
29997 # here-document in config.status, that substitutes the proper values into
29998 # config.h.in to produce config.h.
30000 # Create a delimiter string that does not exist in confdefs.h, to ease
30001 # handling of long lines.
30003 for ac_last_try in false false :; do
30004 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30005 if test -z "$ac_t"; then
30007 elif $ac_last_try; then
30008 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30010 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30014 # For the awk script, D is an array of macro values keyed by name,
30015 # likewise P contains macro parameters if any. Preserve backslash
30016 # newline sequences.
30018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30020 s/.\{148\}/&'"$ac_delim"'/g
30023 s/^[ ]*#[ ]*define[ ][ ]*/ /
30030 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30032 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30036 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30037 D["\
1"]=" \
3\\\\\\n
"\\/p
30039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30044 s/.\{148\}/&'"$ac_delim"'/g
30049 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30052 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30054 ' <confdefs.h | sed '
30055 s/'"$ac_delim"'/"\\\
30056 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30059 for (key in D) D_is_set[key] = 1
30062 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30064 split(line, arg, " ")
30065 if (arg[1] == "#") {
30069 defundef
= substr
(arg
[1], 2)
30072 split(mac1
, mac2
, "(") #)
30074 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30075 if (D_is_set
[macro
]) {
30076 # Preserve the white space surrounding the "#".
30077 print prefix
"define", macro P
[macro
] D
[macro
]
30080 # Replace #undef with comments. This is necessary, for example,
30081 # in the case of _POSIX_SOURCE, which is predefined and required
30082 # on some systems where configure will not decide to define it.
30083 if (defundef
== "undef") {
30084 print
"/*", prefix defundef
, macro
, "*/"
30092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30093 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30094 fi # test -n "$CONFIG_HEADERS"
30097 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30102 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30104 case $ac_mode$ac_tag in
30106 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30107 :[FH
]-) ac_tag
=-:-;;
30108 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30125 -) ac_f
="$tmp/stdin";;
30126 *) # Look for the file first in the build tree, then in the source tree
30127 # (if the path is not absolute). The absolute path cannot be DOS-style,
30128 # because $ac_f cannot contain `:'.
30132 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30134 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30136 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30137 as_fn_append ac_file_inputs
" '$ac_f'"
30140 # Let's still pretend it is `configure' which instantiates (i.e., don't
30141 # use $as_me), people would be surprised to read:
30142 # /* config.h. Generated by config.status. */
30143 configure_input
='Generated from '`
30144 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30146 if test x
"$ac_file" != x-
; then
30147 configure_input
="$ac_file. $configure_input"
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30149 $as_echo "$as_me: creating $ac_file" >&6;}
30151 # Neutralize special characters interpreted by sed in replacement strings.
30152 case $configure_input in #(
30153 *\
&* |
*\|
* |
*\\* )
30154 ac_sed_conf_input
=`$as_echo "$configure_input" |
30155 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30156 *) ac_sed_conf_input
=$configure_input;;
30160 *:-:* |
*:-) cat >"$tmp/stdin" \
30161 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30166 ac_dir
=`$as_dirname -- "$ac_file" ||
30167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30168 X"$ac_file" : 'X\(//\)[^/]' \| \
30169 X"$ac_file" : 'X\(//\)$' \| \
30170 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30171 $as_echo X"$ac_file" |
30172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30176 /^X\(\/\/\)[^/].*/{
30189 as_dir
="$ac_dir"; as_fn_mkdir_p
30193 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30195 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30196 # A ".." for each directory in $ac_dir_suffix.
30197 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30198 case $ac_top_builddir_sub in
30199 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30200 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30203 ac_abs_top_builddir
=$ac_pwd
30204 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30205 # for backward compatibility:
30206 ac_top_builddir
=$ac_top_build_prefix
30209 .
) # We are building in place.
30211 ac_top_srcdir
=$ac_top_builddir_sub
30212 ac_abs_top_srcdir
=$ac_pwd ;;
30213 [\\/]* | ?
:[\\/]* ) # Absolute name.
30214 ac_srcdir
=$srcdir$ac_dir_suffix;
30215 ac_top_srcdir
=$srcdir
30216 ac_abs_top_srcdir
=$srcdir ;;
30217 *) # Relative name.
30218 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30219 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30220 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30222 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30234 # If the template does not know about datarootdir, expand it.
30235 # FIXME: This hack should be removed a few years after 2.60.
30236 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30247 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30248 *datarootdir
*) ac_datarootdir_seen
=yes;;
30249 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30251 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30254 ac_datarootdir_hack='
30255 s&@datadir@&$datadir&g
30256 s&@docdir@&$docdir&g
30257 s&@infodir@&$infodir&g
30258 s&@localedir@&$localedir&g
30259 s&@mandir@&$mandir&g
30260 s&\\\${datarootdir}&$datarootdir&g' ;;
30264 # Neutralize VPATH when `$srcdir' = `.'.
30265 # Shell code in configure.ac might set extrasub.
30266 # FIXME: do we really want to maintain this feature?
30267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30268 ac_sed_extra="$ac_vpsub
30271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30273 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30274 s|@configure_input@|
$ac_sed_conf_input|
;t t
30275 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30276 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30277 s
&@srcdir@
&$ac_srcdir&;t t
30278 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30279 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30280 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30281 s
&@builddir@
&$ac_builddir&;t t
30282 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30283 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30284 $ac_datarootdir_hack
30286 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30287 if $ac_cs_awk_getline; then
30288 $AWK -f "$tmp/subs.
awk"
30290 $AWK -f "$tmp/subs.
awk" | $SHELL
30292 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30294 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30295 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30296 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30298 which seems to be undefined. Please make sure it is defined." >&5
30299 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30300 which seems to be undefined. Please make sure it is defined." >&2;}
30304 -) cat "$tmp/out" && rm -f "$tmp/out";;
30305 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30307 || as_fn_error "could not create $ac_file" "$LINENO" 5
30313 if test x"$ac_file" != x-; then
30315 $as_echo "/* $configure_input */" \
30316 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30317 } >"$tmp/config.h" \
30318 || as_fn_error "could not create $ac_file" "$LINENO" 5
30319 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30320 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30321 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30324 mv "$tmp/config.h" "$ac_file" \
30325 || as_fn_error "could not create $ac_file" "$LINENO" 5
30328 $as_echo "/* $configure_input */" \
30329 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30330 || as_fn_error "could not create -" "$LINENO" 5
30338 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30341 # Prefer the file from the source tree if names are identical.
30342 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30343 ac_source=$srcdir/$ac_source
30346 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30347 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30349 if test ! -r "$ac_source"; then
30350 as_fn_error "$ac_source: file not found" "$LINENO" 5
30354 # Try a relative symlink, then a hard link, then a copy.
30356 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30357 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30359 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30360 ln "$ac_source" "$ac_file" 2>/dev/null ||
30361 cp -p "$ac_source" "$ac_file" ||
30362 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30365 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30366 $as_echo "$as_me: executing $ac_file commands" >&6;}
30371 case $ac_file$ac_mode in
30372 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30374 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30375 for lang in $subdirs c-family common
30377 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30379 "as":F) chmod +x as ;;
30380 "collect-ld":F) chmod +x collect-ld ;;
30381 "nm":F) chmod +x nm ;;
30383 case ${CONFIG_HEADERS} in
30384 *auto-host.h:config.in*)
30387 # Make sure all the subdirs exist.
30388 for d in $subdirs doc build common c-family
30390 test -d $d || mkdir $d
30400 ac_clean_files=$ac_clean_files_save
30402 test $ac_write_fail = 0 ||
30403 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30406 # configure is writing to config.log, and then calls config.status.
30407 # config.status does its own redirection, appending to config.log.
30408 # Unfortunately, on DOS this fails, as config.log is still kept open
30409 # by configure, so config.status won't be able to
write to it
; its
30410 # output is simply discarded. So we exec the FD to /dev/null,
30411 # effectively closing config.log, so it can be properly (re)opened and
30412 # appended to by config.status. When coming back to configure, we
30413 # need to make the FD available again.
30414 if test "$no_create" != yes; then
30416 ac_config_status_args
=
30417 test "$silent" = yes &&
30418 ac_config_status_args
="$ac_config_status_args --quiet"
30420 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30422 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30423 # would make configure fail if this is the last instruction.
30424 $ac_cs_success || as_fn_exit $?
30426 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30428 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}