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 $as_echo "#define CHECKING_P 1" >>confdefs.h
7101 nocommon_flag
=-fno-common
7103 $as_echo "#define CHECKING_P 0" >>confdefs.h
7107 if test x
$ac_df_checking != x
; then
7109 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7112 if test x
$ac_assert_checking != x
; then
7114 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7117 if test x
$ac_gimple_checking != x
; then
7119 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7123 if test x
$ac_runtime_checking != x
; then
7125 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7128 if test x
$ac_tree_checking != x
; then
7130 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7134 if test x
$ac_types_checking != x
; then
7136 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7140 if test x
$ac_rtl_checking != x
; then
7142 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7145 if test x
$ac_rtlflag_checking != x
; then
7147 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7150 if test x
$ac_gc_checking != x
; then
7152 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7155 if test x
$ac_gc_always_collect != x
; then
7157 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7160 if test x
$ac_fold_checking != x
; then
7162 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7165 valgrind_path_defines
=
7168 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7169 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7177 # It is certainly possible that there's valgrind but no valgrind.h.
7178 # GCC relies on making annotations so we must have both.
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7180 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #include <valgrind/memcheck.h>
7184 #ifndef VALGRIND_DISCARD
7185 #error VALGRIND_DISCARD not defined
7188 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7189 gcc_cv_header_valgrind_memcheck_h
=yes
7191 gcc_cv_header_valgrind_memcheck_h
=no
7193 rm -f conftest.err conftest.
$ac_ext
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7195 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7197 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7200 #include <memcheck.h>
7201 #ifndef VALGRIND_DISCARD
7202 #error VALGRIND_DISCARD not defined
7205 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7206 gcc_cv_header_memcheck_h
=yes
7208 gcc_cv_header_memcheck_h
=no
7210 rm -f conftest.err conftest.
$ac_ext
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7212 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7213 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7215 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7218 if test $gcc_cv_header_memcheck_h = yes; then
7220 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7224 if test x
$ac_valgrind_checking != x
; then
7226 # Prepare PATH_SEPARATOR.
7227 # The user is always right.
7228 if test "${PATH_SEPARATOR+set}" != set; then
7229 echo "#! /bin/sh" >conf$$.sh
7230 echo "exit 0" >>conf$$.sh
7232 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7240 # Find out how to test for executable files. Don't use a zero-byte file,
7241 # as systems may use methods other than mode bits to determine executability.
7242 cat >conf$$.
file <<_ASEOF
7246 chmod +x conf$$.
file
7247 if test -x conf$$.
file >/dev
/null
2>&1; then
7248 ac_executable_p
="test -x"
7250 ac_executable_p
="test -f"
7254 # Extract the first word of "valgrind", so it can be a program name with args.
7255 set dummy valgrind
; ac_word
=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7261 case "$valgrind_path" in
7263 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7266 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7267 for ac_dir
in $PATH; do
7269 test -z "$ac_dir" && ac_dir
=.
7270 for ac_exec_ext
in '' $ac_executable_extensions; do
7271 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7272 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7273 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7283 valgrind_path
="$ac_cv_path_valgrind_path"
7284 if test -n "$valgrind_path"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7286 $as_echo "$valgrind_path" >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7292 if test "x$valgrind_path" = "x" \
7293 ||
(test $have_valgrind_h = no \
7294 && test $gcc_cv_header_memcheck_h = no \
7295 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7296 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7298 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7299 valgrind_command
="$valgrind_path -q"
7301 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7307 # Enable code coverage collection
7308 # Check whether --enable-coverage was given.
7309 if test "${enable_coverage+set}" = set; then :
7310 enableval
=$enable_coverage; case "${enableval}" in
7312 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7315 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7318 # a.k.a. --disable-coverage
7322 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7331 # Check whether --enable-gather-detailed-mem-stats was given.
7332 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7333 enableval
=$enable_gather_detailed_mem_stats;
7335 enable_gather_detailed_mem_stats
=no
7338 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7340 cat >>confdefs.h
<<_ACEOF
7341 #define GATHER_STATISTICS $gather_stats
7345 # Check whether --enable-valgrind-annotations was given.
7346 if test "${enable_valgrind_annotations+set}" = set; then :
7347 enableval
=$enable_valgrind_annotations;
7349 enable_valgrind_annotations
=no
7352 if test x
$enable_valgrind_annotations != xno \
7353 ||
test x
$ac_valgrind_checking != x
; then
7354 if (test $have_valgrind_h = no \
7355 && test $gcc_cv_header_memcheck_h = no \
7356 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7357 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7360 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7364 # -------------------------------
7365 # Miscenalleous configure options
7366 # -------------------------------
7370 # Check whether --with-stabs was given.
7371 if test "${with_stabs+set}" = set; then :
7372 withval
=$with_stabs; stabs
="$with_stabs"
7378 # Determine whether or not multilibs are enabled.
7379 # Check whether --enable-multilib was given.
7380 if test "${enable_multilib+set}" = set; then :
7381 enableval
=$enable_multilib;
7388 # Determine whether or not multiarch is enabled.
7389 # Check whether --enable-multiarch was given.
7390 if test "${enable_multiarch+set}" = set; then :
7391 enableval
=$enable_multiarch; case "${enableval}" in
7392 yes|no|auto
) enable_multiarch
=$enableval;;
7393 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7396 enable_multiarch
=auto
7399 if test x
${enable_multiarch} = xauto
; then
7400 if test x
${with_native_system_header_dir} != x
; then
7401 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7404 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7405 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7410 $as_echo_n "checking for multiarch configuration... " >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7413 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7415 # needed for setting the multiarch name for soft-float/hard-float ABIs
7419 # Enable __cxa_atexit for C++.
7420 # Check whether --enable-__cxa_atexit was given.
7421 if test "${enable___cxa_atexit+set}" = set; then :
7422 enableval
=$enable___cxa_atexit;
7426 # Enable C extension for decimal float if target supports it.
7428 # Check whether --enable-decimal-float was given.
7429 if test "${enable_decimal_float+set}" = set; then :
7430 enableval
=$enable_decimal_float;
7431 case $enable_decimal_float in
7432 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7433 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7434 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7440 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7441 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7442 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7443 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7444 enable_decimal_float
=yes
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7448 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7449 enable_decimal_float
=no
7456 # x86's use BID format instead of DPD
7457 case x
$enable_decimal_float in
7460 i?
86*-*-* | x86_64
*-*-*)
7461 enable_decimal_float
=bid
7464 enable_decimal_float
=dpd
7467 default_decimal_float
=$enable_decimal_float
7470 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7471 # dependency on libdecnumber.
7472 default_decimal_float
=dpd
7479 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7481 cat >>confdefs.h
<<_ACEOF
7482 #define ENABLE_DECIMAL_FLOAT $dfp
7486 # Use default_decimal_float for dependency.
7487 enable_decimal_float
=$default_decimal_float
7489 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7491 cat >>confdefs.h
<<_ACEOF
7492 #define ENABLE_DECIMAL_BID_FORMAT $bid
7496 # Enable C extension for fixed-point arithmetic.
7497 # Check whether --enable-fixed-point was given.
7498 if test "${enable_fixed_point+set}" = set; then :
7499 enableval
=$enable_fixed_point;
7504 enable_fixed_point
=yes
7508 enable_fixed_point
=yes
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7512 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7513 enable_fixed_point
=no
7521 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7523 cat >>confdefs.h
<<_ACEOF
7524 #define ENABLE_FIXED_POINT $fixedpoint
7529 # Pass with no value to take the default
7530 # Pass with a value to specify a thread package
7531 # Check whether --enable-threads was given.
7532 if test "${enable_threads+set}" = set; then :
7533 enableval
=$enable_threads;
7539 # Check whether --enable-tls was given.
7540 if test "${enable_tls+set}" = set; then :
7541 enableval
=$enable_tls;
7544 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7545 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7553 # Check whether --enable-objc-gc was given.
7554 if test "${enable_objc_gc+set}" = set; then :
7555 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7566 # Check whether --with-dwarf2 was given.
7567 if test "${with_dwarf2+set}" = set; then :
7568 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7574 # Check whether --enable-shared was given.
7575 if test "${enable_shared+set}" = set; then :
7576 enableval
=$enable_shared;
7577 case $enable_shared in
7581 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7582 for pkg
in $enableval; do
7583 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7598 # Check whether --with-specs was given.
7599 if test "${with_specs+set}" = set; then :
7600 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7610 # Check whether --with-pkgversion was given.
7611 if test "${with_pkgversion+set}" = set; then :
7612 withval
=$with_pkgversion; case "$withval" in
7613 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7615 *) PKGVERSION
="($withval) " ;;
7626 # Check whether --with-bugurl was given.
7627 if test "${with_bugurl+set}" = set; then :
7628 withval
=$with_bugurl; case "$withval" in
7629 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7632 *) BUGURL
="$withval"
7636 BUGURL
="http://gcc.gnu.org/bugs.html"
7646 REPORT_BUGS_TO
="<$BUGURL>"
7647 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7654 # Sanity check enable_languages in case someone does not run the toplevel
7655 # configure # script.
7656 # Check whether --enable-languages was given.
7657 if test "${enable_languages+set}" = set; then :
7658 enableval
=$enable_languages; case ,${enable_languages}, in
7660 # go safe -- we cannot be much sure without the toplevel
7662 # analysis of which target libs are present and usable
7666 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7671 enable_languages
=c
,${enable_languages}
7679 if test x
"$enable_as_accelerator_for" != x
; then
7681 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7683 enable_as_accelerator
=yes
7686 # In this case we expect offload compiler to be built as native, so we
7687 # need to rename the driver to avoid clashes with host's drivers.
7688 program_transform_name
="s&^&${target}-&" ;;
7690 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7691 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7692 accel_dir_suffix
=/accel
/${target_noncanonical}
7693 real_target_noncanonical
=${enable_as_accelerator_for}
7699 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7700 tgt
=`echo $tgt | sed 's/=.*//'`
7701 if test x
"$offload_targets" = x
; then
7702 offload_targets
=$tgt
7704 offload_targets
="$offload_targets,$tgt"
7708 cat >>confdefs.h
<<_ACEOF
7709 #define OFFLOAD_TARGETS "$offload_targets"
7712 if test x
"$offload_targets" != x
; then
7714 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7719 # Check whether --with-multilib-list was given.
7720 if test "${with_multilib_list+set}" = set; then :
7721 withval
=$with_multilib_list; :
7723 with_multilib_list
=default
7727 # -------------------------
7728 # Checks for other programs
7729 # -------------------------
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7732 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7734 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7735 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7736 $as_echo_n "(cached) " >&6
7738 cat >conftest.
make <<\_ACEOF
7741 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7744 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7746 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7748 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7752 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7754 $as_echo "yes" >&6; }
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 SET_MAKE
="MAKE=${MAKE-make}"
7763 # Find some useful tools
7764 for ac_prog
in gawk mawk nawk
awk
7766 # Extract the first word of "$ac_prog", so it can be a program name with args.
7767 set dummy
$ac_prog; ac_word
=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if test "${ac_cv_prog_AWK+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7773 if test -n "$AWK"; then
7774 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir
=.
7781 for ac_exec_ext
in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_prog_AWK
="$ac_prog"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 if test -n "$AWK"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7796 $as_echo "$AWK" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7803 test -n "$AWK" && break
7806 # We need awk to create options.c and options.h.
7807 # Bail out if it's missing.
7809 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7813 $as_echo_n "checking whether ln -s works... " >&6; }
7814 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7817 rm -f conftestdata_t
7818 echo >conftestdata_f
7819 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7821 gcc_cv_prog_LN_S
="ln -s"
7823 if ln conftestdata_f conftestdata_t
2>/dev
/null
7827 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7829 gcc_cv_prog_LN_S
="cp -p"
7835 rm -f conftestdata_f conftestdata_t
7838 LN_S
="$gcc_cv_prog_LN_S"
7839 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7841 $as_echo "yes" >&6; }
7843 if test "$gcc_cv_prog_LN_S" = "ln"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7845 $as_echo "no, using ln" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7848 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7853 $as_echo_n "checking whether ln works... " >&6; }
7854 if test "${acx_cv_prog_LN+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7857 rm -f conftestdata_t
7858 echo >conftestdata_f
7859 if ln conftestdata_f conftestdata_t
2>/dev
/null
7865 rm -f conftestdata_f conftestdata_t
7868 if test $acx_cv_prog_LN = no
; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7871 $as_echo "no, using $LN" >&6; }
7873 LN
="$acx_cv_prog_LN"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7875 $as_echo "yes" >&6; }
7878 if test -n "$ac_tool_prefix"; then
7879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7880 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7886 if test -n "$RANLIB"; then
7887 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7893 test -z "$as_dir" && as_dir
=.
7894 for ac_exec_ext
in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 RANLIB
=$ac_cv_prog_RANLIB
7907 if test -n "$RANLIB"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7909 $as_echo "$RANLIB" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7917 if test -z "$ac_cv_prog_RANLIB"; then
7918 ac_ct_RANLIB
=$RANLIB
7919 # Extract the first word of "ranlib", so it can be a program name with args.
7920 set dummy ranlib
; ac_word
=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7926 if test -n "$ac_ct_RANLIB"; then
7927 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir
=.
7934 for ac_exec_ext
in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7947 if test -n "$ac_ct_RANLIB"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7949 $as_echo "$ac_ct_RANLIB" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7955 if test "x$ac_ct_RANLIB" = x
; then
7958 case $cross_compiling:$ac_tool_warned in
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7962 ac_tool_warned
=yes ;;
7964 RANLIB
=$ac_ct_RANLIB
7967 RANLIB
="$ac_cv_prog_RANLIB"
7973 # Find a good install program. We prefer a C program (faster),
7974 # so one script is as good as another. But avoid the broken or
7975 # incompatible versions:
7976 # SysV /etc/install, /usr/sbin/install
7977 # SunOS /usr/etc/install
7978 # IRIX /sbin/install
7980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7982 # ./install, which can be erroneously created by make from ./install.sh.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7984 $as_echo_n "checking for a BSD compatible install... " >&6; }
7985 if test -z "$INSTALL"; then
7986 if test "${ac_cv_path_install+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7989 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7990 for ac_dir
in $PATH; do
7991 # Account for people who put trailing slashes in PATH elements.
7993 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7995 # OSF1 and SCO ODT 3.0 have their own names for install.
7996 for ac_prog
in ginstall scoinst
install; do
7997 if test -f $ac_dir/$ac_prog; then
7998 if test $ac_prog = install &&
7999 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8000 # AIX install. It has an incompatible calling convention.
8001 # OSF/1 installbsd also uses dspmsg, but is usable.
8004 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8015 if test "${ac_cv_path_install+set}" = set; then
8016 INSTALL
="$ac_cv_path_install"
8018 # As a last resort, use the slow shell script. We don't cache a
8019 # path for INSTALL within a source directory, because that will
8020 # break other packages using the cache if that directory is
8021 # removed, or if the path is relative.
8022 INSTALL
="$ac_install_sh"
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8026 $as_echo "$INSTALL" >&6; }
8028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8029 # It thinks the first close brace ends the variable substitution.
8030 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8032 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8035 # See if cmp has --ignore-initial.
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8037 $as_echo_n "checking for cmp's capabilities... " >&6; }
8038 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8043 gcc_cv_prog_cmp_skip
=slowcompare
8044 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8045 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8048 gcc_cv_prog_cmp_skip
=gnucompare
8051 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8052 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8053 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8056 gcc_cv_prog_cmp_skip
=fastcompare
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8064 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8065 make_compare_target
=$gcc_cv_prog_cmp_skip
8069 # See if we have the mktemp command.
8070 # Extract the first word of "mktemp", so it can be a program name with args.
8071 set dummy mktemp
; ac_word
=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8077 if test -n "$have_mktemp_command"; then
8078 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8084 test -z "$as_dir" && as_dir
=.
8085 for ac_exec_ext
in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_have_mktemp_command
="yes"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8098 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8099 if test -n "$have_mktemp_command"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8101 $as_echo "$have_mktemp_command" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8109 # See if makeinfo has been installed and is modern enough
8110 # that we can use it.
8112 # Extract the first word of "makeinfo", so it can be a program name with args.
8113 set dummy makeinfo
; ac_word
=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8119 if test -n "$MAKEINFO"; then
8120 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir
=.
8127 for ac_exec_ext
in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_MAKEINFO
="makeinfo"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 MAKEINFO
=$ac_cv_prog_MAKEINFO
8140 if test -n "$MAKEINFO"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8142 $as_echo "$MAKEINFO" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8149 if test -n "$MAKEINFO"; then
8150 # Found it, now check the version.
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8152 $as_echo_n "checking for modern makeinfo... " >&6; }
8153 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8156 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8157 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8159 case $ac_prog_version in
8160 '') gcc_cv_prog_makeinfo_modern
=no
;;
8161 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8162 *) gcc_cv_prog_makeinfo_modern
=no
;;
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8167 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8169 gcc_cv_prog_makeinfo_modern
=no
8171 if test $gcc_cv_prog_makeinfo_modern = no
; then
8172 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8175 if test $gcc_cv_prog_makeinfo_modern = no
; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8177 *** Makeinfo is missing or too old.
8178 *** Info documentation will not be built." >&5
8179 $as_echo "$as_me: WARNING:
8180 *** Makeinfo is missing or too old.
8181 *** Info documentation will not be built." >&2;}
8188 # Is pod2man recent enough to regenerate manpages?
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8190 $as_echo_n "checking for recent Pod::Man... " >&6; }
8191 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8193 $as_echo "yes" >&6; }
8194 GENERATED_MANPAGES
=generated-manpages
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8202 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8207 # Extract the first word of "$ac_prog", so it can be a program name with args.
8208 set dummy
$ac_prog; ac_word
=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_FLEX+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8214 if test -n "$FLEX"; then
8215 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir
=.
8222 for ac_exec_ext
in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_FLEX
="$ac_prog"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 FLEX
=$ac_cv_prog_FLEX
8235 if test -n "$FLEX"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8237 $as_echo "$FLEX" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8244 test -n "$FLEX" && break
8246 test -n "$FLEX" || FLEX
="$MISSING flex"
8250 for ac_prog
in bison
8252 # Extract the first word of "$ac_prog", so it can be a program name with args.
8253 set dummy
$ac_prog; ac_word
=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_BISON+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8259 if test -n "$BISON"; then
8260 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8266 test -z "$as_dir" && as_dir
=.
8267 for ac_exec_ext
in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_BISON
="$ac_prog"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 BISON
=$ac_cv_prog_BISON
8280 if test -n "$BISON"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8282 $as_echo "$BISON" >&6; }
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8289 test -n "$BISON" && break
8291 test -n "$BISON" || BISON
="$MISSING bison"
8294 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8295 # check for build == host before using them.
8298 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8299 && test -d ..
/binutils
; then
8300 NM
='${objdir}/../binutils/nm-new'
8302 # Extract the first word of "nm", so it can be a program name with args.
8303 set dummy nm
; ac_word
=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_NM+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8309 if test -n "$NM"; then
8310 ac_cv_prog_NM
="$NM" # Let the user override the test.
8312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8316 test -z "$as_dir" && as_dir
=.
8317 for ac_exec_ext
in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8331 if test -n "$NM"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8333 $as_echo "$NM" >&6; }
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8343 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8344 && test -d ..
/binutils
; then
8345 AR
='${objdir}/../binutils/ar'
8347 # Extract the first word of "ar", so it can be a program name with args.
8348 set dummy
ar; ac_word
=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if test "${ac_cv_prog_AR+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8354 if test -n "$AR"; then
8355 ac_cv_prog_AR
="$AR" # Let the user override the test.
8357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8361 test -z "$as_dir" && as_dir
=.
8362 for ac_exec_ext
in '' $ac_executable_extensions; do
8363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8376 if test -n "$AR"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8378 $as_echo "$AR" >&6; }
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8387 # The jit documentation looks better if built with sphinx, but can be
8388 # built with texinfo if sphinx is not available.
8389 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8390 # Extract the first word of "sphinx-build", so it can be a program name with args.
8391 set dummy sphinx-build
; ac_word
=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8397 if test -n "$doc_build_sys"; then
8398 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8404 test -z "$as_dir" && as_dir
=.
8405 for ac_exec_ext
in '' $ac_executable_extensions; do
8406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407 ac_cv_prog_doc_build_sys
="sphinx"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8418 doc_build_sys
=$ac_cv_prog_doc_build_sys
8419 if test -n "$doc_build_sys"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8421 $as_echo "$doc_build_sys" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 # --------------------
8430 # Checks for C headers
8431 # --------------------
8433 # Need to reject headers which give warnings, so that the -Werror bootstrap
8434 # works later. *sigh* This needs to come before all header checks.
8436 ac_c_preproc_warn_flag
=yes
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8439 $as_echo_n "checking for ANSI C header files... " >&6; }
8440 if test "${ac_cv_header_stdc+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8458 if ac_fn_cxx_try_compile
"$LINENO"; then :
8459 ac_cv_header_stdc
=yes
8461 ac_cv_header_stdc
=no
8463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8465 if test $ac_cv_header_stdc = yes; then
8466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8473 $EGREP "memchr" >/dev
/null
2>&1; then :
8476 ac_cv_header_stdc
=no
8482 if test $ac_cv_header_stdc = yes; then
8483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8490 $EGREP "free" >/dev
/null
2>&1; then :
8493 ac_cv_header_stdc
=no
8499 if test $ac_cv_header_stdc = yes; then
8500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8501 if test "$cross_compiling" = yes; then :
8504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8508 #if ((' ' & 0x0FF) == 0x020)
8509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8512 # define ISLOWER(c) \
8513 (('a' <= (c) && (c) <= 'i') \
8514 || ('j' <= (c) && (c) <= 'r') \
8515 || ('s' <= (c) && (c) <= 'z'))
8516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8524 for (i = 0; i < 256; i++)
8525 if (XOR (islower (i), ISLOWER (i))
8526 || toupper (i) != TOUPPER (i))
8531 if ac_fn_cxx_try_run
"$LINENO"; then :
8534 ac_cv_header_stdc
=no
8536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8543 $as_echo "$ac_cv_header_stdc" >&6; }
8544 if test $ac_cv_header_stdc = yes; then
8546 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8551 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8552 if test "${ac_cv_header_time+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <sys/types.h>
8558 #include <sys/time.h>
8564 if ((struct tm *) 0)
8570 if ac_fn_cxx_try_compile
"$LINENO"; then :
8571 ac_cv_header_time
=yes
8573 ac_cv_header_time
=no
8575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8578 $as_echo "$ac_cv_header_time" >&6; }
8579 if test $ac_cv_header_time = yes; then
8581 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8586 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8587 if test "${gcc_cv_header_string+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8593 #include <strings.h>
8602 if ac_fn_cxx_try_compile
"$LINENO"; then :
8603 gcc_cv_header_string
=yes
8605 gcc_cv_header_string
=no
8607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8610 $as_echo "$gcc_cv_header_string" >&6; }
8611 if test $gcc_cv_header_string = yes; then
8613 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8618 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8619 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <sys/types.h>
8625 #include <sys/wait.h>
8627 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8630 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8638 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8643 if ac_fn_cxx_try_compile
"$LINENO"; then :
8644 ac_cv_header_sys_wait_h
=yes
8646 ac_cv_header_sys_wait_h
=no
8648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8651 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8652 if test $ac_cv_header_sys_wait_h = yes; then
8654 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8659 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8660 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #include <sys/types.h>
8666 #include <termios.h>
8672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8673 $EGREP "yes" >/dev
/null
2>&1; then :
8674 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8676 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8682 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8684 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8686 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8687 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
8690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 #include <sys/types.h>
8693 #include <sys/ioctl.h>
8699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8700 $EGREP "yes" >/dev
/null
2>&1; then :
8701 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8703 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8709 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8711 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8713 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8718 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8719 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8720 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8721 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8723 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8724 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8725 eval as_val
=\$
$as_ac_Header
8726 if test "x$as_val" = x
""yes; then :
8727 cat >>confdefs.h
<<_ACEOF
8728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8735 # Check for thread headers.
8736 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8737 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8743 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8744 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8751 # These tests can't be done till we know if we have limits.h.
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8753 $as_echo_n "checking for CHAR_BIT... " >&6; }
8754 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
8757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 #ifdef HAVE_LIMITS_H
8766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8767 $EGREP "found" >/dev
/null
2>&1; then :
8768 gcc_cv_decl_char_bit
=yes
8770 gcc_cv_decl_char_bit
=no
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8777 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8778 if test $gcc_cv_decl_char_bit = no
; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8780 $as_echo_n "checking number of bits in a byte... " >&6; }
8781 if test "${gcc_cv_c_nbby+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8786 while test $i -lt 65; do
8787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8794 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8795 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8801 if ac_fn_cxx_try_compile
"$LINENO"; then :
8802 gcc_cv_c_nbby
=$i; break
8804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8807 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8811 $as_echo "$gcc_cv_c_nbby" >&6; }
8812 if test $gcc_cv_c_nbby = failed
; then
8813 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8816 cat >>confdefs.h
<<_ACEOF
8817 #define CHAR_BIT $gcc_cv_c_nbby
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8823 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8824 if test "${ac_cv_c_bigendian+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8827 ac_cv_c_bigendian
=unknown
8828 # See if we're dealing with a universal compiler.
8829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 #ifndef __APPLE_CC__
8832 not a universal capable compiler
8837 if ac_fn_cxx_try_compile
"$LINENO"; then :
8839 # Check for potential -arch flags. It is not universal unless
8840 # there are at least two -arch flags with different values.
8843 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8844 if test -n "$ac_prev"; then
8846 i?
86 | x86_64 | ppc | ppc64
)
8847 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8850 ac_cv_c_bigendian
=universal
8856 elif test "x$ac_word" = "x-arch"; then
8861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8862 if test $ac_cv_c_bigendian = unknown
; then
8863 # See if sys/param.h defines the BYTE_ORDER macro.
8864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #include <sys/types.h>
8867 #include <sys/param.h>
8872 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8873 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8882 if ac_fn_cxx_try_compile
"$LINENO"; then :
8883 # It does; now see whether it defined to BIG_ENDIAN or not.
8884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 #include <sys/types.h>
8887 #include <sys/param.h>
8892 #if BYTE_ORDER != BIG_ENDIAN
8900 if ac_fn_cxx_try_compile
"$LINENO"; then :
8901 ac_cv_c_bigendian
=yes
8903 ac_cv_c_bigendian
=no
8905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8909 if test $ac_cv_c_bigendian = unknown
; then
8910 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8918 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8926 if ac_fn_cxx_try_compile
"$LINENO"; then :
8927 # It does; now see whether it defined to _BIG_ENDIAN or not.
8928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8943 if ac_fn_cxx_try_compile
"$LINENO"; then :
8944 ac_cv_c_bigendian
=yes
8946 ac_cv_c_bigendian
=no
8948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8952 if test $ac_cv_c_bigendian = unknown
; then
8953 # Compile a test program.
8954 if test "$cross_compiling" = yes; then :
8955 # Try to guess by grepping values from an object file.
8956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 short int ascii_mm[] =
8959 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8960 short int ascii_ii[] =
8961 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8962 int use_ascii (int i) {
8963 return ascii_mm[i] + ascii_ii[i];
8965 short int ebcdic_ii[] =
8966 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8967 short int ebcdic_mm[] =
8968 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8969 int use_ebcdic (int i) {
8970 return ebcdic_mm[i] + ebcdic_ii[i];
8977 return use_ascii (foo) == use_ebcdic (foo);
8982 if ac_fn_cxx_try_compile
"$LINENO"; then :
8983 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8984 ac_cv_c_bigendian
=yes
8986 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8987 if test "$ac_cv_c_bigendian" = unknown
; then
8988 ac_cv_c_bigendian
=no
8990 # finding both strings is unlikely to happen, but who knows?
8991 ac_cv_c_bigendian
=unknown
8995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 $ac_includes_default
9004 /* Are we little or big endian? From Harbison&Steele. */
9008 char c[sizeof (long int)];
9011 return u.c[sizeof (long int) - 1] == 1;
9017 if ac_fn_cxx_try_run
"$LINENO"; then :
9018 ac_cv_c_bigendian
=no
9020 ac_cv_c_bigendian
=yes
9022 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9023 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9029 $as_echo "$ac_cv_c_bigendian" >&6; }
9030 case $ac_cv_c_bigendian in #(
9032 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9038 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9042 as_fn_error
"unknown endianness
9043 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9047 # ----------------------
9048 # Checks for C++ headers
9049 # ----------------------
9052 ac_cpp
='$CXXCPP $CPPFLAGS'
9053 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9054 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9055 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9057 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9058 if test -z "$CXXCPP"; then
9059 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9062 # Double quotes because CXXCPP needs to be expanded
9063 for CXXCPP
in "$CXX -E" "/lib/cpp"
9066 for ac_cxx_preproc_warn_flag
in '' yes
9068 # Use a header file that comes with gcc, so configuring glibc
9069 # with a fresh cross-compiler works.
9070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9071 # <limits.h> exists even on freestanding compilers.
9072 # On the NeXT, cc -E runs the code through the compiler's parser,
9073 # not just through cpp. "Syntax error" is here to catch this case.
9074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9077 # include <limits.h>
9079 # include <assert.h>
9083 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9086 # Broken: fails on valid input.
9089 rm -f conftest.err conftest.
$ac_ext
9091 # OK, works on sane cases. Now check whether nonexistent headers
9092 # can be detected and how.
9093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 #include <ac_nonexistent.h>
9097 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9098 # Broken: success on invalid input.
9101 # Passes both tests.
9105 rm -f conftest.err conftest.
$ac_ext
9108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9109 rm -f conftest.err conftest.
$ac_ext
9110 if $ac_preproc_ok; then :
9115 ac_cv_prog_CXXCPP
=$CXXCPP
9118 CXXCPP
=$ac_cv_prog_CXXCPP
9120 ac_cv_prog_CXXCPP
=$CXXCPP
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9123 $as_echo "$CXXCPP" >&6; }
9125 for ac_cxx_preproc_warn_flag
in '' yes
9127 # Use a header file that comes with gcc, so configuring glibc
9128 # with a fresh cross-compiler works.
9129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9130 # <limits.h> exists even on freestanding compilers.
9131 # On the NeXT, cc -E runs the code through the compiler's parser,
9132 # not just through cpp. "Syntax error" is here to catch this case.
9133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9136 # include <limits.h>
9138 # include <assert.h>
9142 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9145 # Broken: fails on valid input.
9148 rm -f conftest.err conftest.
$ac_ext
9150 # OK, works on sane cases. Now check whether nonexistent headers
9151 # can be detected and how.
9152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 #include <ac_nonexistent.h>
9156 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9157 # Broken: success on invalid input.
9160 # Passes both tests.
9164 rm -f conftest.err conftest.
$ac_ext
9167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9168 rm -f conftest.err conftest.
$ac_ext
9169 if $ac_preproc_ok; then :
9172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9175 See \`config.log' for more details." >&5
9176 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9177 See \`config.log' for more details." >&2;}; }
9181 ac_cpp
='$CXXCPP $CPPFLAGS'
9182 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9183 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9184 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9187 for ac_header
in unordered_map
9189 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9190 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9191 cat >>confdefs.h
<<_ACEOF
9192 #define HAVE_UNORDERED_MAP 1
9198 for ac_header
in tr1/unordered_map
9200 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9201 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9202 cat >>confdefs.h
<<_ACEOF
9203 #define HAVE_TR1_UNORDERED_MAP 1
9209 for ac_header
in ext
/hash_map
9211 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9212 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9213 cat >>confdefs.h
<<_ACEOF
9214 #define HAVE_EXT_HASH_MAP 1
9222 # Dependency checking.
9225 rm -rf .tst
2>/dev
/null
9226 mkdir .tst
2>/dev
/null
9227 if test -d .tst
; then
9232 rmdir .tst
2>/dev
/null
9234 DEPDIR
="${am__leading_dot}deps"
9236 ac_config_commands
="$ac_config_commands depdir"
9239 ac_config_commands
="$ac_config_commands gccdepdir"
9242 depcc
="$CXX" am_compiler_list
=
9244 am_depcomp
=$ac_aux_dir/depcomp
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9246 $as_echo_n "checking dependency style of $depcc... " >&6; }
9247 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9248 $as_echo_n "(cached) " >&6
9250 if test -f "$am_depcomp"; then
9251 # We make a subdir and do the tests there. Otherwise we can end up
9252 # making bogus files that we don't know about and never remove. For
9253 # instance it was reported that on HP-UX the gcc test will end up
9254 # making a dummy file named `D' -- because `-MD' means `put the output
9257 # Copy depcomp to subdir because otherwise we won't find it if we're
9258 # using a relative directory.
9259 cp "$am_depcomp" conftest.dir
9261 # We will build objects and dependencies in a subdirectory because
9262 # it helps to detect inapplicable dependency modes. For instance
9263 # both Tru64's cc and ICC support -MD to output dependencies as a
9264 # side effect of compilation, but ICC will put the dependencies in
9265 # the current directory while Tru64 will put them in the object
9269 am_cv_CXX_dependencies_compiler_type
=none
9270 if test "$am_compiler_list" = ""; then
9271 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9273 for depmode
in $am_compiler_list; do
9274 if test $depmode = none
; then break; fi
9276 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9277 # Setup a source with many dependencies, because some compilers
9278 # like to wrap large dependency lists on column 80 (with \), and
9279 # we should not choose a depcomp mode which is confused by this.
9281 # We need to recreate these files for each test, as the compiler may
9282 # overwrite some of them when testing with obscure command lines.
9283 # This happens at least with the AIX C compiler.
9285 for i
in 1 2 3 4 5 6; do
9286 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9287 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9288 # Solaris 8's {/usr,}/bin/sh.
9289 touch sub
/conftst
$i.h
9291 echo "include sub/conftest.Po" > confmf
9293 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9294 # mode. It turns out that the SunPro C++ compiler does not properly
9295 # handle `-M -o', and we need to detect this.
9296 depcmd
="depmode=$depmode \
9297 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9298 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9299 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9300 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9301 if env
$depcmd > conftest.err
2>&1 &&
9302 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9303 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9304 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9305 # icc doesn't choke on unknown options, it will just issue warnings
9306 # or remarks (even with -Werror). So we grep stderr for any message
9307 # that says an option was ignored or not supported.
9308 # When given -MP, icc 7.0 and 7.1 complain thusly:
9309 # icc: Command line warning: ignoring option '-M'; no argument required
9310 # The diagnosis changed in icc 8.0:
9311 # icc: Command line remark: option '-MP' not supported
9312 if (grep 'ignoring option' conftest.err ||
9313 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9314 am_cv_CXX_dependencies_compiler_type
=$depmode
9315 $as_echo "$as_me:$LINENO: success" >&5
9319 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9320 sed -e 's/^/| /' < conftest.err
>&5
9326 am_cv_CXX_dependencies_compiler_type
=none
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9331 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9332 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9333 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9334 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9344 # These libraries may be used by collect2.
9345 # We may need a special search path to get them linked.
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9347 $as_echo_n "checking for collect2 libraries... " >&6; }
9348 if test "${gcc_cv_collect2_libs+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9352 for libs
in '' -lld -lmld \
9353 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9354 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9360 /* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
9375 if ac_fn_cxx_try_link
"$LINENO"; then :
9376 gcc_cv_collect2_libs
="$libs"; break
9378 rm -f core conftest.err conftest.
$ac_objext \
9379 conftest
$ac_exeext conftest.
$ac_ext
9382 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9385 $as_echo "$gcc_cv_collect2_libs" >&6; }
9386 case $gcc_cv_collect2_libs in
9388 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9392 # When building Ada code on Alpha, we need exc_resume which is usually in
9393 # -lexc. So test for it.
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9397 $as_echo_n "checking for library containing exc_resume... " >&6; }
9398 if test "${ac_cv_search_exc_resume+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9401 ac_func_search_save_LIBS
=$LIBS
9402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9415 return exc_resume ();
9420 for ac_lib
in '' exc
; do
9421 if test -z "$ac_lib"; then
9422 ac_res
="none required"
9425 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9427 if ac_fn_cxx_try_link
"$LINENO"; then :
9428 ac_cv_search_exc_resume
=$ac_res
9430 rm -f core conftest.err conftest.
$ac_objext \
9432 if test "${ac_cv_search_exc_resume+set}" = set; then :
9436 if test "${ac_cv_search_exc_resume+set}" = set; then :
9439 ac_cv_search_exc_resume
=no
9442 LIBS
=$ac_func_search_save_LIBS
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9445 $as_echo "$ac_cv_search_exc_resume" >&6; }
9446 ac_res
=$ac_cv_search_exc_resume
9447 if test "$ac_res" != no
; then :
9448 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9456 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9460 $as_echo_n "checking for library containing kstat_open... " >&6; }
9461 if test "${ac_cv_search_kstat_open+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9464 ac_func_search_save_LIBS
=$LIBS
9465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9468 /* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
9478 return kstat_open ();
9483 for ac_lib
in '' kstat
; do
9484 if test -z "$ac_lib"; then
9485 ac_res
="none required"
9488 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9490 if ac_fn_cxx_try_link
"$LINENO"; then :
9491 ac_cv_search_kstat_open
=$ac_res
9493 rm -f core conftest.err conftest.
$ac_objext \
9495 if test "${ac_cv_search_kstat_open+set}" = set; then :
9499 if test "${ac_cv_search_kstat_open+set}" = set; then :
9502 ac_cv_search_kstat_open
=no
9505 LIBS
=$ac_func_search_save_LIBS
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9508 $as_echo "$ac_cv_search_kstat_open" >&6; }
9509 ac_res
=$ac_cv_search_kstat_open
9510 if test "$ac_res" != no
; then :
9511 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9515 EXTRA_GCC_LIBS
="$LIBS"
9519 # Some systems put ldexp and frexp in libm instead of libc; assume
9520 # they're both in the same place. jcf-dump needs them.
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9524 $as_echo_n "checking for library containing ldexp... " >&6; }
9525 if test "${ac_cv_search_ldexp+set}" = set; then :
9526 $as_echo_n "(cached) " >&6
9528 ac_func_search_save_LIBS
=$LIBS
9529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9532 /* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9547 for ac_lib
in '' m
; do
9548 if test -z "$ac_lib"; then
9549 ac_res
="none required"
9552 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9554 if ac_fn_cxx_try_link
"$LINENO"; then :
9555 ac_cv_search_ldexp
=$ac_res
9557 rm -f core conftest.err conftest.
$ac_objext \
9559 if test "${ac_cv_search_ldexp+set}" = set; then :
9563 if test "${ac_cv_search_ldexp+set}" = set; then :
9566 ac_cv_search_ldexp
=no
9569 LIBS
=$ac_func_search_save_LIBS
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9572 $as_echo "$ac_cv_search_ldexp" >&6; }
9573 ac_res
=$ac_cv_search_ldexp
9574 if test "$ac_res" != no
; then :
9575 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9583 # Use <inttypes.h> only if it exists,
9584 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9587 $as_echo_n "checking for inttypes.h... " >&6; }
9588 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 #define __STDC_FORMAT_MACROS
9594 #include <sys/types.h>
9595 #include <inttypes.h>
9607 if ac_fn_cxx_try_compile
"$LINENO"; then :
9608 gcc_cv_header_inttypes_h
=yes
9610 gcc_cv_header_inttypes_h
=no
9612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9616 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9617 if test $gcc_cv_header_inttypes_h = yes; then
9619 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9625 for ac_func
in times clock kill getrlimit setrlimit atoq \
9626 popen sysconf strsignal getrusage nl_langinfo \
9627 gettimeofday mbstowcs wcswidth mmap setlocale \
9628 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
9630 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9631 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9632 eval as_val
=\$
$as_ac_var
9633 if test "x$as_val" = x
""yes; then :
9634 cat >>confdefs.h
<<_ACEOF
9635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9642 if test x
$ac_cv_func_mbstowcs = xyes
; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9644 $as_echo_n "checking whether mbstowcs works... " >&6; }
9645 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9648 if test "$cross_compiling" = yes; then :
9649 gcc_cv_func_mbstowcs_works
=yes
9651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9660 if ac_fn_cxx_try_run
"$LINENO"; then :
9661 gcc_cv_func_mbstowcs_works
=yes
9663 gcc_cv_func_mbstowcs_works
=no
9665 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9666 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9671 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9672 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9674 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9679 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9680 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9684 cat >>confdefs.h
<<_ACEOF
9690 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9691 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9695 cat >>confdefs.h
<<_ACEOF
9696 #define caddr_t char *
9703 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9704 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9705 gcc_header_sys_mman_h
=yes
9707 gcc_header_sys_mman_h
=no
9710 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9711 if test "x$ac_cv_func_mmap" = x
""yes; then :
9717 if test "$gcc_header_sys_mman_h" != yes \
9718 ||
test "$gcc_func_mmap" != yes; then
9719 gcc_cv_func_mmap_file
=no
9720 gcc_cv_func_mmap_dev_zero
=no
9721 gcc_cv_func_mmap_anon
=no
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9724 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9725 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9726 $as_echo_n "(cached) " >&6
9728 # Add a system to this blacklist if
9729 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9730 # memory area containing the same data that you'd get if you applied
9731 # read() to the same fd. The only system known to have a problem here
9732 # is VMS, where text files have record structure.
9735 gcc_cv_func_mmap_file
=no
;;
9737 gcc_cv_func_mmap_file
=yes;;
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9741 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9743 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9744 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9747 # Add a system to this blacklist if it has mmap() but /dev/zero
9748 # does not exist, or if mmapping /dev/zero does not give anonymous
9749 # zeroed pages with both the following properties:
9750 # 1. If you map N consecutive pages in with one call, and then
9751 # unmap any subset of those pages, the pages that were not
9752 # explicitly unmapped remain accessible.
9753 # 2. If you map two adjacent blocks of memory and then unmap them
9754 # both at once, they must both go away.
9755 # Systems known to be in this category are Windows (all variants),
9758 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9759 gcc_cv_func_mmap_dev_zero
=no
;;
9761 gcc_cv_func_mmap_dev_zero
=yes;;
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9765 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9767 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9769 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9770 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 #include <sys/types.h>
9776 #include <sys/mman.h>
9779 #ifndef MAP_ANONYMOUS
9780 #define MAP_ANONYMOUS MAP_ANON
9786 int n = MAP_ANONYMOUS;
9791 if ac_fn_cxx_try_compile
"$LINENO"; then :
9792 gcc_cv_decl_map_anon
=yes
9794 gcc_cv_decl_map_anon
=no
9796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9799 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9801 if test $gcc_cv_decl_map_anon = no
; then
9802 gcc_cv_func_mmap_anon
=no
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9805 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9806 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9809 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9810 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9811 # doesn't give anonymous zeroed pages with the same properties listed
9812 # above for use of /dev/zero.
9813 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9815 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9816 gcc_cv_func_mmap_anon
=no
;;
9818 gcc_cv_func_mmap_anon
=yes;;
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9822 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9826 if test $gcc_cv_func_mmap_file = yes; then
9828 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9831 if test $gcc_cv_func_mmap_dev_zero = yes; then
9833 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9836 if test $gcc_cv_func_mmap_anon = yes; then
9838 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9845 # Under VMS, vfork works very differently than on Unix. The standard test
9846 # won't work, and it isn't easily adaptable. It makes more sense to
9848 ac_cv_func_vfork_works
=yes
9851 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9852 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9856 cat >>confdefs.h
<<_ACEOF
9862 for ac_header
in vfork.h
9864 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9865 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9866 cat >>confdefs.h
<<_ACEOF
9867 #define HAVE_VFORK_H 1
9873 for ac_func
in fork vfork
9875 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9876 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9877 eval as_val
=\$
$as_ac_var
9878 if test "x$as_val" = x
""yes; then :
9879 cat >>confdefs.h
<<_ACEOF
9880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9886 if test "x$ac_cv_func_fork" = xyes
; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9888 $as_echo_n "checking for working fork... " >&6; }
9889 if test "${ac_cv_func_fork_works+set}" = set; then :
9890 $as_echo_n "(cached) " >&6
9892 if test "$cross_compiling" = yes; then :
9893 ac_cv_func_fork_works
=cross
9895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 $ac_includes_default
9902 /* By Ruediger Kuhlmann. */
9909 if ac_fn_cxx_try_run
"$LINENO"; then :
9910 ac_cv_func_fork_works
=yes
9912 ac_cv_func_fork_works
=no
9914 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9915 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9920 $as_echo "$ac_cv_func_fork_works" >&6; }
9923 ac_cv_func_fork_works
=$ac_cv_func_fork
9925 if test "x$ac_cv_func_fork_works" = xcross
; then
9927 *-*-amigaos* |
*-*-msdosdjgpp*)
9928 # Override, as these systems have only a dummy fork() stub
9929 ac_cv_func_fork_works
=no
9932 ac_cv_func_fork_works
=yes
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9936 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9938 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9939 if test "x$ac_cv_func_vfork" = xyes
; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9941 $as_echo_n "checking for working vfork... " >&6; }
9942 if test "${ac_cv_func_vfork_works+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9945 if test "$cross_compiling" = yes; then :
9946 ac_cv_func_vfork_works
=cross
9948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950 /* Thanks to Paul Eggert for this test. */
9951 $ac_includes_default
9952 #include <sys/wait.h>
9956 /* On some sparc systems, changes by the child to local and incoming
9957 argument registers are propagated back to the parent. The compiler
9958 is told about this with #include <vfork.h>, but some compilers
9959 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9960 static variable whose address is put into a register that is
9961 clobbered by the vfork. */
9964 sparc_address_test (int arg)
9966 sparc_address_test (arg) int arg;
9987 pid_t parent = getpid ();
9990 sparc_address_test (0);
9995 /* Here is another test for sparc vfork register problems. This
9996 test uses lots of local variables, at least as many local
9997 variables as main has allocated so far including compiler
9998 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9999 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10000 reuse the register of parent for one of the local variables,
10001 since it will think that parent can't possibly be used any more
10002 in this routine. Assigning to the local variable will thus
10003 munge parent in the parent process. */
10005 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10006 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10007 /* Convince the compiler that p..p7 are live; otherwise, it might
10008 use the same hardware register for all 8 local variables. */
10009 if (p != p1 || p != p2 || p != p3 || p != p4
10010 || p != p5 || p != p6 || p != p7)
10013 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10014 from child file descriptors. If the child closes a descriptor
10015 before it execs or exits, this munges the parent's descriptor
10016 as well. Test for this by closing stdout in the child. */
10017 _exit(close(fileno(stdout)) != 0);
10022 while (wait(&status) != child)
10025 /* Was there some problem with vforking? */
10028 /* Did the child fail? (This shouldn't happen.) */
10031 /* Did the vfork/compiler bug occur? */
10032 || parent != getpid()
10034 /* Did the file descriptor bug occur? */
10035 || fstat(fileno(stdout), &st) != 0
10040 if ac_fn_cxx_try_run
"$LINENO"; then :
10041 ac_cv_func_vfork_works
=yes
10043 ac_cv_func_vfork_works
=no
10045 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10046 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10051 $as_echo "$ac_cv_func_vfork_works" >&6; }
10054 if test "x$ac_cv_func_fork_works" = xcross
; then
10055 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10057 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10060 if test "x$ac_cv_func_vfork_works" = xyes
; then
10062 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10066 $as_echo "#define vfork fork" >>confdefs.h
10069 if test "x$ac_cv_func_fork_works" = xyes
; then
10071 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10077 if test "X$prefix" = "XNONE"; then
10078 acl_final_prefix
="$ac_default_prefix"
10080 acl_final_prefix
="$prefix"
10082 if test "X$exec_prefix" = "XNONE"; then
10083 acl_final_exec_prefix
='${prefix}'
10085 acl_final_exec_prefix
="$exec_prefix"
10087 acl_save_prefix
="$prefix"
10088 prefix
="$acl_final_prefix"
10089 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10090 prefix
="$acl_save_prefix"
10093 # Check whether --with-gnu-ld was given.
10094 if test "${with_gnu_ld+set}" = set; then :
10095 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10100 # Prepare PATH_SEPARATOR.
10101 # The user is always right.
10102 if test "${PATH_SEPARATOR+set}" != set; then
10103 echo "#! /bin/sh" >conf$$.sh
10104 echo "exit 0" >>conf$$.sh
10106 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10114 if test "$GCC" = yes; then
10115 # Check if gcc -print-prog-name=ld gives a path.
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10117 $as_echo_n "checking for ld used by GCC... " >&6; }
10120 # gcc leaves a trailing carriage return which upsets mingw
10121 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10123 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10126 # Accept absolute paths.
10127 [\\/]* |
[A-Za-z
]:[\\/]*)
10128 re_direlt
='/[^/][^/]*/\.\./'
10129 # Canonicalize the path of ld
10130 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10131 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10132 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10134 test -z "$LD" && LD
="$ac_prog"
10137 # If it fails, then pretend we aren't using GCC.
10141 # If it is relative, then search for the first ld in PATH.
10142 with_gnu_ld
=unknown
10145 elif test "$with_gnu_ld" = yes; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10147 $as_echo_n "checking for GNU ld... " >&6; }
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10150 $as_echo_n "checking for non-GNU ld... " >&6; }
10152 if test "${acl_cv_path_LD+set}" = set; then :
10153 $as_echo_n "(cached) " >&6
10155 if test -z "$LD"; then
10156 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10157 for ac_dir
in $PATH; do
10158 test -z "$ac_dir" && ac_dir
=.
10159 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10160 acl_cv_path_LD
="$ac_dir/$ac_prog"
10161 # Check to see if the program is GNU ld. I'd rather use --version,
10162 # but apparently some GNU ld's only accept -v.
10163 # Break only if it was the GNU/non-GNU ld that we prefer.
10164 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10165 test "$with_gnu_ld" != no
&& break
10167 test "$with_gnu_ld" != yes && break
10173 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10177 LD
="$acl_cv_path_LD"
10178 if test -n "$LD"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10180 $as_echo "$LD" >&6; }
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10185 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10187 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10188 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10191 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10192 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10193 acl_cv_prog_gnu_ld
=yes
10195 acl_cv_prog_gnu_ld
=no
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10199 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10200 with_gnu_ld
=$acl_cv_prog_gnu_ld
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10205 $as_echo_n "checking for shared library run path origin... " >&6; }
10206 if test "${acl_cv_rpath+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10210 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10211 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10213 rm -f .
/conftest.sh
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10218 $as_echo "$acl_cv_rpath" >&6; }
10220 libext
="$acl_cv_libext"
10221 shlibext
="$acl_cv_shlibext"
10222 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10223 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10224 hardcode_direct
="$acl_cv_hardcode_direct"
10225 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10226 # Check whether --enable-rpath was given.
10227 if test "${enable_rpath+set}" = set; then :
10228 enableval
=$enable_rpath; :
10242 acl_save_prefix
="$prefix"
10243 prefix
="$acl_final_prefix"
10244 acl_save_exec_prefix
="$exec_prefix"
10245 exec_prefix
="$acl_final_exec_prefix"
10247 eval additional_includedir
=\"$includedir\"
10248 eval additional_libdir
=\"$libdir\"
10250 exec_prefix
="$acl_save_exec_prefix"
10251 prefix
="$acl_save_prefix"
10254 # Check whether --with-libiconv-prefix was given.
10255 if test "${with_libiconv_prefix+set}" = set; then :
10256 withval
=$with_libiconv_prefix;
10257 if test "X$withval" = "Xno"; then
10260 if test "X$withval" = "X"; then
10262 acl_save_prefix
="$prefix"
10263 prefix
="$acl_final_prefix"
10264 acl_save_exec_prefix
="$exec_prefix"
10265 exec_prefix
="$acl_final_exec_prefix"
10267 eval additional_includedir
=\"$includedir\"
10268 eval additional_libdir
=\"$libdir\"
10270 exec_prefix
="$acl_save_exec_prefix"
10271 prefix
="$acl_save_prefix"
10274 additional_includedir
="$withval/include"
10275 additional_libdir
="$withval/lib"
10286 names_already_handled
=
10287 names_next_round
='iconv '
10288 while test -n "$names_next_round"; do
10289 names_this_round
="$names_next_round"
10291 for name
in $names_this_round; do
10293 for n
in $names_already_handled; do
10294 if test "$n" = "$name"; then
10295 already_handled
=yes
10299 if test -z "$already_handled"; then
10300 names_already_handled
="$names_already_handled $name"
10301 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10302 eval value
=\"\
$HAVE_LIB$uppername\"
10303 if test -n "$value"; then
10304 if test "$value" = yes; then
10305 eval value
=\"\
$LIB$uppername\"
10306 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10307 eval value
=\"\
$LTLIB$uppername\"
10308 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10317 if test $use_additional = yes; then
10318 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10319 found_dir
="$additional_libdir"
10320 found_so
="$additional_libdir/lib$name.$shlibext"
10321 if test -f "$additional_libdir/lib$name.la"; then
10322 found_la
="$additional_libdir/lib$name.la"
10325 if test -f "$additional_libdir/lib$name.$libext"; then
10326 found_dir
="$additional_libdir"
10327 found_a
="$additional_libdir/lib$name.$libext"
10328 if test -f "$additional_libdir/lib$name.la"; then
10329 found_la
="$additional_libdir/lib$name.la"
10334 if test "X$found_dir" = "X"; then
10335 for x
in $LDFLAGS $LTLIBICONV; do
10337 acl_save_prefix
="$prefix"
10338 prefix
="$acl_final_prefix"
10339 acl_save_exec_prefix
="$exec_prefix"
10340 exec_prefix
="$acl_final_exec_prefix"
10342 exec_prefix
="$acl_save_exec_prefix"
10343 prefix
="$acl_save_prefix"
10347 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10348 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10350 found_so
="$dir/lib$name.$shlibext"
10351 if test -f "$dir/lib$name.la"; then
10352 found_la
="$dir/lib$name.la"
10355 if test -f "$dir/lib$name.$libext"; then
10357 found_a
="$dir/lib$name.$libext"
10358 if test -f "$dir/lib$name.la"; then
10359 found_la
="$dir/lib$name.la"
10365 if test "X$found_dir" != "X"; then
10370 if test "X$found_dir" != "X"; then
10371 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10372 if test "X$found_so" != "X"; then
10373 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10374 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10377 for x
in $ltrpathdirs; do
10378 if test "X$x" = "X$found_dir"; then
10383 if test -z "$haveit"; then
10384 ltrpathdirs
="$ltrpathdirs $found_dir"
10386 if test "$hardcode_direct" = yes; then
10387 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10389 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10390 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10392 for x
in $rpathdirs; do
10393 if test "X$x" = "X$found_dir"; then
10398 if test -z "$haveit"; then
10399 rpathdirs
="$rpathdirs $found_dir"
10403 for x
in $LDFLAGS $LIBICONV; do
10405 acl_save_prefix
="$prefix"
10406 prefix
="$acl_final_prefix"
10407 acl_save_exec_prefix
="$exec_prefix"
10408 exec_prefix
="$acl_final_exec_prefix"
10410 exec_prefix
="$acl_save_exec_prefix"
10411 prefix
="$acl_save_prefix"
10413 if test "X$x" = "X-L$found_dir"; then
10418 if test -z "$haveit"; then
10419 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10421 if test "$hardcode_minus_L" != no
; then
10422 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10424 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10430 if test "X$found_a" != "X"; then
10431 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10433 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10436 additional_includedir
=
10437 case "$found_dir" in
10439 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10440 additional_includedir
="$basedir/include"
10443 if test "X$additional_includedir" != "X"; then
10444 if test "X$additional_includedir" != "X/usr/include"; then
10446 if test "X$additional_includedir" = "X/usr/local/include"; then
10447 if test -n "$GCC"; then
10449 linux
*) haveit
=yes;;
10453 if test -z "$haveit"; then
10454 for x
in $CPPFLAGS $INCICONV; do
10456 acl_save_prefix
="$prefix"
10457 prefix
="$acl_final_prefix"
10458 acl_save_exec_prefix
="$exec_prefix"
10459 exec_prefix
="$acl_final_exec_prefix"
10461 exec_prefix
="$acl_save_exec_prefix"
10462 prefix
="$acl_save_prefix"
10464 if test "X$x" = "X-I$additional_includedir"; then
10469 if test -z "$haveit"; then
10470 if test -d "$additional_includedir"; then
10471 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10477 if test -n "$found_la"; then
10478 save_libdir
="$libdir"
10479 case "$found_la" in
10480 */* |
*\\*) .
"$found_la" ;;
10481 *) .
"./$found_la" ;;
10483 libdir
="$save_libdir"
10484 for dep
in $dependency_libs; do
10487 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10488 if test "X$additional_libdir" != "X/usr/lib"; then
10490 if test "X$additional_libdir" = "X/usr/local/lib"; then
10491 if test -n "$GCC"; then
10493 linux
*) haveit
=yes;;
10497 if test -z "$haveit"; then
10499 for x
in $LDFLAGS $LIBICONV; do
10501 acl_save_prefix
="$prefix"
10502 prefix
="$acl_final_prefix"
10503 acl_save_exec_prefix
="$exec_prefix"
10504 exec_prefix
="$acl_final_exec_prefix"
10506 exec_prefix
="$acl_save_exec_prefix"
10507 prefix
="$acl_save_prefix"
10509 if test "X$x" = "X-L$additional_libdir"; then
10514 if test -z "$haveit"; then
10515 if test -d "$additional_libdir"; then
10516 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10520 for x
in $LDFLAGS $LTLIBICONV; do
10522 acl_save_prefix
="$prefix"
10523 prefix
="$acl_final_prefix"
10524 acl_save_exec_prefix
="$exec_prefix"
10525 exec_prefix
="$acl_final_exec_prefix"
10527 exec_prefix
="$acl_save_exec_prefix"
10528 prefix
="$acl_save_prefix"
10530 if test "X$x" = "X-L$additional_libdir"; then
10535 if test -z "$haveit"; then
10536 if test -d "$additional_libdir"; then
10537 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10544 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10545 if test "$enable_rpath" != no
; then
10547 for x
in $rpathdirs; do
10548 if test "X$x" = "X$dir"; then
10553 if test -z "$haveit"; then
10554 rpathdirs
="$rpathdirs $dir"
10557 for x
in $ltrpathdirs; do
10558 if test "X$x" = "X$dir"; then
10563 if test -z "$haveit"; then
10564 ltrpathdirs
="$ltrpathdirs $dir"
10569 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10572 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10575 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10576 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10582 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10583 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10589 if test "X$rpathdirs" != "X"; then
10590 if test -n "$hardcode_libdir_separator"; then
10592 for found_dir
in $rpathdirs; do
10593 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10595 acl_save_libdir
="$libdir"
10597 eval flag
=\"$hardcode_libdir_flag_spec\"
10598 libdir
="$acl_save_libdir"
10599 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10601 for found_dir
in $rpathdirs; do
10602 acl_save_libdir
="$libdir"
10603 libdir
="$found_dir"
10604 eval flag
=\"$hardcode_libdir_flag_spec\"
10605 libdir
="$acl_save_libdir"
10606 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10610 if test "X$ltrpathdirs" != "X"; then
10611 for found_dir
in $ltrpathdirs; do
10612 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10623 $as_echo_n "checking for iconv... " >&6; }
10624 if test "${am_cv_func_iconv+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10628 am_cv_func_iconv
="no, consider installing GNU libiconv"
10630 am_save_CPPFLAGS
="$CPPFLAGS"
10631 CPPFLAGS
="$CPPFLAGS $INCICONV"
10632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 #include <stdlib.h>
10639 iconv_t cd = iconv_open("","");
10640 iconv(cd,NULL,NULL,NULL,NULL);
10646 if ac_fn_cxx_try_link
"$LINENO"; then :
10647 am_cv_func_iconv
=yes
10649 rm -f core conftest.err conftest.
$ac_objext \
10650 conftest
$ac_exeext conftest.
$ac_ext
10651 CPPFLAGS
="$am_save_CPPFLAGS"
10653 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10654 for _libs
in .libs _libs
; do
10655 am_save_CPPFLAGS
="$CPPFLAGS"
10656 am_save_LIBS
="$LIBS"
10657 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10658 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 #include <stdlib.h>
10666 iconv_t cd = iconv_open("","");
10667 iconv(cd,NULL,NULL,NULL,NULL);
10673 if ac_fn_cxx_try_link
"$LINENO"; then :
10674 INCICONV
="-I../libiconv/include"
10675 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10676 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10677 am_cv_lib_iconv
=yes
10678 am_cv_func_iconv
=yes
10680 rm -f core conftest.err conftest.
$ac_objext \
10681 conftest
$ac_exeext conftest.
$ac_ext
10682 CPPFLAGS
="$am_save_CPPFLAGS"
10683 LIBS
="$am_save_LIBS"
10684 if test "$am_cv_func_iconv" = "yes"; then
10690 if test "$am_cv_func_iconv" != yes; then
10691 am_save_CPPFLAGS
="$CPPFLAGS"
10692 am_save_LIBS
="$LIBS"
10693 CPPFLAGS
="$LIBS $INCICONV"
10694 LIBS
="$LIBS $LIBICONV"
10695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 #include <stdlib.h>
10702 iconv_t cd = iconv_open("","");
10703 iconv(cd,NULL,NULL,NULL,NULL);
10709 if ac_fn_cxx_try_link
"$LINENO"; then :
10710 am_cv_lib_iconv
=yes
10711 am_cv_func_iconv
=yes
10713 rm -f core conftest.err conftest.
$ac_objext \
10714 conftest
$ac_exeext conftest.
$ac_ext
10715 CPPFLAGS
="$am_save_CPPFLAGS"
10716 LIBS
="$am_save_LIBS"
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10721 $as_echo "$am_cv_func_iconv" >&6; }
10722 if test "$am_cv_func_iconv" = yes; then
10724 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10727 if test "$am_cv_lib_iconv" = yes; then
10729 for element
in $INCICONV; do
10731 for x
in $CPPFLAGS; do
10733 acl_save_prefix
="$prefix"
10734 prefix
="$acl_final_prefix"
10735 acl_save_exec_prefix
="$exec_prefix"
10736 exec_prefix
="$acl_final_exec_prefix"
10738 exec_prefix
="$acl_save_exec_prefix"
10739 prefix
="$acl_save_prefix"
10741 if test "X$x" = "X$element"; then
10746 if test -z "$haveit"; then
10747 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10752 $as_echo_n "checking how to link with libiconv... " >&6; }
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10754 $as_echo "$LIBICONV" >&6; }
10762 if test "$am_cv_func_iconv" = yes; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10764 $as_echo_n "checking for iconv declaration... " >&6; }
10765 if test "${am_cv_proto_iconv+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10772 #include <stdlib.h>
10778 #if defined(__STDC__) || defined(__cplusplus)
10779 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10792 if ac_fn_cxx_try_compile
"$LINENO"; then :
10793 am_cv_proto_iconv_arg1
=""
10795 am_cv_proto_iconv_arg1
="const"
10797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10798 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);"
10801 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10803 }$am_cv_proto_iconv" >&5
10805 }$am_cv_proto_iconv" >&6; }
10807 cat >>confdefs.h
<<_ACEOF
10808 #define ICONV_CONST $am_cv_proto_iconv_arg1
10814 # Until we have in-tree GNU iconv:
10816 if test -f "$LTLIBICONV"; then
10817 LIBICONV_DEP
=$LTLIBICONV
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10823 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10824 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 #include <locale.h>
10838 if ac_fn_cxx_try_link
"$LINENO"; then :
10839 am_cv_val_LC_MESSAGES
=yes
10841 am_cv_val_LC_MESSAGES
=no
10843 rm -f core conftest.err conftest.
$ac_objext \
10844 conftest
$ac_exeext conftest.
$ac_ext
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10847 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10848 if test $am_cv_val_LC_MESSAGES = yes; then
10850 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10857 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10858 if test "${am_cv_langinfo_codeset+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863 #include <langinfo.h>
10867 char* cs = nl_langinfo(CODESET);
10872 if ac_fn_cxx_try_link
"$LINENO"; then :
10873 am_cv_langinfo_codeset
=yes
10875 am_cv_langinfo_codeset
=no
10877 rm -f core conftest.err conftest.
$ac_objext \
10878 conftest
$ac_exeext conftest.
$ac_ext
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10882 $as_echo "$am_cv_langinfo_codeset" >&6; }
10883 if test $am_cv_langinfo_codeset = yes; then
10885 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10890 # We will need to find libiberty.h and ansidecl.h
10891 saved_CFLAGS
="$CFLAGS"
10892 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10893 saved_CXXFLAGS
="$CXXFLAGS"
10894 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10896 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10897 # normal autoconf function for these. But force definition of
10898 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10899 # basename handling in libiberty.h.
10900 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10901 #undef HAVE_DECL_BASENAME
10902 #define HAVE_DECL_BASENAME 1
10903 #include \"ansidecl.h\"
10904 #include \"system.h\"
10906 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10912 cat >>confdefs.h
<<_ACEOF
10913 #define HAVE_DECL_BASENAME $ac_have_decl
10915 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10916 #undef HAVE_DECL_BASENAME
10917 #define HAVE_DECL_BASENAME 1
10918 #include \"ansidecl.h\"
10919 #include \"system.h\"
10921 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10927 cat >>confdefs.h
<<_ACEOF
10928 #define HAVE_DECL_STRSTR $ac_have_decl
10932 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10933 madvise stpcpy strnlen strsignal strverscmp \
10934 strtol strtoul strtoll strtoull setenv unsetenv \
10935 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10936 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
10938 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10940 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10941 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10942 $as_echo_n "(cached) " >&6
10944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 #define $ac_tr_decl 1
10949 #include "ansidecl.h"
10950 #include "system.h"
10956 char *(*pfn) = (char *(*)) $ac_func ;
10962 if ac_fn_cxx_try_compile
"$LINENO"; then :
10963 eval "gcc_cv_have_decl_$ac_func=yes"
10965 eval "gcc_cv_have_decl_$ac_func=no"
10967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10970 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10973 #define $ac_tr_decl 1
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10979 #define $ac_tr_decl 0
10987 for ac_func
in getrlimit setrlimit getrusage
10989 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10991 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10992 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10993 $as_echo_n "(cached) " >&6
10995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 #define $ac_tr_decl 1
11000 #include "ansidecl.h"
11001 #include "system.h"
11002 #ifdef HAVE_SYS_RESOURCE_H
11003 #include <sys/resource.h>
11011 char *(*pfn) = (char *(*)) $ac_func ;
11017 if ac_fn_cxx_try_compile
"$LINENO"; then :
11018 eval "gcc_cv_have_decl_$ac_func=yes"
11020 eval "gcc_cv_have_decl_$ac_func=no"
11022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11025 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11028 #define $ac_tr_decl 1
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11034 #define $ac_tr_decl 0
11042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 #include "ansidecl.h"
11046 #include "system.h"
11047 #ifdef HAVE_SYS_RESOURCE_H
11048 #include <sys/resource.h>
11059 if ac_fn_cxx_try_compile
"$LINENO"; then :
11063 $as_echo "#define rlim_t long" >>confdefs.h
11066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11068 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11069 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11070 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11071 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11072 for ac_func
in ldgetname
11074 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11076 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11077 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11078 $as_echo_n "(cached) " >&6
11080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11083 #define $ac_tr_decl 1
11085 #include "ansidecl.h"
11086 #include "system.h"
11087 #ifdef HAVE_LDFCN_H
11098 char *(*pfn) = (char *(*)) $ac_func ;
11104 if ac_fn_cxx_try_compile
"$LINENO"; then :
11105 eval "gcc_cv_have_decl_$ac_func=yes"
11107 eval "gcc_cv_have_decl_$ac_func=no"
11109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11112 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11114 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11115 #define $ac_tr_decl 1
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11121 #define $ac_tr_decl 0
11129 for ac_func
in times
11131 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11133 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11134 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11135 $as_echo_n "(cached) " >&6
11137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11140 #define $ac_tr_decl 1
11142 #include "ansidecl.h"
11143 #include "system.h"
11144 #ifdef HAVE_SYS_TIMES_H
11145 #include <sys/times.h>
11153 char *(*pfn) = (char *(*)) $ac_func ;
11159 if ac_fn_cxx_try_compile
"$LINENO"; then :
11160 eval "gcc_cv_have_decl_$ac_func=yes"
11162 eval "gcc_cv_have_decl_$ac_func=no"
11164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11167 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11170 #define $ac_tr_decl 1
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11176 #define $ac_tr_decl 0
11184 for ac_func
in sigaltstack
11186 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11188 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11189 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11190 $as_echo_n "(cached) " >&6
11192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11195 #define $ac_tr_decl 1
11197 #include "ansidecl.h"
11198 #include "system.h"
11199 #include <signal.h>
11206 char *(*pfn) = (char *(*)) $ac_func ;
11212 if ac_fn_cxx_try_compile
"$LINENO"; then :
11213 eval "gcc_cv_have_decl_$ac_func=yes"
11215 eval "gcc_cv_have_decl_$ac_func=no"
11217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11220 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11223 #define $ac_tr_decl 1
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11229 #define $ac_tr_decl 0
11237 # More time-related stuff.
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11239 $as_echo_n "checking for struct tms... " >&6; }
11240 if test "${ac_cv_struct_tms+set}" = set; then :
11241 $as_echo_n "(cached) " >&6
11244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 #include "ansidecl.h"
11248 #include "system.h"
11249 #ifdef HAVE_SYS_TIMES_H
11250 #include <sys/times.h>
11261 if ac_fn_cxx_try_compile
"$LINENO"; then :
11262 ac_cv_struct_tms
=yes
11264 ac_cv_struct_tms
=no
11266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11269 $as_echo "$ac_cv_struct_tms" >&6; }
11270 if test $ac_cv_struct_tms = yes; then
11272 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11276 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11277 # revisit after autoconf 2.50.
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11279 $as_echo_n "checking for clock_t... " >&6; }
11280 if test "${gcc_cv_type_clock_t+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11287 #include "ansidecl.h"
11288 #include "system.h"
11298 if ac_fn_cxx_try_compile
"$LINENO"; then :
11299 gcc_cv_type_clock_t
=yes
11301 gcc_cv_type_clock_t
=no
11303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11306 $as_echo "$gcc_cv_type_clock_t" >&6; }
11307 if test $gcc_cv_type_clock_t = yes; then
11309 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11313 # Check if F_SETLKW is supported by fcntl.
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11315 $as_echo_n "checking for F_SETLKW... " >&6; }
11316 if test "${ac_cv_f_setlkw+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11333 return fcntl (1, F_SETLKW, &fl);
11338 if ac_fn_cxx_try_compile
"$LINENO"; then :
11343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11346 $as_echo "$ac_cv_f_setlkw" >&6; }
11347 if test $ac_cv_f_setlkw = yes; then
11349 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11353 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11354 CFLAGS
="$saved_CFLAGS"
11355 CXXFLAGS
="$saved_CXXFLAGS"
11357 # mkdir takes a single argument on some systems.
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11359 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11360 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11366 #include <sys/types.h>
11367 #ifdef HAVE_SYS_STAT_H
11368 # include <sys/stat.h>
11370 #ifdef HAVE_UNISTD_H
11371 # include <unistd.h>
11373 #ifdef HAVE_DIRECT_H
11374 # include <direct.h>
11384 if ac_fn_cxx_try_compile
"$LINENO"; then :
11385 gcc_cv_mkdir_takes_one_arg
=no
11387 gcc_cv_mkdir_takes_one_arg
=yes
11389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11392 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11393 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11395 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11406 # With Setjmp/Longjmp based exception handling.
11407 # Check whether --enable-sjlj-exceptions was given.
11408 if test "${enable_sjlj_exceptions+set}" = set; then :
11409 enableval
=$enable_sjlj_exceptions; case $target in
11411 if test $enableval != yes; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11413 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11418 force_sjlj_exceptions
=yes
11422 force_sjlj_exceptions
=yes
11426 force_sjlj_exceptions
=yes
11430 force_sjlj_exceptions
=no
11435 if test $force_sjlj_exceptions = yes; then
11436 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11438 cat >>confdefs.h
<<_ACEOF
11439 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11444 # --------------------------------------------------------
11445 # Build, host, and target specific configuration fragments
11446 # --------------------------------------------------------
11448 # Collect build-machine-specific information.
11449 .
${srcdir}/config.build
11451 # Collect host-machine-specific information.
11452 .
${srcdir}/config.
host
11456 # Collect target-machine-specific information.
11457 .
${srcdir}/config.gcc
11459 extra_objs
="${host_extra_objs} ${extra_objs}"
11460 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11462 # Default the target-machine variables that were not explicitly set.
11463 if test x
"$tm_file" = x
11464 then tm_file
=$cpu_type/$cpu_type.h
; fi
11466 if test x
"$extra_headers" = x
11467 then extra_headers
=; fi
11469 if test x
$md_file = x
11470 then md_file
=$cpu_type/$cpu_type.md
; fi
11472 if test x
$out_file = x
11473 then out_file
=$cpu_type/$cpu_type.c
; fi
11475 if test x
"$tmake_file" = x
11476 then tmake_file
=$cpu_type/t-
$cpu_type
11479 # Support --enable-initfini-array.
11480 if test x
$enable_initfini_array != xno
; then
11481 tm_file
="${tm_file} initfini-array.h"
11484 if test x
"$dwarf2" = xyes
11485 then tm_file
="$tm_file tm-dwarf2.h"
11488 # Say what files are being used for the output code and MD file.
11489 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11490 echo "Using \`$srcdir/config/$md_file' as machine description file."
11492 # If any of the xm_file variables contain nonexistent files, warn
11493 # about them and drop them.
11496 for x
in $build_xm_file; do
11497 if test -f $srcdir/config
/$x
11499 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11500 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11503 build_xm_file
="$bx"
11506 for x
in $host_xm_file; do
11507 if test -f $srcdir/config
/$x
11509 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11510 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11516 for x
in $xm_file; do
11517 if test -f $srcdir/config
/$x
11519 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11520 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11526 for f
in $tm_file; do
11529 if test $count = ax
; then
11530 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11532 echo "Using the following target machine macro files:"
11533 for f
in $tm_file; do
11534 echo " $srcdir/config/$f"
11538 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11540 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11544 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11546 cat >>confdefs.h
<<_ACEOF
11547 #define HAVE_GNU_LD $gnu_ld_bool
11551 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11553 cat >>confdefs.h
<<_ACEOF
11554 #define HAVE_GNU_AS $gnu_as_bool
11559 for f
in $host_xm_file; do
11562 if test $count = a
; then
11564 elif test $count = ax
; then
11565 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11567 echo "Using the following host machine macro files:"
11568 for f
in $host_xm_file; do
11569 echo " $srcdir/config/$f"
11572 echo "Using ${out_host_hook_obj} for host machine hooks."
11574 if test "$host_xm_file" != "$build_xm_file"; then
11576 for f
in $build_xm_file; do
11579 if test $count = a
; then
11581 elif test $count = ax
; then
11582 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11584 echo "Using the following build machine macro files:"
11585 for f
in $build_xm_file; do
11586 echo " $srcdir/config/$f"
11591 if test -n "$configured_native_system_header_dir"; then
11592 native_system_header_dir
=$configured_native_system_header_dir
11594 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11598 powerpc
*-*-darwin*)
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11600 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11601 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11602 $as_echo_n "(cached) " >&6
11604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11607 #include <sys/cdefs.h>
11608 #include <sys/signal.h>
11609 #include <ucontext.h>
11610 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11613 if ac_fn_cxx_try_compile
"$LINENO"; then :
11614 gcc_cv_mcontext_underscores
=no
11616 gcc_cv_mcontext_underscores
=yes
11618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11621 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11622 if test $gcc_cv_mcontext_underscores = yes; then
11624 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11634 # Check if a valid thread package
11635 case ${enable_threads} in
11638 target_thread_file
='single'
11642 target_thread_file
='single'
11644 aix | dce | lynx | mipssde | posix | rtems | \
11645 single | tpf | vxworks | win32
)
11646 target_thread_file
=${enable_threads}
11649 echo "${enable_threads} is an unknown thread package" 1>&2
11654 if test x
${thread_file} = x
; then
11655 # No thread file set by target-specific clauses in config.gcc,
11656 # so use file chosen by default logic above
11657 thread_file
=${target_thread_file}
11665 if test x
$enable___cxa_atexit = xyes || \
11666 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11667 if test x
$host = x
$target; then
11669 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11670 # keyed to flag_use_cxa_atexit
11678 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11679 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11682 echo "__cxa_atexit can't be enabled on this target"
11688 # We can't check for __cxa_atexit when building a cross, so assume
11692 if test x
$use_cxa_atexit = xyes
; then
11694 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11699 # Look for a file containing extra machine modes.
11700 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11701 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11704 cat >>confdefs.h
<<_ACEOF
11705 #define EXTRA_MODES_FILE "config/$extra_modes"
11710 # Convert extra_options into a form suitable for Makefile use.
11713 for f
in $extra_options; do
11714 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11715 all_opt_files
="$all_opt_files $srcdir/config/$f"
11719 # auto-host.h is the file containing items generated by autoconf and is
11720 # the first file included by config.h.
11721 # If host=build, it is correct to have bconfig include auto-host.h
11722 # as well. If host!=build, we are in error and need to do more
11723 # work to find out the build config parameters.
11724 if test x
$host = x
$build
11726 build_auto
=auto-host.h
11728 # We create a subdir, then run autoconf in the subdir.
11729 # To prevent recursion we set host and build for the new
11730 # invocation of configure to the build for this invocation
11737 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11738 *) realsrcdir
=..
/${srcdir};;
11740 # Clearing GMPINC is necessary to prevent host headers being
11741 # used by the build compiler. Defining GENERATOR_FILE stops
11742 # system.h from including gmp.h.
11743 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11744 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11745 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11746 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11747 ${realsrcdir}/configure \
11748 --enable-languages=${enable_languages-all} \
11749 --target=$target_alias --host=$build_alias --build=$build_alias
11751 # We just finished tests for the build machine, so rename
11752 # the file auto-build.h in the gcc directory.
11753 mv auto-host.h ..
/auto-build.h
11756 build_auto
=auto-build.h
11760 tm_file
="${tm_file} defaults.h"
11761 tm_p_file
="${tm_p_file} tm-preds.h"
11762 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11763 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11764 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11765 # put this back in temporarily.
11766 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11772 # Compile in configure arguments.
11773 if test -f configargs.h
; then
11774 # Being re-configured.
11775 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11776 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11778 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11781 # Double all backslashes and backslash all quotes to turn
11782 # gcc_config_arguments into a C string.
11783 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11784 $gcc_config_arguments
11786 gcc_config_arguments_str
=`cat conftest.out`
11789 cat > configargs.h
<<EOF
11790 /* Generated automatically. */
11791 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11792 static const char thread_model[] = "$thread_file";
11794 static const struct {
11795 const char *name, *value;
11796 } configure_default_options[] = $configure_default_options;
11799 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11800 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11801 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11802 if test -f $srcdir/REVISION
; then
11803 gcc_REVISION
=`cat $srcdir/REVISION`
11807 cat > plugin-version.h
<<EOF
11808 #include "configargs.h"
11810 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11811 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11812 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11813 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11815 static char basever[] = "$gcc_BASEVER";
11816 static char datestamp[] = "$gcc_DATESTAMP";
11817 static char devphase[] = "$gcc_DEVPHASE";
11818 static char revision[] = "$gcc_REVISION";
11820 /* FIXME plugins: We should make the version information more precise.
11821 One way to do is to add a checksum. */
11823 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11824 devphase, revision,
11825 configuration_arguments};
11828 # Internationalization
11829 # If we haven't got the data from the intl directory,
11830 # assume NLS is disabled.
11839 if test -f ..
/intl
/config.intl
; then
11840 . ..
/intl
/config.intl
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11843 $as_echo_n "checking whether NLS is requested... " >&6; }
11844 if test x
"$USE_NLS" != xyes
; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11849 $as_echo "yes" >&6; }
11851 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11855 $as_echo_n "checking for catalogs to be installed... " >&6; }
11856 # Look for .po and .gmo files in the source directory.
11859 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11860 # If there aren't any .gmo files the shell will give us the
11861 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11863 case "$cat" in *\
**)
11866 # The quadruple backslash is collapsed to a double backslash
11867 # by the backticks, then collapsed again by the double quotes,
11868 # leaving us with one backslash in the sed expression (right
11869 # before the dot that mustn't act as a wildcard).
11870 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11871 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11872 # The user is allowed to set LINGUAS to a list of languages to
11873 # install catalogs for. If it's empty that means "all of them."
11874 if test "x$LINGUAS" = x
; then
11875 CATALOGS
="$CATALOGS $cat"
11876 XLINGUAS
="$XLINGUAS $lang"
11878 case "$LINGUAS" in *$lang*)
11879 CATALOGS
="$CATALOGS $cat"
11880 XLINGUAS
="$XLINGUAS $lang"
11885 LINGUAS
="$XLINGUAS"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11887 $as_echo "$LINGUAS" >&6; }
11900 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11901 # -liconv on the link line twice.
11902 case "$LIBINTL" in *$LIBICONV*)
11906 # Check whether --enable-secureplt was given.
11907 if test "${enable_secureplt+set}" = set; then :
11908 enableval
=$enable_secureplt;
11912 # Check whether --enable-leading-mingw64-underscores was given.
11913 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11914 enableval
=$enable_leading_mingw64_underscores;
11917 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11919 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11923 # Check whether --enable-cld was given.
11924 if test "${enable_cld+set}" = set; then :
11925 enableval
=$enable_cld;
11931 # Check whether --enable-frame-pointer was given.
11932 if test "${enable_frame_pointer+set}" = set; then :
11933 enableval
=$enable_frame_pointer;
11937 linux
* | darwin
[8912]*)
11938 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11940 enable_frame_pointer
=no
11943 enable_frame_pointer
=yes
11950 # Windows32 Registry support for specifying GCC installation paths.
11951 # Check whether --enable-win32-registry was given.
11952 if test "${enable_win32_registry+set}" = set; then :
11953 enableval
=$enable_win32_registry;
11958 win32 | pe | cygwin
* | mingw32
*)
11959 if test "x$enable_win32_registry" != xno
; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11961 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11962 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11965 ac_func_search_save_LIBS
=$LIBS
11966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11969 /* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11975 char RegOpenKeyExA ();
11979 return RegOpenKeyExA ();
11984 for ac_lib
in '' advapi32
; do
11985 if test -z "$ac_lib"; then
11986 ac_res
="none required"
11989 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11991 if ac_fn_cxx_try_link
"$LINENO"; then :
11992 ac_cv_search_RegOpenKeyExA
=$ac_res
11994 rm -f core conftest.err conftest.
$ac_objext \
11996 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12000 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12003 ac_cv_search_RegOpenKeyExA
=no
12005 rm conftest.
$ac_ext
12006 LIBS
=$ac_func_search_save_LIBS
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12009 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12010 ac_res
=$ac_cv_search_RegOpenKeyExA
12011 if test "$ac_res" != no
; then :
12012 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12015 enable_win32_registry
=no
12020 if test "x$enable_win32_registry" != xno
; then
12022 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12025 if test "x$enable_win32_registry" != xyes \
12026 && test "x$enable_win32_registry" != x
; then
12028 cat >>confdefs.h
<<_ACEOF
12029 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12037 # Get an absolute path to the GCC top-level source directory
12038 holddir
=`${PWDCMD-pwd}`
12040 topdir
=`${PWDCMD-pwd}`
12043 # Conditionalize the makefile for this host machine.
12045 for f
in ${host_xmake_file}
12047 if test -f ${srcdir}/config
/$f
12049 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12053 # Conditionalize the makefile for this target machine.
12055 for f
in ${tmake_file}
12057 if test -f ${srcdir}/config
/$f
12059 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12062 tmake_file
="${tmake_file_}"
12064 out_object_file
=`basename $out_file .c`.o
12065 common_out_object_file
=`basename $common_out_file .c`.o
12067 tm_file_list
="options.h"
12068 tm_include_list
="options.h insn-constants.h"
12069 for f
in $tm_file; do
12072 f
=`echo $f | sed 's/^..//'`
12073 tm_file_list
="${tm_file_list} $f"
12074 tm_include_list
="${tm_include_list} $f"
12077 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12078 tm_include_list
="${tm_include_list} $f"
12081 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12082 tm_include_list
="${tm_include_list} config/$f"
12089 for f
in $tm_p_file; do
12092 tm_p_file_list
="${tm_p_file_list} $f"
12093 tm_p_include_list
="${tm_p_include_list} $f"
12096 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12097 tm_p_include_list
="${tm_p_include_list} config/$f"
12103 for f
in $xm_file; do
12106 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12107 xm_include_list
="${xm_include_list} $f"
12110 xm_file_list
="${xm_file_list} $f"
12111 xm_include_list
="${xm_include_list} $f"
12114 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12115 xm_include_list
="${xm_include_list} config/$f"
12121 host_xm_include_list
=
12122 for f
in $host_xm_file; do
12125 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12126 host_xm_include_list
="${host_xm_include_list} $f"
12129 host_xm_file_list
="${host_xm_file_list} $f"
12130 host_xm_include_list
="${host_xm_include_list} $f"
12133 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12134 host_xm_include_list
="${host_xm_include_list} config/$f"
12139 build_xm_file_list
=
12140 for f
in $build_xm_file; do
12143 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12144 build_xm_include_list
="${build_xm_include_list} $f"
12146 auto-build.h | auto-host.h
)
12147 build_xm_file_list
="${build_xm_file_list} $f"
12148 build_xm_include_list
="${build_xm_include_list} $f"
12151 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12152 build_xm_include_list
="${build_xm_include_list} config/$f"
12157 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12158 # cross-compiler which does not use the native headers and libraries.
12159 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12162 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12164 if test "x$with_build_sysroot" != x
; then
12165 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12167 # This value is used, even on a native system, because
12168 # CROSS_SYSTEM_HEADER_DIR is just
12169 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12170 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12173 if test x
$host != x
$target
12175 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12177 SYSTEM_HEADER_DIR
=$build_system_header_dir
12178 case "$host","$target" in
12179 # Darwin crosses can use the host system's libraries and headers,
12180 # because of the fat library support. Of course, it must be the
12181 # same version of Darwin on both sides. Allow the user to
12182 # just say --target=foo-darwin without a version number to mean
12183 # "the version on this system".
12184 *-*-darwin*,*-*-darwin*)
12185 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12186 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12187 if test $hostos = $targetos -o $targetos = darwin
; then
12189 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12194 i?
86-*-*,x86_64-
*-* \
12195 | powerpc
*-*-*,powerpc64
*-*-*)
12196 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12201 if test "x$with_headers" = x
; then
12208 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12209 SYSTEM_HEADER_DIR
=$build_system_header_dir
12212 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12213 if test "x$with_headers" != x
; then
12214 target_header_dir
=$with_headers
12215 elif test "x$with_sysroot" = x
; then
12216 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12217 elif test "x$with_build_sysroot" != "x"; then
12218 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12219 elif test "x$with_sysroot" = xyes
; then
12220 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12222 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12225 target_header_dir
=${native_system_header_dir}
12228 # If this is a cross-compiler that does not
12229 # have its own set of headers then define
12232 # If this is using newlib, without having the headers available now,
12233 # then define inhibit_libc in LIBGCC2_CFLAGS.
12234 # This prevents libgcc2 from containing any code which requires libc
12236 : ${inhibit_libc=false}
12237 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12238 test x
$with_newlib = xyes
; } &&
12239 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12244 # When building gcc with a cross-compiler, we need to adjust things so
12245 # that the generator programs are still built with the native compiler.
12246 # Also, we cannot run fixincludes.
12248 # These are the normal (build=host) settings:
12249 CC_FOR_BUILD
='$(CC)'
12250 CXX_FOR_BUILD
='$(CXX)'
12251 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12252 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12253 BUILD_LDFLAGS
='$(LDFLAGS)'
12254 STMP_FIXINC
=stmp-fixinc
12256 # And these apply if build != host, or we are generating coverage data
12257 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12259 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12260 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12261 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12264 # Expand extra_headers to include complete path.
12265 # This substitutes for lots of t-* files.
12266 extra_headers_list
=
12267 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12268 for file in ${extra_headers} ; do
12269 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12272 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12273 if test x
"$use_gcc_tgmath" = xyes
12274 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12277 # Define collect2 in Makefile.
12278 case $host_can_use_collect2 in
12280 *) collect2
='collect2$(exeext)' ;;
12284 # Add a definition of USE_COLLECT2 if system wants one.
12285 case $use_collect2 in
12286 no
) use_collect2
= ;;
12289 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12290 xm_defines
="${xm_defines} USE_COLLECT2"
12291 case $host_can_use_collect2 in
12293 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12300 cat >>confdefs.h
<<_ACEOF
12301 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12305 # ---------------------------
12306 # Assembler & linker features
12307 # ---------------------------
12309 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12310 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12311 # However when ld-new is first executed from the build tree, libtool will
12312 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12313 # to the build tree. While doing this we need to use the previous-stage
12314 # linker, or we have an infinite loop. The presence of a shell script as
12315 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12316 # the gcc/collect-ld script. So we need to know how libtool works, or
12317 # exec-tool will fail.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12323 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12328 macro_version
='2.2.7a'
12329 macro_revision
='1.3134'
12343 ltmain
="$ac_aux_dir/ltmain.sh"
12345 # Backslashify metacharacters that are still active within
12346 # double-quoted strings.
12347 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12349 # Same as above, but do not quote variable references.
12350 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12352 # Sed substitution to delay expansion of an escaped shell variable in a
12353 # double_quote_subst'ed string.
12354 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12356 # Sed substitution to delay expansion of an escaped single quote.
12357 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12359 # Sed substitution to avoid accidental globbing in evaled expressions
12360 no_glob_subst
='s/\*/\\\*/g'
12362 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12363 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12364 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12367 $as_echo_n "checking how to print strings... " >&6; }
12368 # Test print first, because it will be a builtin if present.
12369 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12370 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12372 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12375 # Use this function as a fallback that always works.
12376 func_fallback_echo ()
12378 eval 'cat <<_LTECHO_EOF
12382 ECHO='func_fallback_echo
'
12385 # func_echo_all arg...
12386 # Invoke $ECHO with all args, space-separated.
12393 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12394 $as_echo "printf" >&6; } ;;
12395 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12396 $as_echo "print -r" >&6; } ;;
12397 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12398 $as_echo "cat" >&6; } ;;
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12415 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12416 if test "${ac_cv_path_SED+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12419 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12420 for ac_i in 1 2 3 4 5 6 7; do
12421 ac_script="$ac_script$as_nl$ac_script"
12423 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12424 { ac_script=; unset ac_script;}
12425 if test -z "$SED"; then
12426 ac_path_SED_found=false
12427 # Loop through the user's path and
test for each of PROGNAME-LIST
12428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12429 for as_dir
in $PATH
12432 test -z "$as_dir" && as_dir
=.
12433 for ac_prog
in sed gsed
; do
12434 for ac_exec_ext
in '' $ac_executable_extensions; do
12435 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12436 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12437 # Check for GNU ac_path_SED and select it if it is found.
12438 # Check for GNU $ac_path_SED
12439 case `"$ac_path_SED" --version 2>&1` in
12441 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12444 $as_echo_n 0123456789 >"conftest.in"
12447 cat "conftest.in" "conftest.in" >"conftest.tmp"
12448 mv "conftest.tmp" "conftest.in"
12449 cp "conftest.in" "conftest.nl"
12450 $as_echo '' >> "conftest.nl"
12451 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12452 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12453 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12454 if test $ac_count -gt ${ac_path_SED_max-0}; then
12455 # Best one so far, save it but keep looking for a better one
12456 ac_cv_path_SED
="$ac_path_SED"
12457 ac_path_SED_max
=$ac_count
12459 # 10*(2^10) chars as input seems more than enough
12460 test $ac_count -gt 10 && break
12462 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12465 $ac_path_SED_found && break 3
12470 if test -z "$ac_cv_path_SED"; then
12471 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12474 ac_cv_path_SED
=$SED
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12479 $as_echo "$ac_cv_path_SED" >&6; }
12480 SED
="$ac_cv_path_SED"
12483 test -z "$SED" && SED
=sed
12484 Xsed
="$SED -e 1s/^X//"
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12497 $as_echo_n "checking for fgrep... " >&6; }
12498 if test "${ac_cv_path_FGREP+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
12501 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12502 then ac_cv_path_FGREP
="$GREP -F"
12504 if test -z "$FGREP"; then
12505 ac_path_FGREP_found
=false
12506 # Loop through the user's path and test for each of PROGNAME-LIST
12507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12508 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12511 test -z "$as_dir" && as_dir
=.
12512 for ac_prog
in fgrep
; do
12513 for ac_exec_ext
in '' $ac_executable_extensions; do
12514 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12515 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12516 # Check for GNU ac_path_FGREP and select it if it is found.
12517 # Check for GNU $ac_path_FGREP
12518 case `"$ac_path_FGREP" --version 2>&1` in
12520 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12523 $as_echo_n 0123456789 >"conftest.in"
12526 cat "conftest.in" "conftest.in" >"conftest.tmp"
12527 mv "conftest.tmp" "conftest.in"
12528 cp "conftest.in" "conftest.nl"
12529 $as_echo 'FGREP' >> "conftest.nl"
12530 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12531 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12532 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12533 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12534 # Best one so far, save it but keep looking for a better one
12535 ac_cv_path_FGREP
="$ac_path_FGREP"
12536 ac_path_FGREP_max
=$ac_count
12538 # 10*(2^10) chars as input seems more than enough
12539 test $ac_count -gt 10 && break
12541 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12544 $ac_path_FGREP_found && break 3
12549 if test -z "$ac_cv_path_FGREP"; then
12550 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12553 ac_cv_path_FGREP
=$FGREP
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12559 $as_echo "$ac_cv_path_FGREP" >&6; }
12560 FGREP
="$ac_cv_path_FGREP"
12563 test -z "$GREP" && GREP
=grep
12583 # Check whether --with-gnu-ld was given.
12584 if test "${with_gnu_ld+set}" = set; then :
12585 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12591 if test "$GCC" = yes; then
12592 # Check if gcc -print-prog-name=ld gives a path.
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12594 $as_echo_n "checking for ld used by $CC... " >&6; }
12597 # gcc leaves a trailing carriage return which upsets mingw
12598 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12600 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12603 # Accept absolute paths.
12605 re_direlt
='/[^/][^/]*/\.\./'
12606 # Canonicalize the pathname of ld
12607 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12608 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12609 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12611 test -z "$LD" && LD
="$ac_prog"
12614 # If it fails, then pretend we aren't using GCC.
12618 # If it is relative, then search for the first ld in PATH.
12619 with_gnu_ld
=unknown
12622 elif test "$with_gnu_ld" = yes; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12624 $as_echo_n "checking for GNU ld... " >&6; }
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12627 $as_echo_n "checking for non-GNU ld... " >&6; }
12629 if test "${lt_cv_path_LD+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12632 if test -z "$LD"; then
12633 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12634 for ac_dir
in $PATH; do
12636 test -z "$ac_dir" && ac_dir
=.
12637 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12638 lt_cv_path_LD
="$ac_dir/$ac_prog"
12639 # Check to see if the program is GNU ld. I'd rather use --version,
12640 # but apparently some variants of GNU ld only accept -v.
12641 # Break only if it was the GNU/non-GNU ld that we prefer.
12642 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12643 *GNU
* |
*'with BFD'*)
12644 test "$with_gnu_ld" != no
&& break
12647 test "$with_gnu_ld" != yes && break
12654 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12658 LD
="$lt_cv_path_LD"
12659 if test -n "$LD"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12661 $as_echo "$LD" >&6; }
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12666 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12668 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12669 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12672 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12673 case `$LD -v 2>&1 </dev/null` in
12674 *GNU
* |
*'with BFD'*)
12675 lt_cv_prog_gnu_ld
=yes
12678 lt_cv_prog_gnu_ld
=no
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12683 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12684 with_gnu_ld
=$lt_cv_prog_gnu_ld
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12695 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12696 if test "${lt_cv_path_NM+set}" = set; then :
12697 $as_echo_n "(cached) " >&6
12699 if test -n "$NM"; then
12700 # Let the user override the test.
12701 lt_cv_path_NM
="$NM"
12703 lt_nm_to_check
="${ac_tool_prefix}nm"
12704 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12705 lt_nm_to_check
="$lt_nm_to_check nm"
12707 for lt_tmp_nm
in $lt_nm_to_check; do
12708 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12709 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12711 test -z "$ac_dir" && ac_dir
=.
12712 tmp_nm
="$ac_dir/$lt_tmp_nm"
12713 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12714 # Check to see if the nm accepts a BSD-compat flag.
12715 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12716 # nm: unknown option "B" ignored
12717 # Tru64's nm complains that /dev/null is an invalid object file
12718 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12719 */dev
/null
* |
*'Invalid file or object type'*)
12720 lt_cv_path_NM
="$tmp_nm -B"
12724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12726 lt_cv_path_NM
="$tmp_nm -p"
12730 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12731 continue # so that we can try to find one that supports BSD flags
12740 : ${lt_cv_path_NM=no}
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12744 $as_echo "$lt_cv_path_NM" >&6; }
12745 if test "$lt_cv_path_NM" != "no"; then
12746 NM
="$lt_cv_path_NM"
12748 # Didn't find any BSD compatible name lister, look for dumpbin.
12749 if test -n "$DUMPBIN"; then :
12750 # Let the user override the test.
12752 if test -n "$ac_tool_prefix"; then
12753 for ac_prog
in dumpbin
"link -dump"
12755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12756 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12762 if test -n "$DUMPBIN"; then
12763 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12766 for as_dir
in $PATH
12769 test -z "$as_dir" && as_dir
=.
12770 for ac_exec_ext
in '' $ac_executable_extensions; do
12771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12772 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 DUMPBIN
=$ac_cv_prog_DUMPBIN
12783 if test -n "$DUMPBIN"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12785 $as_echo "$DUMPBIN" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12792 test -n "$DUMPBIN" && break
12795 if test -z "$DUMPBIN"; then
12796 ac_ct_DUMPBIN
=$DUMPBIN
12797 for ac_prog
in dumpbin
"link -dump"
12799 # Extract the first word of "$ac_prog", so it can be a program name with args.
12800 set dummy
$ac_prog; ac_word
=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
12806 if test -n "$ac_ct_DUMPBIN"; then
12807 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12810 for as_dir
in $PATH
12813 test -z "$as_dir" && as_dir
=.
12814 for ac_exec_ext
in '' $ac_executable_extensions; do
12815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12816 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12827 if test -n "$ac_ct_DUMPBIN"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12829 $as_echo "$ac_ct_DUMPBIN" >&6; }
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12836 test -n "$ac_ct_DUMPBIN" && break
12839 if test "x$ac_ct_DUMPBIN" = x
; then
12842 case $cross_compiling:$ac_tool_warned in
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12846 ac_tool_warned
=yes ;;
12848 DUMPBIN
=$ac_ct_DUMPBIN
12852 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12854 DUMPBIN
="$DUMPBIN -symbols"
12862 if test "$DUMPBIN" != ":"; then
12866 test -z "$NM" && NM
=nm
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12874 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12875 if test "${lt_cv_nm_interface+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12878 lt_cv_nm_interface
="BSD nm"
12879 echo "int some_variable = 0;" > conftest.
$ac_ext
12880 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12881 (eval "$ac_compile" 2>conftest.err
)
12882 cat conftest.err
>&5
12883 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12884 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12885 cat conftest.err
>&5
12886 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12887 cat conftest.out
>&5
12888 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12889 lt_cv_nm_interface
="MS dumpbin"
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12894 $as_echo "$lt_cv_nm_interface" >&6; }
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12897 $as_echo_n "checking whether ln -s works... " >&6; }
12899 if test "$LN_S" = "ln -s"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901 $as_echo "yes" >&6; }
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12904 $as_echo "no, using $LN_S" >&6; }
12907 # find the maximum length of command line arguments
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12909 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12910 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12911 $as_echo_n "(cached) " >&6
12918 # On DJGPP, this test can blow up pretty badly due to problems in libc
12919 # (any single argument exceeding 2000 bytes causes a buffer overrun
12920 # during glob expansion). Even if it were fixed, the result of this
12921 # check would be larger than it should be.
12922 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12926 # Under GNU Hurd, this test is not required because there is
12927 # no limit to the length of command line arguments.
12928 # Libtool will interpret -1 as no limit whatsoever
12929 lt_cv_sys_max_cmd_len
=-1;
12932 cygwin
* | mingw
* | cegcc
*)
12933 # On Win9x/ME, this test blows up -- it succeeds, but takes
12934 # about 5 minutes as the teststring grows exponentially.
12935 # Worse, since 9x/ME are not pre-emptively multitasking,
12936 # you end up with a "frozen" computer, even though with patience
12937 # the test eventually succeeds (with a max line length of 256k).
12938 # Instead, let's just punt: use the minimum linelength reported by
12939 # all of the supported platforms: 8192 (on NT/2K/XP).
12940 lt_cv_sys_max_cmd_len
=8192;
12944 # On MiNT this can take a long time and run out of memory.
12945 lt_cv_sys_max_cmd_len
=8192;
12949 # On AmigaOS with pdksh, this test takes hours, literally.
12950 # So we just punt and use a minimum line length of 8192.
12951 lt_cv_sys_max_cmd_len
=8192;
12954 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12955 # This has been around since 386BSD, at least. Likely further.
12956 if test -x /sbin
/sysctl
; then
12957 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12958 elif test -x /usr
/sbin
/sysctl
; then
12959 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12961 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12963 # And add a safety zone
12964 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12965 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12969 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12970 lt_cv_sys_max_cmd_len
=196608
12974 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12975 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12976 # nice to cause kernel panics so lets avoid the loop below.
12977 # First set a reasonable default.
12978 lt_cv_sys_max_cmd_len
=16384
12980 if test -x /sbin
/sysconfig
; then
12981 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12982 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12987 lt_cv_sys_max_cmd_len
=102400
12989 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12990 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12991 if test -n "$kargmax"; then
12992 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12994 lt_cv_sys_max_cmd_len
=32768
12998 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12999 if test -n "$lt_cv_sys_max_cmd_len"; then
13000 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13001 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13003 # Make teststring a little bigger before we do anything with it.
13004 # a 1K string should be a reasonable start.
13005 for i
in 1 2 3 4 5 6 7 8 ; do
13006 teststring
=$teststring$teststring
13008 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13009 # If test is not a shell built-in, we'll probably end up computing a
13010 # maximum length that is only half of the actual maximum length, but
13012 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13013 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13014 test $i != 17 # 1/2 MB should be enough
13017 teststring
=$teststring$teststring
13019 # Only check the string length outside the loop.
13020 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13022 # Add a significant safety factor because C++ compilers can tack on
13023 # massive amounts of additional arguments before passing them to the
13024 # linker. It appears as though 1/2 is a usable value.
13025 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13032 if test -n $lt_cv_sys_max_cmd_len ; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13034 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13037 $as_echo "none" >&6; }
13039 max_cmd_len
=$lt_cv_sys_max_cmd_len
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13051 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13052 # Try some XSI features
13054 ( _lt_dummy
="a/b/c"
13055 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13057 && eval 'test $(( 1 + 1 )) -eq 2 \
13058 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13061 $as_echo "$xsi_shell" >&6; }
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13065 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13067 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13069 && lt_shell_append=yes
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13071 $as_echo "$lt_shell_append" >&6; }
13074 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13084 # test EBCDIC or ASCII
13085 case `echo X|tr X '\101'` in
13086 A) # ASCII based system
13087 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13088 lt_SP2NL='tr \040 \012'
13089 lt_NL2SP='tr \015\012 \040\040'
13091 *) # EBCDIC based system
13092 lt_SP2NL='tr \100 \n'
13093 lt_NL2SP='tr \r\n \100\100'
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13106 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13107 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13108 $as_echo_n "(cached
) " >&6
13110 lt_cv_ld_reload_flag='-r'
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13113 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13114 reload_flag=$lt_cv_ld_reload_flag
13115 case $reload_flag in
13117 *) reload_flag=" $reload_flag" ;;
13119 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13122 if test "$GCC" = yes; then
13123 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13125 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13138 if test -n "$ac_tool_prefix"; then
13139 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13140 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13142 $as_echo_n "checking
for $ac_word...
" >&6; }
13143 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13144 $as_echo_n "(cached
) " >&6
13146 if test -n "$OBJDUMP"; then
13147 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13166 OBJDUMP=$ac_cv_prog_OBJDUMP
13167 if test -n "$OBJDUMP"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13169 $as_echo "$OBJDUMP" >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13172 $as_echo "no
" >&6; }
13177 if test -z "$ac_cv_prog_OBJDUMP"; then
13178 ac_ct_OBJDUMP=$OBJDUMP
13179 # Extract the first word of "objdump
", so it can be a program name with args.
13180 set dummy objdump; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13182 $as_echo_n "checking
for $ac_word...
" >&6; }
13183 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13184 $as_echo_n "(cached
) " >&6
13186 if test -n "$ac_ct_OBJDUMP"; then
13187 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13206 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13207 if test -n "$ac_ct_OBJDUMP"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13209 $as_echo "$ac_ct_OBJDUMP" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13212 $as_echo "no
" >&6; }
13215 if test "x
$ac_ct_OBJDUMP" = x; then
13218 case $cross_compiling:$ac_tool_warned in
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13221 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13222 ac_tool_warned=yes ;;
13224 OBJDUMP=$ac_ct_OBJDUMP
13227 OBJDUMP="$ac_cv_prog_OBJDUMP"
13230 test -z "$OBJDUMP" && OBJDUMP=objdump
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13241 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13242 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13243 $as_echo_n "(cached
) " >&6
13245 lt_cv_file_magic_cmd='$MAGIC_CMD'
13246 lt_cv_file_magic_test_file=
13247 lt_cv_deplibs_check_method='unknown'
13248 # Need to set the preceding variable on all platforms that support
13249 # interlibrary dependencies.
13250 # 'none' -- dependencies not supported.
13251 # `unknown' -- same as none, but documents that we really don't know.
13252 # 'pass_all' -- all dependencies passed with no checks.
13253 # 'test_compile' -- check by making test program.
13254 # 'file_magic [[regex]]' -- check by looking for files in library path
13255 # which responds to the $file_magic_cmd with a given extended regex.
13256 # If you have `file' or equivalent on your system and you're not sure
13257 # whether `pass_all' will *always* work, you probably want this one.
13261 lt_cv_deplibs_check_method=pass_all
13265 lt_cv_deplibs_check_method=pass_all
13269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13270 lt_cv_file_magic_cmd='/usr/bin/file -L'
13271 lt_cv_file_magic_test_file=/shlib/libc.so
13275 # func_win32_libid is a shell function defined in ltmain.sh
13276 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13277 lt_cv_file_magic_cmd='func_win32_libid'
13281 # Base MSYS/MinGW do not provide the 'file' command needed by
13282 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13283 # unless we find 'file', for example because we are cross-compiling.
13284 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13285 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13287 lt_cv_file_magic_cmd='func_win32_libid'
13289 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13290 lt_cv_file_magic_cmd='$OBJDUMP -f'
13295 # use the weaker test based on 'objdump'. See mingw*.
13296 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13297 lt_cv_file_magic_cmd='$OBJDUMP -f'
13300 darwin* | rhapsody*)
13301 lt_cv_deplibs_check_method=pass_all
13304 freebsd* | dragonfly*)
13305 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13308 # Not sure whether the presence of OpenBSD here was a mistake.
13309 # Let's accept both of them until this is cleared up.
13310 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13311 lt_cv_file_magic_cmd=/usr/bin/file
13312 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13316 lt_cv_deplibs_check_method=pass_all
13321 lt_cv_deplibs_check_method=pass_all
13325 lt_cv_deplibs_check_method=pass_all
13328 hpux10.20* | hpux11*)
13329 lt_cv_file_magic_cmd=/usr/bin/file
13332 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13333 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13336 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]'
13337 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13341 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13347 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13351 irix5* | irix6* | nonstopux*)
13353 *-32|*"-32 ") libmagic=32-bit;;
13354 *-n32|*"-n32 ") libmagic=N32;;
13355 *-64|*"-64 ") libmagic=64-bit;;
13356 *) libmagic=never-match;;
13358 lt_cv_deplibs_check_method=pass_all
13361 # This must be Linux ELF.
13362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13363 lt_cv_deplibs_check_method=pass_all
13367 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13376 lt_cv_file_magic_cmd=/usr/bin/file
13377 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13381 lt_cv_deplibs_check_method=pass_all
13385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13392 osf3* | osf4* | osf5*)
13393 lt_cv_deplibs_check_method=pass_all
13397 lt_cv_deplibs_check_method=pass_all
13401 lt_cv_deplibs_check_method=pass_all
13404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13405 lt_cv_deplibs_check_method=pass_all
13409 case $host_vendor in
13411 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]'
13412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13415 lt_cv_deplibs_check_method=pass_all
13418 lt_cv_file_magic_cmd='/bin/file'
13419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13422 lt_cv_file_magic_cmd='/bin/file'
13423 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13424 lt_cv_file_magic_test_file=/lib/libc.so
13427 lt_cv_deplibs_check_method=pass_all
13430 lt_cv_deplibs_check_method=pass_all
13436 lt_cv_deplibs_check_method=pass_all
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13442 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13443 file_magic_cmd=$lt_cv_file_magic_cmd
13444 deplibs_check_method=$lt_cv_deplibs_check_method
13445 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13458 if test -n "$ac_tool_prefix"; then
13459 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13460 set dummy ${ac_tool_prefix}ar; ac_word=$2
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13462 $as_echo_n "checking
for $ac_word...
" >&6; }
13463 if test "${ac_cv_prog_AR+set}" = set; then :
13464 $as_echo_n "(cached
) " >&6
13466 if test -n "$AR"; then
13467 ac_cv_prog_AR="$AR" # Let the user override the test.
13469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470 for as_dir in $PATH
13473 test -z "$as_dir" && as_dir=.
13474 for ac_exec_ext in '' $ac_executable_extensions; do
13475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13476 ac_cv_prog_AR="${ac_tool_prefix}ar"
13477 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13487 if test -n "$AR"; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13489 $as_echo "$AR" >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13492 $as_echo "no
" >&6; }
13497 if test -z "$ac_cv_prog_AR"; then
13499 # Extract the first word of "ar", so it can be a program name with args.
13500 set dummy ar; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13502 $as_echo_n "checking
for $ac_word...
" >&6; }
13503 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13504 $as_echo_n "(cached
) " >&6
13506 if test -n "$ac_ct_AR"; then
13507 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510 for as_dir in $PATH
13513 test -z "$as_dir" && as_dir=.
13514 for ac_exec_ext in '' $ac_executable_extensions; do
13515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13516 ac_cv_prog_ac_ct_AR="ar"
13517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13526 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13527 if test -n "$ac_ct_AR"; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13529 $as_echo "$ac_ct_AR" >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13532 $as_echo "no
" >&6; }
13535 if test "x
$ac_ct_AR" = x; then
13538 case $cross_compiling:$ac_tool_warned in
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13541 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13542 ac_tool_warned=yes ;;
13547 AR="$ac_cv_prog_AR"
13550 test -z "$AR" && AR=ar
13551 test -z "$AR_FLAGS" && AR_FLAGS=cru
13563 if test -n "$ac_tool_prefix"; then
13564 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13565 set dummy ${ac_tool_prefix}strip; ac_word=$2
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13567 $as_echo_n "checking
for $ac_word...
" >&6; }
13568 if test "${ac_cv_prog_STRIP+set}" = set; then :
13569 $as_echo_n "(cached
) " >&6
13571 if test -n "$STRIP"; then
13572 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13581 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13582 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13591 STRIP=$ac_cv_prog_STRIP
13592 if test -n "$STRIP"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13594 $as_echo "$STRIP" >&6; }
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13597 $as_echo "no
" >&6; }
13602 if test -z "$ac_cv_prog_STRIP"; then
13604 # Extract the first word of "strip
", so it can be a program name with args.
13605 set dummy strip; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13607 $as_echo_n "checking
for $ac_word...
" >&6; }
13608 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13609 $as_echo_n "(cached
) " >&6
13611 if test -n "$ac_ct_STRIP"; then
13612 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13618 test -z "$as_dir" && as_dir=.
13619 for ac_exec_ext in '' $ac_executable_extensions; do
13620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13621 ac_cv_prog_ac_ct_STRIP="strip
"
13622 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13631 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13632 if test -n "$ac_ct_STRIP"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13634 $as_echo "$ac_ct_STRIP" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13637 $as_echo "no
" >&6; }
13640 if test "x
$ac_ct_STRIP" = x; then
13643 case $cross_compiling:$ac_tool_warned in
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13646 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13647 ac_tool_warned=yes ;;
13652 STRIP="$ac_cv_prog_STRIP"
13655 test -z "$STRIP" && STRIP=:
13662 if test -n "$ac_tool_prefix"; then
13663 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13664 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13666 $as_echo_n "checking
for $ac_word...
" >&6; }
13667 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13668 $as_echo_n "(cached
) " >&6
13670 if test -n "$RANLIB"; then
13671 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13680 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13681 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13690 RANLIB=$ac_cv_prog_RANLIB
13691 if test -n "$RANLIB"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13693 $as_echo "$RANLIB" >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13696 $as_echo "no
" >&6; }
13701 if test -z "$ac_cv_prog_RANLIB"; then
13702 ac_ct_RANLIB=$RANLIB
13703 # Extract the first word of "ranlib
", so it can be a program name with args.
13704 set dummy ranlib; ac_word=$2
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13706 $as_echo_n "checking
for $ac_word...
" >&6; }
13707 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13708 $as_echo_n "(cached
) " >&6
13710 if test -n "$ac_ct_RANLIB"; then
13711 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714 for as_dir in $PATH
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13720 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13730 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13731 if test -n "$ac_ct_RANLIB"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13733 $as_echo "$ac_ct_RANLIB" >&6; }
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13736 $as_echo "no
" >&6; }
13739 if test "x
$ac_ct_RANLIB" = x; then
13742 case $cross_compiling:$ac_tool_warned in
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13745 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13746 ac_tool_warned=yes ;;
13748 RANLIB=$ac_ct_RANLIB
13751 RANLIB="$ac_cv_prog_RANLIB"
13754 test -z "$RANLIB" && RANLIB=:
13761 # Determine commands to create old-style static archives.
13762 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13763 old_postinstall_cmds='chmod 644 $oldlib'
13764 old_postuninstall_cmds=
13766 if test -n "$RANLIB"; then
13769 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13772 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13775 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13780 lock_old_archive_extraction=yes ;;
13782 lock_old_archive_extraction=no ;;
13823 # If no C compiler was specified, use CC.
13826 # If no C compiler flags were specified, use CFLAGS.
13827 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13829 # Allow CC to be a program name with arguments.
13833 # Check for command to grab the raw symbol name followed by C symbol from nm.
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13835 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13836 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13837 $as_echo_n "(cached
) " >&6
13840 # These are sane defaults that work on at least a few old systems.
13841 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13843 # Character class describing NM global symbol codes.
13844 symcode='[BCDEGRST]'
13846 # Regexp to match symbols that can be accessed directly from C.
13847 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13849 # Define system-specific variables.
13854 cygwin* | mingw* | pw32* | cegcc*)
13855 symcode='[ABCDGISTW]'
13858 if test "$host_cpu" = ia64; then
13859 symcode='[ABCDEGRST]'
13862 irix* | nonstopux*)
13863 symcode='[BCDEGRST]'
13866 symcode='[BCDEGQRST]'
13877 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13885 # If we're using GNU nm, then use its standard symbol codes.
13886 case `$NM -V 2>&1` in
13887 *GNU* | *'with BFD'*)
13888 symcode='[ABCDGIRSTW]' ;;
13891 # Transform an extracted symbol line into a proper C declaration.
13892 # Some systems (esp. on ia64) link data and code symbols differently,
13893 # so use this general approach.
13894 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13896 # Transform an extracted symbol line into symbol name and symbol address
13897 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13898 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'"
13900 # Handle CRLF in mingw tool chain
13904 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13908 # Try without a prefix underscore, then with it.
13909 for ac_symprfx in "" "_
"; do
13911 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13912 symxfrm="\\1 $ac_symprfx\\2 \\2"
13914 # Write the raw and C identifiers.
13915 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13916 # Fake it for dumpbin and say T for any non-static function
13917 # and D for any global variable.
13918 # Also find C++ and __fastcall symbols from MSVC++,
13919 # which start with @ or ?.
13920 lt_cv_sys_global_symbol_pipe="$AWK '"\
13921 " {last_section=section; section=\$ 3};"\
13922 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13923 " \$ 0!~/External *\|/{next};"\
13924 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13925 " {if(hide[section]) next};"\
13926 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13927 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13928 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13929 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13930 " ' prfx
=^
$ac_symprfx"
13932 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13935 # Check to see that the pipe works correctly.
13939 cat > conftest.$ac_ext <<_LT_EOF
13944 void nm_test_func(void);
13945 void nm_test_func(void){}
13949 int main(){nm_test_var='a';nm_test_func();return(0);}
13952 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13953 (eval $ac_compile) 2>&5
13955 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13956 test $ac_status = 0; }; then
13957 # Now try to grab the symbols.
13959 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13960 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13963 test $ac_status = 0; } && test -s "$nlist"; then
13964 # Try sorting and uniquifying the output.
13965 if sort "$nlist" | uniq > "$nlist"T; then
13966 mv -f "$nlist"T "$nlist"
13971 # Make sure that we snagged all the symbols we need.
13972 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13973 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13974 cat <<_LT_EOF > conftest.$ac_ext
13980 # Now generate the symbol file.
13981 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13983 cat <<_LT_EOF >> conftest.$ac_ext
13985 /* The mapping between symbol names and symbols. */
13990 lt__PROGRAM__LTX_preloaded_symbols[] =
13992 { "@PROGRAM@
", (void *) 0 },
13994 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13995 cat <<\_LT_EOF >> conftest.$ac_ext
13999 /* This works around a problem in FreeBSD linker */
14000 #ifdef FREEBSD_WORKAROUND
14001 static const void *lt_preloaded_setup() {
14002 return lt__PROGRAM__LTX_preloaded_symbols;
14010 # Now try linking the two files.
14011 mv conftest.$ac_objext conftstm.$ac_objext
14012 lt_save_LIBS="$LIBS"
14013 lt_save_CFLAGS="$CFLAGS"
14014 LIBS="conftstm.
$ac_objext"
14015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14016 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14017 (eval $ac_link) 2>&5
14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14020 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14023 LIBS="$lt_save_LIBS"
14024 CFLAGS="$lt_save_CFLAGS"
14026 echo "cannot
find nm_test_func
in $nlist" >&5
14029 echo "cannot
find nm_test_var
in $nlist" >&5
14032 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14035 echo "$progname: failed program was
:" >&5
14036 cat conftest.$ac_ext >&5
14038 rm -rf conftest* conftst*
14040 # Do not use the global_symbol_pipe unless it works.
14041 if test "$pipe_works" = yes; then
14044 lt_cv_sys_global_symbol_pipe=
14050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14051 lt_cv_sys_global_symbol_to_cdecl=
14053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14055 $as_echo "failed
" >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14058 $as_echo "ok
" >&6; }
14082 # Check whether --enable-libtool-lock was given.
14083 if test "${enable_libtool_lock+set}" = set; then :
14084 enableval=$enable_libtool_lock;
14087 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14089 # Some flags need to be propagated to the compiler or linker for good
14093 # Find out which ABI we are using.
14094 echo 'int i;' > conftest.$ac_ext
14095 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14096 (eval $ac_compile) 2>&5
14098 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14099 test $ac_status = 0; }; then
14100 case `/usr/bin/file conftest.$ac_objext` in
14102 HPUX_IA64_MODE="32"
14105 HPUX_IA64_MODE="64"
14112 # Find out which ABI we are using.
14113 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14114 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14115 (eval $ac_compile) 2>&5
14117 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14118 test $ac_status = 0; }; then
14119 if test "$lt_cv_prog_gnu_ld" = yes; then
14120 case `/usr/bin/file conftest.$ac_objext` in
14122 LD="${LD-ld} -melf32bsmip"
14125 LD="${LD-ld} -melf32bmipn32"
14128 LD="${LD-ld} -melf64bmip"
14132 case `/usr/bin/file conftest.$ac_objext` in
14148 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14149 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14150 # Find out which ABI we are using.
14151 echo 'int i;' > conftest.$ac_ext
14152 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14153 (eval $ac_compile) 2>&5
14155 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14156 test $ac_status = 0; }; then
14157 case `/usr/bin/file conftest.o` in
14160 x86_64-*kfreebsd*-gnu)
14161 LD="${LD-ld} -m elf_i386_fbsd
"
14164 case `/usr/bin/file conftest.o` in
14166 LD="${LD-ld} -m elf32_x86_64
"
14169 LD="${LD-ld} -m elf_i386
"
14173 powerpc64le-*linux*)
14174 LD="${LD-ld} -m elf32lppclinux
"
14177 LD="${LD-ld} -m elf32ppclinux
"
14180 LD="${LD-ld} -m elf_s390
"
14183 LD="${LD-ld} -m elf32_sparc
"
14189 x86_64-*kfreebsd*-gnu)
14190 LD="${LD-ld} -m elf_x86_64_fbsd
"
14193 LD="${LD-ld} -m elf_x86_64
"
14196 LD="${LD-ld} -m elf64lppc
"
14199 LD="${LD-ld} -m elf64ppc
"
14201 s390*-*linux*|s390*-*tpf*)
14202 LD="${LD-ld} -m elf64_s390
"
14205 LD="${LD-ld} -m elf64_sparc
"
14215 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14216 SAVE_CFLAGS="$CFLAGS"
14217 CFLAGS="$CFLAGS -belf"
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14219 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14220 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14221 $as_echo_n "(cached
) " >&6
14224 ac_cpp='$CPP $CPPFLAGS'
14225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 lt_cv_cc_needs_belf=yes
14243 lt_cv_cc_needs_belf=no
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14248 ac_cpp='$CPP $CPPFLAGS'
14249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14255 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14256 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14257 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14258 CFLAGS="$SAVE_CFLAGS"
14262 # Find out which ABI we are using.
14263 echo 'int i;' > conftest.$ac_ext
14264 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14265 (eval $ac_compile) 2>&5
14267 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14268 test $ac_status = 0; }; then
14269 case `/usr/bin/file conftest.o` in
14271 case $lt_cv_prog_gnu_ld in
14272 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14274 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14286 need_locks="$enable_libtool_lock"
14290 rhapsody* | darwin*)
14291 if test -n "$ac_tool_prefix"; then
14292 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14293 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14295 $as_echo_n "checking
for $ac_word...
" >&6; }
14296 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14297 $as_echo_n "(cached
) " >&6
14299 if test -n "$DSYMUTIL"; then
14300 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14306 test -z "$as_dir" && as_dir=.
14307 for ac_exec_ext in '' $ac_executable_extensions; do
14308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14309 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14310 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14319 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14320 if test -n "$DSYMUTIL"; then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14322 $as_echo "$DSYMUTIL" >&6; }
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14325 $as_echo "no
" >&6; }
14330 if test -z "$ac_cv_prog_DSYMUTIL"; then
14331 ac_ct_DSYMUTIL=$DSYMUTIL
14332 # Extract the first word of "dsymutil
", so it can be a program name with args.
14333 set dummy dsymutil; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14335 $as_echo_n "checking
for $ac_word...
" >&6; }
14336 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14337 $as_echo_n "(cached
) " >&6
14339 if test -n "$ac_ct_DSYMUTIL"; then
14340 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14349 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14359 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14360 if test -n "$ac_ct_DSYMUTIL"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14362 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14365 $as_echo "no
" >&6; }
14368 if test "x
$ac_ct_DSYMUTIL" = x; then
14371 case $cross_compiling:$ac_tool_warned in
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14374 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14375 ac_tool_warned=yes ;;
14377 DSYMUTIL=$ac_ct_DSYMUTIL
14380 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14383 if test -n "$ac_tool_prefix"; then
14384 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14385 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14387 $as_echo_n "checking
for $ac_word...
" >&6; }
14388 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14389 $as_echo_n "(cached
) " >&6
14391 if test -n "$NMEDIT"; then
14392 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14401 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14411 NMEDIT=$ac_cv_prog_NMEDIT
14412 if test -n "$NMEDIT"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14414 $as_echo "$NMEDIT" >&6; }
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14417 $as_echo "no
" >&6; }
14422 if test -z "$ac_cv_prog_NMEDIT"; then
14423 ac_ct_NMEDIT=$NMEDIT
14424 # Extract the first word of "nmedit
", so it can be a program name with args.
14425 set dummy nmedit; ac_word=$2
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14427 $as_echo_n "checking
for $ac_word...
" >&6; }
14428 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14429 $as_echo_n "(cached
) " >&6
14431 if test -n "$ac_ct_NMEDIT"; then
14432 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14442 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14451 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14452 if test -n "$ac_ct_NMEDIT"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14454 $as_echo "$ac_ct_NMEDIT" >&6; }
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14457 $as_echo "no
" >&6; }
14460 if test "x
$ac_ct_NMEDIT" = x; then
14463 case $cross_compiling:$ac_tool_warned in
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14466 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14467 ac_tool_warned=yes ;;
14469 NMEDIT=$ac_ct_NMEDIT
14472 NMEDIT="$ac_cv_prog_NMEDIT"
14475 if test -n "$ac_tool_prefix"; then
14476 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14477 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14479 $as_echo_n "checking
for $ac_word...
" >&6; }
14480 if test "${ac_cv_prog_LIPO+set}" = set; then :
14481 $as_echo_n "(cached
) " >&6
14483 if test -n "$LIPO"; then
14484 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14493 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14494 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14503 LIPO=$ac_cv_prog_LIPO
14504 if test -n "$LIPO"; then
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14506 $as_echo "$LIPO" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14509 $as_echo "no
" >&6; }
14514 if test -z "$ac_cv_prog_LIPO"; then
14516 # Extract the first word of "lipo
", so it can be a program name with args.
14517 set dummy lipo; ac_word=$2
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14519 $as_echo_n "checking
for $ac_word...
" >&6; }
14520 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14521 $as_echo_n "(cached
) " >&6
14523 if test -n "$ac_ct_LIPO"; then
14524 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
14532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14533 ac_cv_prog_ac_ct_LIPO="lipo
"
14534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14543 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14544 if test -n "$ac_ct_LIPO"; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14546 $as_echo "$ac_ct_LIPO" >&6; }
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14549 $as_echo "no
" >&6; }
14552 if test "x
$ac_ct_LIPO" = x; then
14555 case $cross_compiling:$ac_tool_warned in
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14558 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14559 ac_tool_warned=yes ;;
14564 LIPO="$ac_cv_prog_LIPO"
14567 if test -n "$ac_tool_prefix"; then
14568 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14569 set dummy ${ac_tool_prefix}otool; ac_word=$2
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14571 $as_echo_n "checking
for $ac_word...
" >&6; }
14572 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14573 $as_echo_n "(cached
) " >&6
14575 if test -n "$OTOOL"; then
14576 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in $PATH
14582 test -z "$as_dir" && as_dir=.
14583 for ac_exec_ext in '' $ac_executable_extensions; do
14584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14585 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14586 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14595 OTOOL=$ac_cv_prog_OTOOL
14596 if test -n "$OTOOL"; then
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14598 $as_echo "$OTOOL" >&6; }
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14601 $as_echo "no
" >&6; }
14606 if test -z "$ac_cv_prog_OTOOL"; then
14608 # Extract the first word of "otool
", so it can be a program name with args.
14609 set dummy otool; ac_word=$2
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14611 $as_echo_n "checking
for $ac_word...
" >&6; }
14612 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14613 $as_echo_n "(cached
) " >&6
14615 if test -n "$ac_ct_OTOOL"; then
14616 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14622 test -z "$as_dir" && as_dir=.
14623 for ac_exec_ext in '' $ac_executable_extensions; do
14624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14625 ac_cv_prog_ac_ct_OTOOL="otool
"
14626 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14635 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14636 if test -n "$ac_ct_OTOOL"; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14638 $as_echo "$ac_ct_OTOOL" >&6; }
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14641 $as_echo "no
" >&6; }
14644 if test "x
$ac_ct_OTOOL" = x; then
14647 case $cross_compiling:$ac_tool_warned in
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14650 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14651 ac_tool_warned=yes ;;
14656 OTOOL="$ac_cv_prog_OTOOL"
14659 if test -n "$ac_tool_prefix"; then
14660 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14661 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14663 $as_echo_n "checking
for $ac_word...
" >&6; }
14664 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14665 $as_echo_n "(cached
) " >&6
14667 if test -n "$OTOOL64"; then
14668 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14677 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14678 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14687 OTOOL64=$ac_cv_prog_OTOOL64
14688 if test -n "$OTOOL64"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14690 $as_echo "$OTOOL64" >&6; }
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14693 $as_echo "no
" >&6; }
14698 if test -z "$ac_cv_prog_OTOOL64"; then
14699 ac_ct_OTOOL64=$OTOOL64
14700 # Extract the first word of "otool64
", so it can be a program name with args.
14701 set dummy otool64; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14703 $as_echo_n "checking
for $ac_word...
" >&6; }
14704 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14705 $as_echo_n "(cached
) " >&6
14707 if test -n "$ac_ct_OTOOL64"; then
14708 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14717 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14718 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14727 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14728 if test -n "$ac_ct_OTOOL64"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14730 $as_echo "$ac_ct_OTOOL64" >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14733 $as_echo "no
" >&6; }
14736 if test "x
$ac_ct_OTOOL64" = x; then
14739 case $cross_compiling:$ac_tool_warned in
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14742 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14743 ac_tool_warned=yes ;;
14745 OTOOL64=$ac_ct_OTOOL64
14748 OTOOL64="$ac_cv_prog_OTOOL64"
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14778 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14779 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14780 $as_echo_n "(cached
) " >&6
14782 lt_cv_apple_cc_single_mod=no
14783 if test -z "${LT_MULTI_MODULE}"; then
14784 # By default we will add the -single_module flag. You can override
14785 # by either setting the environment variable LT_MULTI_MODULE
14786 # non-empty at configure time, or by adding -multi_module to the
14788 rm -rf libconftest.dylib*
14789 echo "int foo
(void
){return 1;}" > conftest.c
14790 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14791 -dynamiclib -Wl,-single_module conftest.c
" >&5
14792 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14793 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14795 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14796 lt_cv_apple_cc_single_mod=yes
14798 cat conftest.err >&5
14800 rm -rf libconftest.dylib*
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14805 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14807 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14808 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14809 $as_echo_n "(cached
) " >&6
14811 lt_cv_ld_exported_symbols_list=no
14812 save_LDFLAGS=$LDFLAGS
14813 echo "_main
" > conftest.sym
14814 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14826 if ac_fn_c_try_link "$LINENO"; then :
14827 lt_cv_ld_exported_symbols_list=yes
14829 lt_cv_ld_exported_symbols_list=no
14831 rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833 LDFLAGS="$save_LDFLAGS"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14837 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14839 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14840 if test "${lt_cv_ld_force_load+set}" = set; then :
14841 $as_echo_n "(cached
) " >&6
14843 lt_cv_ld_force_load=no
14844 cat > conftest.c << _LT_EOF
14845 int forced_loaded() { return 2;}
14847 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14848 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14849 echo "$AR cru libconftest.a conftest.o
" >&5
14850 $AR cru libconftest.a conftest.o 2>&5
14851 cat > conftest.c << _LT_EOF
14852 int main() { return 0;}
14854 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14855 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14857 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14858 lt_cv_ld_force_load=yes
14860 cat conftest.err >&5
14862 rm -f conftest.err libconftest.a conftest conftest.c
14863 rm -rf conftest.dSYM
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14867 $as_echo "$lt_cv_ld_force_load" >&6; }
14869 rhapsody* | darwin1.[012])
14870 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14872 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14873 darwin*) # darwin 5.x on
14874 # if running on 10.5 or later, the deployment target defaults
14875 # to the OS version, if on x86, and 10.4, the deployment
14876 # target defaults to 10.4. Don't you love it?
14877 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14878 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14879 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14881 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14883 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14887 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14888 _lt_dar_single_mod='$single_module'
14890 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14891 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14893 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14895 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14896 _lt_dsymutil='~$DSYMUTIL $lib || :'
14904 for ac_header in dlfcn.h
14906 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14907 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14908 cat >>confdefs.h <<_ACEOF
14909 #define HAVE_DLFCN_H 1
14926 enable_win32_dll=no
14929 # Check whether --enable-shared was given.
14930 if test "${enable_shared+set}" = set; then :
14931 enableval=$enable_shared; p=${PACKAGE-default}
14933 yes) enable_shared=yes ;;
14934 no) enable_shared=no ;;
14937 # Look at the argument we got. We use all the common list separators.
14938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14939 for pkg in $enableval; do
14941 if test "X
$pkg" = "X
$p"; then
14960 # Check whether --enable-static was given.
14961 if test "${enable_static+set}" = set; then :
14962 enableval=$enable_static; p=${PACKAGE-default}
14964 yes) enable_static=yes ;;
14965 no) enable_static=no ;;
14968 # Look at the argument we got. We use all the common list separators.
14969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14970 for pkg in $enableval; do
14972 if test "X
$pkg" = "X
$p"; then
14992 # Check whether --with-pic was given.
14993 if test "${with_pic+set}" = set; then :
14994 withval=$with_pic; pic_mode="$withval"
15000 test -z "$pic_mode" && pic_mode=default
15008 # Check whether --enable-fast-install was given.
15009 if test "${enable_fast_install+set}" = set; then :
15010 enableval=$enable_fast_install; p=${PACKAGE-default}
15012 yes) enable_fast_install=yes ;;
15013 no) enable_fast_install=no ;;
15015 enable_fast_install=no
15016 # Look at the argument we got. We use all the common list separators.
15017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15018 for pkg in $enableval; do
15020 if test "X
$pkg" = "X
$p"; then
15021 enable_fast_install=yes
15028 enable_fast_install=yes
15041 # This can be used to rebuild libtool when needed
15042 LIBTOOL_DEPS="$ltmain"
15044 # Always use our own libtool.
15045 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15072 test -z "$LN_S" && LN_S="ln -s"
15087 if test -n "${ZSH_VERSION+set}" ; then
15088 setopt NO_GLOB_SUBST
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15092 $as_echo_n "checking
for objdir...
" >&6; }
15093 if test "${lt_cv_objdir+set}" = set; then :
15094 $as_echo_n "(cached
) " >&6
15096 rm -f .libs 2>/dev/null
15097 mkdir .libs 2>/dev/null
15098 if test -d .libs; then
15101 # MS-DOS does not allow filenames that begin with a dot.
15104 rmdir .libs 2>/dev/null
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15107 $as_echo "$lt_cv_objdir" >&6; }
15108 objdir=$lt_cv_objdir
15114 cat >>confdefs.h <<_ACEOF
15115 #define LT_OBJDIR "$lt_cv_objdir/"
15123 # AIX sometimes has problems with the GCC collect2 program. For some
15124 # reason, if we set the COLLECT_NAMES environment variable, the problems
15125 # vanish in a puff of smoke.
15126 if test "X
${COLLECT_NAMES+set}" != Xset; then
15128 export COLLECT_NAMES
15133 # Global variables:
15135 can_build_shared=yes
15137 # All known linkers require a `.a' archive for static linking (except MSVC,
15138 # which needs '.lib').
15141 with_gnu_ld="$lt_cv_prog_gnu_ld"
15144 old_CFLAGS="$CFLAGS"
15146 # Set sane defaults for various variables
15147 test -z "$CC" && CC=cc
15148 test -z "$LTCC" && LTCC=$CC
15149 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15150 test -z "$LD" && LD=ld
15151 test -z "$ac_objext" && ac_objext=o
15153 for cc_temp in $compiler""; do
15155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15161 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15164 # Only perform the check for file, if the check method requires it
15165 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15166 case $deplibs_check_method in
15168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15170 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15171 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15172 $as_echo_n "(cached
) " >&6
15176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15179 lt_save_MAGIC_CMD="$MAGIC_CMD"
15180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15181 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15182 for ac_dir in $ac_dummy; do
15184 test -z "$ac_dir" && ac_dir=.
15185 if test -f $ac_dir/${ac_tool_prefix}file; then
15186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15187 if test -n "$file_magic_test_file"; then
15188 case $deplibs_check_method in
15190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15193 $EGREP "$file_magic_regex" > /dev/null; then
15198 *** Warning: the command libtool uses to detect shared libraries,
15199 *** $file_magic_cmd, produces output that libtool cannot recognize.
15200 *** The result is that libtool may fail to recognize shared libraries
15201 *** as such. This will affect the creation of libtool libraries that
15202 *** depend on shared libraries, but programs linked with such libtool
15203 *** libraries will work regardless of this problem. Nevertheless, you
15204 *** may want to report the problem to your system manager and/or to
15205 *** bug-libtool@gnu.org
15215 MAGIC_CMD="$lt_save_MAGIC_CMD"
15220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15221 if test -n "$MAGIC_CMD"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15223 $as_echo "$MAGIC_CMD" >&6; }
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15226 $as_echo "no
" >&6; }
15233 if test -z "$lt_cv_path_MAGIC_CMD"; then
15234 if test -n "$ac_tool_prefix"; then
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15236 $as_echo_n "checking
for file...
" >&6; }
15237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15238 $as_echo_n "(cached
) " >&6
15242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15245 lt_save_MAGIC_CMD="$MAGIC_CMD"
15246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15247 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15248 for ac_dir in $ac_dummy; do
15250 test -z "$ac_dir" && ac_dir=.
15251 if test -f $ac_dir/file; then
15252 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15253 if test -n "$file_magic_test_file"; then
15254 case $deplibs_check_method in
15256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15259 $EGREP "$file_magic_regex" > /dev/null; then
15264 *** Warning: the command libtool uses to detect shared libraries,
15265 *** $file_magic_cmd, produces output that libtool cannot recognize.
15266 *** The result is that libtool may fail to recognize shared libraries
15267 *** as such. This will affect the creation of libtool libraries that
15268 *** depend on shared libraries, but programs linked with such libtool
15269 *** libraries will work regardless of this problem. Nevertheless, you
15270 *** may want to report the problem to your system manager and/or to
15271 *** bug-libtool@gnu.org
15281 MAGIC_CMD="$lt_save_MAGIC_CMD"
15286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15287 if test -n "$MAGIC_CMD"; then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15289 $as_echo "$MAGIC_CMD" >&6; }
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15292 $as_echo "no
" >&6; }
15305 # Use C for the default configuration in the libtool script
15309 ac_cpp='$CPP $CPPFLAGS'
15310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15315 # Source file extension for C test sources.
15318 # Object file extension for compiled C test sources.
15322 # Code to be used in simple compile tests
15323 lt_simple_compile_test_code="int some_variable
= 0;"
15325 # Code to be used in simple link tests
15326 lt_simple_link_test_code='int main(){return(0);}'
15334 # If no C compiler was specified, use CC.
15337 # If no C compiler flags were specified, use CFLAGS.
15338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15340 # Allow CC to be a program name with arguments.
15343 # Save the default compiler, since it gets overwritten when the other
15344 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15345 compiler_DEFAULT=$CC
15347 # save warnings/boilerplate of simple test code
15348 ac_outfile=conftest.$ac_objext
15349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15351 _lt_compiler_boilerplate=`cat conftest.err`
15354 ac_outfile=conftest.$ac_objext
15355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15357 _lt_linker_boilerplate=`cat conftest.err`
15362 ## There is no encapsulation within the following macros, do not change
15363 ## the running order or otherwise move them around unless you know exactly
15364 ## what you are doing...
15365 if test -n "$compiler"; then
15367 lt_prog_compiler_no_builtin_flag=
15369 if test "$GCC" = yes; then
15370 case $cc_basename in
15372 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15374 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15378 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15379 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15380 $as_echo_n "(cached
) " >&6
15382 lt_cv_prog_compiler_rtti_exceptions=no
15383 ac_outfile=conftest.$ac_objext
15384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15385 lt_compiler_flag="-fno-rtti -fno-exceptions"
15386 # Insert the option either (1) after the last *FLAGS variable, or
15387 # (2) before a word containing "conftest.
", or (3) at the end.
15388 # Note that $ac_compile itself does not contain backslashes and begins
15389 # with a dollar sign (not a hyphen), so the echo should work correctly.
15390 # The option is referenced via a variable to avoid confusing sed.
15391 lt_compile=`echo "$ac_compile" | $SED \
15392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15394 -e 's:$: $lt_compiler_flag:'`
15395 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15396 (eval "$lt_compile" 2>conftest.err)
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15400 if (exit $ac_status) && test -s "$ac_outfile"; then
15401 # The compiler can only warn and ignore the option if not recognized
15402 # So say no if there are warnings other than the usual output.
15403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15406 lt_cv_prog_compiler_rtti_exceptions=yes
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15413 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15415 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15416 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15428 lt_prog_compiler_wl=
15429 lt_prog_compiler_pic=
15430 lt_prog_compiler_static=
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15433 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15435 if test "$GCC" = yes; then
15436 lt_prog_compiler_wl='-Wl,'
15437 lt_prog_compiler_static='-static'
15441 # All AIX code is PIC.
15442 if test "$host_cpu" = ia64; then
15443 # AIX 5 now supports IA64 processor
15444 lt_prog_compiler_static='-Bstatic'
15446 lt_prog_compiler_pic='-fPIC'
15452 # see comment about AmigaOS4 .so support
15453 lt_prog_compiler_pic='-fPIC'
15456 # FIXME: we need at least 68020 code to build shared libraries, but
15457 # adding the `-m68020' flag to GCC prevents building anything better,
15459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15465 # PIC is the default for these OSes.
15468 mingw* | cygwin* | pw32* | os2* | cegcc*)
15469 # This hack is so that the source file can tell whether it is being
15470 # built for inclusion in a dll (and should export symbols for example).
15471 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15472 # (--disable-auto-import) libraries
15473 lt_prog_compiler_pic='-DDLL_EXPORT'
15476 darwin* | rhapsody*)
15477 # PIC is the default on this platform
15478 # Common symbols not allowed in MH_DYLIB files
15479 lt_prog_compiler_pic='-fno-common'
15483 # PIC is the default for Haiku.
15484 # The "-static" flag exists, but is broken.
15485 lt_prog_compiler_static=
15489 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15490 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15491 # sets the default TLS model and affects inlining.
15497 lt_prog_compiler_pic='-fPIC'
15503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15504 # Instead, we relocate shared libraries at runtime.
15508 # Just because we use GCC doesn't mean we suddenly get shared libraries
15509 # on systems that don't support them.
15510 lt_prog_compiler_can_build_shared=no
15515 # QNX uses GNU C++, but need to define -shared option too, otherwise
15516 # it will coredump.
15517 lt_prog_compiler_pic='-fPIC -shared'
15521 if test -d /usr/nec; then
15522 lt_prog_compiler_pic=-Kconform_pic
15527 lt_prog_compiler_pic='-fPIC'
15531 case $cc_basename in
15532 nvcc*) # Cuda Compiler Driver 2.2
15533 lt_prog_compiler_wl='-Xlinker '
15534 lt_prog_compiler_pic='-Xcompiler -fPIC'
15538 # PORTME Check for flag to pass linker flags through the system compiler.
15541 lt_prog_compiler_wl='-Wl,'
15542 if test "$host_cpu" = ia64; then
15543 # AIX 5 now supports IA64 processor
15544 lt_prog_compiler_static='-Bstatic'
15546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15550 mingw* | cygwin* | pw32* | os2* | cegcc*)
15551 # This hack is so that the source file can tell whether it is being
15552 # built for inclusion in a dll (and should export symbols for example).
15553 lt_prog_compiler_pic='-DDLL_EXPORT'
15556 hpux9* | hpux10* | hpux11*)
15557 lt_prog_compiler_wl='-Wl,'
15558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15559 # not for PA HP-UX.
15565 lt_prog_compiler_pic='+Z'
15568 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15569 lt_prog_compiler_static='${wl}-a ${wl}archive'
15572 irix5* | irix6* | nonstopux*)
15573 lt_prog_compiler_wl='-Wl,'
15574 # PIC (with -KPIC) is the default.
15575 lt_prog_compiler_static='-non_shared'
15578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15579 case $cc_basename in
15580 # old Intel for x86_64 which still supported -KPIC.
15582 lt_prog_compiler_wl='-Wl,'
15583 lt_prog_compiler_pic='-KPIC'
15584 lt_prog_compiler_static='-static'
15586 # icc used to be incompatible with GCC.
15587 # ICC 10 doesn't accept -KPIC any more.
15589 lt_prog_compiler_wl='-Wl,'
15590 lt_prog_compiler_pic='-fPIC'
15591 lt_prog_compiler_static='-static'
15593 # Lahey Fortran 8.1.
15595 lt_prog_compiler_wl='-Wl,'
15596 lt_prog_compiler_pic='--shared'
15597 lt_prog_compiler_static='--static'
15599 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15600 # Portland Group compilers (*not* the Pentium gcc compiler,
15601 # which looks to be a dead project)
15602 lt_prog_compiler_wl='-Wl,'
15603 lt_prog_compiler_pic='-fpic'
15604 lt_prog_compiler_static='-Bstatic'
15607 lt_prog_compiler_wl='-Wl,'
15608 # All Alpha code is PIC.
15609 lt_prog_compiler_static='-non_shared'
15611 xl* | bgxl* | bgf* | mpixl*)
15612 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15613 lt_prog_compiler_wl='-Wl,'
15614 lt_prog_compiler_pic='-qpic'
15615 lt_prog_compiler_static='-qstaticlink'
15618 case `$CC -V 2>&1 | sed 5q` in
15619 *Sun\ F* | *Sun*Fortran*)
15620 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15621 lt_prog_compiler_pic='-KPIC'
15622 lt_prog_compiler_static='-Bstatic'
15623 lt_prog_compiler_wl=''
15627 lt_prog_compiler_pic='-KPIC'
15628 lt_prog_compiler_static='-Bstatic'
15629 lt_prog_compiler_wl='-Wl,'
15637 lt_prog_compiler_pic='-KPIC'
15638 lt_prog_compiler_static='-Bstatic'
15642 # QNX uses GNU C++, but need to define -shared option too, otherwise
15643 # it will coredump.
15644 lt_prog_compiler_pic='-fPIC -shared'
15647 osf3* | osf4* | osf5*)
15648 lt_prog_compiler_wl='-Wl,'
15649 # All OSF/1 code is PIC.
15650 lt_prog_compiler_static='-non_shared'
15654 lt_prog_compiler_static='-non_shared'
15658 lt_prog_compiler_pic='-KPIC'
15659 lt_prog_compiler_static='-Bstatic'
15660 case $cc_basename in
15661 f77* | f90* | f95*)
15662 lt_prog_compiler_wl='-Qoption ld ';;
15664 lt_prog_compiler_wl='-Wl,';;
15669 lt_prog_compiler_wl='-Qoption ld '
15670 lt_prog_compiler_pic='-PIC'
15671 lt_prog_compiler_static='-Bstatic'
15674 sysv4 | sysv4.2uw2* | sysv4.3*)
15675 lt_prog_compiler_wl='-Wl,'
15676 lt_prog_compiler_pic='-KPIC'
15677 lt_prog_compiler_static='-Bstatic'
15681 if test -d /usr/nec ;then
15682 lt_prog_compiler_pic='-Kconform_pic'
15683 lt_prog_compiler_static='-Bstatic'
15687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15688 lt_prog_compiler_wl='-Wl,'
15689 lt_prog_compiler_pic='-KPIC'
15690 lt_prog_compiler_static='-Bstatic'
15694 lt_prog_compiler_wl='-Wl,'
15695 lt_prog_compiler_can_build_shared=no
15699 lt_prog_compiler_pic='-pic'
15700 lt_prog_compiler_static='-Bstatic'
15704 lt_prog_compiler_can_build_shared=no
15710 # For platforms which do not support PIC, -DPIC is meaningless:
15712 lt_prog_compiler_pic=
15715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15719 $as_echo "$lt_prog_compiler_pic" >&6; }
15727 # Check to make sure the PIC flag actually works.
15729 if test -n "$lt_prog_compiler_pic"; then
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15731 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15732 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15733 $as_echo_n "(cached
) " >&6
15735 lt_cv_prog_compiler_pic_works=no
15736 ac_outfile=conftest.$ac_objext
15737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15738 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15739 # Insert the option either (1) after the last *FLAGS variable, or
15740 # (2) before a word containing "conftest.
", or (3) at the end.
15741 # Note that $ac_compile itself does not contain backslashes and begins
15742 # with a dollar sign (not a hyphen), so the echo should work correctly.
15743 # The option is referenced via a variable to avoid confusing sed.
15744 lt_compile=`echo "$ac_compile" | $SED \
15745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15747 -e 's:$: $lt_compiler_flag:'`
15748 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15749 (eval "$lt_compile" 2>conftest.err)
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15753 if (exit $ac_status) && test -s "$ac_outfile"; then
15754 # The compiler can only warn and ignore the option if not recognized
15755 # So say no if there are warnings other than the usual output.
15756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15759 lt_cv_prog_compiler_pic_works=yes
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15766 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15768 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15769 case $lt_prog_compiler_pic in
15771 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15774 lt_prog_compiler_pic=
15775 lt_prog_compiler_can_build_shared=no
15786 # Check to make sure the static flag actually works.
15788 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15790 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15791 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15792 $as_echo_n "(cached
) " >&6
15794 lt_cv_prog_compiler_static_works=no
15795 save_LDFLAGS="$LDFLAGS"
15796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15799 # The linker can only warn and ignore the option if not recognized
15800 # So say no if there are warnings
15801 if test -s conftest.err; then
15802 # Append any errors to the config.log.
15803 cat conftest.err 1>&5
15804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15806 if diff conftest.exp conftest.er2 >/dev/null; then
15807 lt_cv_prog_compiler_static_works=yes
15810 lt_cv_prog_compiler_static_works=yes
15814 LDFLAGS="$save_LDFLAGS"
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15818 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15820 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15823 lt_prog_compiler_static=
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15833 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15834 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15835 $as_echo_n "(cached
) " >&6
15837 lt_cv_prog_compiler_c_o=no
15838 $RM -r conftest 2>/dev/null
15842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15844 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15845 # Insert the option either (1) after the last *FLAGS variable, or
15846 # (2) before a word containing "conftest.
", or (3) at the end.
15847 # Note that $ac_compile itself does not contain backslashes and begins
15848 # with a dollar sign (not a hyphen), so the echo should work correctly.
15849 lt_compile=`echo "$ac_compile" | $SED \
15850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15852 -e 's:$: $lt_compiler_flag:'`
15853 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15854 (eval "$lt_compile" 2>out/conftest.err)
15856 cat out/conftest.err >&5
15857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15860 # The compiler can only warn and ignore the option if not recognized
15861 # So say no if there are warnings
15862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15865 lt_cv_prog_compiler_c_o=yes
15870 # SGI C++ compiler will create directory out/ii_files/ for
15871 # template instantiation
15872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15873 $RM out/* && rmdir out
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15880 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15888 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15889 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15890 $as_echo_n "(cached
) " >&6
15892 lt_cv_prog_compiler_c_o=no
15893 $RM -r conftest 2>/dev/null
15897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15899 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15900 # Insert the option either (1) after the last *FLAGS variable, or
15901 # (2) before a word containing "conftest.
", or (3) at the end.
15902 # Note that $ac_compile itself does not contain backslashes and begins
15903 # with a dollar sign (not a hyphen), so the echo should work correctly.
15904 lt_compile=`echo "$ac_compile" | $SED \
15905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15907 -e 's:$: $lt_compiler_flag:'`
15908 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15909 (eval "$lt_compile" 2>out/conftest.err)
15911 cat out/conftest.err >&5
15912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15915 # The compiler can only warn and ignore the option if not recognized
15916 # So say no if there are warnings
15917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15920 lt_cv_prog_compiler_c_o=yes
15925 # SGI C++ compiler will create directory out/ii_files/ for
15926 # template instantiation
15927 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15928 $RM out/* && rmdir out
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15935 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15940 hard_links="nottested
"
15941 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15942 # do not overwrite the value of need_locks provided by the user
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15944 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15949 ln conftest.a conftest.b 2>&5 || hard_links=no
15950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15952 $as_echo "$hard_links" >&6; }
15953 if test "$hard_links" = no; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15955 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15968 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15971 allow_undefined_flag=
15972 always_export_symbols=no
15974 archive_expsym_cmds=
15975 compiler_needs_object=no
15976 enable_shared_with_static_runtimes=no
15977 export_dynamic_flag_spec=
15978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15979 hardcode_automatic=no
15981 hardcode_direct_absolute=no
15982 hardcode_libdir_flag_spec=
15983 hardcode_libdir_flag_spec_ld=
15984 hardcode_libdir_separator=
15985 hardcode_minus_L=no
15986 hardcode_shlibpath_var=unsupported
15988 link_all_deplibs=unknown
15990 module_expsym_cmds=
15991 old_archive_from_new_cmds=
15992 old_archive_from_expsyms_cmds=
15993 thread_safe_flag_spec=
15994 whole_archive_flag_spec=
15995 # include_expsyms should be a list of space-separated symbols to be *always*
15996 # included in the symbol list
15998 # exclude_expsyms can be an extended regexp of symbols to exclude
15999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16001 # as well as any symbol that contains `d'.
16002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16004 # platforms (ab)use it in PIC code, but their linkers get confused if
16005 # the symbol is explicitly referenced. Since portable code cannot
16006 # rely on this symbol name, it's probably fine to never include it in
16007 # preloaded symbol tables.
16008 # Exclude shared library initialization/finalization symbols.
16009 extract_expsyms_cmds=
16012 cygwin* | mingw* | pw32* | cegcc*)
16013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16014 # When not using gcc, we currently assume that we are using
16015 # Microsoft Visual C++.
16016 if test "$GCC" != yes; then
16021 # we just hope/assume this is gcc and not c89 (= MSVC++)
16031 # On some targets, GNU ld is compatible enough with the native linker
16032 # that we're better off using the native interface for both.
16033 lt_use_gnu_ld_interface=no
16034 if test "$with_gnu_ld" = yes; then
16037 # The AIX port of GNU ld has always aspired to compatibility
16038 # with the native linker. However, as the warning in the GNU ld
16039 # block says, versions before 2.19.5* couldn't really create working
16040 # shared libraries, regardless of the interface used.
16041 case `$LD -v 2>&1` in
16042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16044 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16046 lt_use_gnu_ld_interface=yes
16051 lt_use_gnu_ld_interface=yes
16056 if test "$lt_use_gnu_ld_interface" = yes; then
16057 # If archive_cmds runs LD, not CC, wlarc should be empty
16060 # Set some defaults for GNU ld with shared library support. These
16061 # are reset later if shared libraries are not supported. Putting them
16062 # here allows them to be overridden if necessary.
16063 runpath_var=LD_RUN_PATH
16064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16065 export_dynamic_flag_spec='${wl}--export-dynamic'
16066 # ancient GNU ld didn't support --whole-archive et. al.
16067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16068 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16070 whole_archive_flag_spec=
16072 supports_anon_versioning=no
16073 case `$LD -v 2>&1` in
16074 *GNU\ gold*) supports_anon_versioning=yes ;;
16075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16078 *\ 2.11.*) ;; # other 2.11 versions
16079 *) supports_anon_versioning=yes ;;
16082 # See if GNU ld supports shared libraries.
16085 # On AIX/PPC, the GNU linker is very broken
16086 if test "$host_cpu" != ia64; then
16090 *** Warning: the GNU linker, at least up to release 2.19, is reported
16091 *** to be unable to reliably create shared libraries on AIX.
16092 *** Therefore, libtool is disabling shared libraries support. If you
16093 *** really care for shared libraries, you may want to install binutils
16094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16095 *** You will then need to restart the configuration process.
16104 # see comment about AmigaOS4 .so support
16105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16106 archive_expsym_cmds=''
16109 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)'
16110 hardcode_libdir_flag_spec
='-L$libdir'
16111 hardcode_minus_L
=yes
16117 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16118 allow_undefined_flag
=unsupported
16119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16120 # support --undefined. This deserves some investigation. FIXME
16121 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16127 cygwin
* | mingw
* | pw32
* | cegcc
*)
16128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16129 # as there is no search path for DLLs.
16130 hardcode_libdir_flag_spec
='-L$libdir'
16131 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16132 allow_undefined_flag
=unsupported
16133 always_export_symbols
=no
16134 enable_shared_with_static_runtimes
=yes
16135 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16137 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16138 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16139 # If the export-symbols file already is a .def file (1st line
16140 # is EXPORTS), use it as is; otherwise, prepend...
16141 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16142 cp $export_symbols $output_objdir/$soname.def;
16144 echo EXPORTS > $output_objdir/$soname.def;
16145 cat $export_symbols >> $output_objdir/$soname.def;
16147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16154 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16155 link_all_deplibs
=yes
16160 hardcode_shlibpath_var
=no
16161 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16162 export_dynamic_flag_spec
='${wl}-E'
16163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16164 # Instead, shared libraries are loaded at an image base (0x10000000 by
16165 # default) and relocated if they conflict, which is a slow very memory
16166 # consuming and fragmenting process. To avoid this, we pick a random,
16167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16169 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16170 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'
16173 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16175 if test "$host_os" = linux-dietlibc
; then
16176 case $cc_basename in
16177 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16180 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16181 && test "$tmp_diet" = no
16183 tmp_addflag
=' $pic_flag'
16184 tmp_sharedflag
='-shared'
16185 case $cc_basename,$host_cpu in
16186 pgcc
*) # Portland Group C compiler
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'
16190 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16191 # Portland Group f77 and f90 compilers
16192 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'
16193 tmp_addflag
=' $pic_flag -Mnomain' ;;
16194 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16195 tmp_addflag
=' -i_dynamic' ;;
16196 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16197 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16198 ifc
* | ifort
*) # Intel Fortran compiler
16199 tmp_addflag
=' -nofor_main' ;;
16200 lf95
*) # Lahey Fortran 8.1
16201 whole_archive_flag_spec
=
16202 tmp_sharedflag
='--shared' ;;
16203 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16204 tmp_sharedflag
='-qmkshrobj'
16206 nvcc
*) # Cuda Compiler Driver 2.2
16207 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'
16208 compiler_needs_object
=yes
16211 case `$CC -V 2>&1 | sed 5q` in
16212 *Sun\ C
*) # Sun C 5.9
16213 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'
16214 compiler_needs_object
=yes
16215 tmp_sharedflag
='-G' ;;
16216 *Sun\ F
*) # Sun Fortran 8.3
16217 tmp_sharedflag
='-G' ;;
16219 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16221 if test "x$supports_anon_versioning" = xyes
; then
16222 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16224 echo "local: *; };" >> $output_objdir/$libname.ver~
16225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16228 case $cc_basename in
16229 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16230 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16231 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16232 hardcode_libdir_flag_spec
=
16233 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16234 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16235 if test "x$supports_anon_versioning" = xyes
; then
16236 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16238 echo "local: *; };" >> $output_objdir/$libname.ver~
16239 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16249 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16250 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16253 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16254 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16259 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16264 *** create shared libraries on Solaris systems. Therefore, libtool
16265 *** is disabling shared libraries support. We urge you to upgrade GNU
16266 *** binutils to release 2.9.1 or newer. Another option is to modify
16267 *** your PATH or compiler configuration so that the native linker is
16268 *** used, and then restart.
16271 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16272 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16273 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16279 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16280 case `$LD -v 2>&1` in
16281 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16286 *** reliably create shared libraries on SCO systems. Therefore, libtool
16287 *** is disabling shared libraries support. We urge you to upgrade GNU
16288 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16289 *** your PATH or compiler configuration so that the native linker is
16290 *** used, and then restart.
16295 # For security reasons, it is highly recommended that you always
16296 # use absolute paths for naming shared libraries, and exclude the
16297 # DT_RUNPATH tag from executables and libraries. But doing so
16298 # requires that you compile everything twice, which is a pain.
16299 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16300 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16301 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16302 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16311 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16313 hardcode_direct
=yes
16314 hardcode_shlibpath_var
=no
16318 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16319 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16320 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16327 if test "$ld_shlibs" = no
; then
16329 hardcode_libdir_flag_spec
=
16330 export_dynamic_flag_spec
=
16331 whole_archive_flag_spec
=
16334 # PORTME fill in a description of your system's linker (not GNU ld)
16337 allow_undefined_flag
=unsupported
16338 always_export_symbols
=yes
16339 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'
16340 # Note: this linker hardcodes the directories in LIBPATH if there
16341 # are no directories specified by -L.
16342 hardcode_minus_L
=yes
16343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16344 # Neither direct hardcoding nor static linking is supported with a
16346 hardcode_direct
=unsupported
16351 if test "$host_cpu" = ia64
; then
16352 # On IA64, the linker does run time linking by default, so we don't
16353 # have to do anything special.
16354 aix_use_runtimelinking
=no
16355 exp_sym_flag
='-Bexport'
16358 # If we're using GNU nm, then we don't want the "-C" option.
16359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16360 # Also, AIX nm treats weak defined symbols like other global
16361 # defined symbols, whereas GNU nm marks them as "W".
16362 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16363 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'
16365 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'
16367 aix_use_runtimelinking
=no
16369 # Test if we are trying to use run time linking or normal
16370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16371 # need to do runtime linking.
16372 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16373 for ld_flag
in $LDFLAGS; do
16374 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16375 aix_use_runtimelinking
=yes
16382 exp_sym_flag
='-bexport'
16383 no_entry_flag
='-bnoentry'
16386 # When large executables or shared objects are built, AIX ld can
16387 # have problems creating the table of contents. If linking a library
16388 # or program results in "error TOC overflow" add -mminimal-toc to
16389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16393 hardcode_direct
=yes
16394 hardcode_direct_absolute
=yes
16395 hardcode_libdir_separator
=':'
16396 link_all_deplibs
=yes
16397 file_list_spec
='${wl}-f,'
16399 if test "$GCC" = yes; then
16400 case $host_os in aix4.
[012]|aix4.
[012].
*)
16401 # We only want to do this on AIX 4.2 and lower, the check
16402 # below for broken collect2 doesn't work under 4.3+
16403 collect2name
=`${CC} -print-prog-name=collect2`
16404 if test -f "$collect2name" &&
16405 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16407 # We have reworked collect2
16410 # We have old collect2
16411 hardcode_direct
=unsupported
16412 # It fails to find uninstalled libraries when the uninstalled
16413 # path is not listed in the libpath. Setting hardcode_minus_L
16414 # to unsupported forces relinking
16415 hardcode_minus_L
=yes
16416 hardcode_libdir_flag_spec
='-L$libdir'
16417 hardcode_libdir_separator
=
16421 shared_flag
='-shared'
16422 if test "$aix_use_runtimelinking" = yes; then
16423 shared_flag
="$shared_flag "'${wl}-G'
16427 if test "$host_cpu" = ia64
; then
16428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16429 # chokes on -Wl,-G. The following line is correct:
16432 if test "$aix_use_runtimelinking" = yes; then
16433 shared_flag
='${wl}-G'
16435 shared_flag
='${wl}-bM:SRE'
16440 export_dynamic_flag_spec
='${wl}-bexpall'
16441 # It seems that -bexpall does not export symbols beginning with
16442 # underscore (_), so it is better to generate a list of symbols to export.
16443 always_export_symbols
=yes
16444 if test "$aix_use_runtimelinking" = yes; then
16445 # Warning - without using the other runtime loading flags (-brtl),
16446 # -berok will link without error, but may produce a broken library.
16447 allow_undefined_flag
='-berok'
16448 # Determine the default libpath from the value encoded in an
16449 # empty executable.
16450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16461 if ac_fn_c_try_link
"$LINENO"; then :
16463 lt_aix_libpath_sed
='
16464 /Import File Strings/,/^$/ {
16470 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16471 # Check for a 64-bit object if we didn't find anything.
16472 if test -z "$aix_libpath"; then
16473 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16476 rm -f core conftest.err conftest.
$ac_objext \
16477 conftest
$ac_exeext conftest.
$ac_ext
16478 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16480 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16481 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"
16483 if test "$host_cpu" = ia64
; then
16484 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16485 allow_undefined_flag
="-z nodefs"
16486 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"
16488 # Determine the default libpath from the value encoded in an
16489 # empty executable.
16490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h. */
16501 if ac_fn_c_try_link
"$LINENO"; then :
16503 lt_aix_libpath_sed
='
16504 /Import File Strings/,/^$/ {
16510 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16511 # Check for a 64-bit object if we didn't find anything.
16512 if test -z "$aix_libpath"; then
16513 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16516 rm -f core conftest.err conftest.
$ac_objext \
16517 conftest
$ac_exeext conftest.
$ac_ext
16518 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16520 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16521 # Warning - without using the other run time loading flags,
16522 # -berok will link without error, but may produce a broken library.
16523 no_undefined_flag
=' ${wl}-bernotok'
16524 allow_undefined_flag
=' ${wl}-berok'
16525 if test "$with_gnu_ld" = yes; then
16526 # We only use this code for GNU lds that support --whole-archive.
16527 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16529 # Exported symbols can be pulled into shared objects from archives
16530 whole_archive_flag_spec
='$convenience'
16532 archive_cmds_need_lc
=yes
16533 # This is similar to how AIX traditionally builds its shared libraries.
16534 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'
16542 # see comment about AmigaOS4 .so support
16543 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16544 archive_expsym_cmds
=''
16547 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)'
16548 hardcode_libdir_flag_spec
='-L$libdir'
16549 hardcode_minus_L
=yes
16555 export_dynamic_flag_spec
=-rdynamic
16558 cygwin
* | mingw
* | pw32
* | cegcc
*)
16559 # When not using gcc, we currently assume that we are using
16560 # Microsoft Visual C++.
16561 # hardcode_libdir_flag_spec is actually meaningless, as there is
16562 # no search path for DLLs.
16563 hardcode_libdir_flag_spec
=' '
16564 allow_undefined_flag
=unsupported
16565 # Tell ltmain to make .lib files, not .a files.
16567 # Tell ltmain to make .dll files, not .so files.
16569 # FIXME: Setting linknames here is a bad hack.
16570 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16571 # The linker will automatically build a .lib file if we build a DLL.
16572 old_archive_from_new_cmds
='true'
16573 # FIXME: Should let the user specify the lib program.
16574 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16575 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16576 enable_shared_with_static_runtimes
=yes
16579 darwin
* | rhapsody
*)
16582 archive_cmds_need_lc
=no
16584 hardcode_automatic
=yes
16585 hardcode_shlibpath_var
=unsupported
16586 if test "$lt_cv_ld_force_load" = "yes"; then
16587 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\"`'
16589 whole_archive_flag_spec
=''
16591 link_all_deplibs
=yes
16592 allow_undefined_flag
="$_lt_dar_allow_undefined"
16593 case $cc_basename in
16594 ifort
*) _lt_dar_can_shared
=yes ;;
16595 *) _lt_dar_can_shared
=$GCC ;;
16597 if test "$_lt_dar_can_shared" = "yes"; then
16598 output_verbose_link_cmd
=func_echo_all
16599 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16600 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16601 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}"
16602 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}"
16611 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612 hardcode_libdir_flag_spec
='-L$libdir'
16613 hardcode_shlibpath_var
=no
16616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16617 # support. Future versions do this automatically, but an explicit c++rt0.o
16618 # does not break anything, and helps significantly (at the cost of a little
16621 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16622 hardcode_libdir_flag_spec
='-R$libdir'
16623 hardcode_direct
=yes
16624 hardcode_shlibpath_var
=no
16627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16629 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16630 hardcode_direct
=yes
16631 hardcode_minus_L
=yes
16632 hardcode_shlibpath_var
=no
16635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16636 freebsd
* | dragonfly
*)
16637 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16638 hardcode_libdir_flag_spec
='-R$libdir'
16639 hardcode_direct
=yes
16640 hardcode_shlibpath_var
=no
16644 if test "$GCC" = yes; then
16645 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'
16647 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'
16649 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16650 hardcode_libdir_separator
=:
16651 hardcode_direct
=yes
16653 # hardcode_minus_L: Not really in the search PATH,
16654 # but as the default location of the library.
16655 hardcode_minus_L
=yes
16656 export_dynamic_flag_spec
='${wl}-E'
16660 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16661 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16663 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16665 if test "$with_gnu_ld" = no
; then
16666 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16667 hardcode_libdir_flag_spec_ld
='+b $libdir'
16668 hardcode_libdir_separator
=:
16669 hardcode_direct
=yes
16670 hardcode_direct_absolute
=yes
16671 export_dynamic_flag_spec
='${wl}-E'
16672 # hardcode_minus_L: Not really in the search PATH,
16673 # but as the default location of the library.
16674 hardcode_minus_L
=yes
16679 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16682 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16685 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16688 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16694 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16697 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16701 # Older versions of the 11.00 compiler do not understand -b yet
16702 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16704 $as_echo_n "checking if $CC understands -b... " >&6; }
16705 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16706 $as_echo_n "(cached) " >&6
16708 lt_cv_prog_compiler__b
=no
16709 save_LDFLAGS
="$LDFLAGS"
16710 LDFLAGS
="$LDFLAGS -b"
16711 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16712 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16713 # The linker can only warn and ignore the option if not recognized
16714 # So say no if there are warnings
16715 if test -s conftest.err
; then
16716 # Append any errors to the config.log.
16717 cat conftest.err
1>&5
16718 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16719 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16720 if diff conftest.exp conftest.er2
>/dev
/null
; then
16721 lt_cv_prog_compiler__b
=yes
16724 lt_cv_prog_compiler__b
=yes
16728 LDFLAGS
="$save_LDFLAGS"
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16732 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16734 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16735 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16743 if test "$with_gnu_ld" = no
; then
16744 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16745 hardcode_libdir_separator
=:
16750 hardcode_shlibpath_var
=no
16753 hardcode_direct
=yes
16754 hardcode_direct_absolute
=yes
16755 export_dynamic_flag_spec
='${wl}-E'
16757 # hardcode_minus_L: Not really in the search PATH,
16758 # but as the default location of the library.
16759 hardcode_minus_L
=yes
16765 irix5
* | irix6
* | nonstopux
*)
16766 if test "$GCC" = yes; then
16767 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'
16768 # Try to use the -exported_symbol ld option, if it does not
16769 # work, assume that -exports_file does not work either and
16770 # implicitly export all symbols.
16771 save_LDFLAGS
="$LDFLAGS"
16772 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h. */
16777 if ac_fn_c_try_link
"$LINENO"; then :
16778 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'
16781 rm -f core conftest.err conftest.
$ac_objext \
16782 conftest
$ac_exeext conftest.
$ac_ext
16783 LDFLAGS
="$save_LDFLAGS"
16785 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'
16786 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'
16788 archive_cmds_need_lc
='no'
16789 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16790 hardcode_libdir_separator
=:
16792 link_all_deplibs
=yes
16796 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16797 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16799 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16801 hardcode_libdir_flag_spec
='-R$libdir'
16802 hardcode_direct
=yes
16803 hardcode_shlibpath_var
=no
16807 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808 hardcode_direct
=yes
16809 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16810 hardcode_libdir_separator
=:
16811 hardcode_shlibpath_var
=no
16818 if test -f /usr
/libexec
/ld.so
; then
16819 hardcode_direct
=yes
16820 hardcode_shlibpath_var
=no
16821 hardcode_direct_absolute
=yes
16822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16823 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16824 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16825 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16826 export_dynamic_flag_spec
='${wl}-E'
16829 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16830 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16831 hardcode_libdir_flag_spec
='-R$libdir'
16834 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16835 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16845 hardcode_libdir_flag_spec
='-L$libdir'
16846 hardcode_minus_L
=yes
16847 allow_undefined_flag
=unsupported
16848 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'
16849 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16853 if test "$GCC" = yes; then
16854 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16855 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'
16857 allow_undefined_flag
=' -expect_unresolved \*'
16858 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'
16860 archive_cmds_need_lc
='no'
16861 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16862 hardcode_libdir_separator
=:
16865 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16866 if test "$GCC" = yes; then
16867 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16868 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'
16869 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16871 allow_undefined_flag
=' -expect_unresolved \*'
16872 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'
16873 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~
16874 $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'
16876 # Both c and cxx compiler support -rpath directly
16877 hardcode_libdir_flag_spec
='-rpath $libdir'
16879 archive_cmds_need_lc
='no'
16880 hardcode_libdir_separator
=:
16884 no_undefined_flag
=' -z defs'
16885 if test "$GCC" = yes; then
16887 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16888 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16889 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16891 case `$CC -V 2>&1` in
16894 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16895 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16900 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16901 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16902 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16906 hardcode_libdir_flag_spec
='-R$libdir'
16907 hardcode_shlibpath_var
=no
16909 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16911 # The compiler driver will combine and reorder linker options,
16912 # but understands `-z linker_flag'. GCC discards it without `$wl',
16913 # but is careful enough not to reorder.
16914 # Supported since Solaris 2.6 (maybe 2.5.1?)
16915 if test "$GCC" = yes; then
16916 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16918 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16922 link_all_deplibs
=yes
16926 if test "x$host_vendor" = xsequent
; then
16927 # Use $CC to link under sequent, because it throws in some extra .o
16928 # files that make .init and .fini sections work.
16929 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16931 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16933 hardcode_libdir_flag_spec
='-L$libdir'
16934 hardcode_direct
=yes
16935 hardcode_minus_L
=yes
16936 hardcode_shlibpath_var
=no
16940 case $host_vendor in
16942 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16943 hardcode_direct
=yes # is this really true???
16946 ## LD is ld it makes a PLAMLIB
16947 ## CC just makes a GrossModule.
16948 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16949 reload_cmds
='$CC -r -o $output$reload_objs'
16953 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16954 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16957 runpath_var
='LD_RUN_PATH'
16958 hardcode_shlibpath_var
=no
16962 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963 hardcode_shlibpath_var
=no
16964 export_dynamic_flag_spec
='-Bexport'
16968 if test -d /usr
/nec
; then
16969 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970 hardcode_shlibpath_var
=no
16971 runpath_var
=LD_RUN_PATH
16972 hardcode_runpath_var
=yes
16977 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16978 no_undefined_flag
='${wl}-z,text'
16979 archive_cmds_need_lc
=no
16980 hardcode_shlibpath_var
=no
16981 runpath_var
='LD_RUN_PATH'
16983 if test "$GCC" = yes; then
16984 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16985 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16987 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16988 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16992 sysv5
* | sco3.2v5
* | sco5v6
*)
16993 # Note: We can NOT use -z defs as we might desire, because we do not
16994 # link with -lc, and that would cause any symbols used from libc to
16995 # always be unresolved, which means just about no library would
16996 # ever link correctly. If we're not using GNU ld we use -z text
16997 # though, which does catch some bad symbols but isn't as heavy-handed
16999 no_undefined_flag
='${wl}-z,text'
17000 allow_undefined_flag
='${wl}-z,nodefs'
17001 archive_cmds_need_lc
=no
17002 hardcode_shlibpath_var
=no
17003 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17004 hardcode_libdir_separator
=':'
17005 link_all_deplibs
=yes
17006 export_dynamic_flag_spec
='${wl}-Bexport'
17007 runpath_var
='LD_RUN_PATH'
17009 if test "$GCC" = yes; then
17010 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17011 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17013 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17014 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17019 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020 hardcode_libdir_flag_spec
='-L$libdir'
17021 hardcode_shlibpath_var
=no
17029 if test x
$host_vendor = xsni
; then
17031 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17032 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17039 $as_echo "$ld_shlibs" >&6; }
17040 test "$ld_shlibs" = no
&& can_build_shared
=no
17042 with_gnu_ld
=$with_gnu_ld
17059 # Do we need to explicitly link libc?
17061 case "x$archive_cmds_need_lc" in
17063 # Assume -lc should be added
17064 archive_cmds_need_lc
=yes
17066 if test "$enable_shared" = yes && test "$GCC" = yes; then
17067 case $archive_cmds in
17069 # FIXME: we may have to deal with multi-command sequences.
17072 # Test whether the compiler implicitly links with -lc since on some
17073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17074 # to ld, don't add -lc before -lgcc.
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17076 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17077 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17078 $as_echo_n "(cached) " >&6
17081 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17084 (eval $ac_compile) 2>&5
17086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17087 test $ac_status = 0; } 2>conftest.err
; then
17090 libobjs
=conftest.
$ac_objext
17092 wl
=$lt_prog_compiler_wl
17093 pic_flag
=$lt_prog_compiler_pic
17099 lt_save_allow_undefined_flag
=$allow_undefined_flag
17100 allow_undefined_flag
=
17101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17102 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17105 test $ac_status = 0; }
17107 lt_cv_archive_cmds_need_lc
=no
17109 lt_cv_archive_cmds_need_lc
=yes
17111 allow_undefined_flag
=$lt_save_allow_undefined_flag
17113 cat conftest.err
1>&5
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17119 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17120 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17284 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17286 if test "$GCC" = yes; then
17288 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17289 *) lt_awk_arg
="/^libraries:/" ;;
17292 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17293 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17295 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17296 case $lt_search_path_spec in
17298 # if the path contains ";" then we assume it to be the separator
17299 # otherwise default to the standard path separator (i.e. ":") - it is
17300 # assumed that no part of a normal pathname contains ";" but that should
17301 # okay in the real world where ";" in dirpaths is itself problematic.
17302 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17305 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17308 # Ok, now we have the path, separated by spaces, we can step through it
17309 # and add multilib dir if necessary.
17310 lt_tmp_lt_search_path_spec
=
17311 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17312 for lt_sys_path
in $lt_search_path_spec; do
17313 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17314 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17316 test -d "$lt_sys_path" && \
17317 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17320 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17321 BEGIN {RS=" "; FS="/|\n";} {
17324 for (lt_i = NF; lt_i > 0; lt_i--) {
17325 if ($lt_i != "" && $lt_i != ".") {
17326 if ($lt_i == "..") {
17329 if (lt_count == 0) {
17330 lt_foo="/" $lt_i lt_foo;
17337 if (lt_foo != "") { lt_freq[lt_foo]++; }
17338 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17340 # AWK program above erroneously prepends '/' to C:/dos/paths
17343 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17344 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17346 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17348 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17350 library_names_spec
=
17351 libname_spec
='lib$name'
17355 postuninstall_cmds
=
17359 shlibpath_overrides_runpath
=unknown
17361 dynamic_linker
="$host_os ld.so"
17362 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17363 need_lib_prefix
=unknown
17364 hardcode_into_libs
=no
17366 # when you set need_version to no, make sure it does not cause -set_version
17367 # flags to be left without arguments
17368 need_version
=unknown
17373 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17374 shlibpath_var
=LIBPATH
17376 # AIX 3 has no versioning support, so we append a major version to the name.
17377 soname_spec
='${libname}${release}${shared_ext}$major'
17384 hardcode_into_libs
=yes
17385 if test "$host_cpu" = ia64
; then
17386 # AIX 5 supports IA64
17387 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17388 shlibpath_var
=LD_LIBRARY_PATH
17390 # With GCC up to 2.95.x, collect2 would create an import file
17391 # for dependence libraries. The import file would start with
17392 # the line `#! .'. This would cause the generated library to
17393 # depend on `.', always an invalid library. This was fixed in
17394 # development snapshots of GCC prior to 3.0.
17396 aix4 | aix4.
[01] | aix4.
[01].
*)
17397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17399 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17402 can_build_shared
=no
17406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17407 # soname into executable. Probably we can add versioning support to
17408 # collect2, so additional links can be useful in future.
17409 if test "$aix_use_runtimelinking" = yes; then
17410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17411 # instead of lib<name>.a to let people know that these are not
17412 # typical AIX shared libraries.
17413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17415 # We preserve .a as extension for shared libraries through AIX4.2
17416 # and later when we are not doing run time linking.
17417 library_names_spec
='${libname}${release}.a $libname.a'
17418 soname_spec
='${libname}${release}${shared_ext}$major'
17420 shlibpath_var
=LIBPATH
17427 # Since July 2007 AmigaOS4 officially supports .so libraries.
17428 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17429 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 library_names_spec
='$libname.ixlibrary $libname.a'
17433 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17434 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'
17440 library_names_spec
='${libname}${shared_ext}'
17441 dynamic_linker
="$host_os ld.so"
17442 shlibpath_var
=LIBRARY_PATH
17448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449 soname_spec
='${libname}${release}${shared_ext}$major'
17450 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17451 shlibpath_var
=LD_LIBRARY_PATH
17452 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17453 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17454 # the default ld.so.conf also contains /usr/contrib/lib and
17455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17456 # libtool to hard-code these into programs
17459 cygwin
* | mingw
* | pw32
* | cegcc
*)
17460 version_type
=windows
17465 case $GCC,$host_os in
17466 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17467 library_names_spec
='$libname.dll.a'
17468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17469 postinstall_cmds
='base_file=`basename \${file}`~
17470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17471 dldir=$destdir/`dirname \$dlpath`~
17472 test -d \$dldir || mkdir -p \$dldir~
17473 $install_prog $dir/$dlname \$dldir/$dlname~
17474 chmod a+x \$dldir/$dlname~
17475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17478 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17479 dlpath=$dir/\$dldll~
17481 shlibpath_overrides_runpath
=yes
17485 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17486 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17488 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17491 # MinGW DLLs use traditional 'lib' prefix
17492 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17495 # pw32 DLLs use 'pw' prefix rather than 'lib'
17496 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17502 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17505 dynamic_linker
='Win32 ld.exe'
17506 # FIXME: first we should search . and the directory the executable is in
17510 darwin
* | rhapsody
*)
17511 dynamic_linker
="$host_os dyld"
17512 version_type
=darwin
17515 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17516 soname_spec
='${libname}${release}${major}$shared_ext'
17517 shlibpath_overrides_runpath
=yes
17518 shlibpath_var
=DYLD_LIBRARY_PATH
17519 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17521 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17522 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17530 soname_spec
='${libname}${release}${shared_ext}$major'
17531 shlibpath_var
=LD_LIBRARY_PATH
17534 freebsd
* | dragonfly
*)
17535 # DragonFly does not have aout. When/if they implement a new
17536 # versioning mechanism, adjust this.
17537 if test -x /usr
/bin
/objformat
; then
17538 objformat
=`/usr/bin/objformat`
17541 freebsd
[23].
*) objformat
=aout
;;
17542 *) objformat
=elf
;;
17545 version_type
=freebsd-
$objformat
17546 case $version_type in
17548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17553 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17557 shlibpath_var
=LD_LIBRARY_PATH
17560 shlibpath_overrides_runpath
=yes
17562 freebsd3.
[01]* | freebsdelf3.
[01]*)
17563 shlibpath_overrides_runpath
=yes
17564 hardcode_into_libs
=yes
17566 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17567 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17568 shlibpath_overrides_runpath
=no
17569 hardcode_into_libs
=yes
17571 *) # from 4.6 on, and DragonFly
17572 shlibpath_overrides_runpath
=yes
17573 hardcode_into_libs
=yes
17582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17583 soname_spec
='${libname}${release}${shared_ext}$major'
17584 shlibpath_var
=LD_LIBRARY_PATH
17585 hardcode_into_libs
=yes
17592 dynamic_linker
="$host_os runtime_loader"
17593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17594 soname_spec
='${libname}${release}${shared_ext}$major'
17595 shlibpath_var
=LIBRARY_PATH
17596 shlibpath_overrides_runpath
=yes
17597 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17598 hardcode_into_libs
=yes
17601 hpux9
* | hpux10
* | hpux11
*)
17602 # Give a soname corresponding to the major version so that dld.sl refuses to
17603 # link against other versions.
17610 hardcode_into_libs
=yes
17611 dynamic_linker
="$host_os dld.so"
17612 shlibpath_var
=LD_LIBRARY_PATH
17613 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17615 soname_spec
='${libname}${release}${shared_ext}$major'
17616 if test "X$HPUX_IA64_MODE" = X32
; then
17617 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17619 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17621 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17625 hardcode_into_libs
=yes
17626 dynamic_linker
="$host_os dld.sl"
17627 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17628 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17629 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17630 soname_spec
='${libname}${release}${shared_ext}$major'
17631 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17632 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17636 dynamic_linker
="$host_os dld.sl"
17637 shlibpath_var
=SHLIB_PATH
17638 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640 soname_spec
='${libname}${release}${shared_ext}$major'
17643 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17644 postinstall_cmds
='chmod 555 $lib'
17645 # or fails outright, so override atomically:
17646 install_override_mode
=555
17653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17654 soname_spec
='${libname}${release}${shared_ext}$major'
17655 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17656 shlibpath_var
=LD_LIBRARY_PATH
17657 shlibpath_overrides_runpath
=no
17658 hardcode_into_libs
=yes
17661 irix5
* | irix6
* | nonstopux
*)
17663 nonstopux
*) version_type
=nonstopux
;;
17665 if test "$lt_cv_prog_gnu_ld" = yes; then
17673 soname_spec
='${libname}${release}${shared_ext}$major'
17674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17676 irix5
* | nonstopux
*)
17677 libsuff
= shlibsuff
=
17680 case $LD in # libtool.m4 will add one of these switches to LD
17681 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17682 libsuff
= shlibsuff
= libmagic
=32-bit;;
17683 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17684 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17685 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17686 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17687 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17691 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17692 shlibpath_overrides_runpath
=no
17693 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17694 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17695 hardcode_into_libs
=yes
17698 # No shared lib support for Linux oldld, aout, or coff.
17699 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17703 # This must be Linux ELF.
17704 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17709 soname_spec
='${libname}${release}${shared_ext}$major'
17710 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17711 shlibpath_var
=LD_LIBRARY_PATH
17712 shlibpath_overrides_runpath
=no
17714 # Some binutils ld are patched to set DT_RUNPATH
17715 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17716 $as_echo_n "(cached) " >&6
17718 lt_cv_shlibpath_overrides_runpath
=no
17719 save_LDFLAGS
=$LDFLAGS
17720 save_libdir
=$libdir
17721 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17722 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17734 if ac_fn_c_try_link
"$LINENO"; then :
17735 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17736 lt_cv_shlibpath_overrides_runpath
=yes
17739 rm -f core conftest.err conftest.
$ac_objext \
17740 conftest
$ac_exeext conftest.
$ac_ext
17741 LDFLAGS
=$save_LDFLAGS
17742 libdir
=$save_libdir
17746 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17748 # This implies no fast_install, which is unacceptable.
17749 # Some rework will be needed to allow for fast_install
17750 # before this can be enabled.
17751 hardcode_into_libs
=yes
17753 # Append ld.so.conf contents to the search path
17754 if test -f /etc
/ld.so.conf
; then
17755 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' ' '`
17756 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17759 # We used to test for /lib/ld.so.1 and disable shared libraries on
17760 # powerpc, because MkLinux only supported shared libraries with the
17761 # GNU dynamic linker. Since this was broken with cross compilers,
17762 # most powerpc-linux boxes support dynamic linking these days and
17763 # people can always --disable-shared, the test was removed, and we
17764 # assume the GNU/Linux dynamic linker is in use.
17765 dynamic_linker
='GNU/Linux ld.so'
17772 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17774 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17775 dynamic_linker
='NetBSD (a.out) ld.so'
17777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17778 soname_spec
='${libname}${release}${shared_ext}$major'
17779 dynamic_linker
='NetBSD ld.elf_so'
17781 shlibpath_var
=LD_LIBRARY_PATH
17782 shlibpath_overrides_runpath
=yes
17783 hardcode_into_libs
=yes
17788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789 shlibpath_var
=LD_LIBRARY_PATH
17790 shlibpath_overrides_runpath
=yes
17797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798 soname_spec
='${libname}${release}${shared_ext}$major'
17799 shlibpath_var
=LD_LIBRARY_PATH
17800 shlibpath_overrides_runpath
=no
17801 hardcode_into_libs
=yes
17802 dynamic_linker
='ldqnx.so'
17807 sys_lib_dlsearch_path_spec
="/usr/lib"
17809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17811 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17812 *) need_version
=no
;;
17814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17815 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17816 shlibpath_var
=LD_LIBRARY_PATH
17817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17819 openbsd2.
[89] | openbsd2.
[89].
*)
17820 shlibpath_overrides_runpath
=no
17823 shlibpath_overrides_runpath
=yes
17827 shlibpath_overrides_runpath
=yes
17832 libname_spec
='$name'
17835 library_names_spec
='$libname${shared_ext} $libname.a'
17836 dynamic_linker
='OS/2 ld.exe'
17837 shlibpath_var
=LIBPATH
17840 osf3
* | osf4
* | osf5
*)
17844 soname_spec
='${libname}${release}${shared_ext}$major'
17845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846 shlibpath_var
=LD_LIBRARY_PATH
17847 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17848 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17859 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17860 soname_spec
='${libname}${release}${shared_ext}$major'
17861 shlibpath_var
=LD_LIBRARY_PATH
17862 shlibpath_overrides_runpath
=yes
17863 hardcode_into_libs
=yes
17864 # ldd complains unless libraries are executable
17865 postinstall_cmds
='chmod +x $lib'
17870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17871 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17872 shlibpath_var
=LD_LIBRARY_PATH
17873 shlibpath_overrides_runpath
=yes
17874 if test "$with_gnu_ld" = yes; then
17882 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17883 soname_spec
='${libname}${release}${shared_ext}$major'
17884 shlibpath_var
=LD_LIBRARY_PATH
17885 case $host_vendor in
17887 shlibpath_overrides_runpath
=no
17889 runpath_var
=LD_RUN_PATH
17897 shlibpath_overrides_runpath
=no
17898 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17904 if test -d /usr
/nec
;then
17906 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17907 soname_spec
='$libname${shared_ext}.$major'
17908 shlibpath_var
=LD_LIBRARY_PATH
17912 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17913 version_type
=freebsd-elf
17916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17917 soname_spec
='${libname}${release}${shared_ext}$major'
17918 shlibpath_var
=LD_LIBRARY_PATH
17919 shlibpath_overrides_runpath
=yes
17920 hardcode_into_libs
=yes
17921 if test "$with_gnu_ld" = yes; then
17922 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17924 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17927 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17931 sys_lib_dlsearch_path_spec
='/usr/lib'
17935 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940 shlibpath_var
=LD_LIBRARY_PATH
17941 shlibpath_overrides_runpath
=no
17942 hardcode_into_libs
=yes
17947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17948 soname_spec
='${libname}${release}${shared_ext}$major'
17949 shlibpath_var
=LD_LIBRARY_PATH
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17957 $as_echo "$dynamic_linker" >&6; }
17958 test "$dynamic_linker" = no
&& can_build_shared
=no
17960 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17961 if test "$GCC" = yes; then
17962 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17965 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17966 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17968 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17969 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18064 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18066 if test -n "$hardcode_libdir_flag_spec" ||
18067 test -n "$runpath_var" ||
18068 test "X$hardcode_automatic" = "Xyes" ; then
18070 # We can hardcode non-existent directories.
18071 if test "$hardcode_direct" != no
&&
18072 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18073 # have to relink, otherwise we might link with an installed library
18074 # when we should be linking with a yet-to-be-installed one
18075 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18076 test "$hardcode_minus_L" != no
; then
18077 # Linking always hardcodes the temporary library directory.
18078 hardcode_action
=relink
18080 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18081 hardcode_action
=immediate
18084 # We cannot hardcode anything, or else we can only hardcode existing
18086 hardcode_action
=unsupported
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18089 $as_echo "$hardcode_action" >&6; }
18091 if test "$hardcode_action" = relink ||
18092 test "$inherit_rpath" = yes; then
18093 # Fast installation is not supported
18094 enable_fast_install
=no
18095 elif test "$shlibpath_overrides_runpath" = yes ||
18096 test "$enable_shared" = no
; then
18097 # Fast installation is not necessary
18098 enable_fast_install
=needless
18106 if test "x$enable_dlopen" != xyes
; then
18107 enable_dlopen
=unknown
18108 enable_dlopen_self
=unknown
18109 enable_dlopen_self_static
=unknown
18116 lt_cv_dlopen
="load_add_on"
18118 lt_cv_dlopen_self
=yes
18121 mingw
* | pw32
* | cegcc
*)
18122 lt_cv_dlopen
="LoadLibrary"
18127 lt_cv_dlopen
="dlopen"
18132 # if libdl is installed we need to link against it
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18134 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18136 $as_echo_n "(cached) " >&6
18138 ac_check_lib_save_LIBS
=$LIBS
18140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18143 /* Override any GCC internal prototype to avoid an error.
18144 Use char because int might match the return type of a GCC
18145 builtin and then its argument prototype would still apply. */
18158 if ac_fn_c_try_link
"$LINENO"; then :
18159 ac_cv_lib_dl_dlopen
=yes
18161 ac_cv_lib_dl_dlopen
=no
18163 rm -f core conftest.err conftest.
$ac_objext \
18164 conftest
$ac_exeext conftest.
$ac_ext
18165 LIBS
=$ac_check_lib_save_LIBS
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18168 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18169 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18170 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18173 lt_cv_dlopen
="dyld"
18175 lt_cv_dlopen_self
=yes
18182 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18183 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18184 lt_cv_dlopen
="shl_load"
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18187 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18188 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18189 $as_echo_n "(cached) " >&6
18191 ac_check_lib_save_LIBS
=$LIBS
18193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18196 /* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18206 return shl_load ();
18211 if ac_fn_c_try_link
"$LINENO"; then :
18212 ac_cv_lib_dld_shl_load
=yes
18214 ac_cv_lib_dld_shl_load
=no
18216 rm -f core conftest.err conftest.
$ac_objext \
18217 conftest
$ac_exeext conftest.
$ac_ext
18218 LIBS
=$ac_check_lib_save_LIBS
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18221 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18222 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18223 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18225 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18226 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18227 lt_cv_dlopen
="dlopen"
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18230 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18231 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18232 $as_echo_n "(cached) " >&6
18234 ac_check_lib_save_LIBS
=$LIBS
18236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18239 /* Override any GCC internal prototype to avoid an error.
18240 Use char because int might match the return type of a GCC
18241 builtin and then its argument prototype would still apply. */
18254 if ac_fn_c_try_link
"$LINENO"; then :
18255 ac_cv_lib_dl_dlopen
=yes
18257 ac_cv_lib_dl_dlopen
=no
18259 rm -f core conftest.err conftest.
$ac_objext \
18260 conftest
$ac_exeext conftest.
$ac_ext
18261 LIBS
=$ac_check_lib_save_LIBS
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18264 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18265 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18266 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18269 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18270 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18271 $as_echo_n "(cached) " >&6
18273 ac_check_lib_save_LIBS
=$LIBS
18274 LIBS
="-lsvld $LIBS"
18275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18278 /* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18293 if ac_fn_c_try_link
"$LINENO"; then :
18294 ac_cv_lib_svld_dlopen
=yes
18296 ac_cv_lib_svld_dlopen
=no
18298 rm -f core conftest.err conftest.
$ac_objext \
18299 conftest
$ac_exeext conftest.
$ac_ext
18300 LIBS
=$ac_check_lib_save_LIBS
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18303 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18304 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18305 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18308 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18309 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18310 $as_echo_n "(cached) " >&6
18312 ac_check_lib_save_LIBS
=$LIBS
18314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18327 return dld_link ();
18332 if ac_fn_c_try_link
"$LINENO"; then :
18333 ac_cv_lib_dld_dld_link
=yes
18335 ac_cv_lib_dld_dld_link
=no
18337 rm -f core conftest.err conftest.
$ac_objext \
18338 conftest
$ac_exeext conftest.
$ac_ext
18339 LIBS
=$ac_check_lib_save_LIBS
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18342 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18343 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18344 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18365 if test "x$lt_cv_dlopen" != xno
; then
18371 case $lt_cv_dlopen in
18373 save_CPPFLAGS
="$CPPFLAGS"
18374 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18376 save_LDFLAGS
="$LDFLAGS"
18377 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18380 LIBS
="$lt_cv_dlopen_libs $LIBS"
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18383 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18384 if test "${lt_cv_dlopen_self+set}" = set; then :
18385 $as_echo_n "(cached) " >&6
18387 if test "$cross_compiling" = yes; then :
18388 lt_cv_dlopen_self
=cross
18390 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18391 lt_status
=$lt_dlunknown
18392 cat > conftest.
$ac_ext <<_LT_EOF
18393 #line 18393 "configure"
18394 #include "confdefs.h"
18403 # define LT_DLGLOBAL RTLD_GLOBAL
18406 # define LT_DLGLOBAL DL_GLOBAL
18408 # define LT_DLGLOBAL 0
18412 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18413 find out it does not work in some platform. */
18414 #ifndef LT_DLLAZY_OR_NOW
18416 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18419 # define LT_DLLAZY_OR_NOW DL_LAZY
18422 # define LT_DLLAZY_OR_NOW RTLD_NOW
18425 # define LT_DLLAZY_OR_NOW DL_NOW
18427 # define LT_DLLAZY_OR_NOW 0
18434 /* When -fvisbility=hidden is used, assume the code has been annotated
18435 correspondingly for the symbols needed. */
18436 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18437 void fnord () __attribute__((visibility("default")));
18440 void fnord () { int i=42; }
18443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18444 int status = $lt_dlunknown;
18448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18451 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18452 else puts (dlerror ());
18454 /* dlclose (self); */
18462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18463 (eval $ac_link) 2>&5
18465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18466 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18467 (.
/conftest
; exit; ) >&5 2>/dev
/null
18469 case x
$lt_status in
18470 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18471 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18472 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18475 # compilation failed
18476 lt_cv_dlopen_self
=no
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18484 $as_echo "$lt_cv_dlopen_self" >&6; }
18486 if test "x$lt_cv_dlopen_self" = xyes
; then
18487 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18489 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18490 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18493 if test "$cross_compiling" = yes; then :
18494 lt_cv_dlopen_self_static
=cross
18496 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18497 lt_status
=$lt_dlunknown
18498 cat > conftest.
$ac_ext <<_LT_EOF
18499 #line 18499 "configure"
18500 #include "confdefs.h"
18509 # define LT_DLGLOBAL RTLD_GLOBAL
18512 # define LT_DLGLOBAL DL_GLOBAL
18514 # define LT_DLGLOBAL 0
18518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18519 find out it does not work in some platform. */
18520 #ifndef LT_DLLAZY_OR_NOW
18522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18525 # define LT_DLLAZY_OR_NOW DL_LAZY
18528 # define LT_DLLAZY_OR_NOW RTLD_NOW
18531 # define LT_DLLAZY_OR_NOW DL_NOW
18533 # define LT_DLLAZY_OR_NOW 0
18540 /* When -fvisbility=hidden is used, assume the code has been annotated
18541 correspondingly for the symbols needed. */
18542 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18543 void fnord () __attribute__((visibility("default")));
18546 void fnord () { int i=42; }
18549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18550 int status = $lt_dlunknown;
18554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18557 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18558 else puts (dlerror ());
18560 /* dlclose (self); */
18568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18569 (eval $ac_link) 2>&5
18571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18572 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18573 (.
/conftest
; exit; ) >&5 2>/dev
/null
18575 case x
$lt_status in
18576 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18577 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18578 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18581 # compilation failed
18582 lt_cv_dlopen_self_static
=no
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18590 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18593 CPPFLAGS
="$save_CPPFLAGS"
18594 LDFLAGS
="$save_LDFLAGS"
18599 case $lt_cv_dlopen_self in
18600 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18601 *) enable_dlopen_self
=unknown
;;
18604 case $lt_cv_dlopen_self_static in
18605 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18606 *) enable_dlopen_self_static
=unknown
;;
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18629 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18630 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18631 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18632 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18634 $as_echo "yes" >&6; }
18636 # FIXME - insert some real tests, host_os isn't really good enough
18639 if test -n "$STRIP" ; then
18640 striplib
="$STRIP -x"
18641 old_striplib
="$STRIP -S"
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18643 $as_echo "yes" >&6; }
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651 $as_echo "no" >&6; }
18667 # Report which library types will actually be built
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18669 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18671 $as_echo "$can_build_shared" >&6; }
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18674 $as_echo_n "checking whether to build shared libraries... " >&6; }
18675 test "$can_build_shared" = "no" && enable_shared
=no
18677 # On AIX, shared libraries and static libraries use the same namespace, and
18678 # are all built from PIC.
18681 test "$enable_shared" = yes && enable_static
=no
18682 if test -n "$RANLIB"; then
18683 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18684 postinstall_cmds
='$RANLIB $lib'
18689 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18690 test "$enable_shared" = yes && enable_static
=no
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18695 $as_echo "$enable_shared" >&6; }
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18698 $as_echo_n "checking whether to build static libraries... " >&6; }
18699 # Make sure either enable_shared or enable_static is yes.
18700 test "$enable_shared" = yes || enable_static
=yes
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18702 $as_echo "$enable_static" >&6; }
18709 ac_cpp
='$CXXCPP $CPPFLAGS'
18710 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18711 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18712 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18716 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18717 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18718 (test "X$CXX" != "Xg++"))) ; then
18720 ac_cpp
='$CXXCPP $CPPFLAGS'
18721 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18722 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18723 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18725 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18726 if test -z "$CXXCPP"; then
18727 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18728 $as_echo_n "(cached) " >&6
18730 # Double quotes because CXXCPP needs to be expanded
18731 for CXXCPP
in "$CXX -E" "/lib/cpp"
18733 ac_preproc_ok
=false
18734 for ac_cxx_preproc_warn_flag
in '' yes
18736 # Use a header file that comes with gcc, so configuring glibc
18737 # with a fresh cross-compiler works.
18738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 # <limits.h> exists even on freestanding compilers.
18740 # On the NeXT, cc -E runs the code through the compiler's parser,
18741 # not just through cpp. "Syntax error" is here to catch this case.
18742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18743 /* end confdefs.h. */
18745 # include <limits.h>
18747 # include <assert.h>
18751 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18754 # Broken: fails on valid input.
18757 rm -f conftest.err conftest.
$ac_ext
18759 # OK, works on sane cases. Now check whether nonexistent headers
18760 # can be detected and how.
18761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18762 /* end confdefs.h. */
18763 #include <ac_nonexistent.h>
18765 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18766 # Broken: success on invalid input.
18769 # Passes both tests.
18773 rm -f conftest.err conftest.
$ac_ext
18776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18777 rm -f conftest.err conftest.
$ac_ext
18778 if $ac_preproc_ok; then :
18783 ac_cv_prog_CXXCPP
=$CXXCPP
18786 CXXCPP
=$ac_cv_prog_CXXCPP
18788 ac_cv_prog_CXXCPP
=$CXXCPP
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18791 $as_echo "$CXXCPP" >&6; }
18792 ac_preproc_ok
=false
18793 for ac_cxx_preproc_warn_flag
in '' yes
18795 # Use a header file that comes with gcc, so configuring glibc
18796 # with a fresh cross-compiler works.
18797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18798 # <limits.h> exists even on freestanding compilers.
18799 # On the NeXT, cc -E runs the code through the compiler's parser,
18800 # not just through cpp. "Syntax error" is here to catch this case.
18801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18804 # include <limits.h>
18806 # include <assert.h>
18810 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18813 # Broken: fails on valid input.
18816 rm -f conftest.err conftest.
$ac_ext
18818 # OK, works on sane cases. Now check whether nonexistent headers
18819 # can be detected and how.
18820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18822 #include <ac_nonexistent.h>
18824 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18825 # Broken: success on invalid input.
18828 # Passes both tests.
18832 rm -f conftest.err conftest.
$ac_ext
18835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18836 rm -f conftest.err conftest.
$ac_ext
18837 if $ac_preproc_ok; then :
18840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18842 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18843 See \`config.log' for more details." "$LINENO" 5; }
18847 ac_cpp
='$CXXCPP $CPPFLAGS'
18848 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18853 _lt_caught_CXX_error
=yes
18857 ac_cpp
='$CXXCPP $CPPFLAGS'
18858 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18862 archive_cmds_need_lc_CXX
=no
18863 allow_undefined_flag_CXX
=
18864 always_export_symbols_CXX
=no
18865 archive_expsym_cmds_CXX
=
18866 compiler_needs_object_CXX
=no
18867 export_dynamic_flag_spec_CXX
=
18868 hardcode_direct_CXX
=no
18869 hardcode_direct_absolute_CXX
=no
18870 hardcode_libdir_flag_spec_CXX
=
18871 hardcode_libdir_flag_spec_ld_CXX
=
18872 hardcode_libdir_separator_CXX
=
18873 hardcode_minus_L_CXX
=no
18874 hardcode_shlibpath_var_CXX
=unsupported
18875 hardcode_automatic_CXX
=no
18876 inherit_rpath_CXX
=no
18878 module_expsym_cmds_CXX
=
18879 link_all_deplibs_CXX
=unknown
18880 old_archive_cmds_CXX
=$old_archive_cmds
18881 reload_flag_CXX
=$reload_flag
18882 reload_cmds_CXX
=$reload_cmds
18883 no_undefined_flag_CXX
=
18884 whole_archive_flag_spec_CXX
=
18885 enable_shared_with_static_runtimes_CXX
=no
18887 # Source file extension for C++ test sources.
18890 # Object file extension for compiled C++ test sources.
18894 # No sense in running all these tests if we already determined that
18895 # the CXX compiler isn't working. Some variables (like enable_shared)
18896 # are currently assumed to apply to all compilers on this platform,
18897 # and will be corrupted by setting them based on a non-working compiler.
18898 if test "$_lt_caught_CXX_error" != yes; then
18899 # Code to be used in simple compile tests
18900 lt_simple_compile_test_code
="int some_variable = 0;"
18902 # Code to be used in simple link tests
18903 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18905 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18912 # If no C compiler was specified, use CC.
18915 # If no C compiler flags were specified, use CFLAGS.
18916 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18918 # Allow CC to be a program name with arguments.
18922 # save warnings/boilerplate of simple test code
18923 ac_outfile
=conftest.
$ac_objext
18924 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18925 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18926 _lt_compiler_boilerplate
=`cat conftest.err`
18929 ac_outfile
=conftest.
$ac_objext
18930 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18931 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18932 _lt_linker_boilerplate
=`cat conftest.err`
18936 # Allow CC to be a program name with arguments.
18941 lt_save_with_gnu_ld
=$with_gnu_ld
18942 lt_save_path_LD
=$lt_cv_path_LD
18943 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18944 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18946 $as_unset lt_cv_prog_gnu_ld
18948 if test -n "${lt_cv_path_LDCXX+set}"; then
18949 lt_cv_path_LD
=$lt_cv_path_LDCXX
18951 $as_unset lt_cv_path_LD
18953 test -z "${LDCXX+set}" || LD
=$LDCXX
18957 for cc_temp
in $compiler""; do
18959 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18960 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18965 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18968 if test -n "$compiler"; then
18969 # We don't want -fno-exception when compiling C++ code, so set the
18970 # no_builtin_flag separately
18971 if test "$GXX" = yes; then
18972 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18974 lt_prog_compiler_no_builtin_flag_CXX
=
18977 if test "$GXX" = yes; then
18978 # Set up default GNU C++ configuration
18982 # Check whether --with-gnu-ld was given.
18983 if test "${with_gnu_ld+set}" = set; then :
18984 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18990 if test "$GCC" = yes; then
18991 # Check if gcc -print-prog-name=ld gives a path.
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18993 $as_echo_n "checking for ld used by $CC... " >&6; }
18996 # gcc leaves a trailing carriage return which upsets mingw
18997 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18999 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19002 # Accept absolute paths.
19004 re_direlt
='/[^/][^/]*/\.\./'
19005 # Canonicalize the pathname of ld
19006 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19007 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19008 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19010 test -z "$LD" && LD
="$ac_prog"
19013 # If it fails, then pretend we aren't using GCC.
19017 # If it is relative, then search for the first ld in PATH.
19018 with_gnu_ld
=unknown
19021 elif test "$with_gnu_ld" = yes; then
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19023 $as_echo_n "checking for GNU ld... " >&6; }
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19026 $as_echo_n "checking for non-GNU ld... " >&6; }
19028 if test "${lt_cv_path_LD+set}" = set; then :
19029 $as_echo_n "(cached) " >&6
19031 if test -z "$LD"; then
19032 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19033 for ac_dir
in $PATH; do
19035 test -z "$ac_dir" && ac_dir
=.
19036 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19037 lt_cv_path_LD
="$ac_dir/$ac_prog"
19038 # Check to see if the program is GNU ld. I'd rather use --version,
19039 # but apparently some variants of GNU ld only accept -v.
19040 # Break only if it was the GNU/non-GNU ld that we prefer.
19041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19042 *GNU
* |
*'with BFD'*)
19043 test "$with_gnu_ld" != no
&& break
19046 test "$with_gnu_ld" != yes && break
19053 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19057 LD
="$lt_cv_path_LD"
19058 if test -n "$LD"; then
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19060 $as_echo "$LD" >&6; }
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19063 $as_echo "no" >&6; }
19065 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19067 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19068 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19069 $as_echo_n "(cached) " >&6
19071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19072 case `$LD -v 2>&1 </dev/null` in
19073 *GNU
* |
*'with BFD'*)
19074 lt_cv_prog_gnu_ld
=yes
19077 lt_cv_prog_gnu_ld
=no
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19082 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19083 with_gnu_ld
=$lt_cv_prog_gnu_ld
19091 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19092 # archiving commands below assume that GNU ld is being used.
19093 if test "$with_gnu_ld" = yes; then
19094 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19095 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'
19097 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19098 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19100 # If archive_cmds runs LD, not CC, wlarc should be empty
19101 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19102 # investigate it a little bit more. (MM)
19105 # ancient GNU ld didn't support --whole-archive et. al.
19106 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19107 $GREP 'no-whole-archive' > /dev
/null
; then
19108 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19110 whole_archive_flag_spec_CXX
=
19116 # A generic and very simple default shared library creation
19117 # command for GNU C++ for the case where it uses the native
19118 # linker, instead of GNU ld. If possible, this setting should
19119 # overridden to take advantage of the native linker features on
19120 # the platform it is being used on.
19121 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19124 # Commands to make compiler produce verbose output that lists
19125 # what "hidden" libraries, object files and flags are used when
19126 # linking a shared library.
19127 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19135 # PORTME: fill in a description of your system's C++ link characteristics
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19137 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19141 # FIXME: insert proper C++ library support
19145 if test "$host_cpu" = ia64
; then
19146 # On IA64, the linker does run time linking by default, so we don't
19147 # have to do anything special.
19148 aix_use_runtimelinking
=no
19149 exp_sym_flag
='-Bexport'
19152 aix_use_runtimelinking
=no
19154 # Test if we are trying to use run time linking or normal
19155 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19156 # need to do runtime linking.
19157 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19158 for ld_flag
in $LDFLAGS; do
19161 aix_use_runtimelinking
=yes
19169 exp_sym_flag
='-bexport'
19170 no_entry_flag
='-bnoentry'
19173 # When large executables or shared objects are built, AIX ld can
19174 # have problems creating the table of contents. If linking a library
19175 # or program results in "error TOC overflow" add -mminimal-toc to
19176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19179 archive_cmds_CXX
=''
19180 hardcode_direct_CXX
=yes
19181 hardcode_direct_absolute_CXX
=yes
19182 hardcode_libdir_separator_CXX
=':'
19183 link_all_deplibs_CXX
=yes
19184 file_list_spec_CXX
='${wl}-f,'
19186 if test "$GXX" = yes; then
19187 case $host_os in aix4.
[012]|aix4.
[012].
*)
19188 # We only want to do this on AIX 4.2 and lower, the check
19189 # below for broken collect2 doesn't work under 4.3+
19190 collect2name
=`${CC} -print-prog-name=collect2`
19191 if test -f "$collect2name" &&
19192 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19194 # We have reworked collect2
19197 # We have old collect2
19198 hardcode_direct_CXX
=unsupported
19199 # It fails to find uninstalled libraries when the uninstalled
19200 # path is not listed in the libpath. Setting hardcode_minus_L
19201 # to unsupported forces relinking
19202 hardcode_minus_L_CXX
=yes
19203 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19204 hardcode_libdir_separator_CXX
=
19207 shared_flag
='-shared'
19208 if test "$aix_use_runtimelinking" = yes; then
19209 shared_flag
="$shared_flag "'${wl}-G'
19213 if test "$host_cpu" = ia64
; then
19214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19215 # chokes on -Wl,-G. The following line is correct:
19218 if test "$aix_use_runtimelinking" = yes; then
19219 shared_flag
='${wl}-G'
19221 shared_flag
='${wl}-bM:SRE'
19226 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19227 # It seems that -bexpall does not export symbols beginning with
19228 # underscore (_), so it is better to generate a list of symbols to
19230 always_export_symbols_CXX
=yes
19231 if test "$aix_use_runtimelinking" = yes; then
19232 # Warning - without using the other runtime loading flags (-brtl),
19233 # -berok will link without error, but may produce a broken library.
19234 allow_undefined_flag_CXX
='-berok'
19235 # Determine the default libpath from the value encoded in an empty
19237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19238 /* end confdefs.h. */
19248 if ac_fn_cxx_try_link
"$LINENO"; then :
19250 lt_aix_libpath_sed
='
19251 /Import File Strings/,/^$/ {
19257 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19258 # Check for a 64-bit object if we didn't find anything.
19259 if test -z "$aix_libpath"; then
19260 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19263 rm -f core conftest.err conftest.
$ac_objext \
19264 conftest
$ac_exeext conftest.
$ac_ext
19265 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19267 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19269 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"
19271 if test "$host_cpu" = ia64
; then
19272 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19273 allow_undefined_flag_CXX
="-z nodefs"
19274 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"
19276 # Determine the default libpath from the value encoded in an
19277 # empty executable.
19278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19289 if ac_fn_cxx_try_link
"$LINENO"; then :
19291 lt_aix_libpath_sed
='
19292 /Import File Strings/,/^$/ {
19298 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19299 # Check for a 64-bit object if we didn't find anything.
19300 if test -z "$aix_libpath"; then
19301 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19304 rm -f core conftest.err conftest.
$ac_objext \
19305 conftest
$ac_exeext conftest.
$ac_ext
19306 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19308 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19309 # Warning - without using the other run time loading flags,
19310 # -berok will link without error, but may produce a broken library.
19311 no_undefined_flag_CXX
=' ${wl}-bernotok'
19312 allow_undefined_flag_CXX
=' ${wl}-berok'
19313 if test "$with_gnu_ld" = yes; then
19314 # We only use this code for GNU lds that support --whole-archive.
19315 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19317 # Exported symbols can be pulled into shared objects from archives
19318 whole_archive_flag_spec_CXX
='$convenience'
19320 archive_cmds_need_lc_CXX
=yes
19321 # This is similar to how AIX traditionally builds its shared
19323 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'
19329 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19330 allow_undefined_flag_CXX
=unsupported
19331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19332 # support --undefined. This deserves some investigation. FIXME
19333 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19340 case $cc_basename in
19342 # FIXME: insert proper C++ library support
19348 cygwin
* | mingw
* | pw32
* | cegcc
*)
19349 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19350 # as there is no search path for DLLs.
19351 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19352 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19353 allow_undefined_flag_CXX
=unsupported
19354 always_export_symbols_CXX
=no
19355 enable_shared_with_static_runtimes_CXX
=yes
19357 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19358 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'
19359 # If the export-symbols file already is a .def file (1st line
19360 # is EXPORTS), use it as is; otherwise, prepend...
19361 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19362 cp $export_symbols $output_objdir/$soname.def;
19364 echo EXPORTS > $output_objdir/$soname.def;
19365 cat $export_symbols >> $output_objdir/$soname.def;
19367 $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'
19372 darwin
* | rhapsody
*)
19375 archive_cmds_need_lc_CXX
=no
19376 hardcode_direct_CXX
=no
19377 hardcode_automatic_CXX
=yes
19378 hardcode_shlibpath_var_CXX
=unsupported
19379 if test "$lt_cv_ld_force_load" = "yes"; then
19380 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\"`'
19382 whole_archive_flag_spec_CXX
=''
19384 link_all_deplibs_CXX
=yes
19385 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19386 case $cc_basename in
19387 ifort
*) _lt_dar_can_shared
=yes ;;
19388 *) _lt_dar_can_shared
=$GCC ;;
19390 if test "$_lt_dar_can_shared" = "yes"; then
19391 output_verbose_link_cmd
=func_echo_all
19392 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}"
19393 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19394 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}"
19395 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}"
19396 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19397 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}"
19398 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}"
19408 case $cc_basename in
19410 # FIXME: insert proper C++ library support
19414 # Green Hills C++ Compiler
19415 # FIXME: insert proper C++ library support
19419 # FIXME: insert proper C++ library support
19426 # C++ shared libraries reported to be fairly broken before
19432 archive_cmds_need_lc_CXX
=no
19435 freebsd
* | dragonfly
*)
19436 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19445 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19446 link_all_deplibs_CXX
=yes
19450 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19451 hardcode_libdir_separator_CXX
=:
19452 export_dynamic_flag_spec_CXX
='${wl}-E'
19453 hardcode_direct_CXX
=yes
19454 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19455 # but as the default
19456 # location of the library.
19458 case $cc_basename in
19460 # FIXME: insert proper C++ library support
19464 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'
19465 # Commands to make compiler produce verbose output that lists
19466 # what "hidden" libraries, object files and flags are used when
19467 # linking a shared library.
19469 # There doesn't appear to be a way to prevent this compiler from
19470 # explicitly linking system object files so we need to strip them
19471 # from the output so that they don't get included in the library
19473 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"'
19476 if test "$GXX" = yes; then
19477 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'
19479 # FIXME: insert proper C++ library support
19487 if test $with_gnu_ld = no
; then
19488 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19489 hardcode_libdir_separator_CXX
=:
19495 export_dynamic_flag_spec_CXX
='${wl}-E'
19501 hardcode_direct_CXX
=no
19502 hardcode_shlibpath_var_CXX
=no
19505 hardcode_direct_CXX
=yes
19506 hardcode_direct_absolute_CXX
=yes
19507 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19508 # but as the default
19509 # location of the library.
19513 case $cc_basename in
19515 # FIXME: insert proper C++ library support
19521 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19524 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19527 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19530 # Commands to make compiler produce verbose output that lists
19531 # what "hidden" libraries, object files and flags are used when
19532 # linking a shared library.
19534 # There doesn't appear to be a way to prevent this compiler from
19535 # explicitly linking system object files so we need to strip them
19536 # from the output so that they don't get included in the library
19538 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"'
19541 if test "$GXX" = yes; then
19542 if test $with_gnu_ld = no
; then
19545 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19548 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19551 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'
19556 # FIXME: insert proper C++ library support
19564 hardcode_direct_CXX
=no
19565 hardcode_shlibpath_var_CXX
=no
19566 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19567 export_dynamic_flag_spec_CXX
='${wl}-E'
19568 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19569 # Instead, shared libraries are loaded at an image base (0x10000000 by
19570 # default) and relocated if they conflict, which is a slow very memory
19571 # consuming and fragmenting process. To avoid this, we pick a random,
19572 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19573 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19574 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'
19575 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'
19578 case $cc_basename in
19581 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'
19583 # Archives containing C++ object files must be created using
19584 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19585 # necessary to make sure instantiated templates are included
19587 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19590 if test "$GXX" = yes; then
19591 if test "$with_gnu_ld" = no
; then
19592 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'
19594 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'
19597 link_all_deplibs_CXX
=yes
19600 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19601 hardcode_libdir_separator_CXX
=:
19602 inherit_rpath_CXX
=yes
19605 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19606 case $cc_basename in
19608 # Kuck and Associates, Inc. (KAI) C++ Compiler
19610 # KCC will only create a shared library if the output file
19611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19612 # to its proper name (with version) after linking.
19613 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'
19614 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'
19615 # Commands to make compiler produce verbose output that lists
19616 # what "hidden" libraries, object files and flags are used when
19617 # linking a shared library.
19619 # There doesn't appear to be a way to prevent this compiler from
19620 # explicitly linking system object files so we need to strip them
19621 # from the output so that they don't get included in the library
19623 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"'
19625 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19626 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19628 # Archives containing C++ object files must be created using
19629 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19630 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19635 # version 8.0 and above of icpc choke on multiply defined symbols
19636 # if we add $predep_objects and $postdep_objects, however 7.1 and
19637 # earlier do not add the objects themselves.
19638 case `$CC -V 2>&1` in
19640 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19641 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'
19643 *) # Version 8.0 or newer
19646 ia64
*) tmp_idyn
=' -i_dynamic';;
19648 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19649 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'
19652 archive_cmds_need_lc_CXX
=no
19653 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19654 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19655 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19658 # Portland Group C++ compiler
19660 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19661 prelink_cmds_CXX
='tpldir=Template.dir~
19663 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19664 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19665 old_archive_cmds_CXX
='tpldir=Template.dir~
19667 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19668 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19670 archive_cmds_CXX
='tpldir=Template.dir~
19672 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19673 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19674 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19676 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19677 $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'
19679 *) # Version 6 and above use weak symbols
19680 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19681 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'
19685 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19686 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19687 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'
19691 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19692 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'
19694 runpath_var
=LD_RUN_PATH
19695 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19696 hardcode_libdir_separator_CXX
=:
19698 # Commands to make compiler produce verbose output that lists
19699 # what "hidden" libraries, object files and flags are used when
19700 # linking a shared library.
19702 # There doesn't appear to be a way to prevent this compiler from
19703 # explicitly linking system object files so we need to strip them
19704 # from the output so that they don't get included in the library
19706 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'
19708 xl
* | mpixl
* | bgxl
*)
19709 # IBM XL 8.0 on PPC, with GNU ld
19710 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19711 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19712 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19713 if test "x$supports_anon_versioning" = xyes
; then
19714 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19716 echo "local: *; };" >> $output_objdir/$libname.ver~
19717 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19721 case `$CC -V 2>&1 | sed 5q` in
19724 no_undefined_flag_CXX
=' -zdefs'
19725 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19726 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'
19727 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19728 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'
19729 compiler_needs_object_CXX
=yes
19731 # Not sure whether something based on
19732 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19734 output_verbose_link_cmd
='func_echo_all'
19736 # Archives containing C++ object files must be created using
19737 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19738 # necessary to make sure instantiated templates are included
19740 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19748 # FIXME: insert proper C++ library support
19753 # FIXME: insert proper C++ library support
19758 case $cc_basename in
19760 # FIXME: insert proper C++ library support
19764 # FIXME: insert proper C++ library support
19771 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19772 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19774 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19775 hardcode_direct_CXX
=yes
19776 hardcode_shlibpath_var_CXX
=no
19778 # Workaround some broken pre-1.5 toolchains
19779 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19787 # C++ shared libraries are fairly broken
19792 if test -f /usr
/libexec
/ld.so
; then
19793 hardcode_direct_CXX
=yes
19794 hardcode_shlibpath_var_CXX
=no
19795 hardcode_direct_absolute_CXX
=yes
19796 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19797 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19799 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19800 export_dynamic_flag_spec_CXX
='${wl}-E'
19801 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19803 output_verbose_link_cmd
=func_echo_all
19809 osf3
* | osf4
* | osf5
*)
19810 case $cc_basename in
19812 # Kuck and Associates, Inc. (KAI) C++ Compiler
19814 # KCC will only create a shared library if the output file
19815 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19816 # to its proper name (with version) after linking.
19817 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'
19819 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19820 hardcode_libdir_separator_CXX
=:
19822 # Archives containing C++ object files must be created using
19823 # the KAI C++ compiler.
19825 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19826 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19830 # Rational C++ 2.4.1
19831 # FIXME: insert proper C++ library support
19837 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19838 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'
19839 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19842 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19843 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'
19844 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19845 echo "-hidden">> $lib.exp~
19846 $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~
19848 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19852 hardcode_libdir_separator_CXX
=:
19854 # Commands to make compiler produce verbose output that lists
19855 # what "hidden" libraries, object files and flags are used when
19856 # linking a shared library.
19858 # There doesn't appear to be a way to prevent this compiler from
19859 # explicitly linking system object files so we need to strip them
19860 # from the output so that they don't get included in the library
19862 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"'
19865 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19866 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19869 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'
19872 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'
19876 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19877 hardcode_libdir_separator_CXX
=:
19879 # Commands to make compiler produce verbose output that lists
19880 # what "hidden" libraries, object files and flags are used when
19881 # linking a shared library.
19882 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19885 # FIXME: insert proper C++ library support
19893 # FIXME: insert proper C++ library support
19898 case $cc_basename in
19901 # FIXME: insert proper C++ library support
19906 # FIXME: insert proper C++ library support
19910 # FIXME: insert proper C++ library support
19917 case $cc_basename in
19919 # Sun C++ 4.2, 5.x and Centerline C++
19920 archive_cmds_need_lc_CXX
=yes
19921 no_undefined_flag_CXX
=' -zdefs'
19922 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19923 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19924 $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'
19926 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19927 hardcode_shlibpath_var_CXX
=no
19929 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19931 # The compiler driver will combine and reorder linker options,
19932 # but understands `-z linker_flag'.
19933 # Supported since Solaris 2.6 (maybe 2.5.1?)
19934 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19937 link_all_deplibs_CXX
=yes
19939 output_verbose_link_cmd
='func_echo_all'
19941 # Archives containing C++ object files must be created using
19942 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19943 # necessary to make sure instantiated templates are included
19945 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19948 # Green Hills C++ Compiler
19949 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19951 # The C++ compiler must be used to create the archive.
19952 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19955 # GNU C++ compiler with Solaris linker
19956 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19957 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19958 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19959 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19960 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19961 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19963 # Commands to make compiler produce verbose output that lists
19964 # what "hidden" libraries, object files and flags are used when
19965 # linking a shared library.
19966 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19968 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19970 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19971 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19972 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19974 # Commands to make compiler produce verbose output that lists
19975 # what "hidden" libraries, object files and flags are used when
19976 # linking a shared library.
19977 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19980 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19982 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19984 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19992 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19993 no_undefined_flag_CXX
='${wl}-z,text'
19994 archive_cmds_need_lc_CXX
=no
19995 hardcode_shlibpath_var_CXX
=no
19996 runpath_var
='LD_RUN_PATH'
19998 case $cc_basename in
20000 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20001 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20004 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20005 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20010 sysv5
* | sco3.2v5
* | sco5v6
*)
20011 # Note: We can NOT use -z defs as we might desire, because we do not
20012 # link with -lc, and that would cause any symbols used from libc to
20013 # always be unresolved, which means just about no library would
20014 # ever link correctly. If we're not using GNU ld we use -z text
20015 # though, which does catch some bad symbols but isn't as heavy-handed
20017 no_undefined_flag_CXX
='${wl}-z,text'
20018 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20019 archive_cmds_need_lc_CXX
=no
20020 hardcode_shlibpath_var_CXX
=no
20021 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20022 hardcode_libdir_separator_CXX
=':'
20023 link_all_deplibs_CXX
=yes
20024 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20025 runpath_var
='LD_RUN_PATH'
20027 case $cc_basename in
20029 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20030 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20031 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20032 '"$old_archive_cmds_CXX"
20033 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20034 '"$reload_cmds_CXX"
20037 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20038 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20044 case $cc_basename in
20046 # NonStop-UX NCC 3.20
20047 # FIXME: insert proper C++ library support
20051 # FIXME: insert proper C++ library support
20058 # FIXME: insert proper C++ library support
20063 # FIXME: insert proper C++ library support
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20069 $as_echo "$ld_shlibs_CXX" >&6; }
20070 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20076 ## There is no encapsulation within the following macros, do not change
20077 ## the running order or otherwise move them around unless you know exactly
20078 ## what you are doing...
20079 # Dependencies to place before and after the object being linked:
20080 predep_objects_CXX
=
20081 postdep_objects_CXX
=
20084 compiler_lib_search_path_CXX
=
20086 cat > conftest.
$ac_ext <<_LT_EOF
20090 Foo (void) { a = 0; }
20096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20097 (eval $ac_compile) 2>&5
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; }; then
20101 # Parse the compiler output and extract the necessary
20102 # objects, libraries and library flags.
20104 # Sentinel used to keep track of whether or not we are before
20105 # the conftest object file.
20106 pre_test_object_deps_done
=no
20108 for p
in `eval "$output_verbose_link_cmd"`; do
20112 # Some compilers place space between "-{L,R}" and the path.
20113 # Remove the space.
20114 if test $p = "-L" ||
20115 test $p = "-R"; then
20122 if test "$pre_test_object_deps_done" = no
; then
20125 # Internal compiler library paths should come after those
20126 # provided the user. The postdeps already come after the
20127 # user supplied libs so there is no need to process them.
20128 if test -z "$compiler_lib_search_path_CXX"; then
20129 compiler_lib_search_path_CXX
="${prev}${p}"
20131 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20134 # The "-l" case would never come before the object being
20135 # linked, so don't bother handling this case.
20138 if test -z "$postdeps_CXX"; then
20139 postdeps_CXX
="${prev}${p}"
20141 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20147 # This assumes that the test object file only shows up
20148 # once in the compiler output.
20149 if test "$p" = "conftest.$objext"; then
20150 pre_test_object_deps_done
=yes
20154 if test "$pre_test_object_deps_done" = no
; then
20155 if test -z "$predep_objects_CXX"; then
20156 predep_objects_CXX
="$p"
20158 predep_objects_CXX
="$predep_objects_CXX $p"
20161 if test -z "$postdep_objects_CXX"; then
20162 postdep_objects_CXX
="$p"
20164 postdep_objects_CXX
="$postdep_objects_CXX $p"
20169 *) ;; # Ignore the rest.
20177 echo "libtool.m4: error: problem compiling CXX test program"
20180 $RM -f confest.
$objext
20182 # PORTME: override above test on systems where it is broken
20185 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20186 # hack all around it, let's just trust "g++" to DTRT.
20187 predep_objects_CXX
=
20188 postdep_objects_CXX
=
20193 case `$CC -V 2>&1 | sed 5q` in
20197 # The more standards-conforming stlport4 library is
20198 # incompatible with the Cstd library. Avoid specifying
20199 # it if it's in CXXFLAGS. Ignore libCrun as
20200 # -library=stlport4 depends on it.
20201 case " $CXX $CXXFLAGS " in
20202 *" -library=stlport4 "*)
20203 solaris_use_stlport4
=yes
20207 if test "$solaris_use_stlport4" != yes; then
20208 postdeps_CXX
='-library=Cstd -library=Crun'
20215 case $cc_basename in
20217 # The more standards-conforming stlport4 library is
20218 # incompatible with the Cstd library. Avoid specifying
20219 # it if it's in CXXFLAGS. Ignore libCrun as
20220 # -library=stlport4 depends on it.
20221 case " $CXX $CXXFLAGS " in
20222 *" -library=stlport4 "*)
20223 solaris_use_stlport4
=yes
20227 # Adding this requires a known-good setup of shared libraries for
20228 # Sun compiler versions before 5.6, else PIC objects from an old
20229 # archive will be linked into the output, leading to subtle bugs.
20230 if test "$solaris_use_stlport4" != yes; then
20231 postdeps_CXX
='-library=Cstd -library=Crun'
20239 case " $postdeps_CXX " in
20240 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20242 compiler_lib_search_dirs_CXX
=
20243 if test -n "${compiler_lib_search_path_CXX}"; then
20244 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20277 lt_prog_compiler_wl_CXX
=
20278 lt_prog_compiler_pic_CXX
=
20279 lt_prog_compiler_static_CXX
=
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20282 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20284 # C++ specific cases for pic, static, wl, etc.
20285 if test "$GXX" = yes; then
20286 lt_prog_compiler_wl_CXX
='-Wl,'
20287 lt_prog_compiler_static_CXX
='-static'
20291 # All AIX code is PIC.
20292 if test "$host_cpu" = ia64
; then
20293 # AIX 5 now supports IA64 processor
20294 lt_prog_compiler_static_CXX
='-Bstatic'
20296 lt_prog_compiler_pic_CXX
='-fPIC'
20302 # see comment about AmigaOS4 .so support
20303 lt_prog_compiler_pic_CXX
='-fPIC'
20306 # FIXME: we need at least 68020 code to build shared libraries, but
20307 # adding the `-m68020' flag to GCC prevents building anything better,
20309 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20314 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20315 # PIC is the default for these OSes.
20317 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20318 # This hack is so that the source file can tell whether it is being
20319 # built for inclusion in a dll (and should export symbols for example).
20320 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20321 # (--disable-auto-import) libraries
20322 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20324 darwin
* | rhapsody
*)
20325 # PIC is the default on this platform
20326 # Common symbols not allowed in MH_DYLIB files
20327 lt_prog_compiler_pic_CXX
='-fno-common'
20330 # DJGPP does not support shared libraries at all
20331 lt_prog_compiler_pic_CXX
=
20334 # PIC is the default for Haiku.
20335 # The "-static" flag exists, but is broken.
20336 lt_prog_compiler_static_CXX
=
20339 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20340 # Instead, we relocate shared libraries at runtime.
20343 if test -d /usr
/nec
; then
20344 lt_prog_compiler_pic_CXX
=-Kconform_pic
20348 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20349 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20350 # sets the default TLS model and affects inlining.
20355 lt_prog_compiler_pic_CXX
='-fPIC'
20360 # QNX uses GNU C++, but need to define -shared option too, otherwise
20361 # it will coredump.
20362 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20365 lt_prog_compiler_pic_CXX
='-fPIC'
20371 # All AIX code is PIC.
20372 if test "$host_cpu" = ia64
; then
20373 # AIX 5 now supports IA64 processor
20374 lt_prog_compiler_static_CXX
='-Bstatic'
20376 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20380 case $cc_basename in
20382 # Green Hills C++ Compiler
20383 # _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"
20388 case $cc_basename in
20390 lt_prog_compiler_pic_CXX
='-KPIC'
20393 # Green Hills C++ Compiler
20394 lt_prog_compiler_pic_CXX
='-pic'
20400 freebsd
* | dragonfly
*)
20401 # FreeBSD uses GNU C++
20403 hpux9
* | hpux10
* | hpux11
*)
20404 case $cc_basename in
20406 lt_prog_compiler_wl_CXX
='-Wl,'
20407 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20408 if test "$host_cpu" != ia64
; then
20409 lt_prog_compiler_pic_CXX
='+Z'
20413 lt_prog_compiler_wl_CXX
='-Wl,'
20414 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20420 lt_prog_compiler_pic_CXX
='+Z'
20429 # This is c89, which is MS Visual C++ (no shared libs)
20430 # Anyone wants to do a port?
20432 irix5
* | irix6
* | nonstopux
*)
20433 case $cc_basename in
20435 lt_prog_compiler_wl_CXX
='-Wl,'
20436 lt_prog_compiler_static_CXX
='-non_shared'
20437 # CC pic flag -KPIC is the default.
20443 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20444 case $cc_basename in
20447 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20448 lt_prog_compiler_pic_CXX
='-fPIC'
20451 # old Intel C++ for x86_64 which still supported -KPIC.
20452 lt_prog_compiler_wl_CXX
='-Wl,'
20453 lt_prog_compiler_pic_CXX
='-KPIC'
20454 lt_prog_compiler_static_CXX
='-static'
20457 # Intel C++, used to be incompatible with GCC.
20458 # ICC 10 doesn't accept -KPIC any more.
20459 lt_prog_compiler_wl_CXX
='-Wl,'
20460 lt_prog_compiler_pic_CXX
='-fPIC'
20461 lt_prog_compiler_static_CXX
='-static'
20464 # Portland Group C++ compiler
20465 lt_prog_compiler_wl_CXX
='-Wl,'
20466 lt_prog_compiler_pic_CXX
='-fpic'
20467 lt_prog_compiler_static_CXX
='-Bstatic'
20471 # Make sure the PIC flag is empty. It appears that all Alpha
20472 # Linux and Compaq Tru64 Unix objects are PIC.
20473 lt_prog_compiler_pic_CXX
=
20474 lt_prog_compiler_static_CXX
='-non_shared'
20476 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20477 # IBM XL 8.0, 9.0 on PPC and BlueGene
20478 lt_prog_compiler_wl_CXX
='-Wl,'
20479 lt_prog_compiler_pic_CXX
='-qpic'
20480 lt_prog_compiler_static_CXX
='-qstaticlink'
20483 case `$CC -V 2>&1 | sed 5q` in
20486 lt_prog_compiler_pic_CXX
='-KPIC'
20487 lt_prog_compiler_static_CXX
='-Bstatic'
20488 lt_prog_compiler_wl_CXX
='-Qoption ld '
20499 case $cc_basename in
20501 lt_prog_compiler_pic_CXX
='-W c,exportall'
20510 # QNX uses GNU C++, but need to define -shared option too, otherwise
20511 # it will coredump.
20512 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20514 osf3
* | osf4
* | osf5
*)
20515 case $cc_basename in
20517 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20520 # Rational C++ 2.4.1
20521 lt_prog_compiler_pic_CXX
='-pic'
20524 # Digital/Compaq C++
20525 lt_prog_compiler_wl_CXX
='-Wl,'
20526 # Make sure the PIC flag is empty. It appears that all Alpha
20527 # Linux and Compaq Tru64 Unix objects are PIC.
20528 lt_prog_compiler_pic_CXX
=
20529 lt_prog_compiler_static_CXX
='-non_shared'
20538 case $cc_basename in
20540 # Sun C++ 4.2, 5.x and Centerline C++
20541 lt_prog_compiler_pic_CXX
='-KPIC'
20542 lt_prog_compiler_static_CXX
='-Bstatic'
20543 lt_prog_compiler_wl_CXX
='-Qoption ld '
20546 # Green Hills C++ Compiler
20547 lt_prog_compiler_pic_CXX
='-PIC'
20554 case $cc_basename in
20557 lt_prog_compiler_pic_CXX
='-pic'
20558 lt_prog_compiler_static_CXX
='-Bstatic'
20562 lt_prog_compiler_pic_CXX
='-pic'
20568 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20569 case $cc_basename in
20571 lt_prog_compiler_wl_CXX
='-Wl,'
20572 lt_prog_compiler_pic_CXX
='-KPIC'
20573 lt_prog_compiler_static_CXX
='-Bstatic'
20578 case $cc_basename in
20580 # NonStop-UX NCC 3.20
20581 lt_prog_compiler_pic_CXX
='-KPIC'
20590 lt_prog_compiler_can_build_shared_CXX
=no
20596 # For platforms which do not support PIC, -DPIC is meaningless:
20598 lt_prog_compiler_pic_CXX
=
20601 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20605 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20610 # Check to make sure the PIC flag actually works.
20612 if test -n "$lt_prog_compiler_pic_CXX"; then
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20614 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20615 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20616 $as_echo_n "(cached) " >&6
20618 lt_cv_prog_compiler_pic_works_CXX
=no
20619 ac_outfile
=conftest.
$ac_objext
20620 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20621 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20622 # Insert the option either (1) after the last *FLAGS variable, or
20623 # (2) before a word containing "conftest.", or (3) at the end.
20624 # Note that $ac_compile itself does not contain backslashes and begins
20625 # with a dollar sign (not a hyphen), so the echo should work correctly.
20626 # The option is referenced via a variable to avoid confusing sed.
20627 lt_compile
=`echo "$ac_compile" | $SED \
20628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20630 -e 's:$: $lt_compiler_flag:'`
20631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20632 (eval "$lt_compile" 2>conftest.err
)
20634 cat conftest.err
>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 if (exit $ac_status) && test -s "$ac_outfile"; then
20637 # The compiler can only warn and ignore the option if not recognized
20638 # So say no if there are warnings other than the usual output.
20639 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20640 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20641 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20642 lt_cv_prog_compiler_pic_works_CXX
=yes
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20649 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20651 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20652 case $lt_prog_compiler_pic_CXX in
20654 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20657 lt_prog_compiler_pic_CXX
=
20658 lt_prog_compiler_can_build_shared_CXX
=no
20666 # Check to make sure the static flag actually works.
20668 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20670 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20671 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20674 lt_cv_prog_compiler_static_works_CXX
=no
20675 save_LDFLAGS
="$LDFLAGS"
20676 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20677 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20678 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20679 # The linker can only warn and ignore the option if not recognized
20680 # So say no if there are warnings
20681 if test -s conftest.err
; then
20682 # Append any errors to the config.log.
20683 cat conftest.err
1>&5
20684 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20685 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20686 if diff conftest.exp conftest.er2
>/dev
/null
; then
20687 lt_cv_prog_compiler_static_works_CXX
=yes
20690 lt_cv_prog_compiler_static_works_CXX
=yes
20694 LDFLAGS
="$save_LDFLAGS"
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20698 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20700 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20703 lt_prog_compiler_static_CXX
=
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20710 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20711 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20712 $as_echo_n "(cached) " >&6
20714 lt_cv_prog_compiler_c_o_CXX
=no
20715 $RM -r conftest
2>/dev
/null
20719 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20721 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20722 # Insert the option either (1) after the last *FLAGS variable, or
20723 # (2) before a word containing "conftest.", or (3) at the end.
20724 # Note that $ac_compile itself does not contain backslashes and begins
20725 # with a dollar sign (not a hyphen), so the echo should work correctly.
20726 lt_compile
=`echo "$ac_compile" | $SED \
20727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20729 -e 's:$: $lt_compiler_flag:'`
20730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20731 (eval "$lt_compile" 2>out
/conftest.err
)
20733 cat out
/conftest.err
>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20737 # The compiler can only warn and ignore the option if not recognized
20738 # So say no if there are warnings
20739 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20740 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20741 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20742 lt_cv_prog_compiler_c_o_CXX
=yes
20747 # SGI C++ compiler will create directory out/ii_files/ for
20748 # template instantiation
20749 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20750 $RM out
/* && rmdir out
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20757 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20763 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20764 $as_echo_n "(cached) " >&6
20766 lt_cv_prog_compiler_c_o_CXX
=no
20767 $RM -r conftest
2>/dev
/null
20771 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20773 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20774 # Insert the option either (1) after the last *FLAGS variable, or
20775 # (2) before a word containing "conftest.", or (3) at the end.
20776 # Note that $ac_compile itself does not contain backslashes and begins
20777 # with a dollar sign (not a hyphen), so the echo should work correctly.
20778 lt_compile
=`echo "$ac_compile" | $SED \
20779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20781 -e 's:$: $lt_compiler_flag:'`
20782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20783 (eval "$lt_compile" 2>out
/conftest.err
)
20785 cat out
/conftest.err
>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20789 # The compiler can only warn and ignore the option if not recognized
20790 # So say no if there are warnings
20791 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20792 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20793 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20794 lt_cv_prog_compiler_c_o_CXX
=yes
20799 # SGI C++ compiler will create directory out/ii_files/ for
20800 # template instantiation
20801 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20802 $RM out
/* && rmdir out
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20809 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20814 hard_links
="nottested"
20815 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20816 # do not overwrite the value of need_locks provided by the user
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20818 $as_echo_n "checking if we can lock with hard links... " >&6; }
20821 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20823 ln conftest.a conftest.b
2>&5 || hard_links
=no
20824 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20826 $as_echo "$hard_links" >&6; }
20827 if test "$hard_links" = no
; then
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20829 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20839 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20841 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20844 # If we're using GNU nm, then we don't want the "-C" option.
20845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20846 # Also, AIX nm treats weak defined symbols like other global defined
20847 # symbols, whereas GNU nm marks them as "W".
20848 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20849 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'
20851 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'
20855 export_symbols_cmds_CXX
="$ltdll_cmds"
20857 cygwin
* | mingw
* | cegcc
*)
20858 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'
20861 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20864 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20867 $as_echo "$ld_shlibs_CXX" >&6; }
20868 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20870 with_gnu_ld_CXX
=$with_gnu_ld
20878 # Do we need to explicitly link libc?
20880 case "x$archive_cmds_need_lc_CXX" in
20882 # Assume -lc should be added
20883 archive_cmds_need_lc_CXX
=yes
20885 if test "$enable_shared" = yes && test "$GCC" = yes; then
20886 case $archive_cmds_CXX in
20888 # FIXME: we may have to deal with multi-command sequences.
20891 # Test whether the compiler implicitly links with -lc since on some
20892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20893 # to ld, don't add -lc before -lgcc.
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20895 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20896 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20897 $as_echo_n "(cached) " >&6
20900 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20903 (eval $ac_compile) 2>&5
20905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20906 test $ac_status = 0; } 2>conftest.err
; then
20909 libobjs
=conftest.
$ac_objext
20911 wl
=$lt_prog_compiler_wl_CXX
20912 pic_flag
=$lt_prog_compiler_pic_CXX
20918 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20919 allow_undefined_flag_CXX
=
20920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20921 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20924 test $ac_status = 0; }
20926 lt_cv_archive_cmds_need_lc_CXX
=no
20928 lt_cv_archive_cmds_need_lc_CXX
=yes
20930 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20932 cat conftest.err
1>&5
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20938 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20939 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21010 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21012 library_names_spec
=
21013 libname_spec
='lib$name'
21017 postuninstall_cmds
=
21021 shlibpath_overrides_runpath
=unknown
21023 dynamic_linker
="$host_os ld.so"
21024 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21025 need_lib_prefix
=unknown
21026 hardcode_into_libs
=no
21028 # when you set need_version to no, make sure it does not cause -set_version
21029 # flags to be left without arguments
21030 need_version
=unknown
21035 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21036 shlibpath_var
=LIBPATH
21038 # AIX 3 has no versioning support, so we append a major version to the name.
21039 soname_spec
='${libname}${release}${shared_ext}$major'
21046 hardcode_into_libs
=yes
21047 if test "$host_cpu" = ia64
; then
21048 # AIX 5 supports IA64
21049 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21050 shlibpath_var
=LD_LIBRARY_PATH
21052 # With GCC up to 2.95.x, collect2 would create an import file
21053 # for dependence libraries. The import file would start with
21054 # the line `#! .'. This would cause the generated library to
21055 # depend on `.', always an invalid library. This was fixed in
21056 # development snapshots of GCC prior to 3.0.
21058 aix4 | aix4.
[01] | aix4.
[01].
*)
21059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21061 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21064 can_build_shared
=no
21068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21069 # soname into executable. Probably we can add versioning support to
21070 # collect2, so additional links can be useful in future.
21071 if test "$aix_use_runtimelinking" = yes; then
21072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21073 # instead of lib<name>.a to let people know that these are not
21074 # typical AIX shared libraries.
21075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21077 # We preserve .a as extension for shared libraries through AIX4.2
21078 # and later when we are not doing run time linking.
21079 library_names_spec
='${libname}${release}.a $libname.a'
21080 soname_spec
='${libname}${release}${shared_ext}$major'
21082 shlibpath_var
=LIBPATH
21089 # Since July 2007 AmigaOS4 officially supports .so libraries.
21090 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21094 library_names_spec
='$libname.ixlibrary $libname.a'
21095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21096 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'
21102 library_names_spec
='${libname}${shared_ext}'
21103 dynamic_linker
="$host_os ld.so"
21104 shlibpath_var
=LIBRARY_PATH
21110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21111 soname_spec
='${libname}${release}${shared_ext}$major'
21112 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21113 shlibpath_var
=LD_LIBRARY_PATH
21114 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21115 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21116 # the default ld.so.conf also contains /usr/contrib/lib and
21117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21118 # libtool to hard-code these into programs
21121 cygwin
* | mingw
* | pw32
* | cegcc
*)
21122 version_type
=windows
21127 case $GCC,$host_os in
21128 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21129 library_names_spec
='$libname.dll.a'
21130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21131 postinstall_cmds
='base_file=`basename \${file}`~
21132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21133 dldir=$destdir/`dirname \$dlpath`~
21134 test -d \$dldir || mkdir -p \$dldir~
21135 $install_prog $dir/$dlname \$dldir/$dlname~
21136 chmod a+x \$dldir/$dlname~
21137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21140 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21141 dlpath=$dir/\$dldll~
21143 shlibpath_overrides_runpath
=yes
21147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21148 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21152 # MinGW DLLs use traditional 'lib' prefix
21153 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21156 # pw32 DLLs use 'pw' prefix rather than 'lib'
21157 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21163 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21166 dynamic_linker
='Win32 ld.exe'
21167 # FIXME: first we should search . and the directory the executable is in
21171 darwin
* | rhapsody
*)
21172 dynamic_linker
="$host_os dyld"
21173 version_type
=darwin
21176 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21177 soname_spec
='${libname}${release}${major}$shared_ext'
21178 shlibpath_overrides_runpath
=yes
21179 shlibpath_var
=DYLD_LIBRARY_PATH
21180 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21182 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21190 soname_spec
='${libname}${release}${shared_ext}$major'
21191 shlibpath_var
=LD_LIBRARY_PATH
21194 freebsd
* | dragonfly
*)
21195 # DragonFly does not have aout. When/if they implement a new
21196 # versioning mechanism, adjust this.
21197 if test -x /usr
/bin
/objformat
; then
21198 objformat
=`/usr/bin/objformat`
21201 freebsd
[23].
*) objformat
=aout
;;
21202 *) objformat
=elf
;;
21205 version_type
=freebsd-
$objformat
21206 case $version_type in
21208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21213 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21217 shlibpath_var
=LD_LIBRARY_PATH
21220 shlibpath_overrides_runpath
=yes
21222 freebsd3.
[01]* | freebsdelf3.
[01]*)
21223 shlibpath_overrides_runpath
=yes
21224 hardcode_into_libs
=yes
21226 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21227 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21228 shlibpath_overrides_runpath
=no
21229 hardcode_into_libs
=yes
21231 *) # from 4.6 on, and DragonFly
21232 shlibpath_overrides_runpath
=yes
21233 hardcode_into_libs
=yes
21242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21243 soname_spec
='${libname}${release}${shared_ext}$major'
21244 shlibpath_var
=LD_LIBRARY_PATH
21245 hardcode_into_libs
=yes
21252 dynamic_linker
="$host_os runtime_loader"
21253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21254 soname_spec
='${libname}${release}${shared_ext}$major'
21255 shlibpath_var
=LIBRARY_PATH
21256 shlibpath_overrides_runpath
=yes
21257 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21258 hardcode_into_libs
=yes
21261 hpux9
* | hpux10
* | hpux11
*)
21262 # Give a soname corresponding to the major version so that dld.sl refuses to
21263 # link against other versions.
21270 hardcode_into_libs
=yes
21271 dynamic_linker
="$host_os dld.so"
21272 shlibpath_var
=LD_LIBRARY_PATH
21273 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21275 soname_spec
='${libname}${release}${shared_ext}$major'
21276 if test "X$HPUX_IA64_MODE" = X32
; then
21277 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21279 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21281 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21285 hardcode_into_libs
=yes
21286 dynamic_linker
="$host_os dld.sl"
21287 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21288 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21289 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21290 soname_spec
='${libname}${release}${shared_ext}$major'
21291 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21292 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21296 dynamic_linker
="$host_os dld.sl"
21297 shlibpath_var
=SHLIB_PATH
21298 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21300 soname_spec
='${libname}${release}${shared_ext}$major'
21303 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21304 postinstall_cmds
='chmod 555 $lib'
21305 # or fails outright, so override atomically:
21306 install_override_mode
=555
21313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21314 soname_spec
='${libname}${release}${shared_ext}$major'
21315 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21316 shlibpath_var
=LD_LIBRARY_PATH
21317 shlibpath_overrides_runpath
=no
21318 hardcode_into_libs
=yes
21321 irix5
* | irix6
* | nonstopux
*)
21323 nonstopux
*) version_type
=nonstopux
;;
21325 if test "$lt_cv_prog_gnu_ld" = yes; then
21333 soname_spec
='${libname}${release}${shared_ext}$major'
21334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21336 irix5
* | nonstopux
*)
21337 libsuff
= shlibsuff
=
21340 case $LD in # libtool.m4 will add one of these switches to LD
21341 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21342 libsuff
= shlibsuff
= libmagic
=32-bit;;
21343 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21344 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21345 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21346 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21347 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21351 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21352 shlibpath_overrides_runpath
=no
21353 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21354 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21355 hardcode_into_libs
=yes
21358 # No shared lib support for Linux oldld, aout, or coff.
21359 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21363 # This must be Linux ELF.
21364 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21369 soname_spec
='${libname}${release}${shared_ext}$major'
21370 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21371 shlibpath_var
=LD_LIBRARY_PATH
21372 shlibpath_overrides_runpath
=no
21374 # Some binutils ld are patched to set DT_RUNPATH
21375 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21376 $as_echo_n "(cached) " >&6
21378 lt_cv_shlibpath_overrides_runpath
=no
21379 save_LDFLAGS
=$LDFLAGS
21380 save_libdir
=$libdir
21381 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21382 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21384 /* end confdefs.h. */
21394 if ac_fn_cxx_try_link
"$LINENO"; then :
21395 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21396 lt_cv_shlibpath_overrides_runpath
=yes
21399 rm -f core conftest.err conftest.
$ac_objext \
21400 conftest
$ac_exeext conftest.
$ac_ext
21401 LDFLAGS
=$save_LDFLAGS
21402 libdir
=$save_libdir
21406 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21408 # This implies no fast_install, which is unacceptable.
21409 # Some rework will be needed to allow for fast_install
21410 # before this can be enabled.
21411 hardcode_into_libs
=yes
21413 # Append ld.so.conf contents to the search path
21414 if test -f /etc
/ld.so.conf
; then
21415 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' ' '`
21416 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21419 # We used to test for /lib/ld.so.1 and disable shared libraries on
21420 # powerpc, because MkLinux only supported shared libraries with the
21421 # GNU dynamic linker. Since this was broken with cross compilers,
21422 # most powerpc-linux boxes support dynamic linking these days and
21423 # people can always --disable-shared, the test was removed, and we
21424 # assume the GNU/Linux dynamic linker is in use.
21425 dynamic_linker
='GNU/Linux ld.so'
21432 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21434 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21435 dynamic_linker
='NetBSD (a.out) ld.so'
21437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21438 soname_spec
='${libname}${release}${shared_ext}$major'
21439 dynamic_linker
='NetBSD ld.elf_so'
21441 shlibpath_var
=LD_LIBRARY_PATH
21442 shlibpath_overrides_runpath
=yes
21443 hardcode_into_libs
=yes
21448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21449 shlibpath_var
=LD_LIBRARY_PATH
21450 shlibpath_overrides_runpath
=yes
21457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21458 soname_spec
='${libname}${release}${shared_ext}$major'
21459 shlibpath_var
=LD_LIBRARY_PATH
21460 shlibpath_overrides_runpath
=no
21461 hardcode_into_libs
=yes
21462 dynamic_linker
='ldqnx.so'
21467 sys_lib_dlsearch_path_spec
="/usr/lib"
21469 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21471 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21472 *) need_version
=no
;;
21474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21475 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21476 shlibpath_var
=LD_LIBRARY_PATH
21477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21479 openbsd2.
[89] | openbsd2.
[89].
*)
21480 shlibpath_overrides_runpath
=no
21483 shlibpath_overrides_runpath
=yes
21487 shlibpath_overrides_runpath
=yes
21492 libname_spec
='$name'
21495 library_names_spec
='$libname${shared_ext} $libname.a'
21496 dynamic_linker
='OS/2 ld.exe'
21497 shlibpath_var
=LIBPATH
21500 osf3
* | osf4
* | osf5
*)
21504 soname_spec
='${libname}${release}${shared_ext}$major'
21505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21506 shlibpath_var
=LD_LIBRARY_PATH
21507 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21508 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21520 soname_spec
='${libname}${release}${shared_ext}$major'
21521 shlibpath_var
=LD_LIBRARY_PATH
21522 shlibpath_overrides_runpath
=yes
21523 hardcode_into_libs
=yes
21524 # ldd complains unless libraries are executable
21525 postinstall_cmds
='chmod +x $lib'
21530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21531 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21532 shlibpath_var
=LD_LIBRARY_PATH
21533 shlibpath_overrides_runpath
=yes
21534 if test "$with_gnu_ld" = yes; then
21542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21543 soname_spec
='${libname}${release}${shared_ext}$major'
21544 shlibpath_var
=LD_LIBRARY_PATH
21545 case $host_vendor in
21547 shlibpath_overrides_runpath
=no
21549 runpath_var
=LD_RUN_PATH
21557 shlibpath_overrides_runpath
=no
21558 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21564 if test -d /usr
/nec
;then
21566 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21567 soname_spec
='$libname${shared_ext}.$major'
21568 shlibpath_var
=LD_LIBRARY_PATH
21572 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21573 version_type
=freebsd-elf
21576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21577 soname_spec
='${libname}${release}${shared_ext}$major'
21578 shlibpath_var
=LD_LIBRARY_PATH
21579 shlibpath_overrides_runpath
=yes
21580 hardcode_into_libs
=yes
21581 if test "$with_gnu_ld" = yes; then
21582 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21584 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21587 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21591 sys_lib_dlsearch_path_spec
='/usr/lib'
21595 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21600 shlibpath_var
=LD_LIBRARY_PATH
21601 shlibpath_overrides_runpath
=no
21602 hardcode_into_libs
=yes
21607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21608 soname_spec
='${libname}${release}${shared_ext}$major'
21609 shlibpath_var
=LD_LIBRARY_PATH
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21617 $as_echo "$dynamic_linker" >&6; }
21618 test "$dynamic_linker" = no
&& can_build_shared
=no
21620 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21621 if test "$GCC" = yes; then
21622 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21625 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21626 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21628 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21629 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21670 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21671 hardcode_action_CXX
=
21672 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21673 test -n "$runpath_var_CXX" ||
21674 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21676 # We can hardcode non-existent directories.
21677 if test "$hardcode_direct_CXX" != no
&&
21678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21679 # have to relink, otherwise we might link with an installed library
21680 # when we should be linking with a yet-to-be-installed one
21681 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21682 test "$hardcode_minus_L_CXX" != no
; then
21683 # Linking always hardcodes the temporary library directory.
21684 hardcode_action_CXX
=relink
21686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21687 hardcode_action_CXX
=immediate
21690 # We cannot hardcode anything, or else we can only hardcode existing
21692 hardcode_action_CXX
=unsupported
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21695 $as_echo "$hardcode_action_CXX" >&6; }
21697 if test "$hardcode_action_CXX" = relink ||
21698 test "$inherit_rpath_CXX" = yes; then
21699 # Fast installation is not supported
21700 enable_fast_install
=no
21701 elif test "$shlibpath_overrides_runpath" = yes ||
21702 test "$enable_shared" = no
; then
21703 # Fast installation is not necessary
21704 enable_fast_install
=needless
21713 fi # test -n "$compiler"
21719 with_gnu_ld
=$lt_save_with_gnu_ld
21720 lt_cv_path_LDCXX
=$lt_cv_path_LD
21721 lt_cv_path_LD
=$lt_save_path_LD
21722 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21723 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21724 fi # test "$_lt_caught_CXX_error" != yes
21727 ac_cpp
='$CXXCPP $CPPFLAGS'
21728 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21729 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21730 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21747 # Only expand once:
21753 # Identify the assembler which will work hand-in-glove with the newly
21754 # built GCC, so that we can examine its features. This is the assembler
21755 # which will be driven by the driver program.
21757 # If build != host, and we aren't building gas in-tree, we identify a
21758 # build->target assembler and hope that it will have the same features
21759 # as the host->target assembler we'll be using.
21760 gcc_cv_gas_major_version
=
21761 gcc_cv_gas_minor_version
=
21762 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21764 if test "${gcc_cv_as+set}" = set; then :
21768 if test -x "$DEFAULT_ASSEMBLER"; then
21769 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21770 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21771 && test -f ..
/gas
/Makefile \
21772 && test x
$build = x
$host; then
21773 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21774 elif test -x as
$build_exeext; then
21775 # Build using assembler in the current directory.
21776 gcc_cv_as
=.
/as
$build_exeext
21777 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21778 gcc_cv_as
="$AS_FOR_TARGET"
21780 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21781 set dummy
$AS_FOR_TARGET; ac_word
=$2
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21783 $as_echo_n "checking for $ac_word... " >&6; }
21784 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21789 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21793 for as_dir
in $PATH
21796 test -z "$as_dir" && as_dir
=.
21797 for ac_exec_ext
in '' $ac_executable_extensions; do
21798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21799 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21810 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21811 if test -n "$gcc_cv_as"; then
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21813 $as_echo "$gcc_cv_as" >&6; }
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21816 $as_echo "no" >&6; }
21823 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21825 case "$ORIGINAL_AS_FOR_TARGET" in
21826 .
/as | .
/as
$build_exeext) ;;
21827 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21832 $as_echo_n "checking what assembler to use... " >&6; }
21833 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21834 # Single tree build which includes gas. We want to prefer it
21835 # over whatever linker top-level may have detected, since
21836 # we'll use what we're building after installation anyway.
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21838 $as_echo "newly built gas" >&6; }
21840 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21841 for f
in $gcc_cv_as_bfd_srcdir/configure \
21842 $gcc_cv_as_gas_srcdir/configure \
21843 $gcc_cv_as_gas_srcdir/configure.ac \
21844 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21845 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21846 if test x
$gcc_cv_gas_version != x
; then
21850 case $gcc_cv_gas_version in
21852 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21854 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21855 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21856 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21857 case $gcc_cv_gas_patch_version in
21858 "") gcc_cv_gas_patch_version
="0" ;;
21860 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21861 + $gcc_cv_gas_minor_version \) \* 1000 \
21862 + $gcc_cv_gas_patch_version`
21864 in_tree_gas_is_elf
=no
21865 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21866 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21867 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21869 in_tree_gas_is_elf
=yes
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21873 $as_echo "$gcc_cv_as" >&6; }
21878 # Check whether --enable-ld was given.
21879 if test "${enable_ld+set}" = set; then :
21880 enableval
=$enable_ld; case "${enableval}" in
21888 install_gold_as_default
=no
21889 # Check whether --enable-gold was given.
21890 if test "${enable_gold+set}" = set; then :
21891 enableval
=$enable_gold; case "${enableval}" in
21893 install_gold_as_default
=yes
21896 if test x
${default_ld} != x
; then
21897 install_gold_as_default
=yes
21903 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21909 # Identify the linker which will work hand-in-glove with the newly
21910 # built GCC, so that we can examine its features. This is the linker
21911 # which will be driven by the driver program.
21913 # If build != host, and we aren't building gas in-tree, we identify a
21914 # build->target linker and hope that it will have the same features
21915 # as the host->target linker we'll be using.
21916 gcc_cv_gld_major_version
=
21917 gcc_cv_gld_minor_version
=
21918 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21919 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21920 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21922 if test "${gcc_cv_ld+set}" = set; then :
21926 if test -x "$DEFAULT_LINKER"; then
21927 gcc_cv_ld
="$DEFAULT_LINKER"
21928 elif test $install_gold_as_default = yes \
21929 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21930 && test -f ..
/gold
/Makefile \
21931 && test x
$build = x
$host; then
21932 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21933 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21934 && test -f ..
/ld
/Makefile \
21935 && test x
$build = x
$host; then
21936 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21937 elif test -x collect-ld
$build_exeext; then
21938 # Build using linker in the current directory.
21939 gcc_cv_ld
=.
/collect-ld
$build_exeext
21940 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21941 gcc_cv_ld
="$LD_FOR_TARGET"
21943 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21944 set dummy
$LD_FOR_TARGET; ac_word
=$2
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21946 $as_echo_n "checking for $ac_word... " >&6; }
21947 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21948 $as_echo_n "(cached) " >&6
21952 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21956 for as_dir
in $PATH
21959 test -z "$as_dir" && as_dir
=.
21960 for ac_exec_ext
in '' $ac_executable_extensions; do
21961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21962 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21973 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21974 if test -n "$gcc_cv_ld"; then
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21976 $as_echo "$gcc_cv_ld" >&6; }
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979 $as_echo "no" >&6; }
21986 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21987 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21988 # if the PLUGIN_LD is set ld-new, just have it as ld
21989 # as that is the installed named.
21990 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21991 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21992 PLUGIN_LD_SUFFIX
=ld
21995 # Check whether --with-plugin-ld was given.
21996 if test "${with_plugin_ld+set}" = set; then :
21997 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21998 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21999 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
22005 cat >>confdefs.h
<<_ACEOF
22006 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22010 # Check to see if we are using gold instead of ld
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22012 $as_echo_n "checking whether we are using gold... " >&6; }
22014 if test x
$gcc_cv_ld != x
; then
22015 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22016 |
grep "GNU gold" > /dev
/null
; then
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22021 $as_echo "$ld_is_gold" >&6; }
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22024 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22025 # Check to see if default ld is not gold, but gold is
22026 # available and has support for split stack. If gcc was configured
22027 # with gold then no checking is done.
22029 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22031 # For platforms other than powerpc64*, enable as appropriate.
22033 gold_non_default
=no
22034 ld_gold
=`which ${gcc_cv_ld}.gold`
22035 # Make sure this gold has minimal split stack support
22036 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22037 ld_vers
=`$ld_gold --version | sed 1q`
22038 gold_vers
=`echo $ld_vers | sed -n \
22039 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22041 # check that the gold version contains the complete split stack support
22042 # on powerpc64 big and little endian
22044 case "$gold_vers" in
22045 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22047 *) gold_non_default
=no
22053 if test $gold_non_default = yes; then
22055 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22060 $as_echo "$gold_non_default" >&6; }
22062 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22064 case "$ORIGINAL_LD_FOR_TARGET" in
22065 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22066 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22071 $as_echo_n "checking what linker to use... " >&6; }
22072 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22073 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22074 # Single tree build which includes ld. We want to prefer it
22075 # over whatever linker top-level may have detected, since
22076 # we'll use what we're building after installation anyway.
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22078 $as_echo "newly built ld" >&6; }
22080 in_tree_ld_is_elf
=no
22081 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22082 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22083 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22084 in_tree_ld_is_elf
=yes
22085 elif test "$ld_is_gold" = yes; then
22086 in_tree_ld_is_elf
=yes
22088 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
22090 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22091 if test x
$gcc_cv_gld_version != x
; then
22095 case $gcc_cv_gld_version in
22097 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22099 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22100 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22101 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22102 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22105 $as_echo "$gcc_cv_ld" >&6; }
22107 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22108 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22109 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22115 # Figure out what nm we will be using.
22116 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22117 if test "${gcc_cv_nm+set}" = set; then :
22121 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22122 && test -f ..
/binutils
/Makefile \
22123 && test x
$build = x
$host; then
22124 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22125 elif test -x nm
$build_exeext; then
22126 gcc_cv_nm
=.
/nm
$build_exeext
22127 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22128 gcc_cv_nm
="$NM_FOR_TARGET"
22130 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22131 set dummy
$NM_FOR_TARGET; ac_word
=$2
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22133 $as_echo_n "checking for $ac_word... " >&6; }
22134 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22135 $as_echo_n "(cached) " >&6
22139 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22143 for as_dir
in $PATH
22146 test -z "$as_dir" && as_dir
=.
22147 for ac_exec_ext
in '' $ac_executable_extensions; do
22148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22149 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22160 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22161 if test -n "$gcc_cv_nm"; then
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22163 $as_echo "$gcc_cv_nm" >&6; }
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22166 $as_echo "no" >&6; }
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22174 $as_echo_n "checking what nm to use... " >&6; }
22175 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22176 # Single tree build which includes binutils.
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22178 $as_echo "newly built nm" >&6; }
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22182 $as_echo "$gcc_cv_nm" >&6; }
22186 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22188 case "$ORIGINAL_NM_FOR_TARGET" in
22189 .
/nm | .
/nm
$build_exeext) ;;
22190 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22195 # Figure out what objdump we will be using.
22196 if test "${gcc_cv_objdump+set}" = set; then :
22200 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22201 && test -f ..
/binutils
/Makefile \
22202 && test x
$build = x
$host; then
22203 # Single tree build which includes binutils.
22204 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22205 elif test -x objdump
$build_exeext; then
22206 gcc_cv_objdump
=.
/objdump
$build_exeext
22207 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22208 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22210 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22211 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22213 $as_echo_n "checking for $ac_word... " >&6; }
22214 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22215 $as_echo_n "(cached) " >&6
22217 case $gcc_cv_objdump in
22219 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22223 for as_dir
in $PATH
22226 test -z "$as_dir" && as_dir
=.
22227 for ac_exec_ext
in '' $ac_executable_extensions; do
22228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22229 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22240 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22241 if test -n "$gcc_cv_objdump"; then
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22243 $as_echo "$gcc_cv_objdump" >&6; }
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22246 $as_echo "no" >&6; }
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22254 $as_echo_n "checking what objdump to use... " >&6; }
22255 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22256 # Single tree build which includes binutils.
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22258 $as_echo "newly built objdump" >&6; }
22259 elif test x
$gcc_cv_objdump = x
; then
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22261 $as_echo "not found" >&6; }
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22264 $as_echo "$gcc_cv_objdump" >&6; }
22267 # Figure out what readelf we will be using.
22268 if test "${gcc_cv_readelf+set}" = set; then :
22272 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22273 && test -f ..
/binutils
/Makefile \
22274 && test x
$build = x
$host; then
22275 # Single tree build which includes binutils.
22276 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22277 elif test -x readelf
$build_exeext; then
22278 gcc_cv_readelf
=.
/readelf
$build_exeext
22279 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22280 gcc_cv_readelf
="$READELF_FOR_TARGET"
22282 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22283 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22285 $as_echo_n "checking for $ac_word... " >&6; }
22286 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22287 $as_echo_n "(cached) " >&6
22289 case $gcc_cv_readelf in
22291 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22295 for as_dir
in $PATH
22298 test -z "$as_dir" && as_dir
=.
22299 for ac_exec_ext
in '' $ac_executable_extensions; do
22300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22301 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22312 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22313 if test -n "$gcc_cv_readelf"; then
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22315 $as_echo "$gcc_cv_readelf" >&6; }
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22326 $as_echo_n "checking what readelf to use... " >&6; }
22327 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22328 # Single tree build which includes binutils.
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22330 $as_echo "newly built readelf" >&6; }
22331 elif test x
$gcc_cv_readelf = x
; then
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22333 $as_echo "not found" >&6; }
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22336 $as_echo "$gcc_cv_readelf" >&6; }
22339 # Figure out what assembler alignment features are present.
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22341 $as_echo_n "checking assembler flags... " >&6; }
22342 if test "${gcc_cv_as_flags+set}" = set; then :
22343 $as_echo_n "(cached) " >&6
22346 i
[34567]86-*-linux*)
22347 gcc_cv_as_flags
=--32
22349 x86_64-
*-linux-gnux32)
22350 gcc_cv_as_flags
=--x32
22353 gcc_cv_as_flags
=--64
22355 powerpc
*-*-darwin*)
22356 gcc_cv_as_flags
="-arch ppc"
22359 gcc_cv_as_flags
=" "
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22364 $as_echo "$gcc_cv_as_flags" >&6; }
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22367 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22368 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22369 $as_echo_n "(cached) " >&6
22371 gcc_cv_as_balign_and_p2align
=no
22372 if test $in_tree_gas = yes; then
22373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22374 then gcc_cv_as_balign_and_p2align
=yes
22376 elif test x
$gcc_cv_as != x
; then
22377 $as_echo '.balign 4
22378 .p2align 2' > conftest.s
22379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22381 (eval $ac_try) 2>&5
22383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22384 test $ac_status = 0; }; }
22386 gcc_cv_as_balign_and_p2align
=yes
22388 echo "configure: failed program was" >&5
22391 rm -f conftest.o conftest.s
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22395 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22396 if test $gcc_cv_as_balign_and_p2align = yes; then
22398 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22403 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22404 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22405 $as_echo_n "(cached) " >&6
22407 gcc_cv_as_max_skip_p2align
=no
22408 if test $in_tree_gas = yes; then
22409 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22410 then gcc_cv_as_max_skip_p2align
=yes
22412 elif test x
$gcc_cv_as != x
; then
22413 $as_echo '.p2align 4,,7' > conftest.s
22414 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22416 (eval $ac_try) 2>&5
22418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22419 test $ac_status = 0; }; }
22421 gcc_cv_as_max_skip_p2align
=yes
22423 echo "configure: failed program was" >&5
22426 rm -f conftest.o conftest.s
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22430 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22431 if test $gcc_cv_as_max_skip_p2align = yes; then
22433 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22438 $as_echo_n "checking assembler for .literal16... " >&6; }
22439 if test "${gcc_cv_as_literal16+set}" = set; then :
22440 $as_echo_n "(cached) " >&6
22442 gcc_cv_as_literal16
=no
22443 if test $in_tree_gas = yes; then
22444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22445 then gcc_cv_as_literal16
=yes
22447 elif test x
$gcc_cv_as != x
; then
22448 $as_echo '.literal16' > conftest.s
22449 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22451 (eval $ac_try) 2>&5
22453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22454 test $ac_status = 0; }; }
22456 gcc_cv_as_literal16
=yes
22458 echo "configure: failed program was" >&5
22461 rm -f conftest.o conftest.s
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22465 $as_echo "$gcc_cv_as_literal16" >&6; }
22466 if test $gcc_cv_as_literal16 = yes; then
22468 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22473 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22474 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22475 $as_echo_n "(cached) " >&6
22477 gcc_cv_as_subsection_m1
=no
22478 if test $in_tree_gas = yes; then
22479 if test $in_tree_gas_is_elf = yes \
22480 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22481 then gcc_cv_as_subsection_m1
=yes
22483 elif test x
$gcc_cv_as != x
; then
22484 $as_echo 'conftest_label1: .word 0
22486 conftest_label2: .word 0
22487 .previous' > conftest.s
22488 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22490 (eval $ac_try) 2>&5
22492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22493 test $ac_status = 0; }; }
22495 if test x
$gcc_cv_nm != x
; then
22496 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22497 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22498 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22500 else gcc_cv_as_subsection_m1
=yes
22502 rm -f conftest.nm1 conftest.nm2
22505 echo "configure: failed program was" >&5
22508 rm -f conftest.o conftest.s
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22512 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22513 if test $gcc_cv_as_subsection_m1 = yes; then
22515 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22520 $as_echo_n "checking assembler for .weak... " >&6; }
22521 if test "${gcc_cv_as_weak+set}" = set; then :
22522 $as_echo_n "(cached) " >&6
22525 if test $in_tree_gas = yes; then
22526 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22527 then gcc_cv_as_weak
=yes
22529 elif test x
$gcc_cv_as != x
; then
22530 $as_echo ' .weak foobar' > conftest.s
22531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22533 (eval $ac_try) 2>&5
22535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22536 test $ac_status = 0; }; }
22540 echo "configure: failed program was" >&5
22543 rm -f conftest.o conftest.s
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22547 $as_echo "$gcc_cv_as_weak" >&6; }
22548 if test $gcc_cv_as_weak = yes; then
22550 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22555 $as_echo_n "checking assembler for .weakref... " >&6; }
22556 if test "${gcc_cv_as_weakref+set}" = set; then :
22557 $as_echo_n "(cached) " >&6
22559 gcc_cv_as_weakref
=no
22560 if test $in_tree_gas = yes; then
22561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22562 then gcc_cv_as_weakref
=yes
22564 elif test x
$gcc_cv_as != x
; then
22565 $as_echo ' .weakref foobar, barfnot' > conftest.s
22566 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }
22573 gcc_cv_as_weakref
=yes
22575 echo "configure: failed program was" >&5
22578 rm -f conftest.o conftest.s
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22582 $as_echo "$gcc_cv_as_weakref" >&6; }
22583 if test $gcc_cv_as_weakref = yes; then
22585 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22590 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22591 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22592 $as_echo_n "(cached) " >&6
22594 gcc_cv_as_nsubspa_comdat
=no
22595 if test $in_tree_gas = yes; then
22596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22597 then gcc_cv_as_nsubspa_comdat
=yes
22599 elif test x
$gcc_cv_as != x
; then
22600 $as_echo ' .SPACE $TEXT$
22601 .NSUBSPA $CODE$,COMDAT' > conftest.s
22602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22604 (eval $ac_try) 2>&5
22606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22607 test $ac_status = 0; }; }
22609 gcc_cv_as_nsubspa_comdat
=yes
22611 echo "configure: failed program was" >&5
22614 rm -f conftest.o conftest.s
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22618 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22619 if test $gcc_cv_as_nsubspa_comdat = yes; then
22621 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22625 # .hidden needs to be supported in both the assembler and the linker,
22626 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22627 # This is irritatingly difficult to feature test for; we have to check the
22628 # date string after the version number. If we've got an in-tree
22629 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22631 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22633 $as_echo_n "checking assembler for .hidden... " >&6; }
22634 if test "${gcc_cv_as_hidden+set}" = set; then :
22635 $as_echo_n "(cached) " >&6
22637 gcc_cv_as_hidden
=no
22638 if test $in_tree_gas = yes; then
22639 if test $in_tree_gas_is_elf = yes \
22640 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22641 then gcc_cv_as_hidden
=yes
22643 elif test x
$gcc_cv_as != x
; then
22644 $as_echo ' .hidden foobar
22645 foobar:' > conftest.s
22646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22648 (eval $ac_try) 2>&5
22650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22651 test $ac_status = 0; }; }
22653 gcc_cv_as_hidden
=yes
22655 echo "configure: failed program was" >&5
22658 rm -f conftest.o conftest.s
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22662 $as_echo "$gcc_cv_as_hidden" >&6; }
22664 case "${target}" in
22666 # Darwin as has some visibility support, though with a different syntax.
22667 gcc_cv_as_hidden
=yes
22671 # gnu_indirect_function type is an extension proposed at
22672 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22673 # selection of function implementation
22674 # Check whether --enable-gnu-indirect-function was given.
22675 if test "${enable_gnu_indirect_function+set}" = set; then :
22676 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22678 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22679 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22682 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22686 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22688 cat >>confdefs.h
<<_ACEOF
22689 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22694 if test $in_tree_ld != yes ; then
22695 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22696 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22697 if test x
"$ld_is_gold" = xyes
; then
22698 # GNU gold --version looks like this:
22700 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22702 # We extract the binutils version which is more familiar and specific
22703 # than the gold version.
22704 ld_vers
=`echo $ld_ver | sed -n \
22705 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22707 # GNU ld --version looks like this:
22709 # GNU ld (GNU Binutils) 2.21.51.20110225
22710 ld_vers
=`echo $ld_ver | sed -n \
22711 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22713 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'`
22714 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22715 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22716 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22718 case "${target}" in
22720 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22723 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22724 # /usr/ccs/bin/ld has been configured.
22725 ld_ver
=`$gcc_cv_ld -V 2>&1`
22726 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22727 ld_vers
=`echo $ld_ver | sed -n \
22728 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22729 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22730 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22738 $as_echo_n "checking linker for .hidden support... " >&6; }
22739 if test "${gcc_cv_ld_hidden+set}" = set; then :
22740 $as_echo_n "(cached) " >&6
22742 if test $in_tree_ld = yes ; then
22743 gcc_cv_ld_hidden
=no
22744 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 \
22745 && test $in_tree_ld_is_elf = yes; then
22746 gcc_cv_ld_hidden
=yes
22749 gcc_cv_ld_hidden
=yes
22750 if test x
"$ld_is_gold" = xyes
; then
22752 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22753 case "${target}" in
22754 mmix-knuth-mmixware
)
22755 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22756 gcc_cv_ld_hidden
=no
22759 if test 0"$ld_date" -lt 20020404; then
22760 if test -n "$ld_date"; then
22761 # If there was date string, but was earlier than 2002-04-04, fail
22762 gcc_cv_ld_hidden
=no
22763 elif test -z "$ld_vers"; then
22764 # If there was no date string nor ld version number, something is wrong
22765 gcc_cv_ld_hidden
=no
22767 test -z "$ld_vers_patch" && ld_vers_patch
=0
22768 if test "$ld_vers_major" -lt 2; then
22769 gcc_cv_ld_hidden
=no
22770 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22771 gcc_cv_ld_hidden
="no"
22772 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22773 gcc_cv_ld_hidden
=no
22778 case "${target}" in
22780 # Darwin ld has some visibility support.
22781 gcc_cv_ld_hidden
=yes
22783 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22784 gcc_cv_ld_hidden
=yes
22786 *-*-solaris2.1
[0-9]*)
22787 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22788 # .symbolic was only added in Solaris 9 12/02.
22789 gcc_cv_ld_hidden
=yes
22792 gcc_cv_ld_hidden
=no
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22799 $as_echo "$gcc_cv_ld_hidden" >&6; }
22800 libgcc_visibility
=no
22803 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22804 libgcc_visibility
=yes
22806 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22811 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22812 gcc_cv_ld_ro_rw_mix
=unknown
22813 if test $in_tree_ld = yes ; then
22814 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 \
22815 && test $in_tree_ld_is_elf = yes; then
22816 gcc_cv_ld_ro_rw_mix
=read-write
22818 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22819 echo '.section myfoosect, "a"' > conftest1.s
22820 echo '.section myfoosect, "aw"' > conftest2.s
22821 echo '.byte 1' >> conftest2.s
22822 echo '.section myfoosect, "a"' > conftest3.s
22823 echo '.byte 0' >> conftest3.s
22824 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22825 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22826 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22827 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22828 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22829 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22830 | sed -e '/myfoosect/!d' -e N`
22831 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22832 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22833 gcc_cv_ld_ro_rw_mix
=read-only
22835 gcc_cv_ld_ro_rw_mix
=read-write
22839 rm -f conftest.
* conftest
[123].
*
22841 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22843 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22847 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22849 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22850 case "${target}" in
22853 # Solaris 2 ld -V output looks like this for a regular version:
22855 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22857 # but test versions add stuff at the end:
22859 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22861 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22862 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22863 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22864 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22865 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22866 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22872 # Check whether --enable-initfini-array was given.
22873 if test "${enable_initfini_array+set}" = set; then :
22874 enableval
=$enable_initfini_array;
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22878 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22879 if test "${gcc_cv_initfini_array+set}" = set; then :
22880 $as_echo_n "(cached) " >&6
22882 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22883 case "${target}" in
22885 if test "$cross_compiling" = yes; then :
22886 gcc_cv_initfini_array
=no
22888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22889 /* end confdefs.h. */
22892 #error Not an ELF OS
22894 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22895 if it can be used. */
22897 int main (void) { return x; }
22898 int foo (void) { x = 0; }
22899 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22902 if ac_fn_cxx_try_run
"$LINENO"; then :
22903 gcc_cv_initfini_array
=yes
22905 gcc_cv_initfini_array
=no
22907 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22908 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22912 gcc_cv_initfini_array
=no
22913 if test $in_tree_ld = yes ; then
22914 if test "$gcc_cv_gld_major_version" -eq 2 \
22915 -a "$gcc_cv_gld_minor_version" -ge 22 \
22916 -o "$gcc_cv_gld_major_version" -gt 2 \
22917 && test $in_tree_ld_is_elf = yes; then
22918 gcc_cv_initfini_array
=yes
22920 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22921 cat > conftest.s
<<\EOF
22922 .section .dtors
,"a",%progbits
22924 .byte
'A', 'A', 'A', 'A'
22925 .section .ctors
,"a",%progbits
22927 .byte
'B', 'B', 'B', 'B'
22928 .section .fini_array
.65530,"a",%progbits
22930 .byte
'C', 'C', 'C', 'C'
22931 .section .init_array
.65530,"a",%progbits
22933 .byte
'D', 'D', 'D', 'D'
22934 .section .dtors
.64528,"a",%progbits
22936 .byte
'E', 'E', 'E', 'E'
22937 .section .ctors
.64528,"a",%progbits
22939 .byte
'F', 'F', 'F', 'F'
22940 .section .fini_array
.01005,"a",%progbits
22942 .byte
'G', 'G', 'G', 'G'
22943 .section .init_array
.01005,"a",%progbits
22945 .byte
'H', 'H', 'H', 'H'
22950 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22951 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22952 && $gcc_cv_objdump -s -j .init_array conftest \
22953 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22954 && $gcc_cv_objdump -s -j .fini_array conftest \
22955 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22956 gcc_cv_initfini_array
=yes
22958 rm -f conftest conftest.
*
22960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h. */
22964 # error Not an ELF OS
22966 #include <stdlib.h>
22967 #if defined __GLIBC_PREREQ
22968 # if __GLIBC_PREREQ (2, 4)
22970 # error GLIBC 2.4 required
22973 # if defined __sun__ && defined __svr4__
22974 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22976 # error The C library not known to support .init_array/.fini_array
22981 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22984 gcc_cv_initfini_array
=no
22986 rm -f conftest.err conftest.
$ac_ext;;
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22990 $as_echo_n "checking cross compile... guessing... " >&6; }
22991 gcc_cv_initfini_array
=no
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22995 $as_echo "$gcc_cv_initfini_array" >&6; }
22996 enable_initfini_array
=$gcc_cv_initfini_array
23000 if test $enable_initfini_array = yes; then
23002 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
23006 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23008 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23009 if test "${gcc_cv_as_leb128+set}" = set; then :
23010 $as_echo_n "(cached) " >&6
23012 gcc_cv_as_leb128
=no
23013 if test $in_tree_gas = yes; then
23014 if test $in_tree_gas_is_elf = yes \
23015 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23016 then gcc_cv_as_leb128
=yes
23018 elif test x
$gcc_cv_as != x
; then
23025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23027 (eval $ac_try) 2>&5
23029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23030 test $ac_status = 0; }; }
23032 # GAS versions before 2.11 do not support uleb128,
23033 # despite appearing to.
23034 # ??? There exists an elf-specific test that will crash
23035 # the assembler. Perhaps it's better to figure out whether
23036 # arbitrary sections are supported and try the test.
23037 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23038 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23039 as_vers
=`echo $as_ver | sed -n \
23040 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23041 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23042 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23043 if test $as_major -eq 2 && test $as_minor -lt 11
23045 else gcc_cv_as_leb128
=yes
23049 echo "configure: failed program was" >&5
23052 rm -f conftest.o conftest.s
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23056 $as_echo "$gcc_cv_as_leb128" >&6; }
23057 if test $gcc_cv_as_leb128 = yes; then
23059 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23063 # Check if we have assembler support for unwind directives.
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23065 $as_echo_n "checking assembler for cfi directives... " >&6; }
23066 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23067 $as_echo_n "(cached) " >&6
23069 gcc_cv_as_cfi_directive
=no
23070 if test x
$gcc_cv_as != x
; then
23076 .cfi_escape 1, 2, 3, 4, 5
23077 .cfi_endproc' > conftest.s
23078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23080 (eval $ac_try) 2>&5
23082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23083 test $ac_status = 0; }; }
23087 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23088 # read-only and read-write sections, we need to make sure that the
23089 # assembler used emits read-write .eh_frame sections.
23090 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23091 if test "x$gcc_cv_objdump" != x
; then
23092 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23093 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23094 gcc_cv_as_cfi_directive
=no
23097 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23098 # On Solaris/x86, make sure that GCC and assembler agree on using
23099 # read-only .eh_frame sections for 64-bit.
23100 if test x
$gas = xyes
; then
23101 as_ix86_64_opt
="--64"
23103 as_ix86_64_opt
="-xarch=amd64"
23105 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23106 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23107 sed -e /.eh_frame
/!d
-e N | \
23108 grep READONLY
> /dev
/null
; then
23109 gcc_cv_as_cfi_directive
=yes
23111 gcc_cv_as_cfi_directive
=no
23115 gcc_cv_as_cfi_directive
=yes
23120 # no objdump, err on the side of caution
23121 gcc_cv_as_cfi_directive
=no
23124 gcc_cv_as_cfi_directive
=yes
23128 gcc_cv_as_cfi_directive
=yes
23132 echo "configure: failed program was" >&5
23135 rm -f conftest.o conftest.s
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23139 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23141 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23143 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23144 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23145 $as_echo_n "(cached) " >&6
23147 gcc_cv_as_cfi_advance_working
=no
23148 if test x
$gcc_cv_as != x
; then
23151 .cfi_adjust_cfa_offset 64
23153 .cfi_adjust_cfa_offset 128
23154 .cfi_endproc' > conftest.s
23155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23157 (eval $ac_try) 2>&5
23159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23160 test $ac_status = 0; }; }
23163 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23164 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23165 gcc_cv_as_cfi_advance_working
=yes
23169 echo "configure: failed program was" >&5
23172 rm -f conftest.o conftest.s
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23176 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23179 # no objdump, err on the side of caution
23180 gcc_cv_as_cfi_advance_working
=no
23184 cat >>confdefs.h
<<_ACEOF
23185 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23186 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23192 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23193 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23194 $as_echo_n "(cached) " >&6
23196 gcc_cv_as_cfi_personality_directive
=no
23197 if test x
$gcc_cv_as != x
; then
23200 .cfi_personality 0, symbol
23201 .cfi_endproc' > conftest.s
23202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23204 (eval $ac_try) 2>&5
23206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23207 test $ac_status = 0; }; }
23209 gcc_cv_as_cfi_personality_directive
=yes
23211 echo "configure: failed program was" >&5
23214 rm -f conftest.o conftest.s
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23218 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23221 cat >>confdefs.h
<<_ACEOF
23222 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23223 then echo 1; else echo 0; fi`
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23228 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23229 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23230 $as_echo_n "(cached) " >&6
23232 gcc_cv_as_cfi_sections_directive
=no
23233 if test x
$gcc_cv_as != x
; then
23235 .cfi_sections .debug_frame, .eh_frame
23237 .cfi_endproc' > conftest.s
23238 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23240 (eval $ac_try) 2>&5
23242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23243 test $ac_status = 0; }; }
23246 win32 | pe | cygwin
* | mingw32
*)
23247 # Need to check that we generated the correct relocation for the
23248 # .debug_frame section. This was fixed for binutils 2.21.
23249 gcc_cv_as_cfi_sections_directive
=no
23250 if test "x$gcc_cv_objdump" != x
; then
23251 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23252 grep secrel
> /dev
/null
; then
23253 gcc_cv_as_cfi_sections_directive
=yes
23258 gcc_cv_as_cfi_sections_directive
=yes
23262 echo "configure: failed program was" >&5
23265 rm -f conftest.o conftest.s
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23269 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23273 cat >>confdefs.h
<<_ACEOF
23274 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23275 then echo 1; else echo 0; fi`
23279 # GAS versions up to and including 2.11.0 may mis-optimize
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23282 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23283 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23284 $as_echo_n "(cached) " >&6
23286 gcc_cv_as_eh_frame
=no
23287 if test $in_tree_gas = yes; then
23288 if test $in_tree_gas_is_elf = yes \
23289 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23290 then gcc_cv_as_eh_frame
=yes
23292 elif test x
$gcc_cv_as != x
; then
23299 .section .eh_frame,"aw",@progbits
23301 .4byte .LECIE1-.LSCIE1
23315 .4byte .LEFDE1-.LASFDE1
23317 .4byte .LASFDE1-__FRAME_BEGIN__
23324 .LEFDE1:' > conftest.s
23325 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23327 (eval $ac_try) 2>&5
23329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23330 test $ac_status = 0; }; }
23332 cat > conftest.lit
<<EOF
23333 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23334 0010 01000000 12000000 18000000 00000000 ................
23335 0020 08000000 04080000 0044 .........D
23337 cat > conftest.big
<<EOF
23338 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23339 0010 00000001 00000012 00000018 00000000 ................
23340 0020 00000008 04000000 0844 .........D
23342 # If the assembler didn't choke, and we can objdump,
23343 # and we got the correct data, then succeed.
23344 # The text in the here-document typically retains its unix-style line
23345 # endings, while the output of objdump will use host line endings.
23346 # Therefore, use diff -b for the comparisons.
23347 if test x
$gcc_cv_objdump != x \
23348 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23349 |
tail -3 > conftest.got \
23350 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23351 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23353 gcc_cv_as_eh_frame
=yes
23354 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23356 (eval $ac_try) 2>&5
23358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23359 test $ac_status = 0; }; }; then
23360 gcc_cv_as_eh_frame
=buggy
23362 # Uh oh, what do we do now?
23363 gcc_cv_as_eh_frame
=no
23366 echo "configure: failed program was" >&5
23369 rm -f conftest.o conftest.s
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23373 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23376 if test $gcc_cv_as_eh_frame = buggy
; then
23378 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23383 $as_echo_n "checking assembler for section merging support... " >&6; }
23384 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23385 $as_echo_n "(cached) " >&6
23387 gcc_cv_as_shf_merge
=no
23388 if test $in_tree_gas = yes; then
23389 if test $in_tree_gas_is_elf = yes \
23390 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23391 then gcc_cv_as_shf_merge
=yes
23393 elif test x
$gcc_cv_as != x
; then
23394 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23397 (eval $ac_try) 2>&5
23399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23400 test $ac_status = 0; }; }
23402 gcc_cv_as_shf_merge
=yes
23404 echo "configure: failed program was" >&5
23407 rm -f conftest.o conftest.s
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23411 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23413 if test $gcc_cv_as_shf_merge = no
; then
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23415 $as_echo_n "checking assembler for section merging support... " >&6; }
23416 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23417 $as_echo_n "(cached) " >&6
23419 gcc_cv_as_shf_merge
=no
23420 if test $in_tree_gas = yes; then
23421 if test $in_tree_gas_is_elf = yes \
23422 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23423 then gcc_cv_as_shf_merge
=yes
23425 elif test x
$gcc_cv_as != x
; then
23426 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23429 (eval $ac_try) 2>&5
23431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23432 test $ac_status = 0; }; }
23434 gcc_cv_as_shf_merge
=yes
23436 echo "configure: failed program was" >&5
23439 rm -f conftest.o conftest.s
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23443 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23447 cat >>confdefs.h
<<_ACEOF
23448 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23453 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23454 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23457 gcc_cv_as_comdat_group
=no
23458 if test $in_tree_gas = yes; then
23459 if test $in_tree_gas_is_elf = yes \
23460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23461 then gcc_cv_as_comdat_group
=yes
23463 elif test x
$gcc_cv_as != x
; then
23464 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23467 (eval $ac_try) 2>&5
23469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23470 test $ac_status = 0; }; }
23472 gcc_cv_as_comdat_group
=yes
23474 echo "configure: failed program was" >&5
23477 rm -f conftest.o conftest.s
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23481 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23483 if test $gcc_cv_as_comdat_group = yes; then
23484 gcc_cv_as_comdat_group_percent
=no
23485 gcc_cv_as_comdat_group_group
=no
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23488 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23489 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23490 $as_echo_n "(cached) " >&6
23492 gcc_cv_as_comdat_group_percent
=no
23493 if test $in_tree_gas = yes; then
23494 if test $in_tree_gas_is_elf = yes \
23495 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23496 then gcc_cv_as_comdat_group_percent
=yes
23498 elif test x
$gcc_cv_as != x
; then
23499 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23500 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23502 (eval $ac_try) 2>&5
23504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23505 test $ac_status = 0; }; }
23507 gcc_cv_as_comdat_group_percent
=yes
23509 echo "configure: failed program was" >&5
23512 rm -f conftest.o conftest.s
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23516 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23518 if test $gcc_cv_as_comdat_group_percent = yes; then
23519 gcc_cv_as_comdat_group_group
=no
23521 case "${target}" in
23522 # Sun as uses a completely different syntax.
23524 case "${target}" in
23525 sparc
*-*-solaris2*)
23527 .group foo,".text%foo",#comdat
23528 .section ".text%foo", #alloc,#execinstr,#progbits
23533 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23535 .group foo,.text%foo,#comdat
23536 .section .text%foo, "ax", @progbits
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23543 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23544 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23545 $as_echo_n "(cached) " >&6
23547 gcc_cv_as_comdat_group_group
=no
23548 if test x
$gcc_cv_as != x
; then
23549 $as_echo "$conftest_s" > conftest.s
23550 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }
23557 gcc_cv_as_comdat_group_group
=yes
23559 echo "configure: failed program was" >&5
23562 rm -f conftest.o conftest.s
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23566 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23570 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23571 gcc_cv_as_comdat_group_group
=no
23575 if test x
"$ld_is_gold" = xyes
; then
23577 elif test $in_tree_ld = yes ; then
23579 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 \
23580 && test $in_tree_ld_is_elf = yes; then
23583 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23585 if test 0"$ld_date" -lt 20050308; then
23586 if test -n "$ld_date"; then
23587 # If there was date string, but was earlier than 2005-03-08, fail
23589 elif test "$ld_vers_major" -lt 2; then
23591 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23596 case "${target}" in
23597 *-*-solaris2.1
[1-9]*)
23599 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23600 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23603 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23604 # least ld version 1.2267.
23605 if test "$ld_vers_major" -gt 1; then
23607 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23609 elif test "$ld_vers_minor" -ge 2267; then
23614 # Assume linkers other than GNU ld don't support COMDAT group.
23619 # Allow overriding the automatic COMDAT group tests above.
23620 # Check whether --enable-comdat was given.
23621 if test "${enable_comdat+set}" = set; then :
23622 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23625 if test $comdat_group = no
; then
23626 gcc_cv_as_comdat_group
=no
23627 gcc_cv_as_comdat_group_percent
=no
23628 gcc_cv_as_comdat_group_group
=no
23631 cat >>confdefs.h
<<_ACEOF
23632 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23633 || test $gcc_cv_as_comdat_group_percent = yes \
23634 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23639 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23640 if test "${gcc_cv_as_discriminator+set}" = set; then :
23641 $as_echo_n "(cached) " >&6
23643 gcc_cv_as_discriminator
=no
23644 if test $in_tree_gas = yes; then
23645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23646 then gcc_cv_as_discriminator
=yes
23648 elif test x
$gcc_cv_as != x
; then
23651 .loc 1 1 0 discriminator 1' > conftest.s
23652 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23654 (eval $ac_try) 2>&5
23656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23657 test $ac_status = 0; }; }
23659 gcc_cv_as_discriminator
=yes
23661 echo "configure: failed program was" >&5
23664 rm -f conftest.o conftest.s
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23668 $as_echo "$gcc_cv_as_discriminator" >&6; }
23669 if test $gcc_cv_as_discriminator = yes; then
23671 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23675 # Thread-local storage - the check is heavily parameterized.
23683 .section ".tdata","awT",@progbits
23686 ldq $27,__tls_get_addr($29) !literal!1
23687 lda $16,foo($29) !tlsgd!1
23688 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23689 ldq $27,__tls_get_addr($29) !literal!2
23690 lda $16,foo($29) !tlsldm!2
23691 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23692 ldq $1,foo($29) !gotdtprel
23693 ldah $2,foo($29) !dtprelhi
23694 lda $3,foo($2) !dtprello
23695 lda $4,foo($29) !dtprel
23696 ldq $1,foo($29) !gottprel
23697 ldah $2,foo($29) !tprelhi
23698 lda $3,foo($2) !tprello
23699 lda $4,foo($29) !tprel'
23702 tls_as_opt
=--fatal-warnings
23704 cris-
*-*|crisv32-
*-*)
23706 .section ".tdata","awT",@progbits
23713 tls_as_opt
=--fatal-warnings
23717 .section ".tdata","awT",@progbits
23720 call #gettlsoff(x)'
23729 .section ".tdata","awT",@progbits
23733 addil LT%foo-$tls_gdidx$,gp
23734 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23737 addil LT%foo-$tls_ldidx$,gp
23739 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23740 addil LR%foo-$tls_dtpoff$,%ret0
23741 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23743 addil LT%foo-$tls_ieoff$,gp
23744 ldw RT%foo-$tls_ieoff$(%r1),%t2
23747 addil LR%foo-$tls_leoff$,%t1
23748 ldo RR%foo-$tls_leoff$(%r1),%t2'
23751 tls_as_opt
=--fatal-warnings
23755 .section ".tdata","awT",%progbits
23758 .word foo(gottpoff)
23766 i
[34567]86-*-* | x86_64-
*-*)
23768 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23775 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23777 .section .tdata,"awt",@progbits'
23782 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23786 .section ".tdata","awT",@progbits'
23790 tls_as_opt
="--fatal-warnings"
23794 conftest_s
="$conftest_s
23798 leal foo@tlsgd(,%ebx,1), %eax
23799 leal foo@tlsldm(%ebx), %eax
23800 leal foo@dtpoff(%eax), %edx
23801 movl foo@gottpoff(%ebx), %eax
23802 subl foo@gottpoff(%ebx), %eax
23803 addl foo@gotntpoff(%ebx), %eax
23804 movl foo@indntpoff, %eax
23805 movl \$foo@tpoff, %eax
23806 subl \$foo@tpoff, %eax
23807 leal foo@ntpoff(%ecx), %eax"
23810 if test x
$on_solaris = xyes
; then
23812 yes) tls_as_opt
="$tls_as_opt --64" ;;
23813 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23816 conftest_s
="$conftest_s
23820 leaq foo@tlsgd(%rip), %rdi
23821 leaq foo@tlsld(%rip), %rdi
23822 leaq foo@dtpoff(%rax), %rdx
23823 movq foo@gottpoff(%rip), %rax
23824 movq \$foo@tpoff, %rax"
23830 .section ".tdata","awT",@progbits
23833 addl r16 = @ltoff(@dtpmod(foo#)), gp
23834 addl r17 = @ltoff(@dtprel(foo#)), gp
23835 addl r18 = @ltoff(@tprel(foo#)), gp
23836 addl r19 = @dtprel(foo#), gp
23837 adds r21 = @dtprel(foo#), r13
23838 movl r23 = @dtprel(foo#)
23839 addl r20 = @tprel(foo#), gp
23840 adds r22 = @tprel(foo#), r13
23841 movl r24 = @tprel(foo#)'
23844 tls_as_opt
=--fatal-warnings
23848 .section .tdata,"awT",@progbits
23852 addik r5,r20,x@TLSGD
23853 addik r5,r20,x@TLSLDM'
23856 tls_as_opt
='--fatal-warnings'
23860 .section .tdata,"awT",@progbits
23864 addiu $4, $28, %tlsgd(x)
23865 addiu $4, $28, %tlsldm(x)
23866 lui $4, %dtprel_hi(x)
23867 addiu $4, $4, %dtprel_lo(x)
23868 lw $4, %gottprel(x)($28)
23869 lui $4, %tprel_hi(x)
23870 addiu $4, $4, %tprel_lo(x)'
23873 tls_as_opt
='-32 --fatal-warnings'
23877 .section .tdata,"awT",@progbits
23882 move.l x@TLSGD(%a5),%a0
23883 move.l x@TLSLDM(%a5),%a0
23884 move.l x@TLSLDO(%a5),%a0
23885 move.l x@TLSIE(%a5),%a0
23886 move.l x@TLSLE(%a5),%a0'
23889 tls_as_opt
='--fatal-warnings'
23893 .section ".tdata","awT",@progbits'
23896 tls_as_opt
="--fatal-warnings"
23900 .section ".tdata","awT",%progbits
23904 add x0, x0, #:tlsgd_lo12:x
23909 tls_as_opt
='--fatal-warnings'
23913 .extern __get_tpointer
23931 .section ".tdata","awT",@progbits
23939 addi 3,2,ld0@got@tlsgd
23945 addi 3,2,x1@got@tlsld
23951 addis 9,3,x2@dtprel@ha
23952 addi 9,9,x2@dtprel@l
23955 ld 9,x3@got@dtprel(2)
23961 tls_as_opt
="-a64 --fatal-warnings"
23965 .section ".tdata","awT",@progbits
23973 addi 3,31,ld0@got@tlsgd
23975 addi 3,31,x1@got@tlsld
23978 addis 9,3,x2@dtprel@ha
23979 addi 9,9,x2@dtprel@l
23980 lwz 9,x3@got@tprel(31)
23983 addis 9,2,x2@tprel@ha
23984 addi 9,9,x2@tprel@l'
23987 tls_as_opt
="-a32 --fatal-warnings"
23991 .section ".tdata","awT",@progbits
23998 .long foo@GOTNTPOFF
23999 .long foo@INDNTPOFF
24000 l %r1,foo@GOTNTPOFF(%r12)
24001 l %r1,0(%r1):tls_load:foo
24002 bas %r14,0(%r1,%r13):tls_gdcall:foo
24003 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24006 tls_as_opt
="-m31 --fatal-warnings"
24010 .section ".tdata","awT",@progbits
24017 .quad foo@GOTNTPOFF
24018 lg %r1,foo@GOTNTPOFF(%r12)
24019 larl %r1,foo@INDNTPOFF
24020 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24021 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24024 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24026 sh-
*-* | sh
[123456789lbe
]*-*-*)
24028 .section ".tdata","awT",@progbits
24038 tls_as_opt
=--fatal-warnings
24042 sparc
*-sun-solaris2.
*)
24049 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24051 .section ".tdata",#alloc,#write,#tls'
24056 .section ".tdata","awT",@progbits'
24059 tls_as_opt
="-32 --fatal-warnings"
24061 conftest_s
="$conftest_s
24064 sethi %tgd_hi22(foo), %o0
24065 add %o0, %tgd_lo10(foo), %o1
24066 add %l7, %o1, %o0, %tgd_add(foo)
24067 call __tls_get_addr, %tgd_call(foo)
24068 sethi %tldm_hi22(foo), %l1
24069 add %l1, %tldm_lo10(foo), %l2
24070 add %l7, %l2, %o0, %tldm_add(foo)
24071 call __tls_get_addr, %tldm_call(foo)
24072 sethi %tldo_hix22(foo), %l3
24073 xor %l3, %tldo_lox10(foo), %l4
24074 add %o0, %l4, %l5, %tldo_add(foo)
24075 sethi %tie_hi22(foo), %o3
24076 add %o3, %tie_lo10(foo), %o3
24077 ld [%l7 + %o3], %o2, %tie_ld(foo)
24078 add %g7, %o2, %o4, %tie_add(foo)
24079 sethi %tle_hix22(foo), %l1
24080 xor %l1, %tle_lox10(foo), %o5
24081 ld [%g7 + %o5], %o1"
24085 .section ".tdata","awT",@progbits
24088 addli r0, zero, tls_gd(foo)
24089 auli r0, zero, tls_gd_ha16(foo)
24090 addli r0, r0, tls_gd_lo16(foo)
24092 addli r0, zero, tls_ie(foo)
24093 auli r0, r0, tls_ie_ha16(foo)
24094 addli r0, r0, tls_ie_lo16(foo)'
24097 tls_as_opt
="--fatal-warnings"
24101 .section ".tdata","awT",@progbits
24104 shl16insli r0, zero, hw0_last_tls_gd(foo)
24105 shl16insli r0, zero, hw1_last_tls_gd(foo)
24106 shl16insli r0, r0, hw0_tls_gd(foo)
24108 shl16insli r0, zero, hw1_last_tls_ie(foo)
24109 shl16insli r0, r0, hw0_tls_ie(foo)'
24112 tls_as_opt
="--fatal-warnings"
24116 .section ".tdata","awT",@progbits
24119 movi a8, foo@TLSFUNC
24120 movi a10, foo@TLSARG
24121 callx8.tls a8, foo@TLSCALL'
24127 if test "x$enable_tls" = xno
; then
24128 : # TLS explicitly disabled.
24129 elif test "x$enable_tls" = xyes
; then
24130 set_have_as_tls
=yes # TLS explicitly enabled.
24131 elif test -z "$tls_first_major"; then
24132 : # If we don't have a check, assume no support.
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24135 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24136 if test "${gcc_cv_as_tls+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24140 if test $in_tree_gas = yes; then
24141 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24142 then gcc_cv_as_tls
=yes
24144 elif test x
$gcc_cv_as != x
; then
24145 $as_echo "$conftest_s" > conftest.s
24146 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24148 (eval $ac_try) 2>&5
24150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24151 test $ac_status = 0; }; }
24155 echo "configure: failed program was" >&5
24158 rm -f conftest.o conftest.s
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24162 $as_echo "$gcc_cv_as_tls" >&6; }
24163 if test $gcc_cv_as_tls = yes; then
24164 set_have_as_tls
=yes
24167 if test $set_have_as_tls = yes ; then
24169 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24173 # Target-specific assembler checks.
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24176 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24177 gcc_cv_ld_static_dynamic
=no
24178 gcc_cv_ld_static_option
='-Bstatic'
24179 gcc_cv_ld_dynamic_option
='-Bdynamic'
24180 if test $in_tree_ld = yes ; then
24181 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
24182 gcc_cv_ld_static_dynamic
=yes
24184 elif test x
$gcc_cv_ld != x
; then
24185 # Check if linker supports -Bstatic/-Bdynamic option
24186 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24187 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24188 gcc_cv_ld_static_dynamic
=yes
24191 # AIX ld uses -b flags
24192 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24193 gcc_cv_ld_static_dynamic
=yes
24194 gcc_cv_ld_static_option
="-bstatic"
24195 gcc_cv_ld_dynamic_option
="-bdynamic"
24197 # HP-UX ld uses -a flags to select between shared and archive.
24199 if test x
"$gnu_ld" = xno
; then
24200 gcc_cv_ld_static_dynamic
=yes
24201 gcc_cv_ld_static_option
="-aarchive_shared"
24202 gcc_cv_ld_dynamic_option
="-adefault"
24205 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24207 gcc_cv_ld_static_dynamic
=yes
24212 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24214 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24217 cat >>confdefs.h
<<_ACEOF
24218 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24222 cat >>confdefs.h
<<_ACEOF
24223 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24228 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24230 if test x
"$demangler_in_ld" = xyes
; then
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24232 $as_echo_n "checking linker --demangle support... " >&6; }
24233 gcc_cv_ld_demangle
=no
24234 if test $in_tree_ld = yes; then
24235 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 \
24236 gcc_cv_ld_demangle
=yes
24238 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24239 # Check if the GNU linker supports --demangle option
24240 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24241 gcc_cv_ld_demangle
=yes
24244 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24246 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24250 $as_echo "$gcc_cv_ld_demangle" >&6; }
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24254 $as_echo_n "checking linker plugin support... " >&6; }
24255 gcc_cv_lto_plugin
=0
24256 if test -f liblto_plugin.la
; then
24257 save_ld_ver
="$ld_ver"
24258 save_ld_vers_major
="$ld_vers_major"
24259 save_ld_vers_minor
="$ld_vers_minor"
24260 save_ld_is_gold
="$ld_is_gold"
24264 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24266 # FIXME: ld_is_gold?
24267 ld_vers_major
="$gcc_cv_gld_major_version"
24268 ld_vers_minor
="$gcc_cv_gld_minor_version"
24270 # Determine plugin linker version.
24271 # FIXME: Partial duplicate from above, generalize.
24272 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24273 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24274 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24276 ld_vers
=`echo $ld_ver | sed -n \
24277 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24279 ld_vers
=`echo $ld_ver | sed -n \
24280 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24282 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24283 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24287 # Determine plugin support.
24288 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24289 # Require GNU ld or gold 2.21+ for plugin support by default.
24290 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24291 gcc_cv_lto_plugin
=2
24292 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24293 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24294 gcc_cv_lto_plugin
=1
24298 ld_ver
="$save_ld_ver"
24299 ld_vers_major
="$save_ld_vers_major"
24300 ld_vers_minor
="$save_ld_vers_minor"
24301 ld_is_gold
="$save_ld_is_gold"
24304 cat >>confdefs.h
<<_ACEOF
24305 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24309 $as_echo "$gcc_cv_lto_plugin" >&6; }
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24314 $as_echo_n "checking assembler for -mabi option... " >&6; }
24315 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24316 $as_echo_n "(cached) " >&6
24318 gcc_cv_as_aarch64_mabi
=no
24319 if test x
$gcc_cv_as != x
; then
24320 $as_echo '.text' > conftest.s
24321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24323 (eval $ac_try) 2>&5
24325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24326 test $ac_status = 0; }; }
24328 gcc_cv_as_aarch64_mabi
=yes
24330 echo "configure: failed program was" >&5
24333 rm -f conftest.o conftest.s
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24337 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24339 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24341 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24344 if test x
$with_abi = xilp32
; then
24345 as_fn_error
"Assembler does not support -mabi=ilp32.\
24346 Upgrade the Assembler." "$LINENO" 5
24348 if test x
"$with_multilib_list" = xdefault
; then
24349 TM_MULTILIB_CONFIG
=lp64
24351 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24352 for aarch64_multilib
in ${aarch64_multilibs}; do
24353 case ${aarch64_multilib} in
24355 as_fn_error
"Assembler does not support -mabi=ilp32.\
24356 Upgrade the Assembler." "$LINENO" 5
24364 # Check if we have binutils support for relocations types needed by -fpic
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24366 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24367 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24368 $as_echo_n "(cached) " >&6
24370 gcc_cv_as_aarch64_picreloc
=no
24371 if test x
$gcc_cv_as != x
; then
24374 ldr x0, [x2, #:gotpage_lo15:globalsym]
24376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378 (eval $ac_try) 2>&5
24380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381 test $ac_status = 0; }; }
24383 gcc_cv_as_aarch64_picreloc
=yes
24385 echo "configure: failed program was" >&5
24388 rm -f conftest.o conftest.s
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24392 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24393 if test $gcc_cv_as_aarch64_picreloc = yes; then
24395 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24398 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24399 # Check whether --enable-fix-cortex-a53-835769 was given.
24400 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24401 enableval
=$enable_fix_cortex_a53_835769;
24404 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24409 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24410 Valid choices are 'yes' and 'no'." "$LINENO" 5
24417 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24418 # Check whether --enable-fix-cortex-a53-843419 was given.
24419 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24420 enableval
=$enable_fix_cortex_a53_843419;
24423 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24428 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24429 Valid choices are 'yes' and 'no'." "$LINENO" 5
24438 # All TARGET_ABI_OSF targets.
24439 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24441 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24442 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24445 gcc_cv_as_alpha_explicit_relocs
=no
24446 if test $in_tree_gas = yes; then
24447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24448 then gcc_cv_as_alpha_explicit_relocs
=yes
24450 elif test x
$gcc_cv_as != x
; then
24451 $as_echo ' .set nomacro
24453 extbl $3, $2, $3 !lituse_bytoff!1
24454 ldq $2, a($29) !literal!1
24455 ldq $4, b($29) !literal!2
24456 ldq_u $3, 0($2) !lituse_base!1
24457 ldq $27, f($29) !literal!5
24458 jsr $26, ($27), f !lituse_jsr!5
24459 ldah $29, 0($26) !gpdisp!3
24460 lda $0, c($29) !gprel
24461 ldah $1, d($29) !gprelhigh
24462 lda $1, d($1) !gprellow
24463 lda $29, 0($29) !gpdisp!3' > conftest.s
24464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24466 (eval $ac_try) 2>&5
24468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24469 test $ac_status = 0; }; }
24471 gcc_cv_as_alpha_explicit_relocs
=yes
24473 echo "configure: failed program was" >&5
24476 rm -f conftest.o conftest.s
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24480 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24481 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24483 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24487 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24488 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24491 gcc_cv_as_alpha_jsrdirect_relocs
=no
24492 if test $in_tree_gas = yes; then
24493 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24494 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24496 elif test x
$gcc_cv_as != x
; then
24497 $as_echo ' .set nomacro
24499 ldq $27, a($29) !literal!1
24500 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24501 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }
24508 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24510 echo "configure: failed program was" >&5
24513 rm -f conftest.o conftest.s
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24517 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24518 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24520 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24527 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24528 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24531 gcc_cv_as_avr_mlink_relax
=no
24532 if test x
$gcc_cv_as != x
; then
24533 $as_echo '.text' > conftest.s
24534 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24541 gcc_cv_as_avr_mlink_relax
=yes
24543 echo "configure: failed program was" >&5
24546 rm -f conftest.o conftest.s
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24550 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24551 if test $gcc_cv_as_avr_mlink_relax = yes; then
24553 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24558 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24559 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24562 gcc_cv_as_avr_mrmw
=no
24563 if test x
$gcc_cv_as != x
; then
24564 $as_echo '.text' > conftest.s
24565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24572 gcc_cv_as_avr_mrmw
=yes
24574 echo "configure: failed program was" >&5
24577 rm -f conftest.o conftest.s
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24581 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24582 if test $gcc_cv_as_avr_mrmw = yes; then
24584 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24591 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24592 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24593 $as_echo_n "(cached) " >&6
24595 gcc_cv_as_cris_no_mul_bug
=no
24596 if test $in_tree_gas = yes; then
24597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24598 then gcc_cv_as_cris_no_mul_bug
=yes
24600 elif test x
$gcc_cv_as != x
; then
24601 $as_echo '.text' > conftest.s
24602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24604 (eval $ac_try) 2>&5
24606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24607 test $ac_status = 0; }; }
24609 gcc_cv_as_cris_no_mul_bug
=yes
24611 echo "configure: failed program was" >&5
24614 rm -f conftest.o conftest.s
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24618 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24619 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24621 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24628 $as_echo_n "checking assembler for .register... " >&6; }
24629 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24630 $as_echo_n "(cached) " >&6
24632 gcc_cv_as_sparc_register_op
=no
24633 if test x
$gcc_cv_as != x
; then
24634 $as_echo '.register %g2, #scratch' > conftest.s
24635 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24637 (eval $ac_try) 2>&5
24639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24640 test $ac_status = 0; }; }
24642 gcc_cv_as_sparc_register_op
=yes
24644 echo "configure: failed program was" >&5
24647 rm -f conftest.o conftest.s
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24651 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24652 if test $gcc_cv_as_sparc_register_op = yes; then
24654 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24659 $as_echo_n "checking assembler for #nobits... " >&6; }
24660 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24661 $as_echo_n "(cached) " >&6
24663 gcc_cv_as_sparc_nobits
=no
24664 if test x
$gcc_cv_as != x
; then
24665 $as_echo '.section "nobits",#alloc,#write,#nobits
24666 .section "progbits",#alloc,#write,#progbits' > conftest.s
24667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24669 (eval $ac_try) 2>&5
24671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24672 test $ac_status = 0; }; }
24674 gcc_cv_as_sparc_nobits
=yes
24676 echo "configure: failed program was" >&5
24679 rm -f conftest.o conftest.s
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24683 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24686 cat >>confdefs.h
<<_ACEOF
24687 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24692 $as_echo_n "checking assembler for -relax option... " >&6; }
24693 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24694 $as_echo_n "(cached) " >&6
24696 gcc_cv_as_sparc_relax
=no
24697 if test x
$gcc_cv_as != x
; then
24698 $as_echo '.text' > conftest.s
24699 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24701 (eval $ac_try) 2>&5
24703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24704 test $ac_status = 0; }; }
24706 gcc_cv_as_sparc_relax
=yes
24708 echo "configure: failed program was" >&5
24711 rm -f conftest.o conftest.s
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24715 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24716 if test $gcc_cv_as_sparc_relax = yes; then
24718 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24723 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24724 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24725 $as_echo_n "(cached) " >&6
24727 gcc_cv_as_sparc_gotdata_op
=no
24728 if test x
$gcc_cv_as != x
; then
24734 sethi %gdop_hix22(foo), %g1
24735 xor %g1, %gdop_lox10(foo), %g1
24736 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24737 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24739 (eval $ac_try) 2>&5
24741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24742 test $ac_status = 0; }; }
24744 if test x
$gcc_cv_ld != x \
24745 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24746 if test x
$gcc_cv_objdump != x
; then
24747 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24748 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24749 gcc_cv_as_sparc_gotdata_op
=no
24751 gcc_cv_as_sparc_gotdata_op
=yes
24757 echo "configure: failed program was" >&5
24760 rm -f conftest.o conftest.s
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24764 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24765 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24767 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24772 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24773 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24774 $as_echo_n "(cached) " >&6
24776 gcc_cv_as_sparc_ua_pcrel
=no
24777 if test x
$gcc_cv_as != x
; then
24784 .uaword %r_disp32(foo)' > conftest.s
24785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24787 (eval $ac_try) 2>&5
24789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24790 test $ac_status = 0; }; }
24792 if test x
$gcc_cv_ld != x \
24793 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24794 gcc_cv_as_sparc_ua_pcrel
=yes
24798 echo "configure: failed program was" >&5
24801 rm -f conftest.o conftest.s
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24805 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24806 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24808 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24812 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24813 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24816 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24817 if test x
$gcc_cv_as != x
; then
24821 .uaword %r_disp32(foo)
24822 .byte 0x32, 0x33, 0x34
24826 .skip 4' > conftest.s
24827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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_ld != x
&& test x
$gcc_cv_objdump != x \
24835 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24836 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24837 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24838 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24839 |
grep 'DISP32' > /dev
/null
2>&1; then
24842 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24847 echo "configure: failed program was" >&5
24850 rm -f conftest.o conftest.s
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24854 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24855 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24857 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24861 fi # unaligned pcrel relocs
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24864 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24865 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24866 $as_echo_n "(cached) " >&6
24868 gcc_cv_as_sparc_offsetable_lo10
=no
24869 if test x
$gcc_cv_as != x
; then
24871 or %g1, %lo(ab) + 12, %g1
24872 or %g1, %lo(ab + 12), %g1' > conftest.s
24873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24875 (eval $ac_try) 2>&5
24877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24878 test $ac_status = 0; }; }
24880 if test x
$gcc_cv_objdump != x \
24881 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24882 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24883 gcc_cv_as_sparc_offsetable_lo10
=yes
24886 echo "configure: failed program was" >&5
24889 rm -f conftest.o conftest.s
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24893 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24894 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24896 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24901 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24902 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24905 gcc_cv_as_sparc_fmaf
=no
24906 if test x
$gcc_cv_as != x
; then
24908 .register %g2, #scratch
24909 .register %g3, #scratch
24911 fmaddd %f0, %f2, %f4, %f6
24912 addxccc %g1, %g2, %g3
24913 fsrl32 %f2, %f4, %f8
24914 fnaddd %f10, %f12, %f14' > conftest.s
24915 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24917 (eval $ac_try) 2>&5
24919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24920 test $ac_status = 0; }; }
24922 gcc_cv_as_sparc_fmaf
=yes
24924 echo "configure: failed program was" >&5
24927 rm -f conftest.o conftest.s
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24931 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24932 if test $gcc_cv_as_sparc_fmaf = yes; then
24934 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24939 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24940 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24941 $as_echo_n "(cached) " >&6
24943 gcc_cv_as_sparc_sparc4
=no
24944 if test x
$gcc_cv_as != x
; then
24946 .register %g2, #scratch
24947 .register %g3, #scratch
24950 1: cwbneg %g2, %g3, 1f
24953 aes_kexpand0 %f4, %f6, %f8
24954 des_round %f38, %f40, %f42, %f44
24955 camellia_f %f54, %f56, %f58, %f60
24956 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24959 (eval $ac_try) 2>&5
24961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24962 test $ac_status = 0; }; }
24964 gcc_cv_as_sparc_sparc4
=yes
24966 echo "configure: failed program was" >&5
24969 rm -f conftest.o conftest.s
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24973 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24974 if test $gcc_cv_as_sparc_sparc4 = yes; then
24976 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24981 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24982 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24983 $as_echo_n "(cached) " >&6
24985 gcc_cv_as_sparc_leon
=no
24986 if test x
$gcc_cv_as != x
; then
24988 .register %g2, #scratch
24989 .register %g3, #scratch
24993 casa [%g2] 0xb, %g3, %g1' > conftest.s
24994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24996 (eval $ac_try) 2>&5
24998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24999 test $ac_status = 0; }; }
25001 gcc_cv_as_sparc_leon
=yes
25003 echo "configure: failed program was" >&5
25006 rm -f conftest.o conftest.s
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25010 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25011 if test $gcc_cv_as_sparc_leon = yes; then
25013 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25018 i
[34567]86-*-* | x86_64-
*-*)
25021 # Full C++ conformance when using a shared libstdc++-v3 requires some
25022 # support from the Cygwin DLL, which in more recent versions exports
25023 # wrappers to aid in interposing and redirecting operators new, delete,
25024 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25025 # are configuring for a version of Cygwin that exports the wrappers.
25026 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25027 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25028 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25029 gcc_ac_cygwin_dll_wrappers
=yes
25031 gcc_ac_cygwin_dll_wrappers
=no
25035 # Can't check presence of libc functions during cross-compile, so
25036 # we just have to assume we're building for an up-to-date target.
25037 gcc_ac_cygwin_dll_wrappers
=yes
25040 cat >>confdefs.h
<<_ACEOF
25041 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25046 cygwin
* | pe | mingw32
* | interix
*)
25047 # Recent binutils allows the three-operand form of ".comm" on PE. This
25048 # definition is used unconditionally to initialise the default state of
25049 # the target option variable that governs usage of the feature.
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25051 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25052 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25055 gcc_cv_as_comm_has_align
=no
25056 if test $in_tree_gas = yes; then
25057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25058 then gcc_cv_as_comm_has_align
=yes
25060 elif test x
$gcc_cv_as != x
; then
25061 $as_echo '.comm foo,1,32' > conftest.s
25062 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25064 (eval $ac_try) 2>&5
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; }
25069 gcc_cv_as_comm_has_align
=yes
25071 echo "configure: failed program was" >&5
25074 rm -f conftest.o conftest.s
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25078 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25081 cat >>confdefs.h
<<_ACEOF
25082 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25085 # Used for DWARF 2 in PE
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25087 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25088 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25089 $as_echo_n "(cached) " >&6
25091 gcc_cv_as_ix86_pe_secrel32
=no
25092 if test $in_tree_gas = yes; then
25093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25094 then gcc_cv_as_ix86_pe_secrel32
=yes
25096 elif test x
$gcc_cv_as != x
; then
25100 .secrel32 foo' > conftest.s
25101 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25108 if test x
$gcc_cv_ld != x \
25109 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25110 gcc_cv_as_ix86_pe_secrel32
=yes
25114 echo "configure: failed program was" >&5
25117 rm -f conftest.o conftest.s
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25121 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25122 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25124 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25127 # Test if the assembler supports the extended form of the .section
25128 # directive that specifies section alignment. LTO support uses this,
25129 # but normally only after installation, so we warn but don't fail the
25130 # configure if LTO is enabled but the assembler does not support it.
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25132 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25133 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25134 $as_echo_n "(cached) " >&6
25136 gcc_cv_as_section_has_align
=no
25137 if test $in_tree_gas = yes; then
25138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25139 then gcc_cv_as_section_has_align
=yes
25141 elif test x
$gcc_cv_as != x
; then
25142 $as_echo '.section lto_test,"dr0"' > conftest.s
25143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25145 (eval $ac_try) 2>&5
25147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25148 test $ac_status = 0; }; }
25150 gcc_cv_as_section_has_align
=yes
25152 echo "configure: failed program was" >&5
25155 rm -f conftest.o conftest.s
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25159 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25161 if test x
$gcc_cv_as_section_has_align != xyes
; then
25162 case ",$enable_languages," in
25164 { $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
25165 $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;}
25172 # Test if the assembler supports the section flag 'e' for specifying
25173 # an excluded section.
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25175 $as_echo_n "checking assembler for .section with e... " >&6; }
25176 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25177 $as_echo_n "(cached) " >&6
25179 gcc_cv_as_section_has_e
=no
25180 if test $in_tree_gas = yes; then
25181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25182 then gcc_cv_as_section_has_e
=yes
25184 elif test x
$gcc_cv_as != x
; then
25185 $as_echo '.section foo1,"e"
25186 .byte 0,0,0,0' > conftest.s
25187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189 (eval $ac_try) 2>&5
25191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192 test $ac_status = 0; }; }
25194 gcc_cv_as_section_has_e
=yes
25196 echo "configure: failed program was" >&5
25199 rm -f conftest.o conftest.s
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25203 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25206 cat >>confdefs.h
<<_ACEOF
25207 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25212 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25213 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25214 $as_echo_n "(cached) " >&6
25216 gcc_cv_as_ix86_filds
=no
25217 if test x
$gcc_cv_as != x
; then
25218 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25221 (eval $ac_try) 2>&5
25223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25224 test $ac_status = 0; }; }
25226 gcc_cv_as_ix86_filds
=yes
25228 echo "configure: failed program was" >&5
25231 rm -f conftest.o conftest.s
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25235 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25236 if test $gcc_cv_as_ix86_filds = yes; then
25238 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25243 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25244 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25247 gcc_cv_as_ix86_fildq
=no
25248 if test x
$gcc_cv_as != x
; then
25249 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25250 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25252 (eval $ac_try) 2>&5
25254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; }
25257 gcc_cv_as_ix86_fildq
=yes
25259 echo "configure: failed program was" >&5
25262 rm -f conftest.o conftest.s
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25266 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25267 if test $gcc_cv_as_ix86_fildq = yes; then
25269 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25274 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25275 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25276 $as_echo_n "(cached) " >&6
25278 gcc_cv_as_ix86_cmov_sun_syntax
=no
25279 if test x
$gcc_cv_as != x
; then
25280 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25281 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25283 (eval $ac_try) 2>&5
25285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286 test $ac_status = 0; }; }
25288 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25290 echo "configure: failed program was" >&5
25293 rm -f conftest.o conftest.s
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25297 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25298 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25300 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25305 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25306 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25307 $as_echo_n "(cached) " >&6
25309 gcc_cv_as_ix86_ffreep
=no
25310 if test x
$gcc_cv_as != x
; then
25311 $as_echo 'ffreep %st(1)' > conftest.s
25312 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25314 (eval $ac_try) 2>&5
25316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25317 test $ac_status = 0; }; }
25319 gcc_cv_as_ix86_ffreep
=yes
25321 echo "configure: failed program was" >&5
25324 rm -f conftest.o conftest.s
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25328 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25329 if test $gcc_cv_as_ix86_ffreep = yes; then
25331 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25336 $as_echo_n "checking assembler for .quad directive... " >&6; }
25337 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25338 $as_echo_n "(cached) " >&6
25340 gcc_cv_as_ix86_quad
=no
25341 if test x
$gcc_cv_as != x
; then
25342 $as_echo '.quad 0' > conftest.s
25343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25345 (eval $ac_try) 2>&5
25347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25348 test $ac_status = 0; }; }
25350 gcc_cv_as_ix86_quad
=yes
25352 echo "configure: failed program was" >&5
25355 rm -f conftest.o conftest.s
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25359 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25360 if test $gcc_cv_as_ix86_quad = yes; then
25362 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25367 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25368 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25369 $as_echo_n "(cached) " >&6
25371 gcc_cv_as_ix86_sahf
=no
25372 if test x
$gcc_cv_as != x
; then
25375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25377 (eval $ac_try) 2>&5
25379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25380 test $ac_status = 0; }; }
25382 gcc_cv_as_ix86_sahf
=yes
25384 echo "configure: failed program was" >&5
25387 rm -f conftest.o conftest.s
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25391 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25392 if test $gcc_cv_as_ix86_sahf = yes; then
25394 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25399 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25400 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25401 $as_echo_n "(cached) " >&6
25403 gcc_cv_as_ix86_interunit_movq
=no
25404 if test x
$gcc_cv_as != x
; then
25407 movq %rax, %xmm0' > conftest.s
25408 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25410 (eval $ac_try) 2>&5
25412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; }
25415 gcc_cv_as_ix86_interunit_movq
=yes
25417 echo "configure: failed program was" >&5
25420 rm -f conftest.o conftest.s
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25424 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25427 cat >>confdefs.h
<<_ACEOF
25428 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25433 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25434 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25435 $as_echo_n "(cached) " >&6
25437 gcc_cv_as_ix86_hle
=no
25438 if test x
$gcc_cv_as != x
; then
25439 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25440 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25442 (eval $ac_try) 2>&5
25444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25445 test $ac_status = 0; }; }
25447 gcc_cv_as_ix86_hle
=yes
25449 echo "configure: failed program was" >&5
25452 rm -f conftest.o conftest.s
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25456 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25457 if test $gcc_cv_as_ix86_hle = yes; then
25459 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25464 $as_echo_n "checking assembler for swap suffix... " >&6; }
25465 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25466 $as_echo_n "(cached) " >&6
25468 gcc_cv_as_ix86_swap
=no
25469 if test x
$gcc_cv_as != x
; then
25470 $as_echo 'movl.s %esp, %ebp' > conftest.s
25471 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25478 gcc_cv_as_ix86_swap
=yes
25480 echo "configure: failed program was" >&5
25483 rm -f conftest.o conftest.s
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25487 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25488 if test $gcc_cv_as_ix86_swap = yes; then
25490 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25495 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25496 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25497 $as_echo_n "(cached) " >&6
25499 gcc_cv_as_ix86_diff_sect_delta
=no
25500 if test x
$gcc_cv_as != x
; then
25501 $as_echo '.section .rodata
25507 .L2: nop' > conftest.s
25508 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25510 (eval $ac_try) 2>&5
25512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25513 test $ac_status = 0; }; }
25515 gcc_cv_as_ix86_diff_sect_delta
=yes
25517 echo "configure: failed program was" >&5
25520 rm -f conftest.o conftest.s
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25524 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25525 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25527 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25531 # These two are used unconditionally by i386.[ch]; it is to be defined
25532 # to 1 if the feature is present, 0 otherwise.
25533 as_ix86_gotoff_in_data_opt
=
25534 if test x
$gas = xyes
; then
25535 as_ix86_gotoff_in_data_opt
="--32"
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25538 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25539 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25540 $as_echo_n "(cached) " >&6
25542 gcc_cv_as_ix86_gotoff_in_data
=no
25543 if test $in_tree_gas = yes; then
25544 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25545 then gcc_cv_as_ix86_gotoff_in_data
=yes
25547 elif test x
$gcc_cv_as != x
; then
25552 .long .L0@GOTOFF' > conftest.s
25553 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25555 (eval $ac_try) 2>&5
25557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25558 test $ac_status = 0; }; }
25560 gcc_cv_as_ix86_gotoff_in_data
=yes
25562 echo "configure: failed program was" >&5
25565 rm -f conftest.o conftest.s
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25569 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25572 cat >>confdefs.h
<<_ACEOF
25573 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25578 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25579 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25580 $as_echo_n "(cached) " >&6
25582 gcc_cv_as_ix86_rep_lock_prefix
=no
25583 if test x
$gcc_cv_as != x
; then
25584 $as_echo 'rep movsl
25589 lock addl %edi, (%eax,%esi)
25590 lock orl $0, (%esp)' > conftest.s
25591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; }
25598 gcc_cv_as_ix86_rep_lock_prefix
=yes
25600 echo "configure: failed program was" >&5
25603 rm -f conftest.o conftest.s
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25607 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25608 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25610 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25615 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25616 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25619 gcc_cv_as_ix86_ud2
=no
25620 if test x
$gcc_cv_as != x
; then
25621 $as_echo 'ud2' > conftest.s
25622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }
25629 gcc_cv_as_ix86_ud2
=yes
25631 echo "configure: failed program was" >&5
25634 rm -f conftest.o conftest.s
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25638 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25639 if test $gcc_cv_as_ix86_ud2 = yes; then
25641 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25646 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25647 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25650 gcc_cv_as_ix86_tlsgdplt
=no
25651 if test x
$gcc_cv_as != x
; then
25652 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25655 (eval $ac_try) 2>&5
25657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25658 test $ac_status = 0; }; }
25660 if test x
$gcc_cv_ld != x \
25661 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25662 gcc_cv_as_ix86_tlsgdplt
=yes
25666 echo "configure: failed program was" >&5
25669 rm -f conftest.o conftest.s
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25673 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25674 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25676 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25681 .section .tdata,"aw'$tls_section_flag'",@progbits
25683 .section .text,"ax",@progbits
25684 call tls_ld@tlsldmplt'
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25686 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25687 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25690 gcc_cv_as_ix86_tlsldmplt
=no
25691 if test x
$gcc_cv_as != x
; then
25692 $as_echo "$conftest_s" > conftest.s
25693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25695 (eval $ac_try) 2>&5
25697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25698 test $ac_status = 0; }; }
25700 if test x
$gcc_cv_ld != x \
25701 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25702 gcc_cv_as_ix86_tlsldmplt
=yes
25706 echo "configure: failed program was" >&5
25709 rm -f conftest.o conftest.s
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25713 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25716 cat >>confdefs.h
<<_ACEOF
25717 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25721 # Enforce 32-bit output with gas and gld.
25722 if test x
$gas = xyes
; then
25723 as_ix86_tls_ldm_opt
="--32"
25725 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25726 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25727 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25729 ld_ix86_tls_ldm_opt
="-melf_i386"
25733 .section .text,"ax",@progbits
25735 .type _start, @function
25737 leal value@tlsldm(%ebx), %eax
25738 call ___tls_get_addr@plt
25740 .section .tdata,"aw'$tls_section_flag'",@progbits
25741 .type value, @object
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25744 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25745 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25746 $as_echo_n "(cached) " >&6
25748 gcc_cv_as_ix86_tlsldm
=no
25749 if test x
$gcc_cv_as != x
; then
25750 $as_echo "$conftest_s" > conftest.s
25751 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753 (eval $ac_try) 2>&5
25755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756 test $ac_status = 0; }; }
25758 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25759 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25760 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25761 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25762 gcc_cv_as_ix86_tlsldm
=yes
25767 echo "configure: failed program was" >&5
25770 rm -f conftest.o conftest.s
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25774 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25777 cat >>confdefs.h
<<_ACEOF
25778 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25786 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25787 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25790 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25791 if test $in_tree_gas = yes; then
25792 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25793 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25795 elif test x
$gcc_cv_as != x
; then
25797 addl r15 = @ltoffx(x#), gp
25799 ld8.mov r16 = [r15], x#' > conftest.s
25800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25802 (eval $ac_try) 2>&5
25804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25805 test $ac_status = 0; }; }
25807 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25809 echo "configure: failed program was" >&5
25812 rm -f conftest.o conftest.s
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25816 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25817 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25819 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25827 *-*-aix*) conftest_s
=' .machine "pwr5"
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25832 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25833 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25834 $as_echo_n "(cached) " >&6
25836 gcc_cv_as_machine_directive
=no
25837 if test x
$gcc_cv_as != x
; then
25838 $as_echo ' .machine ppc7400' > conftest.s
25839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25841 (eval $ac_try) 2>&5
25843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25844 test $ac_status = 0; }; }
25846 gcc_cv_as_machine_directive
=yes
25848 echo "configure: failed program was" >&5
25851 rm -f conftest.o conftest.s
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25855 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25857 if test x
$gcc_cv_as_machine_directive != xyes
; then
25858 echo "*** This target requires an assembler supporting \".machine\"" >&2
25859 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25860 test x
$build = x
$target && exit 1
25864 *) conftest_s
=' .machine power4
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25870 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25871 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25874 gcc_cv_as_powerpc_mfcrf
=no
25875 if test $in_tree_gas = yes; then
25876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25877 then gcc_cv_as_powerpc_mfcrf
=yes
25879 elif test x
$gcc_cv_as != x
; then
25880 $as_echo "$conftest_s" > conftest.s
25881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25888 gcc_cv_as_powerpc_mfcrf
=yes
25890 echo "configure: failed program was" >&5
25893 rm -f conftest.o conftest.s
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25897 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25898 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25900 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25905 *-*-aix*) conftest_s
=' .machine "pwr5"
25908 *) conftest_s
=' .machine power5
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25914 $as_echo_n "checking assembler for popcntb support... " >&6; }
25915 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25916 $as_echo_n "(cached) " >&6
25918 gcc_cv_as_powerpc_popcntb
=no
25919 if test $in_tree_gas = yes; then
25920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25921 then gcc_cv_as_powerpc_popcntb
=yes
25923 elif test x
$gcc_cv_as != x
; then
25924 $as_echo "$conftest_s" > conftest.s
25925 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25927 (eval $ac_try) 2>&5
25929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25930 test $ac_status = 0; }; }
25932 gcc_cv_as_powerpc_popcntb
=yes
25934 echo "configure: failed program was" >&5
25937 rm -f conftest.o conftest.s
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25941 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25942 if test $gcc_cv_as_powerpc_popcntb = yes; then
25944 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25949 *-*-aix*) conftest_s
=' .machine "pwr5x"
25952 *) conftest_s
=' .machine power5
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25958 $as_echo_n "checking assembler for fp round support... " >&6; }
25959 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25960 $as_echo_n "(cached) " >&6
25962 gcc_cv_as_powerpc_fprnd
=no
25963 if test $in_tree_gas = yes; then
25964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25965 then gcc_cv_as_powerpc_fprnd
=yes
25967 elif test x
$gcc_cv_as != x
; then
25968 $as_echo "$conftest_s" > conftest.s
25969 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25971 (eval $ac_try) 2>&5
25973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25974 test $ac_status = 0; }; }
25976 gcc_cv_as_powerpc_fprnd
=yes
25978 echo "configure: failed program was" >&5
25981 rm -f conftest.o conftest.s
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25985 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25986 if test $gcc_cv_as_powerpc_fprnd = yes; then
25988 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25993 *-*-aix*) conftest_s
=' .machine "pwr6"
25996 *) conftest_s
=' .machine power6
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26002 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26003 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26004 $as_echo_n "(cached) " >&6
26006 gcc_cv_as_powerpc_mfpgpr
=no
26007 if test $in_tree_gas = yes; then
26008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26009 then gcc_cv_as_powerpc_mfpgpr
=yes
26011 elif test x
$gcc_cv_as != x
; then
26012 $as_echo "$conftest_s" > conftest.s
26013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26015 (eval $ac_try) 2>&5
26017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26018 test $ac_status = 0; }; }
26020 gcc_cv_as_powerpc_mfpgpr
=yes
26022 echo "configure: failed program was" >&5
26025 rm -f conftest.o conftest.s
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26029 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26030 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26032 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26037 *-*-aix*) conftest_s
=' .csect .text[PR]
26039 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26043 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26044 *) conftest_s
=' .text
26046 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26050 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26051 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26054 gcc_cv_as_powerpc_rel16
=no
26055 if test $in_tree_gas = yes; then
26056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26057 then gcc_cv_as_powerpc_rel16
=yes
26059 elif test x
$gcc_cv_as != x
; then
26060 $as_echo "$conftest_s" > conftest.s
26061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26063 (eval $ac_try) 2>&5
26065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26066 test $ac_status = 0; }; }
26068 gcc_cv_as_powerpc_rel16
=yes
26070 echo "configure: failed program was" >&5
26073 rm -f conftest.o conftest.s
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26077 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26078 if test $gcc_cv_as_powerpc_rel16 = yes; then
26080 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26085 *-*-aix*) conftest_s
=' .machine "pwr6"
26088 *) conftest_s
=' .machine power6
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26094 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26095 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26096 $as_echo_n "(cached) " >&6
26098 gcc_cv_as_powerpc_cmpb
=no
26099 if test $in_tree_gas = yes; then
26100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26101 then gcc_cv_as_powerpc_cmpb
=yes
26103 elif test x
$gcc_cv_as != x
; then
26104 $as_echo "$conftest_s" > conftest.s
26105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26107 (eval $ac_try) 2>&5
26109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26110 test $ac_status = 0; }; }
26112 gcc_cv_as_powerpc_cmpb
=yes
26114 echo "configure: failed program was" >&5
26117 rm -f conftest.o conftest.s
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26121 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26122 if test $gcc_cv_as_powerpc_cmpb = yes; then
26124 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26129 *-*-aix*) conftest_s
=' .machine "pwr6"
26132 *) conftest_s
=' .machine power6
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26138 $as_echo_n "checking assembler for decimal float support... " >&6; }
26139 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26142 gcc_cv_as_powerpc_dfp
=no
26143 if test $in_tree_gas = yes; then
26144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26145 then gcc_cv_as_powerpc_dfp
=yes
26147 elif test x
$gcc_cv_as != x
; then
26148 $as_echo "$conftest_s" > conftest.s
26149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26156 gcc_cv_as_powerpc_dfp
=yes
26158 echo "configure: failed program was" >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26165 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26166 if test $gcc_cv_as_powerpc_dfp = yes; then
26168 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26173 *-*-aix*) conftest_s
=' .machine "pwr7"
26176 *) conftest_s
=' .machine power7
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26182 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26183 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26184 $as_echo_n "(cached) " >&6
26186 gcc_cv_as_powerpc_vsx
=no
26187 if test $in_tree_gas = yes; then
26188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26189 then gcc_cv_as_powerpc_vsx
=yes
26191 elif test x
$gcc_cv_as != x
; then
26192 $as_echo "$conftest_s" > conftest.s
26193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26200 gcc_cv_as_powerpc_vsx
=yes
26202 echo "configure: failed program was" >&5
26205 rm -f conftest.o conftest.s
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26209 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26210 if test $gcc_cv_as_powerpc_vsx = yes; then
26212 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26217 *-*-aix*) conftest_s
=' .machine "pwr7"
26220 *) conftest_s
=' .machine power7
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26226 $as_echo_n "checking assembler for popcntd support... " >&6; }
26227 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26228 $as_echo_n "(cached) " >&6
26230 gcc_cv_as_powerpc_popcntd
=no
26231 if test $in_tree_gas = yes; then
26232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26233 then gcc_cv_as_powerpc_popcntd
=yes
26235 elif test x
$gcc_cv_as != x
; then
26236 $as_echo "$conftest_s" > conftest.s
26237 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26239 (eval $ac_try) 2>&5
26241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26242 test $ac_status = 0; }; }
26244 gcc_cv_as_powerpc_popcntd
=yes
26246 echo "configure: failed program was" >&5
26249 rm -f conftest.o conftest.s
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26253 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26254 if test $gcc_cv_as_powerpc_popcntd = yes; then
26256 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26261 *-*-aix*) conftest_s
=' .machine "pwr8"
26262 .csect .text[PR]';;
26263 *) conftest_s
=' .machine power8
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26268 $as_echo_n "checking assembler for power8 support... " >&6; }
26269 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26270 $as_echo_n "(cached) " >&6
26272 gcc_cv_as_powerpc_power8
=no
26273 if test $in_tree_gas = yes; then
26274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26275 then gcc_cv_as_powerpc_power8
=yes
26277 elif test x
$gcc_cv_as != x
; then
26278 $as_echo "$conftest_s" > conftest.s
26279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26281 (eval $ac_try) 2>&5
26283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26284 test $ac_status = 0; }; }
26286 gcc_cv_as_powerpc_power8
=yes
26288 echo "configure: failed program was" >&5
26291 rm -f conftest.o conftest.s
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26295 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26296 if test $gcc_cv_as_powerpc_power8 = yes; then
26298 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26303 *-*-aix*) conftest_s
=' .csect .text[PR]
26305 *) conftest_s
=' .text
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26310 $as_echo_n "checking assembler for lwsync support... " >&6; }
26311 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26312 $as_echo_n "(cached) " >&6
26314 gcc_cv_as_powerpc_lwsync
=no
26315 if test $in_tree_gas = yes; then
26316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26317 then gcc_cv_as_powerpc_lwsync
=yes
26319 elif test x
$gcc_cv_as != x
; then
26320 $as_echo "$conftest_s" > conftest.s
26321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26323 (eval $ac_try) 2>&5
26325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26326 test $ac_status = 0; }; }
26328 gcc_cv_as_powerpc_lwsync
=yes
26330 echo "configure: failed program was" >&5
26333 rm -f conftest.o conftest.s
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26337 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26338 if test $gcc_cv_as_powerpc_lwsync = yes; then
26340 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26345 *-*-aix*) conftest_s
=' .machine "476"
26348 *) conftest_s
=' .machine "476"
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26354 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26355 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26356 $as_echo_n "(cached) " >&6
26358 gcc_cv_as_powerpc_dci
=no
26359 if test $in_tree_gas = yes; then
26360 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26361 then gcc_cv_as_powerpc_dci
=yes
26363 elif test x
$gcc_cv_as != x
; then
26364 $as_echo "$conftest_s" > conftest.s
26365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26367 (eval $ac_try) 2>&5
26369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26370 test $ac_status = 0; }; }
26372 gcc_cv_as_powerpc_dci
=yes
26374 echo "configure: failed program was" >&5
26377 rm -f conftest.o conftest.s
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26381 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26382 if test $gcc_cv_as_powerpc_dci = yes; then
26384 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26389 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26390 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26391 $as_echo_n "(cached) " >&6
26393 gcc_cv_as_powerpc_gnu_attribute
=no
26394 if test $in_tree_gas = yes; then
26395 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26396 then gcc_cv_as_powerpc_gnu_attribute
=yes
26398 elif test x
$gcc_cv_as != x
; then
26399 $as_echo '.gnu_attribute 4,1' > conftest.s
26400 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26402 (eval $ac_try) 2>&5
26404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405 test $ac_status = 0; }; }
26407 gcc_cv_as_powerpc_gnu_attribute
=yes
26409 echo "configure: failed program was" >&5
26412 rm -f conftest.o conftest.s
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26416 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26417 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26419 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26424 $as_echo_n "checking assembler for tls marker support... " >&6; }
26425 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26428 gcc_cv_as_powerpc_tls_markers
=no
26429 if test $in_tree_gas = yes; then
26430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26431 then gcc_cv_as_powerpc_tls_markers
=yes
26433 elif test x
$gcc_cv_as != x
; then
26434 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26442 gcc_cv_as_powerpc_tls_markers
=yes
26444 echo "configure: failed program was" >&5
26447 rm -f conftest.o conftest.s
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26451 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26452 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26454 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26461 $as_echo_n "checking assembler for .ref support... " >&6; }
26462 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26463 $as_echo_n "(cached) " >&6
26465 gcc_cv_as_aix_ref
=no
26466 if test $in_tree_gas = yes; then
26467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26468 then gcc_cv_as_aix_ref
=yes
26470 elif test x
$gcc_cv_as != x
; then
26471 $as_echo ' .csect stuff[rw]
26477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26479 (eval $ac_try) 2>&5
26481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26482 test $ac_status = 0; }; }
26484 gcc_cv_as_aix_ref
=yes
26486 echo "configure: failed program was" >&5
26489 rm -f conftest.o conftest.s
26492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26493 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26494 if test $gcc_cv_as_aix_ref = yes; then
26496 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf location lists section support" >&5
26505 $as_echo_n "checking assembler for dwarf location lists section support... " >&6; }
26506 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26507 $as_echo_n "(cached) " >&6
26509 gcc_cv_as_aix_dwloc
=no
26510 if test $in_tree_gas = yes; then
26511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26512 then gcc_cv_as_aix_dwloc
=yes
26514 elif test x
$gcc_cv_as != x
; then
26515 $as_echo ' .dwsect 0xB0000
26517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26519 (eval $ac_try) 2>&5
26521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26522 test $ac_status = 0; }; }
26524 gcc_cv_as_aix_dwloc
=yes
26526 echo "configure: failed program was" >&5
26529 rm -f conftest.o conftest.s
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26533 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26534 if test $gcc_cv_as_aix_dwloc = yes; then
26536 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26545 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26546 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26547 $as_echo_n "(cached) " >&6
26549 gcc_cv_as_mips_explicit_relocs
=no
26550 if test $in_tree_gas = yes; then
26551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26552 then gcc_cv_as_mips_explicit_relocs
=yes
26554 elif test x
$gcc_cv_as != x
; then
26555 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26558 (eval $ac_try) 2>&5
26560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26561 test $ac_status = 0; }; }
26563 gcc_cv_as_mips_explicit_relocs
=yes
26565 echo "configure: failed program was" >&5
26568 rm -f conftest.o conftest.s
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26572 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26573 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26574 if test x
$target_cpu_default = x
26575 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26576 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26581 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26582 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26583 $as_echo_n "(cached) " >&6
26585 gcc_cv_as_mips_no_shared
=no
26586 if test $in_tree_gas = yes; then
26587 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26588 then gcc_cv_as_mips_no_shared
=yes
26590 elif test x
$gcc_cv_as != x
; then
26591 $as_echo 'nop' > conftest.s
26592 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26594 (eval $ac_try) 2>&5
26596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26597 test $ac_status = 0; }; }
26599 gcc_cv_as_mips_no_shared
=yes
26601 echo "configure: failed program was" >&5
26604 rm -f conftest.o conftest.s
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26608 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26609 if test $gcc_cv_as_mips_no_shared = yes; then
26611 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26616 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26617 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26618 $as_echo_n "(cached) " >&6
26620 gcc_cv_as_mips_gnu_attribute
=no
26621 if test $in_tree_gas = yes; then
26622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26623 then gcc_cv_as_mips_gnu_attribute
=yes
26625 elif test x
$gcc_cv_as != x
; then
26626 $as_echo '.gnu_attribute 4,1' > conftest.s
26627 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26629 (eval $ac_try) 2>&5
26631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26632 test $ac_status = 0; }; }
26634 gcc_cv_as_mips_gnu_attribute
=yes
26636 echo "configure: failed program was" >&5
26639 rm -f conftest.o conftest.s
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26643 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26644 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26646 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26651 $as_echo_n "checking assembler for .module support... " >&6; }
26652 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26653 $as_echo_n "(cached) " >&6
26655 gcc_cv_as_mips_dot_module
=no
26656 if test x
$gcc_cv_as != x
; then
26657 $as_echo '.module mips2
26658 .module fp=xx' > conftest.s
26659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26661 (eval $ac_try) 2>&5
26663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26664 test $ac_status = 0; }; }
26666 gcc_cv_as_mips_dot_module
=yes
26668 echo "configure: failed program was" >&5
26671 rm -f conftest.o conftest.s
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26675 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26676 if test $gcc_cv_as_mips_dot_module = yes; then
26678 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26681 if test x
$gcc_cv_as_mips_dot_module = xno \
26682 && test x
$with_fp_32 != x
; then
26683 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26687 $as_echo_n "checking assembler for .micromips support... " >&6; }
26688 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26689 $as_echo_n "(cached) " >&6
26691 gcc_cv_as_micromips_support
=no
26692 if test x
$gcc_cv_as != x
; then
26693 $as_echo '.set micromips' > conftest.s
26694 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26696 (eval $ac_try) 2>&5
26698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26699 test $ac_status = 0; }; }
26701 gcc_cv_as_micromips_support
=yes
26703 echo "configure: failed program was" >&5
26706 rm -f conftest.o conftest.s
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26710 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26711 if test $gcc_cv_as_micromips_support = yes; then
26713 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26718 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26719 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26720 $as_echo_n "(cached) " >&6
26722 gcc_cv_as_mips_dtprelword
=no
26723 if test $in_tree_gas = yes; then
26724 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26725 then gcc_cv_as_mips_dtprelword
=yes
26727 elif test x
$gcc_cv_as != x
; then
26728 $as_echo '.section .tdata,"awT",@progbits
26732 .dtprelword x+0x8000' > conftest.s
26733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26735 (eval $ac_try) 2>&5
26737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; }
26740 gcc_cv_as_mips_dtprelword
=yes
26742 echo "configure: failed program was" >&5
26745 rm -f conftest.o conftest.s
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26749 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26750 if test $gcc_cv_as_mips_dtprelword = yes; then
26752 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26757 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26758 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26759 $as_echo_n "(cached) " >&6
26761 gcc_cv_as_mips_dspr1_mult
=no
26762 if test x
$gcc_cv_as != x
; then
26763 $as_echo ' .set mips32r2
26771 multu $ac3,$4,$5' > conftest.s
26772 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26774 (eval $ac_try) 2>&5
26776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26777 test $ac_status = 0; }; }
26779 gcc_cv_as_mips_dspr1_mult
=yes
26781 echo "configure: failed program was" >&5
26784 rm -f conftest.o conftest.s
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26788 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26789 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26791 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26796 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26797 gcc_cv_as_ld_jalr_reloc
=no
26798 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26799 if test $in_tree_ld = yes ; then
26800 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 \
26801 && test $in_tree_ld_is_elf = yes; then
26802 gcc_cv_as_ld_jalr_reloc
=yes
26804 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26805 echo ' .ent x' > conftest.s
26806 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26807 echo ' lw $25,%call16(y)($28)' >> conftest.s
26808 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26809 echo '1: jalr $25' >> conftest.s
26810 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26811 echo '1: jalr $25' >> conftest.s
26812 echo ' .end x' >> conftest.s
26813 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26814 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26815 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26816 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26817 gcc_cv_as_ld_jalr_reloc
=yes
26823 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26824 if test x
$target_cpu_default = x
; then
26825 target_cpu_default
=MASK_RELAX_PIC_CALLS
26827 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26831 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26834 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26835 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26836 $as_echo_n "(cached) " >&6
26838 gcc_cv_ld_mips_personality_relaxation
=no
26839 if test $in_tree_ld = yes ; then
26840 if test "$gcc_cv_gld_major_version" -eq 2 \
26841 -a "$gcc_cv_gld_minor_version" -ge 21 \
26842 -o "$gcc_cv_gld_major_version" -gt 2; then
26843 gcc_cv_ld_mips_personality_relaxation
=yes
26845 elif test x
$gcc_cv_as != x \
26846 -a x
$gcc_cv_ld != x \
26847 -a x
$gcc_cv_readelf != x
; then
26848 cat > conftest.s
<<EOF
26850 .cfi_personality 0x80,indirect_ptr
26857 .section .data,"aw",@progbits
26861 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26862 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26863 if $gcc_cv_readelf -d conftest
2>&1 \
26864 |
grep TEXTREL
> /dev
/null
2>&1; then
26866 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26867 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26870 gcc_cv_ld_mips_personality_relaxation
=yes
26874 rm -f conftest.s conftest.o conftest
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26877 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26878 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26880 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26885 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26886 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26887 $as_echo_n "(cached) " >&6
26889 gcc_cv_as_mips_nan
=no
26890 if test x
$gcc_cv_as != x
; then
26891 $as_echo '' > conftest.s
26892 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26894 (eval $ac_try) 2>&5
26896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26897 test $ac_status = 0; }; }
26899 gcc_cv_as_mips_nan
=yes
26901 echo "configure: failed program was" >&5
26904 rm -f conftest.o conftest.s
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26908 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26909 if test $gcc_cv_as_mips_nan = yes; then
26911 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26914 if test x
$gcc_cv_as_mips_nan = xno \
26915 && test x
$with_nan != x
; then
26916 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26921 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26922 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26923 $as_echo_n "(cached) " >&6
26925 gcc_cv_as_s390_gnu_attribute
=no
26926 if test $in_tree_gas = yes; then
26927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26928 then gcc_cv_as_s390_gnu_attribute
=yes
26930 elif test x
$gcc_cv_as != x
; then
26931 $as_echo '.gnu_attribute 8,1' > conftest.s
26932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26934 (eval $ac_try) 2>&5
26936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26937 test $ac_status = 0; }; }
26939 gcc_cv_as_s390_gnu_attribute
=yes
26941 echo "configure: failed program was" >&5
26944 rm -f conftest.o conftest.s
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26948 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26949 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26951 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26957 # Mips and HP-UX need the GNU assembler.
26958 # Linux on IA64 might be able to use the Intel assembler.
26961 mips
*-*-* |
*-*-hpux* )
26962 if test x
$gas_flag = xyes \
26963 ||
test x
"$host" != x
"$build" \
26964 ||
test ! -x "$gcc_cv_as" \
26965 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26968 echo "*** This configuration requires the GNU assembler" >&2
26974 # ??? Not all targets support dwarf2 debug_line, even within a version
26975 # of gas. Moreover, we need to emit a valid instruction to trigger any
26976 # info to the output file. So, as supported targets are added to gas 2.11,
26977 # add some instruction here to (also) show we expect this might work.
26978 # ??? Once 2.11 is released, probably need to add first known working
26979 # version to the per-target configury.
26980 case "$cpu_type" in
26981 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26982 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26983 | visium | xstormy16 | xtensa
)
26993 if test x
"$insn" != x
; then
26995 .file 1 \"conftest.s\"
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26999 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27000 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27001 $as_echo_n "(cached) " >&6
27003 gcc_cv_as_dwarf2_debug_line
=no
27004 if test $in_tree_gas = yes; then
27005 if test $in_tree_gas_is_elf = yes \
27006 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27007 then gcc_cv_as_dwarf2_debug_line
=yes
27009 elif test x
$gcc_cv_as != x
; then
27010 $as_echo "$conftest_s" > conftest.s
27011 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27013 (eval $ac_try) 2>&5
27015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016 test $ac_status = 0; }; }
27018 if test x
$gcc_cv_objdump != x \
27019 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27020 |
grep debug_line
> /dev
/null
2>&1; then
27021 gcc_cv_as_dwarf2_debug_line
=yes
27024 echo "configure: failed program was" >&5
27027 rm -f conftest.o conftest.s
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27031 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27034 # The .debug_line file table must be in the exact order that
27035 # we specified the files, since these indices are also used
27036 # by DW_AT_decl_file. Approximate this test by testing if
27037 # the assembler bitches if the same index is assigned twice.
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27039 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27040 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27041 $as_echo_n "(cached) " >&6
27043 gcc_cv_as_dwarf2_file_buggy
=no
27044 if test x
$gcc_cv_as != x
; then
27045 $as_echo ' .file 1 "foo.s"
27046 .file 1 "bar.s"' > conftest.s
27047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27049 (eval $ac_try) 2>&5
27051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27052 test $ac_status = 0; }; }
27054 gcc_cv_as_dwarf2_file_buggy
=yes
27056 echo "configure: failed program was" >&5
27059 rm -f conftest.o conftest.s
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27063 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27066 if test $gcc_cv_as_dwarf2_debug_line = yes \
27067 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27069 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27074 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27075 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27076 $as_echo_n "(cached) " >&6
27078 gcc_cv_as_gdwarf2_flag
=no
27079 if test $in_tree_gas = yes; then
27080 if test $in_tree_gas_is_elf = yes \
27081 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27082 then gcc_cv_as_gdwarf2_flag
=yes
27084 elif test x
$gcc_cv_as != x
; then
27085 $as_echo "$insn" > conftest.s
27086 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27088 (eval $ac_try) 2>&5
27090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27091 test $ac_status = 0; }; }
27093 gcc_cv_as_gdwarf2_flag
=yes
27095 echo "configure: failed program was" >&5
27098 rm -f conftest.o conftest.s
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27102 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27103 if test $gcc_cv_as_gdwarf2_flag = yes; then
27105 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27110 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27111 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27112 $as_echo_n "(cached) " >&6
27114 gcc_cv_as_gstabs_flag
=no
27115 if test $in_tree_gas = yes; then
27116 if test $in_tree_gas_is_elf = yes \
27117 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27118 then gcc_cv_as_gstabs_flag
=yes
27120 elif test x
$gcc_cv_as != x
; then
27121 $as_echo "$insn" > conftest.s
27122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27124 (eval $ac_try) 2>&5
27126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27127 test $ac_status = 0; }; }
27129 gcc_cv_as_gstabs_flag
=yes
27131 echo "configure: failed program was" >&5
27134 rm -f conftest.o conftest.s
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27138 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27139 if test $gcc_cv_as_gstabs_flag = yes; then
27141 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27146 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27147 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27148 $as_echo_n "(cached) " >&6
27150 gcc_cv_as_debug_prefix_map_flag
=no
27151 if test $in_tree_gas = yes; then
27152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27153 then gcc_cv_as_debug_prefix_map_flag
=yes
27155 elif test x
$gcc_cv_as != x
; then
27156 $as_echo "$insn" > conftest.s
27157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27159 (eval $ac_try) 2>&5
27161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27162 test $ac_status = 0; }; }
27164 gcc_cv_as_debug_prefix_map_flag
=yes
27166 echo "configure: failed program was" >&5
27169 rm -f conftest.o conftest.s
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27173 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27174 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27176 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27182 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27183 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27184 $as_echo_n "(cached) " >&6
27186 gcc_cv_as_compress_debug
=no
27187 if test x
$gcc_cv_as != x
; then
27188 $as_echo '' > conftest.s
27189 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27191 (eval $ac_try) 2>&5
27193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27194 test $ac_status = 0; }; }
27196 # gas compiled without zlib cannot compress debug sections and warns
27197 # about it, but still exits successfully. So check for this, too.
27198 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27200 gcc_cv_as_compress_debug
=0
27201 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27203 gcc_cv_as_compress_debug
=1
27204 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27205 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27207 gcc_cv_as_compress_debug
=0
27208 # FIXME: Future gas versions will support ELF gABI style via
27209 # --compress-debug-sections[=type].
27212 echo "configure: failed program was" >&5
27215 rm -f conftest.o conftest.s
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27219 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27222 cat >>confdefs.h
<<_ACEOF
27223 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27227 cat >>confdefs.h
<<_ACEOF
27228 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27232 cat >>confdefs.h
<<_ACEOF
27233 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27238 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27239 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27240 $as_echo_n "(cached) " >&6
27242 gcc_cv_as_lcomm_with_alignment
=no
27243 if test x
$gcc_cv_as != x
; then
27244 $as_echo '.lcomm bar,4,16' > conftest.s
27245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27247 (eval $ac_try) 2>&5
27249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27250 test $ac_status = 0; }; }
27252 gcc_cv_as_lcomm_with_alignment
=yes
27254 echo "configure: failed program was" >&5
27257 rm -f conftest.o conftest.s
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27261 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27262 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27264 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27268 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27269 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27270 && test "$prefix" != "NONE"; then
27272 cat >>confdefs.h
<<_ACEOF
27273 #define PREFIX_INCLUDE_DIR "$prefix/include"
27278 # Determine the version of glibc, if any, used on the target.
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27280 $as_echo_n "checking for target glibc version... " >&6; }
27282 # Check whether --with-glibc-version was given.
27283 if test "${with_glibc_version+set}" = set; then :
27284 withval
=$with_glibc_version;
27285 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27286 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27287 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27289 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27293 glibc_version_major
=0
27294 glibc_version_minor
=0
27295 if test -f $target_header_dir/features.h \
27296 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27297 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27298 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27299 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27304 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27306 cat >>confdefs.h
<<_ACEOF
27307 #define TARGET_GLIBC_MAJOR $glibc_version_major
27311 cat >>confdefs.h
<<_ACEOF
27312 #define TARGET_GLIBC_MINOR $glibc_version_minor
27316 # Check whether --enable-gnu-unique-object was given.
27317 if test "${enable_gnu_unique_object+set}" = set; then :
27318 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27320 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27321 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27325 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27326 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27327 $as_echo_n "(cached) " >&6
27329 gcc_cv_as_gnu_unique_object
=no
27330 if test $in_tree_gas = yes; then
27331 if test $in_tree_gas_is_elf = yes \
27332 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27333 then gcc_cv_as_gnu_unique_object
=yes
27335 elif test x
$gcc_cv_as != x
; then
27336 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27337 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27339 (eval $ac_try) 2>&5
27341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27342 test $ac_status = 0; }; }
27344 gcc_cv_as_gnu_unique_object
=yes
27346 echo "configure: failed program was" >&5
27349 rm -f conftest.o conftest.s
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27353 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27354 if test $gcc_cv_as_gnu_unique_object = yes; then
27355 # We need to unquote above to to use the definition from config.gcc.
27356 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27358 if test $glibc_version_major -gt 2 \
27359 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27360 enable_gnu_unique_object
=yes
27366 if test x
$enable_gnu_unique_object = xyes
; then
27368 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27373 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27374 if test "${gcc_cv_as_line_zero+set}" = set; then :
27375 $as_echo_n "(cached) " >&6
27377 gcc_cv_as_line_zero
=no
27378 if test $in_tree_gas = yes; then
27379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27380 then gcc_cv_as_line_zero
=yes
27382 elif test "x$gcc_cv_as" != x
; then
27383 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27384 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27386 (eval $ac_try) 2>&5
27388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27389 test $ac_status = 0; }; } &&
27390 test "x`cat conftest.out`" = x
27392 gcc_cv_as_line_zero
=yes
27394 echo "configure: failed program was" >&5
27396 echo "configure: error output was" >&5
27397 cat conftest.out
>&5
27399 rm -f conftest.o conftest.s conftest.out
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27403 $as_echo "$gcc_cv_as_line_zero" >&6; }
27404 if test "x$gcc_cv_as_line_zero" = xyes
; then
27406 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27411 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27412 gcc_cv_ld_eh_frame_hdr
=no
27413 if test $in_tree_ld = yes ; then
27414 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 \
27415 && test $in_tree_ld_is_elf = yes; then
27416 gcc_cv_ld_eh_frame_hdr
=yes
27418 elif test x
$gcc_cv_ld != x
; then
27419 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27420 # Check if linker supports --eh-frame-hdr option
27421 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27422 gcc_cv_ld_eh_frame_hdr
=yes
27427 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27428 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27429 gcc_cv_ld_eh_frame_hdr
=yes
27436 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27438 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27442 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27445 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27446 gcc_cv_ld_eh_frame_ciev3
=no
27447 if test $in_tree_ld = yes ; then
27448 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 \
27449 && test $in_tree_ld_is_elf = yes; then
27450 gcc_cv_ld_eh_frame_ciev3
=yes
27452 elif test x
$gcc_cv_ld != x
; then
27453 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27454 gcc_cv_ld_eh_frame_ciev3
=yes
27455 if test 0"$ld_date" -lt 20040513; then
27456 if test -n "$ld_date"; then
27457 # If there was date string, but was earlier than 2004-05-13, fail
27458 gcc_cv_ld_eh_frame_ciev3
=no
27459 elif test "$ld_vers_major" -lt 2; then
27460 gcc_cv_ld_eh_frame_ciev3
=no
27461 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27462 gcc_cv_ld_eh_frame_ciev3
=no
27468 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27469 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27470 gcc_cv_ld_eh_frame_ciev3
=yes
27477 cat >>confdefs.h
<<_ACEOF
27478 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27482 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27485 $as_echo_n "checking linker position independent executable support... " >&6; }
27487 if test $in_tree_ld = yes ; then
27489 # Full PIE support on Solaris was only introduced in gld 2.26.
27490 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
27491 *) gcc_gld_pie_min_version
=15 ;;
27493 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
27494 && test $in_tree_ld_is_elf = yes; then
27497 elif test x
$gcc_cv_ld != x
; then
27498 # Check if linker supports -pie option
27499 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27503 if echo "$ld_ver" |
grep GNU
> /dev
/null \
27504 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27511 *-*-solaris2.1
[1-9]*)
27512 # Solaris 11.x and Solaris 12 added PIE support.
27513 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
27520 if test x
"$gcc_cv_ld_pie" = xyes
; then
27522 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27526 $as_echo "$gcc_cv_ld_pie" >&6; }
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27529 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27530 gcc_cv_ld_pie_copyreloc
=no
27531 if test $gcc_cv_ld_pie = yes ; then
27532 if test $in_tree_ld = yes ; then
27533 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
27534 gcc_cv_ld_pie_copyreloc
=yes
27536 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27537 # Check if linker supports -pie option with copy reloc
27539 i?
86-*-linux* | x86_64-
*-linux*)
27540 cat > conftest1.s
<<EOF
27543 .type a_glob, @object
27548 cat > conftest2.s
<<EOF
27551 .type main, @function
27553 movl %eax, a_glob(%rip)
27556 .section .data.rel,"aw",@progbits
27561 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27562 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27563 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27564 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27565 gcc_cv_ld_pie_copyreloc
=yes
27567 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27573 cat >>confdefs.h
<<_ACEOF
27574 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27578 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27581 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27582 gcc_cv_ld_eh_gc_sections
=no
27583 if test $in_tree_ld = yes ; then
27584 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 \
27585 && test $in_tree_ld_is_elf = yes; then
27586 gcc_cv_ld_eh_gc_sections
=yes
27588 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27589 cat > conftest.s
<<EOF
27592 .type _start, @function
27595 .size _start, .-_start
27596 .section .text.foo,"ax",@progbits
27597 .type foo, @function
27601 .section .gcc_except_table.foo,"a",@progbits
27604 .section .eh_frame,"a",@progbits
27607 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27608 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27609 |
grep "gc-sections option ignored" > /dev
/null
; then
27610 gcc_cv_ld_eh_gc_sections
=no
27611 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27612 |
grep gcc_except_table
> /dev
/null
; then
27613 gcc_cv_ld_eh_gc_sections
=yes
27614 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27615 if test x
$gcc_cv_as_comdat_group != xyes
; then
27616 gcc_cv_ld_eh_gc_sections
=no
27617 cat > conftest.s
<<EOF
27620 .type _start, @function
27623 .size _start, .-_start
27624 .section .gnu.linkonce.t.foo,"ax",@progbits
27625 .type foo, @function
27629 .section .gcc_except_table.foo,"a",@progbits
27632 .section .eh_frame,"a",@progbits
27635 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27636 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27637 |
grep "gc-sections option ignored" > /dev
/null
; then
27638 gcc_cv_ld_eh_gc_sections
=no
27639 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27640 |
grep gcc_except_table
> /dev
/null
; then
27641 gcc_cv_ld_eh_gc_sections
=yes
27647 rm -f conftest.s conftest.o conftest
27651 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27652 gcc_cv_ld_eh_gc_sections
=no
27655 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27657 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27661 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27664 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27665 gcc_cv_ld_eh_gc_sections_bug
=no
27666 if test $in_tree_ld = yes ; then
27667 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 \
27668 && test $in_tree_ld_is_elf = yes; then
27669 gcc_cv_ld_eh_gc_sections_bug
=yes
27671 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
27672 gcc_cv_ld_eh_gc_sections_bug
=yes
27673 cat > conftest.s
<<EOF
27676 .type _start, @function
27679 .size _start, .-_start
27680 .section .text.startup.foo,"ax",@progbits
27681 .type foo, @function
27685 .section .gcc_except_table.foo,"a",@progbits
27688 .section .eh_frame,"a",@progbits
27691 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27692 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27693 |
grep "gc-sections option ignored" > /dev
/null
; then
27695 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27696 |
grep gcc_except_table
> /dev
/null
; then
27697 gcc_cv_ld_eh_gc_sections_bug
=no
27700 rm -f conftest.s conftest.o conftest
27702 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27704 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27708 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27711 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27712 # gold/gld support compressed debug sections since binutils 2.19/2.21
27713 if test $in_tree_ld = yes ; then
27714 gcc_cv_ld_compress_debug
=0
27715 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 \
27716 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27717 gcc_cv_ld_compress_debug
=2
27718 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27719 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 \
27720 && test $in_tree_ld_is_elf = yes; then
27721 gcc_cv_ld_compress_debug
=1
27723 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27724 gcc_cv_ld_compress_debug
=1
27725 if test 0"$ld_date" -lt 20050308; then
27726 if test -n "$ld_date"; then
27727 # If there was date string, but was earlier than 2005-03-08, fail
27728 gcc_cv_ld_compress_debug
=0
27729 elif test "$ld_vers_major" -lt 2; then
27730 gcc_cv_ld_compress_debug
=0
27731 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27732 gcc_cv_ld_compress_debug
=0
27735 if test $ld_is_gold = yes; then
27736 gcc_cv_ld_compress_debug
=2
27737 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27740 case "${target}" in
27742 # Introduced in Solaris 11.2.
27743 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27744 gcc_cv_ld_compress_debug
=3
27745 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27747 gcc_cv_ld_compress_debug
=0
27751 # Assume linkers other than GNU ld don't support compessed debug
27753 gcc_cv_ld_compress_debug
=0
27758 cat >>confdefs.h
<<_ACEOF
27759 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27763 cat >>confdefs.h
<<_ACEOF
27764 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27768 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27775 $as_echo_n "checking linker --as-needed support... " >&6; }
27776 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27777 $as_echo_n "(cached) " >&6
27779 gcc_cv_ld_as_needed
=no
27780 gcc_cv_ld_as_needed_option
='--as-needed'
27781 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27782 if test $in_tree_ld = yes ; then
27783 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 \
27784 && test $in_tree_ld_is_elf = yes; then
27785 gcc_cv_ld_as_needed
=yes
27787 elif test x
$gcc_cv_ld != x
; then
27788 # Check if linker supports --as-needed and --no-as-needed options
27789 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27790 gcc_cv_ld_as_needed
=yes
27793 # Solaris 2 ld always supports -z ignore/-z record.
27795 gcc_cv_ld_as_needed
=yes
27796 gcc_cv_ld_as_needed_option
="-z ignore"
27797 gcc_cv_ld_no_as_needed_option
="-z record"
27802 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27803 # dl_iterate_phdr, i.e. since Solaris 11.
27805 *-*-solaris2.1
[1-9]*)
27807 i?
86-*-* | x86_64-
*-*)
27808 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27809 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27810 gcc_cv_ld_as_needed
=no
27816 gcc_cv_ld_as_needed
=no
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27822 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27823 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27825 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27828 cat >>confdefs.h
<<_ACEOF
27829 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27833 cat >>confdefs.h
<<_ACEOF
27834 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27840 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27841 saved_LDFLAGS
="$LDFLAGS"
27842 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27843 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27845 /* end confdefs.h. */
27846 int main(void) {return 0;}
27848 if ac_fn_cxx_try_link
"$LINENO"; then :
27849 gcc_cv_ld_clearcap
=yes; break
27851 gcc_cv_ld_clearcap
=no
27853 rm -f core conftest.err conftest.
$ac_objext \
27854 conftest
$ac_exeext conftest.
$ac_ext
27856 LDFLAGS
="$saved_LDFLAGS"
27857 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27859 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27861 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27865 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27867 case "$target:$tm_file" in
27868 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27871 emul_name
="-melf64lppc"
27874 emul_name
="-melf64ppc"
27877 emul_name
="-melf64ppc_fbsd"
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27881 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27882 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27883 $as_echo_n "(cached) " >&6
27885 gcc_cv_ld_no_dot_syms
=no
27886 if test x
"$ld_is_gold" = xyes
; then
27887 gcc_cv_ld_no_dot_syms
=yes
27888 elif test $in_tree_ld = yes ; then
27889 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
27890 gcc_cv_ld_no_dot_syms
=yes
27892 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27893 cat > conftest1.s
<<EOF
27897 cat > conftest2.s
<<EOF
27898 .section ".opd","aw"
27901 .type foo,@function
27903 .quad .LEfoo,.TOC.@tocbase,0
27909 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27910 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27911 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27912 gcc_cv_ld_no_dot_syms
=yes
27914 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27919 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27920 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27922 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27927 $as_echo_n "checking linker large toc support... " >&6; }
27928 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27929 $as_echo_n "(cached) " >&6
27931 gcc_cv_ld_large_toc
=no
27932 if test x
"$ld_is_gold" = xyes
; then
27933 gcc_cv_ld_large_toc
=yes
27934 elif test $in_tree_ld = yes ; then
27935 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
27936 gcc_cv_ld_large_toc
=yes
27938 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27939 cat > conftest.s
<<EOF
27940 .section ".tbss","awT",@nobits
27946 addis 9,13,ie0@got@tprel@ha
27947 ld 9,ie0@got@tprel@l(9)
27949 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27950 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27951 gcc_cv_ld_large_toc
=yes
27953 rm -f conftest conftest.o conftest.s
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27958 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27959 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27961 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27966 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27967 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27968 $as_echo_n "(cached) " >&6
27970 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
27971 cat > conftest.s
<<EOF
27976 .section .data.rel.ro,"aw",@progbits
27981 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27982 && $gcc_cv_ld $emul_name -o conftest conftest.o
> /dev
/null
2>&1; then
27983 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)) }'`
27985 rm -f conftest conftest.o conftest.s
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27990 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27991 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27993 cat >>confdefs.h
<<_ACEOF
27994 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28004 $as_echo_n "checking linker large toc support... " >&6; }
28005 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28006 $as_echo_n "(cached) " >&6
28008 gcc_cv_ld_large_toc
=no
28009 if test x
$gcc_cv_as != x
; then
28010 cat > conftest.s
<<EOF
28020 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28021 gcc_cv_ld_large_toc
=yes
28023 rm -f conftest conftest.o conftest.s
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28028 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28029 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28031 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28038 $as_echo_n "checking linker --build-id support... " >&6; }
28039 if test "${gcc_cv_ld_buildid+set}" = set; then :
28040 $as_echo_n "(cached) " >&6
28042 gcc_cv_ld_buildid
=no
28043 if test $in_tree_ld = yes ; then
28044 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28045 "$gcc_cv_gld_minor_version" -ge 18 -o \
28046 "$gcc_cv_gld_major_version" -gt 2 \
28047 && test $in_tree_ld_is_elf = yes; then
28048 gcc_cv_ld_buildid
=yes
28050 elif test x
$gcc_cv_ld != x
; then
28051 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28052 gcc_cv_ld_buildid
=yes
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28057 $as_echo "$gcc_cv_ld_buildid" >&6; }
28058 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28060 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28064 # Check whether --enable-linker-build-id was given.
28065 if test "${enable_linker_build_id+set}" = set; then :
28066 enableval
=$enable_linker_build_id;
28068 enable_linker_build_id
=no
28072 if test x
"$enable_linker_build_id" = xyes
; then
28073 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28075 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28079 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28083 # In binutils 2.21, GNU ld gained support for new emulations fully
28084 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28086 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28087 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28088 $as_echo_n "(cached) " >&6
28090 gcc_cv_ld_sol2_emulation
=no
28091 if test $in_tree_ld = yes ; then
28092 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28093 "$gcc_cv_gld_minor_version" -ge 21 -o \
28094 "$gcc_cv_gld_major_version" -gt 2 \
28095 && test $in_tree_ld_is_elf = yes; then
28096 gcc_cv_ld_sol2_emulation
=yes
28098 elif test x
$gcc_cv_ld != x
; then
28099 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28100 grep _sol2
> /dev
/null
; then
28101 gcc_cv_ld_sol2_emulation
=yes
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28106 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28107 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28109 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28114 $as_echo_n "checking linker --sysroot support... " >&6; }
28115 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28116 $as_echo_n "(cached) " >&6
28118 gcc_cv_ld_sysroot
=no
28119 if test $in_tree_ld = yes ; then
28120 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
28121 gcc_cv_ld_sysroot
=yes
28123 elif test x
$gcc_cv_ld != x
; then
28124 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28125 gcc_cv_ld_sysroot
=yes
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28130 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28131 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28133 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28139 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28141 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28142 if test "${gcc_cv_solaris_crts+set}" = set; then :
28143 $as_echo_n "(cached) " >&6
28145 gcc_cv_solaris_crts
=no
28146 if test x
$host != x
$target; then
28147 if test "x$with_sysroot" = xyes
; then
28148 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28150 target_sysroot
="${with_sysroot}"
28153 target_libdir
="$target_sysroot/usr/lib"
28154 # At the time they were added, gcrt1.o became a symlink for backwards
28155 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28157 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28158 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28160 sparc
*-*-solaris2*)
28161 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28166 $as_echo "$gcc_cv_solaris_crts" >&6; }
28169 if test x
$gcc_cv_solaris_crts = xyes
; then
28171 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28175 # Test for stack protector support in target C library.
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28177 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28178 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28179 $as_echo_n "(cached) " >&6
28181 gcc_cv_libc_provides_ssp
=no
28184 # All versions of musl provide stack protector
28185 gcc_cv_libc_provides_ssp
=yes;;
28186 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
28187 # glibc 2.4 and later provides __stack_chk_fail and
28188 # either __stack_chk_guard, or TLS access to stack guard canary.
28190 if test $glibc_version_major -gt 2 \
28191 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28192 gcc_cv_libc_provides_ssp
=yes
28195 if test -f $target_header_dir/features.h \
28196 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28197 $target_header_dir/features.h
> /dev
/null
; then
28198 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28199 $target_header_dir/features.h
> /dev
/null
&& \
28200 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28201 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28202 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28203 gcc_cv_libc_provides_ssp
=yes
28205 # all versions of Bionic support stack protector
28206 elif test -f $target_header_dir/sys
/cdefs.h \
28207 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28208 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28209 gcc_cv_libc_provides_ssp
=yes
28214 # Avoid complicated tests (see
28215 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28216 # simply assert that glibc does provide this, which is true for all
28217 # realistically usable GNU/Hurd configurations.
28218 # All supported versions of musl provide it as well
28219 gcc_cv_libc_provides_ssp
=yes;;
28220 *-*-darwin* |
*-*-freebsd*)
28221 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28222 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28223 gcc_cv_libc_provides_ssp
=yes
28225 echo "no __stack_chk_fail on this target"
28229 *) gcc_cv_libc_provides_ssp
=no
;;
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28233 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28235 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28237 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28241 # Check whether --enable-default-ssp was given.
28242 # Check whether --enable-default-ssp was given.
28243 if test "${enable_default_ssp+set}" = set; then :
28244 enableval
=$enable_default_ssp;
28245 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28247 ia64
*-*-*) enable_default_ssp
=no
;;
28248 *) enable_default_ssp
=$enableval ;;
28251 enable_default_ssp
=no
28254 enable_default_ssp
=no
28257 if test x
$enable_default_ssp == xyes
; then
28259 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28264 # Test for <sys/sdt.h> on the target.
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28267 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28269 if test -f $target_header_dir/sys
/sdt.h
; then
28272 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28276 $as_echo "$have_sys_sdt_h" >&6; }
28278 # Check if TFmode long double should be used by default or not.
28279 # Some glibc targets used DFmode long double, but with glibc 2.4
28280 # and later they can use TFmode.
28282 powerpc
*-*-linux* | \
28283 sparc
*-*-linux* | \
28287 # Check whether --with-long-double-128 was given.
28288 if test "${with_long_double_128+set}" = set; then :
28289 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28292 if test $glibc_version_major -gt 2 \
28293 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28294 gcc_cv_target_ldbl128
=yes
28297 gcc_cv_target_ldbl128
=no
28298 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28299 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28300 && gcc_cv_target_ldbl128
=yes
28307 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28309 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28314 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28315 gcc_cv_target_dl_iterate_phdr
=unknown
28317 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28318 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28319 # libdl there, both complicating its use and breaking compatibility
28320 # between Solaris 10 updates.
28321 *-*-solaris2.1
[1-9]*)
28322 # <link.h> needs both a dl_iterate_phdr declaration and support for
28323 # compilation with largefile support.
28324 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28325 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28326 gcc_cv_target_dl_iterate_phdr
=yes
28328 gcc_cv_target_dl_iterate_phdr
=no
28331 *-*-dragonfly* |
*-*-freebsd*)
28332 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28333 gcc_cv_target_dl_iterate_phdr
=yes
28335 gcc_cv_target_dl_iterate_phdr
=no
28339 gcc_cv_target_dl_iterate_phdr
=yes
28343 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28345 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28349 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28351 # We no longer support different GC mechanisms. Emit an error if
28352 # the user configures with --with-gc.
28354 # Check whether --with-gc was given.
28355 if test "${with_gc+set}" = set; then :
28356 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28360 # Libraries to use on the host. This will normally be set by the top
28361 # level Makefile. Here we simply capture the value for our Makefile.
28362 if test -z "${HOST_LIBS+set}"; then
28367 # Use the system's zlib library.
28369 # Use the system's zlib library.
28370 zlibdir
="-L\$(top_builddir)/../zlib"
28371 zlibinc
="-I\$(top_srcdir)/../zlib"
28373 # Check whether --with-system-zlib was given.
28374 if test "${with_system_zlib+set}" = set; then :
28375 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28388 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28389 # Check whether --enable-maintainer-mode was given.
28390 if test "${enable_maintainer_mode+set}" = set; then :
28391 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28398 $as_echo "$maintainer_mode" >&6; }
28400 if test "$maintainer_mode" = "yes"; then
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28408 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28409 # Check whether --enable-link-mutex was given.
28410 if test "${enable_link_mutex+set}" = set; then :
28411 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28417 $as_echo "$do_link_mutex" >&6; }
28419 if test "$do_link_mutex" = "yes"; then
28422 DO_LINK_MUTEX
=false
28430 # Make empty files to contain the specs and options for each language.
28431 # Then add #include lines to for a compiler that has specs and/or options.
28437 # These (without "all_") are set in each config-lang.in.
28438 # `language' must be a single word so is spelled singularly.
28441 all_outputs
='Makefile'
28442 # List of language makefile fragments.
28443 all_lang_makefrags
=
28444 # Additional files for gengtype
28445 all_gtfiles
="$target_gtfiles"
28447 # These are the languages that are set in --enable-languages,
28448 # and are available in the GCC tree.
28449 all_selected_languages
=
28451 # Add the language fragments.
28452 # Languages are added via two mechanisms. Some information must be
28453 # recorded in makefile variables, these are defined in config-lang.in.
28454 # We accumulate them and plug them into the main Makefile.
28455 # The other mechanism is a set of hooks for each of the main targets
28456 # like `clean', `install', etc.
28458 language_hooks
="Make-hooks"
28460 for lang
in ${srcdir}/*/config-lang.
in
28462 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28464 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28465 if test "x$lang_alias" = x
28467 echo "$lang doesn't set \$language." 1>&2
28470 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28471 subdirs
="$subdirs $subdir"
28473 # $gcc_subdir is where the gcc integration files are to be found
28474 # for a language, both for internal compiler purposes (compiler
28475 # sources implementing front-end to GCC tree converters), and for
28476 # build infrastructure purposes (Make-lang.in, etc.)
28478 # This will be <subdir> (relative to $srcdir) if a line like
28479 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28480 # is found in <langdir>/config-lang.in, and will remain <langdir>
28483 # Except for the language alias (fetched above), the regular
28484 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28485 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28486 # only this and the language alias.
28488 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28489 if [ "$gcc_subdir" = "" ]; then
28490 gcc_subdir
="$subdir"
28493 case ",$enable_languages," in
28495 all_selected_languages
="$all_selected_languages $lang_alias"
28496 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28497 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28508 .
${srcdir}/$gcc_subdir/config-lang.
in
28509 if test "x$language" = x
28511 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28516 case ",$enable_languages," in
28517 *,$lang_alias,*) ;;
28519 for i
in $subdir_requires; do
28520 test -f "${srcdir}/$i/config-lang.in" && continue
28528 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28529 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28530 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28531 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28533 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28534 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28536 all_languages
="$all_languages $language"
28537 all_compilers
="$all_compilers $compilers"
28538 all_outputs
="$all_outputs $outputs"
28539 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28540 case ",$enable_languages," in
28543 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28553 for language
in $all_selected_languages
28555 check_languages
="$check_languages check-$language"
28558 # We link each language in with a set of hooks, reached indirectly via
28559 # lang.${target}. Only do so for selected languages.
28563 target_list
="all.cross start.encap rest.encap tags \
28564 install-common install-man install-info install-pdf install-html dvi \
28565 pdf html uninstall info man srcextra srcman srcinfo \
28566 mostlyclean clean distclean maintainer-clean install-plugin"
28568 for t
in $target_list
28571 for lang
in $all_selected_languages
28575 echo "lang.$t: $x" >> Make-hooks
28579 # Option include files
28582 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
28583 option_includes
="option-includes.mk"
28592 echo "dir ." > .gdbinit
28593 echo "dir ${srcdir}" >> .gdbinit
28594 if test x
$gdb_needs_out_file_path = xyes
28596 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28598 if test "x$subdirs" != x
; then
28601 echo "dir ${srcdir}/$s" >> .gdbinit
28604 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28605 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28607 # Put a breakpoint on __asan_report_error to help with debugging buffer
28610 *-fsanitize=address
*)
28611 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28615 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28619 # Find a directory in which to install a shared libgcc.
28621 # Check whether --enable-version-specific-runtime-libs was given.
28622 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28623 enableval
=$enable_version_specific_runtime_libs;
28627 # Substitute configuration variables
28691 if test x
${build} = x
${host} ; then
28692 if test x
${host} = x
${target} ; then
28693 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28695 echo "Links are now set up to build a cross-compiler" 1>&2
28696 echo " from ${host} to ${target}." 1>&2
28699 if test x
${host} = x
${target} ; then
28700 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28701 echo " for ${target}." 1>&2
28703 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28704 echo " from ${host} to ${target}." 1>&2
28713 if test "x${ISLLIBS}" != "x" ; then
28715 $as_echo "#define HAVE_isl 1" >>confdefs.h
28719 # Check whether isl_schedule_constraints_compute_schedule is available;
28720 # it's new in ISL-0.13.
28721 # Check whether isl_options_set_schedule_serialize_sccs is available;
28722 # it's new in ISL-0.15.
28723 if test "x${ISLLIBS}" != "x" ; then
28724 saved_CXXFLAGS
="$CXXFLAGS"
28725 CXXFLAGS
="$CXXFLAGS $ISLINC"
28727 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28730 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28732 /* end confdefs.h. */
28733 #include <isl/schedule.h>
28737 isl_schedule_constraints_compute_schedule (NULL);
28742 if ac_fn_cxx_try_link
"$LINENO"; then :
28743 ac_has_isl_schedule_constraints_compute_schedule
=yes
28745 ac_has_isl_schedule_constraints_compute_schedule
=no
28747 rm -f core conftest.err conftest.
$ac_objext \
28748 conftest
$ac_exeext conftest.
$ac_ext
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28750 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28753 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28755 /* end confdefs.h. */
28756 #include <isl/schedule.h>
28760 isl_options_set_schedule_serialize_sccs (NULL, 0);
28765 if ac_fn_cxx_try_link
"$LINENO"; then :
28766 ac_has_isl_options_set_schedule_serialize_sccs
=yes
28768 ac_has_isl_options_set_schedule_serialize_sccs
=no
28770 rm -f core conftest.err conftest.
$ac_objext \
28771 conftest
$ac_exeext conftest.
$ac_ext
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28773 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_ctx_get_max_operations" >&5
28776 $as_echo_n "checking Checking for isl_ctx_get_max_operations... " >&6; }
28777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28778 /* end confdefs.h. */
28779 #include <isl/ctx.h>
28783 isl_ctx_get_max_operations (isl_ctx_alloc ());
28788 if ac_fn_cxx_try_link
"$LINENO"; then :
28789 ac_has_isl_ctx_get_max_operations
=yes
28791 ac_has_isl_ctx_get_max_operations
=no
28793 rm -f core conftest.err conftest.
$ac_objext \
28794 conftest
$ac_exeext conftest.
$ac_ext
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_ctx_get_max_operations" >&5
28796 $as_echo "$ac_has_isl_ctx_get_max_operations" >&6; }
28799 CXXFLAGS
="$saved_CXXFLAGS"
28801 if test x
"$ac_has_isl_schedule_constraints_compute_schedule" = x
"yes"; then
28803 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28807 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
28809 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28812 if test x
"$ac_has_isl_ctx_get_max_operations" = x
"yes"; then
28814 $as_echo "#define HAVE_ISL_CTX_MAX_OPERATIONS 1" >>confdefs.h
28819 # Check for plugin support
28820 # Check whether --enable-plugin was given.
28821 if test "${enable_plugin+set}" = set; then :
28822 enableval
=$enable_plugin; enable_plugin
=$enableval
28824 enable_plugin
=yes; default_plugin
=yes
28832 if test x
$build = x
$host; then
28833 export_sym_check
="nm${exeext} -g"
28834 elif test x
$host = x
$target; then
28835 export_sym_check
="$gcc_cv_nm -g"
28841 if test x
$build = x
$host; then
28842 export_sym_check
="objdump${exeext} -T"
28843 elif test x
$host = x
$target; then
28844 export_sym_check
="$gcc_cv_objdump -T"
28851 if test x
"$enable_plugin" = x
"yes"; then
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28854 $as_echo_n "checking for exported symbols... " >&6; }
28855 if test "x$export_sym_check" != x
; then
28856 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28857 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28858 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28859 : # No need to use a flag
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28861 $as_echo "yes" >&6; }
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28864 $as_echo "yes" >&6; }
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28866 $as_echo_n "checking for -rdynamic... " >&6; }
28867 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28868 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28869 plugin_rdynamic
=yes
28870 pluginlibs
="-rdynamic"
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28876 $as_echo "$plugin_rdynamic" >&6; }
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28880 $as_echo "unable to check" >&6; }
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28886 $as_echo_n "checking for library containing dlopen... " >&6; }
28887 if test "${ac_cv_search_dlopen+set}" = set; then :
28888 $as_echo_n "(cached) " >&6
28890 ac_func_search_save_LIBS
=$LIBS
28891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28892 /* end confdefs.h. */
28894 /* Override any GCC internal prototype to avoid an error.
28895 Use char because int might match the return type of a GCC
28896 builtin and then its argument prototype would still apply. */
28909 for ac_lib
in '' dl
; do
28910 if test -z "$ac_lib"; then
28911 ac_res
="none required"
28914 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28916 if ac_fn_cxx_try_link
"$LINENO"; then :
28917 ac_cv_search_dlopen
=$ac_res
28919 rm -f core conftest.err conftest.
$ac_objext \
28921 if test "${ac_cv_search_dlopen+set}" = set; then :
28925 if test "${ac_cv_search_dlopen+set}" = set; then :
28928 ac_cv_search_dlopen
=no
28930 rm conftest.
$ac_ext
28931 LIBS
=$ac_func_search_save_LIBS
28933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28934 $as_echo "$ac_cv_search_dlopen" >&6; }
28935 ac_res
=$ac_cv_search_dlopen
28936 if test "$ac_res" != no
; then :
28937 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28941 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28942 pluginlibs
="$pluginlibs -ldl"
28946 # Check that we can build shared objects with -fPIC -shared
28947 saved_LDFLAGS
="$LDFLAGS"
28948 saved_CFLAGS
="$CFLAGS"
28951 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28952 CFLAGS
="$CFLAGS -fPIC"
28953 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28956 CFLAGS
="$CFLAGS -fPIC"
28957 LDFLAGS
="$LDFLAGS -fPIC -shared"
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28961 $as_echo_n "checking for -fPIC -shared... " >&6; }
28962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28963 /* end confdefs.h. */
28973 if ac_fn_cxx_try_link
"$LINENO"; then :
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28975 $as_echo "yes" >&6; }; have_pic_shared
=yes
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28978 $as_echo "no" >&6; }; have_pic_shared
=no
28980 rm -f core conftest.err conftest.
$ac_objext \
28981 conftest
$ac_exeext conftest.
$ac_ext
28982 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28986 LDFLAGS
="$saved_LDFLAGS"
28987 CFLAGS
="$saved_CFLAGS"
28989 # If plugin support had been requested but not available, fail.
28990 if test x
"$enable_plugin" = x
"no" ; then
28991 if test x
"$default_plugin" != x
"yes"; then
28993 Building GCC with plugin support requires a host that supports
28994 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29001 if test x
"$enable_plugin" = x
"yes"; then
29003 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29008 # Enable --enable-host-shared
29009 # Check whether --enable-host-shared was given.
29010 if test "${enable_host_shared+set}" = set; then :
29011 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29020 # Check whether --enable-libquadmath-support was given.
29021 if test "${enable_libquadmath_support+set}" = set; then :
29022 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29024 ENABLE_LIBQUADMATH_SUPPORT
=yes
29027 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29029 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29034 # Specify what hash style to use by default.
29036 # Check whether --with-linker-hash-style was given.
29037 if test "${with_linker_hash_style+set}" = set; then :
29038 withval
=$with_linker_hash_style; case x
"$withval" in
29040 LINKER_HASH_STYLE
=sysv
29043 LINKER_HASH_STYLE
=gnu
29046 LINKER_HASH_STYLE
=both
29049 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29053 LINKER_HASH_STYLE
=''
29056 if test x
"${LINKER_HASH_STYLE}" != x
; then
29058 cat >>confdefs.h
<<_ACEOF
29059 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29064 # Specify what should be the default of -fdiagnostics-color option.
29066 # Check whether --with-diagnostics-color was given.
29067 if test "${with_diagnostics_color+set}" = set; then :
29068 withval
=$with_diagnostics_color; case x
"$withval" in
29070 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29073 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29076 DIAGNOSTICS_COLOR_DEFAULT
=-1
29079 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29082 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29086 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29090 cat >>confdefs.h
<<_ACEOF
29091 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29095 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29096 # of jit/jit-playback.c.
29097 cat > gcc-driver-name.h
<<EOF
29098 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29101 # Check whether --enable-default-pie was given.
29102 # Check whether --enable-default-pie was given.
29103 if test "${enable_default_pie+set}" = set; then :
29104 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29106 enable_default_pie
=no
29109 if test x
$enable_default_pie == xyes
; then
29111 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29116 # Check if -fno-PIE works.
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29118 $as_echo_n "checking for -fno-PIE option... " >&6; }
29119 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29120 $as_echo_n "(cached) " >&6
29122 saved_CXXFLAGS
="$CXXFLAGS"
29123 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29125 /* end confdefs.h. */
29126 int main(void) {return 0;}
29128 if ac_fn_cxx_try_compile
"$LINENO"; then :
29129 gcc_cv_c_no_fpie
=yes
29131 gcc_cv_c_no_fpie
=no
29133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29134 CXXFLAGS
="$saved_CXXFLAGS"
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29137 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29138 if test "$gcc_cv_c_no_fpie" = "yes"; then
29139 NO_PIE_CFLAGS
="-fno-PIE"
29143 # Check if -no-pie works.
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29145 $as_echo_n "checking for -no-pie option... " >&6; }
29146 if test "${gcc_cv_no_pie+set}" = set; then :
29147 $as_echo_n "(cached) " >&6
29149 saved_LDFLAGS
="$LDFLAGS"
29150 LDFLAGS
="$LDFLAGS -no-pie"
29151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29152 /* end confdefs.h. */
29153 int main(void) {return 0;}
29155 if ac_fn_cxx_try_link
"$LINENO"; then :
29160 rm -f core conftest.err conftest.
$ac_objext \
29161 conftest
$ac_exeext conftest.
$ac_ext
29162 LDFLAGS
="$saved_LDFLAGS"
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29165 $as_echo "$gcc_cv_no_pie" >&6; }
29166 if test "$gcc_cv_no_pie" = "yes"; then
29167 NO_PIE_FLAG
="-no-pie"
29171 # Check linker supports '-z bndplt'
29172 ld_bndplt_support
=no
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29174 $as_echo_n "checking linker -z bndplt option... " >&6; }
29175 if test x
"$ld_is_gold" = xno
; then
29176 if test $in_tree_ld = yes ; then
29177 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
29178 ld_bndplt_support
=yes
29180 elif test x
$gcc_cv_ld != x
; then
29181 # Check if linker supports -a bndplt option
29182 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29183 ld_bndplt_support
=yes
29187 if test x
"$ld_bndplt_support" = xyes
; then
29189 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29193 $as_echo "$ld_bndplt_support" >&6; }
29195 # Configure the subdirectories
29196 # AC_CONFIG_SUBDIRS($subdirs)
29198 # Create the Makefile
29199 # and configure language subdirectories
29200 ac_config_files
="$ac_config_files $all_outputs"
29203 ac_config_commands
="$ac_config_commands default"
29205 cat >confcache
<<\_ACEOF
29206 # This file is a shell script that caches the results of configure
29207 # tests run on this system so they can be shared between configure
29208 # scripts and configure runs, see configure's option --config-cache.
29209 # It is not useful on other systems. If it contains results you don't
29210 # want to keep, you may remove or edit it.
29212 # config.status only pays attention to the cache file if you give it
29213 # the --recheck option to rerun configure.
29215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29217 # following values.
29221 # The following way of writing the cache mishandles newlines in values,
29222 # but we know of no workaround that is simple, portable, and efficient.
29223 # So, we kill variables containing newlines.
29224 # Ultrix sh set writes to stderr and can't be redirected directly,
29225 # and sets the high bit in the cache file unless we assign to the vars.
29227 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29228 eval ac_val
=\$
$ac_var
29232 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29236 _ | IFS | as_nl
) ;; #(
29237 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29238 *) { eval $ac_var=; unset $ac_var;} ;;
29244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29245 *${as_nl}ac_space
=\
*)
29246 # `set' does not quote correctly, so add quotes: double-quote
29247 # substitution turns \\\\ into \\, and sed turns \\ into \.
29250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29253 # `set' quotes correctly as required by POSIX, so do not add quotes.
29254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29267 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29268 if test -w "$cache_file"; then
29269 test "x$cache_file" != "x/dev/null" &&
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29271 $as_echo "$as_me: updating cache $cache_file" >&6;}
29272 cat confcache
>$cache_file
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29275 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29280 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29281 # Let make expand exec_prefix.
29282 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29284 DEFS
=-DHAVE_CONFIG_H
29288 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29289 # 1. Remove the extension, and $U if already installed.
29290 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29291 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29292 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29293 # will be set to the directory where LIBOBJS objects are built.
29294 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29295 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29297 LIBOBJS
=$ac_libobjs
29299 LTLIBOBJS
=$ac_ltlibobjs
29304 : ${CONFIG_STATUS=./config.status}
29306 ac_clean_files_save
=$ac_clean_files
29307 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29309 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29311 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29313 # Generated by $as_me.
29314 # Run this file to recreate the current configuration.
29315 # Compiler output produced by configure, useful for debugging
29316 # configure, is in config.log if it exists.
29319 ac_cs_recheck=false
29322 SHELL=\${CONFIG_SHELL-$SHELL}
29325 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29326 ## -------------------- ##
29327 ## M4sh Initialization. ##
29328 ## -------------------- ##
29330 # Be more Bourne compatible
29331 DUALCASE
=1; export DUALCASE
# for MKS sh
29332 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29335 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29336 # is contrary to our usage. Disable this feature.
29337 alias -g '${1+"$@"}'='"$@"'
29338 setopt NO_GLOB_SUBST
29340 case `(set -o) 2>/dev/null` in #(
29352 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29353 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29356 # Prefer a ksh shell builtin over an external printf program on Solaris,
29357 # but without wasting forks for bash or zsh.
29358 if test -z "$BASH_VERSION$ZSH_VERSION" \
29359 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29360 as_echo='print
-r --'
29361 as_echo_n='print
-rn --'
29362 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29363 as_echo='printf %s
\n'
29364 as_echo_n='printf %s
'
29366 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29367 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29368 as_echo_n='/usr
/ucb
/echo -n'
29370 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29371 as_echo_n_body='eval
29375 expr "X$arg" : "X\\(.*\\)$as_nl";
29376 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29378 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29380 export as_echo_n_body
29381 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29383 export as_echo_body
29384 as_echo='sh
-c $as_echo_body as_echo
'
29387 # The user is always right.
29388 if test "${PATH_SEPARATOR+set}" != set; then
29390 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29391 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29398 # We need space, tab and new line, in precisely that order. Quoting is
29399 # there to prevent editors from complaining about space-tab.
29400 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29401 # splitting by setting IFS to empty value.)
29404 # Find who we are. Look in the path if we contain no directory separator.
29406 *[\\/]* ) as_myself=$0 ;;
29407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29408 for as_dir in $PATH
29411 test -z "$as_dir" && as_dir=.
29412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29418 # We did not find ourselves, most probably we were run as `sh COMMAND'
29419 # in which case we are not to be found in the path.
29420 if test "x$as_myself" = x
; then
29423 if test ! -f "$as_myself"; then
29424 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29428 # Unset variables that we do not need and which cause bugs (e.g. in
29429 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29430 # suppresses any "Segmentation fault" message there. '((' could
29431 # trigger a bug in pdksh 5.2.14.
29432 for as_var
in BASH_ENV ENV MAIL MAILPATH
29433 do eval test x\
${$as_var+set} = xset \
29434 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29447 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29450 # as_fn_error ERROR [LINENO LOG_FD]
29451 # ---------------------------------
29452 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29453 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29454 # script with status $?, using 1 if that was 0.
29457 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29459 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29460 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29462 $as_echo "$as_me: error: $1" >&2
29463 as_fn_exit
$as_status
29467 # as_fn_set_status STATUS
29468 # -----------------------
29469 # Set $? to STATUS, without forking.
29470 as_fn_set_status
()
29473 } # as_fn_set_status
29475 # as_fn_exit STATUS
29476 # -----------------
29477 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29481 as_fn_set_status
$1
29487 # Portably unset VAR.
29490 { eval $1=; unset $1;}
29492 as_unset
=as_fn_unset
29493 # as_fn_append VAR VALUE
29494 # ----------------------
29495 # Append the text in VALUE to the end of the definition contained in VAR. Take
29496 # advantage of any shell optimizations that allow amortized linear growth over
29497 # repeated appends, instead of the typical quadratic growth present in naive
29499 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29500 eval 'as_fn_append ()
29511 # as_fn_arith ARG...
29512 # ------------------
29513 # Perform arithmetic evaluation on the ARGs, and store the result in the
29514 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29515 # must be portable across $(()) and expr.
29516 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29517 eval 'as_fn_arith ()
29524 as_val
=`expr "$@" || test $? -eq 1`
29529 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29530 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29536 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29537 as_basename
=basename
29542 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29548 as_me
=`$as_basename -- "$0" ||
29549 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29550 X"$0" : 'X\(//\)$' \| \
29551 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29553 sed '/^.*\/\([^/][^/]*\)\/*$/{
29567 # Avoid depending upon Character Ranges.
29568 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29569 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29570 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29571 as_cr_digits
='0123456789'
29572 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29574 ECHO_C
= ECHO_N
= ECHO_T
=
29575 case `echo -n x` in #(((((
29577 case `echo 'xy\c'` in
29578 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29580 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29587 rm -f conf$$ conf$$.exe conf$$.
file
29588 if test -d conf$$.dir
; then
29589 rm -f conf$$.dir
/conf$$.
file
29592 mkdir conf$$.dir
2>/dev
/null
29594 if (echo >conf$$.
file) 2>/dev
/null
; then
29595 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29597 # ... but there are two gotchas:
29598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29600 # In both cases, we have to default to `cp -p'.
29601 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29603 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29611 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29612 rmdir conf$$.dir
2>/dev
/null
29617 # Create "$as_dir" as a directory, including parents if necessary.
29622 -*) as_dir
=.
/$as_dir;;
29624 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29628 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29629 *) as_qdir
=$as_dir;;
29631 as_dirs
="'$as_qdir' $as_dirs"
29632 as_dir
=`$as_dirname -- "$as_dir" ||
29633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29634 X"$as_dir" : 'X\(//\)[^/]' \| \
29635 X"$as_dir" : 'X\(//\)$' \| \
29636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29637 $as_echo X"$as_dir" |
29638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29642 /^X\(\/\/\)[^/].*/{
29655 test -d "$as_dir" && break
29657 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29658 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29662 if mkdir
-p .
2>/dev
/null
; then
29663 as_mkdir_p
='mkdir -p "$as_dir"'
29665 test -d .
/-p && rmdir .
/-p
29669 if test -x / >/dev
/null
2>&1; then
29670 as_test_x
='test -x'
29672 if ls -dL / >/dev
/null
2>&1; then
29679 if test -d "$1"; then
29685 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29686 ???[sx]*):;;*)false;;esac;fi
29690 as_executable_p
=$as_test_x
29692 # Sed expression to map a string onto a valid CPP name.
29693 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29695 # Sed expression to map a string onto a valid variable name.
29696 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29700 ## ----------------------------------- ##
29701 ## Main body of $CONFIG_STATUS script. ##
29702 ## ----------------------------------- ##
29704 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29707 # Save the log message, to keep $0 and so on meaningful, and to
29708 # report actual input values of CONFIG_FILES etc. instead of their
29709 # values after options handling.
29711 This file was extended by $as_me, which was
29712 generated by GNU Autoconf 2.64. Invocation command line was
29714 CONFIG_FILES = $CONFIG_FILES
29715 CONFIG_HEADERS = $CONFIG_HEADERS
29716 CONFIG_LINKS = $CONFIG_LINKS
29717 CONFIG_COMMANDS = $CONFIG_COMMANDS
29720 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29725 case $ac_config_files in *"
29726 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29729 case $ac_config_headers in *"
29730 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29735 # Files that config.status was made for.
29736 config_files="$ac_config_files"
29737 config_headers="$ac_config_headers"
29738 config_links="$ac_config_links"
29739 config_commands="$ac_config_commands"
29743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29745 \`$as_me' instantiates files and other configuration actions
29746 from templates according to the current configuration. Unless the files
29747 and actions are specified as TAGs, all are instantiated by default.
29749 Usage: $0 [OPTION]... [TAG]...
29751 -h, --help print this help, then exit
29752 -V, --version print version number and configuration settings, then exit
29753 -q, --quiet, --silent
29754 do not print progress messages
29755 -d, --debug don't remove temporary files
29756 --recheck update $as_me by reconfiguring in the same conditions
29757 --file=FILE[:TEMPLATE]
29758 instantiate the configuration file FILE
29759 --header=FILE[:TEMPLATE]
29760 instantiate the configuration header FILE
29762 Configuration files:
29765 Configuration headers:
29768 Configuration links:
29771 Configuration commands:
29774 Report bugs to the package provider."
29777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29780 configured by $0, generated by GNU Autoconf 2.64,
29781 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29783 Copyright (C) 2009 Free Software Foundation, Inc.
29784 This config.status script is free software; the Free Software Foundation
29785 gives unlimited permission to copy, distribute and modify it."
29790 test -n "\$AWK" || AWK=awk
29793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29794 # The default lists apply if the user does not specify any file.
29800 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29801 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29812 # Handling of the options.
29813 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29815 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29816 $as_echo "$ac_cs_version"; exit ;;
29817 --debug |
--debu |
--deb |
--de |
--d |
-d )
29819 --file |
--fil |
--fi |
--f )
29822 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29824 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29825 ac_need_defaults
=false
;;
29826 --header |
--heade |
--head |
--hea )
29829 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29831 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29832 ac_need_defaults
=false
;;
29834 # Conflict between --help and --header
29835 as_fn_error
"ambiguous option: \`$1'
29836 Try \`$0 --help' for more information.";;
29837 --help |
--hel |
-h )
29838 $as_echo "$ac_cs_usage"; exit ;;
29839 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29840 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29843 # This is an error.
29844 -*) as_fn_error
"unrecognized option: \`$1'
29845 Try \`$0 --help' for more information." ;;
29847 *) as_fn_append ac_config_targets
" $1"
29848 ac_need_defaults
=false
;;
29854 ac_configure_extra_args
=
29856 if $ac_cs_silent; then
29858 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29863 if \$ac_cs_recheck; then
29864 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29866 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29867 CONFIG_SHELL='$SHELL'
29868 export CONFIG_SHELL
29873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29878 ## Running $as_me. ##
29884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29888 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29889 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29896 # Handling of arguments.
29897 for ac_config_target
in $ac_config_targets
29899 case $ac_config_target in
29900 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29901 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29902 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29903 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29904 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29905 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29906 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29907 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29908 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29910 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29915 # If the user did not use the arguments to specify the items to instantiate,
29916 # then the envvar interface is used. Set only those that are not.
29917 # We use the long form for the default assignment because of an extremely
29918 # bizarre bug on SunOS 4.1.3.
29919 if $ac_need_defaults; then
29920 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29921 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29922 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29923 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29926 # Have a temporary directory for convenience. Make it in the build tree
29927 # simply because there is no reason against having it here, and in addition,
29928 # creating and moving files from /tmp can sometimes cause problems.
29929 # Hook for its removal unless debugging.
29930 # Note that there is a small window in which the directory will not be cleaned:
29931 # after its creation but before its name has been assigned to `$tmp'.
29935 trap 'exit_status=$?
29936 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29938 trap 'as_fn_exit 1' 1 2 13 15
29940 # Create a (secure) tmp directory for tmp files.
29943 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29944 test -n "$tmp" && test -d "$tmp"
29947 tmp
=.
/conf$$
-$RANDOM
29948 (umask 077 && mkdir
"$tmp")
29949 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29951 # Set up the scripts for CONFIG_FILES section.
29952 # No need to generate them if there are no CONFIG_FILES.
29953 # This happens for instance with `./config.status config.h'.
29954 if test -n "$CONFIG_FILES"; then
29956 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29957 ac_cs_awk_getline
=:
29958 ac_cs_awk_pipe_init
=
29959 ac_cs_awk_read_file
='
29960 while ((getline aline < (F[key])) > 0)
29963 ac_cs_awk_pipe_fini
=
29965 ac_cs_awk_getline
=false
29966 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29967 ac_cs_awk_read_file
='
29969 print "cat " F[key] " &&"
29970 '$ac_cs_awk_pipe_init
29971 # The final `:' finishes the AND list.
29972 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29974 ac_cr
=`echo X | tr X '\015'`
29975 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29976 # But we know of no other shell where ac_cr would be empty at this
29977 # point, so we can use a bashism as a fallback.
29978 if test "x$ac_cr" = x
; then
29979 eval ac_cr
=\$
\'\\r
\'
29981 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29982 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29985 ac_cs_awk_cr
=$ac_cr
29988 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29991 # Create commands to substitute file output variables.
29993 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29994 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29995 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29998 } >conf$
$files.sh
&&
29999 . .
/conf$
$files.sh ||
30000 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30001 rm -f conf$
$files.sh
30004 echo "cat >conf$$subs.awk <<_ACEOF" &&
30005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30007 } >conf$$subs.sh ||
30008 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30011 for ac_last_try in false false false false false :; do
30012 . ./conf$$subs.sh ||
30013 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30015 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30016 if test $ac_delim_n = $ac_delim_num; then
30018 elif $ac_last_try; then
30019 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30021 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30024 rm -f conf$$subs.sh
30026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30027 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30031 s/^/S["/; s
/!.
*/"]=/
30041 s/\(.\{148\}\).*/\1/
30043 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30048 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30055 s/\(.\{148\}\).*/\1/
30057 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30061 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30066 ' <conf$$subs.awk | sed '
30071 ' >>$CONFIG_STATUS || ac_write_fail=1
30072 rm -f conf$$subs.awk
30073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30075 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30076 for (key in S) S_is_set[key] = 1
30078 \$ac_cs_awk_pipe_init
30082 nfields = split(line, field, "@
")
30084 len = length(field[1])
30085 for (i = 2; i < nfields; i++) {
30087 keylen = length(key)
30088 if (S_is_set[key]) {
30090 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30091 len += length(value) + length(field[++i])
30096 if (nfields == 3 && !substed) {
30098 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30099 \$ac_cs_awk_read_file
30105 \$ac_cs_awk_pipe_fini
30108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30109 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30110 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30113 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30114 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30117 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30118 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30119 # trailing colons and then remove the whole line if VPATH becomes empty
30120 # (actually we leave an empty line to preserve line numbers).
30121 if test "x
$srcdir" = x.; then
30122 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30123 s/:*\$(srcdir):*/:/
30124 s/:*\${srcdir}:*/:/
30126 s/^\([^=]*=[ ]*\):*/\1/
30132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30133 fi # test -n "$CONFIG_FILES"
30135 # Set up the scripts for CONFIG_HEADERS section.
30136 # No need to generate them if there are no CONFIG_HEADERS.
30137 # This happens for instance with `./config.status Makefile'.
30138 if test -n "$CONFIG_HEADERS"; then
30139 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30143 # Transform confdefs.h into an awk script `defines.awk', embedded as
30144 # here-document in config.status, that substitutes the proper values into
30145 # config.h.in to produce config.h.
30147 # Create a delimiter string that does not exist in confdefs.h, to ease
30148 # handling of long lines.
30150 for ac_last_try in false false :; do
30151 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30152 if test -z "$ac_t"; then
30154 elif $ac_last_try; then
30155 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30157 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30161 # For the awk script, D is an array of macro values keyed by name,
30162 # likewise P contains macro parameters if any. Preserve backslash
30163 # newline sequences.
30165 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30167 s/.\{148\}/&'"$ac_delim"'/g
30170 s/^[ ]*#[ ]*define[ ][ ]*/ /
30177 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30179 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30184 D["\
1"]=" \
3\\\\\\n
"\\/p
30186 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30191 s/.\{148\}/&'"$ac_delim"'/g
30196 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30199 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30201 ' <confdefs.h | sed '
30202 s/'"$ac_delim"'/"\\\
30203 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30206 for (key in D) D_is_set[key] = 1
30209 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30211 split(line, arg, " ")
30212 if (arg[1] == "#") {
30216 defundef
= substr
(arg
[1], 2)
30219 split(mac1
, mac2
, "(") #)
30221 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30222 if (D_is_set
[macro
]) {
30223 # Preserve the white space surrounding the "#".
30224 print prefix
"define", macro P
[macro
] D
[macro
]
30227 # Replace #undef with comments. This is necessary, for example,
30228 # in the case of _POSIX_SOURCE, which is predefined and required
30229 # on some systems where configure will not decide to define it.
30230 if (defundef
== "undef") {
30231 print
"/*", prefix defundef
, macro
, "*/"
30239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30240 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30241 fi # test -n "$CONFIG_HEADERS"
30244 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30249 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30251 case $ac_mode$ac_tag in
30253 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30254 :[FH
]-) ac_tag
=-:-;;
30255 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30272 -) ac_f
="$tmp/stdin";;
30273 *) # Look for the file first in the build tree, then in the source tree
30274 # (if the path is not absolute). The absolute path cannot be DOS-style,
30275 # because $ac_f cannot contain `:'.
30279 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30281 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30283 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30284 as_fn_append ac_file_inputs
" '$ac_f'"
30287 # Let's still pretend it is `configure' which instantiates (i.e., don't
30288 # use $as_me), people would be surprised to read:
30289 # /* config.h. Generated by config.status. */
30290 configure_input
='Generated from '`
30291 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30293 if test x
"$ac_file" != x-
; then
30294 configure_input
="$ac_file. $configure_input"
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30296 $as_echo "$as_me: creating $ac_file" >&6;}
30298 # Neutralize special characters interpreted by sed in replacement strings.
30299 case $configure_input in #(
30300 *\
&* |
*\|
* |
*\\* )
30301 ac_sed_conf_input
=`$as_echo "$configure_input" |
30302 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30303 *) ac_sed_conf_input
=$configure_input;;
30307 *:-:* |
*:-) cat >"$tmp/stdin" \
30308 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30313 ac_dir
=`$as_dirname -- "$ac_file" ||
30314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30315 X"$ac_file" : 'X\(//\)[^/]' \| \
30316 X"$ac_file" : 'X\(//\)$' \| \
30317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30318 $as_echo X"$ac_file" |
30319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30323 /^X\(\/\/\)[^/].*/{
30336 as_dir
="$ac_dir"; as_fn_mkdir_p
30340 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30342 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30343 # A ".." for each directory in $ac_dir_suffix.
30344 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30345 case $ac_top_builddir_sub in
30346 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30347 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30350 ac_abs_top_builddir
=$ac_pwd
30351 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30352 # for backward compatibility:
30353 ac_top_builddir
=$ac_top_build_prefix
30356 .
) # We are building in place.
30358 ac_top_srcdir
=$ac_top_builddir_sub
30359 ac_abs_top_srcdir
=$ac_pwd ;;
30360 [\\/]* | ?
:[\\/]* ) # Absolute name.
30361 ac_srcdir
=$srcdir$ac_dir_suffix;
30362 ac_top_srcdir
=$srcdir
30363 ac_abs_top_srcdir
=$srcdir ;;
30364 *) # Relative name.
30365 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30366 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30367 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30369 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30381 # If the template does not know about datarootdir, expand it.
30382 # FIXME: This hack should be removed a few years after 2.60.
30383 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30395 *datarootdir
*) ac_datarootdir_seen
=yes;;
30396 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30401 ac_datarootdir_hack='
30402 s&@datadir@&$datadir&g
30403 s&@docdir@&$docdir&g
30404 s&@infodir@&$infodir&g
30405 s&@localedir@&$localedir&g
30406 s&@mandir@&$mandir&g
30407 s&\\\${datarootdir}&$datarootdir&g' ;;
30411 # Neutralize VPATH when `$srcdir' = `.'.
30412 # Shell code in configure.ac might set extrasub.
30413 # FIXME: do we really want to maintain this feature?
30414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30415 ac_sed_extra="$ac_vpsub
30418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30420 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30421 s|@configure_input@|
$ac_sed_conf_input|
;t t
30422 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30423 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30424 s
&@srcdir@
&$ac_srcdir&;t t
30425 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30426 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30427 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30428 s
&@builddir@
&$ac_builddir&;t t
30429 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30430 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30431 $ac_datarootdir_hack
30433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30434 if $ac_cs_awk_getline; then
30435 $AWK -f "$tmp/subs.
awk"
30437 $AWK -f "$tmp/subs.
awk" | $SHELL
30439 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30442 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30445 which seems to be undefined. Please make sure it is defined." >&5
30446 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30447 which seems to be undefined. Please make sure it is defined." >&2;}
30451 -) cat "$tmp/out" && rm -f "$tmp/out";;
30452 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30454 || as_fn_error "could not create $ac_file" "$LINENO" 5
30460 if test x"$ac_file" != x-; then
30462 $as_echo "/* $configure_input */" \
30463 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30464 } >"$tmp/config.h" \
30465 || as_fn_error "could not create $ac_file" "$LINENO" 5
30466 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30468 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30471 mv "$tmp/config.h" "$ac_file" \
30472 || as_fn_error "could not create $ac_file" "$LINENO" 5
30475 $as_echo "/* $configure_input */" \
30476 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30477 || as_fn_error "could not create -" "$LINENO" 5
30485 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30488 # Prefer the file from the source tree if names are identical.
30489 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30490 ac_source=$srcdir/$ac_source
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30494 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30496 if test ! -r "$ac_source"; then
30497 as_fn_error "$ac_source: file not found" "$LINENO" 5
30501 # Try a relative symlink, then a hard link, then a copy.
30503 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30504 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30506 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30507 ln "$ac_source" "$ac_file" 2>/dev/null ||
30508 cp -p "$ac_source" "$ac_file" ||
30509 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30512 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30513 $as_echo "$as_me: executing $ac_file commands" >&6;}
30518 case $ac_file$ac_mode in
30519 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30521 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30522 for lang in $subdirs c-family common
30524 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30526 "as":F) chmod +x as ;;
30527 "collect-ld":F) chmod +x collect-ld ;;
30528 "nm":F) chmod +x nm ;;
30530 case ${CONFIG_HEADERS} in
30531 *auto-host.h:config.in*)
30534 # Make sure all the subdirs exist.
30535 for d in $subdirs doc build common c-family
30537 test -d $d || mkdir $d
30547 ac_clean_files=$ac_clean_files_save
30549 test $ac_write_fail = 0 ||
30550 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30553 # configure is writing to config.log, and then calls config.status.
30554 # config.status does its own redirection, appending to config.log.
30555 # Unfortunately, on DOS this fails, as config.log is still kept open
30556 # by configure, so config.status won't be able to
write to it
; its
30557 # output is simply discarded. So we exec the FD to /dev/null,
30558 # effectively closing config.log, so it can be properly (re)opened and
30559 # appended to by config.status. When coming back to configure, we
30560 # need to make the FD available again.
30561 if test "$no_create" != yes; then
30563 ac_config_status_args
=
30564 test "$silent" = yes &&
30565 ac_config_status_args
="$ac_config_status_args --quiet"
30567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30570 # would make configure fail if this is the last instruction.
30571 $ac_cs_success || as_fn_exit $?
30573 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30575 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}