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
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
693 ORIGINAL_AS_FOR_TARGET
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
740 NATIVE_SYSTEM_HEADER_DIR
773 real_target_noncanonical
774 enable_as_accelerator
788 valgrind_path_defines
818 CROSS_SYSTEM_HEADER_DIR
819 TARGET_SYSTEM_ROOT_DEFINE
821 SYSROOT_CFLAGS_FOR_TARGET
867 program_transform_name
878 ac_subst_files
='option_includes
881 enable_option_checking
884 with_native_system_header_dir
889 enable_generated_files_in_srcdir
896 enable_build_format_warnings
900 enable_gather_detailed_mem_stats
901 enable_valgrind_annotations
921 enable_sjlj_exceptions
922 with_gcc_major_version_only
924 enable_leading_mingw64_underscores
927 enable_win32_registry
935 enable_gnu_indirect_function
936 enable_initfini_array
938 enable_fix_cortex_a53_835769
939 enable_fix_cortex_a53_843419
941 enable_gnu_unique_object
942 enable_linker_build_id
947 enable_maintainer_mode
949 enable_version_specific_runtime_libs
952 enable_libquadmath_support
953 with_linker_hash_style
954 with_diagnostics_color
957 ac_precious_vars
='build_alias
976 # Initialize some variables set by options.
978 ac_init_version
=false
979 ac_unrecognized_opts
=
981 # The variables have the same names as the options, with
982 # dashes changed to underlines.
990 program_transform_name
=s
,x
,x
,
998 # Installation directory options.
999 # These are left unexpanded so users can "make install exec_prefix=/foo"
1000 # and all the variables that are supposed to be based on exec_prefix
1001 # by default will actually change.
1002 # Use braces instead of parens because sh, perl, etc. also accept them.
1003 # (The list follows the same order as the GNU Coding Standards.)
1004 bindir
='${exec_prefix}/bin'
1005 sbindir
='${exec_prefix}/sbin'
1006 libexecdir
='${exec_prefix}/libexec'
1007 datarootdir
='${prefix}/share'
1008 datadir
='${datarootdir}'
1009 sysconfdir
='${prefix}/etc'
1010 sharedstatedir
='${prefix}/com'
1011 localstatedir
='${prefix}/var'
1012 includedir
='${prefix}/include'
1013 oldincludedir
='/usr/include'
1014 docdir
='${datarootdir}/doc/${PACKAGE}'
1015 infodir
='${datarootdir}/info'
1020 libdir
='${exec_prefix}/lib'
1021 localedir
='${datarootdir}/locale'
1022 mandir
='${datarootdir}/man'
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
1030 eval $ac_prev=\
$ac_option
1036 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040 # Accept the important Cygnus configure options, so we can diagnose typos.
1042 case $ac_dashdash$ac_option in
1046 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1048 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1049 bindir
=$ac_optarg ;;
1051 -build |
--build |
--buil |
--bui |
--bu)
1052 ac_prev
=build_alias
;;
1053 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1054 build_alias
=$ac_optarg ;;
1056 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1057 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1058 ac_prev
=cache_file
;;
1059 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1060 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1061 cache_file
=$ac_optarg ;;
1063 --config-cache |
-C)
1064 cache_file
=config.cache
;;
1066 -datadir |
--datadir |
--datadi |
--datad)
1068 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1069 datadir
=$ac_optarg ;;
1071 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1072 |
--dataroo |
--dataro |
--datar)
1073 ac_prev
=datarootdir
;;
1074 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1075 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1076 datarootdir
=$ac_optarg ;;
1078 -disable-* |
--disable-*)
1079 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1082 as_fn_error
"invalid feature name: $ac_useropt"
1083 ac_useropt_orig
=$ac_useropt
1084 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_
$ac_useropt"
1089 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1090 ac_unrecognized_sep
=', ';;
1092 eval enable_
$ac_useropt=no
;;
1094 -docdir |
--docdir |
--docdi |
--doc |
--do)
1096 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1097 docdir
=$ac_optarg ;;
1099 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1101 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1102 dvidir
=$ac_optarg ;;
1104 -enable-* |
--enable-*)
1105 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1108 as_fn_error
"invalid feature name: $ac_useropt"
1109 ac_useropt_orig
=$ac_useropt
1110 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "enable_
$ac_useropt"
1115 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1116 ac_unrecognized_sep
=', ';;
1118 eval enable_
$ac_useropt=\
$ac_optarg ;;
1120 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1121 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1122 |
--exec |
--exe |
--ex)
1123 ac_prev
=exec_prefix
;;
1124 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1125 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1126 |
--exec=* |
--exe=* |
--ex=*)
1127 exec_prefix
=$ac_optarg ;;
1129 -gas |
--gas |
--ga |
--g)
1130 # Obsolete; use --with-gas.
1133 -help |
--help |
--hel |
--he |
-h)
1134 ac_init_help
=long
;;
1135 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1136 ac_init_help
=recursive
;;
1137 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1138 ac_init_help
=short
;;
1140 -host |
--host |
--hos |
--ho)
1141 ac_prev
=host_alias
;;
1142 -host=* |
--host=* |
--hos=* |
--ho=*)
1143 host_alias
=$ac_optarg ;;
1145 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1147 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1149 htmldir
=$ac_optarg ;;
1151 -includedir |
--includedir |
--includedi |
--included |
--include \
1152 |
--includ |
--inclu |
--incl |
--inc)
1153 ac_prev
=includedir
;;
1154 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1155 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1156 includedir
=$ac_optarg ;;
1158 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1160 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1161 infodir
=$ac_optarg ;;
1163 -libdir |
--libdir |
--libdi |
--libd)
1165 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1166 libdir
=$ac_optarg ;;
1168 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1169 |
--libexe |
--libex |
--libe)
1170 ac_prev
=libexecdir
;;
1171 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1172 |
--libexe=* |
--libex=* |
--libe=*)
1173 libexecdir
=$ac_optarg ;;
1175 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1176 ac_prev
=localedir
;;
1177 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1178 localedir
=$ac_optarg ;;
1180 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1181 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1182 ac_prev
=localstatedir
;;
1183 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1184 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1185 localstatedir
=$ac_optarg ;;
1187 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1189 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1190 mandir
=$ac_optarg ;;
1192 -nfp |
--nfp |
--nf)
1193 # Obsolete; use --without-fp.
1196 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1197 |
--no-cr |
--no-c |
-n)
1200 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1201 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1204 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1205 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1206 |
--oldin |
--oldi |
--old |
--ol |
--o)
1207 ac_prev
=oldincludedir
;;
1208 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1209 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1210 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1211 oldincludedir
=$ac_optarg ;;
1213 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1215 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1216 prefix
=$ac_optarg ;;
1218 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1219 |
--program-pre |
--program-pr |
--program-p)
1220 ac_prev
=program_prefix
;;
1221 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1222 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1223 program_prefix
=$ac_optarg ;;
1225 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1226 |
--program-suf |
--program-su |
--program-s)
1227 ac_prev
=program_suffix
;;
1228 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1229 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1230 program_suffix
=$ac_optarg ;;
1232 -program-transform-name |
--program-transform-name \
1233 |
--program-transform-nam |
--program-transform-na \
1234 |
--program-transform-n |
--program-transform- \
1235 |
--program-transform |
--program-transfor \
1236 |
--program-transfo |
--program-transf \
1237 |
--program-trans |
--program-tran \
1238 |
--progr-tra |
--program-tr |
--program-t)
1239 ac_prev
=program_transform_name
;;
1240 -program-transform-name=* |
--program-transform-name=* \
1241 |
--program-transform-nam=* |
--program-transform-na=* \
1242 |
--program-transform-n=* |
--program-transform-=* \
1243 |
--program-transform=* |
--program-transfor=* \
1244 |
--program-transfo=* |
--program-transf=* \
1245 |
--program-trans=* |
--program-tran=* \
1246 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1247 program_transform_name
=$ac_optarg ;;
1249 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1251 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1252 pdfdir
=$ac_optarg ;;
1254 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1256 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1259 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1260 |
-silent |
--silent |
--silen |
--sile |
--sil)
1263 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1265 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1267 sbindir
=$ac_optarg ;;
1269 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1270 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1271 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1273 ac_prev
=sharedstatedir
;;
1274 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1275 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1276 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1278 sharedstatedir
=$ac_optarg ;;
1280 -site |
--site |
--sit)
1282 -site=* |
--site=* |
--sit=*)
1285 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1287 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1288 srcdir
=$ac_optarg ;;
1290 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1291 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1292 ac_prev
=sysconfdir
;;
1293 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1294 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1295 sysconfdir
=$ac_optarg ;;
1297 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1298 ac_prev
=target_alias
;;
1299 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1300 target_alias
=$ac_optarg ;;
1302 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1305 -version |
--version |
--versio |
--versi |
--vers |
-V)
1306 ac_init_version
=: ;;
1309 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1312 as_fn_error
"invalid package name: $ac_useropt"
1313 ac_useropt_orig
=$ac_useropt
1314 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1319 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1320 ac_unrecognized_sep
=', ';;
1322 eval with_
$ac_useropt=\
$ac_optarg ;;
1324 -without-* |
--without-*)
1325 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1328 as_fn_error
"invalid package name: $ac_useropt"
1329 ac_useropt_orig
=$ac_useropt
1330 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1335 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1336 ac_unrecognized_sep
=', ';;
1338 eval with_
$ac_useropt=no
;;
1341 # Obsolete; use --with-x.
1344 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1345 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1346 ac_prev
=x_includes
;;
1347 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1348 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1349 x_includes
=$ac_optarg ;;
1351 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1352 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1353 ac_prev
=x_libraries
;;
1354 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1355 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1356 x_libraries
=$ac_optarg ;;
1358 -*) as_fn_error
"unrecognized option: \`$ac_option'
1359 Try \`$0 --help' for more information."
1363 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1364 # Reject names that are not valid shell variable names.
1365 case $ac_envvar in #(
1366 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1367 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1369 eval $ac_envvar=\
$ac_optarg
1370 export $ac_envvar ;;
1373 # FIXME: should be removed in autoconf 3.0.
1374 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1375 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1376 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1377 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1383 if test -n "$ac_prev"; then
1384 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1385 as_fn_error
"missing argument to $ac_option"
1388 if test -n "$ac_unrecognized_opts"; then
1389 case $enable_option_checking in
1391 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1392 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1396 # Check all directory arguments for consistency.
1397 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398 datadir sysconfdir sharedstatedir localstatedir includedir \
1399 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400 libdir localedir mandir
1402 eval ac_val
=\$
$ac_var
1403 # Remove trailing slashes.
1406 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407 eval $ac_var=\
$ac_val;;
1409 # Be sure to have absolute directory names.
1411 [\\/$
]* | ?
:[\\/]* ) continue;;
1412 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1414 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1417 # There might be people who depend on the old broken behavior: `$host'
1418 # used to hold the argument of --host etc.
1419 # FIXME: To remove some day.
1422 target
=$target_alias
1424 # FIXME: To remove some day.
1425 if test "x$host_alias" != x
; then
1426 if test "x$build_alias" = x
; then
1427 cross_compiling
=maybe
1428 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1429 If a cross compiler is detected then cross compile mode will be used." >&2
1430 elif test "x$build_alias" != "x$host_alias"; then
1436 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1438 test "$silent" = yes && exec 6>/dev
/null
1441 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1442 ac_ls_di
=`ls -di .` &&
1443 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1444 as_fn_error
"working directory cannot be determined"
1445 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1446 as_fn_error
"pwd does not report name of working directory"
1449 # Find the source files, if location was not specified.
1450 if test -z "$srcdir"; then
1451 ac_srcdir_defaulted
=yes
1452 # Try the directory containing this script, then the parent directory.
1453 ac_confdir
=`$as_dirname -- "$as_myself" ||
1454 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1455 X"$as_myself" : 'X\(//\)[^/]' \| \
1456 X"$as_myself" : 'X\(//\)$' \| \
1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1458 $as_echo X"$as_myself" |
1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1481 ac_srcdir_defaulted
=no
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1485 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1487 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1489 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1499 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 for ac_var
in $ac_precious_vars; do
1502 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1504 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1509 # Report the --help message.
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1515 \`configure' configures this package to adapt to many kinds of systems.
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1522 Defaults for the options are specified in brackets.
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print \`checking...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for \`--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1546 For better control, use the options below.
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1573 --program-prefix=PREFIX prepend PREFIX to installed program names
1574 --program-suffix=SUFFIX append SUFFIX to installed program names
1575 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1578 --build=BUILD configure
for building on BUILD
[guessed
]
1579 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1580 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1584 if test -n "$ac_init_help"; then
1589 --disable-option-checking ignore unrecognized
--enable/--with options
1590 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1591 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1592 --enable-generated-files-in-srcdir
1593 put copies of generated files
in source dir intended
1594 for creating
source tarballs
for users without
1595 texinfo bison or flex
1596 --disable-largefile omit support
for large files
1597 --disable-build-format-warnings
1598 don
't use -Wformat while building GCC
1599 --enable-werror-always enable -Werror despite compiler version
1600 --enable-checking[=LIST]
1601 enable expensive run-time checks. With LIST, enable
1602 only specific categories of checks. Categories are:
1603 yes,no,all,none,release. Flags are:
1604 assert,df,extra,fold,gc,gcac,gimple,misc,
1605 rtlflag,rtl,runtime,tree,valgrind,types
1606 --enable-coverage[=LEVEL]
1607 enable compiler's code coverage collection. Use to
1608 measure compiler performance and
locate unused parts
1609 of the compiler. With LEVEL
, specify optimization.
1610 Values are opt
, noopt
, default is noopt
1611 --enable-gather-detailed-mem-stats
1612 enable detailed memory allocation stats gathering
1613 --enable-valgrind-annotations
1614 enable valgrind runtime interaction
1615 --enable-multilib enable library support
for multiple ABIs
1616 --enable-multiarch enable support
for multiarch paths
1617 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1618 --enable-decimal-float={no
,yes,bid
,dpd
}
1619 enable decimal float extension to C. Selecting
'bid'
1620 or
'dpd' choses
which decimal floating point format
1622 --enable-fixed-point enable fixed-point arithmetic extension to C
1623 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1625 --enable-tls enable or disable generation of tls code overriding
1626 the assembler check
for tls support
1627 --enable-vtable-verify enable vtable verification feature
1628 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1629 GNU Objective-C runtime
1630 --disable-shared don't provide a shared libgcc
1631 --enable-languages=LIST specify
which front-ends to build
1632 --disable-rpath do not hardcode runtime library paths
1633 --enable-sjlj-exceptions
1634 arrange to use setjmp
/longjmp exception handling
1635 --enable-secureplt enable -msecure-plt by default
for PowerPC
1636 --enable-leading-mingw64-underscores
1637 enable leading underscores on
64 bit mingw targets
1638 --enable-cld enable -mcld by default
for 32bit x86
1639 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1641 --disable-win32-registry
1642 disable lookup of installation paths
in the Registry
1644 --enable-win32-registry enable registry lookup
(default
)
1645 --enable-win32-registry=KEY
1646 use KEY instead of GCC version as the last portion
1648 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1649 --enable-static[=PKGS
] build static libraries
[default
=yes]
1650 --enable-fast-install[=PKGS
]
1651 optimize
for fast installation
[default
=yes]
1652 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1653 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1654 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1655 --enable-gnu-indirect-function
1656 enable the use of the @gnu_indirect_function to
1658 --enable-initfini-array use .init_array
/.fini_array sections
1659 --enable-comdat enable COMDAT group support
1661 --enable-fix-cortex-a53-835769
1662 enable workaround
for AArch64 Cortex-A53 erratum
1664 --disable-fix-cortex-a53-835769
1665 disable workaround
for AArch64 Cortex-A53 erratum
1669 --enable-fix-cortex-a53-843419
1670 enable workaround
for AArch64 Cortex-A53 erratum
1672 --disable-fix-cortex-a53-843419
1673 disable workaround
for AArch64 Cortex-A53 erratum
1676 --enable-gnu-unique-object
1677 enable the use of the @gnu_unique_object ELF
1678 extension on glibc systems
1679 --enable-linker-build-id
1680 compiler will always pass
--build-id to linker
1681 --enable-default-ssp enable Stack Smashing Protection as default
1682 --enable-maintainer-mode
1683 enable make rules and dependencies not useful
(and
1684 sometimes confusing
) to the casual installer
1685 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1686 thrashing on the build machine
1687 --enable-version-specific-runtime-libs
1688 specify that runtime libraries should be installed
1689 in a compiler-specific directory
1690 --enable-plugin enable plugin support
1691 --enable-host-shared build
host code as shared libraries
1692 --disable-libquadmath-support
1693 disable libquadmath support
for Fortran
1694 --enable-default-pie enable Position Independent Executable as default
1697 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1698 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1699 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1700 --with-local-prefix=DIR specifies directory to put
local include
1701 --with-native-system-header-dir=dir
1702 use dir as the directory to
look for standard
1703 system header files
in. Defaults to
/usr
/include.
1704 --with-build-sysroot=sysroot
1705 use sysroot as the system root during the build
1706 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1707 --with-gxx-include-dir=DIR
1708 specifies directory to put g
++ header files
1709 --with-cpp-install-dir=DIR
1710 install the user visible C preprocessor
in DIR
1711 (relative to PREFIX
) as well as PREFIX
/bin
1712 --with-gnu-ld arrange to work with GNU ld
1713 --with-ld arrange to use the specified ld
(full pathname
)
1714 --with-demangler-in-ld try to use demangler
in GNU ld
1715 --with-gnu-as arrange to work with GNU as
1716 --with-as arrange to use the specified as
(full pathname
)
1717 --with-stabs arrange to use stabs instead of
host debug format
1718 --with-dwarf2 force the default debug format to be DWARF
2
1719 --with-specs=SPECS add SPECS to driver command-line processing
1720 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1721 --with-bugurl=URL Direct users to URL to report a bug
1722 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1723 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1724 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1725 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1726 --with-gcc-major-version-only
1727 use only GCC major number in filesystem paths
1728 --with-pic try to use only PIC/non-PIC objects [default=use
1730 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1731 --with-plugin-ld=[ARG] specify the plugin linker
1732 --with-glibc-version=M.N
1733 assume GCC used with glibc version M.N or later
1734 --with-long-double-128 use 128-bit long double by default
1735 --with-gc={page,zone} this option is not supported anymore. It used to
1736 choose the garbage collection mechanism to use with
1738 --with-system-zlib use installed libz
1739 --with-linker-hash-style={sysv,gnu,both}
1740 specify the linker hash style
1741 --with-diagnostics-color={never,auto,auto-if-env,always}
1742 specify the default of -fdiagnostics-color option
1743 auto-if-env stands for -fdiagnostics-color=auto if
1744 GCC_COLOR environment variable is present and
1745 -fdiagnostics-color=never otherwise
1747 Some influential environment variables:
1748 CC C compiler command
1749 CFLAGS C compiler flags
1750 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1751 nonstandard directory <lib dir>
1752 LIBS libraries to pass to the linker, e.g. -l<library>
1753 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1754 you have headers in a nonstandard directory <include dir>
1755 CXX C++ compiler command
1756 CXXFLAGS C++ compiler flags
1757 CXXCPP C++ preprocessor
1759 GMPLIBS How to link GMP
1760 GMPINC How to find GMP include files
1761 ISLLIBS How to link isl
1762 ISLINC How to find isl include files
1764 Use these variables to override the choices made by `configure' or to
help
1765 it to
find libraries and programs with nonstandard names
/locations.
1767 Report bugs to the package provider.
1772 if test "$ac_init_help" = "recursive"; then
1773 # If there are subdirs, report their specific --help.
1774 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1775 test -d "$ac_dir" ||
1776 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1781 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1783 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1784 # A ".." for each directory in $ac_dir_suffix.
1785 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1786 case $ac_top_builddir_sub in
1787 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1788 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1791 ac_abs_top_builddir
=$ac_pwd
1792 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1793 # for backward compatibility:
1794 ac_top_builddir
=$ac_top_build_prefix
1797 .
) # We are building in place.
1799 ac_top_srcdir
=$ac_top_builddir_sub
1800 ac_abs_top_srcdir
=$ac_pwd ;;
1801 [\\/]* | ?
:[\\/]* ) # Absolute name.
1802 ac_srcdir
=$srcdir$ac_dir_suffix;
1803 ac_top_srcdir
=$srcdir
1804 ac_abs_top_srcdir
=$srcdir ;;
1806 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1807 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1808 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1810 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1812 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1813 # Check for guested configure.
1814 if test -f "$ac_srcdir/configure.gnu"; then
1816 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1817 elif test -f "$ac_srcdir/configure"; then
1819 $SHELL "$ac_srcdir/configure" --help=recursive
1821 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1827 test -n "$ac_init_help" && exit $ac_status
1828 if $ac_init_version; then
1831 generated by GNU Autoconf
2.64
1833 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1834 This configure
script is free software
; the Free Software Foundation
1835 gives unlimited permission to copy
, distribute and modify it.
1840 ## ------------------------ ##
1841 ## Autoconf initialization. ##
1842 ## ------------------------ ##
1844 # ac_fn_c_try_compile LINENO
1845 # --------------------------
1846 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_c_try_compile
()
1849 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1850 rm -f conftest.
$ac_objext
1851 if { { ac_try
="$ac_compile"
1853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_compile") 2>conftest.err
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest.$ac_objext; then :
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_try_compile
1882 # ac_fn_cxx_try_compile LINENO
1883 # ----------------------------
1884 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_cxx_try_compile ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext
1889 if { { ac_try="$ac_compile"
1891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1892 *) ac_try_echo
=$ac_try;;
1894 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_compile") 2>conftest.err
1898 if test -s conftest.err
; then
1899 grep -v '^ *+' conftest.err
>conftest.er1
1900 cat conftest.er1
>&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_cxx_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest.
$ac_objext; then :
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.
$ac_ext >&5
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1918 } # ac_fn_cxx_try_compile
1920 # ac_fn_cxx_try_cpp LINENO
1921 # ------------------------
1922 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_cpp
()
1925 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1926 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } >/dev/null && {
1942 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1943 test ! -s conftest.err
1947 $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955 } # ac_fn_cxx_try_cpp
1957 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1958 # ---------------------------------------------------------
1959 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1960 # the include files in INCLUDES and setting the cache variable VAR
1962 ac_fn_cxx_check_header_mongrel ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1975 # Is the header compilable?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1977 $as_echo_n "checking $2 usability... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1983 if ac_fn_cxx_try_compile "$LINENO"; then :
1984 ac_header_compiler=yes
1986 ac_header_compiler=no
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1990 $as_echo "$ac_header_compiler" >&6; }
1992 # Is the header present?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1994 $as_echo_n "checking $2 presence... " >&6; }
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1999 if ac_fn_cxx_try_cpp "$LINENO"; then :
2000 ac_header_preproc=yes
2002 ac_header_preproc=no
2004 rm -f conftest.err conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2006 $as_echo "$ac_header_preproc" >&6; }
2008 # So? What about this header?
2009 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2012 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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}: WARNING: $2: present but cannot be compiled" >&5
2018 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2020 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2022 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2024 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2034 eval "$3=\$ac_header_compiler"
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042 } # ac_fn_cxx_check_header_mongrel
2044 # ac_fn_cxx_try_run LINENO
2045 # ------------------------
2046 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2047 # that executables *can* be run.
2048 ac_fn_cxx_try_run ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if { { ac_try="$ac_link"
2053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2054 *) ac_try_echo
=$ac_try;;
2056 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_link") 2>&5
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2062 { { case "(($ac_try" in
2063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_try") 2>&5
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; }; }; then :
2074 $as_echo "$as_me: program exited with status $ac_status" >&5
2075 $as_echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2078 ac_retval=$ac_status
2080 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084 } # ac_fn_cxx_try_run
2086 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2087 # ---------------------------------------------------------
2088 # Tests whether HEADER exists and can be compiled using the include files in
2089 # INCLUDES, setting the cache variable VAR accordingly.
2090 ac_fn_cxx_check_header_compile ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096 $as_echo_n "(cached) " >&6
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2103 if ac_fn_cxx_try_compile "$LINENO"; then :
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2115 } # ac_fn_cxx_check_header_compile
2117 # ac_fn_c_try_cpp LINENO
2118 # ----------------------
2119 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if { { ac_try="$ac_cpp conftest.$ac_ext"
2125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2126 *) ac_try_echo
=$ac_try;;
2128 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 $as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2132 if test -s conftest.err
; then
2133 grep -v '^ *+' conftest.err
>conftest.er1
2134 cat conftest.er1
>&5
2135 mv -f conftest.er1 conftest.err
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } >/dev
/null
&& {
2139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2140 test ! -s conftest.err
2144 $as_echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.
$ac_ext >&5
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2154 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2155 # ----------------------------------------------
2156 # Tries to find the compile-time value of EXPR in a program that includes
2157 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2159 ac_fn_cxx_compute_int
()
2161 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2162 if test "$cross_compiling" = yes; then
2163 # Depending upon the size, compute the lo and hi bounds.
2164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2170 static int test_array [1 - 2 * !(($2) >= 0)];
2177 if ac_fn_cxx_try_compile
"$LINENO"; then :
2180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2186 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 if ac_fn_cxx_try_compile
"$LINENO"; then :
2194 ac_hi
=$ac_mid; break
2196 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2197 if test $ac_lo -le $ac_mid; then
2201 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2212 static int test_array [1 - 2 * !(($2) < 0)];
2219 if ac_fn_cxx_try_compile
"$LINENO"; then :
2222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2228 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2235 if ac_fn_cxx_try_compile
"$LINENO"; then :
2236 ac_lo
=$ac_mid; break
2238 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2239 if test $ac_mid -le $ac_hi; then
2243 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2253 # Binary search between lo and hi bounds.
2254 while test "x$ac_lo" != "x$ac_hi"; do
2255 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2262 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2269 if ac_fn_cxx_try_compile
"$LINENO"; then :
2272 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2277 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2284 static long int longval () { return $2; }
2285 static unsigned long int ulongval () { return $2; }
2292 FILE *f = fopen ("conftest.val", "w");
2297 long int i = longval ();
2300 fprintf (f, "%ld", i);
2304 unsigned long int i = ulongval ();
2307 fprintf (f, "%lu", i);
2309 /* Do not output a trailing newline, as this causes \r\n confusion
2310 on some platforms. */
2311 return ferror (f) || fclose (f) != 0;
2317 if ac_fn_cxx_try_run
"$LINENO"; then :
2318 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2322 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2323 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2330 } # ac_fn_cxx_compute_int
2332 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2333 # ---------------------------------------------
2334 # Tests whether TYPE exists after having included INCLUDES, setting cache
2335 # variable VAR accordingly.
2336 ac_fn_cxx_check_type
()
2338 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2357 if ac_fn_cxx_try_compile
"$LINENO"; then :
2358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2370 if ac_fn_cxx_try_compile
"$LINENO"; then :
2375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2384 } # ac_fn_cxx_check_type
2386 # ac_fn_c_find_intX_t LINENO BITS VAR
2387 # -----------------------------------
2388 # Finds a signed integer type with width BITS, setting cache variable VAR
2390 ac_fn_c_find_intX_t
()
2392 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2394 $as_echo_n "checking for int$2_t... " >&6; }
2395 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2396 $as_echo_n "(cached) " >&6
2399 for ac_type
in int
$2_t 'int' 'long int' \
2400 'long long int' 'short int' 'signed char'; do
2401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h. */
2403 $ac_includes_default
2407 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2414 if ac_fn_cxx_try_compile
"$LINENO"; then :
2415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $ac_includes_default
2421 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2422 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2429 if ac_fn_cxx_try_compile
"$LINENO"; then :
2436 eval "$3=\$ac_type" ;;
2439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2443 if test "x$as_val" = x
""no
; then :
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2455 } # ac_fn_c_find_intX_t
2457 # ac_fn_cxx_try_link LINENO
2458 # -------------------------
2459 # Try to link conftest.$ac_ext, and return whether this succeeded.
2460 ac_fn_cxx_try_link
()
2462 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2463 rm -f conftest.
$ac_objext conftest
$ac_exeext
2464 if { { ac_try
="$ac_link"
2466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 $as_echo "$ac_try_echo"; } >&5
2471 (eval "$ac_link") 2>conftest.err
2473 if test -s conftest.err; then
2474 grep -v '^ *+' conftest.err >conftest.er1
2475 cat conftest.er1 >&5
2476 mv -f conftest.er1 conftest.err
2478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2479 test $ac_status = 0; } && {
2480 test -z "$ac_cxx_werror_flag" ||
2481 test ! -s conftest.err
2482 } && test -s conftest$ac_exeext && {
2483 test "$cross_compiling" = yes ||
2484 $as_test_x conftest$ac_exeext
2488 $as_echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2493 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2494 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2495 # interfere with the next link command; also delete a directory that is
2496 # left behind by Apple's compiler. We do this before executing the actions.
2497 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2501 } # ac_fn_cxx_try_link
2503 # ac_fn_c_find_uintX_t LINENO BITS VAR
2504 # ------------------------------------
2505 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2507 ac_fn_c_find_uintX_t ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2511 $as_echo_n "checking for uint$2_t... " >&6; }
2512 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2513 $as_echo_n "(cached) " >&6
2516 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2517 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2520 $ac_includes_default
2524 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2531 if ac_fn_cxx_try_compile "$LINENO"; then :
2536 eval "$3=\$ac_type" ;;
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 if test "x$as_val" = x""no; then :
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 } # ac_fn_c_find_uintX_t
2555 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2556 # ------------------------------------------------
2557 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2558 ac_fn_cxx_check_header_preproc ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2570 if ac_fn_cxx_try_cpp "$LINENO"; then :
2575 rm -f conftest.err conftest.$ac_ext
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579 $as_echo "$ac_res" >&6; }
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 } # ac_fn_cxx_check_header_preproc
2584 # ac_fn_cxx_check_func LINENO FUNC VAR
2585 # ------------------------------------
2586 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2587 ac_fn_cxx_check_func ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2599 #define $2 innocuous_$2
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char $2 (); below.
2603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 <limits.h> exists even on freestanding compilers. */
2607 # include <limits.h>
2609 # include <assert.h>
2614 /* Override any GCC internal prototype to avoid an error.
2615 Use char because int might match the return type of a GCC
2616 builtin and then its argument prototype would still apply. */
2621 /* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624 #if defined __stub_$2 || defined __stub___$2
2636 if ac_fn_cxx_try_link "$LINENO"; then :
2641 rm -f core conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_cxx_check_func
2651 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2652 # --------------------------------------
2653 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2654 ac_fn_cxx_check_decl ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2658 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2660 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2662 $as_echo_n "(cached) " >&6
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2670 #ifndef $as_decl_name
2672 (void) $as_decl_use;
2674 (void) $as_decl_name;
2682 if ac_fn_cxx_try_compile "$LINENO"; then :
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2694 } # ac_fn_cxx_check_decl
2696 # ac_fn_c_try_link LINENO
2697 # -----------------------
2698 # Try to link conftest.$ac_ext, and return whether this succeeded.
2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702 rm -f conftest.$ac_objext conftest$ac_exeext
2703 if { { ac_try="$ac_link"
2705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2706 *) ac_try_echo
=$ac_try;;
2708 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709 $as_echo "$ac_try_echo"; } >&5
2710 (eval "$ac_link") 2>conftest.err
2712 if test -s conftest.err
; then
2713 grep -v '^ *+' conftest.err
>conftest.er1
2714 cat conftest.er1
>&5
2715 mv -f conftest.er1 conftest.err
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718 test $ac_status = 0; } && {
2719 test -z "$ac_c_werror_flag" ||
2720 test ! -s conftest.err
2721 } && test -s conftest
$ac_exeext && {
2722 test "$cross_compiling" = yes ||
2723 $as_test_x conftest
$ac_exeext
2727 $as_echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.
$ac_ext >&5
2732 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2733 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2734 # interfere with the next link command; also delete a directory that is
2735 # left behind by Apple's compiler. We do this before executing the actions.
2736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2737 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2740 } # ac_fn_c_try_link
2742 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2743 # ----------------------------------------------
2744 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2745 ac_fn_c_check_header_preproc
()
2747 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749 $as_echo_n "checking for $2... " >&6; }
2750 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2751 $as_echo_n "(cached) " >&6
2753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2757 if ac_fn_c_try_cpp
"$LINENO"; then :
2762 rm -f conftest.err conftest.
$ac_ext
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2766 $as_echo "$ac_res" >&6; }
2767 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2769 } # ac_fn_c_check_header_preproc
2771 # ac_fn_c_check_func LINENO FUNC VAR
2772 # ----------------------------------
2773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2774 ac_fn_c_check_func
()
2776 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2778 $as_echo_n "checking for $2... " >&6; }
2779 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2780 $as_echo_n "(cached) " >&6
2782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2786 #define $2 innocuous_$2
2788 /* System header to define __stub macros and hopefully few prototypes,
2789 which can conflict with char $2 (); below.
2790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2791 <limits.h> exists even on freestanding compilers. */
2794 # include <limits.h>
2796 # include <assert.h>
2801 /* Override any GCC internal prototype to avoid an error.
2802 Use char because int might match the return type of a GCC
2803 builtin and then its argument prototype would still apply. */
2808 /* The GNU C library defines this for functions which it implements
2809 to always fail with ENOSYS. Some functions are actually named
2810 something starting with __ and the normal name is an alias. */
2811 #if defined __stub_$2 || defined __stub___$2
2823 if ac_fn_c_try_link
"$LINENO"; then :
2828 rm -f core conftest.err conftest.
$ac_objext \
2829 conftest
$ac_exeext conftest.
$ac_ext
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2833 $as_echo "$ac_res" >&6; }
2834 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2836 } # ac_fn_c_check_func
2837 cat >config.log
<<_ACEOF
2838 This file contains any messages produced by compilers while
2839 running configure, to aid debugging if configure makes a mistake.
2841 It was created by $as_me, which was
2842 generated by GNU Autoconf 2.64. Invocation command line was
2854 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2855 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2856 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2857 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2858 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2860 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2861 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2863 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2864 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2865 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2866 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2867 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2868 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2869 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir
=.
2878 $as_echo "PATH: $as_dir"
2894 # Keep a trace of the command line.
2895 # Strip out --no-create and --no-recursion so they do not pile up.
2896 # Strip out --silent because we don't want to record it for future runs.
2897 # Also quote any args containing shell meta-characters.
2898 # Make two passes to allow for proper duplicate-argument suppression.
2902 ac_must_keep_next
=false
2908 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2909 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2910 |
-silent |
--silent |
--silen |
--sile |
--sil)
2913 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2916 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2918 as_fn_append ac_configure_args1
" '$ac_arg'"
2919 if test $ac_must_keep_next = true
; then
2920 ac_must_keep_next
=false
# Got value, back to normal.
2923 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2924 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2925 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2926 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2927 case "$ac_configure_args0 " in
2928 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2931 -* ) ac_must_keep_next
=true
;;
2934 as_fn_append ac_configure_args
" '$ac_arg'"
2939 { ac_configure_args0
=; unset ac_configure_args0
;}
2940 { ac_configure_args1
=; unset ac_configure_args1
;}
2942 # When interrupted or exit'd, cleanup temporary files, and complete
2943 # config.log. We remove comments because anyway the quotes in there
2944 # would cause problems or look ugly.
2945 # WARNING: Use '\'' to represent an apostrophe within the trap.
2946 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2947 trap 'exit_status=$?
2948 # Save into config.log some information that might help in debugging.
2953 ## ---------------- ##
2954 ## Cache variables. ##
2955 ## ---------------- ##
2958 # The following way of writing the cache mishandles newlines in values,
2960 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2961 eval ac_val=\$$ac_var
2965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2969 _ | IFS | as_nl) ;; #(
2970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2971 *) { eval $ac_var=; unset $ac_var;} ;;
2976 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2977 *${as_nl}ac_space=\ *)
2979 "s/'\''/'\''\\\\'\'''\''/g;
2980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2991 ## ----------------- ##
2992 ## Output variables. ##
2993 ## ----------------- ##
2996 for ac_var in $ac_subst_vars
2998 eval ac_val=\$$ac_var
3000 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3002 $as_echo "$ac_var='\''$ac_val'\''"
3006 if test -n "$ac_subst_files"; then
3008 ## ------------------- ##
3009 ## File substitutions. ##
3010 ## ------------------- ##
3013 for ac_var
in $ac_subst_files
3015 eval ac_val
=\$
$ac_var
3017 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3019 $as_echo "$ac_var='\''$ac_val'\''"
3024 if test -s confdefs.h; then
3034 test "$ac_signal" != 0 &&
3035 $as_echo "$as_me: caught signal $ac_signal"
3036 $as_echo "$as_me: exit $exit_status"
3038 rm -f core *.core core.conftest.* &&
3039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3042 for ac_signal
in 1 2 13 15; do
3043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3048 rm -f -r conftest
* confdefs.h
3050 $as_echo "/* confdefs.h */" > confdefs.h
3052 # Predefined preprocessor variables.
3054 cat >>confdefs.h
<<_ACEOF
3055 #define PACKAGE_NAME "$PACKAGE_NAME"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3062 cat >>confdefs.h
<<_ACEOF
3063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3066 cat >>confdefs.h
<<_ACEOF
3067 #define PACKAGE_STRING "$PACKAGE_STRING"
3070 cat >>confdefs.h
<<_ACEOF
3071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3074 cat >>confdefs.h
<<_ACEOF
3075 #define PACKAGE_URL "$PACKAGE_URL"
3079 # Let the site file select an alternate cache file if it wants to.
3080 # Prefer an explicitly selected file to automatically selected ones.
3083 if test -n "$CONFIG_SITE"; then
3084 ac_site_file1
=$CONFIG_SITE
3085 elif test "x$prefix" != xNONE
; then
3086 ac_site_file1
=$prefix/share
/config.site
3087 ac_site_file2
=$prefix/etc
/config.site
3089 ac_site_file1
=$ac_default_prefix/share
/config.site
3090 ac_site_file2
=$ac_default_prefix/etc
/config.site
3092 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3094 test "x$ac_site_file" = xNONE
&& continue
3095 if test -r "$ac_site_file"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3097 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3098 sed 's/^/| /' "$ac_site_file" >&5
3103 if test -r "$cache_file"; then
3104 # Some versions of bash will fail to source /dev/null (special
3105 # files actually), so we avoid doing that.
3106 if test -f "$cache_file"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3108 $as_echo "$as_me: loading cache $cache_file" >&6;}
3110 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3111 *) .
"./$cache_file";;
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3116 $as_echo "$as_me: creating cache $cache_file" >&6;}
3120 # Check that the precious variables saved in the cache have kept the same
3122 ac_cache_corrupted
=false
3123 for ac_var
in $ac_precious_vars; do
3124 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3125 eval ac_new_set
=\
$ac_env_${ac_var}_set
3126 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3127 eval ac_new_val
=\
$ac_env_${ac_var}_value
3128 case $ac_old_set,$ac_new_set in
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3132 ac_cache_corrupted
=: ;;
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3135 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3136 ac_cache_corrupted
=: ;;
3139 if test "x$ac_old_val" != "x$ac_new_val"; then
3140 # differences in whitespace do not lead to failure.
3141 ac_old_val_w
=`echo x $ac_old_val`
3142 ac_new_val_w
=`echo x $ac_new_val`
3143 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3145 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3146 ac_cache_corrupted
=:
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3149 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3150 eval $ac_var=\
$ac_old_val
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3153 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3155 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3158 # Pass precious variables to config.status.
3159 if test "$ac_new_set" = set; then
3161 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3162 *) ac_arg
=$ac_var=$ac_new_val ;;
3164 case " $ac_configure_args " in
3165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3166 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3170 if $ac_cache_corrupted; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3174 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3175 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3177 ## -------------------- ##
3178 ## Main body of script. ##
3179 ## -------------------- ##
3182 ac_cpp
='$CPP $CPPFLAGS'
3183 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3192 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3195 gcc_version
=`cat $srcdir/BASE-VER`
3197 # Determine the host, build, and target systems
3199 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3200 for ac_t
in install-sh
install.sh shtool
; do
3201 if test -f "$ac_dir/$ac_t"; then
3203 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3208 if test -z "$ac_aux_dir"; then
3209 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3212 # These three variables are undocumented and unsupported,
3213 # and are intended to be withdrawn in a future Autoconf release.
3214 # They can cause serious problems if a builder's source tree is in a directory
3215 # whose full name contains unusual characters.
3216 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3217 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3218 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3221 # Make sure we can run config.sub.
3222 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3223 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3226 $as_echo_n "checking build system type... " >&6; }
3227 if test "${ac_cv_build+set}" = set; then :
3228 $as_echo_n "(cached) " >&6
3230 ac_build_alias
=$build_alias
3231 test "x$ac_build_alias" = x
&&
3232 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3233 test "x$ac_build_alias" = x
&&
3234 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3235 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3236 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3240 $as_echo "$ac_cv_build" >&6; }
3241 case $ac_cv_build in
3243 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3246 ac_save_IFS
=$IFS; IFS
='-'
3252 # Remember, the first character of IFS is used to create $*,
3253 # except with old shells:
3256 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3260 $as_echo_n "checking host system type... " >&6; }
3261 if test "${ac_cv_host+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3264 if test "x$host_alias" = x
; then
3265 ac_cv_host
=$ac_cv_build
3267 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3268 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3273 $as_echo "$ac_cv_host" >&6; }
3276 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3279 ac_save_IFS
=$IFS; IFS
='-'
3285 # Remember, the first character of IFS is used to create $*,
3286 # except with old shells:
3289 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3293 $as_echo_n "checking target system type... " >&6; }
3294 if test "${ac_cv_target+set}" = set; then :
3295 $as_echo_n "(cached) " >&6
3297 if test "x$target_alias" = x
; then
3298 ac_cv_target
=$ac_cv_host
3300 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3301 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3306 $as_echo "$ac_cv_target" >&6; }
3307 case $ac_cv_target in
3309 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3311 target
=$ac_cv_target
3312 ac_save_IFS
=$IFS; IFS
='-'
3318 # Remember, the first character of IFS is used to create $*,
3319 # except with old shells:
3322 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3325 # The aliases save the names the user supplied, while $host etc.
3326 # will get canonicalized.
3327 test -n "$target_alias" &&
3328 test "$program_prefix$program_suffix$program_transform_name" = \
3330 program_prefix
=${target_alias}-
3332 # Determine the noncanonical host name, for Ada.
3333 case ${build_alias} in
3334 "") build_noncanonical
=${build} ;;
3335 *) build_noncanonical
=${build_alias} ;;
3338 case ${host_alias} in
3339 "") host_noncanonical
=${build_noncanonical} ;;
3340 *) host_noncanonical
=${host_alias} ;;
3346 # Determine the noncanonical target name, for directory use.
3347 case ${target_alias} in
3348 "") target_noncanonical
=${host_noncanonical} ;;
3349 *) target_noncanonical
=${target_alias} ;;
3355 # Used for constructing correct paths for offload compilers.
3356 real_target_noncanonical
=${target_noncanonical}
3359 # Determine the target- and build-specific subdirectories
3361 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3362 # have matching libraries, they should use host libraries: Makefile.tpl
3363 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3364 # However, they still use the build modules, because the corresponding
3365 # host modules (e.g. bison) are only built for the host when bootstrap
3367 # - build_subdir is where we find build modules, and never changes.
3368 # - build_libsubdir is where we find build libraries, and can be overridden.
3370 # Prefix 'build-' so this never conflicts with target_subdir.
3371 build_subdir
="build-${build_noncanonical}"
3373 # Check whether --with-build-libsubdir was given.
3374 if test "${with_build_libsubdir+set}" = set; then :
3375 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3377 build_libsubdir
="$build_subdir"
3380 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3381 if ( test $srcdir = .
&& test -d gcc
) \
3382 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3383 host_subdir
="host-${host_noncanonical}"
3388 target_subdir
=${target_noncanonical}
3391 # Set program_transform_name
3392 test "$program_prefix" != NONE
&&
3393 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3394 # Use a double $ so make ignores it.
3395 test "$program_suffix" != NONE
&&
3396 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3397 # Double any \ or $.
3398 # By default was `s,x,x', remove it if useless.
3399 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3400 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3403 # Check for bogus environment variables.
3404 # Test if LIBRARY_PATH contains the notation for the current directory
3405 # since this would lead to problems installing/building glibc.
3406 # LIBRARY_PATH contains the current directory if one of the following
3408 # - one of the terminals (":" and ";") is the first or last sign
3409 # - two terminals occur directly after each other
3410 # - the path contains an element with a dot in it
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3412 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3413 case ${LIBRARY_PATH} in
3414 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3415 library_path_setting
="contains current directory"
3418 library_path_setting
="ok"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3422 $as_echo "$library_path_setting" >&6; }
3423 if test "$library_path_setting" != "ok"; then
3425 *** LIBRARY_PATH shouldn't contain the current directory when
3426 *** building gcc. Please change the environment variable
3427 *** and run configure again." "$LINENO" 5
3430 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3431 # since this would lead to problems installing/building glibc.
3432 # GCC_EXEC_PREFIX contains the current directory if one of the following
3434 # - one of the terminals (":" and ";") is the first or last sign
3435 # - two terminals occur directly after each other
3436 # - the path contains an element with a dot in it
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3438 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3439 case ${GCC_EXEC_PREFIX} in
3440 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3441 gcc_exec_prefix_setting
="contains current directory"
3444 gcc_exec_prefix_setting
="ok"
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3448 $as_echo "$gcc_exec_prefix_setting" >&6; }
3449 if test "$gcc_exec_prefix_setting" != "ok"; then
3451 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3452 *** building gcc. Please change the environment variable
3453 *** and run configure again." "$LINENO" 5
3460 # Specify the local prefix
3463 # Check whether --with-local-prefix was given.
3464 if test "${with_local_prefix+set}" = set; then :
3465 withval
=$with_local_prefix; case "${withval}" in
3466 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3468 *) local_prefix
=$with_local_prefix ;;
3473 # Default local prefix if it is empty
3474 if test x
$local_prefix = x
; then
3475 local_prefix
=/usr
/local
3479 # Check whether --with-native-system-header-dir was given.
3480 if test "${with_native_system_header_dir+set}" = set; then :
3481 withval
=$with_native_system_header_dir;
3482 case ${with_native_system_header_dir} in
3483 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3484 /* |
[A-Za-z
]:[\\/]*) ;;
3485 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3487 configured_native_system_header_dir
="${withval}"
3490 configured_native_system_header_dir
=
3495 # Check whether --with-build-sysroot was given.
3496 if test "${with_build_sysroot+set}" = set; then :
3497 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3498 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3501 SYSROOT_CFLAGS_FOR_TARGET
=
3506 if test "x$prefix" = xNONE
; then
3507 test_prefix
=/usr
/local
3511 if test "x$exec_prefix" = xNONE
; then
3512 test_exec_prefix
=$test_prefix
3514 test_exec_prefix
=$exec_prefix
3518 # Check whether --with-sysroot was given.
3519 if test "${with_sysroot+set}" = set; then :
3520 withval
=$with_sysroot;
3521 case ${with_sysroot} in
3523 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3525 case ${with_sysroot} in
3526 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3527 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3530 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3531 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3533 case ${TARGET_SYSTEM_ROOT} in
3534 "${test_prefix}"|
"${test_prefix}/"*|\
3535 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3536 '${prefix}'|
'${prefix}/'*|\
3537 '${exec_prefix}'|
'${exec_prefix}/'*)
3538 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3539 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3546 TARGET_SYSTEM_ROOT_DEFINE
=
3547 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3555 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3556 # passed in by the toplevel make and thus we'd get different behavior
3557 # depending on where we built the sources.
3558 gcc_gxx_include_dir
=
3559 # Specify the g++ header file directory
3561 # Check whether --with-gxx-include-dir was given.
3562 if test "${with_gxx_include_dir+set}" = set; then :
3563 withval
=$with_gxx_include_dir; case "${withval}" in
3564 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3566 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3571 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3572 if test x
${gcc_gxx_include_dir} = x
; then
3573 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3574 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3576 libstdcxx_incdir
='include/c++/$(version)'
3577 if test x
$host != x
$target; then
3578 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3580 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3584 gcc_gxx_include_dir_add_sysroot
=0
3585 if test "${with_sysroot+set}" = set; then
3586 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3587 if test "${gcc_gxx_without_sysroot}"; then
3588 if test x
${with_sysroot} != x
/; then
3589 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3591 gcc_gxx_include_dir_add_sysroot
=1
3596 # Check whether --with-cpp_install_dir was given.
3597 if test "${with_cpp_install_dir+set}" = set; then :
3598 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3599 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3600 elif test x
$withval != xno
; then
3601 cpp_install_dir
=$withval
3606 # We would like to our source tree to be readonly. However when releases or
3607 # pre-releases are generated, the flex/bison generated files as well as the
3608 # various formats of manuals need to be included along with the rest of the
3609 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3613 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3614 # Check whether --enable-generated-files-in-srcdir was given.
3615 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3616 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3618 generated_files_in_srcdir
=no
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3623 $as_echo "$generated_files_in_srcdir" >&6; }
3625 if test "$generated_files_in_srcdir" = "yes"; then
3632 # -------------------
3633 # Find default linker
3634 # -------------------
3638 # Check whether --with-gnu-ld was given.
3639 if test "${with_gnu_ld+set}" = set; then :
3640 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3647 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3651 # With pre-defined ld
3653 # Check whether --with-ld was given.
3654 if test "${with_ld+set}" = set; then :
3655 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3658 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3659 if test ! -x "$DEFAULT_LINKER"; then
3660 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3661 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3663 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3667 cat >>confdefs.h
<<_ACEOF
3668 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3674 $as_echo_n "checking whether a default linker was specified... " >&6; }
3675 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3676 if test x
"$gnu_ld_flag" = x
"no"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3678 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3681 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3688 # With demangler in GNU ld
3690 # Check whether --with-demangler-in-ld was given.
3691 if test "${with_demangler_in_ld+set}" = set; then :
3692 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3698 # ----------------------
3699 # Find default assembler
3700 # ----------------------
3704 # Check whether --with-gnu-as was given.
3705 if test "${with_gnu_as+set}" = set; then :
3706 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3713 # Check whether --with-as was given.
3714 if test "${with_as+set}" = set; then :
3715 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3718 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3719 if test ! -x "$DEFAULT_ASSEMBLER"; then
3720 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3721 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3725 cat >>confdefs.h
<<_ACEOF
3726 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3732 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3733 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3734 if test x
"$gas_flag" = x
"no"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3736 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3739 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3750 # If a non-executable a.out is present (e.g. created by GNU as above even if
3751 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3752 # file, even when creating an executable, so an execution test fails.
3753 # Remove possible default executable files to avoid this.
3755 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3756 # Autoconf includes it.
3757 rm -f a.out a.exe b.out
3759 # Find the native compiler
3761 ac_cpp
='$CPP $CPPFLAGS'
3762 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3765 if test -n "$ac_tool_prefix"; then
3766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3767 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if test "${ac_cv_prog_CC+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC
="$CC" # Let the user override the test.
3776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir
=.
3781 for ac_exec_ext
in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3804 if test -z "$ac_cv_prog_CC"; then
3806 # Extract the first word of "gcc", so it can be a program name with args.
3807 set dummy gcc
; ac_word
=$2
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 $as_echo_n "checking for $ac_word... " >&6; }
3810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3813 if test -n "$ac_ct_CC"; then
3814 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3820 test -z "$as_dir" && as_dir
=.
3821 for ac_exec_ext
in '' $ac_executable_extensions; do
3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823 ac_cv_prog_ac_ct_CC
="gcc"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3834 if test -n "$ac_ct_CC"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836 $as_echo "$ac_ct_CC" >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3842 if test "x$ac_ct_CC" = x
; then
3845 case $cross_compiling:$ac_tool_warned in
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3849 ac_tool_warned
=yes ;;
3857 if test -z "$CC"; then
3858 if test -n "$ac_tool_prefix"; then
3859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3860 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if test "${ac_cv_prog_CC+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3866 if test -n "$CC"; then
3867 ac_cv_prog_CC
="$CC" # Let the user override the test.
3869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3873 test -z "$as_dir" && as_dir
=.
3874 for ac_exec_ext
in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 if test -n "$CC"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3889 $as_echo "$CC" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3898 if test -z "$CC"; then
3899 # Extract the first word of "cc", so it can be a program name with args.
3900 set dummy cc
; ac_word
=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if test "${ac_cv_prog_CC+set}" = set; then :
3904 $as_echo_n "(cached) " >&6
3906 if test -n "$CC"; then
3907 ac_cv_prog_CC
="$CC" # Let the user override the test.
3910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir
=.
3915 for ac_exec_ext
in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3918 ac_prog_rejected
=yes
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 if test $ac_prog_rejected = yes; then
3930 # We found a bogon in the path, so make sure we never use it.
3931 set dummy
$ac_cv_prog_CC
3933 if test $# != 0; then
3934 # We chose a different compiler from the bogus one.
3935 # However, it has the same basename, so the bogon will be chosen
3936 # first if we set CC to just the basename; use the full file name.
3938 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3944 if test -n "$CC"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946 $as_echo "$CC" >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3954 if test -z "$CC"; then
3955 if test -n "$ac_tool_prefix"; then
3956 for ac_prog
in cl.exe
3958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3959 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if test "${ac_cv_prog_CC+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
3965 if test -n "$CC"; then
3966 ac_cv_prog_CC
="$CC" # Let the user override the test.
3968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3972 test -z "$as_dir" && as_dir
=.
3973 for ac_exec_ext
in '' $ac_executable_extensions; do
3974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 if test -n "$CC"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3988 $as_echo "$CC" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3995 test -n "$CC" && break
3998 if test -z "$CC"; then
4000 for ac_prog
in cl.exe
4002 # Extract the first word of "$ac_prog", so it can be a program name with args.
4003 set dummy
$ac_prog; ac_word
=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4009 if test -n "$ac_ct_CC"; then
4010 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_exec_ext
in '' $ac_executable_extensions; do
4018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019 ac_cv_prog_ac_ct_CC
="$ac_prog"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4030 if test -n "$ac_ct_CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4032 $as_echo "$ac_ct_CC" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4039 test -n "$ac_ct_CC" && break
4042 if test "x$ac_ct_CC" = x
; then
4045 case $cross_compiling:$ac_tool_warned in
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4049 ac_tool_warned
=yes ;;
4058 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error
"no acceptable C compiler found in \$PATH
4061 See \`config.log' for more details." "$LINENO" 5; }
4063 # Provide some information about the compiler.
4064 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4067 for ac_option
in --version -v -V -qversion; do
4068 { { ac_try
="$ac_compiler $ac_option >&5"
4070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4074 $as_echo "$ac_try_echo"; } >&5
4075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4077 if test -s conftest.err; then
4079 ... rest of stderr output deleted ...
4080 10q' conftest.err >conftest.er1
4081 cat conftest.er1 >&5
4082 rm -f conftest.er1 conftest.err
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4099 ac_clean_files_save=$ac_clean_files
4100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4101 # Try to create an executable without -o first, disregard a.out.
4102 # It will help us diagnose broken compilers, and finding out an intuition
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4105 $as_echo_n "checking for C compiler default output file name... " >&6; }
4106 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4108 # The possible output files:
4109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4112 for ac_file in $ac_files
4115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4121 if { { ac_try="$ac_link_default"
4123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4124 *) ac_try_echo
=$ac_try;;
4126 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127 $as_echo "$ac_try_echo"; } >&5
4128 (eval "$ac_link_default") 2>&5
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }; then :
4132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4135 # so that the user can short-circuit this test for compilers unknown to
4137 for ac_file
in $ac_files ''
4139 test -f "$ac_file" ||
continue
4141 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4144 # We found the default executable, but exeext='' is most
4148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4150 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4152 # We set ac_cv_exeext here because the later test for it is not
4153 # safe: cross compilers may not add the suffix if given an `-o'
4154 # argument, so we may need to know it at that point already.
4155 # Even if this section looks crufty: it has the advantage of
4162 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4168 $as_echo "$ac_file" >&6; }
4169 if test -z "$ac_file"; then :
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.
$ac_ext >&5
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 { as_fn_set_status
77
4176 as_fn_error
"C compiler cannot create executables
4177 See \`config.log' for more details." "$LINENO" 5; }; }
4179 ac_exeext
=$ac_cv_exeext
4181 # Check that the compiler produces executables we can run. If not, either
4182 # the compiler is broken, or we cross compile.
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4184 $as_echo_n "checking whether the C compiler works... " >&6; }
4185 # If not cross compiling, check that we can run a simple program.
4186 if test "$cross_compiling" != yes; then
4187 if { ac_try
='./$ac_file'
4188 { { case "(($ac_try" in
4189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194 (eval "$ac_try") 2>&5
4196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197 test $ac_status = 0; }; }; then
4200 if test "$cross_compiling" = maybe; then
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error "cannot run C compiled programs.
4206 If you meant to cross compile
, use \
`--host'.
4207 See \`config.log
' for more details." "$LINENO" 5; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212 $as_echo "yes" >&6; }
4214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4215 ac_clean_files=$ac_clean_files_save
4216 # Check that the compiler produces executables we can run. If not, either
4217 # the compiler is broken, or we cross compile.
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4219 $as_echo_n "checking whether we are cross compiling... " >&6; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4221 $as_echo "$cross_compiling" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4224 $as_echo_n "checking for suffix of executables... " >&6; }
4225 if { { ac_try="$ac_link"
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 $as_echo "$ac_try_echo"; } >&5
4232 (eval "$ac_link") 2>&5
4234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235 test $ac_status = 0; }; then :
4236 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4237 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4238 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4240 for ac_file
in conftest.exe conftest conftest.
*; do
4241 test -f "$ac_file" ||
continue
4243 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4244 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4252 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4253 See \`config.log' for more details." "$LINENO" 5; }
4255 rm -f conftest
$ac_cv_exeext
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4257 $as_echo "$ac_cv_exeext" >&6; }
4259 rm -f conftest.
$ac_ext
4260 EXEEXT
=$ac_cv_exeext
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4263 $as_echo_n "checking for suffix of object files... " >&6; }
4264 if test "${ac_cv_objext+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4278 rm -f conftest.o conftest.obj
4279 if { { ac_try
="$ac_compile"
4281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_compile") 2>&5
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; }; then :
4290 for ac_file in conftest.o conftest.obj conftest.*; do
4291 test -f "$ac_file" || continue;
4293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4294 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4299 $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error "cannot compute suffix of object files
: cannot compile
4305 See \
`config.log' for more details." "$LINENO" 5; }
4307 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4310 $as_echo "$ac_cv_objext" >&6; }
4311 OBJEXT=$ac_cv_objext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4314 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4315 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4332 if ac_fn_c_try_compile "$LINENO"; then :
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4342 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4343 if test $ac_compiler_gnu = yes; then
4348 ac_test_CFLAGS=${CFLAGS+set}
4349 ac_save_CFLAGS=$CFLAGS
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4351 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4352 if test "${ac_cv_prog_cc_g+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4355 ac_save_c_werror_flag=$ac_c_werror_flag
4356 ac_c_werror_flag=yes
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4370 if ac_fn_c_try_compile "$LINENO"; then :
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4385 if ac_fn_c_try_compile "$LINENO"; then :
4388 ac_c_werror_flag=$ac_save_c_werror_flag
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4401 if ac_fn_c_try_compile "$LINENO"; then :
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 ac_c_werror_flag=$ac_save_c_werror_flag
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4412 $as_echo "$ac_cv_prog_cc_g" >&6; }
4413 if test "$ac_test_CFLAGS" = set; then
4414 CFLAGS=$ac_save_CFLAGS
4415 elif test $ac_cv_prog_cc_g = yes; then
4416 if test "$GCC" = yes; then
4422 if test "$GCC" = yes; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4430 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4433 ac_cv_prog_cc_c89=no
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4439 #include <sys/types.h>
4440 #include <sys/stat.h>
4441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4442 struct buf { int x; };
4443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4444 static char *e (p, i)
4450 static char *f (char * (*g) (char **, int), char **p, ...)
4455 s = g (p, va_arg (v,int));
4460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4461 function prototypes and stuff, but not '\xHH' hex character constants.
4462 These don't provoke an error unfortunately, instead are silently treated
4463 as 'x'. The following induces an error, until -std is added to get
4464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4465 array size at least. It's necessary to write '\x00'==0 to get something
4466 that's true only with -std. */
4467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4469 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4470 inside strings and character constants. */
4472 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4474 int test (int i, double x);
4475 struct s1 {int (*f) (int a);};
4476 struct s2 {int (*f) (double a);};
4477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4488 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4489 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4491 CC="$ac_save_CC $ac_arg"
4492 if ac_fn_c_try_compile "$LINENO"; then :
4493 ac_cv_prog_cc_c89=$ac_arg
4495 rm -f core conftest.err conftest.$ac_objext
4496 test "x$ac_cv_prog_cc_c89" != "xno" && break
4498 rm -f conftest.$ac_ext
4503 case "x$ac_cv_prog_cc_c89" in
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4506 $as_echo "none needed" >&6; } ;;
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4509 $as_echo "unsupported" >&6; } ;;
4511 CC="$CC $ac_cv_prog_cc_c89"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4513 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4515 if test "x$ac_cv_prog_cc_c89" != xno; then :
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 ac_cpp='$CXXCPP $CPPFLAGS'
4527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4530 if test -z "$CXX"; then
4531 if test -n "$CCC"; then
4534 if test -n "$ac_tool_prefix"; then
4535 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if test "${ac_cv_prog_CXX+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4544 if test -n "$CXX"; then
4545 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 if test -n "$CXX"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4567 $as_echo "$CXX" >&6; }
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4574 test -n "$CXX" && break
4577 if test -z "$CXX"; then
4579 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4581 # Extract the first word of "$ac_prog", so it can be a program name with args.
4582 set dummy $ac_prog; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4588 if test -n "$ac_ct_CXX"; then
4589 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_ac_ct_CXX="$ac_prog"
4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4609 if test -n "$ac_ct_CXX"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4611 $as_echo "$ac_ct_CXX" >&6; }
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4618 test -n "$ac_ct_CXX" && break
4621 if test "x$ac_ct_CXX" = x; then
4624 case $cross_compiling:$ac_tool_warned in
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628 ac_tool_warned=yes ;;
4636 # Provide some information about the compiler.
4637 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4640 for ac_option in --version -v -V -qversion; do
4641 { { ac_try="$ac_compiler $ac_option >&5"
4643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4644 *) ac_try_echo
=$ac_try;;
4646 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4647 $as_echo "$ac_try_echo"; } >&5
4648 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4650 if test -s conftest.err
; then
4652 ... rest of stderr output deleted ...
4653 10q' conftest.err
>conftest.er1
4654 cat conftest.er1
>&5
4655 rm -f conftest.er1 conftest.err
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4662 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4663 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4680 if ac_fn_cxx_try_compile
"$LINENO"; then :
4685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4686 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4690 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4691 if test $ac_compiler_gnu = yes; then
4696 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4697 ac_save_CXXFLAGS
=$CXXFLAGS
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4699 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4700 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4703 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4704 ac_cxx_werror_flag
=yes
4707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4718 if ac_fn_cxx_try_compile
"$LINENO"; then :
4719 ac_cv_prog_cxx_g
=yes
4722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4733 if ac_fn_cxx_try_compile
"$LINENO"; then :
4736 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4749 if ac_fn_cxx_try_compile
"$LINENO"; then :
4750 ac_cv_prog_cxx_g
=yes
4752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4757 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4760 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4761 if test "$ac_test_CXXFLAGS" = set; then
4762 CXXFLAGS
=$ac_save_CXXFLAGS
4763 elif test $ac_cv_prog_cxx_g = yes; then
4764 if test "$GXX" = yes; then
4770 if test "$GXX" = yes; then
4777 ac_cpp
='$CPP $CPPFLAGS'
4778 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4785 if test -n "$ac_tool_prefix"; then
4786 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4787 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4793 if test -n "$GNATBIND"; then
4794 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4800 test -z "$as_dir" && as_dir
=.
4801 for ac_exec_ext
in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 GNATBIND
=$ac_cv_prog_GNATBIND
4814 if test -n "$GNATBIND"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4816 $as_echo "$GNATBIND" >&6; }
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4824 if test -z "$ac_cv_prog_GNATBIND"; then
4825 ac_ct_GNATBIND
=$GNATBIND
4826 # Extract the first word of "gnatbind", so it can be a program name with args.
4827 set dummy gnatbind
; ac_word
=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -n "$ac_ct_GNATBIND"; then
4834 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir
=.
4841 for ac_exec_ext
in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4854 if test -n "$ac_ct_GNATBIND"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4856 $as_echo "$ac_ct_GNATBIND" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4862 if test "x$ac_ct_GNATBIND" = x
; then
4865 case $cross_compiling:$ac_tool_warned in
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4869 ac_tool_warned
=yes ;;
4871 GNATBIND
=$ac_ct_GNATBIND
4874 GNATBIND
="$ac_cv_prog_GNATBIND"
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4879 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4885 if test -n "$GNATMAKE"; then
4886 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir
=.
4893 for ac_exec_ext
in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 GNATMAKE
=$ac_cv_prog_GNATMAKE
4906 if test -n "$GNATMAKE"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4908 $as_echo "$GNATMAKE" >&6; }
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4916 if test -z "$ac_cv_prog_GNATMAKE"; then
4917 ac_ct_GNATMAKE
=$GNATMAKE
4918 # Extract the first word of "gnatmake", so it can be a program name with args.
4919 set dummy gnatmake
; ac_word
=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4925 if test -n "$ac_ct_GNATMAKE"; then
4926 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4932 test -z "$as_dir" && as_dir
=.
4933 for ac_exec_ext
in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4946 if test -n "$ac_ct_GNATMAKE"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4948 $as_echo "$ac_ct_GNATMAKE" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4954 if test "x$ac_ct_GNATMAKE" = x
; then
4957 case $cross_compiling:$ac_tool_warned in
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4961 ac_tool_warned
=yes ;;
4963 GNATMAKE
=$ac_ct_GNATMAKE
4966 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4970 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4971 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4974 cat >conftest.adb
<<EOF
4975 procedure conftest is begin null; end conftest;
4977 acx_cv_cc_gcc_supports_ada
=no
4978 # There is a bug in old released versions of GCC which causes the
4979 # driver to exit successfully when the appropriate language module
4980 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4981 # Therefore we must check for the error message as well as an
4982 # unsuccessful exit.
4983 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4984 # given a .adb file, but produce no object file. So we must check
4985 # if an object file was really produced to guard against this.
4986 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4987 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4988 acx_cv_cc_gcc_supports_ada
=yes
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4993 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4995 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5002 # Do configure tests with the C++ compiler, since that's what we build with.
5004 ac_cpp
='$CXXCPP $CPPFLAGS'
5005 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5010 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5011 # optimizations to be activated explicitly by the toplevel.
5013 */prev-gcc
/xgcc
*) ;;
5014 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5015 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5020 # Determine PICFLAG for target gnatlib.
5026 # PIC is the default on some targets or must not be used.
5028 # For darwin, common symbols are not allowed in MH_DYLIB files
5030 # If we are using a compiler supporting mdynamic-no-pic
5031 # and the option has been tested as safe to add, then cancel
5032 # it here, since the code generated is incompatible with shared
5034 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5035 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5039 # PIC is the default.
5042 # PIC is the default for 64-bit PA HP-UX.
5044 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5046 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5048 i
[34567]86-*-interix[3-9]*)
5049 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5050 # Instead, we relocate shared libraries at runtime.
5052 i
[34567]86-*-nto-qnx*)
5053 # QNX uses GNU C++, but need to define -shared option too, otherwise
5055 PICFLAG_FOR_TARGET
='-fPIC -shared'
5057 i
[34567]86-pc-msdosdjgpp*)
5058 # DJGPP does not support shared libraries at all.
5061 # On IA64 HP-UX, PIC is the default but the pic flag
5062 # sets the default TLS model and affects inlining.
5063 PICFLAG_FOR_TARGET
=-fPIC
5066 # PIC is the default.
5068 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5069 # All AIX code is PIC.
5072 # Some targets support both -fPIC and -fpic, but prefer the latter.
5074 i
[34567]86-*-* | x86_64-
*-*)
5075 PICFLAG_FOR_TARGET
=-fpic
5077 # FIXME: Override -fPIC default in libgcc only?
5078 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5079 PICFLAG_FOR_TARGET
=-fpic
5081 # FIXME: Simplify to sh*-*-netbsd*?
5082 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5083 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5084 PICFLAG_FOR_TARGET
=-fpic
5086 # Default to -fPIC unless specified otherwise.
5088 PICFLAG_FOR_TARGET
=-fPIC
5092 # If the user explicitly uses -fpic/-fPIC, keep that.
5093 case "${CFLAGS_FOR_TARGET}" in
5095 PICFLAG_FOR_TARGET
=-fpic
5098 PICFLAG_FOR_TARGET
=-fPIC
5104 # -------------------------
5105 # Check C compiler features
5106 # -------------------------
5110 ac_cpp
='$CXXCPP $CPPFLAGS'
5111 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5115 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5116 if test -z "$CXXCPP"; then
5117 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5120 # Double quotes because CXXCPP needs to be expanded
5121 for CXXCPP
in "$CXX -E" "/lib/cpp"
5124 for ac_cxx_preproc_warn_flag
in '' yes
5126 # Use a header file that comes with gcc, so configuring glibc
5127 # with a fresh cross-compiler works.
5128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5129 # <limits.h> exists even on freestanding compilers.
5130 # On the NeXT, cc -E runs the code through the compiler's parser,
5131 # not just through cpp. "Syntax error" is here to catch this case.
5132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5135 # include <limits.h>
5137 # include <assert.h>
5141 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5144 # Broken: fails on valid input.
5147 rm -f conftest.err conftest.
$ac_ext
5149 # OK, works on sane cases. Now check whether nonexistent headers
5150 # can be detected and how.
5151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #include <ac_nonexistent.h>
5155 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5156 # Broken: success on invalid input.
5159 # Passes both tests.
5163 rm -f conftest.err conftest.
$ac_ext
5166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167 rm -f conftest.err conftest.
$ac_ext
5168 if $ac_preproc_ok; then :
5173 ac_cv_prog_CXXCPP
=$CXXCPP
5176 CXXCPP
=$ac_cv_prog_CXXCPP
5178 ac_cv_prog_CXXCPP
=$CXXCPP
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5181 $as_echo "$CXXCPP" >&6; }
5183 for ac_cxx_preproc_warn_flag
in '' yes
5185 # Use a header file that comes with gcc, so configuring glibc
5186 # with a fresh cross-compiler works.
5187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5188 # <limits.h> exists even on freestanding compilers.
5189 # On the NeXT, cc -E runs the code through the compiler's parser,
5190 # not just through cpp. "Syntax error" is here to catch this case.
5191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5194 # include <limits.h>
5196 # include <assert.h>
5200 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5203 # Broken: fails on valid input.
5206 rm -f conftest.err conftest.
$ac_ext
5208 # OK, works on sane cases. Now check whether nonexistent headers
5209 # can be detected and how.
5210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <ac_nonexistent.h>
5214 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5215 # Broken: success on invalid input.
5218 # Passes both tests.
5222 rm -f conftest.err conftest.
$ac_ext
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.
$ac_ext
5227 if $ac_preproc_ok; then :
5230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5232 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5233 See \`config.log' for more details." "$LINENO" 5; }
5237 ac_cpp
='$CXXCPP $CPPFLAGS'
5238 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5245 if test "${ac_cv_path_GREP+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5248 if test -z "$GREP"; then
5249 ac_path_GREP_found
=false
5250 # Loop through the user's path and test for each of PROGNAME-LIST
5251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5252 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5255 test -z "$as_dir" && as_dir
=.
5256 for ac_prog
in grep ggrep
; do
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5259 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5260 # Check for GNU ac_path_GREP and select it if it is found.
5261 # Check for GNU $ac_path_GREP
5262 case `"$ac_path_GREP" --version 2>&1` in
5264 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5267 $as_echo_n 0123456789 >"conftest.in"
5270 cat "conftest.in" "conftest.in" >"conftest.tmp"
5271 mv "conftest.tmp" "conftest.in"
5272 cp "conftest.in" "conftest.nl"
5273 $as_echo 'GREP' >> "conftest.nl"
5274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5275 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5276 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5278 # Best one so far, save it but keep looking for a better one
5279 ac_cv_path_GREP
="$ac_path_GREP"
5280 ac_path_GREP_max
=$ac_count
5282 # 10*(2^10) chars as input seems more than enough
5283 test $ac_count -gt 10 && break
5285 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5288 $ac_path_GREP_found && break 3
5293 if test -z "$ac_cv_path_GREP"; then
5294 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5297 ac_cv_path_GREP
=$GREP
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5302 $as_echo "$ac_cv_path_GREP" >&6; }
5303 GREP
="$ac_cv_path_GREP"
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5307 $as_echo_n "checking for egrep... " >&6; }
5308 if test "${ac_cv_path_EGREP+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5311 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5312 then ac_cv_path_EGREP
="$GREP -E"
5314 if test -z "$EGREP"; then
5315 ac_path_EGREP_found
=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5318 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5321 test -z "$as_dir" && as_dir
=.
5322 for ac_prog
in egrep; do
5323 for ac_exec_ext
in '' $ac_executable_extensions; do
5324 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5325 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5326 # Check for GNU ac_path_EGREP and select it if it is found.
5327 # Check for GNU $ac_path_EGREP
5328 case `"$ac_path_EGREP" --version 2>&1` in
5330 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5333 $as_echo_n 0123456789 >"conftest.in"
5336 cat "conftest.in" "conftest.in" >"conftest.tmp"
5337 mv "conftest.tmp" "conftest.in"
5338 cp "conftest.in" "conftest.nl"
5339 $as_echo 'EGREP' >> "conftest.nl"
5340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5341 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5342 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5344 # Best one so far, save it but keep looking for a better one
5345 ac_cv_path_EGREP
="$ac_path_EGREP"
5346 ac_path_EGREP_max
=$ac_count
5348 # 10*(2^10) chars as input seems more than enough
5349 test $ac_count -gt 10 && break
5351 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5354 $ac_path_EGREP_found && break 3
5359 if test -z "$ac_cv_path_EGREP"; then
5360 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5363 ac_cv_path_EGREP
=$EGREP
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5369 $as_echo "$ac_cv_path_EGREP" >&6; }
5370 EGREP
="$ac_cv_path_EGREP"
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5374 $as_echo_n "checking for ANSI C header files... " >&6; }
5375 if test "${ac_cv_header_stdc+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5393 if ac_fn_cxx_try_compile
"$LINENO"; then :
5394 ac_cv_header_stdc
=yes
5396 ac_cv_header_stdc
=no
5398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5400 if test $ac_cv_header_stdc = yes; then
5401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "memchr" >/dev
/null
2>&1; then :
5411 ac_cv_header_stdc
=no
5417 if test $ac_cv_header_stdc = yes; then
5418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5425 $EGREP "free" >/dev
/null
2>&1; then :
5428 ac_cv_header_stdc
=no
5434 if test $ac_cv_header_stdc = yes; then
5435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5436 if test "$cross_compiling" = yes; then :
5439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5443 #if ((' ' & 0x0FF) == 0x020)
5444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5447 # define ISLOWER(c) \
5448 (('a' <= (c) && (c) <= 'i') \
5449 || ('j' <= (c) && (c) <= 'r') \
5450 || ('s' <= (c) && (c) <= 'z'))
5451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5459 for (i = 0; i < 256; i++)
5460 if (XOR (islower (i), ISLOWER (i))
5461 || toupper (i) != TOUPPER (i))
5466 if ac_fn_cxx_try_run
"$LINENO"; then :
5469 ac_cv_header_stdc
=no
5471 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5472 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5478 $as_echo "$ac_cv_header_stdc" >&6; }
5479 if test $ac_cv_header_stdc = yes; then
5481 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5485 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5486 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5487 inttypes.h stdint.h unistd.h
5489 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5490 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5492 eval as_val
=\$
$as_ac_Header
5493 if test "x$as_val" = x
""yes; then :
5494 cat >>confdefs.h
<<_ACEOF
5495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5504 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5505 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5512 if test "$MINIX" = yes; then
5514 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5517 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5520 $as_echo "#define _MINIX 1" >>confdefs.h
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5526 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5527 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5533 # define __EXTENSIONS__ 1
5534 $ac_includes_default
5543 if ac_fn_cxx_try_compile
"$LINENO"; then :
5544 ac_cv_safe_to_define___extensions__
=yes
5546 ac_cv_safe_to_define___extensions__
=no
5548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5551 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5552 test $ac_cv_safe_to_define___extensions__ = yes &&
5553 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5555 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5557 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5559 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5561 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5565 ac_cpp
='$CPP $CPPFLAGS'
5566 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5570 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5571 # On Suns, sometimes $CPP names a directory.
5572 if test -n "$CPP" && test -d "$CPP"; then
5575 if test -z "$CPP"; then
5576 if test "${ac_cv_prog_CPP+set}" = set; then :
5577 $as_echo_n "(cached) " >&6
5579 # Double quotes because CPP needs to be expanded
5580 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5583 for ac_c_preproc_warn_flag
in '' yes
5585 # Use a header file that comes with gcc, so configuring glibc
5586 # with a fresh cross-compiler works.
5587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588 # <limits.h> exists even on freestanding compilers.
5589 # On the NeXT, cc -E runs the code through the compiler's parser,
5590 # not just through cpp. "Syntax error" is here to catch this case.
5591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5594 # include <limits.h>
5596 # include <assert.h>
5600 if ac_fn_c_try_cpp
"$LINENO"; then :
5603 # Broken: fails on valid input.
5606 rm -f conftest.err conftest.
$ac_ext
5608 # OK, works on sane cases. Now check whether nonexistent headers
5609 # can be detected and how.
5610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <ac_nonexistent.h>
5614 if ac_fn_c_try_cpp
"$LINENO"; then :
5615 # Broken: success on invalid input.
5618 # Passes both tests.
5622 rm -f conftest.err conftest.
$ac_ext
5625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626 rm -f conftest.err conftest.
$ac_ext
5627 if $ac_preproc_ok; then :
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5640 $as_echo "$CPP" >&6; }
5642 for ac_c_preproc_warn_flag
in '' yes
5644 # Use a header file that comes with gcc, so configuring glibc
5645 # with a fresh cross-compiler works.
5646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5647 # <limits.h> exists even on freestanding compilers.
5648 # On the NeXT, cc -E runs the code through the compiler's parser,
5649 # not just through cpp. "Syntax error" is here to catch this case.
5650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5653 # include <limits.h>
5655 # include <assert.h>
5659 if ac_fn_c_try_cpp
"$LINENO"; then :
5662 # Broken: fails on valid input.
5665 rm -f conftest.err conftest.
$ac_ext
5667 # OK, works on sane cases. Now check whether nonexistent headers
5668 # can be detected and how.
5669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <ac_nonexistent.h>
5673 if ac_fn_c_try_cpp
"$LINENO"; then :
5674 # Broken: success on invalid input.
5677 # Passes both tests.
5681 rm -f conftest.err conftest.
$ac_ext
5684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5685 rm -f conftest.err conftest.
$ac_ext
5686 if $ac_preproc_ok; then :
5689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5691 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5692 See \`config.log' for more details." "$LINENO" 5; }
5696 ac_cpp
='$CXXCPP $CPPFLAGS'
5697 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5702 $as_echo_n "checking for inline... " >&6; }
5703 if test "${ac_cv_c_inline+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5707 for ac_kw
in inline __inline__ __inline
; do
5708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5712 static $ac_kw foo_t static_foo () {return 0; }
5713 $ac_kw foo_t foo () {return 0; }
5717 if ac_fn_cxx_try_compile
"$LINENO"; then :
5718 ac_cv_c_inline
=$ac_kw
5720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5721 test "$ac_cv_c_inline" != no
&& break
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5726 $as_echo "$ac_cv_c_inline" >&6; }
5728 case $ac_cv_c_inline in
5731 case $ac_cv_c_inline in
5733 *) ac_val
=$ac_cv_c_inline;;
5735 cat >>confdefs.h
<<_ACEOF
5737 #define inline $ac_val
5744 # Check whether --enable-largefile was given.
5745 if test "${enable_largefile+set}" = set; then :
5746 enableval
=$enable_largefile;
5749 if test "$enable_largefile" != no
; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5752 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5753 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5756 ac_cv_sys_largefile_CC
=no
5757 if test "$GCC" != yes; then
5760 # IRIX 6.2 and later do not support large files by default,
5761 # so use the C compiler's -n32 option if that helps.
5762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5764 #include <sys/types.h>
5765 /* Check that off_t can represent 2**63 - 1 correctly.
5766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5767 since some C++ compilers masquerading as C compilers
5768 incorrectly reject 9223372036854775807. */
5769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5771 && LARGE_OFF_T % 2147483647 == 1)
5781 if ac_fn_cxx_try_compile
"$LINENO"; then :
5784 rm -f core conftest.err conftest.
$ac_objext
5786 if ac_fn_cxx_try_compile
"$LINENO"; then :
5787 ac_cv_sys_largefile_CC
=' -n32'; break
5789 rm -f core conftest.err conftest.
$ac_objext
5793 rm -f conftest.
$ac_ext
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5797 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5798 if test "$ac_cv_sys_largefile_CC" != no
; then
5799 CC
=$CC$ac_cv_sys_largefile_CC
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5803 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5804 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #include <sys/types.h>
5811 /* Check that off_t can represent 2**63 - 1 correctly.
5812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5813 since some C++ compilers masquerading as C compilers
5814 incorrectly reject 9223372036854775807. */
5815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5817 && LARGE_OFF_T % 2147483647 == 1)
5827 if ac_fn_cxx_try_compile
"$LINENO"; then :
5828 ac_cv_sys_file_offset_bits
=no
; break
5830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #define _FILE_OFFSET_BITS 64
5834 #include <sys/types.h>
5835 /* Check that off_t can represent 2**63 - 1 correctly.
5836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5837 since some C++ compilers masquerading as C compilers
5838 incorrectly reject 9223372036854775807. */
5839 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5841 && LARGE_OFF_T % 2147483647 == 1)
5851 if ac_fn_cxx_try_compile
"$LINENO"; then :
5852 ac_cv_sys_file_offset_bits
=64; break
5854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5855 ac_cv_sys_file_offset_bits
=unknown
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5860 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5861 case $ac_cv_sys_file_offset_bits in #(
5864 cat >>confdefs.h
<<_ACEOF
5865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5870 if test $ac_cv_sys_file_offset_bits = unknown
; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5872 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5873 if test "${ac_cv_sys_large_files+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #include <sys/types.h>
5880 /* Check that off_t can represent 2**63 - 1 correctly.
5881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5882 since some C++ compilers masquerading as C compilers
5883 incorrectly reject 9223372036854775807. */
5884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5886 && LARGE_OFF_T % 2147483647 == 1)
5896 if ac_fn_cxx_try_compile
"$LINENO"; then :
5897 ac_cv_sys_large_files
=no
; break
5899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 #define _LARGE_FILES 1
5903 #include <sys/types.h>
5904 /* Check that off_t can represent 2**63 - 1 correctly.
5905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5906 since some C++ compilers masquerading as C compilers
5907 incorrectly reject 9223372036854775807. */
5908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5910 && LARGE_OFF_T % 2147483647 == 1)
5920 if ac_fn_cxx_try_compile
"$LINENO"; then :
5921 ac_cv_sys_large_files
=1; break
5923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5924 ac_cv_sys_large_files
=unknown
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5929 $as_echo "$ac_cv_sys_large_files" >&6; }
5930 case $ac_cv_sys_large_files in #(
5933 cat >>confdefs.h
<<_ACEOF
5934 #define _LARGE_FILES $ac_cv_sys_large_files
5943 # sizeof(char) is 1 by definition.
5944 # The cast to long int works around a bug in the HP C Compiler
5945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5947 # This bug is HP SR number 8606223364.
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5949 $as_echo_n "checking size of void *... " >&6; }
5950 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5953 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5956 if test "$ac_cv_type_void_p" = yes; then
5957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959 { as_fn_set_status
77
5960 as_fn_error
"cannot compute sizeof (void *)
5961 See \`config.log' for more details." "$LINENO" 5; }; }
5963 ac_cv_sizeof_void_p
=0
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5969 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5973 cat >>confdefs.h
<<_ACEOF
5974 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5978 # The cast to long int works around a bug in the HP C Compiler
5979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5981 # This bug is HP SR number 8606223364.
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5983 $as_echo_n "checking size of short... " >&6; }
5984 if test "${ac_cv_sizeof_short+set}" = set; then :
5985 $as_echo_n "(cached) " >&6
5987 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5990 if test "$ac_cv_type_short" = yes; then
5991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5993 { as_fn_set_status
77
5994 as_fn_error
"cannot compute sizeof (short)
5995 See \`config.log' for more details." "$LINENO" 5; }; }
5997 ac_cv_sizeof_short
=0
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6003 $as_echo "$ac_cv_sizeof_short" >&6; }
6007 cat >>confdefs.h
<<_ACEOF
6008 #define SIZEOF_SHORT $ac_cv_sizeof_short
6012 # The cast to long int works around a bug in the HP C Compiler
6013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6015 # This bug is HP SR number 8606223364.
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6017 $as_echo_n "checking size of int... " >&6; }
6018 if test "${ac_cv_sizeof_int+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6021 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6024 if test "$ac_cv_type_int" = yes; then
6025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6027 { as_fn_set_status
77
6028 as_fn_error
"cannot compute sizeof (int)
6029 See \`config.log' for more details." "$LINENO" 5; }; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6037 $as_echo "$ac_cv_sizeof_int" >&6; }
6041 cat >>confdefs.h
<<_ACEOF
6042 #define SIZEOF_INT $ac_cv_sizeof_int
6046 # The cast to long int works around a bug in the HP C Compiler
6047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6049 # This bug is HP SR number 8606223364.
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6051 $as_echo_n "checking size of long... " >&6; }
6052 if test "${ac_cv_sizeof_long+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6055 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6058 if test "$ac_cv_type_long" = yes; then
6059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6061 { as_fn_set_status
77
6062 as_fn_error
"cannot compute sizeof (long)
6063 See \`config.log' for more details." "$LINENO" 5; }; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6071 $as_echo "$ac_cv_sizeof_long" >&6; }
6075 cat >>confdefs.h
<<_ACEOF
6076 #define SIZEOF_LONG $ac_cv_sizeof_long
6080 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6081 if test "x$ac_cv_type_long_long" = x
""yes; then :
6083 cat >>confdefs.h
<<_ACEOF
6084 #define HAVE_LONG_LONG 1
6087 # The cast to long int works around a bug in the HP C Compiler
6088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6090 # This bug is HP SR number 8606223364.
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6092 $as_echo_n "checking size of long long... " >&6; }
6093 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6094 $as_echo_n "(cached) " >&6
6096 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6099 if test "$ac_cv_type_long_long" = yes; then
6100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6102 { as_fn_set_status
77
6103 as_fn_error
"cannot compute sizeof (long long)
6104 See \`config.log' for more details." "$LINENO" 5; }; }
6106 ac_cv_sizeof_long_long
=0
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6112 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6116 cat >>confdefs.h
<<_ACEOF
6117 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6123 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6124 case $ac_cv_c_int8_t in #(
6128 cat >>confdefs.h
<<_ACEOF
6129 #define int8_t $ac_cv_c_int8_t
6134 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6135 case $ac_cv_c_int16_t in #(
6139 cat >>confdefs.h
<<_ACEOF
6140 #define int16_t $ac_cv_c_int16_t
6145 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6146 case $ac_cv_c_int32_t in #(
6150 cat >>confdefs.h
<<_ACEOF
6151 #define int32_t $ac_cv_c_int32_t
6156 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6157 case $ac_cv_c_int64_t in #(
6161 cat >>confdefs.h
<<_ACEOF
6162 #define int64_t $ac_cv_c_int64_t
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6169 $as_echo_n "checking for long long int... " >&6; }
6170 if test "${ac_cv_type_long_long_int+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6176 /* For now, do not test the preprocessor; as of 2007 there are too many
6177 implementations with broken preprocessors. Perhaps this can
6178 be revisited in 2012. In the meantime, code should not expect
6179 #if to work with literals wider than 32 bits. */
6180 /* Test literals. */
6181 long long int ll = 9223372036854775807ll;
6182 long long int nll = -9223372036854775807LL;
6183 unsigned long long int ull = 18446744073709551615ULL;
6184 /* Test constant expressions. */
6185 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6187 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6193 /* Test availability of runtime routines for shift and division. */
6194 long long int llmax = 9223372036854775807ll;
6195 unsigned long long int ullmax = 18446744073709551615ull;
6196 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6197 | (llmax / ll) | (llmax % ll)
6198 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6199 | (ullmax / ull) | (ullmax % ull));
6205 if ac_fn_cxx_try_link
"$LINENO"; then :
6206 if test "$cross_compiling" = yes; then :
6207 ac_cv_type_long_long_int
=yes
6209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6214 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6215 # define LLONG_MAX (HALF - 1 + HALF)
6220 long long int n = 1;
6224 long long int m = n << i;
6227 if (LLONG_MAX / 2 < m)
6235 if ac_fn_cxx_try_run
"$LINENO"; then :
6236 ac_cv_type_long_long_int
=yes
6238 ac_cv_type_long_long_int
=no
6240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6241 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6245 ac_cv_type_long_long_int
=no
6247 rm -f core conftest.err conftest.
$ac_objext \
6248 conftest
$ac_exeext conftest.
$ac_ext
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6251 $as_echo "$ac_cv_type_long_long_int" >&6; }
6252 if test $ac_cv_type_long_long_int = yes; then
6254 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6260 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6261 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6263 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6266 test $ac_cv_type_long_long_int = yes \
6267 && ac_type
='long long int' \
6268 || ac_type
='long int'
6270 cat >>confdefs.h
<<_ACEOF
6271 #define intmax_t $ac_type
6278 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6279 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6281 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6284 for ac_type
in 'int' 'long int' 'long long int'; do
6285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 $ac_includes_default
6291 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6298 if ac_fn_cxx_try_compile
"$LINENO"; then :
6300 cat >>confdefs.h
<<_ACEOF
6301 #define intptr_t $ac_type
6306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6307 test -z "$ac_type" && break
6312 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6313 case $ac_cv_c_uint8_t in #(
6317 $as_echo "#define _UINT8_T 1" >>confdefs.h
6320 cat >>confdefs.h
<<_ACEOF
6321 #define uint8_t $ac_cv_c_uint8_t
6326 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6327 case $ac_cv_c_uint16_t in #(
6332 cat >>confdefs.h
<<_ACEOF
6333 #define uint16_t $ac_cv_c_uint16_t
6338 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6339 case $ac_cv_c_uint32_t in #(
6343 $as_echo "#define _UINT32_T 1" >>confdefs.h
6346 cat >>confdefs.h
<<_ACEOF
6347 #define uint32_t $ac_cv_c_uint32_t
6352 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6353 case $ac_cv_c_uint64_t in #(
6357 $as_echo "#define _UINT64_T 1" >>confdefs.h
6360 cat >>confdefs.h
<<_ACEOF
6361 #define uint64_t $ac_cv_c_uint64_t
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6368 $as_echo_n "checking for unsigned long long int... " >&6; }
6369 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6375 /* For now, do not test the preprocessor; as of 2007 there are too many
6376 implementations with broken preprocessors. Perhaps this can
6377 be revisited in 2012. In the meantime, code should not expect
6378 #if to work with literals wider than 32 bits. */
6379 /* Test literals. */
6380 long long int ll = 9223372036854775807ll;
6381 long long int nll = -9223372036854775807LL;
6382 unsigned long long int ull = 18446744073709551615ULL;
6383 /* Test constant expressions. */
6384 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6386 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6392 /* Test availability of runtime routines for shift and division. */
6393 long long int llmax = 9223372036854775807ll;
6394 unsigned long long int ullmax = 18446744073709551615ull;
6395 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6396 | (llmax / ll) | (llmax % ll)
6397 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6398 | (ullmax / ull) | (ullmax % ull));
6404 if ac_fn_cxx_try_link
"$LINENO"; then :
6405 ac_cv_type_unsigned_long_long_int
=yes
6407 ac_cv_type_unsigned_long_long_int
=no
6409 rm -f core conftest.err conftest.
$ac_objext \
6410 conftest
$ac_exeext conftest.
$ac_ext
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6413 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6414 if test $ac_cv_type_unsigned_long_long_int = yes; then
6416 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6422 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6423 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6425 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6428 test $ac_cv_type_unsigned_long_long_int = yes \
6429 && ac_type
='unsigned long long int' \
6430 || ac_type
='unsigned long int'
6432 cat >>confdefs.h
<<_ACEOF
6433 #define uintmax_t $ac_type
6440 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6441 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6443 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6446 for ac_type
in 'unsigned int' 'unsigned long int' \
6447 'unsigned long long int'; do
6448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 $ac_includes_default
6454 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6461 if ac_fn_cxx_try_compile
"$LINENO"; then :
6463 cat >>confdefs.h
<<_ACEOF
6464 #define uintptr_t $ac_type
6469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6470 test -z "$ac_type" && break
6487 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6488 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6491 # check what underlying integer type int64_t uses
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6493 $as_echo_n "checking for int64_t underlying type... " >&6; }
6494 if test "${ac_cv_int64_t_type+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6501 #ifdef HAVE_STDINT_H
6504 template <typename T> struct X { };
6506 struct X<long> { typedef long t; };
6516 if ac_fn_cxx_try_compile
"$LINENO"; then :
6517 ac_cv_int64_t_type
=long
6519 ac_cv_int64_t_type
="long long"
6521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6524 $as_echo "$ac_cv_int64_t_type" >&6; }
6525 if test "$ac_cv_int64_t_type" = "long"; then
6527 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6533 #ifdef HAVE_STDINT_H
6536 template <typename T> struct X { };
6538 struct X<long long> { typedef long long t; };
6548 if ac_fn_cxx_try_compile
"$LINENO"; then :
6551 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6557 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6558 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6570 int a, b; std::swap(a,b);
6575 if ac_fn_cxx_try_compile
"$LINENO"; then :
6576 ac_cv_std_swap_in_utility
=yes
6578 ac_cv_std_swap_in_utility
=no
6580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6583 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6584 if test $ac_cv_std_swap_in_utility = yes; then
6586 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6590 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6591 # If the host compiler is affected by the bug, and we build with optimization
6592 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6593 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6594 # Since there is no reliable feature check for the presence of this bug,
6595 # we simply use a GCC version number check. (This should never trigger for
6596 # stages 2 or 3 of a native bootstrap.)
6598 if test "$GCC" = yes; then
6599 saved_CXXFLAGS
="$CXXFLAGS"
6601 # The following test compilation will succeed if and only if $CXX accepts
6602 # -fno-strict-aliasing *and* is older than GCC 4.3.
6603 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6605 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6609 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6610 #error compiler not affected by placement new aliasing bug
6614 if ac_fn_cxx_try_compile
"$LINENO"; then :
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6616 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6623 CXXFLAGS
="$saved_CXXFLAGS"
6629 # ---------------------
6630 # Warnings and checking
6631 # ---------------------
6633 # Check $CC warning features (if it's GCC).
6634 # We want to use -pedantic, but we don't want warnings about
6637 # * overlong strings
6638 # * C++11 narrowing conversions in { }
6639 # So, we only use -pedantic if we can disable those warnings.
6641 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6642 # Check whether --enable-build-format-warnings was given.
6643 if test "${enable_build_format_warnings+set}" = set; then :
6644 enableval
=$enable_build_format_warnings;
6646 enable_build_format_warnings
=yes
6649 if test $enable_build_format_warnings = no
; then :
6655 ac_cpp
='$CXXCPP $CPPFLAGS'
6656 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6661 save_CXXFLAGS
="$CXXFLAGS"
6662 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6663 # Do the check with the no- prefix removed since gcc silently
6664 # accepts any -Wno-* option on purpose
6665 case $real_option in
6666 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6667 *) option
=$real_option ;;
6669 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6672 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6673 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6674 $as_echo_n "(cached) " >&6
6677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6688 if ac_fn_cxx_try_compile
"$LINENO"; then :
6689 eval "$as_acx_Woption=yes"
6691 eval "$as_acx_Woption=no"
6693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6696 eval ac_res
=\$
$as_acx_Woption
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6698 $as_echo "$ac_res" >&6; }
6699 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6700 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6703 CXXFLAGS
="$save_CXXFLAGS"
6705 ac_cpp
='$CXXCPP $CPPFLAGS'
6706 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6713 ac_cpp
='$CPP $CPPFLAGS'
6714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6719 save_CFLAGS
="$CFLAGS"
6720 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; 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 $CC supports $option" >&5
6730 $as_echo_n "checking whether $CC 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_c_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 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6761 CFLAGS
="$save_CFLAGS"
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
6776 save_CXXFLAGS
="$CXXFLAGS"
6777 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6778 # Do the check with the no- prefix removed since gcc silently
6779 # accepts any -Wno-* option on purpose
6780 case $real_option in
6781 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6782 *) option
=$real_option ;;
6784 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6787 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6788 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6789 $as_echo_n "(cached) " >&6
6792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6803 if ac_fn_cxx_try_compile
"$LINENO"; then :
6804 eval "$as_acx_Woption=yes"
6806 eval "$as_acx_Woption=no"
6808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6811 eval ac_res
=\$
$as_acx_Woption
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6813 $as_echo "$ac_res" >&6; }
6814 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6815 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6818 CXXFLAGS
="$save_CXXFLAGS"
6820 ac_cpp
='$CXXCPP $CPPFLAGS'
6821 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6827 ac_cpp
='$CPP $CPPFLAGS'
6828 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6829 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6833 save_CFLAGS
="$CFLAGS"
6834 for real_option
in -Wold-style-definition -Wc++-compat; do
6835 # Do the check with the no- prefix removed since gcc silently
6836 # accepts any -Wno-* option on purpose
6837 case $real_option in
6838 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6839 *) option
=$real_option ;;
6841 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6844 $as_echo_n "checking whether $CC supports $option... " >&6; }
6845 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6846 $as_echo_n "(cached) " >&6
6849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6860 if ac_fn_c_try_compile
"$LINENO"; then :
6861 eval "$as_acx_Woption=yes"
6863 eval "$as_acx_Woption=no"
6865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6868 eval ac_res
=\$
$as_acx_Woption
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6870 $as_echo "$ac_res" >&6; }
6871 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6872 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6875 CFLAGS
="$save_CFLAGS"
6877 ac_cpp
='$CXXCPP $CPPFLAGS'
6878 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6884 ac_cpp
='$CXXCPP $CPPFLAGS'
6885 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6889 # Do the check with the no- prefix removed from the warning options
6890 # since gcc silently accepts any -Wno-* option on purpose
6891 if test "$GXX" = yes; then :
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6893 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6894 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6897 save_CXXFLAGS
="$CXXFLAGS"
6898 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6910 if ac_fn_cxx_try_compile
"$LINENO"; then :
6911 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6913 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6916 CXXFLAGS
="$save_CXXFLAGS"
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6919 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6920 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6921 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6926 ac_cpp
='$CXXCPP $CPPFLAGS'
6927 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6928 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6929 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6933 ac_cpp
='$CXXCPP $CPPFLAGS'
6934 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6938 # Check whether --enable-werror-always was given.
6939 if test "${enable_werror_always+set}" = set; then :
6940 enableval
=$enable_werror_always;
6942 enable_werror_always
=no
6945 if test $enable_werror_always = yes; then :
6946 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6950 ac_cpp
='$CXXCPP $CPPFLAGS'
6951 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6957 # The above macros do nothing if the compiler is not GCC. However, the
6958 # Makefile has more goo to add other flags, so these variables are used
6959 # to enable warnings only for GCC.
6962 if test "x$GCC" = "xyes"; then
6963 warn_cflags
='$(GCC_WARN_CFLAGS)'
6964 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6969 # Disable exceptions and RTTI if building with g++
6971 ac_cpp
='$CPP $CPPFLAGS'
6972 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6977 save_CFLAGS
="$CFLAGS"
6978 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6979 # Do the check with the no- prefix removed since gcc silently
6980 # accepts any -Wno-* option on purpose
6981 case $real_option in
6982 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6983 *) option
=$real_option ;;
6985 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6988 $as_echo_n "checking whether $CC supports $option... " >&6; }
6989 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6990 $as_echo_n "(cached) " >&6
6993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
7004 if ac_fn_c_try_compile
"$LINENO"; then :
7005 eval "$as_acx_Woption=yes"
7007 eval "$as_acx_Woption=no"
7009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7012 eval ac_res
=\$
$as_acx_Woption
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7014 $as_echo "$ac_res" >&6; }
7015 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7016 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7019 CFLAGS
="$save_CFLAGS"
7021 ac_cpp
='$CXXCPP $CPPFLAGS'
7022 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7028 # Enable expensive internal checks
7030 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7034 # Check whether --enable-checking was given.
7035 if test "${enable_checking+set}" = set; then :
7036 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7039 # Determine the default checks.
7040 if test x
$is_release = x
; then
7041 ac_checking_flags
=yes,extra
7043 ac_checking_flags
=release
7047 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7048 for check
in release
$ac_checking_flags
7051 # these set all the flags to specific states
7052 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7053 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7054 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7055 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7056 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7057 ac_types_checking
=1 ;;
7058 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7059 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7060 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7061 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7062 ac_tree_checking
= ; ac_valgrind_checking
= ;
7063 ac_types_checking
= ;;
7064 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7065 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7066 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7067 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7068 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7069 ac_types_checking
=1 ;;
7070 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7071 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7072 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7073 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7074 ac_tree_checking
= ; ac_valgrind_checking
= ;
7075 ac_types_checking
= ;;
7076 # these enable particular checks
7077 assert
) ac_assert_checking
=1 ;;
7078 df
) ac_df_checking
=1 ;;
7079 extra
) ac_extra_checking
=1 ;;
7080 fold) ac_fold_checking
=1 ;;
7081 gc
) ac_gc_checking
=1 ;;
7082 gcac
) ac_gc_always_collect
=1 ;;
7083 gimple
) ac_gimple_checking
=1 ;;
7084 misc
) ac_checking
=1 ;;
7085 rtl
) ac_rtl_checking
=1 ;;
7086 rtlflag
) ac_rtlflag_checking
=1 ;;
7087 runtime
) ac_runtime_checking
=1 ;;
7088 tree
) ac_tree_checking
=1 ;;
7089 types
) ac_types_checking
=1 ;;
7090 valgrind
) ac_valgrind_checking
=1 ;;
7091 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7097 if test x
$ac_checking != x
; then
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_extra_checking != x
; then
7109 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7112 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7115 if test x
$ac_df_checking != x
; then
7117 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7120 if test x
$ac_assert_checking != x
; then
7122 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7125 if test x
$ac_gimple_checking != x
; then
7127 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7131 if test x
$ac_runtime_checking != x
; then
7133 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7136 if test x
$ac_tree_checking != x
; then
7138 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7142 if test x
$ac_types_checking != x
; then
7144 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7148 if test x
$ac_rtl_checking != x
; then
7150 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7153 if test x
$ac_rtlflag_checking != x
; then
7155 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7158 if test x
$ac_gc_checking != x
; then
7160 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7163 if test x
$ac_gc_always_collect != x
; then
7165 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7168 if test x
$ac_fold_checking != x
; then
7170 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7173 valgrind_path_defines
=
7176 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7177 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7185 # It is certainly possible that there's valgrind but no valgrind.h.
7186 # GCC relies on making annotations so we must have both.
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7188 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 #include <valgrind/memcheck.h>
7192 #ifndef VALGRIND_DISCARD
7193 #error VALGRIND_DISCARD not defined
7196 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7197 gcc_cv_header_valgrind_memcheck_h
=yes
7199 gcc_cv_header_valgrind_memcheck_h
=no
7201 rm -f conftest.err conftest.
$ac_ext
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7203 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7205 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 #include <memcheck.h>
7209 #ifndef VALGRIND_DISCARD
7210 #error VALGRIND_DISCARD not defined
7213 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7214 gcc_cv_header_memcheck_h
=yes
7216 gcc_cv_header_memcheck_h
=no
7218 rm -f conftest.err conftest.
$ac_ext
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7220 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7221 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7223 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7226 if test $gcc_cv_header_memcheck_h = yes; then
7228 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7232 if test x
$ac_valgrind_checking != x
; then
7234 # Prepare PATH_SEPARATOR.
7235 # The user is always right.
7236 if test "${PATH_SEPARATOR+set}" != set; then
7237 echo "#! /bin/sh" >conf$$.sh
7238 echo "exit 0" >>conf$$.sh
7240 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7248 # Find out how to test for executable files. Don't use a zero-byte file,
7249 # as systems may use methods other than mode bits to determine executability.
7250 cat >conf$$.
file <<_ASEOF
7254 chmod +x conf$$.
file
7255 if test -x conf$$.
file >/dev
/null
2>&1; then
7256 ac_executable_p
="test -x"
7258 ac_executable_p
="test -f"
7262 # Extract the first word of "valgrind", so it can be a program name with args.
7263 set dummy valgrind
; ac_word
=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7269 case "$valgrind_path" in
7271 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7274 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7275 for ac_dir
in $PATH; do
7277 test -z "$ac_dir" && ac_dir
=.
7278 for ac_exec_ext
in '' $ac_executable_extensions; do
7279 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7280 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7281 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7291 valgrind_path
="$ac_cv_path_valgrind_path"
7292 if test -n "$valgrind_path"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7294 $as_echo "$valgrind_path" >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7300 if test "x$valgrind_path" = "x" \
7301 ||
(test $have_valgrind_h = no \
7302 && test $gcc_cv_header_memcheck_h = no \
7303 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7304 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7306 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7307 valgrind_command
="$valgrind_path -q"
7309 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7315 # Enable code coverage collection
7316 # Check whether --enable-coverage was given.
7317 if test "${enable_coverage+set}" = set; then :
7318 enableval
=$enable_coverage; case "${enableval}" in
7320 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7323 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7326 # a.k.a. --disable-coverage
7330 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7339 # Check whether --enable-gather-detailed-mem-stats was given.
7340 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7341 enableval
=$enable_gather_detailed_mem_stats;
7343 enable_gather_detailed_mem_stats
=no
7346 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7348 cat >>confdefs.h
<<_ACEOF
7349 #define GATHER_STATISTICS $gather_stats
7353 # Check whether --enable-valgrind-annotations was given.
7354 if test "${enable_valgrind_annotations+set}" = set; then :
7355 enableval
=$enable_valgrind_annotations;
7357 enable_valgrind_annotations
=no
7360 if test x
$enable_valgrind_annotations != xno \
7361 ||
test x
$ac_valgrind_checking != x
; then
7362 if (test $have_valgrind_h = no \
7363 && test $gcc_cv_header_memcheck_h = no \
7364 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7365 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7368 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7372 # -------------------------------
7373 # Miscenalleous configure options
7374 # -------------------------------
7378 # Check whether --with-stabs was given.
7379 if test "${with_stabs+set}" = set; then :
7380 withval
=$with_stabs; stabs
="$with_stabs"
7386 # Determine whether or not multilibs are enabled.
7387 # Check whether --enable-multilib was given.
7388 if test "${enable_multilib+set}" = set; then :
7389 enableval
=$enable_multilib;
7396 # Determine whether or not multiarch is enabled.
7397 # Check whether --enable-multiarch was given.
7398 if test "${enable_multiarch+set}" = set; then :
7399 enableval
=$enable_multiarch; case "${enableval}" in
7400 yes|no|auto
) enable_multiarch
=$enableval;;
7401 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7404 enable_multiarch
=auto
7407 if test x
${enable_multiarch} = xauto
; then
7408 if test x
${with_native_system_header_dir} != x
; then
7409 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7412 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7413 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7418 $as_echo_n "checking for multiarch configuration... " >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7421 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7423 # needed for setting the multiarch name for soft-float/hard-float ABIs
7427 # Enable __cxa_atexit for C++.
7428 # Check whether --enable-__cxa_atexit was given.
7429 if test "${enable___cxa_atexit+set}" = set; then :
7430 enableval
=$enable___cxa_atexit;
7434 # Enable C extension for decimal float if target supports it.
7436 # Check whether --enable-decimal-float was given.
7437 if test "${enable_decimal_float+set}" = set; then :
7438 enableval
=$enable_decimal_float;
7439 case $enable_decimal_float in
7440 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7441 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7442 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7448 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7449 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7450 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7451 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7452 enable_decimal_float
=yes
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7456 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7457 enable_decimal_float
=no
7464 # x86's use BID format instead of DPD
7465 case x
$enable_decimal_float in
7468 i?
86*-*-* | x86_64
*-*-*)
7469 enable_decimal_float
=bid
7472 enable_decimal_float
=dpd
7475 default_decimal_float
=$enable_decimal_float
7478 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7479 # dependency on libdecnumber.
7480 default_decimal_float
=dpd
7487 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7489 cat >>confdefs.h
<<_ACEOF
7490 #define ENABLE_DECIMAL_FLOAT $dfp
7494 # Use default_decimal_float for dependency.
7495 enable_decimal_float
=$default_decimal_float
7497 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7499 cat >>confdefs.h
<<_ACEOF
7500 #define ENABLE_DECIMAL_BID_FORMAT $bid
7504 # Enable C extension for fixed-point arithmetic.
7505 # Check whether --enable-fixed-point was given.
7506 if test "${enable_fixed_point+set}" = set; then :
7507 enableval
=$enable_fixed_point;
7512 enable_fixed_point
=yes
7516 enable_fixed_point
=yes
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7520 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7521 enable_fixed_point
=no
7529 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7531 cat >>confdefs.h
<<_ACEOF
7532 #define ENABLE_FIXED_POINT $fixedpoint
7537 # Pass with no value to take the default
7538 # Pass with a value to specify a thread package
7539 # Check whether --enable-threads was given.
7540 if test "${enable_threads+set}" = set; then :
7541 enableval
=$enable_threads;
7547 # Check whether --enable-tls was given.
7548 if test "${enable_tls+set}" = set; then :
7549 enableval
=$enable_tls;
7552 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7553 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7561 # Check whether --enable-vtable-verify was given.
7562 if test "${enable_vtable_verify+set}" = set; then :
7563 enableval
=$enable_vtable_verify;
7565 enable_vtable_verify
=no
7568 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7570 cat >>confdefs.h
<<_ACEOF
7571 #define ENABLE_VTABLE_VERIFY $vtable_verify
7575 # Check whether --enable-objc-gc was given.
7576 if test "${enable_objc_gc+set}" = set; then :
7577 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7588 # Check whether --with-dwarf2 was given.
7589 if test "${with_dwarf2+set}" = set; then :
7590 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7596 # Check whether --enable-shared was given.
7597 if test "${enable_shared+set}" = set; then :
7598 enableval
=$enable_shared;
7599 case $enable_shared in
7603 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7604 for pkg
in $enableval; do
7605 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7620 # Check whether --with-specs was given.
7621 if test "${with_specs+set}" = set; then :
7622 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7632 # Check whether --with-pkgversion was given.
7633 if test "${with_pkgversion+set}" = set; then :
7634 withval
=$with_pkgversion; case "$withval" in
7635 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7637 *) PKGVERSION
="($withval) " ;;
7648 # Check whether --with-bugurl was given.
7649 if test "${with_bugurl+set}" = set; then :
7650 withval
=$with_bugurl; case "$withval" in
7651 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7654 *) BUGURL
="$withval"
7658 BUGURL
="https://gcc.gnu.org/bugs/"
7668 REPORT_BUGS_TO
="<$BUGURL>"
7669 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7676 # Sanity check enable_languages in case someone does not run the toplevel
7677 # configure # script.
7678 # Check whether --enable-languages was given.
7679 if test "${enable_languages+set}" = set; then :
7680 enableval
=$enable_languages; case ,${enable_languages}, in
7682 # go safe -- we cannot be much sure without the toplevel
7684 # analysis of which target libs are present and usable
7688 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7693 enable_languages
=c
,${enable_languages}
7701 if test x
"$enable_as_accelerator_for" != x
; then
7703 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7705 enable_as_accelerator
=yes
7708 # In this case we expect offload compiler to be built as native, so we
7709 # need to rename the driver to avoid clashes with host's drivers.
7710 program_transform_name
="s&^&${target}-&" ;;
7712 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7713 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7714 accel_dir_suffix
=/accel
/${target_noncanonical}
7715 real_target_noncanonical
=${enable_as_accelerator_for}
7721 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7722 tgt
=`echo $tgt | sed 's/=.*//'`
7724 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7730 if test x
"$offload_targets" = x
; then
7731 offload_targets
=$tgt
7733 offload_targets
="$offload_targets,$tgt"
7737 cat >>confdefs.h
<<_ACEOF
7738 #define OFFLOAD_TARGETS "$offload_targets"
7741 if test x
"$enable_offloading" != x
; then
7743 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7747 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7751 if test x
"$enable_hsa" = x1
; then
7753 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7758 # Check whether --with-multilib-list was given.
7759 if test "${with_multilib_list+set}" = set; then :
7760 withval
=$with_multilib_list; :
7762 with_multilib_list
=default
7766 # -------------------------
7767 # Checks for other programs
7768 # -------------------------
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7771 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7773 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7774 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7775 $as_echo_n "(cached) " >&6
7777 cat >conftest.
make <<\_ACEOF
7780 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7785 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7787 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7791 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7793 $as_echo "yes" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 SET_MAKE
="MAKE=${MAKE-make}"
7802 # Find some useful tools
7803 for ac_prog
in gawk mawk nawk
awk
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy
$ac_prog; ac_word
=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_AWK+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7812 if test -n "$AWK"; then
7813 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir
=.
7820 for ac_exec_ext
in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_AWK
="$ac_prog"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 if test -n "$AWK"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7835 $as_echo "$AWK" >&6; }
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7842 test -n "$AWK" && break
7845 # We need awk to create options.c and options.h.
7846 # Bail out if it's missing.
7848 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7852 $as_echo_n "checking whether ln -s works... " >&6; }
7853 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7856 rm -f conftestdata_t
7857 echo >conftestdata_f
7858 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7860 gcc_cv_prog_LN_S
="ln -s"
7862 if ln conftestdata_f conftestdata_t
2>/dev
/null
7866 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7868 gcc_cv_prog_LN_S
="cp -p"
7874 rm -f conftestdata_f conftestdata_t
7877 LN_S
="$gcc_cv_prog_LN_S"
7878 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7880 $as_echo "yes" >&6; }
7882 if test "$gcc_cv_prog_LN_S" = "ln"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7884 $as_echo "no, using ln" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7887 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7892 $as_echo_n "checking whether ln works... " >&6; }
7893 if test "${acx_cv_prog_LN+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7896 rm -f conftestdata_t
7897 echo >conftestdata_f
7898 if ln conftestdata_f conftestdata_t
2>/dev
/null
7904 rm -f conftestdata_f conftestdata_t
7907 if test $acx_cv_prog_LN = no
; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7910 $as_echo "no, using $LN" >&6; }
7912 LN
="$acx_cv_prog_LN"
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914 $as_echo "yes" >&6; }
7917 if test -n "$ac_tool_prefix"; then
7918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7919 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7925 if test -n "$RANLIB"; then
7926 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7932 test -z "$as_dir" && as_dir
=.
7933 for ac_exec_ext
in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 RANLIB
=$ac_cv_prog_RANLIB
7946 if test -n "$RANLIB"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7948 $as_echo "$RANLIB" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7956 if test -z "$ac_cv_prog_RANLIB"; then
7957 ac_ct_RANLIB
=$RANLIB
7958 # Extract the first word of "ranlib", so it can be a program name with args.
7959 set dummy ranlib
; ac_word
=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7965 if test -n "$ac_ct_RANLIB"; then
7966 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir
=.
7973 for ac_exec_ext
in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7986 if test -n "$ac_ct_RANLIB"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7988 $as_echo "$ac_ct_RANLIB" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7994 if test "x$ac_ct_RANLIB" = x
; then
7997 case $cross_compiling:$ac_tool_warned in
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001 ac_tool_warned
=yes ;;
8003 RANLIB
=$ac_ct_RANLIB
8006 RANLIB
="$ac_cv_prog_RANLIB"
8012 # Find a good install program. We prefer a C program (faster),
8013 # so one script is as good as another. But avoid the broken or
8014 # incompatible versions:
8015 # SysV /etc/install, /usr/sbin/install
8016 # SunOS /usr/etc/install
8017 # IRIX /sbin/install
8019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8021 # ./install, which can be erroneously created by make from ./install.sh.
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8023 $as_echo_n "checking for a BSD compatible install... " >&6; }
8024 if test -z "$INSTALL"; then
8025 if test "${ac_cv_path_install+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8028 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8029 for ac_dir
in $PATH; do
8030 # Account for people who put trailing slashes in PATH elements.
8032 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8034 # OSF1 and SCO ODT 3.0 have their own names for install.
8035 for ac_prog
in ginstall scoinst
install; do
8036 if test -f $ac_dir/$ac_prog; then
8037 if test $ac_prog = install &&
8038 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8039 # AIX install. It has an incompatible calling convention.
8040 # OSF/1 installbsd also uses dspmsg, but is usable.
8043 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8054 if test "${ac_cv_path_install+set}" = set; then
8055 INSTALL
="$ac_cv_path_install"
8057 # As a last resort, use the slow shell script. We don't cache a
8058 # path for INSTALL within a source directory, because that will
8059 # break other packages using the cache if that directory is
8060 # removed, or if the path is relative.
8061 INSTALL
="$ac_install_sh"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8065 $as_echo "$INSTALL" >&6; }
8067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8068 # It thinks the first close brace ends the variable substitution.
8069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8071 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8074 # See if cmp has --ignore-initial.
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8076 $as_echo_n "checking for cmp's capabilities... " >&6; }
8077 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8082 gcc_cv_prog_cmp_skip
=slowcompare
8083 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8084 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8087 gcc_cv_prog_cmp_skip
=gnucompare
8090 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8091 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8092 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8095 gcc_cv_prog_cmp_skip
=fastcompare
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8103 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8104 make_compare_target
=$gcc_cv_prog_cmp_skip
8108 # See if we have the mktemp command.
8109 # Extract the first word of "mktemp", so it can be a program name with args.
8110 set dummy mktemp
; ac_word
=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8116 if test -n "$have_mktemp_command"; then
8117 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8123 test -z "$as_dir" && as_dir
=.
8124 for ac_exec_ext
in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 ac_cv_prog_have_mktemp_command
="yes"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8137 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8138 if test -n "$have_mktemp_command"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8140 $as_echo "$have_mktemp_command" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8148 # See if makeinfo has been installed and is modern enough
8149 # that we can use it.
8151 # Extract the first word of "makeinfo", so it can be a program name with args.
8152 set dummy makeinfo
; ac_word
=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8158 if test -n "$MAKEINFO"; then
8159 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8165 test -z "$as_dir" && as_dir
=.
8166 for ac_exec_ext
in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_MAKEINFO
="makeinfo"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 MAKEINFO
=$ac_cv_prog_MAKEINFO
8179 if test -n "$MAKEINFO"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8181 $as_echo "$MAKEINFO" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8188 if test -n "$MAKEINFO"; then
8189 # Found it, now check the version.
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8191 $as_echo_n "checking for modern makeinfo... " >&6; }
8192 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8195 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8196 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8198 case $ac_prog_version in
8199 '') gcc_cv_prog_makeinfo_modern
=no
;;
8200 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8201 *) gcc_cv_prog_makeinfo_modern
=no
;;
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8206 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8208 gcc_cv_prog_makeinfo_modern
=no
8210 if test $gcc_cv_prog_makeinfo_modern = no
; then
8211 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8214 if test $gcc_cv_prog_makeinfo_modern = no
; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8216 *** Makeinfo is missing or too old.
8217 *** Info documentation will not be built." >&5
8218 $as_echo "$as_me: WARNING:
8219 *** Makeinfo is missing or too old.
8220 *** Info documentation will not be built." >&2;}
8227 # Is pod2man recent enough to regenerate manpages?
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8229 $as_echo_n "checking for recent Pod::Man... " >&6; }
8230 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8232 $as_echo "yes" >&6; }
8233 GENERATED_MANPAGES
=generated-manpages
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8241 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8246 # Extract the first word of "$ac_prog", so it can be a program name with args.
8247 set dummy
$ac_prog; ac_word
=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_FLEX+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8253 if test -n "$FLEX"; then
8254 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8260 test -z "$as_dir" && as_dir
=.
8261 for ac_exec_ext
in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_prog_FLEX
="$ac_prog"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 FLEX
=$ac_cv_prog_FLEX
8274 if test -n "$FLEX"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8276 $as_echo "$FLEX" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8283 test -n "$FLEX" && break
8285 test -n "$FLEX" || FLEX
="$MISSING flex"
8289 for ac_prog
in bison
8291 # Extract the first word of "$ac_prog", so it can be a program name with args.
8292 set dummy
$ac_prog; ac_word
=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_BISON+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8298 if test -n "$BISON"; then
8299 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8305 test -z "$as_dir" && as_dir
=.
8306 for ac_exec_ext
in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_BISON
="$ac_prog"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 BISON
=$ac_cv_prog_BISON
8319 if test -n "$BISON"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8321 $as_echo "$BISON" >&6; }
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8328 test -n "$BISON" && break
8330 test -n "$BISON" || BISON
="$MISSING bison"
8333 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8334 # check for build == host before using them.
8337 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8338 && test -d ..
/binutils
; then
8339 NM
='${objdir}/../binutils/nm-new'
8341 # Extract the first word of "nm", so it can be a program name with args.
8342 set dummy nm
; ac_word
=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if test "${ac_cv_prog_NM+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8348 if test -n "$NM"; then
8349 ac_cv_prog_NM
="$NM" # Let the user override the test.
8351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8355 test -z "$as_dir" && as_dir
=.
8356 for ac_exec_ext
in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8370 if test -n "$NM"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8372 $as_echo "$NM" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8382 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8383 && test -d ..
/binutils
; then
8384 AR
='${objdir}/../binutils/ar'
8386 # Extract the first word of "ar", so it can be a program name with args.
8387 set dummy
ar; ac_word
=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if test "${ac_cv_prog_AR+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8393 if test -n "$AR"; then
8394 ac_cv_prog_AR
="$AR" # Let the user override the test.
8396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8400 test -z "$as_dir" && as_dir
=.
8401 for ac_exec_ext
in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8415 if test -n "$AR"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8417 $as_echo "$AR" >&6; }
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8426 # The jit documentation looks better if built with sphinx, but can be
8427 # built with texinfo if sphinx is not available.
8428 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8429 # Extract the first word of "sphinx-build", so it can be a program name with args.
8430 set dummy sphinx-build
; ac_word
=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
8436 if test -n "$doc_build_sys"; then
8437 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8443 test -z "$as_dir" && as_dir
=.
8444 for ac_exec_ext
in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_prog_doc_build_sys
="sphinx"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8457 doc_build_sys
=$ac_cv_prog_doc_build_sys
8458 if test -n "$doc_build_sys"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8460 $as_echo "$doc_build_sys" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8468 # --------------------
8469 # Checks for C headers
8470 # --------------------
8472 # Need to reject headers which give warnings, so that the -Werror bootstrap
8473 # works later. *sigh* This needs to come before all header checks.
8475 ac_c_preproc_warn_flag
=yes
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8478 $as_echo_n "checking for ANSI C header files... " >&6; }
8479 if test "${ac_cv_header_stdc+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8497 if ac_fn_cxx_try_compile
"$LINENO"; then :
8498 ac_cv_header_stdc
=yes
8500 ac_cv_header_stdc
=no
8502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8504 if test $ac_cv_header_stdc = yes; then
8505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8512 $EGREP "memchr" >/dev
/null
2>&1; then :
8515 ac_cv_header_stdc
=no
8521 if test $ac_cv_header_stdc = yes; then
8522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8529 $EGREP "free" >/dev
/null
2>&1; then :
8532 ac_cv_header_stdc
=no
8538 if test $ac_cv_header_stdc = yes; then
8539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8540 if test "$cross_compiling" = yes; then :
8543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8547 #if ((' ' & 0x0FF) == 0x020)
8548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8551 # define ISLOWER(c) \
8552 (('a' <= (c) && (c) <= 'i') \
8553 || ('j' <= (c) && (c) <= 'r') \
8554 || ('s' <= (c) && (c) <= 'z'))
8555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8563 for (i = 0; i < 256; i++)
8564 if (XOR (islower (i), ISLOWER (i))
8565 || toupper (i) != TOUPPER (i))
8570 if ac_fn_cxx_try_run
"$LINENO"; then :
8573 ac_cv_header_stdc
=no
8575 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8576 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8582 $as_echo "$ac_cv_header_stdc" >&6; }
8583 if test $ac_cv_header_stdc = yes; then
8585 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8590 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8591 if test "${ac_cv_header_time+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
8594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #include <sys/types.h>
8597 #include <sys/time.h>
8603 if ((struct tm *) 0)
8609 if ac_fn_cxx_try_compile
"$LINENO"; then :
8610 ac_cv_header_time
=yes
8612 ac_cv_header_time
=no
8614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8617 $as_echo "$ac_cv_header_time" >&6; }
8618 if test $ac_cv_header_time = yes; then
8620 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8625 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8626 if test "${gcc_cv_header_string+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8632 #include <strings.h>
8641 if ac_fn_cxx_try_compile
"$LINENO"; then :
8642 gcc_cv_header_string
=yes
8644 gcc_cv_header_string
=no
8646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8649 $as_echo "$gcc_cv_header_string" >&6; }
8650 if test $gcc_cv_header_string = yes; then
8652 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8657 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8658 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 #include <sys/types.h>
8664 #include <sys/wait.h>
8666 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8669 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8677 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8682 if ac_fn_cxx_try_compile
"$LINENO"; then :
8683 ac_cv_header_sys_wait_h
=yes
8685 ac_cv_header_sys_wait_h
=no
8687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8690 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8691 if test $ac_cv_header_sys_wait_h = yes; then
8693 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8698 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8699 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
8702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 #include <sys/types.h>
8705 #include <termios.h>
8711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8712 $EGREP "yes" >/dev
/null
2>&1; then :
8713 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8715 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8721 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8723 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8725 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8726 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 #include <sys/types.h>
8732 #include <sys/ioctl.h>
8738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8739 $EGREP "yes" >/dev
/null
2>&1; then :
8740 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8742 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8748 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8750 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8752 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8757 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8758 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8759 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8760 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8762 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8763 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8764 eval as_val
=\$
$as_ac_Header
8765 if test "x$as_val" = x
""yes; then :
8766 cat >>confdefs.h
<<_ACEOF
8767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8774 # Check for thread headers.
8775 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8776 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8782 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8783 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8790 # These tests can't be done till we know if we have limits.h.
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8792 $as_echo_n "checking for CHAR_BIT... " >&6; }
8793 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 #ifdef HAVE_LIMITS_H
8805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 $EGREP "found" >/dev
/null
2>&1; then :
8807 gcc_cv_decl_char_bit
=yes
8809 gcc_cv_decl_char_bit
=no
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8816 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8817 if test $gcc_cv_decl_char_bit = no
; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8819 $as_echo_n "checking number of bits in a byte... " >&6; }
8820 if test "${gcc_cv_c_nbby+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8825 while test $i -lt 65; do
8826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8833 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8834 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8840 if ac_fn_cxx_try_compile
"$LINENO"; then :
8841 gcc_cv_c_nbby
=$i; break
8843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8846 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8850 $as_echo "$gcc_cv_c_nbby" >&6; }
8851 if test $gcc_cv_c_nbby = failed
; then
8852 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8855 cat >>confdefs.h
<<_ACEOF
8856 #define CHAR_BIT $gcc_cv_c_nbby
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8862 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8863 if test "${ac_cv_c_bigendian+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8866 ac_cv_c_bigendian
=unknown
8867 # See if we're dealing with a universal compiler.
8868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 #ifndef __APPLE_CC__
8871 not a universal capable compiler
8876 if ac_fn_cxx_try_compile
"$LINENO"; then :
8878 # Check for potential -arch flags. It is not universal unless
8879 # there are at least two -arch flags with different values.
8882 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8883 if test -n "$ac_prev"; then
8885 i?
86 | x86_64 | ppc | ppc64
)
8886 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8889 ac_cv_c_bigendian
=universal
8895 elif test "x$ac_word" = "x-arch"; then
8900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8901 if test $ac_cv_c_bigendian = unknown
; then
8902 # See if sys/param.h defines the BYTE_ORDER macro.
8903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #include <sys/types.h>
8906 #include <sys/param.h>
8911 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8912 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8921 if ac_fn_cxx_try_compile
"$LINENO"; then :
8922 # It does; now see whether it defined to BIG_ENDIAN or not.
8923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <sys/types.h>
8926 #include <sys/param.h>
8931 #if BYTE_ORDER != BIG_ENDIAN
8939 if ac_fn_cxx_try_compile
"$LINENO"; then :
8940 ac_cv_c_bigendian
=yes
8942 ac_cv_c_bigendian
=no
8944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8948 if test $ac_cv_c_bigendian = unknown
; then
8949 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8957 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8965 if ac_fn_cxx_try_compile
"$LINENO"; then :
8966 # It does; now see whether it defined to _BIG_ENDIAN or not.
8967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8982 if ac_fn_cxx_try_compile
"$LINENO"; then :
8983 ac_cv_c_bigendian
=yes
8985 ac_cv_c_bigendian
=no
8987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8991 if test $ac_cv_c_bigendian = unknown
; then
8992 # Compile a test program.
8993 if test "$cross_compiling" = yes; then :
8994 # Try to guess by grepping values from an object file.
8995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 short int ascii_mm[] =
8998 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8999 short int ascii_ii[] =
9000 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9001 int use_ascii (int i) {
9002 return ascii_mm[i] + ascii_ii[i];
9004 short int ebcdic_ii[] =
9005 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9006 short int ebcdic_mm[] =
9007 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9008 int use_ebcdic (int i) {
9009 return ebcdic_mm[i] + ebcdic_ii[i];
9016 return use_ascii (foo) == use_ebcdic (foo);
9021 if ac_fn_cxx_try_compile
"$LINENO"; then :
9022 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9023 ac_cv_c_bigendian
=yes
9025 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9026 if test "$ac_cv_c_bigendian" = unknown
; then
9027 ac_cv_c_bigendian
=no
9029 # finding both strings is unlikely to happen, but who knows?
9030 ac_cv_c_bigendian
=unknown
9034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 $ac_includes_default
9043 /* Are we little or big endian? From Harbison&Steele. */
9047 char c[sizeof (long int)];
9050 return u.c[sizeof (long int) - 1] == 1;
9056 if ac_fn_cxx_try_run
"$LINENO"; then :
9057 ac_cv_c_bigendian
=no
9059 ac_cv_c_bigendian
=yes
9061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9068 $as_echo "$ac_cv_c_bigendian" >&6; }
9069 case $ac_cv_c_bigendian in #(
9071 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9077 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9081 as_fn_error
"unknown endianness
9082 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9086 # ----------------------
9087 # Checks for C++ headers
9088 # ----------------------
9091 ac_cpp
='$CXXCPP $CPPFLAGS'
9092 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9096 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9097 if test -z "$CXXCPP"; then
9098 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9099 $as_echo_n "(cached) " >&6
9101 # Double quotes because CXXCPP needs to be expanded
9102 for CXXCPP
in "$CXX -E" "/lib/cpp"
9105 for ac_cxx_preproc_warn_flag
in '' yes
9107 # Use a header file that comes with gcc, so configuring glibc
9108 # with a fresh cross-compiler works.
9109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9110 # <limits.h> exists even on freestanding compilers.
9111 # On the NeXT, cc -E runs the code through the compiler's parser,
9112 # not just through cpp. "Syntax error" is here to catch this case.
9113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9116 # include <limits.h>
9118 # include <assert.h>
9122 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9125 # Broken: fails on valid input.
9128 rm -f conftest.err conftest.
$ac_ext
9130 # OK, works on sane cases. Now check whether nonexistent headers
9131 # can be detected and how.
9132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 #include <ac_nonexistent.h>
9136 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9137 # Broken: success on invalid input.
9140 # Passes both tests.
9144 rm -f conftest.err conftest.
$ac_ext
9147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9148 rm -f conftest.err conftest.
$ac_ext
9149 if $ac_preproc_ok; then :
9154 ac_cv_prog_CXXCPP
=$CXXCPP
9157 CXXCPP
=$ac_cv_prog_CXXCPP
9159 ac_cv_prog_CXXCPP
=$CXXCPP
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9162 $as_echo "$CXXCPP" >&6; }
9164 for ac_cxx_preproc_warn_flag
in '' yes
9166 # Use a header file that comes with gcc, so configuring glibc
9167 # with a fresh cross-compiler works.
9168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9169 # <limits.h> exists even on freestanding compilers.
9170 # On the NeXT, cc -E runs the code through the compiler's parser,
9171 # not just through cpp. "Syntax error" is here to catch this case.
9172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9175 # include <limits.h>
9177 # include <assert.h>
9181 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9184 # Broken: fails on valid input.
9187 rm -f conftest.err conftest.
$ac_ext
9189 # OK, works on sane cases. Now check whether nonexistent headers
9190 # can be detected and how.
9191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 #include <ac_nonexistent.h>
9195 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9196 # Broken: success on invalid input.
9199 # Passes both tests.
9203 rm -f conftest.err conftest.
$ac_ext
9206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9207 rm -f conftest.err conftest.
$ac_ext
9208 if $ac_preproc_ok; then :
9211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9214 See \`config.log' for more details." >&5
9215 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9216 See \`config.log' for more details." >&2;}; }
9220 ac_cpp
='$CXXCPP $CPPFLAGS'
9221 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9222 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9223 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9226 for ac_header
in unordered_map
9228 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9229 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9230 cat >>confdefs.h
<<_ACEOF
9231 #define HAVE_UNORDERED_MAP 1
9237 for ac_header
in tr1/unordered_map
9239 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9240 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9241 cat >>confdefs.h
<<_ACEOF
9242 #define HAVE_TR1_UNORDERED_MAP 1
9248 for ac_header
in ext
/hash_map
9250 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9251 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9252 cat >>confdefs.h
<<_ACEOF
9253 #define HAVE_EXT_HASH_MAP 1
9261 # Dependency checking.
9264 rm -rf .tst
2>/dev
/null
9265 mkdir .tst
2>/dev
/null
9266 if test -d .tst
; then
9271 rmdir .tst
2>/dev
/null
9273 DEPDIR
="${am__leading_dot}deps"
9275 ac_config_commands
="$ac_config_commands depdir"
9278 ac_config_commands
="$ac_config_commands gccdepdir"
9281 depcc
="$CXX" am_compiler_list
=
9283 am_depcomp
=$ac_aux_dir/depcomp
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9285 $as_echo_n "checking dependency style of $depcc... " >&6; }
9286 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9289 if test -f "$am_depcomp"; then
9290 # We make a subdir and do the tests there. Otherwise we can end up
9291 # making bogus files that we don't know about and never remove. For
9292 # instance it was reported that on HP-UX the gcc test will end up
9293 # making a dummy file named `D' -- because `-MD' means `put the output
9296 # Copy depcomp to subdir because otherwise we won't find it if we're
9297 # using a relative directory.
9298 cp "$am_depcomp" conftest.dir
9300 # We will build objects and dependencies in a subdirectory because
9301 # it helps to detect inapplicable dependency modes. For instance
9302 # both Tru64's cc and ICC support -MD to output dependencies as a
9303 # side effect of compilation, but ICC will put the dependencies in
9304 # the current directory while Tru64 will put them in the object
9308 am_cv_CXX_dependencies_compiler_type
=none
9309 if test "$am_compiler_list" = ""; then
9310 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9312 for depmode
in $am_compiler_list; do
9313 if test $depmode = none
; then break; fi
9315 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9316 # Setup a source with many dependencies, because some compilers
9317 # like to wrap large dependency lists on column 80 (with \), and
9318 # we should not choose a depcomp mode which is confused by this.
9320 # We need to recreate these files for each test, as the compiler may
9321 # overwrite some of them when testing with obscure command lines.
9322 # This happens at least with the AIX C compiler.
9324 for i
in 1 2 3 4 5 6; do
9325 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9326 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9327 # Solaris 8's {/usr,}/bin/sh.
9328 touch sub
/conftst
$i.h
9330 echo "include sub/conftest.Po" > confmf
9332 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9333 # mode. It turns out that the SunPro C++ compiler does not properly
9334 # handle `-M -o', and we need to detect this.
9335 depcmd
="depmode=$depmode \
9336 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9337 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9338 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9339 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9340 if env
$depcmd > conftest.err
2>&1 &&
9341 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9342 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9343 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9344 # icc doesn't choke on unknown options, it will just issue warnings
9345 # or remarks (even with -Werror). So we grep stderr for any message
9346 # that says an option was ignored or not supported.
9347 # When given -MP, icc 7.0 and 7.1 complain thusly:
9348 # icc: Command line warning: ignoring option '-M'; no argument required
9349 # The diagnosis changed in icc 8.0:
9350 # icc: Command line remark: option '-MP' not supported
9351 if (grep 'ignoring option' conftest.err ||
9352 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9353 am_cv_CXX_dependencies_compiler_type
=$depmode
9354 $as_echo "$as_me:$LINENO: success" >&5
9358 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9359 sed -e 's/^/| /' < conftest.err
>&5
9365 am_cv_CXX_dependencies_compiler_type
=none
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9370 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9371 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9372 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9373 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9383 # These libraries may be used by collect2.
9384 # We may need a special search path to get them linked.
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9386 $as_echo_n "checking for collect2 libraries... " >&6; }
9387 if test "${gcc_cv_collect2_libs+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
9391 for libs
in '' -lld -lmld \
9392 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9393 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9399 /* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
9414 if ac_fn_cxx_try_link
"$LINENO"; then :
9415 gcc_cv_collect2_libs
="$libs"; break
9417 rm -f core conftest.err conftest.
$ac_objext \
9418 conftest
$ac_exeext conftest.
$ac_ext
9421 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9424 $as_echo "$gcc_cv_collect2_libs" >&6; }
9425 case $gcc_cv_collect2_libs in
9427 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9431 # When building Ada code on Alpha, we need exc_resume which is usually in
9432 # -lexc. So test for it.
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9436 $as_echo_n "checking for library containing exc_resume... " >&6; }
9437 if test "${ac_cv_search_exc_resume+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9440 ac_func_search_save_LIBS
=$LIBS
9441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9454 return exc_resume ();
9459 for ac_lib
in '' exc
; do
9460 if test -z "$ac_lib"; then
9461 ac_res
="none required"
9464 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9466 if ac_fn_cxx_try_link
"$LINENO"; then :
9467 ac_cv_search_exc_resume
=$ac_res
9469 rm -f core conftest.err conftest.
$ac_objext \
9471 if test "${ac_cv_search_exc_resume+set}" = set; then :
9475 if test "${ac_cv_search_exc_resume+set}" = set; then :
9478 ac_cv_search_exc_resume
=no
9481 LIBS
=$ac_func_search_save_LIBS
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9484 $as_echo "$ac_cv_search_exc_resume" >&6; }
9485 ac_res
=$ac_cv_search_exc_resume
9486 if test "$ac_res" != no
; then :
9487 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9495 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9499 $as_echo_n "checking for library containing kstat_open... " >&6; }
9500 if test "${ac_cv_search_kstat_open+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9503 ac_func_search_save_LIBS
=$LIBS
9504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9507 /* Override any GCC internal prototype to avoid an error.
9508 Use char because int might match the return type of a GCC
9509 builtin and then its argument prototype would still apply. */
9517 return kstat_open ();
9522 for ac_lib
in '' kstat
; do
9523 if test -z "$ac_lib"; then
9524 ac_res
="none required"
9527 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9529 if ac_fn_cxx_try_link
"$LINENO"; then :
9530 ac_cv_search_kstat_open
=$ac_res
9532 rm -f core conftest.err conftest.
$ac_objext \
9534 if test "${ac_cv_search_kstat_open+set}" = set; then :
9538 if test "${ac_cv_search_kstat_open+set}" = set; then :
9541 ac_cv_search_kstat_open
=no
9544 LIBS
=$ac_func_search_save_LIBS
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9547 $as_echo "$ac_cv_search_kstat_open" >&6; }
9548 ac_res
=$ac_cv_search_kstat_open
9549 if test "$ac_res" != no
; then :
9550 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9554 EXTRA_GCC_LIBS
="$LIBS"
9558 # Some systems put ldexp and frexp in libm instead of libc; assume
9559 # they're both in the same place. jcf-dump needs them.
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9563 $as_echo_n "checking for library containing ldexp... " >&6; }
9564 if test "${ac_cv_search_ldexp+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9567 ac_func_search_save_LIBS
=$LIBS
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9586 for ac_lib
in '' m
; do
9587 if test -z "$ac_lib"; then
9588 ac_res
="none required"
9591 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9593 if ac_fn_cxx_try_link
"$LINENO"; then :
9594 ac_cv_search_ldexp
=$ac_res
9596 rm -f core conftest.err conftest.
$ac_objext \
9598 if test "${ac_cv_search_ldexp+set}" = set; then :
9602 if test "${ac_cv_search_ldexp+set}" = set; then :
9605 ac_cv_search_ldexp
=no
9608 LIBS
=$ac_func_search_save_LIBS
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9611 $as_echo "$ac_cv_search_ldexp" >&6; }
9612 ac_res
=$ac_cv_search_ldexp
9613 if test "$ac_res" != no
; then :
9614 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9622 # Use <inttypes.h> only if it exists,
9623 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9626 $as_echo_n "checking for inttypes.h... " >&6; }
9627 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 #define __STDC_FORMAT_MACROS
9633 #include <sys/types.h>
9634 #include <inttypes.h>
9646 if ac_fn_cxx_try_compile
"$LINENO"; then :
9647 gcc_cv_header_inttypes_h
=yes
9649 gcc_cv_header_inttypes_h
=no
9651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9655 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9656 if test $gcc_cv_header_inttypes_h = yes; then
9658 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9664 for ac_func
in times clock kill getrlimit setrlimit atoq \
9665 popen sysconf strsignal getrusage nl_langinfo \
9666 gettimeofday mbstowcs wcswidth mmap setlocale \
9667 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
9669 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9670 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9671 eval as_val
=\$
$as_ac_var
9672 if test "x$as_val" = x
""yes; then :
9673 cat >>confdefs.h
<<_ACEOF
9674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9681 if test x
$ac_cv_func_mbstowcs = xyes
; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9683 $as_echo_n "checking whether mbstowcs works... " >&6; }
9684 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9687 if test "$cross_compiling" = yes; then :
9688 gcc_cv_func_mbstowcs_works
=yes
9690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9699 if ac_fn_cxx_try_run
"$LINENO"; then :
9700 gcc_cv_func_mbstowcs_works
=yes
9702 gcc_cv_func_mbstowcs_works
=no
9704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9705 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9710 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9711 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9713 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9718 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9719 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9723 cat >>confdefs.h
<<_ACEOF
9729 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9730 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9734 cat >>confdefs.h
<<_ACEOF
9735 #define caddr_t char *
9742 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9743 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9744 gcc_header_sys_mman_h
=yes
9746 gcc_header_sys_mman_h
=no
9749 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9750 if test "x$ac_cv_func_mmap" = x
""yes; then :
9756 if test "$gcc_header_sys_mman_h" != yes \
9757 ||
test "$gcc_func_mmap" != yes; then
9758 gcc_cv_func_mmap_file
=no
9759 gcc_cv_func_mmap_dev_zero
=no
9760 gcc_cv_func_mmap_anon
=no
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9763 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9764 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9767 # Add a system to this blacklist if
9768 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9769 # memory area containing the same data that you'd get if you applied
9770 # read() to the same fd. The only system known to have a problem here
9771 # is VMS, where text files have record structure.
9774 gcc_cv_func_mmap_file
=no
;;
9776 gcc_cv_func_mmap_file
=yes;;
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9780 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9782 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9783 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9786 # Add a system to this blacklist if it has mmap() but /dev/zero
9787 # does not exist, or if mmapping /dev/zero does not give anonymous
9788 # zeroed pages with both the following properties:
9789 # 1. If you map N consecutive pages in with one call, and then
9790 # unmap any subset of those pages, the pages that were not
9791 # explicitly unmapped remain accessible.
9792 # 2. If you map two adjacent blocks of memory and then unmap them
9793 # both at once, they must both go away.
9794 # Systems known to be in this category are Windows (all variants),
9797 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9798 gcc_cv_func_mmap_dev_zero
=no
;;
9800 gcc_cv_func_mmap_dev_zero
=yes;;
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9804 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9806 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9808 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9809 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814 #include <sys/types.h>
9815 #include <sys/mman.h>
9818 #ifndef MAP_ANONYMOUS
9819 #define MAP_ANONYMOUS MAP_ANON
9825 int n = MAP_ANONYMOUS;
9830 if ac_fn_cxx_try_compile
"$LINENO"; then :
9831 gcc_cv_decl_map_anon
=yes
9833 gcc_cv_decl_map_anon
=no
9835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9838 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9840 if test $gcc_cv_decl_map_anon = no
; then
9841 gcc_cv_func_mmap_anon
=no
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9844 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9845 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9848 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9849 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9850 # doesn't give anonymous zeroed pages with the same properties listed
9851 # above for use of /dev/zero.
9852 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9854 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9855 gcc_cv_func_mmap_anon
=no
;;
9857 gcc_cv_func_mmap_anon
=yes;;
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9861 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9865 if test $gcc_cv_func_mmap_file = yes; then
9867 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9870 if test $gcc_cv_func_mmap_dev_zero = yes; then
9872 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9875 if test $gcc_cv_func_mmap_anon = yes; then
9877 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9884 # Under VMS, vfork works very differently than on Unix. The standard test
9885 # won't work, and it isn't easily adaptable. It makes more sense to
9887 ac_cv_func_vfork_works
=yes
9890 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9891 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9895 cat >>confdefs.h
<<_ACEOF
9901 for ac_header
in vfork.h
9903 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9904 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9905 cat >>confdefs.h
<<_ACEOF
9906 #define HAVE_VFORK_H 1
9912 for ac_func
in fork vfork
9914 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9915 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9916 eval as_val
=\$
$as_ac_var
9917 if test "x$as_val" = x
""yes; then :
9918 cat >>confdefs.h
<<_ACEOF
9919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9925 if test "x$ac_cv_func_fork" = xyes
; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9927 $as_echo_n "checking for working fork... " >&6; }
9928 if test "${ac_cv_func_fork_works+set}" = set; then :
9929 $as_echo_n "(cached) " >&6
9931 if test "$cross_compiling" = yes; then :
9932 ac_cv_func_fork_works
=cross
9934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936 $ac_includes_default
9941 /* By Ruediger Kuhlmann. */
9948 if ac_fn_cxx_try_run
"$LINENO"; then :
9949 ac_cv_func_fork_works
=yes
9951 ac_cv_func_fork_works
=no
9953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9959 $as_echo "$ac_cv_func_fork_works" >&6; }
9962 ac_cv_func_fork_works
=$ac_cv_func_fork
9964 if test "x$ac_cv_func_fork_works" = xcross
; then
9966 *-*-amigaos* |
*-*-msdosdjgpp*)
9967 # Override, as these systems have only a dummy fork() stub
9968 ac_cv_func_fork_works
=no
9971 ac_cv_func_fork_works
=yes
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9975 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9977 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9978 if test "x$ac_cv_func_vfork" = xyes
; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9980 $as_echo_n "checking for working vfork... " >&6; }
9981 if test "${ac_cv_func_vfork_works+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9984 if test "$cross_compiling" = yes; then :
9985 ac_cv_func_vfork_works
=cross
9987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 /* Thanks to Paul Eggert for this test. */
9990 $ac_includes_default
9991 #include <sys/wait.h>
9995 /* On some sparc systems, changes by the child to local and incoming
9996 argument registers are propagated back to the parent. The compiler
9997 is told about this with #include <vfork.h>, but some compilers
9998 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9999 static variable whose address is put into a register that is
10000 clobbered by the vfork. */
10003 sparc_address_test (int arg)
10005 sparc_address_test (arg) int arg;
10008 static pid_t child;
10026 pid_t parent = getpid ();
10029 sparc_address_test (0);
10034 /* Here is another test for sparc vfork register problems. This
10035 test uses lots of local variables, at least as many local
10036 variables as main has allocated so far including compiler
10037 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10038 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10039 reuse the register of parent for one of the local variables,
10040 since it will think that parent can't possibly be used any more
10041 in this routine. Assigning to the local variable will thus
10042 munge parent in the parent process. */
10044 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10045 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10046 /* Convince the compiler that p..p7 are live; otherwise, it might
10047 use the same hardware register for all 8 local variables. */
10048 if (p != p1 || p != p2 || p != p3 || p != p4
10049 || p != p5 || p != p6 || p != p7)
10052 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10053 from child file descriptors. If the child closes a descriptor
10054 before it execs or exits, this munges the parent's descriptor
10055 as well. Test for this by closing stdout in the child. */
10056 _exit(close(fileno(stdout)) != 0);
10061 while (wait(&status) != child)
10064 /* Was there some problem with vforking? */
10067 /* Did the child fail? (This shouldn't happen.) */
10070 /* Did the vfork/compiler bug occur? */
10071 || parent != getpid()
10073 /* Did the file descriptor bug occur? */
10074 || fstat(fileno(stdout), &st) != 0
10079 if ac_fn_cxx_try_run
"$LINENO"; then :
10080 ac_cv_func_vfork_works
=yes
10082 ac_cv_func_vfork_works
=no
10084 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10085 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10090 $as_echo "$ac_cv_func_vfork_works" >&6; }
10093 if test "x$ac_cv_func_fork_works" = xcross
; then
10094 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10096 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10099 if test "x$ac_cv_func_vfork_works" = xyes
; then
10101 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10105 $as_echo "#define vfork fork" >>confdefs.h
10108 if test "x$ac_cv_func_fork_works" = xyes
; then
10110 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10116 if test "X$prefix" = "XNONE"; then
10117 acl_final_prefix
="$ac_default_prefix"
10119 acl_final_prefix
="$prefix"
10121 if test "X$exec_prefix" = "XNONE"; then
10122 acl_final_exec_prefix
='${prefix}'
10124 acl_final_exec_prefix
="$exec_prefix"
10126 acl_save_prefix
="$prefix"
10127 prefix
="$acl_final_prefix"
10128 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10129 prefix
="$acl_save_prefix"
10132 # Check whether --with-gnu-ld was given.
10133 if test "${with_gnu_ld+set}" = set; then :
10134 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10139 # Prepare PATH_SEPARATOR.
10140 # The user is always right.
10141 if test "${PATH_SEPARATOR+set}" != set; then
10142 echo "#! /bin/sh" >conf$$.sh
10143 echo "exit 0" >>conf$$.sh
10145 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10153 if test "$GCC" = yes; then
10154 # Check if gcc -print-prog-name=ld gives a path.
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10156 $as_echo_n "checking for ld used by GCC... " >&6; }
10159 # gcc leaves a trailing carriage return which upsets mingw
10160 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10162 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10165 # Accept absolute paths.
10166 [\\/]* |
[A-Za-z
]:[\\/]*)
10167 re_direlt
='/[^/][^/]*/\.\./'
10168 # Canonicalize the path of ld
10169 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10170 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10171 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10173 test -z "$LD" && LD
="$ac_prog"
10176 # If it fails, then pretend we aren't using GCC.
10180 # If it is relative, then search for the first ld in PATH.
10181 with_gnu_ld
=unknown
10184 elif test "$with_gnu_ld" = yes; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10186 $as_echo_n "checking for GNU ld... " >&6; }
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10189 $as_echo_n "checking for non-GNU ld... " >&6; }
10191 if test "${acl_cv_path_LD+set}" = set; then :
10192 $as_echo_n "(cached) " >&6
10194 if test -z "$LD"; then
10195 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10196 for ac_dir
in $PATH; do
10197 test -z "$ac_dir" && ac_dir
=.
10198 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10199 acl_cv_path_LD
="$ac_dir/$ac_prog"
10200 # Check to see if the program is GNU ld. I'd rather use --version,
10201 # but apparently some GNU ld's only accept -v.
10202 # Break only if it was the GNU/non-GNU ld that we prefer.
10203 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10204 test "$with_gnu_ld" != no
&& break
10206 test "$with_gnu_ld" != yes && break
10212 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10216 LD
="$acl_cv_path_LD"
10217 if test -n "$LD"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10219 $as_echo "$LD" >&6; }
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10224 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10226 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10227 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10228 $as_echo_n "(cached) " >&6
10230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10231 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10232 acl_cv_prog_gnu_ld
=yes
10234 acl_cv_prog_gnu_ld
=no
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10238 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10239 with_gnu_ld
=$acl_cv_prog_gnu_ld
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10244 $as_echo_n "checking for shared library run path origin... " >&6; }
10245 if test "${acl_cv_rpath+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10249 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10250 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10252 rm -f .
/conftest.sh
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10257 $as_echo "$acl_cv_rpath" >&6; }
10259 libext
="$acl_cv_libext"
10260 shlibext
="$acl_cv_shlibext"
10261 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10262 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10263 hardcode_direct
="$acl_cv_hardcode_direct"
10264 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10265 # Check whether --enable-rpath was given.
10266 if test "${enable_rpath+set}" = set; then :
10267 enableval
=$enable_rpath; :
10281 acl_save_prefix
="$prefix"
10282 prefix
="$acl_final_prefix"
10283 acl_save_exec_prefix
="$exec_prefix"
10284 exec_prefix
="$acl_final_exec_prefix"
10286 eval additional_includedir
=\"$includedir\"
10287 eval additional_libdir
=\"$libdir\"
10289 exec_prefix
="$acl_save_exec_prefix"
10290 prefix
="$acl_save_prefix"
10293 # Check whether --with-libiconv-prefix was given.
10294 if test "${with_libiconv_prefix+set}" = set; then :
10295 withval
=$with_libiconv_prefix;
10296 if test "X$withval" = "Xno"; then
10299 if test "X$withval" = "X"; then
10301 acl_save_prefix
="$prefix"
10302 prefix
="$acl_final_prefix"
10303 acl_save_exec_prefix
="$exec_prefix"
10304 exec_prefix
="$acl_final_exec_prefix"
10306 eval additional_includedir
=\"$includedir\"
10307 eval additional_libdir
=\"$libdir\"
10309 exec_prefix
="$acl_save_exec_prefix"
10310 prefix
="$acl_save_prefix"
10313 additional_includedir
="$withval/include"
10314 additional_libdir
="$withval/lib"
10325 names_already_handled
=
10326 names_next_round
='iconv '
10327 while test -n "$names_next_round"; do
10328 names_this_round
="$names_next_round"
10330 for name
in $names_this_round; do
10332 for n
in $names_already_handled; do
10333 if test "$n" = "$name"; then
10334 already_handled
=yes
10338 if test -z "$already_handled"; then
10339 names_already_handled
="$names_already_handled $name"
10340 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10341 eval value
=\"\
$HAVE_LIB$uppername\"
10342 if test -n "$value"; then
10343 if test "$value" = yes; then
10344 eval value
=\"\
$LIB$uppername\"
10345 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10346 eval value
=\"\
$LTLIB$uppername\"
10347 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10356 if test $use_additional = yes; then
10357 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10358 found_dir
="$additional_libdir"
10359 found_so
="$additional_libdir/lib$name.$shlibext"
10360 if test -f "$additional_libdir/lib$name.la"; then
10361 found_la
="$additional_libdir/lib$name.la"
10364 if test -f "$additional_libdir/lib$name.$libext"; then
10365 found_dir
="$additional_libdir"
10366 found_a
="$additional_libdir/lib$name.$libext"
10367 if test -f "$additional_libdir/lib$name.la"; then
10368 found_la
="$additional_libdir/lib$name.la"
10373 if test "X$found_dir" = "X"; then
10374 for x
in $LDFLAGS $LTLIBICONV; do
10376 acl_save_prefix
="$prefix"
10377 prefix
="$acl_final_prefix"
10378 acl_save_exec_prefix
="$exec_prefix"
10379 exec_prefix
="$acl_final_exec_prefix"
10381 exec_prefix
="$acl_save_exec_prefix"
10382 prefix
="$acl_save_prefix"
10386 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10387 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10389 found_so
="$dir/lib$name.$shlibext"
10390 if test -f "$dir/lib$name.la"; then
10391 found_la
="$dir/lib$name.la"
10394 if test -f "$dir/lib$name.$libext"; then
10396 found_a
="$dir/lib$name.$libext"
10397 if test -f "$dir/lib$name.la"; then
10398 found_la
="$dir/lib$name.la"
10404 if test "X$found_dir" != "X"; then
10409 if test "X$found_dir" != "X"; then
10410 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10411 if test "X$found_so" != "X"; then
10412 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10413 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10416 for x
in $ltrpathdirs; do
10417 if test "X$x" = "X$found_dir"; then
10422 if test -z "$haveit"; then
10423 ltrpathdirs
="$ltrpathdirs $found_dir"
10425 if test "$hardcode_direct" = yes; then
10426 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10428 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10429 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10431 for x
in $rpathdirs; do
10432 if test "X$x" = "X$found_dir"; then
10437 if test -z "$haveit"; then
10438 rpathdirs
="$rpathdirs $found_dir"
10442 for x
in $LDFLAGS $LIBICONV; do
10444 acl_save_prefix
="$prefix"
10445 prefix
="$acl_final_prefix"
10446 acl_save_exec_prefix
="$exec_prefix"
10447 exec_prefix
="$acl_final_exec_prefix"
10449 exec_prefix
="$acl_save_exec_prefix"
10450 prefix
="$acl_save_prefix"
10452 if test "X$x" = "X-L$found_dir"; then
10457 if test -z "$haveit"; then
10458 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10460 if test "$hardcode_minus_L" != no
; then
10461 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10463 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10469 if test "X$found_a" != "X"; then
10470 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10472 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10475 additional_includedir
=
10476 case "$found_dir" in
10478 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10479 additional_includedir
="$basedir/include"
10482 if test "X$additional_includedir" != "X"; then
10483 if test "X$additional_includedir" != "X/usr/include"; then
10485 if test "X$additional_includedir" = "X/usr/local/include"; then
10486 if test -n "$GCC"; then
10488 linux
*) haveit
=yes;;
10492 if test -z "$haveit"; then
10493 for x
in $CPPFLAGS $INCICONV; do
10495 acl_save_prefix
="$prefix"
10496 prefix
="$acl_final_prefix"
10497 acl_save_exec_prefix
="$exec_prefix"
10498 exec_prefix
="$acl_final_exec_prefix"
10500 exec_prefix
="$acl_save_exec_prefix"
10501 prefix
="$acl_save_prefix"
10503 if test "X$x" = "X-I$additional_includedir"; then
10508 if test -z "$haveit"; then
10509 if test -d "$additional_includedir"; then
10510 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10516 if test -n "$found_la"; then
10517 save_libdir
="$libdir"
10518 case "$found_la" in
10519 */* |
*\\*) .
"$found_la" ;;
10520 *) .
"./$found_la" ;;
10522 libdir
="$save_libdir"
10523 for dep
in $dependency_libs; do
10526 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10527 if test "X$additional_libdir" != "X/usr/lib"; then
10529 if test "X$additional_libdir" = "X/usr/local/lib"; then
10530 if test -n "$GCC"; then
10532 linux
*) haveit
=yes;;
10536 if test -z "$haveit"; then
10538 for x
in $LDFLAGS $LIBICONV; do
10540 acl_save_prefix
="$prefix"
10541 prefix
="$acl_final_prefix"
10542 acl_save_exec_prefix
="$exec_prefix"
10543 exec_prefix
="$acl_final_exec_prefix"
10545 exec_prefix
="$acl_save_exec_prefix"
10546 prefix
="$acl_save_prefix"
10548 if test "X$x" = "X-L$additional_libdir"; then
10553 if test -z "$haveit"; then
10554 if test -d "$additional_libdir"; then
10555 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10559 for x
in $LDFLAGS $LTLIBICONV; do
10561 acl_save_prefix
="$prefix"
10562 prefix
="$acl_final_prefix"
10563 acl_save_exec_prefix
="$exec_prefix"
10564 exec_prefix
="$acl_final_exec_prefix"
10566 exec_prefix
="$acl_save_exec_prefix"
10567 prefix
="$acl_save_prefix"
10569 if test "X$x" = "X-L$additional_libdir"; then
10574 if test -z "$haveit"; then
10575 if test -d "$additional_libdir"; then
10576 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10583 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10584 if test "$enable_rpath" != no
; then
10586 for x
in $rpathdirs; do
10587 if test "X$x" = "X$dir"; then
10592 if test -z "$haveit"; then
10593 rpathdirs
="$rpathdirs $dir"
10596 for x
in $ltrpathdirs; do
10597 if test "X$x" = "X$dir"; then
10602 if test -z "$haveit"; then
10603 ltrpathdirs
="$ltrpathdirs $dir"
10608 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10611 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10614 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10615 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10621 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10622 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10628 if test "X$rpathdirs" != "X"; then
10629 if test -n "$hardcode_libdir_separator"; then
10631 for found_dir
in $rpathdirs; do
10632 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10634 acl_save_libdir
="$libdir"
10636 eval flag
=\"$hardcode_libdir_flag_spec\"
10637 libdir
="$acl_save_libdir"
10638 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10640 for found_dir
in $rpathdirs; do
10641 acl_save_libdir
="$libdir"
10642 libdir
="$found_dir"
10643 eval flag
=\"$hardcode_libdir_flag_spec\"
10644 libdir
="$acl_save_libdir"
10645 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10649 if test "X$ltrpathdirs" != "X"; then
10650 for found_dir
in $ltrpathdirs; do
10651 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10662 $as_echo_n "checking for iconv... " >&6; }
10663 if test "${am_cv_func_iconv+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10667 am_cv_func_iconv
="no, consider installing GNU libiconv"
10669 am_save_CPPFLAGS
="$CPPFLAGS"
10670 CPPFLAGS
="$CPPFLAGS $INCICONV"
10671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 #include <stdlib.h>
10678 iconv_t cd = iconv_open("","");
10679 iconv(cd,NULL,NULL,NULL,NULL);
10685 if ac_fn_cxx_try_link
"$LINENO"; then :
10686 am_cv_func_iconv
=yes
10688 rm -f core conftest.err conftest.
$ac_objext \
10689 conftest
$ac_exeext conftest.
$ac_ext
10690 CPPFLAGS
="$am_save_CPPFLAGS"
10692 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10693 for _libs
in .libs _libs
; do
10694 am_save_CPPFLAGS
="$CPPFLAGS"
10695 am_save_LIBS
="$LIBS"
10696 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10697 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 #include <stdlib.h>
10705 iconv_t cd = iconv_open("","");
10706 iconv(cd,NULL,NULL,NULL,NULL);
10712 if ac_fn_cxx_try_link
"$LINENO"; then :
10713 INCICONV
="-I../libiconv/include"
10714 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10715 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10716 am_cv_lib_iconv
=yes
10717 am_cv_func_iconv
=yes
10719 rm -f core conftest.err conftest.
$ac_objext \
10720 conftest
$ac_exeext conftest.
$ac_ext
10721 CPPFLAGS
="$am_save_CPPFLAGS"
10722 LIBS
="$am_save_LIBS"
10723 if test "$am_cv_func_iconv" = "yes"; then
10729 if test "$am_cv_func_iconv" != yes; then
10730 am_save_CPPFLAGS
="$CPPFLAGS"
10731 am_save_LIBS
="$LIBS"
10732 CPPFLAGS
="$LIBS $INCICONV"
10733 LIBS
="$LIBS $LIBICONV"
10734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 #include <stdlib.h>
10741 iconv_t cd = iconv_open("","");
10742 iconv(cd,NULL,NULL,NULL,NULL);
10748 if ac_fn_cxx_try_link
"$LINENO"; then :
10749 am_cv_lib_iconv
=yes
10750 am_cv_func_iconv
=yes
10752 rm -f core conftest.err conftest.
$ac_objext \
10753 conftest
$ac_exeext conftest.
$ac_ext
10754 CPPFLAGS
="$am_save_CPPFLAGS"
10755 LIBS
="$am_save_LIBS"
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10760 $as_echo "$am_cv_func_iconv" >&6; }
10761 if test "$am_cv_func_iconv" = yes; then
10763 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10766 if test "$am_cv_lib_iconv" = yes; then
10768 for element
in $INCICONV; do
10770 for x
in $CPPFLAGS; do
10772 acl_save_prefix
="$prefix"
10773 prefix
="$acl_final_prefix"
10774 acl_save_exec_prefix
="$exec_prefix"
10775 exec_prefix
="$acl_final_exec_prefix"
10777 exec_prefix
="$acl_save_exec_prefix"
10778 prefix
="$acl_save_prefix"
10780 if test "X$x" = "X$element"; then
10785 if test -z "$haveit"; then
10786 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10791 $as_echo_n "checking how to link with libiconv... " >&6; }
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10793 $as_echo "$LIBICONV" >&6; }
10801 if test "$am_cv_func_iconv" = yes; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10803 $as_echo_n "checking for iconv declaration... " >&6; }
10804 if test "${am_cv_proto_iconv+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10811 #include <stdlib.h>
10817 #if defined(__STDC__) || defined(__cplusplus)
10818 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10831 if ac_fn_cxx_try_compile
"$LINENO"; then :
10832 am_cv_proto_iconv_arg1
=""
10834 am_cv_proto_iconv_arg1
="const"
10836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10837 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);"
10840 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10842 }$am_cv_proto_iconv" >&5
10844 }$am_cv_proto_iconv" >&6; }
10846 cat >>confdefs.h
<<_ACEOF
10847 #define ICONV_CONST $am_cv_proto_iconv_arg1
10853 # Until we have in-tree GNU iconv:
10855 if test -f "$LTLIBICONV"; then
10856 LIBICONV_DEP
=$LTLIBICONV
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10862 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10863 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10868 #include <locale.h>
10877 if ac_fn_cxx_try_link
"$LINENO"; then :
10878 am_cv_val_LC_MESSAGES
=yes
10880 am_cv_val_LC_MESSAGES
=no
10882 rm -f core conftest.err conftest.
$ac_objext \
10883 conftest
$ac_exeext conftest.
$ac_ext
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10886 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10887 if test $am_cv_val_LC_MESSAGES = yes; then
10889 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10896 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10897 if test "${am_cv_langinfo_codeset+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10902 #include <langinfo.h>
10906 char* cs = nl_langinfo(CODESET);
10911 if ac_fn_cxx_try_link
"$LINENO"; then :
10912 am_cv_langinfo_codeset
=yes
10914 am_cv_langinfo_codeset
=no
10916 rm -f core conftest.err conftest.
$ac_objext \
10917 conftest
$ac_exeext conftest.
$ac_ext
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10921 $as_echo "$am_cv_langinfo_codeset" >&6; }
10922 if test $am_cv_langinfo_codeset = yes; then
10924 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10929 # We will need to find libiberty.h and ansidecl.h
10930 saved_CFLAGS
="$CFLAGS"
10931 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10932 saved_CXXFLAGS
="$CXXFLAGS"
10933 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10935 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10936 # normal autoconf function for these. But force definition of
10937 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10938 # basename handling in libiberty.h.
10939 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10940 #undef HAVE_DECL_BASENAME
10941 #define HAVE_DECL_BASENAME 1
10942 #include \"ansidecl.h\"
10943 #include \"system.h\"
10945 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10951 cat >>confdefs.h
<<_ACEOF
10952 #define HAVE_DECL_BASENAME $ac_have_decl
10954 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10955 #undef HAVE_DECL_BASENAME
10956 #define HAVE_DECL_BASENAME 1
10957 #include \"ansidecl.h\"
10958 #include \"system.h\"
10960 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10966 cat >>confdefs.h
<<_ACEOF
10967 #define HAVE_DECL_STRSTR $ac_have_decl
10971 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10972 madvise stpcpy strnlen strsignal strverscmp \
10973 strtol strtoul strtoll strtoull setenv unsetenv \
10974 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10975 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
10977 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10979 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10980 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10981 $as_echo_n "(cached) " >&6
10983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10986 #define $ac_tr_decl 1
10988 #include "ansidecl.h"
10989 #include "system.h"
10995 char *(*pfn) = (char *(*)) $ac_func ;
11001 if ac_fn_cxx_try_compile
"$LINENO"; then :
11002 eval "gcc_cv_have_decl_$ac_func=yes"
11004 eval "gcc_cv_have_decl_$ac_func=no"
11006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11009 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11011 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11012 #define $ac_tr_decl 1
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11018 #define $ac_tr_decl 0
11026 for ac_func
in getrlimit setrlimit getrusage
11028 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11030 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11031 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11032 $as_echo_n "(cached) " >&6
11034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11037 #define $ac_tr_decl 1
11039 #include "ansidecl.h"
11040 #include "system.h"
11041 #ifdef HAVE_SYS_RESOURCE_H
11042 #include <sys/resource.h>
11050 char *(*pfn) = (char *(*)) $ac_func ;
11056 if ac_fn_cxx_try_compile
"$LINENO"; then :
11057 eval "gcc_cv_have_decl_$ac_func=yes"
11059 eval "gcc_cv_have_decl_$ac_func=no"
11061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11064 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11066 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11067 #define $ac_tr_decl 1
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11073 #define $ac_tr_decl 0
11081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11084 #include "ansidecl.h"
11085 #include "system.h"
11086 #ifdef HAVE_SYS_RESOURCE_H
11087 #include <sys/resource.h>
11098 if ac_fn_cxx_try_compile
"$LINENO"; then :
11102 $as_echo "#define rlim_t long" >>confdefs.h
11105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11107 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11108 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11109 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11110 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11111 for ac_func
in ldgetname
11113 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11115 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11116 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11117 $as_echo_n "(cached) " >&6
11119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11122 #define $ac_tr_decl 1
11124 #include "ansidecl.h"
11125 #include "system.h"
11126 #ifdef HAVE_LDFCN_H
11137 char *(*pfn) = (char *(*)) $ac_func ;
11143 if ac_fn_cxx_try_compile
"$LINENO"; then :
11144 eval "gcc_cv_have_decl_$ac_func=yes"
11146 eval "gcc_cv_have_decl_$ac_func=no"
11148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11151 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11154 #define $ac_tr_decl 1
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11160 #define $ac_tr_decl 0
11168 for ac_func
in times
11170 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11172 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11173 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11174 $as_echo_n "(cached) " >&6
11176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11179 #define $ac_tr_decl 1
11181 #include "ansidecl.h"
11182 #include "system.h"
11183 #ifdef HAVE_SYS_TIMES_H
11184 #include <sys/times.h>
11192 char *(*pfn) = (char *(*)) $ac_func ;
11198 if ac_fn_cxx_try_compile
"$LINENO"; then :
11199 eval "gcc_cv_have_decl_$ac_func=yes"
11201 eval "gcc_cv_have_decl_$ac_func=no"
11203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11206 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11208 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11209 #define $ac_tr_decl 1
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11215 #define $ac_tr_decl 0
11223 for ac_func
in sigaltstack
11225 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11227 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11228 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11229 $as_echo_n "(cached) " >&6
11231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11234 #define $ac_tr_decl 1
11236 #include "ansidecl.h"
11237 #include "system.h"
11238 #include <signal.h>
11245 char *(*pfn) = (char *(*)) $ac_func ;
11251 if ac_fn_cxx_try_compile
"$LINENO"; then :
11252 eval "gcc_cv_have_decl_$ac_func=yes"
11254 eval "gcc_cv_have_decl_$ac_func=no"
11256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11259 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11261 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11262 #define $ac_tr_decl 1
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11268 #define $ac_tr_decl 0
11276 # More time-related stuff.
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11278 $as_echo_n "checking for struct tms... " >&6; }
11279 if test "${ac_cv_struct_tms+set}" = set; then :
11280 $as_echo_n "(cached) " >&6
11283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11286 #include "ansidecl.h"
11287 #include "system.h"
11288 #ifdef HAVE_SYS_TIMES_H
11289 #include <sys/times.h>
11300 if ac_fn_cxx_try_compile
"$LINENO"; then :
11301 ac_cv_struct_tms
=yes
11303 ac_cv_struct_tms
=no
11305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11308 $as_echo "$ac_cv_struct_tms" >&6; }
11309 if test $ac_cv_struct_tms = yes; then
11311 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11315 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11316 # revisit after autoconf 2.50.
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11318 $as_echo_n "checking for clock_t... " >&6; }
11319 if test "${gcc_cv_type_clock_t+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11326 #include "ansidecl.h"
11327 #include "system.h"
11337 if ac_fn_cxx_try_compile
"$LINENO"; then :
11338 gcc_cv_type_clock_t
=yes
11340 gcc_cv_type_clock_t
=no
11342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11345 $as_echo "$gcc_cv_type_clock_t" >&6; }
11346 if test $gcc_cv_type_clock_t = yes; then
11348 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11352 # Check if F_SETLKW is supported by fcntl.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11354 $as_echo_n "checking for F_SETLKW... " >&6; }
11355 if test "${ac_cv_f_setlkw+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11372 return fcntl (1, F_SETLKW, &fl);
11377 if ac_fn_cxx_try_compile
"$LINENO"; then :
11382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11385 $as_echo "$ac_cv_f_setlkw" >&6; }
11386 if test $ac_cv_f_setlkw = yes; then
11388 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11392 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11393 CFLAGS
="$saved_CFLAGS"
11394 CXXFLAGS
="$saved_CXXFLAGS"
11396 # mkdir takes a single argument on some systems.
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11398 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11399 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11405 #include <sys/types.h>
11406 #ifdef HAVE_SYS_STAT_H
11407 # include <sys/stat.h>
11409 #ifdef HAVE_UNISTD_H
11410 # include <unistd.h>
11412 #ifdef HAVE_DIRECT_H
11413 # include <direct.h>
11423 if ac_fn_cxx_try_compile
"$LINENO"; then :
11424 gcc_cv_mkdir_takes_one_arg
=no
11426 gcc_cv_mkdir_takes_one_arg
=yes
11428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11431 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11432 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11434 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11445 # With Setjmp/Longjmp based exception handling.
11446 # Check whether --enable-sjlj-exceptions was given.
11447 if test "${enable_sjlj_exceptions+set}" = set; then :
11448 enableval
=$enable_sjlj_exceptions; case $target in
11450 if test $enableval != yes; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11452 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11457 force_sjlj_exceptions
=yes
11461 force_sjlj_exceptions
=yes
11465 force_sjlj_exceptions
=yes
11469 force_sjlj_exceptions
=no
11474 if test $force_sjlj_exceptions = yes; then
11475 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11477 cat >>confdefs.h
<<_ACEOF
11478 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11483 # --------------------------------------------------------
11484 # Build, host, and target specific configuration fragments
11485 # --------------------------------------------------------
11487 # Collect build-machine-specific information.
11488 .
${srcdir}/config.build
11490 # Collect host-machine-specific information.
11491 .
${srcdir}/config.
host
11495 # Collect target-machine-specific information.
11496 .
${srcdir}/config.gcc
11498 extra_objs
="${host_extra_objs} ${extra_objs}"
11499 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11501 # Default the target-machine variables that were not explicitly set.
11502 if test x
"$tm_file" = x
11503 then tm_file
=$cpu_type/$cpu_type.h
; fi
11505 if test x
"$extra_headers" = x
11506 then extra_headers
=; fi
11508 if test x
$md_file = x
11509 then md_file
=$cpu_type/$cpu_type.md
; fi
11511 if test x
$out_file = x
11512 then out_file
=$cpu_type/$cpu_type.c
; fi
11514 if test x
"$tmake_file" = x
11515 then tmake_file
=$cpu_type/t-
$cpu_type
11518 # Support --enable-initfini-array.
11519 if test x
$enable_initfini_array != xno
; then
11520 tm_file
="${tm_file} initfini-array.h"
11523 if test x
"$dwarf2" = xyes
11524 then tm_file
="$tm_file tm-dwarf2.h"
11527 # Say what files are being used for the output code and MD file.
11528 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11529 echo "Using \`$srcdir/config/$md_file' as machine description file."
11531 # If any of the xm_file variables contain nonexistent files, warn
11532 # about them and drop them.
11535 for x
in $build_xm_file; do
11536 if test -f $srcdir/config
/$x
11538 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11539 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11542 build_xm_file
="$bx"
11545 for x
in $host_xm_file; do
11546 if test -f $srcdir/config
/$x
11548 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11549 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11555 for x
in $xm_file; do
11556 if test -f $srcdir/config
/$x
11558 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11559 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11565 for f
in $tm_file; do
11568 if test $count = ax
; then
11569 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11571 echo "Using the following target machine macro files:"
11572 for f
in $tm_file; do
11573 echo " $srcdir/config/$f"
11577 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11579 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11583 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11585 cat >>confdefs.h
<<_ACEOF
11586 #define HAVE_GNU_LD $gnu_ld_bool
11590 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11592 cat >>confdefs.h
<<_ACEOF
11593 #define HAVE_GNU_AS $gnu_as_bool
11598 for f
in $host_xm_file; do
11601 if test $count = a
; then
11603 elif test $count = ax
; then
11604 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11606 echo "Using the following host machine macro files:"
11607 for f
in $host_xm_file; do
11608 echo " $srcdir/config/$f"
11611 echo "Using ${out_host_hook_obj} for host machine hooks."
11613 if test "$host_xm_file" != "$build_xm_file"; then
11615 for f
in $build_xm_file; do
11618 if test $count = a
; then
11620 elif test $count = ax
; then
11621 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11623 echo "Using the following build machine macro files:"
11624 for f
in $build_xm_file; do
11625 echo " $srcdir/config/$f"
11630 if test -n "$configured_native_system_header_dir"; then
11631 native_system_header_dir
=$configured_native_system_header_dir
11633 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11637 powerpc
*-*-darwin*)
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11639 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11640 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11646 #include <sys/cdefs.h>
11647 #include <sys/signal.h>
11648 #include <ucontext.h>
11649 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11652 if ac_fn_cxx_try_compile
"$LINENO"; then :
11653 gcc_cv_mcontext_underscores
=no
11655 gcc_cv_mcontext_underscores
=yes
11657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11660 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11661 if test $gcc_cv_mcontext_underscores = yes; then
11663 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11673 # Check if a valid thread package
11674 case ${enable_threads} in
11677 target_thread_file
='single'
11681 target_thread_file
='single'
11683 aix | dce | lynx | mipssde | posix | rtems | \
11684 single | tpf | vxworks | win32
)
11685 target_thread_file
=${enable_threads}
11688 echo "${enable_threads} is an unknown thread package" 1>&2
11693 if test x
${thread_file} = x
; then
11694 # No thread file set by target-specific clauses in config.gcc,
11695 # so use file chosen by default logic above
11696 thread_file
=${target_thread_file}
11704 if test x
$enable___cxa_atexit = xyes || \
11705 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11706 if test x
$host = x
$target; then
11708 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11709 # keyed to flag_use_cxa_atexit
11717 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11718 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11721 echo "__cxa_atexit can't be enabled on this target"
11727 # We can't check for __cxa_atexit when building a cross, so assume
11731 if test x
$use_cxa_atexit = xyes
; then
11733 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11738 # Look for a file containing extra machine modes.
11739 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11740 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11743 cat >>confdefs.h
<<_ACEOF
11744 #define EXTRA_MODES_FILE "config/$extra_modes"
11749 # Convert extra_options into a form suitable for Makefile use.
11752 for f
in $extra_options; do
11753 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11754 all_opt_files
="$all_opt_files $srcdir/config/$f"
11758 # auto-host.h is the file containing items generated by autoconf and is
11759 # the first file included by config.h.
11760 # If host=build, it is correct to have bconfig include auto-host.h
11761 # as well. If host!=build, we are in error and need to do more
11762 # work to find out the build config parameters.
11763 if test x
$host = x
$build
11765 build_auto
=auto-host.h
11767 # We create a subdir, then run autoconf in the subdir.
11768 # To prevent recursion we set host and build for the new
11769 # invocation of configure to the build for this invocation
11776 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11777 *) realsrcdir
=..
/${srcdir};;
11779 # Clearing GMPINC is necessary to prevent host headers being
11780 # used by the build compiler. Defining GENERATOR_FILE stops
11781 # system.h from including gmp.h.
11782 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11783 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11784 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11785 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11786 ${realsrcdir}/configure \
11787 --enable-languages=${enable_languages-all} \
11788 --target=$target_alias --host=$build_alias --build=$build_alias
11790 # We just finished tests for the build machine, so rename
11791 # the file auto-build.h in the gcc directory.
11792 mv auto-host.h ..
/auto-build.h
11795 build_auto
=auto-build.h
11799 tm_file
="${tm_file} defaults.h"
11800 tm_p_file
="${tm_p_file} tm-preds.h"
11801 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11802 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11803 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11804 # put this back in temporarily.
11805 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11811 # Compile in configure arguments.
11812 if test -f configargs.h
; then
11813 # Being re-configured.
11814 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11815 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11817 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11820 # Double all backslashes and backslash all quotes to turn
11821 # gcc_config_arguments into a C string.
11822 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11823 $gcc_config_arguments
11825 gcc_config_arguments_str
=`cat conftest.out`
11828 cat > configargs.h
<<EOF
11829 /* Generated automatically. */
11830 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11831 static const char thread_model[] = "$thread_file";
11833 static const struct {
11834 const char *name, *value;
11835 } configure_default_options[] = $configure_default_options;
11838 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11839 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11840 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11841 if test -f $srcdir/REVISION
; then
11842 gcc_REVISION
=`cat $srcdir/REVISION`
11846 cat > plugin-version.h
<<EOF
11847 #include "configargs.h"
11849 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11850 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11851 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11852 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11854 static char basever[] = "$gcc_BASEVER";
11855 static char datestamp[] = "$gcc_DATESTAMP";
11856 static char devphase[] = "$gcc_DEVPHASE";
11857 static char revision[] = "$gcc_REVISION";
11859 /* FIXME plugins: We should make the version information more precise.
11860 One way to do is to add a checksum. */
11862 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11863 devphase, revision,
11864 configuration_arguments};
11867 # Determine what GCC version number to use in filesystem paths.
11869 get_gcc_base_ver
="cat"
11871 # Check whether --with-gcc-major-version-only was given.
11872 if test "${with_gcc_major_version_only+set}" = set; then :
11873 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
11874 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11882 # Internationalization
11883 # If we haven't got the data from the intl directory,
11884 # assume NLS is disabled.
11893 if test -f ..
/intl
/config.intl
; then
11894 . ..
/intl
/config.intl
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11897 $as_echo_n "checking whether NLS is requested... " >&6; }
11898 if test x
"$USE_NLS" != xyes
; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11903 $as_echo "yes" >&6; }
11905 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11909 $as_echo_n "checking for catalogs to be installed... " >&6; }
11910 # Look for .po and .gmo files in the source directory.
11913 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11914 # If there aren't any .gmo files the shell will give us the
11915 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11917 case "$cat" in *\
**)
11920 # The quadruple backslash is collapsed to a double backslash
11921 # by the backticks, then collapsed again by the double quotes,
11922 # leaving us with one backslash in the sed expression (right
11923 # before the dot that mustn't act as a wildcard).
11924 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11925 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11926 # The user is allowed to set LINGUAS to a list of languages to
11927 # install catalogs for. If it's empty that means "all of them."
11928 if test "x$LINGUAS" = x
; then
11929 CATALOGS
="$CATALOGS $cat"
11930 XLINGUAS
="$XLINGUAS $lang"
11932 case "$LINGUAS" in *$lang*)
11933 CATALOGS
="$CATALOGS $cat"
11934 XLINGUAS
="$XLINGUAS $lang"
11939 LINGUAS
="$XLINGUAS"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11941 $as_echo "$LINGUAS" >&6; }
11954 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11955 # -liconv on the link line twice.
11956 case "$LIBINTL" in *$LIBICONV*)
11960 # Check whether --enable-secureplt was given.
11961 if test "${enable_secureplt+set}" = set; then :
11962 enableval
=$enable_secureplt;
11966 # Check whether --enable-leading-mingw64-underscores was given.
11967 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11968 enableval
=$enable_leading_mingw64_underscores;
11971 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11973 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11977 # Check whether --enable-cld was given.
11978 if test "${enable_cld+set}" = set; then :
11979 enableval
=$enable_cld;
11985 # Check whether --enable-frame-pointer was given.
11986 if test "${enable_frame_pointer+set}" = set; then :
11987 enableval
=$enable_frame_pointer;
11991 linux
* | darwin
[8912]*)
11992 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11994 enable_frame_pointer
=no
11997 enable_frame_pointer
=yes
12004 # Windows32 Registry support for specifying GCC installation paths.
12005 # Check whether --enable-win32-registry was given.
12006 if test "${enable_win32_registry+set}" = set; then :
12007 enableval
=$enable_win32_registry;
12012 win32 | pe | cygwin
* | mingw32
*)
12013 if test "x$enable_win32_registry" != xno
; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12015 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12016 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12019 ac_func_search_save_LIBS
=$LIBS
12020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12029 char RegOpenKeyExA ();
12033 return RegOpenKeyExA ();
12038 for ac_lib
in '' advapi32
; do
12039 if test -z "$ac_lib"; then
12040 ac_res
="none required"
12043 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12045 if ac_fn_cxx_try_link
"$LINENO"; then :
12046 ac_cv_search_RegOpenKeyExA
=$ac_res
12048 rm -f core conftest.err conftest.
$ac_objext \
12050 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12054 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12057 ac_cv_search_RegOpenKeyExA
=no
12059 rm conftest.
$ac_ext
12060 LIBS
=$ac_func_search_save_LIBS
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12063 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12064 ac_res
=$ac_cv_search_RegOpenKeyExA
12065 if test "$ac_res" != no
; then :
12066 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12069 enable_win32_registry
=no
12074 if test "x$enable_win32_registry" != xno
; then
12076 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12079 if test "x$enable_win32_registry" != xyes \
12080 && test "x$enable_win32_registry" != x
; then
12082 cat >>confdefs.h
<<_ACEOF
12083 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12091 # Get an absolute path to the GCC top-level source directory
12092 holddir
=`${PWDCMD-pwd}`
12094 topdir
=`${PWDCMD-pwd}`
12097 # Conditionalize the makefile for this host machine.
12099 for f
in ${host_xmake_file}
12101 if test -f ${srcdir}/config
/$f
12103 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12107 # Conditionalize the makefile for this target machine.
12109 for f
in ${tmake_file}
12111 if test -f ${srcdir}/config
/$f
12113 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12116 tmake_file
="${tmake_file_}"
12118 out_object_file
=`basename $out_file .c`.o
12119 common_out_object_file
=`basename $common_out_file .c`.o
12121 tm_file_list
="options.h"
12122 tm_include_list
="options.h insn-constants.h"
12123 for f
in $tm_file; do
12126 f
=`echo $f | sed 's/^..//'`
12127 tm_file_list
="${tm_file_list} $f"
12128 tm_include_list
="${tm_include_list} $f"
12131 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12132 tm_include_list
="${tm_include_list} $f"
12135 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12136 tm_include_list
="${tm_include_list} config/$f"
12143 for f
in $tm_p_file; do
12146 tm_p_file_list
="${tm_p_file_list} $f"
12147 tm_p_include_list
="${tm_p_include_list} $f"
12150 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12151 tm_p_include_list
="${tm_p_include_list} config/$f"
12157 for f
in $xm_file; do
12160 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12161 xm_include_list
="${xm_include_list} $f"
12164 xm_file_list
="${xm_file_list} $f"
12165 xm_include_list
="${xm_include_list} $f"
12168 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12169 xm_include_list
="${xm_include_list} config/$f"
12175 host_xm_include_list
=
12176 for f
in $host_xm_file; do
12179 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12180 host_xm_include_list
="${host_xm_include_list} $f"
12183 host_xm_file_list
="${host_xm_file_list} $f"
12184 host_xm_include_list
="${host_xm_include_list} $f"
12187 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12188 host_xm_include_list
="${host_xm_include_list} config/$f"
12193 build_xm_file_list
=
12194 for f
in $build_xm_file; do
12197 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12198 build_xm_include_list
="${build_xm_include_list} $f"
12200 auto-build.h | auto-host.h
)
12201 build_xm_file_list
="${build_xm_file_list} $f"
12202 build_xm_include_list
="${build_xm_include_list} $f"
12205 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12206 build_xm_include_list
="${build_xm_include_list} config/$f"
12211 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12212 # cross-compiler which does not use the native headers and libraries.
12213 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12216 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12218 if test "x$with_build_sysroot" != x
; then
12219 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12221 # This value is used, even on a native system, because
12222 # CROSS_SYSTEM_HEADER_DIR is just
12223 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12224 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12227 if test x
$host != x
$target
12229 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12231 SYSTEM_HEADER_DIR
=$build_system_header_dir
12234 if test "x$with_headers" = x
; then
12241 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12242 SYSTEM_HEADER_DIR
=$build_system_header_dir
12245 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12246 if test "x$with_headers" != x
&& test "x$with_headers" != xyes
; then
12247 target_header_dir
=$with_headers
12248 elif test "x$with_sysroot" = x
; then
12249 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12250 elif test "x$with_build_sysroot" != "x"; then
12251 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12252 elif test "x$with_sysroot" = xyes
; then
12253 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12255 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12258 target_header_dir
=${native_system_header_dir}
12261 # If this is a cross-compiler that does not
12262 # have its own set of headers then define
12265 # If this is using newlib, without having the headers available now,
12266 # then define inhibit_libc in LIBGCC2_CFLAGS.
12267 # This prevents libgcc2 from containing any code which requires libc
12269 : ${inhibit_libc=false}
12270 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12271 test x
$with_newlib = xyes
; } &&
12272 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12277 # When building gcc with a cross-compiler, we need to adjust things so
12278 # that the generator programs are still built with the native compiler.
12279 # Also, we cannot run fixincludes.
12281 # These are the normal (build=host) settings:
12282 CC_FOR_BUILD
='$(CC)'
12283 CXX_FOR_BUILD
='$(CXX)'
12284 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12285 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12286 BUILD_LDFLAGS
='$(LDFLAGS)'
12287 STMP_FIXINC
=stmp-fixinc
12289 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12290 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12292 # And these apply if build != host, or we are generating coverage data
12293 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12295 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12296 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12297 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12299 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12300 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12301 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12302 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12307 # Expand extra_headers to include complete path.
12308 # This substitutes for lots of t-* files.
12309 extra_headers_list
=
12310 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12311 for file in ${extra_headers} ; do
12312 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12315 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12316 if test x
"$use_gcc_tgmath" = xyes
12317 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12320 # Define collect2 in Makefile.
12321 case $host_can_use_collect2 in
12323 *) collect2
='collect2$(exeext)' ;;
12327 # Add a definition of USE_COLLECT2 if system wants one.
12328 case $use_collect2 in
12329 no
) use_collect2
= ;;
12332 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12333 xm_defines
="${xm_defines} USE_COLLECT2"
12334 case $host_can_use_collect2 in
12336 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12343 cat >>confdefs.h
<<_ACEOF
12344 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12348 # ---------------------------
12349 # Assembler & linker features
12350 # ---------------------------
12352 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12353 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12354 # However when ld-new is first executed from the build tree, libtool will
12355 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12356 # to the build tree. While doing this we need to use the previous-stage
12357 # linker, or we have an infinite loop. The presence of a shell script as
12358 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12359 # the gcc/collect-ld script. So we need to know how libtool works, or
12360 # exec-tool will fail.
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12366 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12371 macro_version
='2.2.7a'
12372 macro_revision
='1.3134'
12386 ltmain
="$ac_aux_dir/ltmain.sh"
12388 # Backslashify metacharacters that are still active within
12389 # double-quoted strings.
12390 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12392 # Same as above, but do not quote variable references.
12393 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12395 # Sed substitution to delay expansion of an escaped shell variable in a
12396 # double_quote_subst'ed string.
12397 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12399 # Sed substitution to delay expansion of an escaped single quote.
12400 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12402 # Sed substitution to avoid accidental globbing in evaled expressions
12403 no_glob_subst
='s/\*/\\\*/g'
12405 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12406 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12407 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12410 $as_echo_n "checking how to print strings... " >&6; }
12411 # Test print first, because it will be a builtin if present.
12412 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12413 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12415 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12418 # Use this function as a fallback that always works.
12419 func_fallback_echo ()
12421 eval 'cat <<_LTECHO_EOF
12425 ECHO='func_fallback_echo
'
12428 # func_echo_all arg...
12429 # Invoke $ECHO with all args, space-separated.
12436 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12437 $as_echo "printf" >&6; } ;;
12438 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12439 $as_echo "print -r" >&6; } ;;
12440 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12441 $as_echo "cat" >&6; } ;;
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12458 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12459 if test "${ac_cv_path_SED+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12462 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12463 for ac_i in 1 2 3 4 5 6 7; do
12464 ac_script="$ac_script$as_nl$ac_script"
12466 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12467 { ac_script=; unset ac_script;}
12468 if test -z "$SED"; then
12469 ac_path_SED_found=false
12470 # Loop through the user's path and
test for each of PROGNAME-LIST
12471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12472 for as_dir
in $PATH
12475 test -z "$as_dir" && as_dir
=.
12476 for ac_prog
in sed gsed
; do
12477 for ac_exec_ext
in '' $ac_executable_extensions; do
12478 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12479 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12480 # Check for GNU ac_path_SED and select it if it is found.
12481 # Check for GNU $ac_path_SED
12482 case `"$ac_path_SED" --version 2>&1` in
12484 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12487 $as_echo_n 0123456789 >"conftest.in"
12490 cat "conftest.in" "conftest.in" >"conftest.tmp"
12491 mv "conftest.tmp" "conftest.in"
12492 cp "conftest.in" "conftest.nl"
12493 $as_echo '' >> "conftest.nl"
12494 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12495 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12496 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12497 if test $ac_count -gt ${ac_path_SED_max-0}; then
12498 # Best one so far, save it but keep looking for a better one
12499 ac_cv_path_SED
="$ac_path_SED"
12500 ac_path_SED_max
=$ac_count
12502 # 10*(2^10) chars as input seems more than enough
12503 test $ac_count -gt 10 && break
12505 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12508 $ac_path_SED_found && break 3
12513 if test -z "$ac_cv_path_SED"; then
12514 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12517 ac_cv_path_SED
=$SED
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12522 $as_echo "$ac_cv_path_SED" >&6; }
12523 SED
="$ac_cv_path_SED"
12526 test -z "$SED" && SED
=sed
12527 Xsed
="$SED -e 1s/^X//"
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12540 $as_echo_n "checking for fgrep... " >&6; }
12541 if test "${ac_cv_path_FGREP+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
12544 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12545 then ac_cv_path_FGREP
="$GREP -F"
12547 if test -z "$FGREP"; then
12548 ac_path_FGREP_found
=false
12549 # Loop through the user's path and test for each of PROGNAME-LIST
12550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12551 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12554 test -z "$as_dir" && as_dir
=.
12555 for ac_prog
in fgrep
; do
12556 for ac_exec_ext
in '' $ac_executable_extensions; do
12557 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12558 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12559 # Check for GNU ac_path_FGREP and select it if it is found.
12560 # Check for GNU $ac_path_FGREP
12561 case `"$ac_path_FGREP" --version 2>&1` in
12563 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12566 $as_echo_n 0123456789 >"conftest.in"
12569 cat "conftest.in" "conftest.in" >"conftest.tmp"
12570 mv "conftest.tmp" "conftest.in"
12571 cp "conftest.in" "conftest.nl"
12572 $as_echo 'FGREP' >> "conftest.nl"
12573 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12574 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12575 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12576 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12577 # Best one so far, save it but keep looking for a better one
12578 ac_cv_path_FGREP
="$ac_path_FGREP"
12579 ac_path_FGREP_max
=$ac_count
12581 # 10*(2^10) chars as input seems more than enough
12582 test $ac_count -gt 10 && break
12584 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12587 $ac_path_FGREP_found && break 3
12592 if test -z "$ac_cv_path_FGREP"; then
12593 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12596 ac_cv_path_FGREP
=$FGREP
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12602 $as_echo "$ac_cv_path_FGREP" >&6; }
12603 FGREP
="$ac_cv_path_FGREP"
12606 test -z "$GREP" && GREP
=grep
12626 # Check whether --with-gnu-ld was given.
12627 if test "${with_gnu_ld+set}" = set; then :
12628 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12634 if test "$GCC" = yes; then
12635 # Check if gcc -print-prog-name=ld gives a path.
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12637 $as_echo_n "checking for ld used by $CC... " >&6; }
12640 # gcc leaves a trailing carriage return which upsets mingw
12641 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12643 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12646 # Accept absolute paths.
12648 re_direlt
='/[^/][^/]*/\.\./'
12649 # Canonicalize the pathname of ld
12650 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12651 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12652 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12654 test -z "$LD" && LD
="$ac_prog"
12657 # If it fails, then pretend we aren't using GCC.
12661 # If it is relative, then search for the first ld in PATH.
12662 with_gnu_ld
=unknown
12665 elif test "$with_gnu_ld" = yes; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12667 $as_echo_n "checking for GNU ld... " >&6; }
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12670 $as_echo_n "checking for non-GNU ld... " >&6; }
12672 if test "${lt_cv_path_LD+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12675 if test -z "$LD"; then
12676 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12677 for ac_dir
in $PATH; do
12679 test -z "$ac_dir" && ac_dir
=.
12680 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12681 lt_cv_path_LD
="$ac_dir/$ac_prog"
12682 # Check to see if the program is GNU ld. I'd rather use --version,
12683 # but apparently some variants of GNU ld only accept -v.
12684 # Break only if it was the GNU/non-GNU ld that we prefer.
12685 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12686 *GNU
* |
*'with BFD'*)
12687 test "$with_gnu_ld" != no
&& break
12690 test "$with_gnu_ld" != yes && break
12697 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12701 LD
="$lt_cv_path_LD"
12702 if test -n "$LD"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12704 $as_echo "$LD" >&6; }
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12709 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12711 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12712 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12713 $as_echo_n "(cached) " >&6
12715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12716 case `$LD -v 2>&1 </dev/null` in
12717 *GNU
* |
*'with BFD'*)
12718 lt_cv_prog_gnu_ld
=yes
12721 lt_cv_prog_gnu_ld
=no
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12726 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12727 with_gnu_ld
=$lt_cv_prog_gnu_ld
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12738 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12739 if test "${lt_cv_path_NM+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12742 if test -n "$NM"; then
12743 # Let the user override the test.
12744 lt_cv_path_NM
="$NM"
12746 lt_nm_to_check
="${ac_tool_prefix}nm"
12747 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12748 lt_nm_to_check
="$lt_nm_to_check nm"
12750 for lt_tmp_nm
in $lt_nm_to_check; do
12751 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12752 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12754 test -z "$ac_dir" && ac_dir
=.
12755 tmp_nm
="$ac_dir/$lt_tmp_nm"
12756 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12757 # Check to see if the nm accepts a BSD-compat flag.
12758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12759 # nm: unknown option "B" ignored
12760 # Tru64's nm complains that /dev/null is an invalid object file
12761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12762 */dev
/null
* |
*'Invalid file or object type'*)
12763 lt_cv_path_NM
="$tmp_nm -B"
12767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12769 lt_cv_path_NM
="$tmp_nm -p"
12773 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12774 continue # so that we can try to find one that supports BSD flags
12783 : ${lt_cv_path_NM=no}
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12787 $as_echo "$lt_cv_path_NM" >&6; }
12788 if test "$lt_cv_path_NM" != "no"; then
12789 NM
="$lt_cv_path_NM"
12791 # Didn't find any BSD compatible name lister, look for dumpbin.
12792 if test -n "$DUMPBIN"; then :
12793 # Let the user override the test.
12795 if test -n "$ac_tool_prefix"; then
12796 for ac_prog
in dumpbin
"link -dump"
12798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12799 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12803 $as_echo_n "(cached) " >&6
12805 if test -n "$DUMPBIN"; then
12806 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12809 for as_dir
in $PATH
12812 test -z "$as_dir" && as_dir
=.
12813 for ac_exec_ext
in '' $ac_executable_extensions; do
12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12815 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825 DUMPBIN
=$ac_cv_prog_DUMPBIN
12826 if test -n "$DUMPBIN"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12828 $as_echo "$DUMPBIN" >&6; }
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12835 test -n "$DUMPBIN" && break
12838 if test -z "$DUMPBIN"; then
12839 ac_ct_DUMPBIN
=$DUMPBIN
12840 for ac_prog
in dumpbin
"link -dump"
12842 # Extract the first word of "$ac_prog", so it can be a program name with args.
12843 set dummy
$ac_prog; ac_word
=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12849 if test -n "$ac_ct_DUMPBIN"; then
12850 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12853 for as_dir
in $PATH
12856 test -z "$as_dir" && as_dir
=.
12857 for ac_exec_ext
in '' $ac_executable_extensions; do
12858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12859 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12870 if test -n "$ac_ct_DUMPBIN"; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12872 $as_echo "$ac_ct_DUMPBIN" >&6; }
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12879 test -n "$ac_ct_DUMPBIN" && break
12882 if test "x$ac_ct_DUMPBIN" = x
; then
12885 case $cross_compiling:$ac_tool_warned in
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12889 ac_tool_warned
=yes ;;
12891 DUMPBIN
=$ac_ct_DUMPBIN
12895 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12897 DUMPBIN
="$DUMPBIN -symbols"
12905 if test "$DUMPBIN" != ":"; then
12909 test -z "$NM" && NM
=nm
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12917 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12918 if test "${lt_cv_nm_interface+set}" = set; then :
12919 $as_echo_n "(cached) " >&6
12921 lt_cv_nm_interface
="BSD nm"
12922 echo "int some_variable = 0;" > conftest.
$ac_ext
12923 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12924 (eval "$ac_compile" 2>conftest.err
)
12925 cat conftest.err
>&5
12926 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12927 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12928 cat conftest.err
>&5
12929 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12930 cat conftest.out
>&5
12931 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12932 lt_cv_nm_interface
="MS dumpbin"
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12937 $as_echo "$lt_cv_nm_interface" >&6; }
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12940 $as_echo_n "checking whether ln -s works... " >&6; }
12942 if test "$LN_S" = "ln -s"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12944 $as_echo "yes" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12947 $as_echo "no, using $LN_S" >&6; }
12950 # find the maximum length of command line arguments
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12952 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12953 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12961 # On DJGPP, this test can blow up pretty badly due to problems in libc
12962 # (any single argument exceeding 2000 bytes causes a buffer overrun
12963 # during glob expansion). Even if it were fixed, the result of this
12964 # check would be larger than it should be.
12965 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12969 # Under GNU Hurd, this test is not required because there is
12970 # no limit to the length of command line arguments.
12971 # Libtool will interpret -1 as no limit whatsoever
12972 lt_cv_sys_max_cmd_len
=-1;
12975 cygwin
* | mingw
* | cegcc
*)
12976 # On Win9x/ME, this test blows up -- it succeeds, but takes
12977 # about 5 minutes as the teststring grows exponentially.
12978 # Worse, since 9x/ME are not pre-emptively multitasking,
12979 # you end up with a "frozen" computer, even though with patience
12980 # the test eventually succeeds (with a max line length of 256k).
12981 # Instead, let's just punt: use the minimum linelength reported by
12982 # all of the supported platforms: 8192 (on NT/2K/XP).
12983 lt_cv_sys_max_cmd_len
=8192;
12987 # On MiNT this can take a long time and run out of memory.
12988 lt_cv_sys_max_cmd_len
=8192;
12992 # On AmigaOS with pdksh, this test takes hours, literally.
12993 # So we just punt and use a minimum line length of 8192.
12994 lt_cv_sys_max_cmd_len
=8192;
12997 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12998 # This has been around since 386BSD, at least. Likely further.
12999 if test -x /sbin
/sysctl
; then
13000 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13001 elif test -x /usr
/sbin
/sysctl
; then
13002 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13004 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13006 # And add a safety zone
13007 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13008 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13012 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13013 lt_cv_sys_max_cmd_len
=196608
13017 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13018 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13019 # nice to cause kernel panics so lets avoid the loop below.
13020 # First set a reasonable default.
13021 lt_cv_sys_max_cmd_len
=16384
13023 if test -x /sbin
/sysconfig
; then
13024 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13025 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13030 lt_cv_sys_max_cmd_len
=102400
13032 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13033 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13034 if test -n "$kargmax"; then
13035 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13037 lt_cv_sys_max_cmd_len
=32768
13041 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13042 if test -n "$lt_cv_sys_max_cmd_len"; then
13043 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13044 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13046 # Make teststring a little bigger before we do anything with it.
13047 # a 1K string should be a reasonable start.
13048 for i
in 1 2 3 4 5 6 7 8 ; do
13049 teststring
=$teststring$teststring
13051 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13052 # If test is not a shell built-in, we'll probably end up computing a
13053 # maximum length that is only half of the actual maximum length, but
13055 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13056 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13057 test $i != 17 # 1/2 MB should be enough
13060 teststring
=$teststring$teststring
13062 # Only check the string length outside the loop.
13063 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13065 # Add a significant safety factor because C++ compilers can tack on
13066 # massive amounts of additional arguments before passing them to the
13067 # linker. It appears as though 1/2 is a usable value.
13068 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13075 if test -n $lt_cv_sys_max_cmd_len ; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13077 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13080 $as_echo "none" >&6; }
13082 max_cmd_len
=$lt_cv_sys_max_cmd_len
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13094 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13095 # Try some XSI features
13097 ( _lt_dummy
="a/b/c"
13098 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13100 && eval 'test $(( 1 + 1 )) -eq 2 \
13101 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13104 $as_echo "$xsi_shell" >&6; }
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13108 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13110 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13112 && lt_shell_append=yes
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13114 $as_echo "$lt_shell_append" >&6; }
13117 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13127 # test EBCDIC or ASCII
13128 case `echo X|tr X '\101'` in
13129 A) # ASCII based system
13130 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13131 lt_SP2NL='tr \040 \012'
13132 lt_NL2SP='tr \015\012 \040\040'
13134 *) # EBCDIC based system
13135 lt_SP2NL='tr \100 \n'
13136 lt_NL2SP='tr \r\n \100\100'
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13149 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13150 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13151 $as_echo_n "(cached
) " >&6
13153 lt_cv_ld_reload_flag='-r'
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13156 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13157 reload_flag=$lt_cv_ld_reload_flag
13158 case $reload_flag in
13160 *) reload_flag=" $reload_flag" ;;
13162 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13165 if test "$GCC" = yes; then
13166 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13181 if test -n "$ac_tool_prefix"; then
13182 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13183 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13185 $as_echo_n "checking
for $ac_word...
" >&6; }
13186 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13187 $as_echo_n "(cached
) " >&6
13189 if test -n "$OBJDUMP"; then
13190 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13209 OBJDUMP=$ac_cv_prog_OBJDUMP
13210 if test -n "$OBJDUMP"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13212 $as_echo "$OBJDUMP" >&6; }
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13215 $as_echo "no
" >&6; }
13220 if test -z "$ac_cv_prog_OBJDUMP"; then
13221 ac_ct_OBJDUMP=$OBJDUMP
13222 # Extract the first word of "objdump
", so it can be a program name with args.
13223 set dummy objdump; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13225 $as_echo_n "checking
for $ac_word...
" >&6; }
13226 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13227 $as_echo_n "(cached
) " >&6
13229 if test -n "$ac_ct_OBJDUMP"; then
13230 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13249 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13250 if test -n "$ac_ct_OBJDUMP"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13252 $as_echo "$ac_ct_OBJDUMP" >&6; }
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13255 $as_echo "no
" >&6; }
13258 if test "x
$ac_ct_OBJDUMP" = x; then
13261 case $cross_compiling:$ac_tool_warned in
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13264 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13265 ac_tool_warned=yes ;;
13267 OBJDUMP=$ac_ct_OBJDUMP
13270 OBJDUMP="$ac_cv_prog_OBJDUMP"
13273 test -z "$OBJDUMP" && OBJDUMP=objdump
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13284 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13285 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13286 $as_echo_n "(cached
) " >&6
13288 lt_cv_file_magic_cmd='$MAGIC_CMD'
13289 lt_cv_file_magic_test_file=
13290 lt_cv_deplibs_check_method='unknown'
13291 # Need to set the preceding variable on all platforms that support
13292 # interlibrary dependencies.
13293 # 'none' -- dependencies not supported.
13294 # `unknown' -- same as none, but documents that we really don't know.
13295 # 'pass_all' -- all dependencies passed with no checks.
13296 # 'test_compile' -- check by making test program.
13297 # 'file_magic [[regex]]' -- check by looking for files in library path
13298 # which responds to the $file_magic_cmd with a given extended regex.
13299 # If you have `file' or equivalent on your system and you're not sure
13300 # whether `pass_all' will *always* work, you probably want this one.
13304 lt_cv_deplibs_check_method=pass_all
13308 lt_cv_deplibs_check_method=pass_all
13312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13313 lt_cv_file_magic_cmd='/usr/bin/file -L'
13314 lt_cv_file_magic_test_file=/shlib/libc.so
13318 # func_win32_libid is a shell function defined in ltmain.sh
13319 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13320 lt_cv_file_magic_cmd='func_win32_libid'
13324 # Base MSYS/MinGW do not provide the 'file' command needed by
13325 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13326 # unless we find 'file', for example because we are cross-compiling.
13327 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13328 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13330 lt_cv_file_magic_cmd='func_win32_libid'
13332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13333 lt_cv_file_magic_cmd='$OBJDUMP -f'
13338 # use the weaker test based on 'objdump'. See mingw*.
13339 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13340 lt_cv_file_magic_cmd='$OBJDUMP -f'
13343 darwin* | rhapsody*)
13344 lt_cv_deplibs_check_method=pass_all
13347 freebsd* | dragonfly*)
13348 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13351 # Not sure whether the presence of OpenBSD here was a mistake.
13352 # Let's accept both of them until this is cleared up.
13353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13354 lt_cv_file_magic_cmd=/usr/bin/file
13355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13359 lt_cv_deplibs_check_method=pass_all
13364 lt_cv_deplibs_check_method=pass_all
13368 lt_cv_deplibs_check_method=pass_all
13371 hpux10.20* | hpux11*)
13372 lt_cv_file_magic_cmd=/usr/bin/file
13375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13376 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13379 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]'
13380 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13384 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13390 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13394 irix5* | irix6* | nonstopux*)
13396 *-32|*"-32 ") libmagic=32-bit;;
13397 *-n32|*"-n32 ") libmagic=N32;;
13398 *-64|*"-64 ") libmagic=64-bit;;
13399 *) libmagic=never-match;;
13401 lt_cv_deplibs_check_method=pass_all
13404 # This must be Linux ELF.
13405 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13406 lt_cv_deplibs_check_method=pass_all
13410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13419 lt_cv_file_magic_cmd=/usr/bin/file
13420 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13424 lt_cv_deplibs_check_method=pass_all
13428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13435 osf3* | osf4* | osf5*)
13436 lt_cv_deplibs_check_method=pass_all
13440 lt_cv_deplibs_check_method=pass_all
13444 lt_cv_deplibs_check_method=pass_all
13447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13448 lt_cv_deplibs_check_method=pass_all
13452 case $host_vendor in
13454 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]'
13455 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13458 lt_cv_deplibs_check_method=pass_all
13461 lt_cv_file_magic_cmd='/bin/file'
13462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13465 lt_cv_file_magic_cmd='/bin/file'
13466 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13467 lt_cv_file_magic_test_file=/lib/libc.so
13470 lt_cv_deplibs_check_method=pass_all
13473 lt_cv_deplibs_check_method=pass_all
13479 lt_cv_deplibs_check_method=pass_all
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13485 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13486 file_magic_cmd=$lt_cv_file_magic_cmd
13487 deplibs_check_method=$lt_cv_deplibs_check_method
13488 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13501 if test -n "$ac_tool_prefix"; then
13502 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13503 set dummy ${ac_tool_prefix}ar; ac_word=$2
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13505 $as_echo_n "checking
for $ac_word...
" >&6; }
13506 if test "${ac_cv_prog_AR+set}" = set; then :
13507 $as_echo_n "(cached
) " >&6
13509 if test -n "$AR"; then
13510 ac_cv_prog_AR="$AR" # Let the user override the test.
13512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513 for as_dir in $PATH
13516 test -z "$as_dir" && as_dir=.
13517 for ac_exec_ext in '' $ac_executable_extensions; do
13518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13519 ac_cv_prog_AR="${ac_tool_prefix}ar"
13520 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13530 if test -n "$AR"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13532 $as_echo "$AR" >&6; }
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13535 $as_echo "no
" >&6; }
13540 if test -z "$ac_cv_prog_AR"; then
13542 # Extract the first word of "ar", so it can be a program name with args.
13543 set dummy ar; ac_word=$2
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13545 $as_echo_n "checking
for $ac_word...
" >&6; }
13546 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13547 $as_echo_n "(cached
) " >&6
13549 if test -n "$ac_ct_AR"; then
13550 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553 for as_dir in $PATH
13556 test -z "$as_dir" && as_dir=.
13557 for ac_exec_ext in '' $ac_executable_extensions; do
13558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13559 ac_cv_prog_ac_ct_AR="ar"
13560 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13569 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13570 if test -n "$ac_ct_AR"; then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13572 $as_echo "$ac_ct_AR" >&6; }
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13575 $as_echo "no
" >&6; }
13578 if test "x
$ac_ct_AR" = x; then
13581 case $cross_compiling:$ac_tool_warned in
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13584 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13585 ac_tool_warned=yes ;;
13590 AR="$ac_cv_prog_AR"
13593 test -z "$AR" && AR=ar
13594 test -z "$AR_FLAGS" && AR_FLAGS=cru
13606 if test -n "$ac_tool_prefix"; then
13607 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13608 set dummy ${ac_tool_prefix}strip; ac_word=$2
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13610 $as_echo_n "checking
for $ac_word...
" >&6; }
13611 if test "${ac_cv_prog_STRIP+set}" = set; then :
13612 $as_echo_n "(cached
) " >&6
13614 if test -n "$STRIP"; then
13615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $PATH
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13624 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13634 STRIP=$ac_cv_prog_STRIP
13635 if test -n "$STRIP"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13637 $as_echo "$STRIP" >&6; }
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13640 $as_echo "no
" >&6; }
13645 if test -z "$ac_cv_prog_STRIP"; then
13647 # Extract the first word of "strip
", so it can be a program name with args.
13648 set dummy strip; ac_word=$2
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13650 $as_echo_n "checking
for $ac_word...
" >&6; }
13651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13652 $as_echo_n "(cached
) " >&6
13654 if test -n "$ac_ct_STRIP"; then
13655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658 for as_dir in $PATH
13661 test -z "$as_dir" && as_dir=.
13662 for ac_exec_ext in '' $ac_executable_extensions; do
13663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13664 ac_cv_prog_ac_ct_STRIP="strip
"
13665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13675 if test -n "$ac_ct_STRIP"; then
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13677 $as_echo "$ac_ct_STRIP" >&6; }
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13680 $as_echo "no
" >&6; }
13683 if test "x
$ac_ct_STRIP" = x; then
13686 case $cross_compiling:$ac_tool_warned in
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13689 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13690 ac_tool_warned=yes ;;
13695 STRIP="$ac_cv_prog_STRIP"
13698 test -z "$STRIP" && STRIP=:
13705 if test -n "$ac_tool_prefix"; then
13706 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13707 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13709 $as_echo_n "checking
for $ac_word...
" >&6; }
13710 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13711 $as_echo_n "(cached
) " >&6
13713 if test -n "$RANLIB"; then
13714 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $PATH
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
13722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13723 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13724 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13733 RANLIB=$ac_cv_prog_RANLIB
13734 if test -n "$RANLIB"; then
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13736 $as_echo "$RANLIB" >&6; }
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13739 $as_echo "no
" >&6; }
13744 if test -z "$ac_cv_prog_RANLIB"; then
13745 ac_ct_RANLIB=$RANLIB
13746 # Extract the first word of "ranlib
", so it can be a program name with args.
13747 set dummy ranlib; ac_word=$2
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13749 $as_echo_n "checking
for $ac_word...
" >&6; }
13750 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13751 $as_echo_n "(cached
) " >&6
13753 if test -n "$ac_ct_RANLIB"; then
13754 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757 for as_dir in $PATH
13760 test -z "$as_dir" && as_dir=.
13761 for ac_exec_ext in '' $ac_executable_extensions; do
13762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13763 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13764 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13773 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13774 if test -n "$ac_ct_RANLIB"; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13776 $as_echo "$ac_ct_RANLIB" >&6; }
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13779 $as_echo "no
" >&6; }
13782 if test "x
$ac_ct_RANLIB" = x; then
13785 case $cross_compiling:$ac_tool_warned in
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13788 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13789 ac_tool_warned=yes ;;
13791 RANLIB=$ac_ct_RANLIB
13794 RANLIB="$ac_cv_prog_RANLIB"
13797 test -z "$RANLIB" && RANLIB=:
13804 # Determine commands to create old-style static archives.
13805 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13806 old_postinstall_cmds='chmod 644 $oldlib'
13807 old_postuninstall_cmds=
13809 if test -n "$RANLIB"; then
13812 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13815 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13818 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13823 lock_old_archive_extraction=yes ;;
13825 lock_old_archive_extraction=no ;;
13866 # If no C compiler was specified, use CC.
13869 # If no C compiler flags were specified, use CFLAGS.
13870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13872 # Allow CC to be a program name with arguments.
13876 # Check for command to grab the raw symbol name followed by C symbol from nm.
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13878 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13879 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13880 $as_echo_n "(cached
) " >&6
13883 # These are sane defaults that work on at least a few old systems.
13884 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13886 # Character class describing NM global symbol codes.
13887 symcode='[BCDEGRST]'
13889 # Regexp to match symbols that can be accessed directly from C.
13890 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13892 # Define system-specific variables.
13897 cygwin* | mingw* | pw32* | cegcc*)
13898 symcode='[ABCDGISTW]'
13901 if test "$host_cpu" = ia64; then
13902 symcode='[ABCDEGRST]'
13905 irix* | nonstopux*)
13906 symcode='[BCDEGRST]'
13909 symcode='[BCDEGQRST]'
13920 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13928 # If we're using GNU nm, then use its standard symbol codes.
13929 case `$NM -V 2>&1` in
13930 *GNU* | *'with BFD'*)
13931 symcode='[ABCDGIRSTW]' ;;
13934 # Transform an extracted symbol line into a proper C declaration.
13935 # Some systems (esp. on ia64) link data and code symbols differently,
13936 # so use this general approach.
13937 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13939 # Transform an extracted symbol line into symbol name and symbol address
13940 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13941 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'"
13943 # Handle CRLF in mingw tool chain
13947 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13951 # Try without a prefix underscore, then with it.
13952 for ac_symprfx in "" "_
"; do
13954 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13955 symxfrm="\\1 $ac_symprfx\\2 \\2"
13957 # Write the raw and C identifiers.
13958 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13959 # Fake it for dumpbin and say T for any non-static function
13960 # and D for any global variable.
13961 # Also find C++ and __fastcall symbols from MSVC++,
13962 # which start with @ or ?.
13963 lt_cv_sys_global_symbol_pipe="$AWK '"\
13964 " {last_section=section; section=\$ 3};"\
13965 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13966 " \$ 0!~/External *\|/{next};"\
13967 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13968 " {if(hide[section]) next};"\
13969 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13970 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13971 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13972 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13973 " ' prfx
=^
$ac_symprfx"
13975 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13978 # Check to see that the pipe works correctly.
13982 cat > conftest.$ac_ext <<_LT_EOF
13987 void nm_test_func(void);
13988 void nm_test_func(void){}
13992 int main(){nm_test_var='a';nm_test_func();return(0);}
13995 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13996 (eval $ac_compile) 2>&5
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13999 test $ac_status = 0; }; then
14000 # Now try to grab the symbols.
14002 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14003 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14005 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14006 test $ac_status = 0; } && test -s "$nlist"; then
14007 # Try sorting and uniquifying the output.
14008 if sort "$nlist" | uniq > "$nlist"T; then
14009 mv -f "$nlist"T "$nlist"
14014 # Make sure that we snagged all the symbols we need.
14015 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14016 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14017 cat <<_LT_EOF > conftest.$ac_ext
14023 # Now generate the symbol file.
14024 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14026 cat <<_LT_EOF >> conftest.$ac_ext
14028 /* The mapping between symbol names and symbols. */
14033 lt__PROGRAM__LTX_preloaded_symbols[] =
14035 { "@PROGRAM@
", (void *) 0 },
14037 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14038 cat <<\_LT_EOF >> conftest.$ac_ext
14042 /* This works around a problem in FreeBSD linker */
14043 #ifdef FREEBSD_WORKAROUND
14044 static const void *lt_preloaded_setup() {
14045 return lt__PROGRAM__LTX_preloaded_symbols;
14053 # Now try linking the two files.
14054 mv conftest.$ac_objext conftstm.$ac_objext
14055 lt_save_LIBS="$LIBS"
14056 lt_save_CFLAGS="$CFLAGS"
14057 LIBS="conftstm.
$ac_objext"
14058 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14059 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14060 (eval $ac_link) 2>&5
14062 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14063 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14066 LIBS="$lt_save_LIBS"
14067 CFLAGS="$lt_save_CFLAGS"
14069 echo "cannot
find nm_test_func
in $nlist" >&5
14072 echo "cannot
find nm_test_var
in $nlist" >&5
14075 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14078 echo "$progname: failed program was
:" >&5
14079 cat conftest.$ac_ext >&5
14081 rm -rf conftest* conftst*
14083 # Do not use the global_symbol_pipe unless it works.
14084 if test "$pipe_works" = yes; then
14087 lt_cv_sys_global_symbol_pipe=
14093 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14094 lt_cv_sys_global_symbol_to_cdecl=
14096 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14098 $as_echo "failed
" >&6; }
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14101 $as_echo "ok
" >&6; }
14125 # Check whether --enable-libtool-lock was given.
14126 if test "${enable_libtool_lock+set}" = set; then :
14127 enableval=$enable_libtool_lock;
14130 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14132 # Some flags need to be propagated to the compiler or linker for good
14136 # Find out which ABI we are using.
14137 echo 'int i;' > conftest.$ac_ext
14138 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14139 (eval $ac_compile) 2>&5
14141 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14142 test $ac_status = 0; }; then
14143 case `/usr/bin/file conftest.$ac_objext` in
14145 HPUX_IA64_MODE="32"
14148 HPUX_IA64_MODE="64"
14155 # Find out which ABI we are using.
14156 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14157 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14158 (eval $ac_compile) 2>&5
14160 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14161 test $ac_status = 0; }; then
14162 if test "$lt_cv_prog_gnu_ld" = yes; then
14163 case `/usr/bin/file conftest.$ac_objext` in
14165 LD="${LD-ld} -melf32bsmip"
14168 LD="${LD-ld} -melf32bmipn32"
14171 LD="${LD-ld} -melf64bmip"
14175 case `/usr/bin/file conftest.$ac_objext` in
14191 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14192 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14193 # Find out which ABI we are using.
14194 echo 'int i;' > conftest.$ac_ext
14195 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14196 (eval $ac_compile) 2>&5
14198 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14199 test $ac_status = 0; }; then
14200 case `/usr/bin/file conftest.o` in
14203 x86_64-*kfreebsd*-gnu)
14204 LD="${LD-ld} -m elf_i386_fbsd
"
14207 case `/usr/bin/file conftest.o` in
14209 LD="${LD-ld} -m elf32_x86_64
"
14212 LD="${LD-ld} -m elf_i386
"
14216 powerpc64le-*linux*)
14217 LD="${LD-ld} -m elf32lppclinux
"
14220 LD="${LD-ld} -m elf32ppclinux
"
14223 LD="${LD-ld} -m elf_s390
"
14226 LD="${LD-ld} -m elf32_sparc
"
14232 x86_64-*kfreebsd*-gnu)
14233 LD="${LD-ld} -m elf_x86_64_fbsd
"
14236 LD="${LD-ld} -m elf_x86_64
"
14239 LD="${LD-ld} -m elf64lppc
"
14242 LD="${LD-ld} -m elf64ppc
"
14244 s390*-*linux*|s390*-*tpf*)
14245 LD="${LD-ld} -m elf64_s390
"
14248 LD="${LD-ld} -m elf64_sparc
"
14258 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14259 SAVE_CFLAGS="$CFLAGS"
14260 CFLAGS="$CFLAGS -belf"
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14262 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14263 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14264 $as_echo_n "(cached
) " >&6
14267 ac_cpp='$CPP $CPPFLAGS'
14268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 lt_cv_cc_needs_belf=yes
14286 lt_cv_cc_needs_belf=no
14288 rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14291 ac_cpp='$CPP $CPPFLAGS'
14292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14298 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14299 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14300 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14301 CFLAGS="$SAVE_CFLAGS"
14305 # Find out which ABI we are using.
14306 echo 'int i;' > conftest.$ac_ext
14307 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14308 (eval $ac_compile) 2>&5
14310 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14311 test $ac_status = 0; }; then
14312 case `/usr/bin/file conftest.o` in
14314 case $lt_cv_prog_gnu_ld in
14315 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14317 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14329 need_locks="$enable_libtool_lock"
14333 rhapsody* | darwin*)
14334 if test -n "$ac_tool_prefix"; then
14335 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14336 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14338 $as_echo_n "checking
for $ac_word...
" >&6; }
14339 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14340 $as_echo_n "(cached
) " >&6
14342 if test -n "$DSYMUTIL"; then
14343 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14349 test -z "$as_dir" && as_dir=.
14350 for ac_exec_ext in '' $ac_executable_extensions; do
14351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14352 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14353 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14362 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14363 if test -n "$DSYMUTIL"; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14365 $as_echo "$DSYMUTIL" >&6; }
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14368 $as_echo "no
" >&6; }
14373 if test -z "$ac_cv_prog_DSYMUTIL"; then
14374 ac_ct_DSYMUTIL=$DSYMUTIL
14375 # Extract the first word of "dsymutil
", so it can be a program name with args.
14376 set dummy dsymutil; ac_word=$2
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14378 $as_echo_n "checking
for $ac_word...
" >&6; }
14379 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14380 $as_echo_n "(cached
) " >&6
14382 if test -n "$ac_ct_DSYMUTIL"; then
14383 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14389 test -z "$as_dir" && as_dir=.
14390 for ac_exec_ext in '' $ac_executable_extensions; do
14391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14392 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14402 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14403 if test -n "$ac_ct_DSYMUTIL"; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14405 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14408 $as_echo "no
" >&6; }
14411 if test "x
$ac_ct_DSYMUTIL" = x; then
14414 case $cross_compiling:$ac_tool_warned in
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14417 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14418 ac_tool_warned=yes ;;
14420 DSYMUTIL=$ac_ct_DSYMUTIL
14423 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14426 if test -n "$ac_tool_prefix"; then
14427 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14428 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14430 $as_echo_n "checking
for $ac_word...
" >&6; }
14431 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14432 $as_echo_n "(cached
) " >&6
14434 if test -n "$NMEDIT"; then
14435 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14438 for as_dir in $PATH
14441 test -z "$as_dir" && as_dir=.
14442 for ac_exec_ext in '' $ac_executable_extensions; do
14443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14444 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14445 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14454 NMEDIT=$ac_cv_prog_NMEDIT
14455 if test -n "$NMEDIT"; then
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14457 $as_echo "$NMEDIT" >&6; }
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14460 $as_echo "no
" >&6; }
14465 if test -z "$ac_cv_prog_NMEDIT"; then
14466 ac_ct_NMEDIT=$NMEDIT
14467 # Extract the first word of "nmedit
", so it can be a program name with args.
14468 set dummy nmedit; ac_word=$2
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14470 $as_echo_n "checking
for $ac_word...
" >&6; }
14471 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14472 $as_echo_n "(cached
) " >&6
14474 if test -n "$ac_ct_NMEDIT"; then
14475 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478 for as_dir in $PATH
14481 test -z "$as_dir" && as_dir=.
14482 for ac_exec_ext in '' $ac_executable_extensions; do
14483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14484 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14494 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14495 if test -n "$ac_ct_NMEDIT"; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14497 $as_echo "$ac_ct_NMEDIT" >&6; }
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14500 $as_echo "no
" >&6; }
14503 if test "x
$ac_ct_NMEDIT" = x; then
14506 case $cross_compiling:$ac_tool_warned in
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14509 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14510 ac_tool_warned=yes ;;
14512 NMEDIT=$ac_ct_NMEDIT
14515 NMEDIT="$ac_cv_prog_NMEDIT"
14518 if test -n "$ac_tool_prefix"; then
14519 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14520 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14522 $as_echo_n "checking
for $ac_word...
" >&6; }
14523 if test "${ac_cv_prog_LIPO+set}" = set; then :
14524 $as_echo_n "(cached
) " >&6
14526 if test -n "$LIPO"; then
14527 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14533 test -z "$as_dir" && as_dir=.
14534 for ac_exec_ext in '' $ac_executable_extensions; do
14535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14536 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14537 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14546 LIPO=$ac_cv_prog_LIPO
14547 if test -n "$LIPO"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14549 $as_echo "$LIPO" >&6; }
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14552 $as_echo "no
" >&6; }
14557 if test -z "$ac_cv_prog_LIPO"; then
14559 # Extract the first word of "lipo
", so it can be a program name with args.
14560 set dummy lipo; ac_word=$2
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14562 $as_echo_n "checking
for $ac_word...
" >&6; }
14563 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14564 $as_echo_n "(cached
) " >&6
14566 if test -n "$ac_ct_LIPO"; then
14567 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14570 for as_dir in $PATH
14573 test -z "$as_dir" && as_dir=.
14574 for ac_exec_ext in '' $ac_executable_extensions; do
14575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14576 ac_cv_prog_ac_ct_LIPO="lipo
"
14577 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14586 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14587 if test -n "$ac_ct_LIPO"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14589 $as_echo "$ac_ct_LIPO" >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14592 $as_echo "no
" >&6; }
14595 if test "x
$ac_ct_LIPO" = x; then
14598 case $cross_compiling:$ac_tool_warned in
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14601 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14602 ac_tool_warned=yes ;;
14607 LIPO="$ac_cv_prog_LIPO"
14610 if test -n "$ac_tool_prefix"; then
14611 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14612 set dummy ${ac_tool_prefix}otool; ac_word=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14614 $as_echo_n "checking
for $ac_word...
" >&6; }
14615 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14616 $as_echo_n "(cached
) " >&6
14618 if test -n "$OTOOL"; then
14619 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14628 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14638 OTOOL=$ac_cv_prog_OTOOL
14639 if test -n "$OTOOL"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14641 $as_echo "$OTOOL" >&6; }
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14644 $as_echo "no
" >&6; }
14649 if test -z "$ac_cv_prog_OTOOL"; then
14651 # Extract the first word of "otool
", so it can be a program name with args.
14652 set dummy otool; ac_word=$2
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14654 $as_echo_n "checking
for $ac_word...
" >&6; }
14655 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14656 $as_echo_n "(cached
) " >&6
14658 if test -n "$ac_ct_OTOOL"; then
14659 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662 for as_dir in $PATH
14665 test -z "$as_dir" && as_dir=.
14666 for ac_exec_ext in '' $ac_executable_extensions; do
14667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14668 ac_cv_prog_ac_ct_OTOOL="otool
"
14669 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14678 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14679 if test -n "$ac_ct_OTOOL"; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14681 $as_echo "$ac_ct_OTOOL" >&6; }
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14684 $as_echo "no
" >&6; }
14687 if test "x
$ac_ct_OTOOL" = x; then
14690 case $cross_compiling:$ac_tool_warned in
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14693 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14694 ac_tool_warned=yes ;;
14699 OTOOL="$ac_cv_prog_OTOOL"
14702 if test -n "$ac_tool_prefix"; then
14703 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14704 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14706 $as_echo_n "checking
for $ac_word...
" >&6; }
14707 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14708 $as_echo_n "(cached
) " >&6
14710 if test -n "$OTOOL64"; then
14711 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14717 test -z "$as_dir" && as_dir=.
14718 for ac_exec_ext in '' $ac_executable_extensions; do
14719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14720 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14730 OTOOL64=$ac_cv_prog_OTOOL64
14731 if test -n "$OTOOL64"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14733 $as_echo "$OTOOL64" >&6; }
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14736 $as_echo "no
" >&6; }
14741 if test -z "$ac_cv_prog_OTOOL64"; then
14742 ac_ct_OTOOL64=$OTOOL64
14743 # Extract the first word of "otool64
", so it can be a program name with args.
14744 set dummy otool64; ac_word=$2
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14746 $as_echo_n "checking
for $ac_word...
" >&6; }
14747 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14748 $as_echo_n "(cached
) " >&6
14750 if test -n "$ac_ct_OTOOL64"; then
14751 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14754 for as_dir in $PATH
14757 test -z "$as_dir" && as_dir=.
14758 for ac_exec_ext in '' $ac_executable_extensions; do
14759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14760 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14761 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14770 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14771 if test -n "$ac_ct_OTOOL64"; then
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14773 $as_echo "$ac_ct_OTOOL64" >&6; }
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14776 $as_echo "no
" >&6; }
14779 if test "x
$ac_ct_OTOOL64" = x; then
14782 case $cross_compiling:$ac_tool_warned in
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14785 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14786 ac_tool_warned=yes ;;
14788 OTOOL64=$ac_ct_OTOOL64
14791 OTOOL64="$ac_cv_prog_OTOOL64"
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14821 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14822 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14823 $as_echo_n "(cached
) " >&6
14825 lt_cv_apple_cc_single_mod=no
14826 if test -z "${LT_MULTI_MODULE}"; then
14827 # By default we will add the -single_module flag. You can override
14828 # by either setting the environment variable LT_MULTI_MODULE
14829 # non-empty at configure time, or by adding -multi_module to the
14831 rm -rf libconftest.dylib*
14832 echo "int foo
(void
){return 1;}" > conftest.c
14833 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14834 -dynamiclib -Wl,-single_module conftest.c
" >&5
14835 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14836 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14838 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14839 lt_cv_apple_cc_single_mod=yes
14841 cat conftest.err >&5
14843 rm -rf libconftest.dylib*
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14848 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14850 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14851 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14852 $as_echo_n "(cached
) " >&6
14854 lt_cv_ld_exported_symbols_list=no
14855 save_LDFLAGS=$LDFLAGS
14856 echo "_main
" > conftest.sym
14857 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14869 if ac_fn_c_try_link "$LINENO"; then :
14870 lt_cv_ld_exported_symbols_list=yes
14872 lt_cv_ld_exported_symbols_list=no
14874 rm -f core conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14876 LDFLAGS="$save_LDFLAGS"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14880 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14882 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14883 if test "${lt_cv_ld_force_load+set}" = set; then :
14884 $as_echo_n "(cached
) " >&6
14886 lt_cv_ld_force_load=no
14887 cat > conftest.c << _LT_EOF
14888 int forced_loaded() { return 2;}
14890 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14891 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14892 echo "$AR cru libconftest.a conftest.o
" >&5
14893 $AR cru libconftest.a conftest.o 2>&5
14894 cat > conftest.c << _LT_EOF
14895 int main() { return 0;}
14897 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14898 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14900 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14901 lt_cv_ld_force_load=yes
14903 cat conftest.err >&5
14905 rm -f conftest.err libconftest.a conftest conftest.c
14906 rm -rf conftest.dSYM
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14910 $as_echo "$lt_cv_ld_force_load" >&6; }
14912 rhapsody* | darwin1.[012])
14913 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14915 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14916 darwin*) # darwin 5.x on
14917 # if running on 10.5 or later, the deployment target defaults
14918 # to the OS version, if on x86, and 10.4, the deployment
14919 # target defaults to 10.4. Don't you love it?
14920 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14921 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14922 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14924 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14926 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14930 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14931 _lt_dar_single_mod='$single_module'
14933 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14934 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14936 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14938 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14939 _lt_dsymutil='~$DSYMUTIL $lib || :'
14947 for ac_header in dlfcn.h
14949 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14950 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14951 cat >>confdefs.h <<_ACEOF
14952 #define HAVE_DLFCN_H 1
14969 enable_win32_dll=no
14972 # Check whether --enable-shared was given.
14973 if test "${enable_shared+set}" = set; then :
14974 enableval=$enable_shared; p=${PACKAGE-default}
14976 yes) enable_shared=yes ;;
14977 no) enable_shared=no ;;
14980 # Look at the argument we got. We use all the common list separators.
14981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14982 for pkg in $enableval; do
14984 if test "X
$pkg" = "X
$p"; then
15003 # Check whether --enable-static was given.
15004 if test "${enable_static+set}" = set; then :
15005 enableval=$enable_static; p=${PACKAGE-default}
15007 yes) enable_static=yes ;;
15008 no) enable_static=no ;;
15011 # Look at the argument we got. We use all the common list separators.
15012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15013 for pkg in $enableval; do
15015 if test "X
$pkg" = "X
$p"; then
15035 # Check whether --with-pic was given.
15036 if test "${with_pic+set}" = set; then :
15037 withval=$with_pic; pic_mode="$withval"
15043 test -z "$pic_mode" && pic_mode=default
15051 # Check whether --enable-fast-install was given.
15052 if test "${enable_fast_install+set}" = set; then :
15053 enableval=$enable_fast_install; p=${PACKAGE-default}
15055 yes) enable_fast_install=yes ;;
15056 no) enable_fast_install=no ;;
15058 enable_fast_install=no
15059 # Look at the argument we got. We use all the common list separators.
15060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15061 for pkg in $enableval; do
15063 if test "X
$pkg" = "X
$p"; then
15064 enable_fast_install=yes
15071 enable_fast_install=yes
15084 # This can be used to rebuild libtool when needed
15085 LIBTOOL_DEPS="$ltmain"
15087 # Always use our own libtool.
15088 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15115 test -z "$LN_S" && LN_S="ln -s"
15130 if test -n "${ZSH_VERSION+set}" ; then
15131 setopt NO_GLOB_SUBST
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15135 $as_echo_n "checking
for objdir...
" >&6; }
15136 if test "${lt_cv_objdir+set}" = set; then :
15137 $as_echo_n "(cached
) " >&6
15139 rm -f .libs 2>/dev/null
15140 mkdir .libs 2>/dev/null
15141 if test -d .libs; then
15144 # MS-DOS does not allow filenames that begin with a dot.
15147 rmdir .libs 2>/dev/null
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15150 $as_echo "$lt_cv_objdir" >&6; }
15151 objdir=$lt_cv_objdir
15157 cat >>confdefs.h <<_ACEOF
15158 #define LT_OBJDIR "$lt_cv_objdir/"
15166 # AIX sometimes has problems with the GCC collect2 program. For some
15167 # reason, if we set the COLLECT_NAMES environment variable, the problems
15168 # vanish in a puff of smoke.
15169 if test "X
${COLLECT_NAMES+set}" != Xset; then
15171 export COLLECT_NAMES
15176 # Global variables:
15178 can_build_shared=yes
15180 # All known linkers require a `.a' archive for static linking (except MSVC,
15181 # which needs '.lib').
15184 with_gnu_ld="$lt_cv_prog_gnu_ld"
15187 old_CFLAGS="$CFLAGS"
15189 # Set sane defaults for various variables
15190 test -z "$CC" && CC=cc
15191 test -z "$LTCC" && LTCC=$CC
15192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15193 test -z "$LD" && LD=ld
15194 test -z "$ac_objext" && ac_objext=o
15196 for cc_temp in $compiler""; do
15198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15204 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15207 # Only perform the check for file, if the check method requires it
15208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15209 case $deplibs_check_method in
15211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15213 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15215 $as_echo_n "(cached
) " >&6
15219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15222 lt_save_MAGIC_CMD="$MAGIC_CMD"
15223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15224 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15225 for ac_dir in $ac_dummy; do
15227 test -z "$ac_dir" && ac_dir=.
15228 if test -f $ac_dir/${ac_tool_prefix}file; then
15229 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15230 if test -n "$file_magic_test_file"; then
15231 case $deplibs_check_method in
15233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15236 $EGREP "$file_magic_regex" > /dev/null; then
15241 *** Warning: the command libtool uses to detect shared libraries,
15242 *** $file_magic_cmd, produces output that libtool cannot recognize.
15243 *** The result is that libtool may fail to recognize shared libraries
15244 *** as such. This will affect the creation of libtool libraries that
15245 *** depend on shared libraries, but programs linked with such libtool
15246 *** libraries will work regardless of this problem. Nevertheless, you
15247 *** may want to report the problem to your system manager and/or to
15248 *** bug-libtool@gnu.org
15258 MAGIC_CMD="$lt_save_MAGIC_CMD"
15263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15264 if test -n "$MAGIC_CMD"; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15266 $as_echo "$MAGIC_CMD" >&6; }
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15269 $as_echo "no
" >&6; }
15276 if test -z "$lt_cv_path_MAGIC_CMD"; then
15277 if test -n "$ac_tool_prefix"; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15279 $as_echo_n "checking
for file...
" >&6; }
15280 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15281 $as_echo_n "(cached
) " >&6
15285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15288 lt_save_MAGIC_CMD="$MAGIC_CMD"
15289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15290 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15291 for ac_dir in $ac_dummy; do
15293 test -z "$ac_dir" && ac_dir=.
15294 if test -f $ac_dir/file; then
15295 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15296 if test -n "$file_magic_test_file"; then
15297 case $deplibs_check_method in
15299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15302 $EGREP "$file_magic_regex" > /dev/null; then
15307 *** Warning: the command libtool uses to detect shared libraries,
15308 *** $file_magic_cmd, produces output that libtool cannot recognize.
15309 *** The result is that libtool may fail to recognize shared libraries
15310 *** as such. This will affect the creation of libtool libraries that
15311 *** depend on shared libraries, but programs linked with such libtool
15312 *** libraries will work regardless of this problem. Nevertheless, you
15313 *** may want to report the problem to your system manager and/or to
15314 *** bug-libtool@gnu.org
15324 MAGIC_CMD="$lt_save_MAGIC_CMD"
15329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15330 if test -n "$MAGIC_CMD"; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15332 $as_echo "$MAGIC_CMD" >&6; }
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15335 $as_echo "no
" >&6; }
15348 # Use C for the default configuration in the libtool script
15352 ac_cpp='$CPP $CPPFLAGS'
15353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15358 # Source file extension for C test sources.
15361 # Object file extension for compiled C test sources.
15365 # Code to be used in simple compile tests
15366 lt_simple_compile_test_code="int some_variable
= 0;"
15368 # Code to be used in simple link tests
15369 lt_simple_link_test_code='int main(){return(0);}'
15377 # If no C compiler was specified, use CC.
15380 # If no C compiler flags were specified, use CFLAGS.
15381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15383 # Allow CC to be a program name with arguments.
15386 # Save the default compiler, since it gets overwritten when the other
15387 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15388 compiler_DEFAULT=$CC
15390 # save warnings/boilerplate of simple test code
15391 ac_outfile=conftest.$ac_objext
15392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15394 _lt_compiler_boilerplate=`cat conftest.err`
15397 ac_outfile=conftest.$ac_objext
15398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15400 _lt_linker_boilerplate=`cat conftest.err`
15405 ## There is no encapsulation within the following macros, do not change
15406 ## the running order or otherwise move them around unless you know exactly
15407 ## what you are doing...
15408 if test -n "$compiler"; then
15410 lt_prog_compiler_no_builtin_flag=
15412 if test "$GCC" = yes; then
15413 case $cc_basename in
15415 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15417 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15421 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15422 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15423 $as_echo_n "(cached
) " >&6
15425 lt_cv_prog_compiler_rtti_exceptions=no
15426 ac_outfile=conftest.$ac_objext
15427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15428 lt_compiler_flag="-fno-rtti -fno-exceptions"
15429 # Insert the option either (1) after the last *FLAGS variable, or
15430 # (2) before a word containing "conftest.
", or (3) at the end.
15431 # Note that $ac_compile itself does not contain backslashes and begins
15432 # with a dollar sign (not a hyphen), so the echo should work correctly.
15433 # The option is referenced via a variable to avoid confusing sed.
15434 lt_compile=`echo "$ac_compile" | $SED \
15435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15437 -e 's:$: $lt_compiler_flag:'`
15438 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15439 (eval "$lt_compile" 2>conftest.err)
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15443 if (exit $ac_status) && test -s "$ac_outfile"; then
15444 # The compiler can only warn and ignore the option if not recognized
15445 # So say no if there are warnings other than the usual output.
15446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15449 lt_cv_prog_compiler_rtti_exceptions=yes
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15456 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15458 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15459 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15471 lt_prog_compiler_wl=
15472 lt_prog_compiler_pic=
15473 lt_prog_compiler_static=
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15476 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15478 if test "$GCC" = yes; then
15479 lt_prog_compiler_wl='-Wl,'
15480 lt_prog_compiler_static='-static'
15484 # All AIX code is PIC.
15485 if test "$host_cpu" = ia64; then
15486 # AIX 5 now supports IA64 processor
15487 lt_prog_compiler_static='-Bstatic'
15489 lt_prog_compiler_pic='-fPIC'
15495 # see comment about AmigaOS4 .so support
15496 lt_prog_compiler_pic='-fPIC'
15499 # FIXME: we need at least 68020 code to build shared libraries, but
15500 # adding the `-m68020' flag to GCC prevents building anything better,
15502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15508 # PIC is the default for these OSes.
15511 mingw* | cygwin* | pw32* | os2* | cegcc*)
15512 # This hack is so that the source file can tell whether it is being
15513 # built for inclusion in a dll (and should export symbols for example).
15514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15515 # (--disable-auto-import) libraries
15516 lt_prog_compiler_pic='-DDLL_EXPORT'
15519 darwin* | rhapsody*)
15520 # PIC is the default on this platform
15521 # Common symbols not allowed in MH_DYLIB files
15522 lt_prog_compiler_pic='-fno-common'
15526 # PIC is the default for Haiku.
15527 # The "-static" flag exists, but is broken.
15528 lt_prog_compiler_static=
15532 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15533 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15534 # sets the default TLS model and affects inlining.
15540 lt_prog_compiler_pic='-fPIC'
15546 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15547 # Instead, we relocate shared libraries at runtime.
15551 # Just because we use GCC doesn't mean we suddenly get shared libraries
15552 # on systems that don't support them.
15553 lt_prog_compiler_can_build_shared=no
15558 # QNX uses GNU C++, but need to define -shared option too, otherwise
15559 # it will coredump.
15560 lt_prog_compiler_pic='-fPIC -shared'
15564 if test -d /usr/nec; then
15565 lt_prog_compiler_pic=-Kconform_pic
15570 lt_prog_compiler_pic='-fPIC'
15574 case $cc_basename in
15575 nvcc*) # Cuda Compiler Driver 2.2
15576 lt_prog_compiler_wl='-Xlinker '
15577 lt_prog_compiler_pic='-Xcompiler -fPIC'
15581 # PORTME Check for flag to pass linker flags through the system compiler.
15584 lt_prog_compiler_wl='-Wl,'
15585 if test "$host_cpu" = ia64; then
15586 # AIX 5 now supports IA64 processor
15587 lt_prog_compiler_static='-Bstatic'
15589 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15593 mingw* | cygwin* | pw32* | os2* | cegcc*)
15594 # This hack is so that the source file can tell whether it is being
15595 # built for inclusion in a dll (and should export symbols for example).
15596 lt_prog_compiler_pic='-DDLL_EXPORT'
15599 hpux9* | hpux10* | hpux11*)
15600 lt_prog_compiler_wl='-Wl,'
15601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15602 # not for PA HP-UX.
15608 lt_prog_compiler_pic='+Z'
15611 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15612 lt_prog_compiler_static='${wl}-a ${wl}archive'
15615 irix5* | irix6* | nonstopux*)
15616 lt_prog_compiler_wl='-Wl,'
15617 # PIC (with -KPIC) is the default.
15618 lt_prog_compiler_static='-non_shared'
15621 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15622 case $cc_basename in
15623 # old Intel for x86_64 which still supported -KPIC.
15625 lt_prog_compiler_wl='-Wl,'
15626 lt_prog_compiler_pic='-KPIC'
15627 lt_prog_compiler_static='-static'
15629 # icc used to be incompatible with GCC.
15630 # ICC 10 doesn't accept -KPIC any more.
15632 lt_prog_compiler_wl='-Wl,'
15633 lt_prog_compiler_pic='-fPIC'
15634 lt_prog_compiler_static='-static'
15636 # Lahey Fortran 8.1.
15638 lt_prog_compiler_wl='-Wl,'
15639 lt_prog_compiler_pic='--shared'
15640 lt_prog_compiler_static='--static'
15642 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15643 # Portland Group compilers (*not* the Pentium gcc compiler,
15644 # which looks to be a dead project)
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='-fpic'
15647 lt_prog_compiler_static='-Bstatic'
15650 lt_prog_compiler_wl='-Wl,'
15651 # All Alpha code is PIC.
15652 lt_prog_compiler_static='-non_shared'
15654 xl* | bgxl* | bgf* | mpixl*)
15655 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15656 lt_prog_compiler_wl='-Wl,'
15657 lt_prog_compiler_pic='-qpic'
15658 lt_prog_compiler_static='-qstaticlink'
15661 case `$CC -V 2>&1 | sed 5q` in
15662 *Sun\ F* | *Sun*Fortran*)
15663 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15664 lt_prog_compiler_pic='-KPIC'
15665 lt_prog_compiler_static='-Bstatic'
15666 lt_prog_compiler_wl=''
15670 lt_prog_compiler_pic='-KPIC'
15671 lt_prog_compiler_static='-Bstatic'
15672 lt_prog_compiler_wl='-Wl,'
15680 lt_prog_compiler_pic='-KPIC'
15681 lt_prog_compiler_static='-Bstatic'
15685 # QNX uses GNU C++, but need to define -shared option too, otherwise
15686 # it will coredump.
15687 lt_prog_compiler_pic='-fPIC -shared'
15690 osf3* | osf4* | osf5*)
15691 lt_prog_compiler_wl='-Wl,'
15692 # All OSF/1 code is PIC.
15693 lt_prog_compiler_static='-non_shared'
15697 lt_prog_compiler_static='-non_shared'
15701 lt_prog_compiler_pic='-KPIC'
15702 lt_prog_compiler_static='-Bstatic'
15703 case $cc_basename in
15704 f77* | f90* | f95*)
15705 lt_prog_compiler_wl='-Qoption ld ';;
15707 lt_prog_compiler_wl='-Wl,';;
15712 lt_prog_compiler_wl='-Qoption ld '
15713 lt_prog_compiler_pic='-PIC'
15714 lt_prog_compiler_static='-Bstatic'
15717 sysv4 | sysv4.2uw2* | sysv4.3*)
15718 lt_prog_compiler_wl='-Wl,'
15719 lt_prog_compiler_pic='-KPIC'
15720 lt_prog_compiler_static='-Bstatic'
15724 if test -d /usr/nec ;then
15725 lt_prog_compiler_pic='-Kconform_pic'
15726 lt_prog_compiler_static='-Bstatic'
15730 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15731 lt_prog_compiler_wl='-Wl,'
15732 lt_prog_compiler_pic='-KPIC'
15733 lt_prog_compiler_static='-Bstatic'
15737 lt_prog_compiler_wl='-Wl,'
15738 lt_prog_compiler_can_build_shared=no
15742 lt_prog_compiler_pic='-pic'
15743 lt_prog_compiler_static='-Bstatic'
15747 lt_prog_compiler_can_build_shared=no
15753 # For platforms which do not support PIC, -DPIC is meaningless:
15755 lt_prog_compiler_pic=
15758 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15762 $as_echo "$lt_prog_compiler_pic" >&6; }
15770 # Check to make sure the PIC flag actually works.
15772 if test -n "$lt_prog_compiler_pic"; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15774 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15775 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15776 $as_echo_n "(cached
) " >&6
15778 lt_cv_prog_compiler_pic_works=no
15779 ac_outfile=conftest.$ac_objext
15780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15781 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15782 # Insert the option either (1) after the last *FLAGS variable, or
15783 # (2) before a word containing "conftest.
", or (3) at the end.
15784 # Note that $ac_compile itself does not contain backslashes and begins
15785 # with a dollar sign (not a hyphen), so the echo should work correctly.
15786 # The option is referenced via a variable to avoid confusing sed.
15787 lt_compile=`echo "$ac_compile" | $SED \
15788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15790 -e 's:$: $lt_compiler_flag:'`
15791 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15792 (eval "$lt_compile" 2>conftest.err)
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15796 if (exit $ac_status) && test -s "$ac_outfile"; then
15797 # The compiler can only warn and ignore the option if not recognized
15798 # So say no if there are warnings other than the usual output.
15799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15802 lt_cv_prog_compiler_pic_works=yes
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15809 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15811 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15812 case $lt_prog_compiler_pic in
15814 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15817 lt_prog_compiler_pic=
15818 lt_prog_compiler_can_build_shared=no
15829 # Check to make sure the static flag actually works.
15831 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15833 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15834 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15835 $as_echo_n "(cached
) " >&6
15837 lt_cv_prog_compiler_static_works=no
15838 save_LDFLAGS="$LDFLAGS"
15839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15840 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15842 # The linker can only warn and ignore the option if not recognized
15843 # So say no if there are warnings
15844 if test -s conftest.err; then
15845 # Append any errors to the config.log.
15846 cat conftest.err 1>&5
15847 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15849 if diff conftest.exp conftest.er2 >/dev/null; then
15850 lt_cv_prog_compiler_static_works=yes
15853 lt_cv_prog_compiler_static_works=yes
15857 LDFLAGS="$save_LDFLAGS"
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15861 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15863 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15866 lt_prog_compiler_static=
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15876 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15877 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15878 $as_echo_n "(cached
) " >&6
15880 lt_cv_prog_compiler_c_o=no
15881 $RM -r conftest 2>/dev/null
15885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15887 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15888 # Insert the option either (1) after the last *FLAGS variable, or
15889 # (2) before a word containing "conftest.
", or (3) at the end.
15890 # Note that $ac_compile itself does not contain backslashes and begins
15891 # with a dollar sign (not a hyphen), so the echo should work correctly.
15892 lt_compile=`echo "$ac_compile" | $SED \
15893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15895 -e 's:$: $lt_compiler_flag:'`
15896 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15897 (eval "$lt_compile" 2>out/conftest.err)
15899 cat out/conftest.err >&5
15900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15903 # The compiler can only warn and ignore the option if not recognized
15904 # So say no if there are warnings
15905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15908 lt_cv_prog_compiler_c_o=yes
15913 # SGI C++ compiler will create directory out/ii_files/ for
15914 # template instantiation
15915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15916 $RM out/* && rmdir out
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15923 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15931 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15932 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15933 $as_echo_n "(cached
) " >&6
15935 lt_cv_prog_compiler_c_o=no
15936 $RM -r conftest 2>/dev/null
15940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15942 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15943 # Insert the option either (1) after the last *FLAGS variable, or
15944 # (2) before a word containing "conftest.
", or (3) at the end.
15945 # Note that $ac_compile itself does not contain backslashes and begins
15946 # with a dollar sign (not a hyphen), so the echo should work correctly.
15947 lt_compile=`echo "$ac_compile" | $SED \
15948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15950 -e 's:$: $lt_compiler_flag:'`
15951 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15952 (eval "$lt_compile" 2>out/conftest.err)
15954 cat out/conftest.err >&5
15955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15958 # The compiler can only warn and ignore the option if not recognized
15959 # So say no if there are warnings
15960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15963 lt_cv_prog_compiler_c_o=yes
15968 # SGI C++ compiler will create directory out/ii_files/ for
15969 # template instantiation
15970 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15971 $RM out/* && rmdir out
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15978 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15983 hard_links="nottested
"
15984 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15985 # do not overwrite the value of need_locks provided by the user
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15987 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15992 ln conftest.a conftest.b 2>&5 || hard_links=no
15993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15995 $as_echo "$hard_links" >&6; }
15996 if test "$hard_links" = no; then
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15998 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16011 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16014 allow_undefined_flag=
16015 always_export_symbols=no
16017 archive_expsym_cmds=
16018 compiler_needs_object=no
16019 enable_shared_with_static_runtimes=no
16020 export_dynamic_flag_spec=
16021 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16022 hardcode_automatic=no
16024 hardcode_direct_absolute=no
16025 hardcode_libdir_flag_spec=
16026 hardcode_libdir_flag_spec_ld=
16027 hardcode_libdir_separator=
16028 hardcode_minus_L=no
16029 hardcode_shlibpath_var=unsupported
16031 link_all_deplibs=unknown
16033 module_expsym_cmds=
16034 old_archive_from_new_cmds=
16035 old_archive_from_expsyms_cmds=
16036 thread_safe_flag_spec=
16037 whole_archive_flag_spec=
16038 # include_expsyms should be a list of space-separated symbols to be *always*
16039 # included in the symbol list
16041 # exclude_expsyms can be an extended regexp of symbols to exclude
16042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16044 # as well as any symbol that contains `d'.
16045 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16047 # platforms (ab)use it in PIC code, but their linkers get confused if
16048 # the symbol is explicitly referenced. Since portable code cannot
16049 # rely on this symbol name, it's probably fine to never include it in
16050 # preloaded symbol tables.
16051 # Exclude shared library initialization/finalization symbols.
16052 extract_expsyms_cmds=
16055 cygwin* | mingw* | pw32* | cegcc*)
16056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16057 # When not using gcc, we currently assume that we are using
16058 # Microsoft Visual C++.
16059 if test "$GCC" != yes; then
16064 # we just hope/assume this is gcc and not c89 (= MSVC++)
16074 # On some targets, GNU ld is compatible enough with the native linker
16075 # that we're better off using the native interface for both.
16076 lt_use_gnu_ld_interface=no
16077 if test "$with_gnu_ld" = yes; then
16080 # The AIX port of GNU ld has always aspired to compatibility
16081 # with the native linker. However, as the warning in the GNU ld
16082 # block says, versions before 2.19.5* couldn't really create working
16083 # shared libraries, regardless of the interface used.
16084 case `$LD -v 2>&1` in
16085 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16086 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16087 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16089 lt_use_gnu_ld_interface=yes
16094 lt_use_gnu_ld_interface=yes
16099 if test "$lt_use_gnu_ld_interface" = yes; then
16100 # If archive_cmds runs LD, not CC, wlarc should be empty
16103 # Set some defaults for GNU ld with shared library support. These
16104 # are reset later if shared libraries are not supported. Putting them
16105 # here allows them to be overridden if necessary.
16106 runpath_var=LD_RUN_PATH
16107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16108 export_dynamic_flag_spec='${wl}--export-dynamic'
16109 # ancient GNU ld didn't support --whole-archive et. al.
16110 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16111 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16113 whole_archive_flag_spec=
16115 supports_anon_versioning=no
16116 case `$LD -v 2>&1` in
16117 *GNU\ gold*) supports_anon_versioning=yes ;;
16118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16121 *\ 2.11.*) ;; # other 2.11 versions
16122 *) supports_anon_versioning=yes ;;
16125 # See if GNU ld supports shared libraries.
16128 # On AIX/PPC, the GNU linker is very broken
16129 if test "$host_cpu" != ia64; then
16133 *** Warning: the GNU linker, at least up to release 2.19, is reported
16134 *** to be unable to reliably create shared libraries on AIX.
16135 *** Therefore, libtool is disabling shared libraries support. If you
16136 *** really care for shared libraries, you may want to install binutils
16137 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16138 *** You will then need to restart the configuration process.
16147 # see comment about AmigaOS4 .so support
16148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16149 archive_expsym_cmds=''
16152 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)'
16153 hardcode_libdir_flag_spec
='-L$libdir'
16154 hardcode_minus_L
=yes
16160 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16161 allow_undefined_flag
=unsupported
16162 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16163 # support --undefined. This deserves some investigation. FIXME
16164 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170 cygwin
* | mingw
* | pw32
* | cegcc
*)
16171 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16172 # as there is no search path for DLLs.
16173 hardcode_libdir_flag_spec
='-L$libdir'
16174 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16175 allow_undefined_flag
=unsupported
16176 always_export_symbols
=no
16177 enable_shared_with_static_runtimes
=yes
16178 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16180 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16181 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16182 # If the export-symbols file already is a .def file (1st line
16183 # is EXPORTS), use it as is; otherwise, prepend...
16184 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16185 cp $export_symbols $output_objdir/$soname.def;
16187 echo EXPORTS > $output_objdir/$soname.def;
16188 cat $export_symbols >> $output_objdir/$soname.def;
16190 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16197 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198 link_all_deplibs
=yes
16203 hardcode_shlibpath_var
=no
16204 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16205 export_dynamic_flag_spec
='${wl}-E'
16206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16207 # Instead, shared libraries are loaded at an image base (0x10000000 by
16208 # default) and relocated if they conflict, which is a slow very memory
16209 # consuming and fragmenting process. To avoid this, we pick a random,
16210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16212 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16213 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'
16216 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16218 if test "$host_os" = linux-dietlibc
; then
16219 case $cc_basename in
16220 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16223 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16224 && test "$tmp_diet" = no
16226 tmp_addflag
=' $pic_flag'
16227 tmp_sharedflag
='-shared'
16228 case $cc_basename,$host_cpu in
16229 pgcc
*) # Portland Group C compiler
16230 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'
16231 tmp_addflag
=' $pic_flag'
16233 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16234 # Portland Group f77 and f90 compilers
16235 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'
16236 tmp_addflag
=' $pic_flag -Mnomain' ;;
16237 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16238 tmp_addflag
=' -i_dynamic' ;;
16239 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16240 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16241 ifc
* | ifort
*) # Intel Fortran compiler
16242 tmp_addflag
=' -nofor_main' ;;
16243 lf95
*) # Lahey Fortran 8.1
16244 whole_archive_flag_spec
=
16245 tmp_sharedflag
='--shared' ;;
16246 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16247 tmp_sharedflag
='-qmkshrobj'
16249 nvcc
*) # Cuda Compiler Driver 2.2
16250 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'
16251 compiler_needs_object
=yes
16254 case `$CC -V 2>&1 | sed 5q` in
16255 *Sun\ C
*) # Sun C 5.9
16256 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'
16257 compiler_needs_object
=yes
16258 tmp_sharedflag
='-G' ;;
16259 *Sun\ F
*) # Sun Fortran 8.3
16260 tmp_sharedflag
='-G' ;;
16262 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16264 if test "x$supports_anon_versioning" = xyes
; then
16265 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16267 echo "local: *; };" >> $output_objdir/$libname.ver~
16268 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16271 case $cc_basename in
16272 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16273 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16274 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16275 hardcode_libdir_flag_spec
=
16276 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16277 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16278 if test "x$supports_anon_versioning" = xyes
; then
16279 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16281 echo "local: *; };" >> $output_objdir/$libname.ver~
16282 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16292 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16293 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16296 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16297 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16302 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16306 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16307 *** create shared libraries on Solaris systems. Therefore, libtool
16308 *** is disabling shared libraries support. We urge you to upgrade GNU
16309 *** binutils to release 2.9.1 or newer. Another option is to modify
16310 *** your PATH or compiler configuration so that the native linker is
16311 *** used, and then restart.
16314 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16315 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16316 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16322 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16323 case `$LD -v 2>&1` in
16324 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16328 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16329 *** reliably create shared libraries on SCO systems. Therefore, libtool
16330 *** is disabling shared libraries support. We urge you to upgrade GNU
16331 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16332 *** your PATH or compiler configuration so that the native linker is
16333 *** used, and then restart.
16338 # For security reasons, it is highly recommended that you always
16339 # use absolute paths for naming shared libraries, and exclude the
16340 # DT_RUNPATH tag from executables and libraries. But doing so
16341 # requires that you compile everything twice, which is a pain.
16342 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16343 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16344 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16345 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16354 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16356 hardcode_direct
=yes
16357 hardcode_shlibpath_var
=no
16361 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16362 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16363 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16370 if test "$ld_shlibs" = no
; then
16372 hardcode_libdir_flag_spec
=
16373 export_dynamic_flag_spec
=
16374 whole_archive_flag_spec
=
16377 # PORTME fill in a description of your system's linker (not GNU ld)
16380 allow_undefined_flag
=unsupported
16381 always_export_symbols
=yes
16382 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'
16383 # Note: this linker hardcodes the directories in LIBPATH if there
16384 # are no directories specified by -L.
16385 hardcode_minus_L
=yes
16386 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16387 # Neither direct hardcoding nor static linking is supported with a
16389 hardcode_direct
=unsupported
16394 if test "$host_cpu" = ia64
; then
16395 # On IA64, the linker does run time linking by default, so we don't
16396 # have to do anything special.
16397 aix_use_runtimelinking
=no
16398 exp_sym_flag
='-Bexport'
16401 # If we're using GNU nm, then we don't want the "-C" option.
16402 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16403 # Also, AIX nm treats weak defined symbols like other global
16404 # defined symbols, whereas GNU nm marks them as "W".
16405 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16406 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'
16408 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16410 aix_use_runtimelinking
=no
16412 # Test if we are trying to use run time linking or normal
16413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16414 # need to do runtime linking.
16415 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16416 for ld_flag
in $LDFLAGS; do
16417 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16418 aix_use_runtimelinking
=yes
16425 exp_sym_flag
='-bexport'
16426 no_entry_flag
='-bnoentry'
16429 # When large executables or shared objects are built, AIX ld can
16430 # have problems creating the table of contents. If linking a library
16431 # or program results in "error TOC overflow" add -mminimal-toc to
16432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16436 hardcode_direct
=yes
16437 hardcode_direct_absolute
=yes
16438 hardcode_libdir_separator
=':'
16439 link_all_deplibs
=yes
16440 file_list_spec
='${wl}-f,'
16442 if test "$GCC" = yes; then
16443 case $host_os in aix4.
[012]|aix4.
[012].
*)
16444 # We only want to do this on AIX 4.2 and lower, the check
16445 # below for broken collect2 doesn't work under 4.3+
16446 collect2name
=`${CC} -print-prog-name=collect2`
16447 if test -f "$collect2name" &&
16448 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16450 # We have reworked collect2
16453 # We have old collect2
16454 hardcode_direct
=unsupported
16455 # It fails to find uninstalled libraries when the uninstalled
16456 # path is not listed in the libpath. Setting hardcode_minus_L
16457 # to unsupported forces relinking
16458 hardcode_minus_L
=yes
16459 hardcode_libdir_flag_spec
='-L$libdir'
16460 hardcode_libdir_separator
=
16464 shared_flag
='-shared'
16465 if test "$aix_use_runtimelinking" = yes; then
16466 shared_flag
="$shared_flag "'${wl}-G'
16470 if test "$host_cpu" = ia64
; then
16471 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16472 # chokes on -Wl,-G. The following line is correct:
16475 if test "$aix_use_runtimelinking" = yes; then
16476 shared_flag
='${wl}-G'
16478 shared_flag
='${wl}-bM:SRE'
16483 export_dynamic_flag_spec
='${wl}-bexpall'
16484 # It seems that -bexpall does not export symbols beginning with
16485 # underscore (_), so it is better to generate a list of symbols to export.
16486 always_export_symbols
=yes
16487 if test "$aix_use_runtimelinking" = yes; then
16488 # Warning - without using the other runtime loading flags (-brtl),
16489 # -berok will link without error, but may produce a broken library.
16490 allow_undefined_flag
='-berok'
16491 # Determine the default libpath from the value encoded in an
16492 # empty executable.
16493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16504 if ac_fn_c_try_link
"$LINENO"; then :
16506 lt_aix_libpath_sed
='
16507 /Import File Strings/,/^$/ {
16513 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16514 # Check for a 64-bit object if we didn't find anything.
16515 if test -z "$aix_libpath"; then
16516 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16519 rm -f core conftest.err conftest.
$ac_objext \
16520 conftest
$ac_exeext conftest.
$ac_ext
16521 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16523 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16524 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"
16526 if test "$host_cpu" = ia64
; then
16527 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16528 allow_undefined_flag
="-z nodefs"
16529 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"
16531 # Determine the default libpath from the value encoded in an
16532 # empty executable.
16533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16544 if ac_fn_c_try_link
"$LINENO"; then :
16546 lt_aix_libpath_sed
='
16547 /Import File Strings/,/^$/ {
16553 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16554 # Check for a 64-bit object if we didn't find anything.
16555 if test -z "$aix_libpath"; then
16556 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16559 rm -f core conftest.err conftest.
$ac_objext \
16560 conftest
$ac_exeext conftest.
$ac_ext
16561 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16563 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16564 # Warning - without using the other run time loading flags,
16565 # -berok will link without error, but may produce a broken library.
16566 no_undefined_flag
=' ${wl}-bernotok'
16567 allow_undefined_flag
=' ${wl}-berok'
16568 if test "$with_gnu_ld" = yes; then
16569 # We only use this code for GNU lds that support --whole-archive.
16570 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16572 # Exported symbols can be pulled into shared objects from archives
16573 whole_archive_flag_spec
='$convenience'
16575 archive_cmds_need_lc
=yes
16576 # This is similar to how AIX traditionally builds its shared libraries.
16577 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'
16585 # see comment about AmigaOS4 .so support
16586 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16587 archive_expsym_cmds
=''
16590 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)'
16591 hardcode_libdir_flag_spec
='-L$libdir'
16592 hardcode_minus_L
=yes
16598 export_dynamic_flag_spec
=-rdynamic
16601 cygwin
* | mingw
* | pw32
* | cegcc
*)
16602 # When not using gcc, we currently assume that we are using
16603 # Microsoft Visual C++.
16604 # hardcode_libdir_flag_spec is actually meaningless, as there is
16605 # no search path for DLLs.
16606 hardcode_libdir_flag_spec
=' '
16607 allow_undefined_flag
=unsupported
16608 # Tell ltmain to make .lib files, not .a files.
16610 # Tell ltmain to make .dll files, not .so files.
16612 # FIXME: Setting linknames here is a bad hack.
16613 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16614 # The linker will automatically build a .lib file if we build a DLL.
16615 old_archive_from_new_cmds
='true'
16616 # FIXME: Should let the user specify the lib program.
16617 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16618 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16619 enable_shared_with_static_runtimes
=yes
16622 darwin
* | rhapsody
*)
16625 archive_cmds_need_lc
=no
16627 hardcode_automatic
=yes
16628 hardcode_shlibpath_var
=unsupported
16629 if test "$lt_cv_ld_force_load" = "yes"; then
16630 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\"`'
16632 whole_archive_flag_spec
=''
16634 link_all_deplibs
=yes
16635 allow_undefined_flag
="$_lt_dar_allow_undefined"
16636 case $cc_basename in
16637 ifort
*) _lt_dar_can_shared
=yes ;;
16638 *) _lt_dar_can_shared
=$GCC ;;
16640 if test "$_lt_dar_can_shared" = "yes"; then
16641 output_verbose_link_cmd
=func_echo_all
16642 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16643 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16644 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}"
16645 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}"
16654 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655 hardcode_libdir_flag_spec
='-L$libdir'
16656 hardcode_shlibpath_var
=no
16659 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16660 # support. Future versions do this automatically, but an explicit c++rt0.o
16661 # does not break anything, and helps significantly (at the cost of a little
16664 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16665 hardcode_libdir_flag_spec
='-R$libdir'
16666 hardcode_direct
=yes
16667 hardcode_shlibpath_var
=no
16670 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16672 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16673 hardcode_direct
=yes
16674 hardcode_minus_L
=yes
16675 hardcode_shlibpath_var
=no
16678 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16679 freebsd
* | dragonfly
*)
16680 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16681 hardcode_libdir_flag_spec
='-R$libdir'
16682 hardcode_direct
=yes
16683 hardcode_shlibpath_var
=no
16687 if test "$GCC" = yes; then
16688 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'
16690 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'
16692 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16693 hardcode_libdir_separator
=:
16694 hardcode_direct
=yes
16696 # hardcode_minus_L: Not really in the search PATH,
16697 # but as the default location of the library.
16698 hardcode_minus_L
=yes
16699 export_dynamic_flag_spec
='${wl}-E'
16703 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16704 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16706 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16708 if test "$with_gnu_ld" = no
; then
16709 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16710 hardcode_libdir_flag_spec_ld
='+b $libdir'
16711 hardcode_libdir_separator
=:
16712 hardcode_direct
=yes
16713 hardcode_direct_absolute
=yes
16714 export_dynamic_flag_spec
='${wl}-E'
16715 # hardcode_minus_L: Not really in the search PATH,
16716 # but as the default location of the library.
16717 hardcode_minus_L
=yes
16722 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16725 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16728 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16731 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16740 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16744 # Older versions of the 11.00 compiler do not understand -b yet
16745 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16747 $as_echo_n "checking if $CC understands -b... " >&6; }
16748 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16749 $as_echo_n "(cached) " >&6
16751 lt_cv_prog_compiler__b
=no
16752 save_LDFLAGS
="$LDFLAGS"
16753 LDFLAGS
="$LDFLAGS -b"
16754 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16755 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16756 # The linker can only warn and ignore the option if not recognized
16757 # So say no if there are warnings
16758 if test -s conftest.err
; then
16759 # Append any errors to the config.log.
16760 cat conftest.err
1>&5
16761 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16762 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16763 if diff conftest.exp conftest.er2
>/dev
/null
; then
16764 lt_cv_prog_compiler__b
=yes
16767 lt_cv_prog_compiler__b
=yes
16771 LDFLAGS
="$save_LDFLAGS"
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16775 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16777 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16778 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16780 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16786 if test "$with_gnu_ld" = no
; then
16787 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16788 hardcode_libdir_separator
=:
16793 hardcode_shlibpath_var
=no
16796 hardcode_direct
=yes
16797 hardcode_direct_absolute
=yes
16798 export_dynamic_flag_spec
='${wl}-E'
16800 # hardcode_minus_L: Not really in the search PATH,
16801 # but as the default location of the library.
16802 hardcode_minus_L
=yes
16808 irix5
* | irix6
* | nonstopux
*)
16809 if test "$GCC" = yes; then
16810 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'
16811 # Try to use the -exported_symbol ld option, if it does not
16812 # work, assume that -exports_file does not work either and
16813 # implicitly export all symbols.
16814 save_LDFLAGS
="$LDFLAGS"
16815 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16820 if ac_fn_c_try_link
"$LINENO"; then :
16821 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'
16824 rm -f core conftest.err conftest.
$ac_objext \
16825 conftest
$ac_exeext conftest.
$ac_ext
16826 LDFLAGS
="$save_LDFLAGS"
16828 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'
16829 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'
16831 archive_cmds_need_lc
='no'
16832 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16833 hardcode_libdir_separator
=:
16835 link_all_deplibs
=yes
16839 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16840 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16842 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16844 hardcode_libdir_flag_spec
='-R$libdir'
16845 hardcode_direct
=yes
16846 hardcode_shlibpath_var
=no
16850 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16851 hardcode_direct
=yes
16852 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16853 hardcode_libdir_separator
=:
16854 hardcode_shlibpath_var
=no
16861 if test -f /usr
/libexec
/ld.so
; then
16862 hardcode_direct
=yes
16863 hardcode_shlibpath_var
=no
16864 hardcode_direct_absolute
=yes
16865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16866 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16867 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16868 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16869 export_dynamic_flag_spec
='${wl}-E'
16872 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16873 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874 hardcode_libdir_flag_spec
='-R$libdir'
16877 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16878 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16888 hardcode_libdir_flag_spec
='-L$libdir'
16889 hardcode_minus_L
=yes
16890 allow_undefined_flag
=unsupported
16891 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'
16892 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16896 if test "$GCC" = yes; then
16897 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16898 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'
16900 allow_undefined_flag
=' -expect_unresolved \*'
16901 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'
16903 archive_cmds_need_lc
='no'
16904 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16905 hardcode_libdir_separator
=:
16908 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16909 if test "$GCC" = yes; then
16910 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16911 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'
16912 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16914 allow_undefined_flag
=' -expect_unresolved \*'
16915 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'
16916 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~
16917 $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'
16919 # Both c and cxx compiler support -rpath directly
16920 hardcode_libdir_flag_spec
='-rpath $libdir'
16922 archive_cmds_need_lc
='no'
16923 hardcode_libdir_separator
=:
16927 no_undefined_flag
=' -z defs'
16928 if test "$GCC" = yes; then
16930 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16931 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16932 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16934 case `$CC -V 2>&1` in
16937 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16943 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16945 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16949 hardcode_libdir_flag_spec
='-R$libdir'
16950 hardcode_shlibpath_var
=no
16952 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16954 # The compiler driver will combine and reorder linker options,
16955 # but understands `-z linker_flag'. GCC discards it without `$wl',
16956 # but is careful enough not to reorder.
16957 # Supported since Solaris 2.6 (maybe 2.5.1?)
16958 if test "$GCC" = yes; then
16959 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16961 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16965 link_all_deplibs
=yes
16969 if test "x$host_vendor" = xsequent
; then
16970 # Use $CC to link under sequent, because it throws in some extra .o
16971 # files that make .init and .fini sections work.
16972 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16974 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16976 hardcode_libdir_flag_spec
='-L$libdir'
16977 hardcode_direct
=yes
16978 hardcode_minus_L
=yes
16979 hardcode_shlibpath_var
=no
16983 case $host_vendor in
16985 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_direct
=yes # is this really true???
16989 ## LD is ld it makes a PLAMLIB
16990 ## CC just makes a GrossModule.
16991 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16992 reload_cmds
='$CC -r -o $output$reload_objs'
16996 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16997 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17000 runpath_var
='LD_RUN_PATH'
17001 hardcode_shlibpath_var
=no
17005 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_shlibpath_var
=no
17007 export_dynamic_flag_spec
='-Bexport'
17011 if test -d /usr
/nec
; then
17012 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_shlibpath_var
=no
17014 runpath_var
=LD_RUN_PATH
17015 hardcode_runpath_var
=yes
17020 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17021 no_undefined_flag
='${wl}-z,text'
17022 archive_cmds_need_lc
=no
17023 hardcode_shlibpath_var
=no
17024 runpath_var
='LD_RUN_PATH'
17026 if test "$GCC" = yes; then
17027 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17028 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17030 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17031 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17035 sysv5
* | sco3.2v5
* | sco5v6
*)
17036 # Note: We can NOT use -z defs as we might desire, because we do not
17037 # link with -lc, and that would cause any symbols used from libc to
17038 # always be unresolved, which means just about no library would
17039 # ever link correctly. If we're not using GNU ld we use -z text
17040 # though, which does catch some bad symbols but isn't as heavy-handed
17042 no_undefined_flag
='${wl}-z,text'
17043 allow_undefined_flag
='${wl}-z,nodefs'
17044 archive_cmds_need_lc
=no
17045 hardcode_shlibpath_var
=no
17046 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17047 hardcode_libdir_separator
=':'
17048 link_all_deplibs
=yes
17049 export_dynamic_flag_spec
='${wl}-Bexport'
17050 runpath_var
='LD_RUN_PATH'
17052 if test "$GCC" = yes; then
17053 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17054 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17056 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17057 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17062 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17063 hardcode_libdir_flag_spec
='-L$libdir'
17064 hardcode_shlibpath_var
=no
17072 if test x
$host_vendor = xsni
; then
17074 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17075 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17082 $as_echo "$ld_shlibs" >&6; }
17083 test "$ld_shlibs" = no
&& can_build_shared
=no
17085 with_gnu_ld
=$with_gnu_ld
17102 # Do we need to explicitly link libc?
17104 case "x$archive_cmds_need_lc" in
17106 # Assume -lc should be added
17107 archive_cmds_need_lc
=yes
17109 if test "$enable_shared" = yes && test "$GCC" = yes; then
17110 case $archive_cmds in
17112 # FIXME: we may have to deal with multi-command sequences.
17115 # Test whether the compiler implicitly links with -lc since on some
17116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17117 # to ld, don't add -lc before -lgcc.
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17119 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17120 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17121 $as_echo_n "(cached) " >&6
17124 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17127 (eval $ac_compile) 2>&5
17129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17130 test $ac_status = 0; } 2>conftest.err
; then
17133 libobjs
=conftest.
$ac_objext
17135 wl
=$lt_prog_compiler_wl
17136 pic_flag
=$lt_prog_compiler_pic
17142 lt_save_allow_undefined_flag
=$allow_undefined_flag
17143 allow_undefined_flag
=
17144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17145 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17148 test $ac_status = 0; }
17150 lt_cv_archive_cmds_need_lc
=no
17152 lt_cv_archive_cmds_need_lc
=yes
17154 allow_undefined_flag
=$lt_save_allow_undefined_flag
17156 cat conftest.err
1>&5
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17162 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17163 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17329 if test "$GCC" = yes; then
17331 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17332 *) lt_awk_arg
="/^libraries:/" ;;
17335 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17336 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17338 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17339 case $lt_search_path_spec in
17341 # if the path contains ";" then we assume it to be the separator
17342 # otherwise default to the standard path separator (i.e. ":") - it is
17343 # assumed that no part of a normal pathname contains ";" but that should
17344 # okay in the real world where ";" in dirpaths is itself problematic.
17345 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17348 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17351 # Ok, now we have the path, separated by spaces, we can step through it
17352 # and add multilib dir if necessary.
17353 lt_tmp_lt_search_path_spec
=
17354 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17355 for lt_sys_path
in $lt_search_path_spec; do
17356 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17357 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17359 test -d "$lt_sys_path" && \
17360 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17363 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17364 BEGIN {RS=" "; FS="/|\n";} {
17367 for (lt_i = NF; lt_i > 0; lt_i--) {
17368 if ($lt_i != "" && $lt_i != ".") {
17369 if ($lt_i == "..") {
17372 if (lt_count == 0) {
17373 lt_foo="/" $lt_i lt_foo;
17380 if (lt_foo != "") { lt_freq[lt_foo]++; }
17381 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17383 # AWK program above erroneously prepends '/' to C:/dos/paths
17386 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17387 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17389 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17391 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17393 library_names_spec
=
17394 libname_spec
='lib$name'
17398 postuninstall_cmds
=
17402 shlibpath_overrides_runpath
=unknown
17404 dynamic_linker
="$host_os ld.so"
17405 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17406 need_lib_prefix
=unknown
17407 hardcode_into_libs
=no
17409 # when you set need_version to no, make sure it does not cause -set_version
17410 # flags to be left without arguments
17411 need_version
=unknown
17416 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17417 shlibpath_var
=LIBPATH
17419 # AIX 3 has no versioning support, so we append a major version to the name.
17420 soname_spec
='${libname}${release}${shared_ext}$major'
17427 hardcode_into_libs
=yes
17428 if test "$host_cpu" = ia64
; then
17429 # AIX 5 supports IA64
17430 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17431 shlibpath_var
=LD_LIBRARY_PATH
17433 # With GCC up to 2.95.x, collect2 would create an import file
17434 # for dependence libraries. The import file would start with
17435 # the line `#! .'. This would cause the generated library to
17436 # depend on `.', always an invalid library. This was fixed in
17437 # development snapshots of GCC prior to 3.0.
17439 aix4 | aix4.
[01] | aix4.
[01].
*)
17440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17442 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17445 can_build_shared
=no
17449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17450 # soname into executable. Probably we can add versioning support to
17451 # collect2, so additional links can be useful in future.
17452 if test "$aix_use_runtimelinking" = yes; then
17453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17454 # instead of lib<name>.a to let people know that these are not
17455 # typical AIX shared libraries.
17456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 # We preserve .a as extension for shared libraries through AIX4.2
17459 # and later when we are not doing run time linking.
17460 library_names_spec
='${libname}${release}.a $libname.a'
17461 soname_spec
='${libname}${release}${shared_ext}$major'
17463 shlibpath_var
=LIBPATH
17470 # Since July 2007 AmigaOS4 officially supports .so libraries.
17471 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475 library_names_spec
='$libname.ixlibrary $libname.a'
17476 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17477 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'
17483 library_names_spec
='${libname}${shared_ext}'
17484 dynamic_linker
="$host_os ld.so"
17485 shlibpath_var
=LIBRARY_PATH
17491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 soname_spec
='${libname}${release}${shared_ext}$major'
17493 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17494 shlibpath_var
=LD_LIBRARY_PATH
17495 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17496 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17497 # the default ld.so.conf also contains /usr/contrib/lib and
17498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17499 # libtool to hard-code these into programs
17502 cygwin
* | mingw
* | pw32
* | cegcc
*)
17503 version_type
=windows
17508 case $GCC,$host_os in
17509 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17510 library_names_spec
='$libname.dll.a'
17511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17512 postinstall_cmds
='base_file=`basename \${file}`~
17513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17514 dldir=$destdir/`dirname \$dlpath`~
17515 test -d \$dldir || mkdir -p \$dldir~
17516 $install_prog $dir/$dlname \$dldir/$dlname~
17517 chmod a+x \$dldir/$dlname~
17518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17521 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17522 dlpath=$dir/\$dldll~
17524 shlibpath_overrides_runpath
=yes
17528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17529 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17531 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17534 # MinGW DLLs use traditional 'lib' prefix
17535 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17538 # pw32 DLLs use 'pw' prefix rather than 'lib'
17539 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17545 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17548 dynamic_linker
='Win32 ld.exe'
17549 # FIXME: first we should search . and the directory the executable is in
17553 darwin
* | rhapsody
*)
17554 dynamic_linker
="$host_os dyld"
17555 version_type
=darwin
17558 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17559 soname_spec
='${libname}${release}${major}$shared_ext'
17560 shlibpath_overrides_runpath
=yes
17561 shlibpath_var
=DYLD_LIBRARY_PATH
17562 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17564 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17565 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17573 soname_spec
='${libname}${release}${shared_ext}$major'
17574 shlibpath_var
=LD_LIBRARY_PATH
17577 freebsd
* | dragonfly
*)
17578 # DragonFly does not have aout. When/if they implement a new
17579 # versioning mechanism, adjust this.
17580 if test -x /usr
/bin
/objformat
; then
17581 objformat
=`/usr/bin/objformat`
17584 freebsd
[23].
*) objformat
=aout
;;
17585 *) objformat
=elf
;;
17588 version_type
=freebsd-
$objformat
17589 case $version_type in
17591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17596 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17600 shlibpath_var
=LD_LIBRARY_PATH
17603 shlibpath_overrides_runpath
=yes
17605 freebsd3.
[01]* | freebsdelf3.
[01]*)
17606 shlibpath_overrides_runpath
=yes
17607 hardcode_into_libs
=yes
17609 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17610 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17611 shlibpath_overrides_runpath
=no
17612 hardcode_into_libs
=yes
17614 *) # from 4.6 on, and DragonFly
17615 shlibpath_overrides_runpath
=yes
17616 hardcode_into_libs
=yes
17625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17626 soname_spec
='${libname}${release}${shared_ext}$major'
17627 shlibpath_var
=LD_LIBRARY_PATH
17628 hardcode_into_libs
=yes
17635 dynamic_linker
="$host_os runtime_loader"
17636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17637 soname_spec
='${libname}${release}${shared_ext}$major'
17638 shlibpath_var
=LIBRARY_PATH
17639 shlibpath_overrides_runpath
=yes
17640 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17641 hardcode_into_libs
=yes
17644 hpux9
* | hpux10
* | hpux11
*)
17645 # Give a soname corresponding to the major version so that dld.sl refuses to
17646 # link against other versions.
17653 hardcode_into_libs
=yes
17654 dynamic_linker
="$host_os dld.so"
17655 shlibpath_var
=LD_LIBRARY_PATH
17656 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658 soname_spec
='${libname}${release}${shared_ext}$major'
17659 if test "X$HPUX_IA64_MODE" = X32
; then
17660 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17662 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17664 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17668 hardcode_into_libs
=yes
17669 dynamic_linker
="$host_os dld.sl"
17670 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17671 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673 soname_spec
='${libname}${release}${shared_ext}$major'
17674 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17675 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17679 dynamic_linker
="$host_os dld.sl"
17680 shlibpath_var
=SHLIB_PATH
17681 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17683 soname_spec
='${libname}${release}${shared_ext}$major'
17686 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17687 postinstall_cmds
='chmod 555 $lib'
17688 # or fails outright, so override atomically:
17689 install_override_mode
=555
17696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17697 soname_spec
='${libname}${release}${shared_ext}$major'
17698 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17699 shlibpath_var
=LD_LIBRARY_PATH
17700 shlibpath_overrides_runpath
=no
17701 hardcode_into_libs
=yes
17704 irix5
* | irix6
* | nonstopux
*)
17706 nonstopux
*) version_type
=nonstopux
;;
17708 if test "$lt_cv_prog_gnu_ld" = yes; then
17716 soname_spec
='${libname}${release}${shared_ext}$major'
17717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17719 irix5
* | nonstopux
*)
17720 libsuff
= shlibsuff
=
17723 case $LD in # libtool.m4 will add one of these switches to LD
17724 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17725 libsuff
= shlibsuff
= libmagic
=32-bit;;
17726 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17727 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17728 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17729 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17730 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17734 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17735 shlibpath_overrides_runpath
=no
17736 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17737 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17738 hardcode_into_libs
=yes
17741 # No shared lib support for Linux oldld, aout, or coff.
17742 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17746 # This must be Linux ELF.
17747 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17752 soname_spec
='${libname}${release}${shared_ext}$major'
17753 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17754 shlibpath_var
=LD_LIBRARY_PATH
17755 shlibpath_overrides_runpath
=no
17757 # Some binutils ld are patched to set DT_RUNPATH
17758 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17759 $as_echo_n "(cached) " >&6
17761 lt_cv_shlibpath_overrides_runpath
=no
17762 save_LDFLAGS
=$LDFLAGS
17763 save_libdir
=$libdir
17764 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17765 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17777 if ac_fn_c_try_link
"$LINENO"; then :
17778 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17779 lt_cv_shlibpath_overrides_runpath
=yes
17782 rm -f core conftest.err conftest.
$ac_objext \
17783 conftest
$ac_exeext conftest.
$ac_ext
17784 LDFLAGS
=$save_LDFLAGS
17785 libdir
=$save_libdir
17789 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17791 # This implies no fast_install, which is unacceptable.
17792 # Some rework will be needed to allow for fast_install
17793 # before this can be enabled.
17794 hardcode_into_libs
=yes
17796 # Append ld.so.conf contents to the search path
17797 if test -f /etc
/ld.so.conf
; then
17798 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' ' '`
17799 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17802 # We used to test for /lib/ld.so.1 and disable shared libraries on
17803 # powerpc, because MkLinux only supported shared libraries with the
17804 # GNU dynamic linker. Since this was broken with cross compilers,
17805 # most powerpc-linux boxes support dynamic linking these days and
17806 # people can always --disable-shared, the test was removed, and we
17807 # assume the GNU/Linux dynamic linker is in use.
17808 dynamic_linker
='GNU/Linux ld.so'
17815 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17816 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17817 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17818 dynamic_linker
='NetBSD (a.out) ld.so'
17820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17821 soname_spec
='${libname}${release}${shared_ext}$major'
17822 dynamic_linker
='NetBSD ld.elf_so'
17824 shlibpath_var
=LD_LIBRARY_PATH
17825 shlibpath_overrides_runpath
=yes
17826 hardcode_into_libs
=yes
17831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832 shlibpath_var
=LD_LIBRARY_PATH
17833 shlibpath_overrides_runpath
=yes
17840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 soname_spec
='${libname}${release}${shared_ext}$major'
17842 shlibpath_var
=LD_LIBRARY_PATH
17843 shlibpath_overrides_runpath
=no
17844 hardcode_into_libs
=yes
17845 dynamic_linker
='ldqnx.so'
17850 sys_lib_dlsearch_path_spec
="/usr/lib"
17852 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17854 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17855 *) need_version
=no
;;
17857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17858 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17859 shlibpath_var
=LD_LIBRARY_PATH
17860 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17862 openbsd2.
[89] | openbsd2.
[89].
*)
17863 shlibpath_overrides_runpath
=no
17866 shlibpath_overrides_runpath
=yes
17870 shlibpath_overrides_runpath
=yes
17875 libname_spec
='$name'
17878 library_names_spec
='$libname${shared_ext} $libname.a'
17879 dynamic_linker
='OS/2 ld.exe'
17880 shlibpath_var
=LIBPATH
17883 osf3
* | osf4
* | osf5
*)
17887 soname_spec
='${libname}${release}${shared_ext}$major'
17888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889 shlibpath_var
=LD_LIBRARY_PATH
17890 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17891 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903 soname_spec
='${libname}${release}${shared_ext}$major'
17904 shlibpath_var
=LD_LIBRARY_PATH
17905 shlibpath_overrides_runpath
=yes
17906 hardcode_into_libs
=yes
17907 # ldd complains unless libraries are executable
17908 postinstall_cmds
='chmod +x $lib'
17913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17914 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17915 shlibpath_var
=LD_LIBRARY_PATH
17916 shlibpath_overrides_runpath
=yes
17917 if test "$with_gnu_ld" = yes; then
17925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17926 soname_spec
='${libname}${release}${shared_ext}$major'
17927 shlibpath_var
=LD_LIBRARY_PATH
17928 case $host_vendor in
17930 shlibpath_overrides_runpath
=no
17932 runpath_var
=LD_RUN_PATH
17940 shlibpath_overrides_runpath
=no
17941 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17947 if test -d /usr
/nec
;then
17949 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17950 soname_spec
='$libname${shared_ext}.$major'
17951 shlibpath_var
=LD_LIBRARY_PATH
17955 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17956 version_type
=freebsd-elf
17959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17960 soname_spec
='${libname}${release}${shared_ext}$major'
17961 shlibpath_var
=LD_LIBRARY_PATH
17962 shlibpath_overrides_runpath
=yes
17963 hardcode_into_libs
=yes
17964 if test "$with_gnu_ld" = yes; then
17965 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17967 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17970 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17974 sys_lib_dlsearch_path_spec
='/usr/lib'
17978 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17982 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17983 shlibpath_var
=LD_LIBRARY_PATH
17984 shlibpath_overrides_runpath
=no
17985 hardcode_into_libs
=yes
17990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991 soname_spec
='${libname}${release}${shared_ext}$major'
17992 shlibpath_var
=LD_LIBRARY_PATH
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18000 $as_echo "$dynamic_linker" >&6; }
18001 test "$dynamic_linker" = no
&& can_build_shared
=no
18003 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18004 if test "$GCC" = yes; then
18005 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18008 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18009 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18011 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18012 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18107 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18109 if test -n "$hardcode_libdir_flag_spec" ||
18110 test -n "$runpath_var" ||
18111 test "X$hardcode_automatic" = "Xyes" ; then
18113 # We can hardcode non-existent directories.
18114 if test "$hardcode_direct" != no
&&
18115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18116 # have to relink, otherwise we might link with an installed library
18117 # when we should be linking with a yet-to-be-installed one
18118 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18119 test "$hardcode_minus_L" != no
; then
18120 # Linking always hardcodes the temporary library directory.
18121 hardcode_action
=relink
18123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18124 hardcode_action
=immediate
18127 # We cannot hardcode anything, or else we can only hardcode existing
18129 hardcode_action
=unsupported
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18132 $as_echo "$hardcode_action" >&6; }
18134 if test "$hardcode_action" = relink ||
18135 test "$inherit_rpath" = yes; then
18136 # Fast installation is not supported
18137 enable_fast_install
=no
18138 elif test "$shlibpath_overrides_runpath" = yes ||
18139 test "$enable_shared" = no
; then
18140 # Fast installation is not necessary
18141 enable_fast_install
=needless
18149 if test "x$enable_dlopen" != xyes
; then
18150 enable_dlopen
=unknown
18151 enable_dlopen_self
=unknown
18152 enable_dlopen_self_static
=unknown
18159 lt_cv_dlopen
="load_add_on"
18161 lt_cv_dlopen_self
=yes
18164 mingw
* | pw32
* | cegcc
*)
18165 lt_cv_dlopen
="LoadLibrary"
18170 lt_cv_dlopen
="dlopen"
18175 # if libdl is installed we need to link against it
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18177 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18178 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18179 $as_echo_n "(cached) " >&6
18181 ac_check_lib_save_LIBS
=$LIBS
18183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18186 /* Override any GCC internal prototype to avoid an error.
18187 Use char because int might match the return type of a GCC
18188 builtin and then its argument prototype would still apply. */
18201 if ac_fn_c_try_link
"$LINENO"; then :
18202 ac_cv_lib_dl_dlopen
=yes
18204 ac_cv_lib_dl_dlopen
=no
18206 rm -f core conftest.err conftest.
$ac_objext \
18207 conftest
$ac_exeext conftest.
$ac_ext
18208 LIBS
=$ac_check_lib_save_LIBS
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18211 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18212 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18213 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18216 lt_cv_dlopen
="dyld"
18218 lt_cv_dlopen_self
=yes
18225 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18226 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18227 lt_cv_dlopen
="shl_load"
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18230 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18231 if test "${ac_cv_lib_dld_shl_load+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. */
18249 return shl_load ();
18254 if ac_fn_c_try_link
"$LINENO"; then :
18255 ac_cv_lib_dld_shl_load
=yes
18257 ac_cv_lib_dld_shl_load
=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_dld_shl_load" >&5
18264 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18265 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18266 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18268 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18269 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18270 lt_cv_dlopen
="dlopen"
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18273 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18274 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18277 ac_check_lib_save_LIBS
=$LIBS
18279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18297 if ac_fn_c_try_link
"$LINENO"; then :
18298 ac_cv_lib_dl_dlopen
=yes
18300 ac_cv_lib_dl_dlopen
=no
18302 rm -f core conftest.err conftest.
$ac_objext \
18303 conftest
$ac_exeext conftest.
$ac_ext
18304 LIBS
=$ac_check_lib_save_LIBS
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18307 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18308 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18309 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18312 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18314 $as_echo_n "(cached) " >&6
18316 ac_check_lib_save_LIBS
=$LIBS
18317 LIBS
="-lsvld $LIBS"
18318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18321 /* Override any GCC internal prototype to avoid an error.
18322 Use char because int might match the return type of a GCC
18323 builtin and then its argument prototype would still apply. */
18336 if ac_fn_c_try_link
"$LINENO"; then :
18337 ac_cv_lib_svld_dlopen
=yes
18339 ac_cv_lib_svld_dlopen
=no
18341 rm -f core conftest.err conftest.
$ac_objext \
18342 conftest
$ac_exeext conftest.
$ac_ext
18343 LIBS
=$ac_check_lib_save_LIBS
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18346 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18347 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18348 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18351 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18352 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18353 $as_echo_n "(cached) " >&6
18355 ac_check_lib_save_LIBS
=$LIBS
18357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18360 /* Override any GCC internal prototype to avoid an error.
18361 Use char because int might match the return type of a GCC
18362 builtin and then its argument prototype would still apply. */
18370 return dld_link ();
18375 if ac_fn_c_try_link
"$LINENO"; then :
18376 ac_cv_lib_dld_dld_link
=yes
18378 ac_cv_lib_dld_dld_link
=no
18380 rm -f core conftest.err conftest.
$ac_objext \
18381 conftest
$ac_exeext conftest.
$ac_ext
18382 LIBS
=$ac_check_lib_save_LIBS
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18385 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18386 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18387 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18408 if test "x$lt_cv_dlopen" != xno
; then
18414 case $lt_cv_dlopen in
18416 save_CPPFLAGS
="$CPPFLAGS"
18417 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18419 save_LDFLAGS
="$LDFLAGS"
18420 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18423 LIBS
="$lt_cv_dlopen_libs $LIBS"
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18426 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18427 if test "${lt_cv_dlopen_self+set}" = set; then :
18428 $as_echo_n "(cached) " >&6
18430 if test "$cross_compiling" = yes; then :
18431 lt_cv_dlopen_self
=cross
18433 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18434 lt_status
=$lt_dlunknown
18435 cat > conftest.
$ac_ext <<_LT_EOF
18436 #line 18436 "configure"
18437 #include "confdefs.h"
18446 # define LT_DLGLOBAL RTLD_GLOBAL
18449 # define LT_DLGLOBAL DL_GLOBAL
18451 # define LT_DLGLOBAL 0
18455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18456 find out it does not work in some platform. */
18457 #ifndef LT_DLLAZY_OR_NOW
18459 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18462 # define LT_DLLAZY_OR_NOW DL_LAZY
18465 # define LT_DLLAZY_OR_NOW RTLD_NOW
18468 # define LT_DLLAZY_OR_NOW DL_NOW
18470 # define LT_DLLAZY_OR_NOW 0
18477 /* When -fvisbility=hidden is used, assume the code has been annotated
18478 correspondingly for the symbols needed. */
18479 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18480 void fnord () __attribute__((visibility("default")));
18483 void fnord () { int i=42; }
18486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18487 int status = $lt_dlunknown;
18491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18494 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18495 else puts (dlerror ());
18497 /* dlclose (self); */
18505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18506 (eval $ac_link) 2>&5
18508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18509 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18510 (.
/conftest
; exit; ) >&5 2>/dev
/null
18512 case x
$lt_status in
18513 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18514 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18515 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18518 # compilation failed
18519 lt_cv_dlopen_self
=no
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18527 $as_echo "$lt_cv_dlopen_self" >&6; }
18529 if test "x$lt_cv_dlopen_self" = xyes
; then
18530 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18532 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18533 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18534 $as_echo_n "(cached) " >&6
18536 if test "$cross_compiling" = yes; then :
18537 lt_cv_dlopen_self_static
=cross
18539 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18540 lt_status
=$lt_dlunknown
18541 cat > conftest.
$ac_ext <<_LT_EOF
18542 #line 18542 "configure"
18543 #include "confdefs.h"
18552 # define LT_DLGLOBAL RTLD_GLOBAL
18555 # define LT_DLGLOBAL DL_GLOBAL
18557 # define LT_DLGLOBAL 0
18561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18562 find out it does not work in some platform. */
18563 #ifndef LT_DLLAZY_OR_NOW
18565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18568 # define LT_DLLAZY_OR_NOW DL_LAZY
18571 # define LT_DLLAZY_OR_NOW RTLD_NOW
18574 # define LT_DLLAZY_OR_NOW DL_NOW
18576 # define LT_DLLAZY_OR_NOW 0
18583 /* When -fvisbility=hidden is used, assume the code has been annotated
18584 correspondingly for the symbols needed. */
18585 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18586 void fnord () __attribute__((visibility("default")));
18589 void fnord () { int i=42; }
18592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18593 int status = $lt_dlunknown;
18597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18600 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18601 else puts (dlerror ());
18603 /* dlclose (self); */
18611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18612 (eval $ac_link) 2>&5
18614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18615 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18616 (.
/conftest
; exit; ) >&5 2>/dev
/null
18618 case x
$lt_status in
18619 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18620 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18621 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18624 # compilation failed
18625 lt_cv_dlopen_self_static
=no
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18633 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18636 CPPFLAGS
="$save_CPPFLAGS"
18637 LDFLAGS
="$save_LDFLAGS"
18642 case $lt_cv_dlopen_self in
18643 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18644 *) enable_dlopen_self
=unknown
;;
18647 case $lt_cv_dlopen_self_static in
18648 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18649 *) enable_dlopen_self_static
=unknown
;;
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18672 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18673 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18674 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18675 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18677 $as_echo "yes" >&6; }
18679 # FIXME - insert some real tests, host_os isn't really good enough
18682 if test -n "$STRIP" ; then
18683 striplib
="$STRIP -x"
18684 old_striplib
="$STRIP -S"
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689 $as_echo "no" >&6; }
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18694 $as_echo "no" >&6; }
18710 # Report which library types will actually be built
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18712 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18714 $as_echo "$can_build_shared" >&6; }
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18717 $as_echo_n "checking whether to build shared libraries... " >&6; }
18718 test "$can_build_shared" = "no" && enable_shared
=no
18720 # On AIX, shared libraries and static libraries use the same namespace, and
18721 # are all built from PIC.
18724 test "$enable_shared" = yes && enable_static
=no
18725 if test -n "$RANLIB"; then
18726 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18727 postinstall_cmds
='$RANLIB $lib'
18732 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18733 test "$enable_shared" = yes && enable_static
=no
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18738 $as_echo "$enable_shared" >&6; }
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18741 $as_echo_n "checking whether to build static libraries... " >&6; }
18742 # Make sure either enable_shared or enable_static is yes.
18743 test "$enable_shared" = yes || enable_static
=yes
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18745 $as_echo "$enable_static" >&6; }
18752 ac_cpp
='$CXXCPP $CPPFLAGS'
18753 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18754 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18755 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18759 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18760 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18761 (test "X$CXX" != "Xg++"))) ; then
18763 ac_cpp
='$CXXCPP $CPPFLAGS'
18764 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18765 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18766 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18768 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18769 if test -z "$CXXCPP"; then
18770 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18771 $as_echo_n "(cached) " >&6
18773 # Double quotes because CXXCPP needs to be expanded
18774 for CXXCPP
in "$CXX -E" "/lib/cpp"
18776 ac_preproc_ok
=false
18777 for ac_cxx_preproc_warn_flag
in '' yes
18779 # Use a header file that comes with gcc, so configuring glibc
18780 # with a fresh cross-compiler works.
18781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18782 # <limits.h> exists even on freestanding compilers.
18783 # On the NeXT, cc -E runs the code through the compiler's parser,
18784 # not just through cpp. "Syntax error" is here to catch this case.
18785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18788 # include <limits.h>
18790 # include <assert.h>
18794 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18797 # Broken: fails on valid input.
18800 rm -f conftest.err conftest.
$ac_ext
18802 # OK, works on sane cases. Now check whether nonexistent headers
18803 # can be detected and how.
18804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18806 #include <ac_nonexistent.h>
18808 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18809 # Broken: success on invalid input.
18812 # Passes both tests.
18816 rm -f conftest.err conftest.
$ac_ext
18819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18820 rm -f conftest.err conftest.
$ac_ext
18821 if $ac_preproc_ok; then :
18826 ac_cv_prog_CXXCPP
=$CXXCPP
18829 CXXCPP
=$ac_cv_prog_CXXCPP
18831 ac_cv_prog_CXXCPP
=$CXXCPP
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18834 $as_echo "$CXXCPP" >&6; }
18835 ac_preproc_ok
=false
18836 for ac_cxx_preproc_warn_flag
in '' yes
18838 # Use a header file that comes with gcc, so configuring glibc
18839 # with a fresh cross-compiler works.
18840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18841 # <limits.h> exists even on freestanding compilers.
18842 # On the NeXT, cc -E runs the code through the compiler's parser,
18843 # not just through cpp. "Syntax error" is here to catch this case.
18844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18845 /* end confdefs.h. */
18847 # include <limits.h>
18849 # include <assert.h>
18853 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18856 # Broken: fails on valid input.
18859 rm -f conftest.err conftest.
$ac_ext
18861 # OK, works on sane cases. Now check whether nonexistent headers
18862 # can be detected and how.
18863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h. */
18865 #include <ac_nonexistent.h>
18867 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18868 # Broken: success on invalid input.
18871 # Passes both tests.
18875 rm -f conftest.err conftest.
$ac_ext
18878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18879 rm -f conftest.err conftest.
$ac_ext
18880 if $ac_preproc_ok; then :
18883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18885 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18886 See \`config.log' for more details." "$LINENO" 5; }
18890 ac_cpp
='$CXXCPP $CPPFLAGS'
18891 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18896 _lt_caught_CXX_error
=yes
18900 ac_cpp
='$CXXCPP $CPPFLAGS'
18901 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18902 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18903 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18905 archive_cmds_need_lc_CXX
=no
18906 allow_undefined_flag_CXX
=
18907 always_export_symbols_CXX
=no
18908 archive_expsym_cmds_CXX
=
18909 compiler_needs_object_CXX
=no
18910 export_dynamic_flag_spec_CXX
=
18911 hardcode_direct_CXX
=no
18912 hardcode_direct_absolute_CXX
=no
18913 hardcode_libdir_flag_spec_CXX
=
18914 hardcode_libdir_flag_spec_ld_CXX
=
18915 hardcode_libdir_separator_CXX
=
18916 hardcode_minus_L_CXX
=no
18917 hardcode_shlibpath_var_CXX
=unsupported
18918 hardcode_automatic_CXX
=no
18919 inherit_rpath_CXX
=no
18921 module_expsym_cmds_CXX
=
18922 link_all_deplibs_CXX
=unknown
18923 old_archive_cmds_CXX
=$old_archive_cmds
18924 reload_flag_CXX
=$reload_flag
18925 reload_cmds_CXX
=$reload_cmds
18926 no_undefined_flag_CXX
=
18927 whole_archive_flag_spec_CXX
=
18928 enable_shared_with_static_runtimes_CXX
=no
18930 # Source file extension for C++ test sources.
18933 # Object file extension for compiled C++ test sources.
18937 # No sense in running all these tests if we already determined that
18938 # the CXX compiler isn't working. Some variables (like enable_shared)
18939 # are currently assumed to apply to all compilers on this platform,
18940 # and will be corrupted by setting them based on a non-working compiler.
18941 if test "$_lt_caught_CXX_error" != yes; then
18942 # Code to be used in simple compile tests
18943 lt_simple_compile_test_code
="int some_variable = 0;"
18945 # Code to be used in simple link tests
18946 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18948 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18955 # If no C compiler was specified, use CC.
18958 # If no C compiler flags were specified, use CFLAGS.
18959 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18961 # Allow CC to be a program name with arguments.
18965 # save warnings/boilerplate of simple test code
18966 ac_outfile
=conftest.
$ac_objext
18967 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18968 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18969 _lt_compiler_boilerplate
=`cat conftest.err`
18972 ac_outfile
=conftest.
$ac_objext
18973 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18974 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18975 _lt_linker_boilerplate
=`cat conftest.err`
18979 # Allow CC to be a program name with arguments.
18984 lt_save_with_gnu_ld
=$with_gnu_ld
18985 lt_save_path_LD
=$lt_cv_path_LD
18986 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18987 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18989 $as_unset lt_cv_prog_gnu_ld
18991 if test -n "${lt_cv_path_LDCXX+set}"; then
18992 lt_cv_path_LD
=$lt_cv_path_LDCXX
18994 $as_unset lt_cv_path_LD
18996 test -z "${LDCXX+set}" || LD
=$LDCXX
19000 for cc_temp
in $compiler""; do
19002 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19003 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19008 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19011 if test -n "$compiler"; then
19012 # We don't want -fno-exception when compiling C++ code, so set the
19013 # no_builtin_flag separately
19014 if test "$GXX" = yes; then
19015 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19017 lt_prog_compiler_no_builtin_flag_CXX
=
19020 if test "$GXX" = yes; then
19021 # Set up default GNU C++ configuration
19025 # Check whether --with-gnu-ld was given.
19026 if test "${with_gnu_ld+set}" = set; then :
19027 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19033 if test "$GCC" = yes; then
19034 # Check if gcc -print-prog-name=ld gives a path.
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19036 $as_echo_n "checking for ld used by $CC... " >&6; }
19039 # gcc leaves a trailing carriage return which upsets mingw
19040 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19042 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19045 # Accept absolute paths.
19047 re_direlt
='/[^/][^/]*/\.\./'
19048 # Canonicalize the pathname of ld
19049 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19050 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19051 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19053 test -z "$LD" && LD
="$ac_prog"
19056 # If it fails, then pretend we aren't using GCC.
19060 # If it is relative, then search for the first ld in PATH.
19061 with_gnu_ld
=unknown
19064 elif test "$with_gnu_ld" = yes; then
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19066 $as_echo_n "checking for GNU ld... " >&6; }
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19069 $as_echo_n "checking for non-GNU ld... " >&6; }
19071 if test "${lt_cv_path_LD+set}" = set; then :
19072 $as_echo_n "(cached) " >&6
19074 if test -z "$LD"; then
19075 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19076 for ac_dir
in $PATH; do
19078 test -z "$ac_dir" && ac_dir
=.
19079 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19080 lt_cv_path_LD
="$ac_dir/$ac_prog"
19081 # Check to see if the program is GNU ld. I'd rather use --version,
19082 # but apparently some variants of GNU ld only accept -v.
19083 # Break only if it was the GNU/non-GNU ld that we prefer.
19084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19085 *GNU
* |
*'with BFD'*)
19086 test "$with_gnu_ld" != no
&& break
19089 test "$with_gnu_ld" != yes && break
19096 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19100 LD
="$lt_cv_path_LD"
19101 if test -n "$LD"; then
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19103 $as_echo "$LD" >&6; }
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19106 $as_echo "no" >&6; }
19108 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19111 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19112 $as_echo_n "(cached) " >&6
19114 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19115 case `$LD -v 2>&1 </dev/null` in
19116 *GNU
* |
*'with BFD'*)
19117 lt_cv_prog_gnu_ld
=yes
19120 lt_cv_prog_gnu_ld
=no
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19125 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19126 with_gnu_ld
=$lt_cv_prog_gnu_ld
19134 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19135 # archiving commands below assume that GNU ld is being used.
19136 if test "$with_gnu_ld" = yes; then
19137 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19138 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'
19140 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19141 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19143 # If archive_cmds runs LD, not CC, wlarc should be empty
19144 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19145 # investigate it a little bit more. (MM)
19148 # ancient GNU ld didn't support --whole-archive et. al.
19149 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19150 $GREP 'no-whole-archive' > /dev
/null
; then
19151 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19153 whole_archive_flag_spec_CXX
=
19159 # A generic and very simple default shared library creation
19160 # command for GNU C++ for the case where it uses the native
19161 # linker, instead of GNU ld. If possible, this setting should
19162 # overridden to take advantage of the native linker features on
19163 # the platform it is being used on.
19164 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19167 # Commands to make compiler produce verbose output that lists
19168 # what "hidden" libraries, object files and flags are used when
19169 # linking a shared library.
19170 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19178 # PORTME: fill in a description of your system's C++ link characteristics
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19180 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19184 # FIXME: insert proper C++ library support
19188 if test "$host_cpu" = ia64
; then
19189 # On IA64, the linker does run time linking by default, so we don't
19190 # have to do anything special.
19191 aix_use_runtimelinking
=no
19192 exp_sym_flag
='-Bexport'
19195 aix_use_runtimelinking
=no
19197 # Test if we are trying to use run time linking or normal
19198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19199 # need to do runtime linking.
19200 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19201 for ld_flag
in $LDFLAGS; do
19204 aix_use_runtimelinking
=yes
19212 exp_sym_flag
='-bexport'
19213 no_entry_flag
='-bnoentry'
19216 # When large executables or shared objects are built, AIX ld can
19217 # have problems creating the table of contents. If linking a library
19218 # or program results in "error TOC overflow" add -mminimal-toc to
19219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19222 archive_cmds_CXX
=''
19223 hardcode_direct_CXX
=yes
19224 hardcode_direct_absolute_CXX
=yes
19225 hardcode_libdir_separator_CXX
=':'
19226 link_all_deplibs_CXX
=yes
19227 file_list_spec_CXX
='${wl}-f,'
19229 if test "$GXX" = yes; then
19230 case $host_os in aix4.
[012]|aix4.
[012].
*)
19231 # We only want to do this on AIX 4.2 and lower, the check
19232 # below for broken collect2 doesn't work under 4.3+
19233 collect2name
=`${CC} -print-prog-name=collect2`
19234 if test -f "$collect2name" &&
19235 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19237 # We have reworked collect2
19240 # We have old collect2
19241 hardcode_direct_CXX
=unsupported
19242 # It fails to find uninstalled libraries when the uninstalled
19243 # path is not listed in the libpath. Setting hardcode_minus_L
19244 # to unsupported forces relinking
19245 hardcode_minus_L_CXX
=yes
19246 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19247 hardcode_libdir_separator_CXX
=
19250 shared_flag
='-shared'
19251 if test "$aix_use_runtimelinking" = yes; then
19252 shared_flag
="$shared_flag "'${wl}-G'
19256 if test "$host_cpu" = ia64
; then
19257 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19258 # chokes on -Wl,-G. The following line is correct:
19261 if test "$aix_use_runtimelinking" = yes; then
19262 shared_flag
='${wl}-G'
19264 shared_flag
='${wl}-bM:SRE'
19269 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19270 # It seems that -bexpall does not export symbols beginning with
19271 # underscore (_), so it is better to generate a list of symbols to
19273 always_export_symbols_CXX
=yes
19274 if test "$aix_use_runtimelinking" = yes; then
19275 # Warning - without using the other runtime loading flags (-brtl),
19276 # -berok will link without error, but may produce a broken library.
19277 allow_undefined_flag_CXX
='-berok'
19278 # Determine the default libpath from the value encoded in an empty
19280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19291 if ac_fn_cxx_try_link
"$LINENO"; then :
19293 lt_aix_libpath_sed
='
19294 /Import File Strings/,/^$/ {
19300 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19301 # Check for a 64-bit object if we didn't find anything.
19302 if test -z "$aix_libpath"; then
19303 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19306 rm -f core conftest.err conftest.
$ac_objext \
19307 conftest
$ac_exeext conftest.
$ac_ext
19308 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19310 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19312 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"
19314 if test "$host_cpu" = ia64
; then
19315 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19316 allow_undefined_flag_CXX
="-z nodefs"
19317 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"
19319 # Determine the default libpath from the value encoded in an
19320 # empty executable.
19321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h. */
19332 if ac_fn_cxx_try_link
"$LINENO"; then :
19334 lt_aix_libpath_sed
='
19335 /Import File Strings/,/^$/ {
19341 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19342 # Check for a 64-bit object if we didn't find anything.
19343 if test -z "$aix_libpath"; then
19344 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19347 rm -f core conftest.err conftest.
$ac_objext \
19348 conftest
$ac_exeext conftest.
$ac_ext
19349 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19351 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19352 # Warning - without using the other run time loading flags,
19353 # -berok will link without error, but may produce a broken library.
19354 no_undefined_flag_CXX
=' ${wl}-bernotok'
19355 allow_undefined_flag_CXX
=' ${wl}-berok'
19356 if test "$with_gnu_ld" = yes; then
19357 # We only use this code for GNU lds that support --whole-archive.
19358 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19360 # Exported symbols can be pulled into shared objects from archives
19361 whole_archive_flag_spec_CXX
='$convenience'
19363 archive_cmds_need_lc_CXX
=yes
19364 # This is similar to how AIX traditionally builds its shared
19366 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'
19372 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19373 allow_undefined_flag_CXX
=unsupported
19374 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19375 # support --undefined. This deserves some investigation. FIXME
19376 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19383 case $cc_basename in
19385 # FIXME: insert proper C++ library support
19391 cygwin
* | mingw
* | pw32
* | cegcc
*)
19392 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19393 # as there is no search path for DLLs.
19394 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19395 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19396 allow_undefined_flag_CXX
=unsupported
19397 always_export_symbols_CXX
=no
19398 enable_shared_with_static_runtimes_CXX
=yes
19400 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19401 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'
19402 # If the export-symbols file already is a .def file (1st line
19403 # is EXPORTS), use it as is; otherwise, prepend...
19404 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19405 cp $export_symbols $output_objdir/$soname.def;
19407 echo EXPORTS > $output_objdir/$soname.def;
19408 cat $export_symbols >> $output_objdir/$soname.def;
19410 $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'
19415 darwin
* | rhapsody
*)
19418 archive_cmds_need_lc_CXX
=no
19419 hardcode_direct_CXX
=no
19420 hardcode_automatic_CXX
=yes
19421 hardcode_shlibpath_var_CXX
=unsupported
19422 if test "$lt_cv_ld_force_load" = "yes"; then
19423 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\"`'
19425 whole_archive_flag_spec_CXX
=''
19427 link_all_deplibs_CXX
=yes
19428 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19429 case $cc_basename in
19430 ifort
*) _lt_dar_can_shared
=yes ;;
19431 *) _lt_dar_can_shared
=$GCC ;;
19433 if test "$_lt_dar_can_shared" = "yes"; then
19434 output_verbose_link_cmd
=func_echo_all
19435 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}"
19436 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19437 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}"
19438 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}"
19439 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19440 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}"
19441 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}"
19451 case $cc_basename in
19453 # FIXME: insert proper C++ library support
19457 # Green Hills C++ Compiler
19458 # FIXME: insert proper C++ library support
19462 # FIXME: insert proper C++ library support
19469 # C++ shared libraries reported to be fairly broken before
19475 archive_cmds_need_lc_CXX
=no
19478 freebsd
* | dragonfly
*)
19479 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19488 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19489 link_all_deplibs_CXX
=yes
19493 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19494 hardcode_libdir_separator_CXX
=:
19495 export_dynamic_flag_spec_CXX
='${wl}-E'
19496 hardcode_direct_CXX
=yes
19497 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19498 # but as the default
19499 # location of the library.
19501 case $cc_basename in
19503 # FIXME: insert proper C++ library support
19507 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'
19508 # Commands to make compiler produce verbose output that lists
19509 # what "hidden" libraries, object files and flags are used when
19510 # linking a shared library.
19512 # There doesn't appear to be a way to prevent this compiler from
19513 # explicitly linking system object files so we need to strip them
19514 # from the output so that they don't get included in the library
19516 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"'
19519 if test "$GXX" = yes; then
19520 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'
19522 # FIXME: insert proper C++ library support
19530 if test $with_gnu_ld = no
; then
19531 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19532 hardcode_libdir_separator_CXX
=:
19538 export_dynamic_flag_spec_CXX
='${wl}-E'
19544 hardcode_direct_CXX
=no
19545 hardcode_shlibpath_var_CXX
=no
19548 hardcode_direct_CXX
=yes
19549 hardcode_direct_absolute_CXX
=yes
19550 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19551 # but as the default
19552 # location of the library.
19556 case $cc_basename in
19558 # FIXME: insert proper C++ library support
19564 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19567 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19570 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19573 # Commands to make compiler produce verbose output that lists
19574 # what "hidden" libraries, object files and flags are used when
19575 # linking a shared library.
19577 # There doesn't appear to be a way to prevent this compiler from
19578 # explicitly linking system object files so we need to strip them
19579 # from the output so that they don't get included in the library
19581 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"'
19584 if test "$GXX" = yes; then
19585 if test $with_gnu_ld = no
; then
19588 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19591 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19594 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'
19599 # FIXME: insert proper C++ library support
19607 hardcode_direct_CXX
=no
19608 hardcode_shlibpath_var_CXX
=no
19609 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19610 export_dynamic_flag_spec_CXX
='${wl}-E'
19611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19612 # Instead, shared libraries are loaded at an image base (0x10000000 by
19613 # default) and relocated if they conflict, which is a slow very memory
19614 # consuming and fragmenting process. To avoid this, we pick a random,
19615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19617 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'
19618 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'
19621 case $cc_basename in
19624 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'
19626 # Archives containing C++ object files must be created using
19627 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19628 # necessary to make sure instantiated templates are included
19630 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19633 if test "$GXX" = yes; then
19634 if test "$with_gnu_ld" = no
; then
19635 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'
19637 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'
19640 link_all_deplibs_CXX
=yes
19643 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19644 hardcode_libdir_separator_CXX
=:
19645 inherit_rpath_CXX
=yes
19648 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19649 case $cc_basename in
19651 # Kuck and Associates, Inc. (KAI) C++ Compiler
19653 # KCC will only create a shared library if the output file
19654 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19655 # to its proper name (with version) after linking.
19656 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'
19657 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'
19658 # Commands to make compiler produce verbose output that lists
19659 # what "hidden" libraries, object files and flags are used when
19660 # linking a shared library.
19662 # There doesn't appear to be a way to prevent this compiler from
19663 # explicitly linking system object files so we need to strip them
19664 # from the output so that they don't get included in the library
19666 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"'
19668 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19669 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19671 # Archives containing C++ object files must be created using
19672 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19673 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19678 # version 8.0 and above of icpc choke on multiply defined symbols
19679 # if we add $predep_objects and $postdep_objects, however 7.1 and
19680 # earlier do not add the objects themselves.
19681 case `$CC -V 2>&1` in
19683 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19684 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'
19686 *) # Version 8.0 or newer
19689 ia64
*) tmp_idyn
=' -i_dynamic';;
19691 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19692 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'
19695 archive_cmds_need_lc_CXX
=no
19696 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19697 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19698 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19701 # Portland Group C++ compiler
19703 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19704 prelink_cmds_CXX
='tpldir=Template.dir~
19706 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19707 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19708 old_archive_cmds_CXX
='tpldir=Template.dir~
19710 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19711 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19713 archive_cmds_CXX
='tpldir=Template.dir~
19715 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19716 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19717 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19719 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19720 $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'
19722 *) # Version 6 and above use weak symbols
19723 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19724 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'
19728 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19729 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19730 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'
19734 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19735 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'
19737 runpath_var
=LD_RUN_PATH
19738 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19739 hardcode_libdir_separator_CXX
=:
19741 # Commands to make compiler produce verbose output that lists
19742 # what "hidden" libraries, object files and flags are used when
19743 # linking a shared library.
19745 # There doesn't appear to be a way to prevent this compiler from
19746 # explicitly linking system object files so we need to strip them
19747 # from the output so that they don't get included in the library
19749 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'
19751 xl
* | mpixl
* | bgxl
*)
19752 # IBM XL 8.0 on PPC, with GNU ld
19753 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19754 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19755 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19756 if test "x$supports_anon_versioning" = xyes
; then
19757 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19758 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19759 echo "local: *; };" >> $output_objdir/$libname.ver~
19760 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19764 case `$CC -V 2>&1 | sed 5q` in
19767 no_undefined_flag_CXX
=' -zdefs'
19768 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19769 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'
19770 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19771 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'
19772 compiler_needs_object_CXX
=yes
19774 # Not sure whether something based on
19775 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19777 output_verbose_link_cmd
='func_echo_all'
19779 # Archives containing C++ object files must be created using
19780 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19781 # necessary to make sure instantiated templates are included
19783 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19791 # FIXME: insert proper C++ library support
19796 # FIXME: insert proper C++ library support
19801 case $cc_basename in
19803 # FIXME: insert proper C++ library support
19807 # FIXME: insert proper C++ library support
19814 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19815 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19817 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19818 hardcode_direct_CXX
=yes
19819 hardcode_shlibpath_var_CXX
=no
19821 # Workaround some broken pre-1.5 toolchains
19822 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19830 # C++ shared libraries are fairly broken
19835 if test -f /usr
/libexec
/ld.so
; then
19836 hardcode_direct_CXX
=yes
19837 hardcode_shlibpath_var_CXX
=no
19838 hardcode_direct_absolute_CXX
=yes
19839 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19840 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19841 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19842 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19843 export_dynamic_flag_spec_CXX
='${wl}-E'
19844 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19846 output_verbose_link_cmd
=func_echo_all
19852 osf3
* | osf4
* | osf5
*)
19853 case $cc_basename in
19855 # Kuck and Associates, Inc. (KAI) C++ Compiler
19857 # KCC will only create a shared library if the output file
19858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19859 # to its proper name (with version) after linking.
19860 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'
19862 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19863 hardcode_libdir_separator_CXX
=:
19865 # Archives containing C++ object files must be created using
19866 # the KAI C++ compiler.
19868 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19869 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19873 # Rational C++ 2.4.1
19874 # FIXME: insert proper C++ library support
19880 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19881 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'
19882 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19885 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19886 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'
19887 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19888 echo "-hidden">> $lib.exp~
19889 $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~
19891 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19895 hardcode_libdir_separator_CXX
=:
19897 # Commands to make compiler produce verbose output that lists
19898 # what "hidden" libraries, object files and flags are used when
19899 # linking a shared library.
19901 # There doesn't appear to be a way to prevent this compiler from
19902 # explicitly linking system object files so we need to strip them
19903 # from the output so that they don't get included in the library
19905 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"'
19908 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19909 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19912 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'
19915 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'
19919 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19920 hardcode_libdir_separator_CXX
=:
19922 # Commands to make compiler produce verbose output that lists
19923 # what "hidden" libraries, object files and flags are used when
19924 # linking a shared library.
19925 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19928 # FIXME: insert proper C++ library support
19936 # FIXME: insert proper C++ library support
19941 case $cc_basename in
19944 # FIXME: insert proper C++ library support
19949 # FIXME: insert proper C++ library support
19953 # FIXME: insert proper C++ library support
19960 case $cc_basename in
19962 # Sun C++ 4.2, 5.x and Centerline C++
19963 archive_cmds_need_lc_CXX
=yes
19964 no_undefined_flag_CXX
=' -zdefs'
19965 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19966 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19967 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19969 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19970 hardcode_shlibpath_var_CXX
=no
19972 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19974 # The compiler driver will combine and reorder linker options,
19975 # but understands `-z linker_flag'.
19976 # Supported since Solaris 2.6 (maybe 2.5.1?)
19977 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19980 link_all_deplibs_CXX
=yes
19982 output_verbose_link_cmd
='func_echo_all'
19984 # Archives containing C++ object files must be created using
19985 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19986 # necessary to make sure instantiated templates are included
19988 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19991 # Green Hills C++ Compiler
19992 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19994 # The C++ compiler must be used to create the archive.
19995 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19998 # GNU C++ compiler with Solaris linker
19999 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20000 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20001 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20002 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20003 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20004 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20006 # Commands to make compiler produce verbose output that lists
20007 # what "hidden" libraries, object files and flags are used when
20008 # linking a shared library.
20009 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20011 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20013 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20014 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20015 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20017 # Commands to make compiler produce verbose output that lists
20018 # what "hidden" libraries, object files and flags are used when
20019 # linking a shared library.
20020 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20023 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20025 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20027 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20035 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20036 no_undefined_flag_CXX
='${wl}-z,text'
20037 archive_cmds_need_lc_CXX
=no
20038 hardcode_shlibpath_var_CXX
=no
20039 runpath_var
='LD_RUN_PATH'
20041 case $cc_basename in
20043 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20044 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20047 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20048 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20053 sysv5
* | sco3.2v5
* | sco5v6
*)
20054 # Note: We can NOT use -z defs as we might desire, because we do not
20055 # link with -lc, and that would cause any symbols used from libc to
20056 # always be unresolved, which means just about no library would
20057 # ever link correctly. If we're not using GNU ld we use -z text
20058 # though, which does catch some bad symbols but isn't as heavy-handed
20060 no_undefined_flag_CXX
='${wl}-z,text'
20061 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20062 archive_cmds_need_lc_CXX
=no
20063 hardcode_shlibpath_var_CXX
=no
20064 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20065 hardcode_libdir_separator_CXX
=':'
20066 link_all_deplibs_CXX
=yes
20067 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20068 runpath_var
='LD_RUN_PATH'
20070 case $cc_basename in
20072 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20073 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20074 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20075 '"$old_archive_cmds_CXX"
20076 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20077 '"$reload_cmds_CXX"
20080 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20081 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20087 case $cc_basename in
20089 # NonStop-UX NCC 3.20
20090 # FIXME: insert proper C++ library support
20094 # FIXME: insert proper C++ library support
20101 # FIXME: insert proper C++ library support
20106 # FIXME: insert proper C++ library support
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20112 $as_echo "$ld_shlibs_CXX" >&6; }
20113 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20119 ## There is no encapsulation within the following macros, do not change
20120 ## the running order or otherwise move them around unless you know exactly
20121 ## what you are doing...
20122 # Dependencies to place before and after the object being linked:
20123 predep_objects_CXX
=
20124 postdep_objects_CXX
=
20127 compiler_lib_search_path_CXX
=
20129 cat > conftest.
$ac_ext <<_LT_EOF
20133 Foo (void) { a = 0; }
20139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20140 (eval $ac_compile) 2>&5
20142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20143 test $ac_status = 0; }; then
20144 # Parse the compiler output and extract the necessary
20145 # objects, libraries and library flags.
20147 # Sentinel used to keep track of whether or not we are before
20148 # the conftest object file.
20149 pre_test_object_deps_done
=no
20151 for p
in `eval "$output_verbose_link_cmd"`; do
20155 # Some compilers place space between "-{L,R}" and the path.
20156 # Remove the space.
20157 if test $p = "-L" ||
20158 test $p = "-R"; then
20165 if test "$pre_test_object_deps_done" = no
; then
20168 # Internal compiler library paths should come after those
20169 # provided the user. The postdeps already come after the
20170 # user supplied libs so there is no need to process them.
20171 if test -z "$compiler_lib_search_path_CXX"; then
20172 compiler_lib_search_path_CXX
="${prev}${p}"
20174 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20177 # The "-l" case would never come before the object being
20178 # linked, so don't bother handling this case.
20181 if test -z "$postdeps_CXX"; then
20182 postdeps_CXX
="${prev}${p}"
20184 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20190 # This assumes that the test object file only shows up
20191 # once in the compiler output.
20192 if test "$p" = "conftest.$objext"; then
20193 pre_test_object_deps_done
=yes
20197 if test "$pre_test_object_deps_done" = no
; then
20198 if test -z "$predep_objects_CXX"; then
20199 predep_objects_CXX
="$p"
20201 predep_objects_CXX
="$predep_objects_CXX $p"
20204 if test -z "$postdep_objects_CXX"; then
20205 postdep_objects_CXX
="$p"
20207 postdep_objects_CXX
="$postdep_objects_CXX $p"
20212 *) ;; # Ignore the rest.
20220 echo "libtool.m4: error: problem compiling CXX test program"
20223 $RM -f confest.
$objext
20225 # PORTME: override above test on systems where it is broken
20228 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20229 # hack all around it, let's just trust "g++" to DTRT.
20230 predep_objects_CXX
=
20231 postdep_objects_CXX
=
20236 case `$CC -V 2>&1 | sed 5q` in
20240 # The more standards-conforming stlport4 library is
20241 # incompatible with the Cstd library. Avoid specifying
20242 # it if it's in CXXFLAGS. Ignore libCrun as
20243 # -library=stlport4 depends on it.
20244 case " $CXX $CXXFLAGS " in
20245 *" -library=stlport4 "*)
20246 solaris_use_stlport4
=yes
20250 if test "$solaris_use_stlport4" != yes; then
20251 postdeps_CXX
='-library=Cstd -library=Crun'
20258 case $cc_basename in
20260 # The more standards-conforming stlport4 library is
20261 # incompatible with the Cstd library. Avoid specifying
20262 # it if it's in CXXFLAGS. Ignore libCrun as
20263 # -library=stlport4 depends on it.
20264 case " $CXX $CXXFLAGS " in
20265 *" -library=stlport4 "*)
20266 solaris_use_stlport4
=yes
20270 # Adding this requires a known-good setup of shared libraries for
20271 # Sun compiler versions before 5.6, else PIC objects from an old
20272 # archive will be linked into the output, leading to subtle bugs.
20273 if test "$solaris_use_stlport4" != yes; then
20274 postdeps_CXX
='-library=Cstd -library=Crun'
20282 case " $postdeps_CXX " in
20283 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20285 compiler_lib_search_dirs_CXX
=
20286 if test -n "${compiler_lib_search_path_CXX}"; then
20287 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20320 lt_prog_compiler_wl_CXX
=
20321 lt_prog_compiler_pic_CXX
=
20322 lt_prog_compiler_static_CXX
=
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20325 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20327 # C++ specific cases for pic, static, wl, etc.
20328 if test "$GXX" = yes; then
20329 lt_prog_compiler_wl_CXX
='-Wl,'
20330 lt_prog_compiler_static_CXX
='-static'
20334 # All AIX code is PIC.
20335 if test "$host_cpu" = ia64
; then
20336 # AIX 5 now supports IA64 processor
20337 lt_prog_compiler_static_CXX
='-Bstatic'
20339 lt_prog_compiler_pic_CXX
='-fPIC'
20345 # see comment about AmigaOS4 .so support
20346 lt_prog_compiler_pic_CXX
='-fPIC'
20349 # FIXME: we need at least 68020 code to build shared libraries, but
20350 # adding the `-m68020' flag to GCC prevents building anything better,
20352 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20357 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20358 # PIC is the default for these OSes.
20360 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20361 # This hack is so that the source file can tell whether it is being
20362 # built for inclusion in a dll (and should export symbols for example).
20363 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20364 # (--disable-auto-import) libraries
20365 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20367 darwin
* | rhapsody
*)
20368 # PIC is the default on this platform
20369 # Common symbols not allowed in MH_DYLIB files
20370 lt_prog_compiler_pic_CXX
='-fno-common'
20373 # DJGPP does not support shared libraries at all
20374 lt_prog_compiler_pic_CXX
=
20377 # PIC is the default for Haiku.
20378 # The "-static" flag exists, but is broken.
20379 lt_prog_compiler_static_CXX
=
20382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20383 # Instead, we relocate shared libraries at runtime.
20386 if test -d /usr
/nec
; then
20387 lt_prog_compiler_pic_CXX
=-Kconform_pic
20391 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20392 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20393 # sets the default TLS model and affects inlining.
20398 lt_prog_compiler_pic_CXX
='-fPIC'
20403 # QNX uses GNU C++, but need to define -shared option too, otherwise
20404 # it will coredump.
20405 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20408 lt_prog_compiler_pic_CXX
='-fPIC'
20414 # All AIX code is PIC.
20415 if test "$host_cpu" = ia64
; then
20416 # AIX 5 now supports IA64 processor
20417 lt_prog_compiler_static_CXX
='-Bstatic'
20419 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20423 case $cc_basename in
20425 # Green Hills C++ Compiler
20426 # _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"
20431 case $cc_basename in
20433 lt_prog_compiler_pic_CXX
='-KPIC'
20436 # Green Hills C++ Compiler
20437 lt_prog_compiler_pic_CXX
='-pic'
20443 freebsd
* | dragonfly
*)
20444 # FreeBSD uses GNU C++
20446 hpux9
* | hpux10
* | hpux11
*)
20447 case $cc_basename in
20449 lt_prog_compiler_wl_CXX
='-Wl,'
20450 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20451 if test "$host_cpu" != ia64
; then
20452 lt_prog_compiler_pic_CXX
='+Z'
20456 lt_prog_compiler_wl_CXX
='-Wl,'
20457 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20463 lt_prog_compiler_pic_CXX
='+Z'
20472 # This is c89, which is MS Visual C++ (no shared libs)
20473 # Anyone wants to do a port?
20475 irix5
* | irix6
* | nonstopux
*)
20476 case $cc_basename in
20478 lt_prog_compiler_wl_CXX
='-Wl,'
20479 lt_prog_compiler_static_CXX
='-non_shared'
20480 # CC pic flag -KPIC is the default.
20486 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20487 case $cc_basename in
20490 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20491 lt_prog_compiler_pic_CXX
='-fPIC'
20494 # old Intel C++ for x86_64 which still supported -KPIC.
20495 lt_prog_compiler_wl_CXX
='-Wl,'
20496 lt_prog_compiler_pic_CXX
='-KPIC'
20497 lt_prog_compiler_static_CXX
='-static'
20500 # Intel C++, used to be incompatible with GCC.
20501 # ICC 10 doesn't accept -KPIC any more.
20502 lt_prog_compiler_wl_CXX
='-Wl,'
20503 lt_prog_compiler_pic_CXX
='-fPIC'
20504 lt_prog_compiler_static_CXX
='-static'
20507 # Portland Group C++ compiler
20508 lt_prog_compiler_wl_CXX
='-Wl,'
20509 lt_prog_compiler_pic_CXX
='-fpic'
20510 lt_prog_compiler_static_CXX
='-Bstatic'
20514 # Make sure the PIC flag is empty. It appears that all Alpha
20515 # Linux and Compaq Tru64 Unix objects are PIC.
20516 lt_prog_compiler_pic_CXX
=
20517 lt_prog_compiler_static_CXX
='-non_shared'
20519 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20520 # IBM XL 8.0, 9.0 on PPC and BlueGene
20521 lt_prog_compiler_wl_CXX
='-Wl,'
20522 lt_prog_compiler_pic_CXX
='-qpic'
20523 lt_prog_compiler_static_CXX
='-qstaticlink'
20526 case `$CC -V 2>&1 | sed 5q` in
20529 lt_prog_compiler_pic_CXX
='-KPIC'
20530 lt_prog_compiler_static_CXX
='-Bstatic'
20531 lt_prog_compiler_wl_CXX
='-Qoption ld '
20542 case $cc_basename in
20544 lt_prog_compiler_pic_CXX
='-W c,exportall'
20553 # QNX uses GNU C++, but need to define -shared option too, otherwise
20554 # it will coredump.
20555 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20557 osf3
* | osf4
* | osf5
*)
20558 case $cc_basename in
20560 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20563 # Rational C++ 2.4.1
20564 lt_prog_compiler_pic_CXX
='-pic'
20567 # Digital/Compaq C++
20568 lt_prog_compiler_wl_CXX
='-Wl,'
20569 # Make sure the PIC flag is empty. It appears that all Alpha
20570 # Linux and Compaq Tru64 Unix objects are PIC.
20571 lt_prog_compiler_pic_CXX
=
20572 lt_prog_compiler_static_CXX
='-non_shared'
20581 case $cc_basename in
20583 # Sun C++ 4.2, 5.x and Centerline C++
20584 lt_prog_compiler_pic_CXX
='-KPIC'
20585 lt_prog_compiler_static_CXX
='-Bstatic'
20586 lt_prog_compiler_wl_CXX
='-Qoption ld '
20589 # Green Hills C++ Compiler
20590 lt_prog_compiler_pic_CXX
='-PIC'
20597 case $cc_basename in
20600 lt_prog_compiler_pic_CXX
='-pic'
20601 lt_prog_compiler_static_CXX
='-Bstatic'
20605 lt_prog_compiler_pic_CXX
='-pic'
20611 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20612 case $cc_basename in
20614 lt_prog_compiler_wl_CXX
='-Wl,'
20615 lt_prog_compiler_pic_CXX
='-KPIC'
20616 lt_prog_compiler_static_CXX
='-Bstatic'
20621 case $cc_basename in
20623 # NonStop-UX NCC 3.20
20624 lt_prog_compiler_pic_CXX
='-KPIC'
20633 lt_prog_compiler_can_build_shared_CXX
=no
20639 # For platforms which do not support PIC, -DPIC is meaningless:
20641 lt_prog_compiler_pic_CXX
=
20644 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20648 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20653 # Check to make sure the PIC flag actually works.
20655 if test -n "$lt_prog_compiler_pic_CXX"; then
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20657 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20658 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20659 $as_echo_n "(cached) " >&6
20661 lt_cv_prog_compiler_pic_works_CXX
=no
20662 ac_outfile
=conftest.
$ac_objext
20663 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20664 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20665 # Insert the option either (1) after the last *FLAGS variable, or
20666 # (2) before a word containing "conftest.", or (3) at the end.
20667 # Note that $ac_compile itself does not contain backslashes and begins
20668 # with a dollar sign (not a hyphen), so the echo should work correctly.
20669 # The option is referenced via a variable to avoid confusing sed.
20670 lt_compile
=`echo "$ac_compile" | $SED \
20671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20673 -e 's:$: $lt_compiler_flag:'`
20674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20675 (eval "$lt_compile" 2>conftest.err
)
20677 cat conftest.err
>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 if (exit $ac_status) && test -s "$ac_outfile"; then
20680 # The compiler can only warn and ignore the option if not recognized
20681 # So say no if there are warnings other than the usual output.
20682 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20683 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20684 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20685 lt_cv_prog_compiler_pic_works_CXX
=yes
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20692 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20694 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20695 case $lt_prog_compiler_pic_CXX in
20697 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20700 lt_prog_compiler_pic_CXX
=
20701 lt_prog_compiler_can_build_shared_CXX
=no
20709 # Check to make sure the static flag actually works.
20711 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20713 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20714 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20715 $as_echo_n "(cached) " >&6
20717 lt_cv_prog_compiler_static_works_CXX
=no
20718 save_LDFLAGS
="$LDFLAGS"
20719 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20720 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20721 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20722 # The linker can only warn and ignore the option if not recognized
20723 # So say no if there are warnings
20724 if test -s conftest.err
; then
20725 # Append any errors to the config.log.
20726 cat conftest.err
1>&5
20727 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20728 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20729 if diff conftest.exp conftest.er2
>/dev
/null
; then
20730 lt_cv_prog_compiler_static_works_CXX
=yes
20733 lt_cv_prog_compiler_static_works_CXX
=yes
20737 LDFLAGS
="$save_LDFLAGS"
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20741 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20743 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20746 lt_prog_compiler_static_CXX
=
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20753 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20754 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20755 $as_echo_n "(cached) " >&6
20757 lt_cv_prog_compiler_c_o_CXX
=no
20758 $RM -r conftest
2>/dev
/null
20762 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20764 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20765 # Insert the option either (1) after the last *FLAGS variable, or
20766 # (2) before a word containing "conftest.", or (3) at the end.
20767 # Note that $ac_compile itself does not contain backslashes and begins
20768 # with a dollar sign (not a hyphen), so the echo should work correctly.
20769 lt_compile
=`echo "$ac_compile" | $SED \
20770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20772 -e 's:$: $lt_compiler_flag:'`
20773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20774 (eval "$lt_compile" 2>out
/conftest.err
)
20776 cat out
/conftest.err
>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20780 # The compiler can only warn and ignore the option if not recognized
20781 # So say no if there are warnings
20782 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20783 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20784 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20785 lt_cv_prog_compiler_c_o_CXX
=yes
20790 # SGI C++ compiler will create directory out/ii_files/ for
20791 # template instantiation
20792 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20793 $RM out
/* && rmdir out
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20800 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20806 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20807 $as_echo_n "(cached) " >&6
20809 lt_cv_prog_compiler_c_o_CXX
=no
20810 $RM -r conftest
2>/dev
/null
20814 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20816 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20817 # Insert the option either (1) after the last *FLAGS variable, or
20818 # (2) before a word containing "conftest.", or (3) at the end.
20819 # Note that $ac_compile itself does not contain backslashes and begins
20820 # with a dollar sign (not a hyphen), so the echo should work correctly.
20821 lt_compile
=`echo "$ac_compile" | $SED \
20822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20824 -e 's:$: $lt_compiler_flag:'`
20825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20826 (eval "$lt_compile" 2>out
/conftest.err
)
20828 cat out
/conftest.err
>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20832 # The compiler can only warn and ignore the option if not recognized
20833 # So say no if there are warnings
20834 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20835 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20836 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20837 lt_cv_prog_compiler_c_o_CXX
=yes
20842 # SGI C++ compiler will create directory out/ii_files/ for
20843 # template instantiation
20844 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20845 $RM out
/* && rmdir out
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20852 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20857 hard_links
="nottested"
20858 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20859 # do not overwrite the value of need_locks provided by the user
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20861 $as_echo_n "checking if we can lock with hard links... " >&6; }
20864 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20866 ln conftest.a conftest.b
2>&5 || hard_links
=no
20867 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20869 $as_echo "$hard_links" >&6; }
20870 if test "$hard_links" = no
; then
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20872 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20884 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20887 # If we're using GNU nm, then we don't want the "-C" option.
20888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20889 # Also, AIX nm treats weak defined symbols like other global defined
20890 # symbols, whereas GNU nm marks them as "W".
20891 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20892 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'
20894 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20898 export_symbols_cmds_CXX
="$ltdll_cmds"
20900 cygwin
* | mingw
* | cegcc
*)
20901 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'
20904 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20907 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20910 $as_echo "$ld_shlibs_CXX" >&6; }
20911 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20913 with_gnu_ld_CXX
=$with_gnu_ld
20921 # Do we need to explicitly link libc?
20923 case "x$archive_cmds_need_lc_CXX" in
20925 # Assume -lc should be added
20926 archive_cmds_need_lc_CXX
=yes
20928 if test "$enable_shared" = yes && test "$GCC" = yes; then
20929 case $archive_cmds_CXX in
20931 # FIXME: we may have to deal with multi-command sequences.
20934 # Test whether the compiler implicitly links with -lc since on some
20935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20936 # to ld, don't add -lc before -lgcc.
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20938 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20939 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20940 $as_echo_n "(cached) " >&6
20943 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20946 (eval $ac_compile) 2>&5
20948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20949 test $ac_status = 0; } 2>conftest.err
; then
20952 libobjs
=conftest.
$ac_objext
20954 wl
=$lt_prog_compiler_wl_CXX
20955 pic_flag
=$lt_prog_compiler_pic_CXX
20961 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20962 allow_undefined_flag_CXX
=
20963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20964 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20967 test $ac_status = 0; }
20969 lt_cv_archive_cmds_need_lc_CXX
=no
20971 lt_cv_archive_cmds_need_lc_CXX
=yes
20973 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20975 cat conftest.err
1>&5
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20981 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20982 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21053 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21055 library_names_spec
=
21056 libname_spec
='lib$name'
21060 postuninstall_cmds
=
21064 shlibpath_overrides_runpath
=unknown
21066 dynamic_linker
="$host_os ld.so"
21067 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21068 need_lib_prefix
=unknown
21069 hardcode_into_libs
=no
21071 # when you set need_version to no, make sure it does not cause -set_version
21072 # flags to be left without arguments
21073 need_version
=unknown
21078 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21079 shlibpath_var
=LIBPATH
21081 # AIX 3 has no versioning support, so we append a major version to the name.
21082 soname_spec
='${libname}${release}${shared_ext}$major'
21089 hardcode_into_libs
=yes
21090 if test "$host_cpu" = ia64
; then
21091 # AIX 5 supports IA64
21092 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21093 shlibpath_var
=LD_LIBRARY_PATH
21095 # With GCC up to 2.95.x, collect2 would create an import file
21096 # for dependence libraries. The import file would start with
21097 # the line `#! .'. This would cause the generated library to
21098 # depend on `.', always an invalid library. This was fixed in
21099 # development snapshots of GCC prior to 3.0.
21101 aix4 | aix4.
[01] | aix4.
[01].
*)
21102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21104 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21107 can_build_shared
=no
21111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21112 # soname into executable. Probably we can add versioning support to
21113 # collect2, so additional links can be useful in future.
21114 if test "$aix_use_runtimelinking" = yes; then
21115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21116 # instead of lib<name>.a to let people know that these are not
21117 # typical AIX shared libraries.
21118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21120 # We preserve .a as extension for shared libraries through AIX4.2
21121 # and later when we are not doing run time linking.
21122 library_names_spec
='${libname}${release}.a $libname.a'
21123 soname_spec
='${libname}${release}${shared_ext}$major'
21125 shlibpath_var
=LIBPATH
21132 # Since July 2007 AmigaOS4 officially supports .so libraries.
21133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21137 library_names_spec
='$libname.ixlibrary $libname.a'
21138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21139 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'
21145 library_names_spec
='${libname}${shared_ext}'
21146 dynamic_linker
="$host_os ld.so"
21147 shlibpath_var
=LIBRARY_PATH
21153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21154 soname_spec
='${libname}${release}${shared_ext}$major'
21155 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21156 shlibpath_var
=LD_LIBRARY_PATH
21157 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21158 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21159 # the default ld.so.conf also contains /usr/contrib/lib and
21160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21161 # libtool to hard-code these into programs
21164 cygwin
* | mingw
* | pw32
* | cegcc
*)
21165 version_type
=windows
21170 case $GCC,$host_os in
21171 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21172 library_names_spec
='$libname.dll.a'
21173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21174 postinstall_cmds
='base_file=`basename \${file}`~
21175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21176 dldir=$destdir/`dirname \$dlpath`~
21177 test -d \$dldir || mkdir -p \$dldir~
21178 $install_prog $dir/$dlname \$dldir/$dlname~
21179 chmod a+x \$dldir/$dlname~
21180 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21181 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21183 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21184 dlpath=$dir/\$dldll~
21186 shlibpath_overrides_runpath
=yes
21190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21191 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21195 # MinGW DLLs use traditional 'lib' prefix
21196 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21199 # pw32 DLLs use 'pw' prefix rather than 'lib'
21200 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21206 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21209 dynamic_linker
='Win32 ld.exe'
21210 # FIXME: first we should search . and the directory the executable is in
21214 darwin
* | rhapsody
*)
21215 dynamic_linker
="$host_os dyld"
21216 version_type
=darwin
21219 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21220 soname_spec
='${libname}${release}${major}$shared_ext'
21221 shlibpath_overrides_runpath
=yes
21222 shlibpath_var
=DYLD_LIBRARY_PATH
21223 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21225 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21233 soname_spec
='${libname}${release}${shared_ext}$major'
21234 shlibpath_var
=LD_LIBRARY_PATH
21237 freebsd
* | dragonfly
*)
21238 # DragonFly does not have aout. When/if they implement a new
21239 # versioning mechanism, adjust this.
21240 if test -x /usr
/bin
/objformat
; then
21241 objformat
=`/usr/bin/objformat`
21244 freebsd
[23].
*) objformat
=aout
;;
21245 *) objformat
=elf
;;
21248 version_type
=freebsd-
$objformat
21249 case $version_type in
21251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21256 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21260 shlibpath_var
=LD_LIBRARY_PATH
21263 shlibpath_overrides_runpath
=yes
21265 freebsd3.
[01]* | freebsdelf3.
[01]*)
21266 shlibpath_overrides_runpath
=yes
21267 hardcode_into_libs
=yes
21269 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21270 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21271 shlibpath_overrides_runpath
=no
21272 hardcode_into_libs
=yes
21274 *) # from 4.6 on, and DragonFly
21275 shlibpath_overrides_runpath
=yes
21276 hardcode_into_libs
=yes
21285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21286 soname_spec
='${libname}${release}${shared_ext}$major'
21287 shlibpath_var
=LD_LIBRARY_PATH
21288 hardcode_into_libs
=yes
21295 dynamic_linker
="$host_os runtime_loader"
21296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21297 soname_spec
='${libname}${release}${shared_ext}$major'
21298 shlibpath_var
=LIBRARY_PATH
21299 shlibpath_overrides_runpath
=yes
21300 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21301 hardcode_into_libs
=yes
21304 hpux9
* | hpux10
* | hpux11
*)
21305 # Give a soname corresponding to the major version so that dld.sl refuses to
21306 # link against other versions.
21313 hardcode_into_libs
=yes
21314 dynamic_linker
="$host_os dld.so"
21315 shlibpath_var
=LD_LIBRARY_PATH
21316 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21318 soname_spec
='${libname}${release}${shared_ext}$major'
21319 if test "X$HPUX_IA64_MODE" = X32
; then
21320 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21322 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21324 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21328 hardcode_into_libs
=yes
21329 dynamic_linker
="$host_os dld.sl"
21330 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21331 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333 soname_spec
='${libname}${release}${shared_ext}$major'
21334 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21335 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21339 dynamic_linker
="$host_os dld.sl"
21340 shlibpath_var
=SHLIB_PATH
21341 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21343 soname_spec
='${libname}${release}${shared_ext}$major'
21346 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21347 postinstall_cmds
='chmod 555 $lib'
21348 # or fails outright, so override atomically:
21349 install_override_mode
=555
21356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21357 soname_spec
='${libname}${release}${shared_ext}$major'
21358 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21359 shlibpath_var
=LD_LIBRARY_PATH
21360 shlibpath_overrides_runpath
=no
21361 hardcode_into_libs
=yes
21364 irix5
* | irix6
* | nonstopux
*)
21366 nonstopux
*) version_type
=nonstopux
;;
21368 if test "$lt_cv_prog_gnu_ld" = yes; then
21376 soname_spec
='${libname}${release}${shared_ext}$major'
21377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21379 irix5
* | nonstopux
*)
21380 libsuff
= shlibsuff
=
21383 case $LD in # libtool.m4 will add one of these switches to LD
21384 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21385 libsuff
= shlibsuff
= libmagic
=32-bit;;
21386 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21387 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21388 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21389 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21390 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21394 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21395 shlibpath_overrides_runpath
=no
21396 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21397 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21398 hardcode_into_libs
=yes
21401 # No shared lib support for Linux oldld, aout, or coff.
21402 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21406 # This must be Linux ELF.
21407 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21412 soname_spec
='${libname}${release}${shared_ext}$major'
21413 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21414 shlibpath_var
=LD_LIBRARY_PATH
21415 shlibpath_overrides_runpath
=no
21417 # Some binutils ld are patched to set DT_RUNPATH
21418 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21419 $as_echo_n "(cached) " >&6
21421 lt_cv_shlibpath_overrides_runpath
=no
21422 save_LDFLAGS
=$LDFLAGS
21423 save_libdir
=$libdir
21424 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21425 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21427 /* end confdefs.h. */
21437 if ac_fn_cxx_try_link
"$LINENO"; then :
21438 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21439 lt_cv_shlibpath_overrides_runpath
=yes
21442 rm -f core conftest.err conftest.
$ac_objext \
21443 conftest
$ac_exeext conftest.
$ac_ext
21444 LDFLAGS
=$save_LDFLAGS
21445 libdir
=$save_libdir
21449 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21451 # This implies no fast_install, which is unacceptable.
21452 # Some rework will be needed to allow for fast_install
21453 # before this can be enabled.
21454 hardcode_into_libs
=yes
21456 # Append ld.so.conf contents to the search path
21457 if test -f /etc
/ld.so.conf
; then
21458 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' ' '`
21459 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21462 # We used to test for /lib/ld.so.1 and disable shared libraries on
21463 # powerpc, because MkLinux only supported shared libraries with the
21464 # GNU dynamic linker. Since this was broken with cross compilers,
21465 # most powerpc-linux boxes support dynamic linking these days and
21466 # people can always --disable-shared, the test was removed, and we
21467 # assume the GNU/Linux dynamic linker is in use.
21468 dynamic_linker
='GNU/Linux ld.so'
21475 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21477 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21478 dynamic_linker
='NetBSD (a.out) ld.so'
21480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21481 soname_spec
='${libname}${release}${shared_ext}$major'
21482 dynamic_linker
='NetBSD ld.elf_so'
21484 shlibpath_var
=LD_LIBRARY_PATH
21485 shlibpath_overrides_runpath
=yes
21486 hardcode_into_libs
=yes
21491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21492 shlibpath_var
=LD_LIBRARY_PATH
21493 shlibpath_overrides_runpath
=yes
21500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21501 soname_spec
='${libname}${release}${shared_ext}$major'
21502 shlibpath_var
=LD_LIBRARY_PATH
21503 shlibpath_overrides_runpath
=no
21504 hardcode_into_libs
=yes
21505 dynamic_linker
='ldqnx.so'
21510 sys_lib_dlsearch_path_spec
="/usr/lib"
21512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21514 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21515 *) need_version
=no
;;
21517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21518 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21519 shlibpath_var
=LD_LIBRARY_PATH
21520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21522 openbsd2.
[89] | openbsd2.
[89].
*)
21523 shlibpath_overrides_runpath
=no
21526 shlibpath_overrides_runpath
=yes
21530 shlibpath_overrides_runpath
=yes
21535 libname_spec
='$name'
21538 library_names_spec
='$libname${shared_ext} $libname.a'
21539 dynamic_linker
='OS/2 ld.exe'
21540 shlibpath_var
=LIBPATH
21543 osf3
* | osf4
* | osf5
*)
21547 soname_spec
='${libname}${release}${shared_ext}$major'
21548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21549 shlibpath_var
=LD_LIBRARY_PATH
21550 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21551 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21562 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21563 soname_spec
='${libname}${release}${shared_ext}$major'
21564 shlibpath_var
=LD_LIBRARY_PATH
21565 shlibpath_overrides_runpath
=yes
21566 hardcode_into_libs
=yes
21567 # ldd complains unless libraries are executable
21568 postinstall_cmds
='chmod +x $lib'
21573 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21574 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21575 shlibpath_var
=LD_LIBRARY_PATH
21576 shlibpath_overrides_runpath
=yes
21577 if test "$with_gnu_ld" = yes; then
21585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21586 soname_spec
='${libname}${release}${shared_ext}$major'
21587 shlibpath_var
=LD_LIBRARY_PATH
21588 case $host_vendor in
21590 shlibpath_overrides_runpath
=no
21592 runpath_var
=LD_RUN_PATH
21600 shlibpath_overrides_runpath
=no
21601 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21607 if test -d /usr
/nec
;then
21609 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21610 soname_spec
='$libname${shared_ext}.$major'
21611 shlibpath_var
=LD_LIBRARY_PATH
21615 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21616 version_type
=freebsd-elf
21619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21620 soname_spec
='${libname}${release}${shared_ext}$major'
21621 shlibpath_var
=LD_LIBRARY_PATH
21622 shlibpath_overrides_runpath
=yes
21623 hardcode_into_libs
=yes
21624 if test "$with_gnu_ld" = yes; then
21625 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21627 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21630 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21634 sys_lib_dlsearch_path_spec
='/usr/lib'
21638 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21643 shlibpath_var
=LD_LIBRARY_PATH
21644 shlibpath_overrides_runpath
=no
21645 hardcode_into_libs
=yes
21650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21651 soname_spec
='${libname}${release}${shared_ext}$major'
21652 shlibpath_var
=LD_LIBRARY_PATH
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21660 $as_echo "$dynamic_linker" >&6; }
21661 test "$dynamic_linker" = no
&& can_build_shared
=no
21663 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21664 if test "$GCC" = yes; then
21665 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21668 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21669 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21671 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21672 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21713 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21714 hardcode_action_CXX
=
21715 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21716 test -n "$runpath_var_CXX" ||
21717 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21719 # We can hardcode non-existent directories.
21720 if test "$hardcode_direct_CXX" != no
&&
21721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21722 # have to relink, otherwise we might link with an installed library
21723 # when we should be linking with a yet-to-be-installed one
21724 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21725 test "$hardcode_minus_L_CXX" != no
; then
21726 # Linking always hardcodes the temporary library directory.
21727 hardcode_action_CXX
=relink
21729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21730 hardcode_action_CXX
=immediate
21733 # We cannot hardcode anything, or else we can only hardcode existing
21735 hardcode_action_CXX
=unsupported
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21738 $as_echo "$hardcode_action_CXX" >&6; }
21740 if test "$hardcode_action_CXX" = relink ||
21741 test "$inherit_rpath_CXX" = yes; then
21742 # Fast installation is not supported
21743 enable_fast_install
=no
21744 elif test "$shlibpath_overrides_runpath" = yes ||
21745 test "$enable_shared" = no
; then
21746 # Fast installation is not necessary
21747 enable_fast_install
=needless
21756 fi # test -n "$compiler"
21762 with_gnu_ld
=$lt_save_with_gnu_ld
21763 lt_cv_path_LDCXX
=$lt_cv_path_LD
21764 lt_cv_path_LD
=$lt_save_path_LD
21765 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21766 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21767 fi # test "$_lt_caught_CXX_error" != yes
21770 ac_cpp
='$CXXCPP $CPPFLAGS'
21771 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21772 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21773 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21790 # Only expand once:
21796 # Identify the assembler which will work hand-in-glove with the newly
21797 # built GCC, so that we can examine its features. This is the assembler
21798 # which will be driven by the driver program.
21800 # If build != host, and we aren't building gas in-tree, we identify a
21801 # build->target assembler and hope that it will have the same features
21802 # as the host->target assembler we'll be using.
21803 gcc_cv_gas_major_version
=
21804 gcc_cv_gas_minor_version
=
21805 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21807 if test "${gcc_cv_as+set}" = set; then :
21811 if test -x "$DEFAULT_ASSEMBLER"; then
21812 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21813 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21814 && test -f ..
/gas
/Makefile \
21815 && test x
$build = x
$host; then
21816 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21817 elif test -x as
$build_exeext; then
21818 # Build using assembler in the current directory.
21819 gcc_cv_as
=.
/as
$build_exeext
21820 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21821 gcc_cv_as
="$AS_FOR_TARGET"
21823 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21824 set dummy
$AS_FOR_TARGET; ac_word
=$2
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21826 $as_echo_n "checking for $ac_word... " >&6; }
21827 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21832 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21836 for as_dir
in $PATH
21839 test -z "$as_dir" && as_dir
=.
21840 for ac_exec_ext
in '' $ac_executable_extensions; do
21841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21842 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21853 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21854 if test -n "$gcc_cv_as"; then
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21856 $as_echo "$gcc_cv_as" >&6; }
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859 $as_echo "no" >&6; }
21866 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21868 case "$ORIGINAL_AS_FOR_TARGET" in
21869 .
/as | .
/as
$build_exeext) ;;
21870 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21875 $as_echo_n "checking what assembler to use... " >&6; }
21876 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21877 # Single tree build which includes gas. We want to prefer it
21878 # over whatever linker top-level may have detected, since
21879 # we'll use what we're building after installation anyway.
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21881 $as_echo "newly built gas" >&6; }
21883 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21884 for f
in $gcc_cv_as_bfd_srcdir/configure \
21885 $gcc_cv_as_gas_srcdir/configure \
21886 $gcc_cv_as_gas_srcdir/configure.ac \
21887 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21888 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21889 if test x
$gcc_cv_gas_version != x
; then
21893 case $gcc_cv_gas_version in
21895 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21897 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21898 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21899 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21900 case $gcc_cv_gas_patch_version in
21901 "") gcc_cv_gas_patch_version
="0" ;;
21903 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21904 + $gcc_cv_gas_minor_version \) \* 1000 \
21905 + $gcc_cv_gas_patch_version`
21907 in_tree_gas_is_elf
=no
21908 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21909 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21910 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21912 in_tree_gas_is_elf
=yes
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21916 $as_echo "$gcc_cv_as" >&6; }
21921 # Check whether --enable-ld was given.
21922 if test "${enable_ld+set}" = set; then :
21923 enableval
=$enable_ld; case "${enableval}" in
21931 install_gold_as_default
=no
21932 # Check whether --enable-gold was given.
21933 if test "${enable_gold+set}" = set; then :
21934 enableval
=$enable_gold; case "${enableval}" in
21936 install_gold_as_default
=yes
21939 if test x
${default_ld} != x
; then
21940 install_gold_as_default
=yes
21946 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21952 # Identify the linker which will work hand-in-glove with the newly
21953 # built GCC, so that we can examine its features. This is the linker
21954 # which will be driven by the driver program.
21956 # If build != host, and we aren't building gas in-tree, we identify a
21957 # build->target linker and hope that it will have the same features
21958 # as the host->target linker we'll be using.
21959 gcc_cv_gld_major_version
=
21960 gcc_cv_gld_minor_version
=
21961 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21962 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21963 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21965 if test "${gcc_cv_ld+set}" = set; then :
21969 if test -x "$DEFAULT_LINKER"; then
21970 gcc_cv_ld
="$DEFAULT_LINKER"
21971 elif test $install_gold_as_default = yes \
21972 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21973 && test -f ..
/gold
/Makefile \
21974 && test x
$build = x
$host; then
21975 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21976 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21977 && test -f ..
/ld
/Makefile \
21978 && test x
$build = x
$host; then
21979 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21980 elif test -x collect-ld
$build_exeext; then
21981 # Build using linker in the current directory.
21982 gcc_cv_ld
=.
/collect-ld
$build_exeext
21983 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21984 gcc_cv_ld
="$LD_FOR_TARGET"
21986 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21987 set dummy
$LD_FOR_TARGET; ac_word
=$2
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21989 $as_echo_n "checking for $ac_word... " >&6; }
21990 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21991 $as_echo_n "(cached) " >&6
21995 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21999 for as_dir
in $PATH
22002 test -z "$as_dir" && as_dir
=.
22003 for ac_exec_ext
in '' $ac_executable_extensions; do
22004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22005 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22016 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22017 if test -n "$gcc_cv_ld"; then
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22019 $as_echo "$gcc_cv_ld" >&6; }
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22022 $as_echo "no" >&6; }
22029 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22030 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22031 # if the PLUGIN_LD is set ld-new, just have it as ld
22032 # as that is the installed named.
22033 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22034 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22035 PLUGIN_LD_SUFFIX
=ld
22038 # Check whether --with-plugin-ld was given.
22039 if test "${with_plugin_ld+set}" = set; then :
22040 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22041 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22042 PLUGIN_LD_SUFFIX
="$withval"
22048 cat >>confdefs.h
<<_ACEOF
22049 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22053 # Check to see if we are using gold instead of ld
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22055 $as_echo_n "checking whether we are using gold... " >&6; }
22057 if test x
$gcc_cv_ld != x
; then
22058 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22059 |
grep "GNU gold" > /dev
/null
; then
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22064 $as_echo "$ld_is_gold" >&6; }
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22067 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22068 # Check to see if default ld is not gold, but gold is
22069 # available and has support for split stack. If gcc was configured
22070 # with gold then no checking is done.
22072 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22074 # For platforms other than powerpc64*, enable as appropriate.
22076 gold_non_default
=no
22077 ld_gold
=`which ${gcc_cv_ld}.gold`
22078 # Make sure this gold has minimal split stack support
22079 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22080 ld_vers
=`$ld_gold --version | sed 1q`
22081 gold_vers
=`echo $ld_vers | sed -n \
22082 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22084 # check that the gold version contains the complete split stack support
22085 # on powerpc64 big and little endian
22087 case "$gold_vers" in
22088 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22090 *) gold_non_default
=no
22096 if test $gold_non_default = yes; then
22098 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22103 $as_echo "$gold_non_default" >&6; }
22105 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22107 case "$ORIGINAL_LD_FOR_TARGET" in
22108 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22109 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22114 $as_echo_n "checking what linker to use... " >&6; }
22115 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22116 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22117 # Single tree build which includes ld. We want to prefer it
22118 # over whatever linker top-level may have detected, since
22119 # we'll use what we're building after installation anyway.
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22121 $as_echo "newly built ld" >&6; }
22123 in_tree_ld_is_elf
=no
22124 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22125 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22126 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22127 in_tree_ld_is_elf
=yes
22128 elif test "$ld_is_gold" = yes; then
22129 in_tree_ld_is_elf
=yes
22131 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
22133 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22134 if test x
$gcc_cv_gld_version != x
; then
22138 case $gcc_cv_gld_version in
22140 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22142 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22143 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22144 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22145 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22148 $as_echo "$gcc_cv_ld" >&6; }
22150 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22151 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22152 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22158 # Figure out what nm we will be using.
22159 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22160 if test "${gcc_cv_nm+set}" = set; then :
22164 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22165 && test -f ..
/binutils
/Makefile \
22166 && test x
$build = x
$host; then
22167 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22168 elif test -x nm
$build_exeext; then
22169 gcc_cv_nm
=.
/nm
$build_exeext
22170 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22171 gcc_cv_nm
="$NM_FOR_TARGET"
22173 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22174 set dummy
$NM_FOR_TARGET; ac_word
=$2
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22176 $as_echo_n "checking for $ac_word... " >&6; }
22177 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22178 $as_echo_n "(cached) " >&6
22182 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22186 for as_dir
in $PATH
22189 test -z "$as_dir" && as_dir
=.
22190 for ac_exec_ext
in '' $ac_executable_extensions; do
22191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22192 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22203 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22204 if test -n "$gcc_cv_nm"; then
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22206 $as_echo "$gcc_cv_nm" >&6; }
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22209 $as_echo "no" >&6; }
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22217 $as_echo_n "checking what nm to use... " >&6; }
22218 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22219 # Single tree build which includes binutils.
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22221 $as_echo "newly built nm" >&6; }
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22225 $as_echo "$gcc_cv_nm" >&6; }
22229 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22231 case "$ORIGINAL_NM_FOR_TARGET" in
22232 .
/nm | .
/nm
$build_exeext) ;;
22233 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22238 # Figure out what objdump we will be using.
22239 if test "${gcc_cv_objdump+set}" = set; then :
22243 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22244 && test -f ..
/binutils
/Makefile \
22245 && test x
$build = x
$host; then
22246 # Single tree build which includes binutils.
22247 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22248 elif test -x objdump
$build_exeext; then
22249 gcc_cv_objdump
=.
/objdump
$build_exeext
22250 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22251 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22253 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22254 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22256 $as_echo_n "checking for $ac_word... " >&6; }
22257 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22258 $as_echo_n "(cached) " >&6
22260 case $gcc_cv_objdump in
22262 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22266 for as_dir
in $PATH
22269 test -z "$as_dir" && as_dir
=.
22270 for ac_exec_ext
in '' $ac_executable_extensions; do
22271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22272 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22283 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22284 if test -n "$gcc_cv_objdump"; then
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22286 $as_echo "$gcc_cv_objdump" >&6; }
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22289 $as_echo "no" >&6; }
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22297 $as_echo_n "checking what objdump to use... " >&6; }
22298 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22299 # Single tree build which includes binutils.
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22301 $as_echo "newly built objdump" >&6; }
22302 elif test x
$gcc_cv_objdump = x
; then
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22304 $as_echo "not found" >&6; }
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22307 $as_echo "$gcc_cv_objdump" >&6; }
22310 # Figure out what readelf we will be using.
22311 if test "${gcc_cv_readelf+set}" = set; then :
22315 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22316 && test -f ..
/binutils
/Makefile \
22317 && test x
$build = x
$host; then
22318 # Single tree build which includes binutils.
22319 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22320 elif test -x readelf
$build_exeext; then
22321 gcc_cv_readelf
=.
/readelf
$build_exeext
22322 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22323 gcc_cv_readelf
="$READELF_FOR_TARGET"
22325 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22326 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22328 $as_echo_n "checking for $ac_word... " >&6; }
22329 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22332 case $gcc_cv_readelf in
22334 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22338 for as_dir
in $PATH
22341 test -z "$as_dir" && as_dir
=.
22342 for ac_exec_ext
in '' $ac_executable_extensions; do
22343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22344 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22355 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22356 if test -n "$gcc_cv_readelf"; then
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22358 $as_echo "$gcc_cv_readelf" >&6; }
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22361 $as_echo "no" >&6; }
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22369 $as_echo_n "checking what readelf to use... " >&6; }
22370 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22371 # Single tree build which includes binutils.
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22373 $as_echo "newly built readelf" >&6; }
22374 elif test x
$gcc_cv_readelf = x
; then
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22376 $as_echo "not found" >&6; }
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22379 $as_echo "$gcc_cv_readelf" >&6; }
22382 # Figure out what assembler alignment features are present.
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22384 $as_echo_n "checking assembler flags... " >&6; }
22385 if test "${gcc_cv_as_flags+set}" = set; then :
22386 $as_echo_n "(cached) " >&6
22389 i
[34567]86-*-linux*)
22390 gcc_cv_as_flags
=--32
22392 x86_64-
*-linux-gnux32)
22393 gcc_cv_as_flags
=--x32
22396 gcc_cv_as_flags
=--64
22398 powerpc
*-*-darwin*)
22399 gcc_cv_as_flags
="-arch ppc"
22402 gcc_cv_as_flags
=" "
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22407 $as_echo "$gcc_cv_as_flags" >&6; }
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22410 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22411 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22414 gcc_cv_as_balign_and_p2align
=no
22415 if test $in_tree_gas = yes; then
22416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22417 then gcc_cv_as_balign_and_p2align
=yes
22419 elif test x
$gcc_cv_as != x
; then
22420 $as_echo '.balign 4
22421 .p2align 2' > conftest.s
22422 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22424 (eval $ac_try) 2>&5
22426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22427 test $ac_status = 0; }; }
22429 gcc_cv_as_balign_and_p2align
=yes
22431 echo "configure: failed program was" >&5
22434 rm -f conftest.o conftest.s
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22438 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22439 if test $gcc_cv_as_balign_and_p2align = yes; then
22441 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22447 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22448 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22449 $as_echo_n "(cached) " >&6
22451 gcc_cv_as_max_skip_p2align
=no
22452 if test $in_tree_gas = yes; then
22453 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22454 then gcc_cv_as_max_skip_p2align
=yes
22456 elif test x
$gcc_cv_as != x
; then
22457 $as_echo '.p2align 4,,7' > conftest.s
22458 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22460 (eval $ac_try) 2>&5
22462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22463 test $ac_status = 0; }; }
22465 gcc_cv_as_max_skip_p2align
=yes
22467 echo "configure: failed program was" >&5
22470 rm -f conftest.o conftest.s
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22474 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22475 if test $gcc_cv_as_max_skip_p2align = yes; then
22477 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22483 $as_echo_n "checking assembler for .literal16... " >&6; }
22484 if test "${gcc_cv_as_literal16+set}" = set; then :
22485 $as_echo_n "(cached) " >&6
22487 gcc_cv_as_literal16
=no
22488 if test $in_tree_gas = yes; then
22489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22490 then gcc_cv_as_literal16
=yes
22492 elif test x
$gcc_cv_as != x
; then
22493 $as_echo '.literal16' > conftest.s
22494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22496 (eval $ac_try) 2>&5
22498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22499 test $ac_status = 0; }; }
22501 gcc_cv_as_literal16
=yes
22503 echo "configure: failed program was" >&5
22506 rm -f conftest.o conftest.s
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22510 $as_echo "$gcc_cv_as_literal16" >&6; }
22511 if test $gcc_cv_as_literal16 = yes; then
22513 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22519 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22520 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22521 $as_echo_n "(cached) " >&6
22523 gcc_cv_as_subsection_m1
=no
22524 if test $in_tree_gas = yes; then
22525 if test $in_tree_gas_is_elf = yes \
22526 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22527 then gcc_cv_as_subsection_m1
=yes
22529 elif test x
$gcc_cv_as != x
; then
22530 $as_echo 'conftest_label1: .word 0
22532 conftest_label2: .word 0
22533 .previous' > conftest.s
22534 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22536 (eval $ac_try) 2>&5
22538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22539 test $ac_status = 0; }; }
22541 if test x
$gcc_cv_nm != x
; then
22542 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22543 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22544 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22546 else gcc_cv_as_subsection_m1
=yes
22548 rm -f conftest.nm1 conftest.nm2
22551 echo "configure: failed program was" >&5
22554 rm -f conftest.o conftest.s
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22558 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22559 if test $gcc_cv_as_subsection_m1 = yes; then
22561 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22567 $as_echo_n "checking assembler for .weak... " >&6; }
22568 if test "${gcc_cv_as_weak+set}" = set; then :
22569 $as_echo_n "(cached) " >&6
22572 if test $in_tree_gas = yes; then
22573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22574 then gcc_cv_as_weak
=yes
22576 elif test x
$gcc_cv_as != x
; then
22577 $as_echo ' .weak foobar' > conftest.s
22578 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22580 (eval $ac_try) 2>&5
22582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22583 test $ac_status = 0; }; }
22587 echo "configure: failed program was" >&5
22590 rm -f conftest.o conftest.s
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22594 $as_echo "$gcc_cv_as_weak" >&6; }
22595 if test $gcc_cv_as_weak = yes; then
22597 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22603 $as_echo_n "checking assembler for .weakref... " >&6; }
22604 if test "${gcc_cv_as_weakref+set}" = set; then :
22605 $as_echo_n "(cached) " >&6
22607 gcc_cv_as_weakref
=no
22608 if test $in_tree_gas = yes; then
22609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22610 then gcc_cv_as_weakref
=yes
22612 elif test x
$gcc_cv_as != x
; then
22613 $as_echo ' .weakref foobar, barfnot' > conftest.s
22614 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22616 (eval $ac_try) 2>&5
22618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619 test $ac_status = 0; }; }
22621 gcc_cv_as_weakref
=yes
22623 echo "configure: failed program was" >&5
22626 rm -f conftest.o conftest.s
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22630 $as_echo "$gcc_cv_as_weakref" >&6; }
22631 if test $gcc_cv_as_weakref = yes; then
22633 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22639 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22640 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22641 $as_echo_n "(cached) " >&6
22643 gcc_cv_as_nsubspa_comdat
=no
22644 if test $in_tree_gas = yes; then
22645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22646 then gcc_cv_as_nsubspa_comdat
=yes
22648 elif test x
$gcc_cv_as != x
; then
22649 $as_echo ' .SPACE $TEXT$
22650 .NSUBSPA $CODE$,COMDAT' > conftest.s
22651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22653 (eval $ac_try) 2>&5
22655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656 test $ac_status = 0; }; }
22658 gcc_cv_as_nsubspa_comdat
=yes
22660 echo "configure: failed program was" >&5
22663 rm -f conftest.o conftest.s
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22667 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22668 if test $gcc_cv_as_nsubspa_comdat = yes; then
22670 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22675 # .hidden needs to be supported in both the assembler and the linker,
22676 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22677 # This is irritatingly difficult to feature test for; we have to check the
22678 # date string after the version number. If we've got an in-tree
22679 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22681 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22682 case "${target}" in
22684 conftest_s
=' .globl foobar,hidden'
22687 conftest_s
=' .hidden foobar
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22692 $as_echo_n "checking assembler for .hidden... " >&6; }
22693 if test "${gcc_cv_as_hidden+set}" = set; then :
22694 $as_echo_n "(cached) " >&6
22696 gcc_cv_as_hidden
=no
22697 if test $in_tree_gas = yes; then
22698 if test $in_tree_gas_is_elf = yes \
22699 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22700 then gcc_cv_as_hidden
=yes
22702 elif test x
$gcc_cv_as != x
; then
22703 $as_echo "$conftest_s" > conftest.s
22704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22706 (eval $ac_try) 2>&5
22708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22709 test $ac_status = 0; }; }
22711 gcc_cv_as_hidden
=yes
22713 echo "configure: failed program was" >&5
22716 rm -f conftest.o conftest.s
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22720 $as_echo "$gcc_cv_as_hidden" >&6; }
22723 case "${target}" in
22725 # Darwin as has some visibility support, though with a different syntax.
22726 gcc_cv_as_hidden
=yes
22730 # gnu_indirect_function type is an extension proposed at
22731 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22732 # selection of function implementation
22733 # Check whether --enable-gnu-indirect-function was given.
22734 if test "${enable_gnu_indirect_function+set}" = set; then :
22735 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22737 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22738 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22741 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22745 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22747 cat >>confdefs.h
<<_ACEOF
22748 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22753 if test $in_tree_ld != yes ; then
22754 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22755 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22756 if test x
"$ld_is_gold" = xyes
; then
22757 # GNU gold --version looks like this:
22759 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22761 # We extract the binutils version which is more familiar and specific
22762 # than the gold version.
22763 ld_vers
=`echo $ld_ver | sed -n \
22764 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22766 # GNU ld --version looks like this:
22768 # GNU ld (GNU Binutils) 2.21.51.20110225
22769 ld_vers
=`echo $ld_ver | sed -n \
22770 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22772 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'`
22773 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22774 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22775 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22777 case "${target}" in
22779 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22782 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22783 # /usr/ccs/bin/ld has been configured.
22784 ld_ver
=`$gcc_cv_ld -V 2>&1`
22785 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22786 ld_vers
=`echo $ld_ver | sed -n \
22787 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22788 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22789 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22797 $as_echo_n "checking linker for .hidden support... " >&6; }
22798 if test "${gcc_cv_ld_hidden+set}" = set; then :
22799 $as_echo_n "(cached) " >&6
22801 if test $in_tree_ld = yes ; then
22802 gcc_cv_ld_hidden
=no
22803 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 \
22804 && test $in_tree_ld_is_elf = yes; then
22805 gcc_cv_ld_hidden
=yes
22808 gcc_cv_ld_hidden
=yes
22809 if test x
"$ld_is_gold" = xyes
; then
22811 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22812 case "${target}" in
22813 mmix-knuth-mmixware
)
22814 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22815 gcc_cv_ld_hidden
=no
22818 if test 0"$ld_date" -lt 20020404; then
22819 if test -n "$ld_date"; then
22820 # If there was date string, but was earlier than 2002-04-04, fail
22821 gcc_cv_ld_hidden
=no
22822 elif test -z "$ld_vers"; then
22823 # If there was no date string nor ld version number, something is wrong
22824 gcc_cv_ld_hidden
=no
22826 test -z "$ld_vers_patch" && ld_vers_patch
=0
22827 if test "$ld_vers_major" -lt 2; then
22828 gcc_cv_ld_hidden
=no
22829 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22830 gcc_cv_ld_hidden
="no"
22831 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22832 gcc_cv_ld_hidden
=no
22837 case "${target}" in
22839 gcc_cv_ld_hidden
=yes
22842 # Darwin ld has some visibility support.
22843 gcc_cv_ld_hidden
=yes
22845 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22846 gcc_cv_ld_hidden
=yes
22848 *-*-solaris2.1
[0-9]*)
22849 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22850 # .symbolic was only added in Solaris 9 12/02.
22851 gcc_cv_ld_hidden
=yes
22854 gcc_cv_ld_hidden
=no
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22861 $as_echo "$gcc_cv_ld_hidden" >&6; }
22862 libgcc_visibility
=no
22865 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22866 libgcc_visibility
=yes
22868 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22873 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22874 gcc_cv_ld_ro_rw_mix
=unknown
22875 if test $in_tree_ld = yes ; then
22876 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 \
22877 && test $in_tree_ld_is_elf = yes; then
22878 gcc_cv_ld_ro_rw_mix
=read-write
22880 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22881 echo '.section myfoosect, "a"' > conftest1.s
22882 echo '.section myfoosect, "aw"' > conftest2.s
22883 echo '.byte 1' >> conftest2.s
22884 echo '.section myfoosect, "a"' > conftest3.s
22885 echo '.byte 0' >> conftest3.s
22886 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22887 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22888 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22889 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22890 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22891 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22892 | sed -e '/myfoosect/!d' -e N`
22893 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22894 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22895 gcc_cv_ld_ro_rw_mix
=read-only
22897 gcc_cv_ld_ro_rw_mix
=read-write
22901 rm -f conftest.
* conftest
[123].
*
22903 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22905 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22909 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22911 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22912 case "${target}" in
22915 # Solaris 2 ld -V output looks like this for a regular version:
22917 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22919 # but test versions add stuff at the end:
22921 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22923 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22924 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22925 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22926 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22927 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22928 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22934 # Check whether --enable-initfini-array was given.
22935 if test "${enable_initfini_array+set}" = set; then :
22936 enableval
=$enable_initfini_array;
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22940 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22941 if test "${gcc_cv_initfini_array+set}" = set; then :
22942 $as_echo_n "(cached) " >&6
22944 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22945 case "${target}" in
22947 if test "$cross_compiling" = yes; then :
22948 gcc_cv_initfini_array
=no
22950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22954 #error Not an ELF OS
22956 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22957 if it can be used. */
22959 int main (void) { return x; }
22960 int foo (void) { x = 0; }
22961 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22964 if ac_fn_cxx_try_run
"$LINENO"; then :
22965 gcc_cv_initfini_array
=yes
22967 gcc_cv_initfini_array
=no
22969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22974 gcc_cv_initfini_array
=no
22975 if test $in_tree_ld = yes ; then
22976 if test "$gcc_cv_gld_major_version" -eq 2 \
22977 -a "$gcc_cv_gld_minor_version" -ge 22 \
22978 -o "$gcc_cv_gld_major_version" -gt 2 \
22979 && test $in_tree_ld_is_elf = yes; then
22980 gcc_cv_initfini_array
=yes
22982 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22983 case $target:$gas in
22986 sh_type
='%progbits'
22988 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
22990 sh_type
='@progbits'
22992 sparc
*-*-solaris2*:no
)
22994 sh_type
='#progbits'
22998 case "$target:$gnu_ld" in
23000 cat > conftest.s
<<EOF
23001 .section .dtors,$sh_flags,$sh_type
23003 .byte 'A', 'A', 'A', 'A'
23004 .section .ctors,$sh_flags,$sh_type
23006 .byte 'B', 'B', 'B', 'B'
23007 .section .fini_array.65530,$sh_flags,$sh_type
23009 .byte 'C', 'C', 'C', 'C'
23010 .section .init_array.65530,$sh_flags,$sh_type
23012 .byte 'D', 'D', 'D', 'D'
23013 .section .dtors.64528,$sh_flags,$sh_type
23015 .byte 'E', 'E', 'E', 'E'
23016 .section .ctors.64528,$sh_flags,$sh_type
23018 .byte 'F', 'F', 'F', 'F'
23019 .section .fini_array.01005,$sh_flags,$sh_type
23021 .byte 'G', 'G', 'G', 'G'
23022 .section .init_array.01005,$sh_flags,$sh_type
23024 .byte 'H', 'H', 'H', 'H'
23029 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23030 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23031 && $gcc_cv_objdump -s -j .init_array conftest \
23032 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23033 && $gcc_cv_objdump -s -j .fini_array conftest \
23034 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23035 gcc_cv_initfini_array
=yes
23039 # When Solaris ld added constructor priority support, it was
23040 # decided to only handle .init_array.N/.fini_array.N since
23041 # there was no need for backwards compatibility with
23042 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23043 # sections with correct execution order resp. to
23044 # .init_array/.fini_array, while gld merges them into
23045 # .init_array/.fini_array.
23046 cat > conftest.s
<<EOF
23047 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23049 .byte 'C', 'C', 'C', 'C'
23050 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23052 .byte 'D', 'D', 'D', 'D'
23053 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23055 .byte 'G', 'G', 'G', 'G'
23056 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23058 .byte 'H', 'H', 'H', 'H'
23063 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23064 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23065 && $gcc_cv_objdump -s -j .init_array conftest \
23066 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23067 && $gcc_cv_objdump -s -j .fini_array conftest \
23068 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23069 gcc_cv_initfini_array
=yes
23073 rm -f conftest conftest.
*
23075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h. */
23079 # error Not an ELF OS
23081 #include <stdlib.h>
23082 #if defined __GLIBC_PREREQ
23083 # if __GLIBC_PREREQ (2, 4)
23085 # error GLIBC 2.4 required
23088 # if defined __sun__ && defined __svr4__
23089 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23091 # error The C library not known to support .init_array/.fini_array
23096 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23099 gcc_cv_initfini_array
=no
23101 rm -f conftest.err conftest.
$ac_ext;;
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23105 $as_echo_n "checking cross compile... guessing... " >&6; }
23106 gcc_cv_initfini_array
=no
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23110 $as_echo "$gcc_cv_initfini_array" >&6; }
23111 enable_initfini_array
=$gcc_cv_initfini_array
23116 cat >>confdefs.h
<<_ACEOF
23117 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23122 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23124 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23125 if test "${gcc_cv_as_leb128+set}" = set; then :
23126 $as_echo_n "(cached) " >&6
23128 gcc_cv_as_leb128
=no
23129 if test $in_tree_gas = yes; then
23130 if test $in_tree_gas_is_elf = yes \
23131 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23132 then gcc_cv_as_leb128
=yes
23134 elif test x
$gcc_cv_as != x
; then
23141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23143 (eval $ac_try) 2>&5
23145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23146 test $ac_status = 0; }; }
23148 # GAS versions before 2.11 do not support uleb128,
23149 # despite appearing to.
23150 # ??? There exists an elf-specific test that will crash
23151 # the assembler. Perhaps it's better to figure out whether
23152 # arbitrary sections are supported and try the test.
23153 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23154 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23155 as_vers
=`echo $as_ver | sed -n \
23156 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23157 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23158 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23159 if test $as_major -eq 2 && test $as_minor -lt 11
23161 else gcc_cv_as_leb128
=yes
23165 echo "configure: failed program was" >&5
23168 rm -f conftest.o conftest.s
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23172 $as_echo "$gcc_cv_as_leb128" >&6; }
23173 if test $gcc_cv_as_leb128 = yes; then
23175 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23178 if test $gcc_cv_as_leb128 != yes; then
23180 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23184 # Check if we have assembler support for unwind directives.
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23186 $as_echo_n "checking assembler for cfi directives... " >&6; }
23187 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23188 $as_echo_n "(cached) " >&6
23190 gcc_cv_as_cfi_directive
=no
23191 if test x
$gcc_cv_as != x
; then
23197 .cfi_escape 1, 2, 3, 4, 5
23198 .cfi_endproc' > conftest.s
23199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23208 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23209 # read-only and read-write sections, we need to make sure that the
23210 # assembler used emits read-write .eh_frame sections.
23211 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23212 if test "x$gcc_cv_objdump" != x
; then
23213 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23214 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23215 gcc_cv_as_cfi_directive
=no
23218 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23219 # On Solaris/x86, make sure that GCC and assembler agree on using
23220 # read-only .eh_frame sections for 64-bit.
23221 if test x
$gas = xyes
; then
23222 as_ix86_64_opt
="--64"
23224 as_ix86_64_opt
="-xarch=amd64"
23226 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23227 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23228 sed -e /.eh_frame
/!d
-e N | \
23229 grep READONLY
> /dev
/null
; then
23230 gcc_cv_as_cfi_directive
=yes
23232 gcc_cv_as_cfi_directive
=no
23236 gcc_cv_as_cfi_directive
=yes
23241 # no objdump, err on the side of caution
23242 gcc_cv_as_cfi_directive
=no
23245 gcc_cv_as_cfi_directive
=yes
23249 gcc_cv_as_cfi_directive
=yes
23253 echo "configure: failed program was" >&5
23256 rm -f conftest.o conftest.s
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23260 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23263 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23265 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23266 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23267 $as_echo_n "(cached) " >&6
23269 gcc_cv_as_cfi_advance_working
=no
23270 if test x
$gcc_cv_as != x
; then
23273 .cfi_adjust_cfa_offset 64
23275 .cfi_adjust_cfa_offset 128
23276 .cfi_endproc' > conftest.s
23277 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23279 (eval $ac_try) 2>&5
23281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23282 test $ac_status = 0; }; }
23285 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23286 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23287 gcc_cv_as_cfi_advance_working
=yes
23291 echo "configure: failed program was" >&5
23294 rm -f conftest.o conftest.s
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23298 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23302 # no objdump, err on the side of caution
23303 gcc_cv_as_cfi_advance_working
=no
23307 cat >>confdefs.h
<<_ACEOF
23308 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23309 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23315 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23316 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23317 $as_echo_n "(cached) " >&6
23319 gcc_cv_as_cfi_personality_directive
=no
23320 if test x
$gcc_cv_as != x
; then
23323 .cfi_personality 0, symbol
23324 .cfi_endproc' > 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 gcc_cv_as_cfi_personality_directive
=yes
23334 echo "configure: failed program was" >&5
23337 rm -f conftest.o conftest.s
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23341 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23345 cat >>confdefs.h
<<_ACEOF
23346 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23347 then echo 1; else echo 0; fi`
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23352 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23353 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23354 $as_echo_n "(cached) " >&6
23356 gcc_cv_as_cfi_sections_directive
=no
23357 if test x
$gcc_cv_as != x
; then
23359 .cfi_sections .debug_frame, .eh_frame
23361 .cfi_endproc' > conftest.s
23362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23364 (eval $ac_try) 2>&5
23366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23367 test $ac_status = 0; }; }
23370 win32 | pe | cygwin
* | mingw32
*)
23371 # Need to check that we generated the correct relocation for the
23372 # .debug_frame section. This was fixed for binutils 2.21.
23373 gcc_cv_as_cfi_sections_directive
=no
23374 if test "x$gcc_cv_objdump" != x
; then
23375 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23376 grep secrel
> /dev
/null
; then
23377 gcc_cv_as_cfi_sections_directive
=yes
23382 gcc_cv_as_cfi_sections_directive
=yes
23386 echo "configure: failed program was" >&5
23389 rm -f conftest.o conftest.s
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23393 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23398 cat >>confdefs.h
<<_ACEOF
23399 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23400 then echo 1; else echo 0; fi`
23404 # GAS versions up to and including 2.11.0 may mis-optimize
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23407 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23408 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23409 $as_echo_n "(cached) " >&6
23411 gcc_cv_as_eh_frame
=no
23412 if test $in_tree_gas = yes; then
23413 if test $in_tree_gas_is_elf = yes \
23414 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23415 then gcc_cv_as_eh_frame
=yes
23417 elif test x
$gcc_cv_as != x
; then
23424 .section .eh_frame,"aw",@progbits
23426 .4byte .LECIE1-.LSCIE1
23440 .4byte .LEFDE1-.LASFDE1
23442 .4byte .LASFDE1-__FRAME_BEGIN__
23449 .LEFDE1:' > conftest.s
23450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23452 (eval $ac_try) 2>&5
23454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455 test $ac_status = 0; }; }
23457 cat > conftest.lit
<<EOF
23458 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23459 0010 01000000 12000000 18000000 00000000 ................
23460 0020 08000000 04080000 0044 .........D
23462 cat > conftest.big
<<EOF
23463 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23464 0010 00000001 00000012 00000018 00000000 ................
23465 0020 00000008 04000000 0844 .........D
23467 # If the assembler didn't choke, and we can objdump,
23468 # and we got the correct data, then succeed.
23469 # The text in the here-document typically retains its unix-style line
23470 # endings, while the output of objdump will use host line endings.
23471 # Therefore, use diff -b for the comparisons.
23472 if test x
$gcc_cv_objdump != x \
23473 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23474 |
tail -3 > conftest.got \
23475 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23476 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23478 gcc_cv_as_eh_frame
=yes
23479 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481 (eval $ac_try) 2>&5
23483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484 test $ac_status = 0; }; }; then
23485 gcc_cv_as_eh_frame
=buggy
23487 # Uh oh, what do we do now?
23488 gcc_cv_as_eh_frame
=no
23491 echo "configure: failed program was" >&5
23494 rm -f conftest.o conftest.s
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23498 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23502 if test $gcc_cv_as_eh_frame = buggy
; then
23504 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23509 $as_echo_n "checking assembler for section merging support... " >&6; }
23510 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23511 $as_echo_n "(cached) " >&6
23513 gcc_cv_as_shf_merge
=no
23514 if test $in_tree_gas = yes; then
23515 if test $in_tree_gas_is_elf = yes \
23516 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23517 then gcc_cv_as_shf_merge
=yes
23519 elif test x
$gcc_cv_as != x
; then
23520 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23521 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23523 (eval $ac_try) 2>&5
23525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23526 test $ac_status = 0; }; }
23528 gcc_cv_as_shf_merge
=yes
23530 echo "configure: failed program was" >&5
23533 rm -f conftest.o conftest.s
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23537 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23540 if test $gcc_cv_as_shf_merge = no
; then
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23542 $as_echo_n "checking assembler for section merging support... " >&6; }
23543 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23544 $as_echo_n "(cached) " >&6
23546 gcc_cv_as_shf_merge
=no
23547 if test $in_tree_gas = yes; then
23548 if test $in_tree_gas_is_elf = yes \
23549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23550 then gcc_cv_as_shf_merge
=yes
23552 elif test x
$gcc_cv_as != x
; then
23553 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23554 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23556 (eval $ac_try) 2>&5
23558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23559 test $ac_status = 0; }; }
23561 gcc_cv_as_shf_merge
=yes
23563 echo "configure: failed program was" >&5
23566 rm -f conftest.o conftest.s
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23570 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23575 cat >>confdefs.h
<<_ACEOF
23576 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23581 $as_echo_n "checking assembler for stabs directive... " >&6; }
23582 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23583 $as_echo_n "(cached) " >&6
23585 gcc_cv_as_stabs_directive
=no
23586 if test x
$gcc_cv_as != x
; then
23587 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23588 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23590 (eval $ac_try) 2>&5
23592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23593 test $ac_status = 0; }; }
23595 gcc_cv_as_stabs_directive
=yes
23597 echo "configure: failed program was" >&5
23600 rm -f conftest.o conftest.s
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23604 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23605 if test $gcc_cv_as_stabs_directive = yes; then
23607 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23613 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23614 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23615 $as_echo_n "(cached) " >&6
23617 gcc_cv_as_comdat_group
=no
23618 if test $in_tree_gas = yes; then
23619 if test $in_tree_gas_is_elf = yes \
23620 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23621 then gcc_cv_as_comdat_group
=yes
23623 elif test x
$gcc_cv_as != x
; then
23624 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23627 (eval $ac_try) 2>&5
23629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23630 test $ac_status = 0; }; }
23632 gcc_cv_as_comdat_group
=yes
23634 echo "configure: failed program was" >&5
23637 rm -f conftest.o conftest.s
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23641 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23644 if test $gcc_cv_as_comdat_group = yes; then
23645 gcc_cv_as_comdat_group_percent
=no
23646 gcc_cv_as_comdat_group_group
=no
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23649 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23650 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23651 $as_echo_n "(cached) " >&6
23653 gcc_cv_as_comdat_group_percent
=no
23654 if test $in_tree_gas = yes; then
23655 if test $in_tree_gas_is_elf = yes \
23656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23657 then gcc_cv_as_comdat_group_percent
=yes
23659 elif test x
$gcc_cv_as != x
; then
23660 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23663 (eval $ac_try) 2>&5
23665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23666 test $ac_status = 0; }; }
23668 gcc_cv_as_comdat_group_percent
=yes
23670 echo "configure: failed program was" >&5
23673 rm -f conftest.o conftest.s
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23677 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23680 if test $gcc_cv_as_comdat_group_percent = yes; then
23681 gcc_cv_as_comdat_group_group
=no
23683 case "${target}" in
23684 # Sun as uses a completely different syntax.
23686 case "${target}" in
23687 sparc
*-*-solaris2*)
23689 .group foo,".text%foo",#comdat
23690 .section ".text%foo", #alloc,#execinstr,#progbits
23695 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23697 .group foo,.text%foo,#comdat
23698 .section .text%foo, "ax", @progbits
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23705 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23706 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23707 $as_echo_n "(cached) " >&6
23709 gcc_cv_as_comdat_group_group
=no
23710 if test x
$gcc_cv_as != x
; then
23711 $as_echo "$conftest_s" > conftest.s
23712 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23714 (eval $ac_try) 2>&5
23716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23717 test $ac_status = 0; }; }
23719 gcc_cv_as_comdat_group_group
=yes
23721 echo "configure: failed program was" >&5
23724 rm -f conftest.o conftest.s
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23728 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23733 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23734 gcc_cv_as_comdat_group_group
=no
23738 if test x
"$ld_is_gold" = xyes
; then
23740 elif test $in_tree_ld = yes ; then
23742 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 \
23743 && test $in_tree_ld_is_elf = yes; then
23746 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23748 if test 0"$ld_date" -lt 20050308; then
23749 if test -n "$ld_date"; then
23750 # If there was date string, but was earlier than 2005-03-08, fail
23752 elif test "$ld_vers_major" -lt 2; then
23754 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23759 case "${target}" in
23760 *-*-solaris2.1
[1-9]*)
23762 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23763 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23766 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23767 # least ld version 1.2267.
23768 if test "$ld_vers_major" -gt 1; then
23770 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23772 elif test "$ld_vers_minor" -ge 2267; then
23777 # Assume linkers other than GNU ld don't support COMDAT group.
23782 # Allow overriding the automatic COMDAT group tests above.
23783 # Check whether --enable-comdat was given.
23784 if test "${enable_comdat+set}" = set; then :
23785 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23788 if test $comdat_group = no
; then
23789 gcc_cv_as_comdat_group
=no
23790 gcc_cv_as_comdat_group_percent
=no
23791 gcc_cv_as_comdat_group_group
=no
23794 cat >>confdefs.h
<<_ACEOF
23795 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23796 || test $gcc_cv_as_comdat_group_percent = yes \
23797 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23802 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23803 if test "${gcc_cv_as_discriminator+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23806 gcc_cv_as_discriminator
=no
23807 if test $in_tree_gas = yes; then
23808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23809 then gcc_cv_as_discriminator
=yes
23811 elif test x
$gcc_cv_as != x
; then
23814 .loc 1 1 0 discriminator 1' > conftest.s
23815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23817 (eval $ac_try) 2>&5
23819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23820 test $ac_status = 0; }; }
23822 gcc_cv_as_discriminator
=yes
23824 echo "configure: failed program was" >&5
23827 rm -f conftest.o conftest.s
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23831 $as_echo "$gcc_cv_as_discriminator" >&6; }
23832 if test $gcc_cv_as_discriminator = yes; then
23834 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23839 # Thread-local storage - the check is heavily parameterized.
23847 .section ".tdata","awT",@progbits
23850 ldq $27,__tls_get_addr($29) !literal!1
23851 lda $16,foo($29) !tlsgd!1
23852 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23853 ldq $27,__tls_get_addr($29) !literal!2
23854 lda $16,foo($29) !tlsldm!2
23855 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23856 ldq $1,foo($29) !gotdtprel
23857 ldah $2,foo($29) !dtprelhi
23858 lda $3,foo($2) !dtprello
23859 lda $4,foo($29) !dtprel
23860 ldq $1,foo($29) !gottprel
23861 ldah $2,foo($29) !tprelhi
23862 lda $3,foo($2) !tprello
23863 lda $4,foo($29) !tprel'
23866 tls_as_opt
=--fatal-warnings
23870 add_s r0,r0, @foo@tpoff'
23874 cris-
*-*|crisv32-
*-*)
23876 .section ".tdata","awT",@progbits
23883 tls_as_opt
=--fatal-warnings
23887 .section ".tdata","awT",@progbits
23890 call #gettlsoff(x)'
23899 .section ".tdata","awT",@progbits
23903 addil LT%foo-$tls_gdidx$,gp
23904 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23907 addil LT%foo-$tls_ldidx$,gp
23909 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23910 addil LR%foo-$tls_dtpoff$,%ret0
23911 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23913 addil LT%foo-$tls_ieoff$,gp
23914 ldw RT%foo-$tls_ieoff$(%r1),%t2
23917 addil LR%foo-$tls_leoff$,%t1
23918 ldo RR%foo-$tls_leoff$(%r1),%t2'
23921 tls_as_opt
=--fatal-warnings
23925 .section ".tdata","awT",%progbits
23928 .word foo(gottpoff)
23936 i
[34567]86-*-* | x86_64-
*-*)
23938 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23945 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23947 .section .tdata,"awt",@progbits'
23952 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23956 .section ".tdata","awT",@progbits'
23960 tls_as_opt
="--fatal-warnings"
23964 conftest_s
="$conftest_s
23968 leal foo@tlsgd(,%ebx,1), %eax
23969 leal foo@tlsldm(%ebx), %eax
23970 leal foo@dtpoff(%eax), %edx
23971 movl foo@gottpoff(%ebx), %eax
23972 subl foo@gottpoff(%ebx), %eax
23973 addl foo@gotntpoff(%ebx), %eax
23974 movl foo@indntpoff, %eax
23975 movl \$foo@tpoff, %eax
23976 subl \$foo@tpoff, %eax
23977 leal foo@ntpoff(%ecx), %eax"
23980 if test x
$on_solaris = xyes
; then
23982 yes) tls_as_opt
="$tls_as_opt --64" ;;
23983 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23986 conftest_s
="$conftest_s
23990 leaq foo@tlsgd(%rip), %rdi
23991 leaq foo@tlsld(%rip), %rdi
23992 leaq foo@dtpoff(%rax), %rdx
23993 movq foo@gottpoff(%rip), %rax
23994 movq \$foo@tpoff, %rax"
24000 .section ".tdata","awT",@progbits
24003 addl r16 = @ltoff(@dtpmod(foo#)), gp
24004 addl r17 = @ltoff(@dtprel(foo#)), gp
24005 addl r18 = @ltoff(@tprel(foo#)), gp
24006 addl r19 = @dtprel(foo#), gp
24007 adds r21 = @dtprel(foo#), r13
24008 movl r23 = @dtprel(foo#)
24009 addl r20 = @tprel(foo#), gp
24010 adds r22 = @tprel(foo#), r13
24011 movl r24 = @tprel(foo#)'
24014 tls_as_opt
=--fatal-warnings
24018 .section .tdata,"awT",@progbits
24022 addik r5,r20,x@TLSGD
24023 addik r5,r20,x@TLSLDM'
24026 tls_as_opt
='--fatal-warnings'
24030 .section .tdata,"awT",@progbits
24034 addiu $4, $28, %tlsgd(x)
24035 addiu $4, $28, %tlsldm(x)
24036 lui $4, %dtprel_hi(x)
24037 addiu $4, $4, %dtprel_lo(x)
24038 lw $4, %gottprel(x)($28)
24039 lui $4, %tprel_hi(x)
24040 addiu $4, $4, %tprel_lo(x)'
24043 tls_as_opt
='-32 --fatal-warnings'
24047 .section .tdata,"awT",@progbits
24052 move.l x@TLSGD(%a5),%a0
24053 move.l x@TLSLDM(%a5),%a0
24054 move.l x@TLSLDO(%a5),%a0
24055 move.l x@TLSIE(%a5),%a0
24056 move.l x@TLSLE(%a5),%a0'
24059 tls_as_opt
='--fatal-warnings'
24063 .section ".tdata","awT",@progbits'
24066 tls_as_opt
="--fatal-warnings"
24070 .section ".tdata","awT",%progbits
24074 add x0, x0, #:tlsgd_lo12:x
24079 tls_as_opt
='--fatal-warnings'
24083 .extern __get_tpointer
24101 .section ".tdata","awT",@progbits
24109 addi 3,2,ld0@got@tlsgd
24115 addi 3,2,x1@got@tlsld
24121 addis 9,3,x2@dtprel@ha
24122 addi 9,9,x2@dtprel@l
24125 ld 9,x3@got@dtprel(2)
24131 tls_as_opt
="-a64 --fatal-warnings"
24135 .section ".tdata","awT",@progbits
24143 addi 3,31,ld0@got@tlsgd
24145 addi 3,31,x1@got@tlsld
24148 addis 9,3,x2@dtprel@ha
24149 addi 9,9,x2@dtprel@l
24150 lwz 9,x3@got@tprel(31)
24153 addis 9,2,x2@tprel@ha
24154 addi 9,9,x2@tprel@l'
24157 tls_as_opt
="-a32 --fatal-warnings"
24161 .section .tdata,"awT",@progbits
24165 call __tls_get_addr'
24168 tls_as_opt
='--fatal-warnings'
24172 .section ".tdata","awT",@progbits
24179 .long foo@GOTNTPOFF
24180 .long foo@INDNTPOFF
24181 l %r1,foo@GOTNTPOFF(%r12)
24182 l %r1,0(%r1):tls_load:foo
24183 bas %r14,0(%r1,%r13):tls_gdcall:foo
24184 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24187 tls_as_opt
="-m31 --fatal-warnings"
24191 .section ".tdata","awT",@progbits
24198 .quad foo@GOTNTPOFF
24199 lg %r1,foo@GOTNTPOFF(%r12)
24200 larl %r1,foo@INDNTPOFF
24201 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24202 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24205 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24207 sh-
*-* | sh
[123456789lbe
]*-*-*)
24209 .section ".tdata","awT",@progbits
24219 tls_as_opt
=--fatal-warnings
24223 sparc
*-sun-solaris2.
*)
24230 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24232 .section ".tdata",#alloc,#write,#tls'
24237 .section ".tdata","awT",@progbits'
24240 tls_as_opt
="-32 --fatal-warnings"
24242 conftest_s
="$conftest_s
24245 sethi %tgd_hi22(foo), %o0
24246 add %o0, %tgd_lo10(foo), %o1
24247 add %l7, %o1, %o0, %tgd_add(foo)
24248 call __tls_get_addr, %tgd_call(foo)
24249 sethi %tldm_hi22(foo), %l1
24250 add %l1, %tldm_lo10(foo), %l2
24251 add %l7, %l2, %o0, %tldm_add(foo)
24252 call __tls_get_addr, %tldm_call(foo)
24253 sethi %tldo_hix22(foo), %l3
24254 xor %l3, %tldo_lox10(foo), %l4
24255 add %o0, %l4, %l5, %tldo_add(foo)
24256 sethi %tie_hi22(foo), %o3
24257 add %o3, %tie_lo10(foo), %o3
24258 ld [%l7 + %o3], %o2, %tie_ld(foo)
24259 add %g7, %o2, %o4, %tie_add(foo)
24260 sethi %tle_hix22(foo), %l1
24261 xor %l1, %tle_lox10(foo), %o5
24262 ld [%g7 + %o5], %o1"
24266 .section ".tdata","awT",@progbits
24269 addli r0, zero, tls_gd(foo)
24270 auli r0, zero, tls_gd_ha16(foo)
24271 addli r0, r0, tls_gd_lo16(foo)
24273 addli r0, zero, tls_ie(foo)
24274 auli r0, r0, tls_ie_ha16(foo)
24275 addli r0, r0, tls_ie_lo16(foo)'
24278 tls_as_opt
="--fatal-warnings"
24282 .section ".tdata","awT",@progbits
24285 shl16insli r0, zero, hw0_last_tls_gd(foo)
24286 shl16insli r0, zero, hw1_last_tls_gd(foo)
24287 shl16insli r0, r0, hw0_tls_gd(foo)
24289 shl16insli r0, zero, hw1_last_tls_ie(foo)
24290 shl16insli r0, r0, hw0_tls_ie(foo)'
24293 tls_as_opt
="--fatal-warnings"
24297 .section ".tdata","awT",@progbits
24300 movi a8, foo@TLSFUNC
24301 movi a10, foo@TLSARG
24302 callx8.tls a8, foo@TLSCALL'
24308 if test "x$enable_tls" = xno
; then
24309 : # TLS explicitly disabled.
24310 elif test "x$enable_tls" = xyes
; then
24311 set_have_as_tls
=yes # TLS explicitly enabled.
24312 elif test -z "$tls_first_major"; then
24313 : # If we don't have a check, assume no support.
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24316 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24317 if test "${gcc_cv_as_tls+set}" = set; then :
24318 $as_echo_n "(cached) " >&6
24321 if test $in_tree_gas = yes; then
24322 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24323 then gcc_cv_as_tls
=yes
24325 elif test x
$gcc_cv_as != x
; then
24326 $as_echo "$conftest_s" > conftest.s
24327 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24329 (eval $ac_try) 2>&5
24331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24332 test $ac_status = 0; }; }
24336 echo "configure: failed program was" >&5
24339 rm -f conftest.o conftest.s
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24343 $as_echo "$gcc_cv_as_tls" >&6; }
24344 if test $gcc_cv_as_tls = yes; then
24345 set_have_as_tls
=yes
24349 if test $set_have_as_tls = yes ; then
24351 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24355 # Target-specific assembler checks.
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24358 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24359 gcc_cv_ld_static_dynamic
=no
24360 gcc_cv_ld_static_option
='-Bstatic'
24361 gcc_cv_ld_dynamic_option
='-Bdynamic'
24362 if test $in_tree_ld = yes ; then
24363 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
24364 gcc_cv_ld_static_dynamic
=yes
24366 elif test x
$gcc_cv_ld != x
; then
24367 # Check if linker supports -Bstatic/-Bdynamic option
24368 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24369 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24370 gcc_cv_ld_static_dynamic
=yes
24373 # AIX ld uses -b flags
24374 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24375 gcc_cv_ld_static_dynamic
=yes
24376 gcc_cv_ld_static_option
="-bstatic"
24377 gcc_cv_ld_dynamic_option
="-bdynamic"
24379 # HP-UX ld uses -a flags to select between shared and archive.
24381 if test x
"$gnu_ld" = xno
; then
24382 gcc_cv_ld_static_dynamic
=yes
24383 gcc_cv_ld_static_option
="-aarchive_shared"
24384 gcc_cv_ld_dynamic_option
="-adefault"
24387 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24389 gcc_cv_ld_static_dynamic
=yes
24394 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24396 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24399 cat >>confdefs.h
<<_ACEOF
24400 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24404 cat >>confdefs.h
<<_ACEOF
24405 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24410 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24412 if test x
"$demangler_in_ld" = xyes
; then
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24414 $as_echo_n "checking linker --demangle support... " >&6; }
24415 gcc_cv_ld_demangle
=no
24416 if test $in_tree_ld = yes; then
24417 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 \
24418 gcc_cv_ld_demangle
=yes
24420 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24421 # Check if the GNU linker supports --demangle option
24422 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24423 gcc_cv_ld_demangle
=yes
24426 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24428 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24432 $as_echo "$gcc_cv_ld_demangle" >&6; }
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24436 $as_echo_n "checking linker plugin support... " >&6; }
24437 gcc_cv_lto_plugin
=0
24438 if test -f liblto_plugin.la
; then
24439 save_ld_ver
="$ld_ver"
24440 save_ld_vers_major
="$ld_vers_major"
24441 save_ld_vers_minor
="$ld_vers_minor"
24442 save_ld_is_gold
="$ld_is_gold"
24446 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24448 # FIXME: ld_is_gold?
24449 ld_vers_major
="$gcc_cv_gld_major_version"
24450 ld_vers_minor
="$gcc_cv_gld_minor_version"
24452 # Determine plugin linker version.
24453 # FIXME: Partial duplicate from above, generalize.
24454 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24455 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24456 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24458 ld_vers
=`echo $ld_ver | sed -n \
24459 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24461 ld_vers
=`echo $ld_ver | sed -n \
24462 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24464 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24465 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24469 # Determine plugin support.
24470 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24471 # Require GNU ld or gold 2.21+ for plugin support by default.
24472 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24473 gcc_cv_lto_plugin
=2
24474 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24475 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24476 gcc_cv_lto_plugin
=1
24480 ld_ver
="$save_ld_ver"
24481 ld_vers_major
="$save_ld_vers_major"
24482 ld_vers_minor
="$save_ld_vers_minor"
24483 ld_is_gold
="$save_ld_is_gold"
24486 cat >>confdefs.h
<<_ACEOF
24487 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24491 $as_echo "$gcc_cv_lto_plugin" >&6; }
24493 # Target OS-specific assembler checks.
24495 case "$target_os" in
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24498 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24499 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24500 $as_echo_n "(cached) " >&6
24502 gcc_cv_as_mmacosx_version_min
=no
24503 if test x
$gcc_cv_as != x
; then
24504 $as_echo '.text' > conftest.s
24505 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24507 (eval $ac_try) 2>&5
24509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24510 test $ac_status = 0; }; }
24512 gcc_cv_as_mmacosx_version_min
=yes
24514 echo "configure: failed program was" >&5
24517 rm -f conftest.o conftest.s
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24521 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24522 if test $gcc_cv_as_mmacosx_version_min = yes; then
24524 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24531 # Target CPU-specific assembler checks.
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24536 $as_echo_n "checking assembler for -mabi option... " >&6; }
24537 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24540 gcc_cv_as_aarch64_mabi
=no
24541 if test x
$gcc_cv_as != x
; then
24542 $as_echo '.text' > conftest.s
24543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24545 (eval $ac_try) 2>&5
24547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24548 test $ac_status = 0; }; }
24550 gcc_cv_as_aarch64_mabi
=yes
24552 echo "configure: failed program was" >&5
24555 rm -f conftest.o conftest.s
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24559 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24562 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24564 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24567 if test x
$with_abi = xilp32
; then
24568 as_fn_error
"Assembler does not support -mabi=ilp32.\
24569 Upgrade the Assembler." "$LINENO" 5
24571 if test x
"$with_multilib_list" = xdefault
; then
24572 TM_MULTILIB_CONFIG
=lp64
24574 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24575 for aarch64_multilib
in ${aarch64_multilibs}; do
24576 case ${aarch64_multilib} in
24578 as_fn_error
"Assembler does not support -mabi=ilp32.\
24579 Upgrade the Assembler." "$LINENO" 5
24587 # Check if we have binutils support for relocations types needed by -fpic
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24589 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24590 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24591 $as_echo_n "(cached) " >&6
24593 gcc_cv_as_aarch64_picreloc
=no
24594 if test x
$gcc_cv_as != x
; then
24597 ldr x0, [x2, #:gotpage_lo15:globalsym]
24599 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24606 gcc_cv_as_aarch64_picreloc
=yes
24608 echo "configure: failed program was" >&5
24611 rm -f conftest.o conftest.s
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24615 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24616 if test $gcc_cv_as_aarch64_picreloc = yes; then
24618 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24622 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24623 # Check whether --enable-fix-cortex-a53-835769 was given.
24624 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24625 enableval
=$enable_fix_cortex_a53_835769;
24628 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24633 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24634 Valid choices are 'yes' and 'no'." "$LINENO" 5
24641 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24642 # Check whether --enable-fix-cortex-a53-843419 was given.
24643 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24644 enableval
=$enable_fix_cortex_a53_843419;
24647 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24652 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24653 Valid choices are 'yes' and 'no'." "$LINENO" 5
24662 # All TARGET_ABI_OSF targets.
24663 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24665 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24666 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24667 $as_echo_n "(cached) " >&6
24669 gcc_cv_as_alpha_explicit_relocs
=no
24670 if test $in_tree_gas = yes; then
24671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24672 then gcc_cv_as_alpha_explicit_relocs
=yes
24674 elif test x
$gcc_cv_as != x
; then
24675 $as_echo ' .set nomacro
24677 extbl $3, $2, $3 !lituse_bytoff!1
24678 ldq $2, a($29) !literal!1
24679 ldq $4, b($29) !literal!2
24680 ldq_u $3, 0($2) !lituse_base!1
24681 ldq $27, f($29) !literal!5
24682 jsr $26, ($27), f !lituse_jsr!5
24683 ldah $29, 0($26) !gpdisp!3
24684 lda $0, c($29) !gprel
24685 ldah $1, d($29) !gprelhigh
24686 lda $1, d($1) !gprellow
24687 lda $29, 0($29) !gpdisp!3' > conftest.s
24688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24690 (eval $ac_try) 2>&5
24692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24693 test $ac_status = 0; }; }
24695 gcc_cv_as_alpha_explicit_relocs
=yes
24697 echo "configure: failed program was" >&5
24700 rm -f conftest.o conftest.s
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24704 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24705 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24707 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24712 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24713 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24714 $as_echo_n "(cached) " >&6
24716 gcc_cv_as_alpha_jsrdirect_relocs
=no
24717 if test $in_tree_gas = yes; then
24718 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24719 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24721 elif test x
$gcc_cv_as != x
; then
24722 $as_echo ' .set nomacro
24724 ldq $27, a($29) !literal!1
24725 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24726 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24733 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24735 echo "configure: failed program was" >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24742 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24743 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24745 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24753 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24754 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24757 gcc_cv_as_avr_mlink_relax
=no
24758 if test x
$gcc_cv_as != x
; then
24759 $as_echo '.text' > conftest.s
24760 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24762 (eval $ac_try) 2>&5
24764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24765 test $ac_status = 0; }; }
24767 gcc_cv_as_avr_mlink_relax
=yes
24769 echo "configure: failed program was" >&5
24772 rm -f conftest.o conftest.s
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24776 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24777 if test $gcc_cv_as_avr_mlink_relax = yes; then
24779 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24785 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24786 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24787 $as_echo_n "(cached) " >&6
24789 gcc_cv_as_avr_mrmw
=no
24790 if test x
$gcc_cv_as != x
; then
24791 $as_echo '.text' > conftest.s
24792 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24794 (eval $ac_try) 2>&5
24796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24797 test $ac_status = 0; }; }
24799 gcc_cv_as_avr_mrmw
=yes
24801 echo "configure: failed program was" >&5
24804 rm -f conftest.o conftest.s
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24808 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24809 if test $gcc_cv_as_avr_mrmw = yes; then
24811 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24819 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24820 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24821 $as_echo_n "(cached) " >&6
24823 gcc_cv_as_cris_no_mul_bug
=no
24824 if test $in_tree_gas = yes; then
24825 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24826 then gcc_cv_as_cris_no_mul_bug
=yes
24828 elif test x
$gcc_cv_as != x
; then
24829 $as_echo '.text' > conftest.s
24830 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24832 (eval $ac_try) 2>&5
24834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24835 test $ac_status = 0; }; }
24837 gcc_cv_as_cris_no_mul_bug
=yes
24839 echo "configure: failed program was" >&5
24842 rm -f conftest.o conftest.s
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24846 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24847 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24849 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24857 $as_echo_n "checking assembler for .register... " >&6; }
24858 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24859 $as_echo_n "(cached) " >&6
24861 gcc_cv_as_sparc_register_op
=no
24862 if test x
$gcc_cv_as != x
; then
24863 $as_echo '.register %g2, #scratch' > conftest.s
24864 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }
24871 gcc_cv_as_sparc_register_op
=yes
24873 echo "configure: failed program was" >&5
24876 rm -f conftest.o conftest.s
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24880 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24881 if test $gcc_cv_as_sparc_register_op = yes; then
24883 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24889 $as_echo_n "checking assembler for -relax option... " >&6; }
24890 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24891 $as_echo_n "(cached) " >&6
24893 gcc_cv_as_sparc_relax
=no
24894 if test x
$gcc_cv_as != x
; then
24895 $as_echo '.text' > conftest.s
24896 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24898 (eval $ac_try) 2>&5
24900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24901 test $ac_status = 0; }; }
24903 gcc_cv_as_sparc_relax
=yes
24905 echo "configure: failed program was" >&5
24908 rm -f conftest.o conftest.s
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24912 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24913 if test $gcc_cv_as_sparc_relax = yes; then
24915 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24921 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24922 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24923 $as_echo_n "(cached) " >&6
24925 gcc_cv_as_sparc_gotdata_op
=no
24926 if test x
$gcc_cv_as != x
; then
24932 sethi %gdop_hix22(foo), %g1
24933 xor %g1, %gdop_lox10(foo), %g1
24934 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24937 (eval $ac_try) 2>&5
24939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24940 test $ac_status = 0; }; }
24942 if test x
$gcc_cv_ld != x \
24943 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24944 if test x
$gcc_cv_objdump != x
; then
24945 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24946 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24947 gcc_cv_as_sparc_gotdata_op
=no
24949 gcc_cv_as_sparc_gotdata_op
=yes
24955 echo "configure: failed program was" >&5
24958 rm -f conftest.o conftest.s
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24962 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24963 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24965 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24971 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24972 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24973 $as_echo_n "(cached) " >&6
24975 gcc_cv_as_sparc_ua_pcrel
=no
24976 if test x
$gcc_cv_as != x
; then
24983 .uaword %r_disp32(foo)' > conftest.s
24984 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986 (eval $ac_try) 2>&5
24988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989 test $ac_status = 0; }; }
24991 if test x
$gcc_cv_ld != x \
24992 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24993 gcc_cv_as_sparc_ua_pcrel
=yes
24997 echo "configure: failed program was" >&5
25000 rm -f conftest.o conftest.s
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25004 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25005 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25007 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25011 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25012 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25015 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25016 if test x
$gcc_cv_as != x
; then
25020 .uaword %r_disp32(foo)
25021 .byte 0x32, 0x33, 0x34
25025 .skip 4' > conftest.s
25026 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25028 (eval $ac_try) 2>&5
25030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25031 test $ac_status = 0; }; }
25033 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25034 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25035 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25036 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25037 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25038 |
grep 'DISP32' > /dev
/null
2>&1; then
25041 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25046 echo "configure: failed program was" >&5
25049 rm -f conftest.o conftest.s
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25053 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25054 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25056 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25062 # unaligned pcrel relocs
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25065 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25066 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25067 $as_echo_n "(cached) " >&6
25069 gcc_cv_as_sparc_offsetable_lo10
=no
25070 if test x
$gcc_cv_as != x
; then
25072 or %g1, %lo(ab) + 12, %g1
25073 or %g1, %lo(ab + 12), %g1' > conftest.s
25074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25081 if test x
$gcc_cv_objdump != x \
25082 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25083 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25084 gcc_cv_as_sparc_offsetable_lo10
=yes
25087 echo "configure: failed program was" >&5
25090 rm -f conftest.o conftest.s
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25094 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25095 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25097 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25103 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25104 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25105 $as_echo_n "(cached) " >&6
25107 gcc_cv_as_sparc_fmaf
=no
25108 if test x
$gcc_cv_as != x
; then
25110 .register %g2, #scratch
25111 .register %g3, #scratch
25113 fmaddd %f0, %f2, %f4, %f6
25114 addxccc %g1, %g2, %g3
25115 fsrl32 %f2, %f4, %f8
25116 fnaddd %f10, %f12, %f14' > conftest.s
25117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; }
25124 gcc_cv_as_sparc_fmaf
=yes
25126 echo "configure: failed program was" >&5
25129 rm -f conftest.o conftest.s
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25133 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25134 if test $gcc_cv_as_sparc_fmaf = yes; then
25136 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25142 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25143 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25144 $as_echo_n "(cached) " >&6
25146 gcc_cv_as_sparc_sparc4
=no
25147 if test x
$gcc_cv_as != x
; then
25149 .register %g2, #scratch
25150 .register %g3, #scratch
25153 1: cwbneg %g2, %g3, 1f
25156 aes_kexpand0 %f4, %f6, %f8
25157 des_round %f38, %f40, %f42, %f44
25158 camellia_f %f54, %f56, %f58, %f60
25159 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25160 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162 (eval $ac_try) 2>&5
25164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165 test $ac_status = 0; }; }
25167 gcc_cv_as_sparc_sparc4
=yes
25169 echo "configure: failed program was" >&5
25172 rm -f conftest.o conftest.s
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25176 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25177 if test $gcc_cv_as_sparc_sparc4 = yes; then
25179 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25185 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25186 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25187 $as_echo_n "(cached) " >&6
25189 gcc_cv_as_sparc_sparc5
=no
25190 if test x
$gcc_cv_as != x
; then
25192 .register %g2, #scratch
25193 .register %g3, #scratch
25195 subxc %g1, %g2, %g3
25196 fpadd8 %f0, %f2, %f4' > conftest.s
25197 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; }
25204 gcc_cv_as_sparc_sparc5
=yes
25206 echo "configure: failed program was" >&5
25209 rm -f conftest.o conftest.s
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25213 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25214 if test $gcc_cv_as_sparc_sparc5 = yes; then
25216 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25222 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25223 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25224 $as_echo_n "(cached) " >&6
25226 gcc_cv_as_sparc_leon
=no
25227 if test x
$gcc_cv_as != x
; then
25229 .register %g2, #scratch
25230 .register %g3, #scratch
25234 casa [%g2] 0xb, %g3, %g1' > conftest.s
25235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25237 (eval $ac_try) 2>&5
25239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25240 test $ac_status = 0; }; }
25242 gcc_cv_as_sparc_leon
=yes
25244 echo "configure: failed program was" >&5
25247 rm -f conftest.o conftest.s
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25251 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25252 if test $gcc_cv_as_sparc_leon = yes; then
25254 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25260 i
[34567]86-*-* | x86_64-
*-*)
25263 # Full C++ conformance when using a shared libstdc++-v3 requires some
25264 # support from the Cygwin DLL, which in more recent versions exports
25265 # wrappers to aid in interposing and redirecting operators new, delete,
25266 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25267 # are configuring for a version of Cygwin that exports the wrappers.
25268 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25269 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25270 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25271 gcc_ac_cygwin_dll_wrappers
=yes
25273 gcc_ac_cygwin_dll_wrappers
=no
25277 # Can't check presence of libc functions during cross-compile, so
25278 # we just have to assume we're building for an up-to-date target.
25279 gcc_ac_cygwin_dll_wrappers
=yes
25282 cat >>confdefs.h
<<_ACEOF
25283 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25288 cygwin
* | pe | mingw32
*)
25289 # Recent binutils allows the three-operand form of ".comm" on PE. This
25290 # definition is used unconditionally to initialise the default state of
25291 # the target option variable that governs usage of the feature.
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25293 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25294 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25295 $as_echo_n "(cached) " >&6
25297 gcc_cv_as_comm_has_align
=no
25298 if test $in_tree_gas = yes; then
25299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25300 then gcc_cv_as_comm_has_align
=yes
25302 elif test x
$gcc_cv_as != x
; then
25303 $as_echo '.comm foo,1,32' > conftest.s
25304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25306 (eval $ac_try) 2>&5
25308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25309 test $ac_status = 0; }; }
25311 gcc_cv_as_comm_has_align
=yes
25313 echo "configure: failed program was" >&5
25316 rm -f conftest.o conftest.s
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25320 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25324 cat >>confdefs.h
<<_ACEOF
25325 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25328 # Used for DWARF 2 in PE
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25330 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25331 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25332 $as_echo_n "(cached) " >&6
25334 gcc_cv_as_ix86_pe_secrel32
=no
25335 if test $in_tree_gas = yes; then
25336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25337 then gcc_cv_as_ix86_pe_secrel32
=yes
25339 elif test x
$gcc_cv_as != x
; then
25343 .secrel32 foo' > conftest.s
25344 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25346 (eval $ac_try) 2>&5
25348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25349 test $ac_status = 0; }; }
25351 if test x
$gcc_cv_ld != x \
25352 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25353 gcc_cv_as_ix86_pe_secrel32
=yes
25357 echo "configure: failed program was" >&5
25360 rm -f conftest.o conftest.s
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25364 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25365 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25367 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25371 # Test if the assembler supports the extended form of the .section
25372 # directive that specifies section alignment. LTO support uses this,
25373 # but normally only after installation, so we warn but don't fail the
25374 # configure if LTO is enabled but the assembler does not support it.
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25376 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25377 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25378 $as_echo_n "(cached) " >&6
25380 gcc_cv_as_section_has_align
=no
25381 if test $in_tree_gas = yes; then
25382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25383 then gcc_cv_as_section_has_align
=yes
25385 elif test x
$gcc_cv_as != x
; then
25386 $as_echo '.section lto_test,"dr0"' > conftest.s
25387 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25389 (eval $ac_try) 2>&5
25391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25392 test $ac_status = 0; }; }
25394 gcc_cv_as_section_has_align
=yes
25396 echo "configure: failed program was" >&5
25399 rm -f conftest.o conftest.s
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25403 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25406 if test x
$gcc_cv_as_section_has_align != xyes
; then
25407 case ",$enable_languages," in
25409 { $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
25410 $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;}
25417 # Test if the assembler supports the section flag 'e' for specifying
25418 # an excluded section.
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25420 $as_echo_n "checking assembler for .section with e... " >&6; }
25421 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25424 gcc_cv_as_section_has_e
=no
25425 if test $in_tree_gas = yes; then
25426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25427 then gcc_cv_as_section_has_e
=yes
25429 elif test x
$gcc_cv_as != x
; then
25430 $as_echo '.section foo1,"e"
25431 .byte 0,0,0,0' > conftest.s
25432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25434 (eval $ac_try) 2>&5
25436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25437 test $ac_status = 0; }; }
25439 gcc_cv_as_section_has_e
=yes
25441 echo "configure: failed program was" >&5
25444 rm -f conftest.o conftest.s
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25448 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25452 cat >>confdefs.h
<<_ACEOF
25453 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25458 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25459 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25460 $as_echo_n "(cached) " >&6
25462 gcc_cv_as_ix86_filds
=no
25463 if test x
$gcc_cv_as != x
; then
25464 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25467 (eval $ac_try) 2>&5
25469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25470 test $ac_status = 0; }; }
25472 gcc_cv_as_ix86_filds
=yes
25474 echo "configure: failed program was" >&5
25477 rm -f conftest.o conftest.s
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25481 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25482 if test $gcc_cv_as_ix86_filds = yes; then
25484 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25490 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25491 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25494 gcc_cv_as_ix86_fildq
=no
25495 if test x
$gcc_cv_as != x
; then
25496 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25497 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25499 (eval $ac_try) 2>&5
25501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25502 test $ac_status = 0; }; }
25504 gcc_cv_as_ix86_fildq
=yes
25506 echo "configure: failed program was" >&5
25509 rm -f conftest.o conftest.s
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25513 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25514 if test $gcc_cv_as_ix86_fildq = yes; then
25516 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25522 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25523 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25524 $as_echo_n "(cached) " >&6
25526 gcc_cv_as_ix86_cmov_sun_syntax
=no
25527 if test x
$gcc_cv_as != x
; then
25528 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25531 (eval $ac_try) 2>&5
25533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25534 test $ac_status = 0; }; }
25536 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25538 echo "configure: failed program was" >&5
25541 rm -f conftest.o conftest.s
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25545 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25546 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25548 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25554 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25555 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25556 $as_echo_n "(cached) " >&6
25558 gcc_cv_as_ix86_ffreep
=no
25559 if test x
$gcc_cv_as != x
; then
25560 $as_echo 'ffreep %st(1)' > conftest.s
25561 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563 (eval $ac_try) 2>&5
25565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566 test $ac_status = 0; }; }
25568 gcc_cv_as_ix86_ffreep
=yes
25570 echo "configure: failed program was" >&5
25573 rm -f conftest.o conftest.s
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25577 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25578 if test $gcc_cv_as_ix86_ffreep = yes; then
25580 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25586 $as_echo_n "checking assembler for .quad directive... " >&6; }
25587 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25588 $as_echo_n "(cached) " >&6
25590 gcc_cv_as_ix86_quad
=no
25591 if test x
$gcc_cv_as != x
; then
25592 $as_echo '.quad 0' > conftest.s
25593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25595 (eval $ac_try) 2>&5
25597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25598 test $ac_status = 0; }; }
25600 gcc_cv_as_ix86_quad
=yes
25602 echo "configure: failed program was" >&5
25605 rm -f conftest.o conftest.s
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25609 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25610 if test $gcc_cv_as_ix86_quad = yes; then
25612 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25618 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25619 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25620 $as_echo_n "(cached) " >&6
25622 gcc_cv_as_ix86_sahf
=no
25623 if test x
$gcc_cv_as != x
; then
25626 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25628 (eval $ac_try) 2>&5
25630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25631 test $ac_status = 0; }; }
25633 gcc_cv_as_ix86_sahf
=yes
25635 echo "configure: failed program was" >&5
25638 rm -f conftest.o conftest.s
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25642 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25643 if test $gcc_cv_as_ix86_sahf = yes; then
25645 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25651 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25652 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25655 gcc_cv_as_ix86_interunit_movq
=no
25656 if test x
$gcc_cv_as != x
; then
25659 movq %rax, %xmm0' > conftest.s
25660 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25662 (eval $ac_try) 2>&5
25664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25665 test $ac_status = 0; }; }
25667 gcc_cv_as_ix86_interunit_movq
=yes
25669 echo "configure: failed program was" >&5
25672 rm -f conftest.o conftest.s
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25676 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25680 cat >>confdefs.h
<<_ACEOF
25681 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25686 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25687 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25690 gcc_cv_as_ix86_hle
=no
25691 if test x
$gcc_cv_as != x
; then
25692 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > 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 gcc_cv_as_ix86_hle
=yes
25702 echo "configure: failed program was" >&5
25705 rm -f conftest.o conftest.s
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25709 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25710 if test $gcc_cv_as_ix86_hle = yes; then
25712 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25718 $as_echo_n "checking assembler for swap suffix... " >&6; }
25719 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25720 $as_echo_n "(cached) " >&6
25722 gcc_cv_as_ix86_swap
=no
25723 if test x
$gcc_cv_as != x
; then
25724 $as_echo 'movl.s %esp, %ebp' > conftest.s
25725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25727 (eval $ac_try) 2>&5
25729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25730 test $ac_status = 0; }; }
25732 gcc_cv_as_ix86_swap
=yes
25734 echo "configure: failed program was" >&5
25737 rm -f conftest.o conftest.s
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25741 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25742 if test $gcc_cv_as_ix86_swap = yes; then
25744 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25750 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25751 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25752 $as_echo_n "(cached) " >&6
25754 gcc_cv_as_ix86_diff_sect_delta
=no
25755 if test x
$gcc_cv_as != x
; then
25756 $as_echo '.section .rodata
25762 .L2: nop' > conftest.s
25763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25765 (eval $ac_try) 2>&5
25767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25768 test $ac_status = 0; }; }
25770 gcc_cv_as_ix86_diff_sect_delta
=yes
25772 echo "configure: failed program was" >&5
25775 rm -f conftest.o conftest.s
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25779 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25780 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25782 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25788 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25789 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25790 $as_echo_n "(cached) " >&6
25792 gcc_cv_as_ix86_rep_lock_prefix
=no
25793 if test x
$gcc_cv_as != x
; then
25794 $as_echo 'rep movsl
25799 lock addl %edi, (%eax,%esi)
25800 lock orl $0, (%esp)' > conftest.s
25801 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25803 (eval $ac_try) 2>&5
25805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25806 test $ac_status = 0; }; }
25808 gcc_cv_as_ix86_rep_lock_prefix
=yes
25810 echo "configure: failed program was" >&5
25813 rm -f conftest.o conftest.s
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25817 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25818 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25820 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25826 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25827 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25828 $as_echo_n "(cached) " >&6
25830 gcc_cv_as_ix86_ud2
=no
25831 if test x
$gcc_cv_as != x
; then
25832 $as_echo 'ud2' > conftest.s
25833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25840 gcc_cv_as_ix86_ud2
=yes
25842 echo "configure: failed program was" >&5
25845 rm -f conftest.o conftest.s
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25849 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25850 if test $gcc_cv_as_ix86_ud2 = yes; then
25852 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25857 # Enforce 32-bit output with gas and gld.
25858 if test x
$gas = xyes
; then
25859 as_ix86_gas_32_opt
="--32"
25861 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25862 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25863 ld_ix86_gld_32_opt
="-melf_i386_sol2"
25865 ld_ix86_gld_32_opt
="-melf_i386"
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25870 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25871 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25874 gcc_cv_as_ix86_tlsgdplt
=no
25875 if test x
$gcc_cv_as != x
; then
25876 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25879 (eval $ac_try) 2>&5
25881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25882 test $ac_status = 0; }; }
25884 if test x
$gcc_cv_ld != x \
25885 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25886 gcc_cv_as_ix86_tlsgdplt
=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_ix86_tlsgdplt" >&5
25897 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25898 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25900 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25906 .section .tdata,"aw'$tls_section_flag'",@progbits
25908 .section .text,"ax",@progbits
25909 call tls_ld@tlsldmplt'
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25912 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25913 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25914 $as_echo_n "(cached) " >&6
25916 gcc_cv_as_ix86_tlsldmplt
=no
25917 if test x
$gcc_cv_as != x
; then
25918 $as_echo "$conftest_s" > conftest.s
25919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25921 (eval $ac_try) 2>&5
25923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25924 test $ac_status = 0; }; }
25926 if test x
$gcc_cv_ld != x \
25927 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25928 gcc_cv_as_ix86_tlsldmplt
=yes
25932 echo "configure: failed program was" >&5
25935 rm -f conftest.o conftest.s
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25939 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25943 cat >>confdefs.h
<<_ACEOF
25944 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25949 .section .text,"ax",@progbits
25951 .type _start, @function
25953 leal value@tlsldm(%ebx), %eax
25954 call ___tls_get_addr@plt
25956 .section .tdata,"aw'$tls_section_flag'",@progbits
25957 .type value, @object
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25960 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25961 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25962 $as_echo_n "(cached) " >&6
25964 gcc_cv_as_ix86_tlsldm
=no
25965 if test x
$gcc_cv_as != x
; then
25966 $as_echo "$conftest_s" > conftest.s
25967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25969 (eval $ac_try) 2>&5
25971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25972 test $ac_status = 0; }; }
25974 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25975 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25976 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25977 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25978 gcc_cv_as_ix86_tlsldm
=yes
25983 echo "configure: failed program was" >&5
25986 rm -f conftest.o conftest.s
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25990 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25994 cat >>confdefs.h
<<_ACEOF
25995 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26009 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26010 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26011 $as_echo_n "(cached) " >&6
26013 gcc_cv_as_ix86_got32x
=no
26014 if test x
$gcc_cv_as != x
; then
26015 $as_echo "$conftest_s" > conftest.s
26016 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26018 (eval $ac_try) 2>&5
26020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26021 test $ac_status = 0; }; }
26023 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26024 && test x
$gcc_cv_readelf != x \
26025 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26026 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26027 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26028 if $gcc_cv_objdump -dw conftest
2>&1 \
26029 |
grep 0xffffff > /dev
/null
2>&1; then
26030 gcc_cv_as_ix86_got32x
=no
26032 gcc_cv_as_ix86_got32x
=yes
26037 echo "configure: failed program was" >&5
26040 rm -f conftest.o conftest.s
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26044 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26048 cat >>confdefs.h
<<_ACEOF
26049 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26054 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26055 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26056 $as_echo_n "(cached) " >&6
26058 gcc_cv_as_ix86_gotoff_in_data
=no
26059 if test $in_tree_gas = yes; then
26060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26061 then gcc_cv_as_ix86_gotoff_in_data
=yes
26063 elif test x
$gcc_cv_as != x
; then
26068 .long .L0@GOTOFF' > conftest.s
26069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26076 gcc_cv_as_ix86_gotoff_in_data
=yes
26078 echo "configure: failed program was" >&5
26081 rm -f conftest.o conftest.s
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26085 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26089 cat >>confdefs.h
<<_ACEOF
26090 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26095 .section .text,"ax",@progbits
26097 .type _start, @function
26099 leal ld@tlsldm(%ecx), %eax
26100 call *___tls_get_addr@GOT(%ecx)
26101 leal gd@tlsgd(%ecx), %eax
26102 call *___tls_get_addr@GOT(%ecx)
26104 .section .tdata,"aw'$tls_section_flag'",@progbits
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26113 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26114 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26115 $as_echo_n "(cached) " >&6
26117 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26118 if test x
$gcc_cv_as != x
; then
26119 $as_echo "$conftest_s" > conftest.s
26120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26122 (eval $ac_try) 2>&5
26124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26125 test $ac_status = 0; }; }
26127 if test x
$gcc_cv_ld != x \
26128 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26129 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26133 echo "configure: failed program was" >&5
26136 rm -f conftest.o conftest.s
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26140 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26144 cat >>confdefs.h
<<_ACEOF
26145 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26152 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26153 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26154 $as_echo_n "(cached) " >&6
26156 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26157 if test $in_tree_gas = yes; then
26158 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26159 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26161 elif test x
$gcc_cv_as != x
; then
26163 addl r15 = @ltoffx(x#), gp
26165 ld8.mov r16 = [r15], x#' > conftest.s
26166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26168 (eval $ac_try) 2>&5
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; }
26173 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26175 echo "configure: failed program was" >&5
26178 rm -f conftest.o conftest.s
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26182 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26183 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26185 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26197 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26198 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26199 $as_echo_n "(cached) " >&6
26201 gcc_cv_as_machine_directive
=no
26202 if test x
$gcc_cv_as != x
; then
26203 $as_echo ' .machine ppc7400' > conftest.s
26204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26206 (eval $ac_try) 2>&5
26208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26209 test $ac_status = 0; }; }
26211 gcc_cv_as_machine_directive
=yes
26213 echo "configure: failed program was" >&5
26216 rm -f conftest.o conftest.s
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26220 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26223 if test x
$gcc_cv_as_machine_directive != xyes
; then
26224 echo "*** This target requires an assembler supporting \".machine\"" >&2
26225 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26226 test x
$build = x
$target && exit 1
26232 *-*-aix*) conftest_s
=' .machine "pwr5"
26235 *-*-darwin*) conftest_s
=' .text
26237 *) conftest_s
=' .machine power4
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26243 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26244 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26245 $as_echo_n "(cached) " >&6
26247 gcc_cv_as_powerpc_mfcrf
=no
26248 if test $in_tree_gas = yes; then
26249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26250 then gcc_cv_as_powerpc_mfcrf
=yes
26252 elif test x
$gcc_cv_as != x
; then
26253 $as_echo "$conftest_s" > conftest.s
26254 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26256 (eval $ac_try) 2>&5
26258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26259 test $ac_status = 0; }; }
26261 gcc_cv_as_powerpc_mfcrf
=yes
26263 echo "configure: failed program was" >&5
26266 rm -f conftest.o conftest.s
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26270 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26271 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26273 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26279 *-*-aix*) conftest_s
=' .machine "pwr5"
26282 *) conftest_s
=' .machine power5
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26288 $as_echo_n "checking assembler for popcntb support... " >&6; }
26289 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26290 $as_echo_n "(cached) " >&6
26292 gcc_cv_as_powerpc_popcntb
=no
26293 if test $in_tree_gas = yes; then
26294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26295 then gcc_cv_as_powerpc_popcntb
=yes
26297 elif test x
$gcc_cv_as != x
; then
26298 $as_echo "$conftest_s" > conftest.s
26299 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26301 (eval $ac_try) 2>&5
26303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26304 test $ac_status = 0; }; }
26306 gcc_cv_as_powerpc_popcntb
=yes
26308 echo "configure: failed program was" >&5
26311 rm -f conftest.o conftest.s
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26315 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26316 if test $gcc_cv_as_powerpc_popcntb = yes; then
26318 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26324 *-*-aix*) conftest_s
=' .machine "pwr5x"
26327 *) conftest_s
=' .machine power5
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26333 $as_echo_n "checking assembler for fp round support... " >&6; }
26334 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26335 $as_echo_n "(cached) " >&6
26337 gcc_cv_as_powerpc_fprnd
=no
26338 if test $in_tree_gas = yes; then
26339 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26340 then gcc_cv_as_powerpc_fprnd
=yes
26342 elif test x
$gcc_cv_as != x
; then
26343 $as_echo "$conftest_s" > conftest.s
26344 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26346 (eval $ac_try) 2>&5
26348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26349 test $ac_status = 0; }; }
26351 gcc_cv_as_powerpc_fprnd
=yes
26353 echo "configure: failed program was" >&5
26356 rm -f conftest.o conftest.s
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26360 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26361 if test $gcc_cv_as_powerpc_fprnd = yes; then
26363 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26369 *-*-aix*) conftest_s
=' .machine "pwr6"
26372 *) conftest_s
=' .machine power6
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26378 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26379 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26382 gcc_cv_as_powerpc_mfpgpr
=no
26383 if test $in_tree_gas = yes; then
26384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26385 then gcc_cv_as_powerpc_mfpgpr
=yes
26387 elif test x
$gcc_cv_as != x
; then
26388 $as_echo "$conftest_s" > conftest.s
26389 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26391 (eval $ac_try) 2>&5
26393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26394 test $ac_status = 0; }; }
26396 gcc_cv_as_powerpc_mfpgpr
=yes
26398 echo "configure: failed program was" >&5
26401 rm -f conftest.o conftest.s
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26405 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26406 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26408 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26414 *-*-aix*) conftest_s
=' .csect .text[PR]
26416 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26420 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26421 *) conftest_s
=' .text
26423 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26427 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26428 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26429 $as_echo_n "(cached) " >&6
26431 gcc_cv_as_powerpc_rel16
=no
26432 if test $in_tree_gas = yes; then
26433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26434 then gcc_cv_as_powerpc_rel16
=yes
26436 elif test x
$gcc_cv_as != x
; then
26437 $as_echo "$conftest_s" > conftest.s
26438 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26440 (eval $ac_try) 2>&5
26442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26443 test $ac_status = 0; }; }
26445 gcc_cv_as_powerpc_rel16
=yes
26447 echo "configure: failed program was" >&5
26450 rm -f conftest.o conftest.s
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26454 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26455 if test $gcc_cv_as_powerpc_rel16 = yes; then
26457 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26463 *-*-aix*) conftest_s
=' .machine "pwr6"
26466 *) conftest_s
=' .machine power6
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26472 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26473 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26474 $as_echo_n "(cached) " >&6
26476 gcc_cv_as_powerpc_cmpb
=no
26477 if test $in_tree_gas = yes; then
26478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26479 then gcc_cv_as_powerpc_cmpb
=yes
26481 elif test x
$gcc_cv_as != x
; then
26482 $as_echo "$conftest_s" > conftest.s
26483 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26485 (eval $ac_try) 2>&5
26487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26488 test $ac_status = 0; }; }
26490 gcc_cv_as_powerpc_cmpb
=yes
26492 echo "configure: failed program was" >&5
26495 rm -f conftest.o conftest.s
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26499 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26500 if test $gcc_cv_as_powerpc_cmpb = yes; then
26502 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26508 *-*-aix*) conftest_s
=' .machine "pwr6"
26511 *) conftest_s
=' .machine power6
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26517 $as_echo_n "checking assembler for decimal float support... " >&6; }
26518 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26519 $as_echo_n "(cached) " >&6
26521 gcc_cv_as_powerpc_dfp
=no
26522 if test $in_tree_gas = yes; then
26523 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26524 then gcc_cv_as_powerpc_dfp
=yes
26526 elif test x
$gcc_cv_as != x
; then
26527 $as_echo "$conftest_s" > conftest.s
26528 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26530 (eval $ac_try) 2>&5
26532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26533 test $ac_status = 0; }; }
26535 gcc_cv_as_powerpc_dfp
=yes
26537 echo "configure: failed program was" >&5
26540 rm -f conftest.o conftest.s
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26544 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26545 if test $gcc_cv_as_powerpc_dfp = yes; then
26547 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26553 *-*-aix*) conftest_s
=' .machine "pwr7"
26556 *) conftest_s
=' .machine power7
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26562 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26563 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26564 $as_echo_n "(cached) " >&6
26566 gcc_cv_as_powerpc_vsx
=no
26567 if test $in_tree_gas = yes; then
26568 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26569 then gcc_cv_as_powerpc_vsx
=yes
26571 elif test x
$gcc_cv_as != x
; then
26572 $as_echo "$conftest_s" > conftest.s
26573 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26575 (eval $ac_try) 2>&5
26577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578 test $ac_status = 0; }; }
26580 gcc_cv_as_powerpc_vsx
=yes
26582 echo "configure: failed program was" >&5
26585 rm -f conftest.o conftest.s
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26589 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26590 if test $gcc_cv_as_powerpc_vsx = yes; then
26592 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26598 *-*-aix*) conftest_s
=' .machine "pwr7"
26601 *) conftest_s
=' .machine power7
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26607 $as_echo_n "checking assembler for popcntd support... " >&6; }
26608 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26609 $as_echo_n "(cached) " >&6
26611 gcc_cv_as_powerpc_popcntd
=no
26612 if test $in_tree_gas = yes; then
26613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26614 then gcc_cv_as_powerpc_popcntd
=yes
26616 elif test x
$gcc_cv_as != x
; then
26617 $as_echo "$conftest_s" > conftest.s
26618 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26620 (eval $ac_try) 2>&5
26622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26623 test $ac_status = 0; }; }
26625 gcc_cv_as_powerpc_popcntd
=yes
26627 echo "configure: failed program was" >&5
26630 rm -f conftest.o conftest.s
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26634 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26635 if test $gcc_cv_as_powerpc_popcntd = yes; then
26637 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26643 *-*-aix*) conftest_s
=' .machine "pwr8"
26644 .csect .text[PR]';;
26645 *) conftest_s
=' .machine power8
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26650 $as_echo_n "checking assembler for power8 support... " >&6; }
26651 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26652 $as_echo_n "(cached) " >&6
26654 gcc_cv_as_powerpc_power8
=no
26655 if test $in_tree_gas = yes; then
26656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26657 then gcc_cv_as_powerpc_power8
=yes
26659 elif test x
$gcc_cv_as != x
; then
26660 $as_echo "$conftest_s" > conftest.s
26661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26663 (eval $ac_try) 2>&5
26665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26666 test $ac_status = 0; }; }
26668 gcc_cv_as_powerpc_power8
=yes
26670 echo "configure: failed program was" >&5
26673 rm -f conftest.o conftest.s
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26677 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26678 if test $gcc_cv_as_powerpc_power8 = yes; then
26680 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26686 *-*-aix*) conftest_s
=' .machine "pwr9"
26687 .csect .text[PR]';;
26688 *) conftest_s
=' .machine power9
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26693 $as_echo_n "checking assembler for power9 support... " >&6; }
26694 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26695 $as_echo_n "(cached) " >&6
26697 gcc_cv_as_powerpc_power9
=no
26698 if test $in_tree_gas = yes; then
26699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26700 then gcc_cv_as_powerpc_power9
=yes
26702 elif test x
$gcc_cv_as != x
; then
26703 $as_echo "$conftest_s" > conftest.s
26704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26706 (eval $ac_try) 2>&5
26708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26709 test $ac_status = 0; }; }
26711 gcc_cv_as_powerpc_power9
=yes
26713 echo "configure: failed program was" >&5
26716 rm -f conftest.o conftest.s
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26720 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26721 if test $gcc_cv_as_powerpc_power9 = yes; then
26723 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26729 *-*-aix*) conftest_s
=' .csect .text[PR]
26731 *) conftest_s
=' .text
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26736 $as_echo_n "checking assembler for lwsync support... " >&6; }
26737 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26738 $as_echo_n "(cached) " >&6
26740 gcc_cv_as_powerpc_lwsync
=no
26741 if test $in_tree_gas = yes; then
26742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26743 then gcc_cv_as_powerpc_lwsync
=yes
26745 elif test x
$gcc_cv_as != x
; then
26746 $as_echo "$conftest_s" > conftest.s
26747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26749 (eval $ac_try) 2>&5
26751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26752 test $ac_status = 0; }; }
26754 gcc_cv_as_powerpc_lwsync
=yes
26756 echo "configure: failed program was" >&5
26759 rm -f conftest.o conftest.s
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26763 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26764 if test $gcc_cv_as_powerpc_lwsync = yes; then
26766 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26772 *-*-aix*) conftest_s
=' .machine "476"
26775 *) conftest_s
=' .machine "476"
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26781 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26782 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26783 $as_echo_n "(cached) " >&6
26785 gcc_cv_as_powerpc_dci
=no
26786 if test $in_tree_gas = yes; then
26787 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26788 then gcc_cv_as_powerpc_dci
=yes
26790 elif test x
$gcc_cv_as != x
; then
26791 $as_echo "$conftest_s" > conftest.s
26792 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26794 (eval $ac_try) 2>&5
26796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26797 test $ac_status = 0; }; }
26799 gcc_cv_as_powerpc_dci
=yes
26801 echo "configure: failed program was" >&5
26804 rm -f conftest.o conftest.s
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26808 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26809 if test $gcc_cv_as_powerpc_dci = yes; then
26811 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26817 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26818 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26819 $as_echo_n "(cached) " >&6
26821 gcc_cv_as_powerpc_gnu_attribute
=no
26822 if test $in_tree_gas = yes; then
26823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26824 then gcc_cv_as_powerpc_gnu_attribute
=yes
26826 elif test x
$gcc_cv_as != x
; then
26827 $as_echo '.gnu_attribute 4,1' > conftest.s
26828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26830 (eval $ac_try) 2>&5
26832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26833 test $ac_status = 0; }; }
26835 gcc_cv_as_powerpc_gnu_attribute
=yes
26837 echo "configure: failed program was" >&5
26840 rm -f conftest.o conftest.s
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26844 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26845 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26847 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26853 $as_echo_n "checking assembler for tls marker support... " >&6; }
26854 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26855 $as_echo_n "(cached) " >&6
26857 gcc_cv_as_powerpc_tls_markers
=no
26858 if test $in_tree_gas = yes; then
26859 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26860 then gcc_cv_as_powerpc_tls_markers
=yes
26862 elif test x
$gcc_cv_as != x
; then
26863 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26864 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26866 (eval $ac_try) 2>&5
26868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26869 test $ac_status = 0; }; }
26871 gcc_cv_as_powerpc_tls_markers
=yes
26873 echo "configure: failed program was" >&5
26876 rm -f conftest.o conftest.s
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26880 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26881 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26883 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26889 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26890 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26891 $as_echo_n "(cached) " >&6
26893 gcc_cv_as_powerpc_entry_markers
=no
26894 if test $in_tree_gas = yes; then
26895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26896 then gcc_cv_as_powerpc_entry_markers
=yes
26898 elif test x
$gcc_cv_as != x
; then
26899 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26902 (eval $ac_try) 2>&5
26904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26905 test $ac_status = 0; }; }
26907 gcc_cv_as_powerpc_entry_markers
=yes
26909 echo "configure: failed program was" >&5
26912 rm -f conftest.o conftest.s
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26916 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26917 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26919 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26927 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26928 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26929 $as_echo_n "(cached) " >&6
26931 gcc_cv_as_aix_ref
=no
26932 if test $in_tree_gas = yes; then
26933 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26934 then gcc_cv_as_aix_ref
=yes
26936 elif test x
$gcc_cv_as != x
; then
26937 $as_echo ' .csect stuff[rw]
26943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26945 (eval $ac_try) 2>&5
26947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26948 test $ac_status = 0; }; }
26950 gcc_cv_as_aix_ref
=yes
26952 echo "configure: failed program was" >&5
26955 rm -f conftest.o conftest.s
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26959 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26960 if test $gcc_cv_as_aix_ref = yes; then
26962 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26968 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26969 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26970 $as_echo_n "(cached) " >&6
26972 gcc_cv_as_aix_dwloc
=no
26973 if test $in_tree_gas = yes; then
26974 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26975 then gcc_cv_as_aix_dwloc
=yes
26977 elif test x
$gcc_cv_as != x
; then
26978 $as_echo ' .dwsect 0xA0000
26982 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26984 (eval $ac_try) 2>&5
26986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26987 test $ac_status = 0; }; }
26989 gcc_cv_as_aix_dwloc
=yes
26991 echo "configure: failed program was" >&5
26994 rm -f conftest.o conftest.s
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26998 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26999 if test $gcc_cv_as_aix_dwloc = yes; then
27001 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27011 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27012 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27013 $as_echo_n "(cached) " >&6
27015 gcc_cv_as_mips_explicit_relocs
=no
27016 if test $in_tree_gas = yes; then
27017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27018 then gcc_cv_as_mips_explicit_relocs
=yes
27020 elif test x
$gcc_cv_as != x
; then
27021 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27024 (eval $ac_try) 2>&5
27026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27027 test $ac_status = 0; }; }
27029 gcc_cv_as_mips_explicit_relocs
=yes
27031 echo "configure: failed program was" >&5
27034 rm -f conftest.o conftest.s
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27038 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27039 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27040 if test x
$target_cpu_default = x
27041 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27042 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27048 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27049 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27050 $as_echo_n "(cached) " >&6
27052 gcc_cv_as_mips_no_shared
=no
27053 if test $in_tree_gas = yes; then
27054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27055 then gcc_cv_as_mips_no_shared
=yes
27057 elif test x
$gcc_cv_as != x
; then
27058 $as_echo 'nop' > conftest.s
27059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27066 gcc_cv_as_mips_no_shared
=yes
27068 echo "configure: failed program was" >&5
27071 rm -f conftest.o conftest.s
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27075 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27076 if test $gcc_cv_as_mips_no_shared = yes; then
27078 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27084 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27085 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27086 $as_echo_n "(cached) " >&6
27088 gcc_cv_as_mips_gnu_attribute
=no
27089 if test $in_tree_gas = yes; then
27090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27091 then gcc_cv_as_mips_gnu_attribute
=yes
27093 elif test x
$gcc_cv_as != x
; then
27094 $as_echo '.gnu_attribute 4,1' > conftest.s
27095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27097 (eval $ac_try) 2>&5
27099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27100 test $ac_status = 0; }; }
27102 gcc_cv_as_mips_gnu_attribute
=yes
27104 echo "configure: failed program was" >&5
27107 rm -f conftest.o conftest.s
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27111 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27112 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27114 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27120 $as_echo_n "checking assembler for .module support... " >&6; }
27121 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27122 $as_echo_n "(cached) " >&6
27124 gcc_cv_as_mips_dot_module
=no
27125 if test x
$gcc_cv_as != x
; then
27126 $as_echo '.module mips2
27127 .module fp=xx' > conftest.s
27128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27130 (eval $ac_try) 2>&5
27132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27133 test $ac_status = 0; }; }
27135 gcc_cv_as_mips_dot_module
=yes
27137 echo "configure: failed program was" >&5
27140 rm -f conftest.o conftest.s
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27144 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27145 if test $gcc_cv_as_mips_dot_module = yes; then
27147 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27151 if test x
$gcc_cv_as_mips_dot_module = xno \
27152 && test x
$with_fp_32 != x
; then
27153 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27157 $as_echo_n "checking assembler for .micromips support... " >&6; }
27158 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27159 $as_echo_n "(cached) " >&6
27161 gcc_cv_as_micromips_support
=no
27162 if test x
$gcc_cv_as != x
; then
27163 $as_echo '.set micromips' > conftest.s
27164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27166 (eval $ac_try) 2>&5
27168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27169 test $ac_status = 0; }; }
27171 gcc_cv_as_micromips_support
=yes
27173 echo "configure: failed program was" >&5
27176 rm -f conftest.o conftest.s
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27180 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27181 if test $gcc_cv_as_micromips_support = yes; then
27183 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27189 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27190 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27191 $as_echo_n "(cached) " >&6
27193 gcc_cv_as_mips_dtprelword
=no
27194 if test $in_tree_gas = yes; then
27195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27196 then gcc_cv_as_mips_dtprelword
=yes
27198 elif test x
$gcc_cv_as != x
; then
27199 $as_echo '.section .tdata,"awT",@progbits
27203 .dtprelword x+0x8000' > conftest.s
27204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27206 (eval $ac_try) 2>&5
27208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27209 test $ac_status = 0; }; }
27211 gcc_cv_as_mips_dtprelword
=yes
27213 echo "configure: failed program was" >&5
27216 rm -f conftest.o conftest.s
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27220 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27221 if test $gcc_cv_as_mips_dtprelword = yes; then
27223 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27229 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27230 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27231 $as_echo_n "(cached) " >&6
27233 gcc_cv_as_mips_dspr1_mult
=no
27234 if test x
$gcc_cv_as != x
; then
27235 $as_echo ' .set mips32r2
27243 multu $ac3,$4,$5' > conftest.s
27244 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27246 (eval $ac_try) 2>&5
27248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27249 test $ac_status = 0; }; }
27251 gcc_cv_as_mips_dspr1_mult
=yes
27253 echo "configure: failed program was" >&5
27256 rm -f conftest.o conftest.s
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27260 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27261 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27263 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27269 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27270 gcc_cv_as_ld_jalr_reloc
=no
27271 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27272 if test $in_tree_ld = yes ; then
27273 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 \
27274 && test $in_tree_ld_is_elf = yes; then
27275 gcc_cv_as_ld_jalr_reloc
=yes
27277 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27278 echo ' .ent x' > conftest.s
27279 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27280 echo ' lw $25,%call16(y)($28)' >> conftest.s
27281 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27282 echo '1: jalr $25' >> conftest.s
27283 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27284 echo '1: jalr $25' >> conftest.s
27285 echo ' .end x' >> conftest.s
27286 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27287 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27288 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27289 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27290 gcc_cv_as_ld_jalr_reloc
=yes
27296 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27297 if test x
$target_cpu_default = x
; then
27298 target_cpu_default
=MASK_RELAX_PIC_CALLS
27300 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27304 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27307 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27308 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27309 $as_echo_n "(cached) " >&6
27311 gcc_cv_ld_mips_personality_relaxation
=no
27312 if test $in_tree_ld = yes ; then
27313 if test "$gcc_cv_gld_major_version" -eq 2 \
27314 -a "$gcc_cv_gld_minor_version" -ge 21 \
27315 -o "$gcc_cv_gld_major_version" -gt 2; then
27316 gcc_cv_ld_mips_personality_relaxation
=yes
27318 elif test x
$gcc_cv_as != x \
27319 -a x
$gcc_cv_ld != x \
27320 -a x
$gcc_cv_readelf != x
; then
27321 cat > conftest.s
<<EOF
27323 .cfi_personality 0x80,indirect_ptr
27330 .section .data,"aw",@progbits
27334 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27335 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27336 if $gcc_cv_readelf -d conftest
2>&1 \
27337 |
grep TEXTREL
> /dev
/null
2>&1; then
27339 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27340 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27343 gcc_cv_ld_mips_personality_relaxation
=yes
27347 rm -f conftest.s conftest.o conftest
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27350 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27351 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27353 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27358 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27359 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27360 $as_echo_n "(cached) " >&6
27362 gcc_cv_as_mips_nan
=no
27363 if test x
$gcc_cv_as != x
; then
27364 $as_echo '' > conftest.s
27365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27367 (eval $ac_try) 2>&5
27369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27370 test $ac_status = 0; }; }
27372 gcc_cv_as_mips_nan
=yes
27374 echo "configure: failed program was" >&5
27377 rm -f conftest.o conftest.s
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27381 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27382 if test $gcc_cv_as_mips_nan = yes; then
27384 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27388 if test x
$gcc_cv_as_mips_nan = xno \
27389 && test x
$with_nan != x
; then
27390 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27395 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27396 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27397 $as_echo_n "(cached) " >&6
27399 gcc_cv_as_s390_gnu_attribute
=no
27400 if test $in_tree_gas = yes; then
27401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27402 then gcc_cv_as_s390_gnu_attribute
=yes
27404 elif test x
$gcc_cv_as != x
; then
27405 $as_echo '.gnu_attribute 8,1' > conftest.s
27406 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27408 (eval $ac_try) 2>&5
27410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27411 test $ac_status = 0; }; }
27413 gcc_cv_as_s390_gnu_attribute
=yes
27415 echo "configure: failed program was" >&5
27418 rm -f conftest.o conftest.s
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27422 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27423 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27425 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27430 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27431 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27432 $as_echo_n "(cached) " >&6
27434 gcc_cv_as_s390_machine_machinemode
=no
27435 if test $in_tree_gas = yes; then
27436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27437 then gcc_cv_as_s390_machine_machinemode
=yes
27439 elif test x
$gcc_cv_as != x
; then
27440 $as_echo ' .machinemode push
27443 .machine pop' > conftest.s
27444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27446 (eval $ac_try) 2>&5
27448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27449 test $ac_status = 0; }; }
27451 gcc_cv_as_s390_machine_machinemode
=yes
27453 echo "configure: failed program was" >&5
27456 rm -f conftest.o conftest.s
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27460 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27461 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27463 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27468 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27469 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27470 $as_echo_n "(cached) " >&6
27472 gcc_cv_as_s390_architecture_modifiers
=no
27473 if test $in_tree_gas = yes; then
27474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27475 then gcc_cv_as_s390_architecture_modifiers
=yes
27477 elif test x
$gcc_cv_as != x
; then
27478 $as_echo ' .machine z13+vx ' > conftest.s
27479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27481 (eval $ac_try) 2>&5
27483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27484 test $ac_status = 0; }; }
27486 gcc_cv_as_s390_architecture_modifiers
=yes
27488 echo "configure: failed program was" >&5
27491 rm -f conftest.o conftest.s
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27495 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27496 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27498 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27505 # Mips and HP-UX need the GNU assembler.
27506 # Linux on IA64 might be able to use the Intel assembler.
27509 mips
*-*-* |
*-*-hpux* )
27510 if test x
$gas_flag = xyes \
27511 ||
test x
"$host" != x
"$build" \
27512 ||
test ! -x "$gcc_cv_as" \
27513 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27516 echo "*** This configuration requires the GNU assembler" >&2
27522 # ??? Not all targets support dwarf2 debug_line, even within a version
27523 # of gas. Moreover, we need to emit a valid instruction to trigger any
27524 # info to the output file. So, as supported targets are added to gas 2.11,
27525 # add some instruction here to (also) show we expect this might work.
27526 # ??? Once 2.11 is released, probably need to add first known working
27527 # version to the per-target configury.
27528 case "$cpu_type" in
27529 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27530 | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu | tilegx \
27531 | tilepro | visium | xstormy16 | xtensa
)
27541 if test x
"$insn" != x
; then
27543 .file 1 \"conftest.s\"
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27547 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27548 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27549 $as_echo_n "(cached) " >&6
27551 gcc_cv_as_dwarf2_debug_line
=no
27552 if test $in_tree_gas = yes; then
27553 if test $in_tree_gas_is_elf = yes \
27554 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27555 then gcc_cv_as_dwarf2_debug_line
=yes
27557 elif test x
$gcc_cv_as != x
; then
27558 $as_echo "$conftest_s" > conftest.s
27559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27561 (eval $ac_try) 2>&5
27563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27564 test $ac_status = 0; }; }
27566 if test x
$gcc_cv_objdump != x \
27567 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27568 |
grep debug_line
> /dev
/null
2>&1; then
27569 gcc_cv_as_dwarf2_debug_line
=yes
27572 echo "configure: failed program was" >&5
27575 rm -f conftest.o conftest.s
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27579 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27583 # The .debug_line file table must be in the exact order that
27584 # we specified the files, since these indices are also used
27585 # by DW_AT_decl_file. Approximate this test by testing if
27586 # the assembler bitches if the same index is assigned twice.
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27588 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27589 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27590 $as_echo_n "(cached) " >&6
27592 gcc_cv_as_dwarf2_file_buggy
=no
27593 if test x
$gcc_cv_as != x
; then
27594 $as_echo ' .file 1 "foo.s"
27595 .file 1 "bar.s"' > conftest.s
27596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27598 (eval $ac_try) 2>&5
27600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27601 test $ac_status = 0; }; }
27603 gcc_cv_as_dwarf2_file_buggy
=yes
27605 echo "configure: failed program was" >&5
27608 rm -f conftest.o conftest.s
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27612 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27616 if test $gcc_cv_as_dwarf2_debug_line = yes \
27617 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27619 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27624 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27625 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27626 $as_echo_n "(cached) " >&6
27628 gcc_cv_as_gdwarf2_flag
=no
27629 if test $in_tree_gas = yes; then
27630 if test $in_tree_gas_is_elf = yes \
27631 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27632 then gcc_cv_as_gdwarf2_flag
=yes
27634 elif test x
$gcc_cv_as != x
; then
27635 $as_echo "$insn" > conftest.s
27636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27638 (eval $ac_try) 2>&5
27640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27641 test $ac_status = 0; }; }
27643 gcc_cv_as_gdwarf2_flag
=yes
27645 echo "configure: failed program was" >&5
27648 rm -f conftest.o conftest.s
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27652 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27653 if test $gcc_cv_as_gdwarf2_flag = yes; then
27655 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27661 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27662 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27663 $as_echo_n "(cached) " >&6
27665 gcc_cv_as_gstabs_flag
=no
27666 if test $in_tree_gas = yes; then
27667 if test $in_tree_gas_is_elf = yes \
27668 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27669 then gcc_cv_as_gstabs_flag
=yes
27671 elif test x
$gcc_cv_as != x
; then
27672 $as_echo "$insn" > conftest.s
27673 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27675 (eval $ac_try) 2>&5
27677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27678 test $ac_status = 0; }; }
27680 gcc_cv_as_gstabs_flag
=yes
27682 echo "configure: failed program was" >&5
27685 rm -f conftest.o conftest.s
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27689 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27690 if test $gcc_cv_as_gstabs_flag = yes; then
27692 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27698 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27699 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27700 $as_echo_n "(cached) " >&6
27702 gcc_cv_as_debug_prefix_map_flag
=no
27703 if test $in_tree_gas = yes; then
27704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27705 then gcc_cv_as_debug_prefix_map_flag
=yes
27707 elif test x
$gcc_cv_as != x
; then
27708 $as_echo "$insn" > conftest.s
27709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27711 (eval $ac_try) 2>&5
27713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27714 test $ac_status = 0; }; }
27716 gcc_cv_as_debug_prefix_map_flag
=yes
27718 echo "configure: failed program was" >&5
27721 rm -f conftest.o conftest.s
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27725 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27726 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27728 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27735 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27736 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27737 $as_echo_n "(cached) " >&6
27739 gcc_cv_as_compress_debug
=no
27740 if test x
$gcc_cv_as != x
; then
27741 $as_echo '' > conftest.s
27742 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27744 (eval $ac_try) 2>&5
27746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27747 test $ac_status = 0; }; }
27749 # gas compiled without zlib cannot compress debug sections and warns
27750 # about it, but still exits successfully. So check for this, too.
27751 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27753 gcc_cv_as_compress_debug
=0
27754 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27755 # defaulting to the ELF gABI format.
27756 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27758 gcc_cv_as_compress_debug
=2
27759 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27760 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27761 # Before binutils 2.26, gas only supported --compress-debug-options and
27762 # emitted the traditional GNU format.
27763 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27765 gcc_cv_as_compress_debug
=1
27766 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27767 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27769 gcc_cv_as_compress_debug
=0
27772 echo "configure: failed program was" >&5
27775 rm -f conftest.o conftest.s
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27779 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27783 cat >>confdefs.h
<<_ACEOF
27784 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27788 cat >>confdefs.h
<<_ACEOF
27789 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27793 cat >>confdefs.h
<<_ACEOF
27794 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27799 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27800 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27801 $as_echo_n "(cached) " >&6
27803 gcc_cv_as_lcomm_with_alignment
=no
27804 if test x
$gcc_cv_as != x
; then
27805 $as_echo '.lcomm bar,4,16' > conftest.s
27806 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27808 (eval $ac_try) 2>&5
27810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27811 test $ac_status = 0; }; }
27813 gcc_cv_as_lcomm_with_alignment
=yes
27815 echo "configure: failed program was" >&5
27818 rm -f conftest.o conftest.s
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27822 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27823 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27825 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27830 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27831 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27832 && test "$prefix" != "NONE"; then
27834 cat >>confdefs.h
<<_ACEOF
27835 #define PREFIX_INCLUDE_DIR "$prefix/include"
27840 # Determine the version of glibc, if any, used on the target.
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27842 $as_echo_n "checking for target glibc version... " >&6; }
27844 # Check whether --with-glibc-version was given.
27845 if test "${with_glibc_version+set}" = set; then :
27846 withval
=$with_glibc_version;
27847 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27848 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27849 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27851 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27855 glibc_version_major
=0
27856 glibc_version_minor
=0
27857 if test -f $target_header_dir/features.h \
27858 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27859 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27860 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27861 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27866 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27868 cat >>confdefs.h
<<_ACEOF
27869 #define TARGET_GLIBC_MAJOR $glibc_version_major
27873 cat >>confdefs.h
<<_ACEOF
27874 #define TARGET_GLIBC_MINOR $glibc_version_minor
27878 # Check whether --enable-gnu-unique-object was given.
27879 if test "${enable_gnu_unique_object+set}" = set; then :
27880 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27882 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27883 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27887 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27888 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27889 $as_echo_n "(cached) " >&6
27891 gcc_cv_as_gnu_unique_object
=no
27892 if test $in_tree_gas = yes; then
27893 if test $in_tree_gas_is_elf = yes \
27894 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27895 then gcc_cv_as_gnu_unique_object
=yes
27897 elif test x
$gcc_cv_as != x
; then
27898 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27901 (eval $ac_try) 2>&5
27903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27904 test $ac_status = 0; }; }
27906 gcc_cv_as_gnu_unique_object
=yes
27908 echo "configure: failed program was" >&5
27911 rm -f conftest.o conftest.s
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27915 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27916 if test $gcc_cv_as_gnu_unique_object = yes; then
27917 # We need to unquote above to to use the definition from config.gcc.
27918 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27920 if test $glibc_version_major -gt 2 \
27921 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27922 enable_gnu_unique_object
=yes
27929 if test x
$enable_gnu_unique_object = xyes
; then
27931 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27936 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27937 if test "${gcc_cv_as_line_zero+set}" = set; then :
27938 $as_echo_n "(cached) " >&6
27940 gcc_cv_as_line_zero
=no
27941 if test $in_tree_gas = yes; then
27942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27943 then gcc_cv_as_line_zero
=yes
27945 elif test "x$gcc_cv_as" != x
; then
27946 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27947 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27949 (eval $ac_try) 2>&5
27951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27952 test $ac_status = 0; }; } &&
27953 test "x`cat conftest.out`" = x
27955 gcc_cv_as_line_zero
=yes
27957 echo "configure: failed program was" >&5
27959 echo "configure: error output was" >&5
27960 cat conftest.out
>&5
27962 rm -f conftest.o conftest.s conftest.out
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27966 $as_echo "$gcc_cv_as_line_zero" >&6; }
27967 if test "x$gcc_cv_as_line_zero" = xyes
; then
27969 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27974 $as_echo_n "checking support for thin archives... " >&6; }
27975 thin_archive_support
=no
27976 echo 'int main (void) { return 0; }' > conftest.c
27977 if ($AR --version |
sed 1q |
grep "GNU ar" \
27978 && $CC $CFLAGS -c conftest.c \
27979 && $AR rcT conftest.a conftest.o \
27980 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
27981 thin_archive_support
=yes
27983 rm -f conftest.c conftest.o conftest.a conftest
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27985 $as_echo "$thin_archive_support" >&6; }
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27989 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27990 gcc_cv_ld_eh_frame_hdr
=no
27991 if test $in_tree_ld = yes ; then
27992 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 \
27993 && test $in_tree_ld_is_elf = yes; then
27994 gcc_cv_ld_eh_frame_hdr
=yes
27996 elif test x
$gcc_cv_ld != x
; then
27997 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27998 # Check if linker supports --eh-frame-hdr option
27999 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
28000 gcc_cv_ld_eh_frame_hdr
=yes
28005 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28006 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28007 gcc_cv_ld_eh_frame_hdr
=yes
28014 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28016 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28020 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28023 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28024 gcc_cv_ld_eh_frame_ciev3
=no
28025 if test $in_tree_ld = yes ; then
28026 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 \
28027 && test $in_tree_ld_is_elf = yes; then
28028 gcc_cv_ld_eh_frame_ciev3
=yes
28030 elif test x
$gcc_cv_ld != x
; then
28031 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28032 gcc_cv_ld_eh_frame_ciev3
=yes
28033 if test 0"$ld_date" -lt 20040513; then
28034 if test -n "$ld_date"; then
28035 # If there was date string, but was earlier than 2004-05-13, fail
28036 gcc_cv_ld_eh_frame_ciev3
=no
28037 elif test "$ld_vers_major" -lt 2; then
28038 gcc_cv_ld_eh_frame_ciev3
=no
28039 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28040 gcc_cv_ld_eh_frame_ciev3
=no
28046 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28047 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28048 gcc_cv_ld_eh_frame_ciev3
=yes
28055 cat >>confdefs.h
<<_ACEOF
28056 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28060 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28063 $as_echo_n "checking linker position independent executable support... " >&6; }
28065 if test $in_tree_ld = yes ; then
28067 # Full PIE support on Solaris was only introduced in gld 2.26.
28068 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28069 *) gcc_gld_pie_min_version
=15 ;;
28071 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 \
28072 && test $in_tree_ld_is_elf = yes; then
28075 elif test x
$gcc_cv_ld != x
; then
28076 # Check if linker supports -pie option
28077 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
28081 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28082 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28089 *-*-solaris2.1
[1-9]*)
28090 # Solaris 11.x and Solaris 12 added PIE support.
28091 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28098 if test x
"$gcc_cv_ld_pie" = xyes
; then
28100 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28104 $as_echo "$gcc_cv_ld_pie" >&6; }
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28107 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28108 gcc_cv_ld_pie_copyreloc
=no
28109 if test $gcc_cv_ld_pie = yes ; then
28110 if test $in_tree_ld = yes ; then
28111 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
28112 gcc_cv_ld_pie_copyreloc
=yes
28114 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28115 # Check if linker supports -pie option with copy reloc
28117 i?
86-*-linux* | x86_64-
*-linux*)
28118 cat > conftest1.s
<<EOF
28121 .type a_glob, @object
28126 cat > conftest2.s
<<EOF
28129 .type main, @function
28131 movl %eax, a_glob(%rip)
28134 .section .data.rel,"aw",@progbits
28139 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28140 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28141 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28142 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28143 gcc_cv_ld_pie_copyreloc
=yes
28145 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28151 cat >>confdefs.h
<<_ACEOF
28152 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28156 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28159 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28160 gcc_cv_ld_eh_gc_sections
=no
28161 if test $in_tree_ld = yes ; then
28162 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 \
28163 && test $in_tree_ld_is_elf = yes; then
28164 gcc_cv_ld_eh_gc_sections
=yes
28166 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28167 cat > conftest.s
<<EOF
28170 .type _start, @function
28173 .size _start, .-_start
28174 .section .text.foo,"ax",@progbits
28175 .type foo, @function
28179 .section .gcc_except_table.foo,"a",@progbits
28182 .section .eh_frame,"a",@progbits
28185 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28186 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28187 |
grep "gc-sections option ignored" > /dev
/null
; then
28188 gcc_cv_ld_eh_gc_sections
=no
28189 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28190 |
grep gcc_except_table
> /dev
/null
; then
28191 gcc_cv_ld_eh_gc_sections
=yes
28192 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28193 if test x
$gcc_cv_as_comdat_group != xyes
; then
28194 gcc_cv_ld_eh_gc_sections
=no
28195 cat > conftest.s
<<EOF
28198 .type _start, @function
28201 .size _start, .-_start
28202 .section .gnu.linkonce.t.foo,"ax",@progbits
28203 .type foo, @function
28207 .section .gcc_except_table.foo,"a",@progbits
28210 .section .eh_frame,"a",@progbits
28213 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28214 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28215 |
grep "gc-sections option ignored" > /dev
/null
; then
28216 gcc_cv_ld_eh_gc_sections
=no
28217 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28218 |
grep gcc_except_table
> /dev
/null
; then
28219 gcc_cv_ld_eh_gc_sections
=yes
28225 rm -f conftest.s conftest.o conftest
28229 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28230 gcc_cv_ld_eh_gc_sections
=no
28233 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28235 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28239 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28242 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28243 gcc_cv_ld_eh_gc_sections_bug
=no
28244 if test $in_tree_ld = yes ; then
28245 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 \
28246 && test $in_tree_ld_is_elf = yes; then
28247 gcc_cv_ld_eh_gc_sections_bug
=yes
28249 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
28250 gcc_cv_ld_eh_gc_sections_bug
=yes
28251 cat > conftest.s
<<EOF
28254 .type _start, @function
28257 .size _start, .-_start
28258 .section .text.startup.foo,"ax",@progbits
28259 .type foo, @function
28263 .section .gcc_except_table.foo,"a",@progbits
28266 .section .eh_frame,"a",@progbits
28269 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28270 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28271 |
grep "gc-sections option ignored" > /dev
/null
; then
28273 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28274 |
grep gcc_except_table
> /dev
/null
; then
28275 gcc_cv_ld_eh_gc_sections_bug
=no
28278 rm -f conftest.s conftest.o conftest
28280 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28282 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28286 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28289 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28290 # gold/gld support compressed debug sections since binutils 2.19/2.21
28291 # In binutils 2.26, gld gained support for the ELF gABI format.
28292 if test $in_tree_ld = yes ; then
28293 gcc_cv_ld_compress_debug
=0
28294 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 \
28295 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28296 gcc_cv_ld_compress_debug
=2
28297 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28298 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28299 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28300 gcc_cv_ld_compress_debug
=3
28301 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28302 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 \
28303 && test $in_tree_ld_is_elf = yes; then
28304 gcc_cv_ld_compress_debug
=1
28306 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28307 if test "$ld_vers_major" -lt 2 \
28308 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28309 gcc_cv_ld_compress_debug
=0
28310 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28311 gcc_cv_ld_compress_debug
=1
28313 gcc_cv_ld_compress_debug
=3
28314 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28316 if test $ld_is_gold = yes; then
28317 gcc_cv_ld_compress_debug
=2
28318 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28321 case "${target}" in
28323 # Introduced in Solaris 11.2.
28324 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28325 gcc_cv_ld_compress_debug
=3
28326 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28328 gcc_cv_ld_compress_debug
=0
28332 # Assume linkers other than GNU ld don't support compessed debug
28334 gcc_cv_ld_compress_debug
=0
28339 cat >>confdefs.h
<<_ACEOF
28340 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28344 cat >>confdefs.h
<<_ACEOF
28345 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28349 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28351 if test x
"$ld64_flag" = x
"yes"; then
28353 # Set defaults for possibly untestable items.
28354 gcc_cv_ld64_export_dynamic
=0
28356 if test "$build" = "$host"; then
28362 # On Darwin, because of FAT library support, it is often possible to execute
28363 # exes from compatible archs even when the host differs from the build system.
28364 case "$build","$host" in
28365 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28366 darwin_try_test
=1;;
28370 # If the configurer specified a minimum ld64 version to be supported, then use
28371 # that to determine feature support.
28372 if test x
"${gcc_cv_ld64_version}" != x
; then
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28374 $as_echo_n "checking ld64 specified version... " >&6; }
28375 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28377 $as_echo "$gcc_cv_ld64_major" >&6; }
28378 if test "$gcc_cv_ld64_major" -ge 236; then
28379 gcc_cv_ld64_export_dynamic
=1
28381 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28382 # If the version was not specified, try to find it.
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28384 $as_echo_n "checking linker version... " >&6; }
28385 if test x
"${gcc_cv_ld64_version}" = x
; then
28386 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28389 $as_echo "$gcc_cv_ld64_version" >&6; }
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28392 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28393 gcc_cv_ld64_export_dynamic
=1
28394 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28395 gcc_cv_ld64_export_dynamic
=0
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28398 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28401 if test x
"${gcc_cv_ld64_version}" != x
; then
28403 cat >>confdefs.h
<<_ACEOF
28404 #define LD64_VERSION "${gcc_cv_ld64_version}"
28410 cat >>confdefs.h
<<_ACEOF
28411 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28421 $as_echo_n "checking linker --as-needed support... " >&6; }
28422 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28423 $as_echo_n "(cached) " >&6
28425 gcc_cv_ld_as_needed
=no
28426 gcc_cv_ld_as_needed_option
='--as-needed'
28427 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28428 if test $in_tree_ld = yes ; then
28429 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 \
28430 && test $in_tree_ld_is_elf = yes; then
28431 gcc_cv_ld_as_needed
=yes
28433 elif test x
$gcc_cv_ld != x
; then
28434 # Check if linker supports --as-needed and --no-as-needed options
28435 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
28436 gcc_cv_ld_as_needed
=yes
28439 # Solaris 2 ld always supports -z ignore/-z record.
28441 gcc_cv_ld_as_needed
=yes
28442 gcc_cv_ld_as_needed_option
="-z ignore"
28443 gcc_cv_ld_no_as_needed_option
="-z record"
28448 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28449 # dl_iterate_phdr, i.e. since Solaris 11.
28451 *-*-solaris2.1
[1-9]*)
28453 i?
86-*-* | x86_64-
*-*)
28454 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28455 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28456 gcc_cv_ld_as_needed
=no
28462 gcc_cv_ld_as_needed
=no
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28468 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28469 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28471 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28474 cat >>confdefs.h
<<_ACEOF
28475 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28479 cat >>confdefs.h
<<_ACEOF
28480 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28486 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28487 saved_LDFLAGS
="$LDFLAGS"
28488 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28489 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28491 /* end confdefs.h. */
28492 int main(void) {return 0;}
28494 if ac_fn_cxx_try_link
"$LINENO"; then :
28495 gcc_cv_ld_clearcap
=yes; break
28497 gcc_cv_ld_clearcap
=no
28499 rm -f core conftest.err conftest.
$ac_objext \
28500 conftest
$ac_exeext conftest.
$ac_ext
28502 LDFLAGS
="$saved_LDFLAGS"
28503 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28505 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28507 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28511 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28517 emul_name
="-melf32lppc"
28520 emul_name
="-melf32ppc"
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28524 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28525 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28526 $as_echo_n "(cached) " >&6
28528 gcc_cv_ld_ppc_attr
=no
28529 if test x
"$ld_is_gold" = xyes
; then
28530 gcc_cv_ld_ppc_attr
=yes
28531 elif test $in_tree_ld = yes ; then
28532 if test "$gcc_cv_gld_major_version" -eq 2 \
28533 -a "$gcc_cv_gld_minor_version" -ge 28 \
28534 -o "$gcc_cv_gld_major_version" -gt 2; then
28535 gcc_cv_ld_ppc_attr
=yes
28537 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28538 # check that merging the long double .gnu_attribute doesn't warn
28539 cat > conftest1.s
<<EOF
28542 cat > conftest2.s
<<EOF
28545 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28546 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28547 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28548 && test ! -s conftest.err
; then
28549 gcc_cv_ld_ppc_attr
=yes
28551 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28556 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28557 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28559 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28565 case "$target:$tm_file" in
28566 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28569 emul_name
="-melf64lppc"
28572 emul_name
="-melf64ppc"
28575 emul_name
="-melf64ppc_fbsd"
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28579 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28580 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28581 $as_echo_n "(cached) " >&6
28583 gcc_cv_ld_no_dot_syms
=no
28584 if test x
"$ld_is_gold" = xyes
; then
28585 gcc_cv_ld_no_dot_syms
=yes
28586 elif test $in_tree_ld = yes ; then
28587 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
28588 gcc_cv_ld_no_dot_syms
=yes
28590 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28591 cat > conftest1.s
<<EOF
28595 cat > conftest2.s
<<EOF
28596 .section ".opd","aw"
28599 .type foo,@function
28601 .quad .LEfoo,.TOC.@tocbase,0
28607 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28608 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28609 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28610 gcc_cv_ld_no_dot_syms
=yes
28612 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28617 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28618 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28620 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28625 $as_echo_n "checking linker large toc support... " >&6; }
28626 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28627 $as_echo_n "(cached) " >&6
28629 gcc_cv_ld_large_toc
=no
28630 if test x
"$ld_is_gold" = xyes
; then
28631 gcc_cv_ld_large_toc
=yes
28632 elif test $in_tree_ld = yes ; then
28633 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
28634 gcc_cv_ld_large_toc
=yes
28636 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28637 cat > conftest.s
<<EOF
28638 .section ".tbss","awT",@nobits
28644 addis 9,13,ie0@got@tprel@ha
28645 ld 9,ie0@got@tprel@l(9)
28647 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28648 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28649 gcc_cv_ld_large_toc
=yes
28651 rm -f conftest conftest.o conftest.s
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28656 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28657 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28659 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28664 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28665 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28666 $as_echo_n "(cached) " >&6
28668 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28669 cat > conftest.s
<<EOF
28674 .section .data.rel.ro,"aw",@progbits
28679 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28680 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28681 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)) }'`
28683 rm -f conftest conftest.o conftest.s
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28688 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28689 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28691 cat >>confdefs.h
<<_ACEOF
28692 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28702 $as_echo_n "checking linker large toc support... " >&6; }
28703 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28704 $as_echo_n "(cached) " >&6
28706 gcc_cv_ld_large_toc
=no
28707 if test x
$gcc_cv_as != x
; then
28708 cat > conftest.s
<<EOF
28718 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28719 gcc_cv_ld_large_toc
=yes
28721 rm -f conftest conftest.o conftest.s
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28726 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28727 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28729 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28736 $as_echo_n "checking linker --build-id support... " >&6; }
28737 if test "${gcc_cv_ld_buildid+set}" = set; then :
28738 $as_echo_n "(cached) " >&6
28740 gcc_cv_ld_buildid
=no
28741 if test $in_tree_ld = yes ; then
28742 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28743 "$gcc_cv_gld_minor_version" -ge 18 -o \
28744 "$gcc_cv_gld_major_version" -gt 2 \
28745 && test $in_tree_ld_is_elf = yes; then
28746 gcc_cv_ld_buildid
=yes
28748 elif test x
$gcc_cv_ld != x
; then
28749 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28750 gcc_cv_ld_buildid
=yes
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28755 $as_echo "$gcc_cv_ld_buildid" >&6; }
28756 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28758 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28762 # Check whether --enable-linker-build-id was given.
28763 if test "${enable_linker_build_id+set}" = set; then :
28764 enableval
=$enable_linker_build_id;
28766 enable_linker_build_id
=no
28770 if test x
"$enable_linker_build_id" = xyes
; then
28771 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28773 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28777 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28781 # In binutils 2.21, GNU ld gained support for new emulations fully
28782 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28784 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28785 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28786 $as_echo_n "(cached) " >&6
28788 gcc_cv_ld_sol2_emulation
=no
28789 if test $in_tree_ld = yes ; then
28790 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28791 "$gcc_cv_gld_minor_version" -ge 21 -o \
28792 "$gcc_cv_gld_major_version" -gt 2 \
28793 && test $in_tree_ld_is_elf = yes; then
28794 gcc_cv_ld_sol2_emulation
=yes
28796 elif test x
$gcc_cv_ld != x
; then
28797 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28798 grep _sol2
> /dev
/null
; then
28799 gcc_cv_ld_sol2_emulation
=yes
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28804 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28805 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28807 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28812 $as_echo_n "checking linker --sysroot support... " >&6; }
28813 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28814 $as_echo_n "(cached) " >&6
28816 gcc_cv_ld_sysroot
=no
28817 if test $in_tree_ld = yes ; then
28818 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
28819 gcc_cv_ld_sysroot
=yes
28821 elif test x
$gcc_cv_ld != x
; then
28822 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28823 gcc_cv_ld_sysroot
=yes
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28828 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28829 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28831 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28837 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28839 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28840 if test "${gcc_cv_solaris_crts+set}" = set; then :
28841 $as_echo_n "(cached) " >&6
28843 gcc_cv_solaris_crts
=no
28844 if test x
$host != x
$target; then
28845 if test "x$with_sysroot" = xyes
; then
28846 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28848 target_sysroot
="${with_sysroot}"
28851 target_libdir
="$target_sysroot/usr/lib"
28852 # At the time they were added, gcrt1.o became a symlink for backwards
28853 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28855 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28856 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28858 sparc
*-*-solaris2*)
28859 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28864 $as_echo "$gcc_cv_solaris_crts" >&6; }
28867 if test x
$gcc_cv_solaris_crts = xyes
; then
28869 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28873 # Test for stack protector support in target C library.
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28875 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28876 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28877 $as_echo_n "(cached) " >&6
28879 gcc_cv_libc_provides_ssp
=no
28882 # All versions of musl provide stack protector
28883 gcc_cv_libc_provides_ssp
=yes;;
28884 *-*-linux* |
*-*-kfreebsd*-gnu)
28885 # glibc 2.4 and later provides __stack_chk_fail and
28886 # either __stack_chk_guard, or TLS access to stack guard canary.
28888 if test $glibc_version_major -gt 2 \
28889 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28890 gcc_cv_libc_provides_ssp
=yes
28893 if test -f $target_header_dir/features.h \
28894 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28895 $target_header_dir/features.h
> /dev
/null
; then
28896 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28897 $target_header_dir/features.h
> /dev
/null
&& \
28898 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28899 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28900 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28901 gcc_cv_libc_provides_ssp
=yes
28903 # all versions of Bionic support stack protector
28904 elif test -f $target_header_dir/sys
/cdefs.h \
28905 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28906 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28907 gcc_cv_libc_provides_ssp
=yes
28912 # Avoid complicated tests (see
28913 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28914 # simply assert that glibc does provide this, which is true for all
28915 # realistically usable GNU/Hurd configurations.
28916 # All supported versions of musl provide it as well
28917 gcc_cv_libc_provides_ssp
=yes;;
28918 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28919 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28920 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28921 gcc_cv_libc_provides_ssp
=yes
28923 echo "no __stack_chk_fail on this target"
28927 *) gcc_cv_libc_provides_ssp
=no
;;
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28931 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28933 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28935 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28939 # Check whether --enable-default-ssp was given.
28940 # Check whether --enable-default-ssp was given.
28941 if test "${enable_default_ssp+set}" = set; then :
28942 enableval
=$enable_default_ssp;
28943 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28945 ia64
*-*-*) enable_default_ssp
=no
;;
28946 *) enable_default_ssp
=$enableval ;;
28949 enable_default_ssp
=no
28952 enable_default_ssp
=no
28955 if test x
$enable_default_ssp = xyes
; then
28957 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28962 # Test for <sys/sdt.h> on the target.
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28965 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28967 if test -f $target_header_dir/sys
/sdt.h
; then
28970 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28974 $as_echo "$have_sys_sdt_h" >&6; }
28976 # Check if TFmode long double should be used by default or not.
28977 # Some glibc targets used DFmode long double, but with glibc 2.4
28978 # and later they can use TFmode.
28980 powerpc
*-*-linux* | \
28981 sparc
*-*-linux* | \
28985 # Check whether --with-long-double-128 was given.
28986 if test "${with_long_double_128+set}" = set; then :
28987 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28990 if test $glibc_version_major -gt 2 \
28991 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28992 gcc_cv_target_ldbl128
=yes
28995 gcc_cv_target_ldbl128
=no
28996 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28997 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28998 && gcc_cv_target_ldbl128
=yes
29005 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29007 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29011 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29012 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29013 gcc_cv_libc_provides_hwcap_in_tcb
=no
29017 if test $glibc_version_major -gt 2 \
29018 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29019 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29023 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29025 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29030 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29031 gcc_cv_target_dl_iterate_phdr
=unknown
29033 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29034 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29035 # libdl there, both complicating its use and breaking compatibility
29036 # between Solaris 10 updates.
29037 *-*-solaris2.1
[1-9]*)
29038 # <link.h> needs both a dl_iterate_phdr declaration and support for
29039 # compilation with largefile support.
29040 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29041 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29042 gcc_cv_target_dl_iterate_phdr
=yes
29044 gcc_cv_target_dl_iterate_phdr
=no
29047 *-*-dragonfly* |
*-*-freebsd*)
29048 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29049 gcc_cv_target_dl_iterate_phdr
=yes
29051 gcc_cv_target_dl_iterate_phdr
=no
29055 gcc_cv_target_dl_iterate_phdr
=yes
29059 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29061 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29065 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29067 # We no longer support different GC mechanisms. Emit an error if
29068 # the user configures with --with-gc.
29070 # Check whether --with-gc was given.
29071 if test "${with_gc+set}" = set; then :
29072 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29076 # Libraries to use on the host. This will normally be set by the top
29077 # level Makefile. Here we simply capture the value for our Makefile.
29078 if test -z "${HOST_LIBS+set}"; then
29083 # Use the system's zlib library.
29085 # Use the system's zlib library.
29086 zlibdir
="-L\$(top_builddir)/../zlib"
29087 zlibinc
="-I\$(top_srcdir)/../zlib"
29089 # Check whether --with-system-zlib was given.
29090 if test "${with_system_zlib+set}" = set; then :
29091 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29104 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29105 # Check whether --enable-maintainer-mode was given.
29106 if test "${enable_maintainer_mode+set}" = set; then :
29107 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29114 $as_echo "$maintainer_mode" >&6; }
29116 if test "$maintainer_mode" = "yes"; then
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29124 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29125 # Check whether --enable-link-mutex was given.
29126 if test "${enable_link_mutex+set}" = set; then :
29127 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29133 $as_echo "$do_link_mutex" >&6; }
29135 if test "$do_link_mutex" = "yes"; then
29138 DO_LINK_MUTEX
=false
29146 # Make empty files to contain the specs and options for each language.
29147 # Then add #include lines to for a compiler that has specs and/or options.
29153 # These (without "all_") are set in each config-lang.in.
29154 # `language' must be a single word so is spelled singularly.
29157 all_outputs
='Makefile'
29158 # List of language makefile fragments.
29159 all_lang_makefrags
=
29160 # Additional files for gengtype
29161 all_gtfiles
="$target_gtfiles"
29163 # These are the languages that are set in --enable-languages,
29164 # and are available in the GCC tree.
29165 all_selected_languages
=
29167 # Add the language fragments.
29168 # Languages are added via two mechanisms. Some information must be
29169 # recorded in makefile variables, these are defined in config-lang.in.
29170 # We accumulate them and plug them into the main Makefile.
29171 # The other mechanism is a set of hooks for each of the main targets
29172 # like `clean', `install', etc.
29174 language_hooks
="Make-hooks"
29176 for lang
in ${srcdir}/*/config-lang.
in
29178 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29180 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29181 if test "x$lang_alias" = x
29183 echo "$lang doesn't set \$language." 1>&2
29186 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29187 subdirs
="$subdirs $subdir"
29189 # $gcc_subdir is where the gcc integration files are to be found
29190 # for a language, both for internal compiler purposes (compiler
29191 # sources implementing front-end to GCC tree converters), and for
29192 # build infrastructure purposes (Make-lang.in, etc.)
29194 # This will be <subdir> (relative to $srcdir) if a line like
29195 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29196 # is found in <langdir>/config-lang.in, and will remain <langdir>
29199 # Except for the language alias (fetched above), the regular
29200 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29201 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29202 # only this and the language alias.
29204 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29205 if [ "$gcc_subdir" = "" ]; then
29206 gcc_subdir
="$subdir"
29209 case ",$enable_languages," in
29211 all_selected_languages
="$all_selected_languages $lang_alias"
29212 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29213 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29224 .
${srcdir}/$gcc_subdir/config-lang.
in
29225 if test "x$language" = x
29227 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29232 case ",$enable_languages," in
29233 *,$lang_alias,*) ;;
29235 for i
in $subdir_requires; do
29236 test -f "${srcdir}/$i/config-lang.in" && continue
29244 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29245 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29246 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29247 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29249 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29250 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29252 all_languages
="$all_languages $language"
29253 all_compilers
="$all_compilers $compilers"
29254 all_outputs
="$all_outputs $outputs"
29255 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29256 case ",$enable_languages," in
29259 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29269 for language
in $all_selected_languages
29271 check_languages
="$check_languages check-$language"
29274 # We link each language in with a set of hooks, reached indirectly via
29275 # lang.${target}. Only do so for selected languages.
29279 target_list
="all.cross start.encap rest.encap tags \
29280 install-common install-man install-info install-pdf install-html dvi \
29281 pdf html uninstall info man srcextra srcman srcinfo \
29282 mostlyclean clean distclean maintainer-clean install-plugin"
29284 for t
in $target_list
29287 for lang
in $all_selected_languages
29291 echo "lang.$t: $x" >> Make-hooks
29295 # Option include files
29298 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29299 option_includes
="option-includes.mk"
29308 echo "dir ." > .gdbinit
29309 echo "dir ${srcdir}" >> .gdbinit
29310 if test x
$gdb_needs_out_file_path = xyes
29312 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29314 if test "x$subdirs" != x
; then
29317 echo "dir ${srcdir}/$s" >> .gdbinit
29320 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29321 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29323 # Put a breakpoint on __asan_report_error to help with debugging buffer
29326 *-fsanitize=address
*)
29327 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29331 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29335 # Find a directory in which to install a shared libgcc.
29337 # Check whether --enable-version-specific-runtime-libs was given.
29338 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29339 enableval
=$enable_version_specific_runtime_libs;
29343 # Substitute configuration variables
29407 if test x
${build} = x
${host} ; then
29408 if test x
${host} = x
${target} ; then
29409 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29411 echo "Links are now set up to build a cross-compiler" 1>&2
29412 echo " from ${host} to ${target}." 1>&2
29415 if test x
${host} = x
${target} ; then
29416 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29417 echo " for ${target}." 1>&2
29419 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29420 echo " from ${host} to ${target}." 1>&2
29429 if test "x${ISLLIBS}" != "x" ; then
29431 $as_echo "#define HAVE_isl 1" >>confdefs.h
29435 # Check for plugin support
29436 # Check whether --enable-plugin was given.
29437 if test "${enable_plugin+set}" = set; then :
29438 enableval
=$enable_plugin; enable_plugin
=$enableval
29440 enable_plugin
=yes; default_plugin
=yes
29448 if test x
$build = x
$host; then
29449 export_sym_check
="nm${exeext} -g"
29450 elif test x
$host = x
$target; then
29451 export_sym_check
="$gcc_cv_nm -g"
29457 if test x
$build = x
$host; then
29458 export_sym_check
="objdump${exeext} -T"
29459 elif test x
$host = x
$target; then
29460 export_sym_check
="$gcc_cv_objdump -T"
29467 if test x
"$enable_plugin" = x
"yes"; then
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29470 $as_echo_n "checking for exported symbols... " >&6; }
29471 if test "x$export_sym_check" != x
; then
29472 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29473 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29474 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29475 : # No need to use a flag
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29477 $as_echo "yes" >&6; }
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29480 $as_echo "yes" >&6; }
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29482 $as_echo_n "checking for -rdynamic... " >&6; }
29483 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29484 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29485 plugin_rdynamic
=yes
29486 pluginlibs
="-rdynamic"
29491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29492 $as_echo "$plugin_rdynamic" >&6; }
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29496 $as_echo "unable to check" >&6; }
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29502 $as_echo_n "checking for library containing dlopen... " >&6; }
29503 if test "${ac_cv_search_dlopen+set}" = set; then :
29504 $as_echo_n "(cached) " >&6
29506 ac_func_search_save_LIBS
=$LIBS
29507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29508 /* end confdefs.h. */
29510 /* Override any GCC internal prototype to avoid an error.
29511 Use char because int might match the return type of a GCC
29512 builtin and then its argument prototype would still apply. */
29525 for ac_lib
in '' dl
; do
29526 if test -z "$ac_lib"; then
29527 ac_res
="none required"
29530 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29532 if ac_fn_cxx_try_link
"$LINENO"; then :
29533 ac_cv_search_dlopen
=$ac_res
29535 rm -f core conftest.err conftest.
$ac_objext \
29537 if test "${ac_cv_search_dlopen+set}" = set; then :
29541 if test "${ac_cv_search_dlopen+set}" = set; then :
29544 ac_cv_search_dlopen
=no
29546 rm conftest.
$ac_ext
29547 LIBS
=$ac_func_search_save_LIBS
29549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29550 $as_echo "$ac_cv_search_dlopen" >&6; }
29551 ac_res
=$ac_cv_search_dlopen
29552 if test "$ac_res" != no
; then :
29553 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29557 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29558 pluginlibs
="$pluginlibs -ldl"
29562 # Check that we can build shared objects with -fPIC -shared
29563 saved_LDFLAGS
="$LDFLAGS"
29564 saved_CFLAGS
="$CFLAGS"
29567 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29568 CFLAGS
="$CFLAGS -fPIC"
29569 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29572 CFLAGS
="$CFLAGS -fPIC"
29573 LDFLAGS
="$LDFLAGS -fPIC -shared"
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29577 $as_echo_n "checking for -fPIC -shared... " >&6; }
29578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29579 /* end confdefs.h. */
29589 if ac_fn_cxx_try_link
"$LINENO"; then :
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29591 $as_echo "yes" >&6; }; have_pic_shared
=yes
29593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29594 $as_echo "no" >&6; }; have_pic_shared
=no
29596 rm -f core conftest.err conftest.
$ac_objext \
29597 conftest
$ac_exeext conftest.
$ac_ext
29598 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29602 LDFLAGS
="$saved_LDFLAGS"
29603 CFLAGS
="$saved_CFLAGS"
29605 # If plugin support had been requested but not available, fail.
29606 if test x
"$enable_plugin" = x
"no" ; then
29607 if test x
"$default_plugin" != x
"yes"; then
29609 Building GCC with plugin support requires a host that supports
29610 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29617 if test x
"$enable_plugin" = x
"yes"; then
29619 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29624 # Enable --enable-host-shared
29625 # Check whether --enable-host-shared was given.
29626 if test "${enable_host_shared+set}" = set; then :
29627 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29636 # Check whether --enable-libquadmath-support was given.
29637 if test "${enable_libquadmath_support+set}" = set; then :
29638 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29640 ENABLE_LIBQUADMATH_SUPPORT
=yes
29643 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29645 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29650 # Specify what hash style to use by default.
29652 # Check whether --with-linker-hash-style was given.
29653 if test "${with_linker_hash_style+set}" = set; then :
29654 withval
=$with_linker_hash_style; case x
"$withval" in
29656 LINKER_HASH_STYLE
=sysv
29659 LINKER_HASH_STYLE
=gnu
29662 LINKER_HASH_STYLE
=both
29665 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29669 LINKER_HASH_STYLE
=''
29672 if test x
"${LINKER_HASH_STYLE}" != x
; then
29674 cat >>confdefs.h
<<_ACEOF
29675 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29680 # Specify what should be the default of -fdiagnostics-color option.
29682 # Check whether --with-diagnostics-color was given.
29683 if test "${with_diagnostics_color+set}" = set; then :
29684 withval
=$with_diagnostics_color; case x
"$withval" in
29686 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29689 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29692 DIAGNOSTICS_COLOR_DEFAULT
=-1
29695 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29698 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29702 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29706 cat >>confdefs.h
<<_ACEOF
29707 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29711 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29712 # of jit/jit-playback.c.
29713 cat > gcc-driver-name.h
<<EOF
29714 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29717 # Check whether --enable-default-pie was given.
29718 # Check whether --enable-default-pie was given.
29719 if test "${enable_default_pie+set}" = set; then :
29720 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29722 enable_default_pie
=no
29725 if test x
$enable_default_pie = xyes
; then
29727 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29732 # Check if -fno-PIE works.
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29734 $as_echo_n "checking for -fno-PIE option... " >&6; }
29735 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29736 $as_echo_n "(cached) " >&6
29738 saved_CXXFLAGS
="$CXXFLAGS"
29739 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29741 /* end confdefs.h. */
29742 int main(void) {return 0;}
29744 if ac_fn_cxx_try_compile
"$LINENO"; then :
29745 gcc_cv_c_no_fpie
=yes
29747 gcc_cv_c_no_fpie
=no
29749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29750 CXXFLAGS
="$saved_CXXFLAGS"
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29753 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29754 if test "$gcc_cv_c_no_fpie" = "yes"; then
29755 NO_PIE_CFLAGS
="-fno-PIE"
29759 # Check if -no-pie works.
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29761 $as_echo_n "checking for -no-pie option... " >&6; }
29762 if test "${gcc_cv_no_pie+set}" = set; then :
29763 $as_echo_n "(cached) " >&6
29765 saved_LDFLAGS
="$LDFLAGS"
29766 LDFLAGS
="$LDFLAGS -no-pie"
29767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29768 /* end confdefs.h. */
29769 int main(void) {return 0;}
29771 if ac_fn_cxx_try_link
"$LINENO"; then :
29776 rm -f core conftest.err conftest.
$ac_objext \
29777 conftest
$ac_exeext conftest.
$ac_ext
29778 LDFLAGS
="$saved_LDFLAGS"
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29781 $as_echo "$gcc_cv_no_pie" >&6; }
29782 if test "$gcc_cv_no_pie" = "yes"; then
29783 NO_PIE_FLAG
="-no-pie"
29787 # Check linker supports '-z bndplt'
29788 ld_bndplt_support
=no
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29790 $as_echo_n "checking linker -z bndplt option... " >&6; }
29791 if test x
"$ld_is_gold" = xno
; then
29792 if test $in_tree_ld = yes ; then
29793 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
29794 ld_bndplt_support
=yes
29796 elif test x
$gcc_cv_ld != x
; then
29797 # Check if linker supports -a bndplt option
29798 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29799 ld_bndplt_support
=yes
29803 if test x
"$ld_bndplt_support" = xyes
; then
29805 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29809 $as_echo "$ld_bndplt_support" >&6; }
29811 # Check linker supports '--push-state'/'--pop-state'
29812 ld_pushpopstate_support
=no
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29814 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29815 if test x
"$ld_is_gold" = xno
; then
29816 if test $in_tree_ld = yes ; then
29817 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
29818 ld_pushpopstate_support
=yes
29820 elif test x
$gcc_cv_ld != x
; then
29821 # Check if linker supports --push-state/--pop-state options
29822 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '--push-state' > /dev
/null
; then
29823 ld_pushpopstate_support
=yes
29827 if test x
"$ld_pushpopstate_support" = xyes
; then
29829 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29833 $as_echo "$ld_pushpopstate_support" >&6; }
29835 # Configure the subdirectories
29836 # AC_CONFIG_SUBDIRS($subdirs)
29838 # Create the Makefile
29839 # and configure language subdirectories
29840 ac_config_files
="$ac_config_files $all_outputs"
29843 ac_config_commands
="$ac_config_commands default"
29845 cat >confcache
<<\_ACEOF
29846 # This file is a shell script that caches the results of configure
29847 # tests run on this system so they can be shared between configure
29848 # scripts and configure runs, see configure's option --config-cache.
29849 # It is not useful on other systems. If it contains results you don't
29850 # want to keep, you may remove or edit it.
29852 # config.status only pays attention to the cache file if you give it
29853 # the --recheck option to rerun configure.
29855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29857 # following values.
29861 # The following way of writing the cache mishandles newlines in values,
29862 # but we know of no workaround that is simple, portable, and efficient.
29863 # So, we kill variables containing newlines.
29864 # Ultrix sh set writes to stderr and can't be redirected directly,
29865 # and sets the high bit in the cache file unless we assign to the vars.
29867 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29868 eval ac_val
=\$
$ac_var
29872 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29876 _ | IFS | as_nl
) ;; #(
29877 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29878 *) { eval $ac_var=; unset $ac_var;} ;;
29884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29885 *${as_nl}ac_space
=\
*)
29886 # `set' does not quote correctly, so add quotes: double-quote
29887 # substitution turns \\\\ into \\, and sed turns \\ into \.
29890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29893 # `set' quotes correctly as required by POSIX, so do not add quotes.
29894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29907 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29908 if test -w "$cache_file"; then
29909 test "x$cache_file" != "x/dev/null" &&
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29911 $as_echo "$as_me: updating cache $cache_file" >&6;}
29912 cat confcache
>$cache_file
29914 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29915 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29920 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29921 # Let make expand exec_prefix.
29922 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29924 DEFS
=-DHAVE_CONFIG_H
29928 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29929 # 1. Remove the extension, and $U if already installed.
29930 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29931 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29933 # will be set to the directory where LIBOBJS objects are built.
29934 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29935 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29937 LIBOBJS
=$ac_libobjs
29939 LTLIBOBJS
=$ac_ltlibobjs
29944 : ${CONFIG_STATUS=./config.status}
29946 ac_clean_files_save
=$ac_clean_files
29947 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29948 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29949 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29951 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29953 # Generated by $as_me.
29954 # Run this file to recreate the current configuration.
29955 # Compiler output produced by configure, useful for debugging
29956 # configure, is in config.log if it exists.
29959 ac_cs_recheck=false
29962 SHELL=\${CONFIG_SHELL-$SHELL}
29965 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29966 ## -------------------- ##
29967 ## M4sh Initialization. ##
29968 ## -------------------- ##
29970 # Be more Bourne compatible
29971 DUALCASE
=1; export DUALCASE
# for MKS sh
29972 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29975 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29976 # is contrary to our usage. Disable this feature.
29977 alias -g '${1+"$@"}'='"$@"'
29978 setopt NO_GLOB_SUBST
29980 case `(set -o) 2>/dev/null` in #(
29992 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29993 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29996 # Prefer a ksh shell builtin over an external printf program on Solaris,
29997 # but without wasting forks for bash or zsh.
29998 if test -z "$BASH_VERSION$ZSH_VERSION" \
29999 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30000 as_echo='print
-r --'
30001 as_echo_n='print
-rn --'
30002 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30003 as_echo='printf %s
\n'
30004 as_echo_n='printf %s
'
30006 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30007 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30008 as_echo_n='/usr
/ucb
/echo -n'
30010 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30011 as_echo_n_body='eval
30015 expr "X$arg" : "X\\(.*\\)$as_nl";
30016 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30018 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30020 export as_echo_n_body
30021 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30023 export as_echo_body
30024 as_echo='sh
-c $as_echo_body as_echo
'
30027 # The user is always right.
30028 if test "${PATH_SEPARATOR+set}" != set; then
30030 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30031 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30038 # We need space, tab and new line, in precisely that order. Quoting is
30039 # there to prevent editors from complaining about space-tab.
30040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30041 # splitting by setting IFS to empty value.)
30044 # Find who we are. Look in the path if we contain no directory separator.
30046 *[\\/]* ) as_myself=$0 ;;
30047 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30048 for as_dir in $PATH
30051 test -z "$as_dir" && as_dir=.
30052 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30058 # We did not find ourselves, most probably we were run as `sh COMMAND'
30059 # in which case we are not to be found in the path.
30060 if test "x$as_myself" = x
; then
30063 if test ! -f "$as_myself"; then
30064 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30068 # Unset variables that we do not need and which cause bugs (e.g. in
30069 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30070 # suppresses any "Segmentation fault" message there. '((' could
30071 # trigger a bug in pdksh 5.2.14.
30072 for as_var
in BASH_ENV ENV MAIL MAILPATH
30073 do eval test x\
${$as_var+set} = xset \
30074 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30087 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30090 # as_fn_error ERROR [LINENO LOG_FD]
30091 # ---------------------------------
30092 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30093 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30094 # script with status $?, using 1 if that was 0.
30097 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30099 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30100 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30102 $as_echo "$as_me: error: $1" >&2
30103 as_fn_exit
$as_status
30107 # as_fn_set_status STATUS
30108 # -----------------------
30109 # Set $? to STATUS, without forking.
30110 as_fn_set_status
()
30113 } # as_fn_set_status
30115 # as_fn_exit STATUS
30116 # -----------------
30117 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30121 as_fn_set_status
$1
30127 # Portably unset VAR.
30130 { eval $1=; unset $1;}
30132 as_unset
=as_fn_unset
30133 # as_fn_append VAR VALUE
30134 # ----------------------
30135 # Append the text in VALUE to the end of the definition contained in VAR. Take
30136 # advantage of any shell optimizations that allow amortized linear growth over
30137 # repeated appends, instead of the typical quadratic growth present in naive
30139 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30140 eval 'as_fn_append ()
30151 # as_fn_arith ARG...
30152 # ------------------
30153 # Perform arithmetic evaluation on the ARGs, and store the result in the
30154 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30155 # must be portable across $(()) and expr.
30156 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30157 eval 'as_fn_arith ()
30164 as_val
=`expr "$@" || test $? -eq 1`
30169 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30170 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30176 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30177 as_basename
=basename
30182 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30188 as_me
=`$as_basename -- "$0" ||
30189 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30190 X"$0" : 'X\(//\)$' \| \
30191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30193 sed '/^.*\/\([^/][^/]*\)\/*$/{
30207 # Avoid depending upon Character Ranges.
30208 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30209 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30210 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30211 as_cr_digits
='0123456789'
30212 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30214 ECHO_C
= ECHO_N
= ECHO_T
=
30215 case `echo -n x` in #(((((
30217 case `echo 'xy\c'` in
30218 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30220 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30227 rm -f conf$$ conf$$.exe conf$$.
file
30228 if test -d conf$$.dir
; then
30229 rm -f conf$$.dir
/conf$$.
file
30232 mkdir conf$$.dir
2>/dev
/null
30234 if (echo >conf$$.
file) 2>/dev
/null
; then
30235 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30237 # ... but there are two gotchas:
30238 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30239 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30240 # In both cases, we have to default to `cp -p'.
30241 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30243 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30251 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30252 rmdir conf$$.dir
2>/dev
/null
30257 # Create "$as_dir" as a directory, including parents if necessary.
30262 -*) as_dir
=.
/$as_dir;;
30264 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30268 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30269 *) as_qdir
=$as_dir;;
30271 as_dirs
="'$as_qdir' $as_dirs"
30272 as_dir
=`$as_dirname -- "$as_dir" ||
30273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30274 X"$as_dir" : 'X\(//\)[^/]' \| \
30275 X"$as_dir" : 'X\(//\)$' \| \
30276 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30277 $as_echo X"$as_dir" |
30278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30282 /^X\(\/\/\)[^/].*/{
30295 test -d "$as_dir" && break
30297 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30298 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30302 if mkdir
-p .
2>/dev
/null
; then
30303 as_mkdir_p
='mkdir -p "$as_dir"'
30305 test -d .
/-p && rmdir .
/-p
30309 if test -x / >/dev
/null
2>&1; then
30310 as_test_x
='test -x'
30312 if ls -dL / >/dev
/null
2>&1; then
30319 if test -d "$1"; then
30325 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30326 ???[sx]*):;;*)false;;esac;fi
30330 as_executable_p
=$as_test_x
30332 # Sed expression to map a string onto a valid CPP name.
30333 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30335 # Sed expression to map a string onto a valid variable name.
30336 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30340 ## ----------------------------------- ##
30341 ## Main body of $CONFIG_STATUS script. ##
30342 ## ----------------------------------- ##
30344 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30347 # Save the log message, to keep $0 and so on meaningful, and to
30348 # report actual input values of CONFIG_FILES etc. instead of their
30349 # values after options handling.
30351 This file was extended by $as_me, which was
30352 generated by GNU Autoconf 2.64. Invocation command line was
30354 CONFIG_FILES = $CONFIG_FILES
30355 CONFIG_HEADERS = $CONFIG_HEADERS
30356 CONFIG_LINKS = $CONFIG_LINKS
30357 CONFIG_COMMANDS = $CONFIG_COMMANDS
30360 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30365 case $ac_config_files in *"
30366 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30369 case $ac_config_headers in *"
30370 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30375 # Files that config.status was made for.
30376 config_files="$ac_config_files"
30377 config_headers="$ac_config_headers"
30378 config_links="$ac_config_links"
30379 config_commands="$ac_config_commands"
30383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30385 \`$as_me' instantiates files and other configuration actions
30386 from templates according to the current configuration. Unless the files
30387 and actions are specified as TAGs, all are instantiated by default.
30389 Usage: $0 [OPTION]... [TAG]...
30391 -h, --help print this help, then exit
30392 -V, --version print version number and configuration settings, then exit
30393 -q, --quiet, --silent
30394 do not print progress messages
30395 -d, --debug don't remove temporary files
30396 --recheck update $as_me by reconfiguring in the same conditions
30397 --file=FILE[:TEMPLATE]
30398 instantiate the configuration file FILE
30399 --header=FILE[:TEMPLATE]
30400 instantiate the configuration header FILE
30402 Configuration files:
30405 Configuration headers:
30408 Configuration links:
30411 Configuration commands:
30414 Report bugs to the package provider."
30417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30420 configured by $0, generated by GNU Autoconf 2.64,
30421 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30423 Copyright (C) 2009 Free Software Foundation, Inc.
30424 This config.status script is free software; the Free Software Foundation
30425 gives unlimited permission to copy, distribute and modify it."
30430 test -n "\$AWK" || AWK=awk
30433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30434 # The default lists apply if the user does not specify any file.
30440 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30441 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30452 # Handling of the options.
30453 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30455 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30456 $as_echo "$ac_cs_version"; exit ;;
30457 --debug |
--debu |
--deb |
--de |
--d |
-d )
30459 --file |
--fil |
--fi |
--f )
30462 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30464 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30465 ac_need_defaults
=false
;;
30466 --header |
--heade |
--head |
--hea )
30469 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30471 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30472 ac_need_defaults
=false
;;
30474 # Conflict between --help and --header
30475 as_fn_error
"ambiguous option: \`$1'
30476 Try \`$0 --help' for more information.";;
30477 --help |
--hel |
-h )
30478 $as_echo "$ac_cs_usage"; exit ;;
30479 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30480 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30483 # This is an error.
30484 -*) as_fn_error
"unrecognized option: \`$1'
30485 Try \`$0 --help' for more information." ;;
30487 *) as_fn_append ac_config_targets
" $1"
30488 ac_need_defaults
=false
;;
30494 ac_configure_extra_args
=
30496 if $ac_cs_silent; then
30498 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30503 if \$ac_cs_recheck; then
30504 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30506 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30507 CONFIG_SHELL='$SHELL'
30508 export CONFIG_SHELL
30513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30518 ## Running $as_me. ##
30524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30528 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30529 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30536 # Handling of arguments.
30537 for ac_config_target
in $ac_config_targets
30539 case $ac_config_target in
30540 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30541 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30542 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30543 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30544 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30545 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30546 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30547 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30548 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30550 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30555 # If the user did not use the arguments to specify the items to instantiate,
30556 # then the envvar interface is used. Set only those that are not.
30557 # We use the long form for the default assignment because of an extremely
30558 # bizarre bug on SunOS 4.1.3.
30559 if $ac_need_defaults; then
30560 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30561 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30562 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30566 # Have a temporary directory for convenience. Make it in the build tree
30567 # simply because there is no reason against having it here, and in addition,
30568 # creating and moving files from /tmp can sometimes cause problems.
30569 # Hook for its removal unless debugging.
30570 # Note that there is a small window in which the directory will not be cleaned:
30571 # after its creation but before its name has been assigned to `$tmp'.
30575 trap 'exit_status=$?
30576 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30578 trap 'as_fn_exit 1' 1 2 13 15
30580 # Create a (secure) tmp directory for tmp files.
30583 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30584 test -n "$tmp" && test -d "$tmp"
30587 tmp
=.
/conf$$
-$RANDOM
30588 (umask 077 && mkdir
"$tmp")
30589 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30591 # Set up the scripts for CONFIG_FILES section.
30592 # No need to generate them if there are no CONFIG_FILES.
30593 # This happens for instance with `./config.status config.h'.
30594 if test -n "$CONFIG_FILES"; then
30596 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30597 ac_cs_awk_getline
=:
30598 ac_cs_awk_pipe_init
=
30599 ac_cs_awk_read_file
='
30600 while ((getline aline < (F[key])) > 0)
30603 ac_cs_awk_pipe_fini
=
30605 ac_cs_awk_getline
=false
30606 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30607 ac_cs_awk_read_file
='
30609 print "cat " F[key] " &&"
30610 '$ac_cs_awk_pipe_init
30611 # The final `:' finishes the AND list.
30612 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30614 ac_cr
=`echo X | tr X '\015'`
30615 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30616 # But we know of no other shell where ac_cr would be empty at this
30617 # point, so we can use a bashism as a fallback.
30618 if test "x$ac_cr" = x
; then
30619 eval ac_cr
=\$
\'\\r
\'
30621 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30622 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30625 ac_cs_awk_cr
=$ac_cr
30628 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30631 # Create commands to substitute file output variables.
30633 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30634 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30635 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30638 } >conf$
$files.sh
&&
30639 . .
/conf$
$files.sh ||
30640 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30641 rm -f conf$
$files.sh
30644 echo "cat >conf$$subs.awk <<_ACEOF" &&
30645 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30647 } >conf$$subs.sh ||
30648 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30649 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30651 for ac_last_try in false false false false false :; do
30652 . ./conf$$subs.sh ||
30653 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30655 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30656 if test $ac_delim_n = $ac_delim_num; then
30658 elif $ac_last_try; then
30659 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30661 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30664 rm -f conf$$subs.sh
30666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30667 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30671 s/^/S["/; s
/!.
*/"]=/
30681 s/\(.\{148\}\).*/\1/
30683 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30688 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30695 s/\(.\{148\}\).*/\1/
30697 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30701 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30706 ' <conf$$subs.awk | sed '
30711 ' >>$CONFIG_STATUS || ac_write_fail=1
30712 rm -f conf$$subs.awk
30713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30715 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30716 for (key in S) S_is_set[key] = 1
30718 \$ac_cs_awk_pipe_init
30722 nfields = split(line, field, "@
")
30724 len = length(field[1])
30725 for (i = 2; i < nfields; i++) {
30727 keylen = length(key)
30728 if (S_is_set[key]) {
30730 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30731 len += length(value) + length(field[++i])
30736 if (nfields == 3 && !substed) {
30738 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30739 \$ac_cs_awk_read_file
30745 \$ac_cs_awk_pipe_fini
30748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30749 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30750 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30753 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30754 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30757 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30758 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30759 # trailing colons and then remove the whole line if VPATH becomes empty
30760 # (actually we leave an empty line to preserve line numbers).
30761 if test "x
$srcdir" = x.; then
30762 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30763 s/:*\$(srcdir):*/:/
30764 s/:*\${srcdir}:*/:/
30766 s/^\([^=]*=[ ]*\):*/\1/
30772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30773 fi # test -n "$CONFIG_FILES"
30775 # Set up the scripts for CONFIG_HEADERS section.
30776 # No need to generate them if there are no CONFIG_HEADERS.
30777 # This happens for instance with `./config.status Makefile'.
30778 if test -n "$CONFIG_HEADERS"; then
30779 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30783 # Transform confdefs.h into an awk script `defines.awk', embedded as
30784 # here-document in config.status, that substitutes the proper values into
30785 # config.h.in to produce config.h.
30787 # Create a delimiter string that does not exist in confdefs.h, to ease
30788 # handling of long lines.
30790 for ac_last_try in false false :; do
30791 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30792 if test -z "$ac_t"; then
30794 elif $ac_last_try; then
30795 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30797 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30801 # For the awk script, D is an array of macro values keyed by name,
30802 # likewise P contains macro parameters if any. Preserve backslash
30803 # newline sequences.
30805 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30807 s/.\{148\}/&'"$ac_delim"'/g
30810 s/^[ ]*#[ ]*define[ ][ ]*/ /
30817 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30819 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30824 D["\
1"]=" \
3\\\\\\n
"\\/p
30826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30831 s/.\{148\}/&'"$ac_delim"'/g
30836 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30839 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30841 ' <confdefs.h | sed '
30842 s/'"$ac_delim"'/"\\\
30843 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30846 for (key in D) D_is_set[key] = 1
30849 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30851 split(line, arg, " ")
30852 if (arg[1] == "#") {
30856 defundef
= substr
(arg
[1], 2)
30859 split(mac1
, mac2
, "(") #)
30861 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30862 if (D_is_set
[macro
]) {
30863 # Preserve the white space surrounding the "#".
30864 print prefix
"define", macro P
[macro
] D
[macro
]
30867 # Replace #undef with comments. This is necessary, for example,
30868 # in the case of _POSIX_SOURCE, which is predefined and required
30869 # on some systems where configure will not decide to define it.
30870 if (defundef
== "undef") {
30871 print
"/*", prefix defundef
, macro
, "*/"
30879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30880 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30881 fi # test -n "$CONFIG_HEADERS"
30884 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30889 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30891 case $ac_mode$ac_tag in
30893 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30894 :[FH
]-) ac_tag
=-:-;;
30895 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30912 -) ac_f
="$tmp/stdin";;
30913 *) # Look for the file first in the build tree, then in the source tree
30914 # (if the path is not absolute). The absolute path cannot be DOS-style,
30915 # because $ac_f cannot contain `:'.
30919 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30921 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30923 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30924 as_fn_append ac_file_inputs
" '$ac_f'"
30927 # Let's still pretend it is `configure' which instantiates (i.e., don't
30928 # use $as_me), people would be surprised to read:
30929 # /* config.h. Generated by config.status. */
30930 configure_input
='Generated from '`
30931 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30933 if test x
"$ac_file" != x-
; then
30934 configure_input
="$ac_file. $configure_input"
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30936 $as_echo "$as_me: creating $ac_file" >&6;}
30938 # Neutralize special characters interpreted by sed in replacement strings.
30939 case $configure_input in #(
30940 *\
&* |
*\|
* |
*\\* )
30941 ac_sed_conf_input
=`$as_echo "$configure_input" |
30942 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30943 *) ac_sed_conf_input
=$configure_input;;
30947 *:-:* |
*:-) cat >"$tmp/stdin" \
30948 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30953 ac_dir
=`$as_dirname -- "$ac_file" ||
30954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30955 X"$ac_file" : 'X\(//\)[^/]' \| \
30956 X"$ac_file" : 'X\(//\)$' \| \
30957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30958 $as_echo X"$ac_file" |
30959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30963 /^X\(\/\/\)[^/].*/{
30976 as_dir
="$ac_dir"; as_fn_mkdir_p
30980 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30982 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30983 # A ".." for each directory in $ac_dir_suffix.
30984 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30985 case $ac_top_builddir_sub in
30986 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30987 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30990 ac_abs_top_builddir
=$ac_pwd
30991 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30992 # for backward compatibility:
30993 ac_top_builddir
=$ac_top_build_prefix
30996 .
) # We are building in place.
30998 ac_top_srcdir
=$ac_top_builddir_sub
30999 ac_abs_top_srcdir
=$ac_pwd ;;
31000 [\\/]* | ?
:[\\/]* ) # Absolute name.
31001 ac_srcdir
=$srcdir$ac_dir_suffix;
31002 ac_top_srcdir
=$srcdir
31003 ac_abs_top_srcdir
=$srcdir ;;
31004 *) # Relative name.
31005 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31006 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31007 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31009 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31021 # If the template does not know about datarootdir, expand it.
31022 # FIXME: This hack should be removed a few years after 2.60.
31023 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31034 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31035 *datarootdir
*) ac_datarootdir_seen
=yes;;
31036 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31038 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31041 ac_datarootdir_hack='
31042 s&@datadir@&$datadir&g
31043 s&@docdir@&$docdir&g
31044 s&@infodir@&$infodir&g
31045 s&@localedir@&$localedir&g
31046 s&@mandir@&$mandir&g
31047 s&\\\${datarootdir}&$datarootdir&g' ;;
31051 # Neutralize VPATH when `$srcdir' = `.'.
31052 # Shell code in configure.ac might set extrasub.
31053 # FIXME: do we really want to maintain this feature?
31054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31055 ac_sed_extra="$ac_vpsub
31058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31060 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31061 s|@configure_input@|
$ac_sed_conf_input|
;t t
31062 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31063 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31064 s
&@srcdir@
&$ac_srcdir&;t t
31065 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31066 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31067 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31068 s
&@builddir@
&$ac_builddir&;t t
31069 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31070 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31071 $ac_datarootdir_hack
31073 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31074 if $ac_cs_awk_getline; then
31075 $AWK -f "$tmp/subs.
awk"
31077 $AWK -f "$tmp/subs.
awk" | $SHELL
31079 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31081 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31082 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31085 which seems to be undefined. Please make sure it is defined." >&5
31086 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31087 which seems to be undefined. Please make sure it is defined." >&2;}
31091 -) cat "$tmp/out" && rm -f "$tmp/out";;
31092 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31094 || as_fn_error "could not create $ac_file" "$LINENO" 5
31100 if test x"$ac_file" != x-; then
31102 $as_echo "/* $configure_input */" \
31103 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31104 } >"$tmp/config.h" \
31105 || as_fn_error "could not create $ac_file" "$LINENO" 5
31106 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31108 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31111 mv "$tmp/config.h" "$ac_file" \
31112 || as_fn_error "could not create $ac_file" "$LINENO" 5
31115 $as_echo "/* $configure_input */" \
31116 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31117 || as_fn_error "could not create -" "$LINENO" 5
31125 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31128 # Prefer the file from the source tree if names are identical.
31129 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31130 ac_source=$srcdir/$ac_source
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31134 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31136 if test ! -r "$ac_source"; then
31137 as_fn_error "$ac_source: file not found" "$LINENO" 5
31141 # Try a relative symlink, then a hard link, then a copy.
31143 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31144 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31146 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31147 ln "$ac_source" "$ac_file" 2>/dev/null ||
31148 cp -p "$ac_source" "$ac_file" ||
31149 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31153 $as_echo "$as_me: executing $ac_file commands" >&6;}
31158 case $ac_file$ac_mode in
31159 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31161 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31162 for lang in $subdirs c-family common
31164 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31166 "as":F) chmod +x as ;;
31167 "collect-ld":F) chmod +x collect-ld ;;
31168 "nm":F) chmod +x nm ;;
31170 case ${CONFIG_HEADERS} in
31171 *auto-host.h:config.in*)
31174 # Make sure all the subdirs exist.
31175 for d in $subdirs doc build common c-family
31177 test -d $d || mkdir $d
31187 ac_clean_files=$ac_clean_files_save
31189 test $ac_write_fail = 0 ||
31190 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31193 # configure is writing to config.log, and then calls config.status.
31194 # config.status does its own redirection, appending to config.log.
31195 # Unfortunately, on DOS this fails, as config.log is still kept open
31196 # by configure, so config.status won't be able to
write to it
; its
31197 # output is simply discarded. So we exec the FD to /dev/null,
31198 # effectively closing config.log, so it can be properly (re)opened and
31199 # appended to by config.status. When coming back to configure, we
31200 # need to make the FD available again.
31201 if test "$no_create" != yes; then
31203 ac_config_status_args
=
31204 test "$silent" = yes &&
31205 ac_config_status_args
="$ac_config_status_args --quiet"
31207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31210 # would make configure fail if this is the last instruction.
31211 $ac_cs_success || as_fn_exit $?
31213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31215 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}