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
722 BUILD_SYSTEM_HEADER_DIR
741 NATIVE_SYSTEM_HEADER_DIR
774 real_target_noncanonical
775 enable_as_accelerator
789 valgrind_path_defines
819 CROSS_SYSTEM_HEADER_DIR
820 TARGET_SYSTEM_ROOT_DEFINE
822 SYSROOT_CFLAGS_FOR_TARGET
868 program_transform_name
879 ac_subst_files
='option_includes
882 enable_option_checking
885 with_native_system_header_dir
890 enable_generated_files_in_srcdir
897 enable_build_format_warnings
901 enable_gather_detailed_mem_stats
902 enable_valgrind_annotations
922 enable_sjlj_exceptions
923 with_gcc_major_version_only
925 enable_mingw_wildcard
926 enable_leading_mingw64_underscores
929 enable_win32_registry
937 enable_gnu_indirect_function
938 enable_initfini_array
940 enable_fix_cortex_a53_835769
941 enable_fix_cortex_a53_843419
943 enable_gnu_unique_object
944 enable_linker_build_id
949 enable_maintainer_mode
951 enable_version_specific_runtime_libs
954 enable_libquadmath_support
955 with_linker_hash_style
956 with_diagnostics_color
959 ac_precious_vars
='build_alias
978 # Initialize some variables set by options.
980 ac_init_version
=false
981 ac_unrecognized_opts
=
983 # The variables have the same names as the options, with
984 # dashes changed to underlines.
992 program_transform_name
=s
,x
,x
,
1000 # Installation directory options.
1001 # These are left unexpanded so users can "make install exec_prefix=/foo"
1002 # and all the variables that are supposed to be based on exec_prefix
1003 # by default will actually change.
1004 # Use braces instead of parens because sh, perl, etc. also accept them.
1005 # (The list follows the same order as the GNU Coding Standards.)
1006 bindir
='${exec_prefix}/bin'
1007 sbindir
='${exec_prefix}/sbin'
1008 libexecdir
='${exec_prefix}/libexec'
1009 datarootdir
='${prefix}/share'
1010 datadir
='${datarootdir}'
1011 sysconfdir
='${prefix}/etc'
1012 sharedstatedir
='${prefix}/com'
1013 localstatedir
='${prefix}/var'
1014 includedir
='${prefix}/include'
1015 oldincludedir
='/usr/include'
1016 docdir
='${datarootdir}/doc/${PACKAGE}'
1017 infodir
='${datarootdir}/info'
1022 libdir
='${exec_prefix}/lib'
1023 localedir
='${datarootdir}/locale'
1024 mandir
='${datarootdir}/man'
1030 # If the previous option needs an argument, assign it.
1031 if test -n "$ac_prev"; then
1032 eval $ac_prev=\
$ac_option
1038 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042 # Accept the important Cygnus configure options, so we can diagnose typos.
1044 case $ac_dashdash$ac_option in
1048 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1050 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1051 bindir
=$ac_optarg ;;
1053 -build |
--build |
--buil |
--bui |
--bu)
1054 ac_prev
=build_alias
;;
1055 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1056 build_alias
=$ac_optarg ;;
1058 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1059 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1060 ac_prev
=cache_file
;;
1061 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1062 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1063 cache_file
=$ac_optarg ;;
1065 --config-cache |
-C)
1066 cache_file
=config.cache
;;
1068 -datadir |
--datadir |
--datadi |
--datad)
1070 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1071 datadir
=$ac_optarg ;;
1073 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1074 |
--dataroo |
--dataro |
--datar)
1075 ac_prev
=datarootdir
;;
1076 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1077 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1078 datarootdir
=$ac_optarg ;;
1080 -disable-* |
--disable-*)
1081 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1084 as_fn_error
"invalid feature name: $ac_useropt"
1085 ac_useropt_orig
=$ac_useropt
1086 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_
$ac_useropt"
1091 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1092 ac_unrecognized_sep
=', ';;
1094 eval enable_
$ac_useropt=no
;;
1096 -docdir |
--docdir |
--docdi |
--doc |
--do)
1098 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1099 docdir
=$ac_optarg ;;
1101 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1103 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1104 dvidir
=$ac_optarg ;;
1106 -enable-* |
--enable-*)
1107 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1110 as_fn_error
"invalid feature name: $ac_useropt"
1111 ac_useropt_orig
=$ac_useropt
1112 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "enable_
$ac_useropt"
1117 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1118 ac_unrecognized_sep
=', ';;
1120 eval enable_
$ac_useropt=\
$ac_optarg ;;
1122 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1123 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1124 |
--exec |
--exe |
--ex)
1125 ac_prev
=exec_prefix
;;
1126 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1127 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1128 |
--exec=* |
--exe=* |
--ex=*)
1129 exec_prefix
=$ac_optarg ;;
1131 -gas |
--gas |
--ga |
--g)
1132 # Obsolete; use --with-gas.
1135 -help |
--help |
--hel |
--he |
-h)
1136 ac_init_help
=long
;;
1137 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1138 ac_init_help
=recursive
;;
1139 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1140 ac_init_help
=short
;;
1142 -host |
--host |
--hos |
--ho)
1143 ac_prev
=host_alias
;;
1144 -host=* |
--host=* |
--hos=* |
--ho=*)
1145 host_alias
=$ac_optarg ;;
1147 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1149 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1151 htmldir
=$ac_optarg ;;
1153 -includedir |
--includedir |
--includedi |
--included |
--include \
1154 |
--includ |
--inclu |
--incl |
--inc)
1155 ac_prev
=includedir
;;
1156 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1157 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1158 includedir
=$ac_optarg ;;
1160 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1162 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1163 infodir
=$ac_optarg ;;
1165 -libdir |
--libdir |
--libdi |
--libd)
1167 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1168 libdir
=$ac_optarg ;;
1170 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1171 |
--libexe |
--libex |
--libe)
1172 ac_prev
=libexecdir
;;
1173 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1174 |
--libexe=* |
--libex=* |
--libe=*)
1175 libexecdir
=$ac_optarg ;;
1177 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1178 ac_prev
=localedir
;;
1179 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1180 localedir
=$ac_optarg ;;
1182 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1183 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1184 ac_prev
=localstatedir
;;
1185 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1186 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1187 localstatedir
=$ac_optarg ;;
1189 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1191 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1192 mandir
=$ac_optarg ;;
1194 -nfp |
--nfp |
--nf)
1195 # Obsolete; use --without-fp.
1198 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1199 |
--no-cr |
--no-c |
-n)
1202 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1203 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1206 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1207 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1208 |
--oldin |
--oldi |
--old |
--ol |
--o)
1209 ac_prev
=oldincludedir
;;
1210 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1211 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1212 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1213 oldincludedir
=$ac_optarg ;;
1215 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1217 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1218 prefix
=$ac_optarg ;;
1220 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1221 |
--program-pre |
--program-pr |
--program-p)
1222 ac_prev
=program_prefix
;;
1223 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1224 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1225 program_prefix
=$ac_optarg ;;
1227 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1228 |
--program-suf |
--program-su |
--program-s)
1229 ac_prev
=program_suffix
;;
1230 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1231 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1232 program_suffix
=$ac_optarg ;;
1234 -program-transform-name |
--program-transform-name \
1235 |
--program-transform-nam |
--program-transform-na \
1236 |
--program-transform-n |
--program-transform- \
1237 |
--program-transform |
--program-transfor \
1238 |
--program-transfo |
--program-transf \
1239 |
--program-trans |
--program-tran \
1240 |
--progr-tra |
--program-tr |
--program-t)
1241 ac_prev
=program_transform_name
;;
1242 -program-transform-name=* |
--program-transform-name=* \
1243 |
--program-transform-nam=* |
--program-transform-na=* \
1244 |
--program-transform-n=* |
--program-transform-=* \
1245 |
--program-transform=* |
--program-transfor=* \
1246 |
--program-transfo=* |
--program-transf=* \
1247 |
--program-trans=* |
--program-tran=* \
1248 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1249 program_transform_name
=$ac_optarg ;;
1251 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1253 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1254 pdfdir
=$ac_optarg ;;
1256 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1258 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1261 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1262 |
-silent |
--silent |
--silen |
--sile |
--sil)
1265 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1267 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1269 sbindir
=$ac_optarg ;;
1271 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1272 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1273 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1275 ac_prev
=sharedstatedir
;;
1276 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1277 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1278 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1280 sharedstatedir
=$ac_optarg ;;
1282 -site |
--site |
--sit)
1284 -site=* |
--site=* |
--sit=*)
1287 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1289 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1290 srcdir
=$ac_optarg ;;
1292 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1293 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1294 ac_prev
=sysconfdir
;;
1295 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1296 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1297 sysconfdir
=$ac_optarg ;;
1299 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1300 ac_prev
=target_alias
;;
1301 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1302 target_alias
=$ac_optarg ;;
1304 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1307 -version |
--version |
--versio |
--versi |
--vers |
-V)
1308 ac_init_version
=: ;;
1311 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1314 as_fn_error
"invalid package name: $ac_useropt"
1315 ac_useropt_orig
=$ac_useropt
1316 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1321 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1322 ac_unrecognized_sep
=', ';;
1324 eval with_
$ac_useropt=\
$ac_optarg ;;
1326 -without-* |
--without-*)
1327 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1330 as_fn_error
"invalid package name: $ac_useropt"
1331 ac_useropt_orig
=$ac_useropt
1332 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1337 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1338 ac_unrecognized_sep
=', ';;
1340 eval with_
$ac_useropt=no
;;
1343 # Obsolete; use --with-x.
1346 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1347 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1348 ac_prev
=x_includes
;;
1349 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1350 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1351 x_includes
=$ac_optarg ;;
1353 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1354 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1355 ac_prev
=x_libraries
;;
1356 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1357 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1358 x_libraries
=$ac_optarg ;;
1360 -*) as_fn_error
"unrecognized option: \`$ac_option'
1361 Try \`$0 --help' for more information."
1365 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 case $ac_envvar in #(
1368 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1369 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1371 eval $ac_envvar=\
$ac_optarg
1372 export $ac_envvar ;;
1375 # FIXME: should be removed in autoconf 3.0.
1376 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1378 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1385 if test -n "$ac_prev"; then
1386 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1387 as_fn_error
"missing argument to $ac_option"
1390 if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1393 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1394 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1398 # Check all directory arguments for consistency.
1399 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1400 datadir sysconfdir sharedstatedir localstatedir includedir \
1401 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1402 libdir localedir mandir
1404 eval ac_val
=\$
$ac_var
1405 # Remove trailing slashes.
1408 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1409 eval $ac_var=\
$ac_val;;
1411 # Be sure to have absolute directory names.
1413 [\\/$
]* | ?
:[\\/]* ) continue;;
1414 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1416 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1419 # There might be people who depend on the old broken behavior: `$host'
1420 # used to hold the argument of --host etc.
1421 # FIXME: To remove some day.
1424 target
=$target_alias
1426 # FIXME: To remove some day.
1427 if test "x$host_alias" != x
; then
1428 if test "x$build_alias" = x
; then
1429 cross_compiling
=maybe
1430 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1431 If a cross compiler is detected then cross compile mode will be used." >&2
1432 elif test "x$build_alias" != "x$host_alias"; then
1438 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1440 test "$silent" = yes && exec 6>/dev
/null
1443 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1444 ac_ls_di
=`ls -di .` &&
1445 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1446 as_fn_error
"working directory cannot be determined"
1447 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1448 as_fn_error
"pwd does not report name of working directory"
1451 # Find the source files, if location was not specified.
1452 if test -z "$srcdir"; then
1453 ac_srcdir_defaulted
=yes
1454 # Try the directory containing this script, then the parent directory.
1455 ac_confdir
=`$as_dirname -- "$as_myself" ||
1456 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457 X"$as_myself" : 'X\(//\)[^/]' \| \
1458 X"$as_myself" : 'X\(//\)$' \| \
1459 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460 $as_echo X"$as_myself" |
1461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1483 ac_srcdir_defaulted
=no
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1487 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1489 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1491 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1493 # When building in place, set srcdir=.
1494 if test "$ac_abs_confdir" = "$ac_pwd"; then
1497 # Remove unnecessary trailing slashes from srcdir.
1498 # Double slashes in file names in object file debugging info
1499 # mess up M-x gdb in Emacs.
1501 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1503 for ac_var
in $ac_precious_vars; do
1504 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1505 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1506 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1507 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1511 # Report the --help message.
1513 if test "$ac_init_help" = "long"; then
1514 # Omit some internal or obsolete options to make the list less imposing.
1515 # This message is too long to be a string in the A/UX 3.1 sh.
1517 \`configure' configures this package to adapt to many kinds of systems.
1519 Usage: $0 [OPTION]... [VAR=VALUE]...
1521 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1522 VAR=VALUE. See below for descriptions of some of the useful variables.
1524 Defaults for the options are specified in brackets.
1527 -h, --help display this help and exit
1528 --help=short display options specific to this package
1529 --help=recursive display the short help of all the included packages
1530 -V, --version display version information and exit
1531 -q, --quiet, --silent do not print \`checking...' messages
1532 --cache-file=FILE cache test results in FILE [disabled]
1533 -C, --config-cache alias for \`--cache-file=config.cache'
1534 -n, --no-create do not create output files
1535 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1537 Installation directories:
1538 --prefix=PREFIX install architecture-independent files in PREFIX
1539 [$ac_default_prefix]
1540 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1543 By default, \`make install' will install all the files in
1544 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1545 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1546 for instance \`--prefix=\$HOME'.
1548 For better control, use the options below.
1550 Fine tuning of the installation directories:
1551 --bindir=DIR user executables [EPREFIX/bin]
1552 --sbindir=DIR system admin executables [EPREFIX/sbin]
1553 --libexecdir=DIR program executables [EPREFIX/libexec]
1554 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1555 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1556 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1557 --libdir=DIR object code libraries [EPREFIX/lib]
1558 --includedir=DIR C header files [PREFIX/include]
1559 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1560 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1561 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1562 --infodir=DIR info documentation [DATAROOTDIR/info]
1563 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1564 --mandir=DIR man documentation [DATAROOTDIR/man]
1565 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1566 --htmldir=DIR html documentation [DOCDIR]
1567 --dvidir=DIR dvi documentation [DOCDIR]
1568 --pdfdir=DIR pdf documentation [DOCDIR]
1569 --psdir=DIR ps documentation [DOCDIR]
1575 --program-prefix=PREFIX prepend PREFIX to installed program names
1576 --program-suffix=SUFFIX append SUFFIX to installed program names
1577 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1580 --build=BUILD configure
for building on BUILD
[guessed
]
1581 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1582 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1586 if test -n "$ac_init_help"; then
1591 --disable-option-checking ignore unrecognized
--enable/--with options
1592 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1593 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1594 --enable-generated-files-in-srcdir
1595 put copies of generated files
in source dir intended
1596 for creating
source tarballs
for users without
1597 texinfo bison or flex
1598 --disable-largefile omit support
for large files
1599 --disable-build-format-warnings
1600 don
't use -Wformat while building GCC
1601 --enable-werror-always enable -Werror despite compiler version
1602 --enable-checking[=LIST]
1603 enable expensive run-time checks. With LIST, enable
1604 only specific categories of checks. Categories are:
1605 yes,no,all,none,release. Flags are:
1606 assert,df,extra,fold,gc,gcac,gimple,misc,
1607 rtlflag,rtl,runtime,tree,valgrind,types
1608 --enable-coverage[=LEVEL]
1609 enable compiler's code coverage collection. Use to
1610 measure compiler performance and
locate unused parts
1611 of the compiler. With LEVEL
, specify optimization.
1612 Values are opt
, noopt
, default is noopt
1613 --enable-gather-detailed-mem-stats
1614 enable detailed memory allocation stats gathering
1615 --enable-valgrind-annotations
1616 enable valgrind runtime interaction
1617 --enable-multilib enable library support
for multiple ABIs
1618 --enable-multiarch enable support
for multiarch paths
1619 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1620 --enable-decimal-float={no
,yes,bid
,dpd
}
1621 enable decimal float extension to C. Selecting
'bid'
1622 or
'dpd' choses
which decimal floating point format
1624 --enable-fixed-point enable fixed-point arithmetic extension to C
1625 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1627 --enable-tls enable or disable generation of tls code overriding
1628 the assembler check
for tls support
1629 --enable-vtable-verify enable vtable verification feature
1630 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1631 GNU Objective-C runtime
1632 --disable-shared don't provide a shared libgcc
1633 --enable-languages=LIST specify
which front-ends to build
1634 --disable-rpath do not hardcode runtime library paths
1635 --enable-sjlj-exceptions
1636 arrange to use setjmp
/longjmp exception handling
1637 --enable-secureplt enable -msecure-plt by default
for PowerPC
1638 --enable-mingw-wildcard Set whether to
expand wildcard on command-line.
1639 Default to platform configuration
1640 --enable-leading-mingw64-underscores
1641 enable leading underscores on
64 bit mingw targets
1642 --enable-cld enable -mcld by default
for 32bit x86
1643 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1645 --disable-win32-registry
1646 disable lookup of installation paths
in the Registry
1648 --enable-win32-registry enable registry lookup
(default
)
1649 --enable-win32-registry=KEY
1650 use KEY instead of GCC version as the last portion
1652 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1653 --enable-static[=PKGS
] build static libraries
[default
=yes]
1654 --enable-fast-install[=PKGS
]
1655 optimize
for fast installation
[default
=yes]
1656 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1657 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1658 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1659 --enable-gnu-indirect-function
1660 enable the use of the @gnu_indirect_function to
1662 --enable-initfini-array use .init_array
/.fini_array sections
1663 --enable-comdat enable COMDAT group support
1665 --enable-fix-cortex-a53-835769
1666 enable workaround
for AArch64 Cortex-A53 erratum
1668 --disable-fix-cortex-a53-835769
1669 disable workaround
for AArch64 Cortex-A53 erratum
1673 --enable-fix-cortex-a53-843419
1674 enable workaround
for AArch64 Cortex-A53 erratum
1676 --disable-fix-cortex-a53-843419
1677 disable workaround
for AArch64 Cortex-A53 erratum
1680 --enable-gnu-unique-object
1681 enable the use of the @gnu_unique_object ELF
1682 extension on glibc systems
1683 --enable-linker-build-id
1684 compiler will always pass
--build-id to linker
1685 --enable-default-ssp enable Stack Smashing Protection as default
1686 --enable-maintainer-mode
1687 enable make rules and dependencies not useful
(and
1688 sometimes confusing
) to the casual installer
1689 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1690 thrashing on the build machine
1691 --enable-version-specific-runtime-libs
1692 specify that runtime libraries should be installed
1693 in a compiler-specific directory
1694 --enable-plugin enable plugin support
1695 --enable-host-shared build
host code as shared libraries
1696 --disable-libquadmath-support
1697 disable libquadmath support
for Fortran
1698 --enable-default-pie enable Position Independent Executable as default
1701 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1702 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1703 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1704 --with-local-prefix=DIR specifies directory to put
local include
1705 --with-native-system-header-dir=dir
1706 use dir as the directory to
look for standard
1707 system header files
in. Defaults to
/usr
/include.
1708 --with-build-sysroot=sysroot
1709 use sysroot as the system root during the build
1710 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1711 --with-gxx-include-dir=DIR
1712 specifies directory to put g
++ header files
1713 --with-cpp-install-dir=DIR
1714 install the user visible C preprocessor
in DIR
1715 (relative to PREFIX
) as well as PREFIX
/bin
1716 --with-gnu-ld arrange to work with GNU ld
1717 --with-ld arrange to use the specified ld
(full pathname
)
1718 --with-demangler-in-ld try to use demangler
in GNU ld
1719 --with-gnu-as arrange to work with GNU as
1720 --with-as arrange to use the specified as
(full pathname
)
1721 --with-stabs arrange to use stabs instead of
host debug format
1722 --with-dwarf2 force the default debug format to be DWARF
2
1723 --with-specs=SPECS add SPECS to driver command-line processing
1724 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1725 --with-bugurl=URL Direct users to URL to report a bug
1726 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1727 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1728 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1729 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1730 --with-gcc-major-version-only
1731 use only GCC major number in filesystem paths
1732 --with-pic try to use only PIC/non-PIC objects [default=use
1734 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1735 --with-plugin-ld=[ARG] specify the plugin linker
1736 --with-glibc-version=M.N
1737 assume GCC used with glibc version M.N or later
1738 --with-long-double-128 use 128-bit long double by default
1739 --with-gc={page,zone} this option is not supported anymore. It used to
1740 choose the garbage collection mechanism to use with
1742 --with-system-zlib use installed libz
1743 --with-linker-hash-style={sysv,gnu,both}
1744 specify the linker hash style
1745 --with-diagnostics-color={never,auto,auto-if-env,always}
1746 specify the default of -fdiagnostics-color option
1747 auto-if-env stands for -fdiagnostics-color=auto if
1748 GCC_COLOR environment variable is present and
1749 -fdiagnostics-color=never otherwise
1751 Some influential environment variables:
1752 CC C compiler command
1753 CFLAGS C compiler flags
1754 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1755 nonstandard directory <lib dir>
1756 LIBS libraries to pass to the linker, e.g. -l<library>
1757 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1758 you have headers in a nonstandard directory <include dir>
1759 CXX C++ compiler command
1760 CXXFLAGS C++ compiler flags
1761 CXXCPP C++ preprocessor
1763 GMPLIBS How to link GMP
1764 GMPINC How to find GMP include files
1765 ISLLIBS How to link isl
1766 ISLINC How to find isl include files
1768 Use these variables to override the choices made by `configure' or to
help
1769 it to
find libraries and programs with nonstandard names
/locations.
1771 Report bugs to the package provider.
1776 if test "$ac_init_help" = "recursive"; then
1777 # If there are subdirs, report their specific --help.
1778 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1779 test -d "$ac_dir" ||
1780 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1785 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1787 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788 # A ".." for each directory in $ac_dir_suffix.
1789 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790 case $ac_top_builddir_sub in
1791 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1792 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1795 ac_abs_top_builddir
=$ac_pwd
1796 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir
=$ac_top_build_prefix
1801 .
) # We are building in place.
1803 ac_top_srcdir
=$ac_top_builddir_sub
1804 ac_abs_top_srcdir
=$ac_pwd ;;
1805 [\\/]* | ?
:[\\/]* ) # Absolute name.
1806 ac_srcdir
=$srcdir$ac_dir_suffix;
1807 ac_top_srcdir
=$srcdir
1808 ac_abs_top_srcdir
=$srcdir ;;
1810 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1812 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1814 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1816 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1817 # Check for guested configure.
1818 if test -f "$ac_srcdir/configure.gnu"; then
1820 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821 elif test -f "$ac_srcdir/configure"; then
1823 $SHELL "$ac_srcdir/configure" --help=recursive
1825 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1827 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1835 generated by GNU Autoconf
2.64
1837 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1838 This configure
script is free software
; the Free Software Foundation
1839 gives unlimited permission to copy
, distribute and modify it.
1844 ## ------------------------ ##
1845 ## Autoconf initialization. ##
1846 ## ------------------------ ##
1848 # ac_fn_c_try_compile LINENO
1849 # --------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_compile
()
1853 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1854 rm -f conftest.
$ac_objext
1855 if { { ac_try
="$ac_compile"
1857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 } # ac_fn_c_try_compile
1886 # ac_fn_cxx_try_compile LINENO
1887 # ----------------------------
1888 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_compile ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext
1893 if { { ac_try="$ac_compile"
1895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1896 *) ac_try_echo
=$ac_try;;
1898 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_compile") 2>conftest.err
1902 if test -s conftest.err
; then
1903 grep -v '^ *+' conftest.err
>conftest.er1
1904 cat conftest.er1
>&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest.
$ac_objext; then :
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.
$ac_ext >&5
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1922 } # ac_fn_cxx_try_compile
1924 # ac_fn_cxx_try_cpp LINENO
1925 # ------------------------
1926 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_cxx_try_cpp
()
1929 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1930 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } >/dev/null && {
1946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_cxx_try_cpp
1961 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1962 # ---------------------------------------------------------
1963 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1964 # the include files in INCLUDES and setting the cache variable VAR
1966 ac_fn_cxx_check_header_mongrel ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973 $as_echo_n "(cached) " >&6
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1979 # Is the header compilable?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1981 $as_echo_n "checking $2 usability... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1987 if ac_fn_cxx_try_compile "$LINENO"; then :
1988 ac_header_compiler=yes
1990 ac_header_compiler=no
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1994 $as_echo "$ac_header_compiler" >&6; }
1996 # Is the header present?
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1998 $as_echo_n "checking $2 presence... " >&6; }
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2003 if ac_fn_cxx_try_cpp "$LINENO"; then :
2004 ac_header_preproc=yes
2006 ac_header_preproc=no
2008 rm -f conftest.err conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2010 $as_echo "$ac_header_preproc" >&6; }
2012 # So? What about this header?
2013 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2016 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2022 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2024 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2026 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2028 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2030 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2036 $as_echo_n "(cached) " >&6
2038 eval "$3=\$ac_header_compiler"
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_cxx_check_header_mongrel
2048 # ac_fn_cxx_try_run LINENO
2049 # ------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2051 # that executables *can* be run.
2052 ac_fn_cxx_try_run ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_link"
2057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2058 *) ac_try_echo
=$ac_try;;
2060 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>&5
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2066 { { case "(($ac_try" in
2067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_try") 2>&5
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; }; }; then :
2078 $as_echo "$as_me: program exited with status $ac_status" >&5
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2082 ac_retval=$ac_status
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 } # ac_fn_cxx_try_run
2090 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2091 # ---------------------------------------------------------
2092 # Tests whether HEADER exists and can be compiled using the include files in
2093 # INCLUDES, setting the cache variable VAR accordingly.
2094 ac_fn_cxx_check_header_compile ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100 $as_echo_n "(cached) " >&6
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2107 if ac_fn_cxx_try_compile "$LINENO"; then :
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 } # ac_fn_cxx_check_header_compile
2121 # ac_fn_c_try_cpp LINENO
2122 # ----------------------
2123 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_cpp conftest.$ac_ext"
2129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2130 *) ac_try_echo
=$ac_try;;
2132 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2136 if test -s conftest.err
; then
2137 grep -v '^ *+' conftest.err
>conftest.er1
2138 cat conftest.er1
>&5
2139 mv -f conftest.er1 conftest.err
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } >/dev
/null
&& {
2143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2144 test ! -s conftest.err
2148 $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.
$ac_ext >&5
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2158 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2159 # ----------------------------------------------
2160 # Tries to find the compile-time value of EXPR in a program that includes
2161 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2163 ac_fn_cxx_compute_int
()
2165 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2166 if test "$cross_compiling" = yes; then
2167 # Depending upon the size, compute the lo and hi bounds.
2168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) >= 0)];
2181 if ac_fn_cxx_try_compile
"$LINENO"; then :
2184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197 if ac_fn_cxx_try_compile
"$LINENO"; then :
2198 ac_hi
=$ac_mid; break
2200 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2201 if test $ac_lo -le $ac_mid; then
2205 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2216 static int test_array [1 - 2 * !(($2) < 0)];
2223 if ac_fn_cxx_try_compile
"$LINENO"; then :
2226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2232 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2239 if ac_fn_cxx_try_compile
"$LINENO"; then :
2240 ac_lo
=$ac_mid; break
2242 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2243 if test $ac_mid -le $ac_hi; then
2247 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2257 # Binary search between lo and hi bounds.
2258 while test "x$ac_lo" != "x$ac_hi"; do
2259 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2273 if ac_fn_cxx_try_compile
"$LINENO"; then :
2276 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2281 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2288 static long int longval () { return $2; }
2289 static unsigned long int ulongval () { return $2; }
2296 FILE *f = fopen ("conftest.val", "w");
2301 long int i = longval ();
2304 fprintf (f, "%ld", i);
2308 unsigned long int i = ulongval ();
2311 fprintf (f, "%lu", i);
2313 /* Do not output a trailing newline, as this causes \r\n confusion
2314 on some platforms. */
2315 return ferror (f) || fclose (f) != 0;
2321 if ac_fn_cxx_try_run
"$LINENO"; then :
2322 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2334 } # ac_fn_cxx_compute_int
2336 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2337 # ---------------------------------------------
2338 # Tests whether TYPE exists after having included INCLUDES, setting cache
2339 # variable VAR accordingly.
2340 ac_fn_cxx_check_type
()
2342 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2344 $as_echo_n "checking for $2... " >&6; }
2345 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2346 $as_echo_n "(cached) " >&6
2349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2361 if ac_fn_cxx_try_compile
"$LINENO"; then :
2362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2374 if ac_fn_cxx_try_compile
"$LINENO"; then :
2379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2388 } # ac_fn_cxx_check_type
2390 # ac_fn_c_find_intX_t LINENO BITS VAR
2391 # -----------------------------------
2392 # Finds a signed integer type with width BITS, setting cache variable VAR
2394 ac_fn_c_find_intX_t
()
2396 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2398 $as_echo_n "checking for int$2_t... " >&6; }
2399 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2400 $as_echo_n "(cached) " >&6
2403 for ac_type
in int
$2_t 'int' 'long int' \
2404 'long long int' 'short int' 'signed char'; do
2405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 $ac_includes_default
2411 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2418 if ac_fn_cxx_try_compile
"$LINENO"; then :
2419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $ac_includes_default
2425 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2426 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2433 if ac_fn_cxx_try_compile
"$LINENO"; then :
2440 eval "$3=\$ac_type" ;;
2443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2447 if test "x$as_val" = x
""no
; then :
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2459 } # ac_fn_c_find_intX_t
2461 # ac_fn_cxx_try_link LINENO
2462 # -------------------------
2463 # Try to link conftest.$ac_ext, and return whether this succeeded.
2464 ac_fn_cxx_try_link
()
2466 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2467 rm -f conftest.
$ac_objext conftest
$ac_exeext
2468 if { { ac_try
="$ac_link"
2470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474 $as_echo "$ac_try_echo"; } >&5
2475 (eval "$ac_link") 2>conftest.err
2477 if test -s conftest.err; then
2478 grep -v '^ *+' conftest.err >conftest.er1
2479 cat conftest.er1 >&5
2480 mv -f conftest.er1 conftest.err
2482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2483 test $ac_status = 0; } && {
2484 test -z "$ac_cxx_werror_flag" ||
2485 test ! -s conftest.err
2486 } && test -s conftest$ac_exeext && {
2487 test "$cross_compiling" = yes ||
2488 $as_test_x conftest$ac_exeext
2492 $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2497 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2498 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2499 # interfere with the next link command; also delete a directory that is
2500 # left behind by Apple's compiler. We do this before executing the actions.
2501 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2505 } # ac_fn_cxx_try_link
2507 # ac_fn_c_find_uintX_t LINENO BITS VAR
2508 # ------------------------------------
2509 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2511 ac_fn_c_find_uintX_t ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2515 $as_echo_n "checking for uint$2_t... " >&6; }
2516 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2517 $as_echo_n "(cached) " >&6
2520 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2521 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2524 $ac_includes_default
2528 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2535 if ac_fn_cxx_try_compile "$LINENO"; then :
2540 eval "$3=\$ac_type" ;;
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 if test "x$as_val" = x""no; then :
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557 } # ac_fn_c_find_uintX_t
2559 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2560 # ------------------------------------------------
2561 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2562 ac_fn_cxx_check_header_preproc ()
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2574 if ac_fn_cxx_try_cpp "$LINENO"; then :
2579 rm -f conftest.err conftest.$ac_ext
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2583 $as_echo "$ac_res" >&6; }
2584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2586 } # ac_fn_cxx_check_header_preproc
2588 # ac_fn_cxx_check_func LINENO FUNC VAR
2589 # ------------------------------------
2590 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2591 ac_fn_cxx_check_func ()
2593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2595 $as_echo_n "checking for $2... " >&6; }
2596 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2597 $as_echo_n "(cached) " >&6
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2601 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2603 #define $2 innocuous_$2
2605 /* System header to define __stub macros and hopefully few prototypes,
2606 which can conflict with char $2 (); below.
2607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2608 <limits.h> exists even on freestanding compilers. */
2611 # include <limits.h>
2613 # include <assert.h>
2618 /* Override any GCC internal prototype to avoid an error.
2619 Use char because int might match the return type of a GCC
2620 builtin and then its argument prototype would still apply. */
2625 /* The GNU C library defines this for functions which it implements
2626 to always fail with ENOSYS. Some functions are actually named
2627 something starting with __ and the normal name is an alias. */
2628 #if defined __stub_$2 || defined __stub___$2
2640 if ac_fn_cxx_try_link "$LINENO"; then :
2645 rm -f core conftest.err conftest.$ac_objext \
2646 conftest$ac_exeext conftest.$ac_ext
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 } # ac_fn_cxx_check_func
2655 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2656 # --------------------------------------
2657 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2658 ac_fn_cxx_check_decl ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2662 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2664 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2665 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2666 $as_echo_n "(cached) " >&6
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2674 #ifndef $as_decl_name
2676 (void) $as_decl_use;
2678 (void) $as_decl_name;
2686 if ac_fn_cxx_try_compile "$LINENO"; then :
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2698 } # ac_fn_cxx_check_decl
2700 # ac_fn_c_try_link LINENO
2701 # -----------------------
2702 # Try to link conftest.$ac_ext, and return whether this succeeded.
2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { { ac_try="$ac_link"
2709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2710 *) ac_try_echo
=$ac_try;;
2712 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714 (eval "$ac_link") 2>conftest.err
2716 if test -s conftest.err
; then
2717 grep -v '^ *+' conftest.err
>conftest.er1
2718 cat conftest.er1
>&5
2719 mv -f conftest.er1 conftest.err
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest
$ac_exeext && {
2726 test "$cross_compiling" = yes ||
2727 $as_test_x conftest
$ac_exeext
2731 $as_echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.
$ac_ext >&5
2736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2738 # interfere with the next link command; also delete a directory that is
2739 # left behind by Apple's compiler. We do this before executing the actions.
2740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2741 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2744 } # ac_fn_c_try_link
2746 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2747 # ----------------------------------------------
2748 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2749 ac_fn_c_check_header_preproc
()
2751 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2753 $as_echo_n "checking for $2... " >&6; }
2754 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2755 $as_echo_n "(cached) " >&6
2757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2761 if ac_fn_c_try_cpp
"$LINENO"; then :
2766 rm -f conftest.err conftest.
$ac_ext
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770 $as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2773 } # ac_fn_c_check_header_preproc
2775 # ac_fn_c_check_func LINENO FUNC VAR
2776 # ----------------------------------
2777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2778 ac_fn_c_check_func
()
2780 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2782 $as_echo_n "checking for $2... " >&6; }
2783 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2784 $as_echo_n "(cached) " >&6
2786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2790 #define $2 innocuous_$2
2792 /* System header to define __stub macros and hopefully few prototypes,
2793 which can conflict with char $2 (); below.
2794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2795 <limits.h> exists even on freestanding compilers. */
2798 # include <limits.h>
2800 # include <assert.h>
2805 /* Override any GCC internal prototype to avoid an error.
2806 Use char because int might match the return type of a GCC
2807 builtin and then its argument prototype would still apply. */
2812 /* The GNU C library defines this for functions which it implements
2813 to always fail with ENOSYS. Some functions are actually named
2814 something starting with __ and the normal name is an alias. */
2815 #if defined __stub_$2 || defined __stub___$2
2827 if ac_fn_c_try_link
"$LINENO"; then :
2832 rm -f core conftest.err conftest.
$ac_objext \
2833 conftest
$ac_exeext conftest.
$ac_ext
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2838 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2840 } # ac_fn_c_check_func
2841 cat >config.log
<<_ACEOF
2842 This file contains any messages produced by compilers while
2843 running configure, to aid debugging if configure makes a mistake.
2845 It was created by $as_me, which was
2846 generated by GNU Autoconf 2.64. Invocation command line was
2858 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2859 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2860 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2861 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2862 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2864 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2865 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2867 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2868 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2869 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2870 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2871 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2872 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2873 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir
=.
2882 $as_echo "PATH: $as_dir"
2898 # Keep a trace of the command line.
2899 # Strip out --no-create and --no-recursion so they do not pile up.
2900 # Strip out --silent because we don't want to record it for future runs.
2901 # Also quote any args containing shell meta-characters.
2902 # Make two passes to allow for proper duplicate-argument suppression.
2906 ac_must_keep_next
=false
2912 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2913 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2914 |
-silent |
--silent |
--silen |
--sile |
--sil)
2917 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2920 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2922 as_fn_append ac_configure_args1
" '$ac_arg'"
2923 if test $ac_must_keep_next = true
; then
2924 ac_must_keep_next
=false
# Got value, back to normal.
2927 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2928 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2929 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2930 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2931 case "$ac_configure_args0 " in
2932 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2935 -* ) ac_must_keep_next
=true
;;
2938 as_fn_append ac_configure_args
" '$ac_arg'"
2943 { ac_configure_args0
=; unset ac_configure_args0
;}
2944 { ac_configure_args1
=; unset ac_configure_args1
;}
2946 # When interrupted or exit'd, cleanup temporary files, and complete
2947 # config.log. We remove comments because anyway the quotes in there
2948 # would cause problems or look ugly.
2949 # WARNING: Use '\'' to represent an apostrophe within the trap.
2950 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2951 trap 'exit_status=$?
2952 # Save into config.log some information that might help in debugging.
2957 ## ---------------- ##
2958 ## Cache variables. ##
2959 ## ---------------- ##
2962 # The following way of writing the cache mishandles newlines in values,
2964 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2965 eval ac_val=\$$ac_var
2969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2973 _ | IFS | as_nl) ;; #(
2974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2975 *) { eval $ac_var=; unset $ac_var;} ;;
2980 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2981 *${as_nl}ac_space=\ *)
2983 "s/'\''/'\''\\\\'\'''\''/g;
2984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2995 ## ----------------- ##
2996 ## Output variables. ##
2997 ## ----------------- ##
3000 for ac_var in $ac_subst_vars
3002 eval ac_val=\$$ac_var
3004 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3006 $as_echo "$ac_var='\''$ac_val'\''"
3010 if test -n "$ac_subst_files"; then
3012 ## ------------------- ##
3013 ## File substitutions. ##
3014 ## ------------------- ##
3017 for ac_var
in $ac_subst_files
3019 eval ac_val
=\$
$ac_var
3021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3023 $as_echo "$ac_var='\''$ac_val'\''"
3028 if test -s confdefs.h; then
3038 test "$ac_signal" != 0 &&
3039 $as_echo "$as_me: caught signal $ac_signal"
3040 $as_echo "$as_me: exit $exit_status"
3042 rm -f core *.core core.conftest.* &&
3043 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3046 for ac_signal
in 1 2 13 15; do
3047 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3051 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3052 rm -f -r conftest
* confdefs.h
3054 $as_echo "/* confdefs.h */" > confdefs.h
3056 # Predefined preprocessor variables.
3058 cat >>confdefs.h
<<_ACEOF
3059 #define PACKAGE_NAME "$PACKAGE_NAME"
3062 cat >>confdefs.h
<<_ACEOF
3063 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3066 cat >>confdefs.h
<<_ACEOF
3067 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3070 cat >>confdefs.h
<<_ACEOF
3071 #define PACKAGE_STRING "$PACKAGE_STRING"
3074 cat >>confdefs.h
<<_ACEOF
3075 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3078 cat >>confdefs.h
<<_ACEOF
3079 #define PACKAGE_URL "$PACKAGE_URL"
3083 # Let the site file select an alternate cache file if it wants to.
3084 # Prefer an explicitly selected file to automatically selected ones.
3087 if test -n "$CONFIG_SITE"; then
3088 ac_site_file1
=$CONFIG_SITE
3089 elif test "x$prefix" != xNONE
; then
3090 ac_site_file1
=$prefix/share
/config.site
3091 ac_site_file2
=$prefix/etc
/config.site
3093 ac_site_file1
=$ac_default_prefix/share
/config.site
3094 ac_site_file2
=$ac_default_prefix/etc
/config.site
3096 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3098 test "x$ac_site_file" = xNONE
&& continue
3099 if test -r "$ac_site_file"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3101 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3102 sed 's/^/| /' "$ac_site_file" >&5
3107 if test -r "$cache_file"; then
3108 # Some versions of bash will fail to source /dev/null (special
3109 # files actually), so we avoid doing that.
3110 if test -f "$cache_file"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3112 $as_echo "$as_me: loading cache $cache_file" >&6;}
3114 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3115 *) .
"./$cache_file";;
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3120 $as_echo "$as_me: creating cache $cache_file" >&6;}
3124 # Check that the precious variables saved in the cache have kept the same
3126 ac_cache_corrupted
=false
3127 for ac_var
in $ac_precious_vars; do
3128 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3129 eval ac_new_set
=\
$ac_env_${ac_var}_set
3130 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3131 eval ac_new_val
=\
$ac_env_${ac_var}_value
3132 case $ac_old_set,$ac_new_set in
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3135 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3136 ac_cache_corrupted
=: ;;
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3139 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3140 ac_cache_corrupted
=: ;;
3143 if test "x$ac_old_val" != "x$ac_new_val"; then
3144 # differences in whitespace do not lead to failure.
3145 ac_old_val_w
=`echo x $ac_old_val`
3146 ac_new_val_w
=`echo x $ac_new_val`
3147 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3149 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3150 ac_cache_corrupted
=:
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3153 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3154 eval $ac_var=\
$ac_old_val
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3157 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3159 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3162 # Pass precious variables to config.status.
3163 if test "$ac_new_set" = set; then
3165 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3166 *) ac_arg
=$ac_var=$ac_new_val ;;
3168 case " $ac_configure_args " in
3169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3170 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3174 if $ac_cache_corrupted; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3178 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3179 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3181 ## -------------------- ##
3182 ## Main body of script. ##
3183 ## -------------------- ##
3186 ac_cpp
='$CPP $CPPFLAGS'
3187 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3196 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3199 gcc_version
=`cat $srcdir/BASE-VER`
3201 # Determine the host, build, and target systems
3203 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3204 for ac_t
in install-sh
install.sh shtool
; do
3205 if test -f "$ac_dir/$ac_t"; then
3207 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3212 if test -z "$ac_aux_dir"; then
3213 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3216 # These three variables are undocumented and unsupported,
3217 # and are intended to be withdrawn in a future Autoconf release.
3218 # They can cause serious problems if a builder's source tree is in a directory
3219 # whose full name contains unusual characters.
3220 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3221 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3222 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3225 # Make sure we can run config.sub.
3226 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3227 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3230 $as_echo_n "checking build system type... " >&6; }
3231 if test "${ac_cv_build+set}" = set; then :
3232 $as_echo_n "(cached) " >&6
3234 ac_build_alias
=$build_alias
3235 test "x$ac_build_alias" = x
&&
3236 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3237 test "x$ac_build_alias" = x
&&
3238 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3239 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3240 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3244 $as_echo "$ac_cv_build" >&6; }
3245 case $ac_cv_build in
3247 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3250 ac_save_IFS
=$IFS; IFS
='-'
3256 # Remember, the first character of IFS is used to create $*,
3257 # except with old shells:
3260 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3264 $as_echo_n "checking host system type... " >&6; }
3265 if test "${ac_cv_host+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3268 if test "x$host_alias" = x
; then
3269 ac_cv_host
=$ac_cv_build
3271 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3272 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3277 $as_echo "$ac_cv_host" >&6; }
3280 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3283 ac_save_IFS
=$IFS; IFS
='-'
3289 # Remember, the first character of IFS is used to create $*,
3290 # except with old shells:
3293 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3297 $as_echo_n "checking target system type... " >&6; }
3298 if test "${ac_cv_target+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3301 if test "x$target_alias" = x
; then
3302 ac_cv_target
=$ac_cv_host
3304 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3305 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3310 $as_echo "$ac_cv_target" >&6; }
3311 case $ac_cv_target in
3313 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3315 target
=$ac_cv_target
3316 ac_save_IFS
=$IFS; IFS
='-'
3322 # Remember, the first character of IFS is used to create $*,
3323 # except with old shells:
3326 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3329 # The aliases save the names the user supplied, while $host etc.
3330 # will get canonicalized.
3331 test -n "$target_alias" &&
3332 test "$program_prefix$program_suffix$program_transform_name" = \
3334 program_prefix
=${target_alias}-
3336 # Determine the noncanonical host name, for Ada.
3337 case ${build_alias} in
3338 "") build_noncanonical
=${build} ;;
3339 *) build_noncanonical
=${build_alias} ;;
3342 case ${host_alias} in
3343 "") host_noncanonical
=${build_noncanonical} ;;
3344 *) host_noncanonical
=${host_alias} ;;
3350 # Determine the noncanonical target name, for directory use.
3351 case ${target_alias} in
3352 "") target_noncanonical
=${host_noncanonical} ;;
3353 *) target_noncanonical
=${target_alias} ;;
3359 # Used for constructing correct paths for offload compilers.
3360 real_target_noncanonical
=${target_noncanonical}
3363 # Determine the target- and build-specific subdirectories
3365 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3366 # have matching libraries, they should use host libraries: Makefile.tpl
3367 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3368 # However, they still use the build modules, because the corresponding
3369 # host modules (e.g. bison) are only built for the host when bootstrap
3371 # - build_subdir is where we find build modules, and never changes.
3372 # - build_libsubdir is where we find build libraries, and can be overridden.
3374 # Prefix 'build-' so this never conflicts with target_subdir.
3375 build_subdir
="build-${build_noncanonical}"
3377 # Check whether --with-build-libsubdir was given.
3378 if test "${with_build_libsubdir+set}" = set; then :
3379 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3381 build_libsubdir
="$build_subdir"
3384 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3385 if ( test $srcdir = .
&& test -d gcc
) \
3386 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3387 host_subdir
="host-${host_noncanonical}"
3392 target_subdir
=${target_noncanonical}
3395 # Set program_transform_name
3396 test "$program_prefix" != NONE
&&
3397 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3398 # Use a double $ so make ignores it.
3399 test "$program_suffix" != NONE
&&
3400 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3401 # Double any \ or $.
3402 # By default was `s,x,x', remove it if useless.
3403 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3404 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3407 # Check for bogus environment variables.
3408 # Test if LIBRARY_PATH contains the notation for the current directory
3409 # since this would lead to problems installing/building glibc.
3410 # LIBRARY_PATH contains the current directory if one of the following
3412 # - one of the terminals (":" and ";") is the first or last sign
3413 # - two terminals occur directly after each other
3414 # - the path contains an element with a dot in it
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3416 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3417 case ${LIBRARY_PATH} in
3418 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3419 library_path_setting
="contains current directory"
3422 library_path_setting
="ok"
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3426 $as_echo "$library_path_setting" >&6; }
3427 if test "$library_path_setting" != "ok"; then
3429 *** LIBRARY_PATH shouldn't contain the current directory when
3430 *** building gcc. Please change the environment variable
3431 *** and run configure again." "$LINENO" 5
3434 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3435 # since this would lead to problems installing/building glibc.
3436 # GCC_EXEC_PREFIX contains the current directory if one of the following
3438 # - one of the terminals (":" and ";") is the first or last sign
3439 # - two terminals occur directly after each other
3440 # - the path contains an element with a dot in it
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3442 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3443 case ${GCC_EXEC_PREFIX} in
3444 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3445 gcc_exec_prefix_setting
="contains current directory"
3448 gcc_exec_prefix_setting
="ok"
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3452 $as_echo "$gcc_exec_prefix_setting" >&6; }
3453 if test "$gcc_exec_prefix_setting" != "ok"; then
3455 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3456 *** building gcc. Please change the environment variable
3457 *** and run configure again." "$LINENO" 5
3464 # Specify the local prefix
3467 # Check whether --with-local-prefix was given.
3468 if test "${with_local_prefix+set}" = set; then :
3469 withval
=$with_local_prefix; case "${withval}" in
3470 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3472 *) local_prefix
=$with_local_prefix ;;
3477 # Default local prefix if it is empty
3478 if test x
$local_prefix = x
; then
3479 local_prefix
=/usr
/local
3483 # Check whether --with-native-system-header-dir was given.
3484 if test "${with_native_system_header_dir+set}" = set; then :
3485 withval
=$with_native_system_header_dir;
3486 case ${with_native_system_header_dir} in
3487 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3488 /* |
[A-Za-z
]:[\\/]*) ;;
3489 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3491 configured_native_system_header_dir
="${withval}"
3494 configured_native_system_header_dir
=
3499 # Check whether --with-build-sysroot was given.
3500 if test "${with_build_sysroot+set}" = set; then :
3501 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3502 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3505 SYSROOT_CFLAGS_FOR_TARGET
=
3510 if test "x$prefix" = xNONE
; then
3511 test_prefix
=/usr
/local
3515 if test "x$exec_prefix" = xNONE
; then
3516 test_exec_prefix
=$test_prefix
3518 test_exec_prefix
=$exec_prefix
3522 # Check whether --with-sysroot was given.
3523 if test "${with_sysroot+set}" = set; then :
3524 withval
=$with_sysroot;
3525 case ${with_sysroot} in
3527 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3529 case ${with_sysroot} in
3530 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3531 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3534 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3535 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3537 case ${TARGET_SYSTEM_ROOT} in
3538 "${test_prefix}"|
"${test_prefix}/"*|\
3539 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3540 '${prefix}'|
'${prefix}/'*|\
3541 '${exec_prefix}'|
'${exec_prefix}/'*)
3542 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3543 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3550 TARGET_SYSTEM_ROOT_DEFINE
=
3551 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3559 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3560 # passed in by the toplevel make and thus we'd get different behavior
3561 # depending on where we built the sources.
3562 gcc_gxx_include_dir
=
3563 # Specify the g++ header file directory
3565 # Check whether --with-gxx-include-dir was given.
3566 if test "${with_gxx_include_dir+set}" = set; then :
3567 withval
=$with_gxx_include_dir; case "${withval}" in
3568 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3570 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3575 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3576 if test x
${gcc_gxx_include_dir} = x
; then
3577 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3578 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3580 libstdcxx_incdir
='include/c++/$(version)'
3581 if test x
$host != x
$target; then
3582 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3584 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3588 gcc_gxx_include_dir_add_sysroot
=0
3589 if test "${with_sysroot+set}" = set; then
3590 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3591 if test "${gcc_gxx_without_sysroot}"; then
3592 if test x
${with_sysroot} != x
/; then
3593 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3595 gcc_gxx_include_dir_add_sysroot
=1
3600 # Check whether --with-cpp_install_dir was given.
3601 if test "${with_cpp_install_dir+set}" = set; then :
3602 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3603 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3604 elif test x
$withval != xno
; then
3605 cpp_install_dir
=$withval
3610 # We would like to our source tree to be readonly. However when releases or
3611 # pre-releases are generated, the flex/bison generated files as well as the
3612 # various formats of manuals need to be included along with the rest of the
3613 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3617 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3618 # Check whether --enable-generated-files-in-srcdir was given.
3619 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3620 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3622 generated_files_in_srcdir
=no
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3627 $as_echo "$generated_files_in_srcdir" >&6; }
3629 if test "$generated_files_in_srcdir" = "yes"; then
3636 # -------------------
3637 # Find default linker
3638 # -------------------
3642 # Check whether --with-gnu-ld was given.
3643 if test "${with_gnu_ld+set}" = set; then :
3644 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3651 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3655 # With pre-defined ld
3657 # Check whether --with-ld was given.
3658 if test "${with_ld+set}" = set; then :
3659 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3662 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3663 if test ! -x "$DEFAULT_LINKER"; then
3664 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3665 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3667 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3671 cat >>confdefs.h
<<_ACEOF
3672 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3678 $as_echo_n "checking whether a default linker was specified... " >&6; }
3679 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3680 if test x
"$gnu_ld_flag" = x
"no"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3682 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3685 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3692 # With demangler in GNU ld
3694 # Check whether --with-demangler-in-ld was given.
3695 if test "${with_demangler_in_ld+set}" = set; then :
3696 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3702 # ----------------------
3703 # Find default assembler
3704 # ----------------------
3708 # Check whether --with-gnu-as was given.
3709 if test "${with_gnu_as+set}" = set; then :
3710 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3717 # Check whether --with-as was given.
3718 if test "${with_as+set}" = set; then :
3719 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3722 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3723 if test ! -x "$DEFAULT_ASSEMBLER"; then
3724 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3725 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3729 cat >>confdefs.h
<<_ACEOF
3730 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3736 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3737 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3738 if test x
"$gas_flag" = x
"no"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3740 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3743 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3754 # If a non-executable a.out is present (e.g. created by GNU as above even if
3755 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3756 # file, even when creating an executable, so an execution test fails.
3757 # Remove possible default executable files to avoid this.
3759 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3760 # Autoconf includes it.
3761 rm -f a.out a.exe b.out
3763 # Find the native compiler
3765 ac_cpp
='$CPP $CPPFLAGS'
3766 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3769 if test -n "$ac_tool_prefix"; then
3770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3771 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if test "${ac_cv_prog_CC+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3777 if test -n "$CC"; then
3778 ac_cv_prog_CC
="$CC" # Let the user override the test.
3780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir
=.
3785 for ac_exec_ext
in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 if test -n "$CC"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3808 if test -z "$ac_cv_prog_CC"; then
3810 # Extract the first word of "gcc", so it can be a program name with args.
3811 set dummy gcc
; ac_word
=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$ac_ct_CC"; then
3818 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir
=.
3825 for ac_exec_ext
in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_ac_ct_CC
="gcc"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3846 if test "x$ac_ct_CC" = x
; then
3849 case $cross_compiling:$ac_tool_warned in
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned
=yes ;;
3861 if test -z "$CC"; then
3862 if test -n "$ac_tool_prefix"; then
3863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3864 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if test "${ac_cv_prog_CC+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3870 if test -n "$CC"; then
3871 ac_cv_prog_CC
="$CC" # Let the user override the test.
3873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir
=.
3878 for ac_exec_ext
in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 if test -n "$CC"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3893 $as_echo "$CC" >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3902 if test -z "$CC"; then
3903 # Extract the first word of "cc", so it can be a program name with args.
3904 set dummy cc
; ac_word
=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_prog_CC+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3910 if test -n "$CC"; then
3911 ac_cv_prog_CC
="$CC" # Let the user override the test.
3914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir
=.
3919 for ac_exec_ext
in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3922 ac_prog_rejected
=yes
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 if test $ac_prog_rejected = yes; then
3934 # We found a bogon in the path, so make sure we never use it.
3935 set dummy
$ac_cv_prog_CC
3937 if test $# != 0; then
3938 # We chose a different compiler from the bogus one.
3939 # However, it has the same basename, so the bogon will be chosen
3940 # first if we set CC to just the basename; use the full file name.
3942 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3948 if test -n "$CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3958 if test -z "$CC"; then
3959 if test -n "$ac_tool_prefix"; then
3960 for ac_prog
in cl.exe
3962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3963 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if test "${ac_cv_prog_CC+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3969 if test -n "$CC"; then
3970 ac_cv_prog_CC
="$CC" # Let the user override the test.
3972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3976 test -z "$as_dir" && as_dir
=.
3977 for ac_exec_ext
in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 if test -n "$CC"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3992 $as_echo "$CC" >&6; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3999 test -n "$CC" && break
4002 if test -z "$CC"; then
4004 for ac_prog
in cl.exe
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy
$ac_prog; ac_word
=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4013 if test -n "$ac_ct_CC"; then
4014 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir
=.
4021 for ac_exec_ext
in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023 ac_cv_prog_ac_ct_CC
="$ac_prog"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4034 if test -n "$ac_ct_CC"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4036 $as_echo "$ac_ct_CC" >&6; }
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4043 test -n "$ac_ct_CC" && break
4046 if test "x$ac_ct_CC" = x
; then
4049 case $cross_compiling:$ac_tool_warned in
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4053 ac_tool_warned
=yes ;;
4062 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064 as_fn_error
"no acceptable C compiler found in \$PATH
4065 See \`config.log' for more details." "$LINENO" 5; }
4067 # Provide some information about the compiler.
4068 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4071 for ac_option
in --version -v -V -qversion; do
4072 { { ac_try
="$ac_compiler $ac_option >&5"
4074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4081 if test -s conftest.err; then
4083 ... rest of stderr output deleted ...
4084 10q' conftest.err >conftest.er1
4085 cat conftest.er1 >&5
4086 rm -f conftest.er1 conftest.err
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4103 ac_clean_files_save=$ac_clean_files
4104 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4105 # Try to create an executable without -o first, disregard a.out.
4106 # It will help us diagnose broken compilers, and finding out an intuition
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4109 $as_echo_n "checking for C compiler default output file name... " >&6; }
4110 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4112 # The possible output files:
4113 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4116 for ac_file in $ac_files
4119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4120 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4125 if { { ac_try="$ac_link_default"
4127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4128 *) ac_try_echo
=$ac_try;;
4130 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 $as_echo "$ac_try_echo"; } >&5
4132 (eval "$ac_link_default") 2>&5
4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135 test $ac_status = 0; }; then :
4136 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4137 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4138 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4139 # so that the user can short-circuit this test for compilers unknown to
4141 for ac_file
in $ac_files ''
4143 test -f "$ac_file" ||
continue
4145 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4148 # We found the default executable, but exeext='' is most
4152 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4154 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4156 # We set ac_cv_exeext here because the later test for it is not
4157 # safe: cross compilers may not add the suffix if given an `-o'
4158 # argument, so we may need to know it at that point already.
4159 # Even if this section looks crufty: it has the advantage of
4166 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4172 $as_echo "$ac_file" >&6; }
4173 if test -z "$ac_file"; then :
4174 $as_echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.
$ac_ext >&5
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 { as_fn_set_status
77
4180 as_fn_error
"C compiler cannot create executables
4181 See \`config.log' for more details." "$LINENO" 5; }; }
4183 ac_exeext
=$ac_cv_exeext
4185 # Check that the compiler produces executables we can run. If not, either
4186 # the compiler is broken, or we cross compile.
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4188 $as_echo_n "checking whether the C compiler works... " >&6; }
4189 # If not cross compiling, check that we can run a simple program.
4190 if test "$cross_compiling" != yes; then
4191 if { ac_try
='./$ac_file'
4192 { { case "(($ac_try" in
4193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_try") 2>&5
4200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }; }; then
4204 if test "$cross_compiling" = maybe; then
4207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209 as_fn_error "cannot run C compiled programs.
4210 If you meant to cross compile
, use \
`--host'.
4211 See \`config.log
' for more details." "$LINENO" 5; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4216 $as_echo "yes" >&6; }
4218 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4219 ac_clean_files=$ac_clean_files_save
4220 # Check that the compiler produces executables we can run. If not, either
4221 # the compiler is broken, or we cross compile.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4223 $as_echo_n "checking whether we are cross compiling... " >&6; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4225 $as_echo "$cross_compiling" >&6; }
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4228 $as_echo_n "checking for suffix of executables... " >&6; }
4229 if { { ac_try="$ac_link"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 $as_echo "$ac_try_echo"; } >&5
4236 (eval "$ac_link") 2>&5
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }; then :
4240 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4241 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4242 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4244 for ac_file
in conftest.exe conftest conftest.
*; do
4245 test -f "$ac_file" ||
continue
4247 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4248 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4257 See \`config.log' for more details." "$LINENO" 5; }
4259 rm -f conftest
$ac_cv_exeext
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4261 $as_echo "$ac_cv_exeext" >&6; }
4263 rm -f conftest.
$ac_ext
4264 EXEEXT
=$ac_cv_exeext
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4267 $as_echo_n "checking for suffix of object files... " >&6; }
4268 if test "${ac_cv_objext+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4282 rm -f conftest.o conftest.obj
4283 if { { ac_try
="$ac_compile"
4285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_compile") 2>&5
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }; then :
4294 for ac_file in conftest.o conftest.obj conftest.*; do
4295 test -f "$ac_file" || continue;
4297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4303 $as_echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error "cannot compute suffix of object files
: cannot compile
4309 See \
`config.log' for more details." "$LINENO" 5; }
4311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314 $as_echo "$ac_cv_objext" >&6; }
4315 OBJEXT=$ac_cv_objext
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4319 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4336 if ac_fn_c_try_compile "$LINENO"; then :
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347 if test $ac_compiler_gnu = yes; then
4352 ac_test_CFLAGS=${CFLAGS+set}
4353 ac_save_CFLAGS=$CFLAGS
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4356 if test "${ac_cv_prog_cc_g+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4359 ac_save_c_werror_flag=$ac_c_werror_flag
4360 ac_c_werror_flag=yes
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 if ac_fn_c_try_compile "$LINENO"; then :
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_c_werror_flag=$ac_save_c_werror_flag
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4405 if ac_fn_c_try_compile "$LINENO"; then :
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 ac_c_werror_flag=$ac_save_c_werror_flag
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416 $as_echo "$ac_cv_prog_cc_g" >&6; }
4417 if test "$ac_test_CFLAGS" = set; then
4418 CFLAGS=$ac_save_CFLAGS
4419 elif test $ac_cv_prog_cc_g = yes; then
4420 if test "$GCC" = yes; then
4426 if test "$GCC" = yes; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_cv_prog_cc_c89=no
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4443 #include <sys/types.h>
4444 #include <sys/stat.h>
4445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4446 struct buf { int x; };
4447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4448 static char *e (p, i)
4454 static char *f (char * (*g) (char **, int), char **p, ...)
4459 s = g (p, va_arg (v,int));
4464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4465 function prototypes and stuff, but not '\xHH' hex character constants.
4466 These don't provoke an error unfortunately, instead are silently treated
4467 as 'x'. The following induces an error, until -std is added to get
4468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4469 array size at least. It's necessary to write '\x00'==0 to get something
4470 that's true only with -std. */
4471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4474 inside strings and character constants. */
4476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4478 int test (int i, double x);
4479 struct s1 {int (*f) (int a);};
4480 struct s2 {int (*f) (double a);};
4481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4495 CC="$ac_save_CC $ac_arg"
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 ac_cv_prog_cc_c89=$ac_arg
4499 rm -f core conftest.err conftest.$ac_objext
4500 test "x$ac_cv_prog_cc_c89" != "xno" && break
4502 rm -f conftest.$ac_ext
4507 case "x$ac_cv_prog_cc_c89" in
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4510 $as_echo "none needed" >&6; } ;;
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4513 $as_echo "unsupported" >&6; } ;;
4515 CC="$CC $ac_cv_prog_cc_c89"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4519 if test "x$ac_cv_prog_cc_c89" != xno; then :
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530 ac_cpp='$CXXCPP $CPPFLAGS'
4531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4534 if test -z "$CXX"; then
4535 if test -n "$CCC"; then
4538 if test -n "$ac_tool_prefix"; then
4539 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_CXX+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4548 if test -n "$CXX"; then
4549 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 if test -n "$CXX"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4571 $as_echo "$CXX" >&6; }
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4578 test -n "$CXX" && break
4581 if test -z "$CXX"; then
4583 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4585 # Extract the first word of "$ac_prog", so it can be a program name with args.
4586 set dummy $ac_prog; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4592 if test -n "$ac_ct_CXX"; then
4593 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_ac_ct_CXX="$ac_prog"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4613 if test -n "$ac_ct_CXX"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4615 $as_echo "$ac_ct_CXX" >&6; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4622 test -n "$ac_ct_CXX" && break
4625 if test "x$ac_ct_CXX" = x; then
4628 case $cross_compiling:$ac_tool_warned in
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4640 # Provide some information about the compiler.
4641 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4644 for ac_option in --version -v -V -qversion; do
4645 { { ac_try="$ac_compiler $ac_option >&5"
4647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4648 *) ac_try_echo
=$ac_try;;
4650 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651 $as_echo "$ac_try_echo"; } >&5
4652 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4654 if test -s conftest.err
; then
4656 ... rest of stderr output deleted ...
4657 10q' conftest.err
>conftest.er1
4658 cat conftest.er1
>&5
4659 rm -f conftest.er1 conftest.err
4661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4662 test $ac_status = 0; }
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4666 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4667 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4684 if ac_fn_cxx_try_compile
"$LINENO"; then :
4689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4690 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4694 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4695 if test $ac_compiler_gnu = yes; then
4700 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4701 ac_save_CXXFLAGS
=$CXXFLAGS
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4703 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4704 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4707 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4708 ac_cxx_werror_flag
=yes
4711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4722 if ac_fn_cxx_try_compile
"$LINENO"; then :
4723 ac_cv_prog_cxx_g
=yes
4726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4737 if ac_fn_cxx_try_compile
"$LINENO"; then :
4740 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4753 if ac_fn_cxx_try_compile
"$LINENO"; then :
4754 ac_cv_prog_cxx_g
=yes
4756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4761 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4764 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4765 if test "$ac_test_CXXFLAGS" = set; then
4766 CXXFLAGS
=$ac_save_CXXFLAGS
4767 elif test $ac_cv_prog_cxx_g = yes; then
4768 if test "$GXX" = yes; then
4774 if test "$GXX" = yes; then
4781 ac_cpp
='$CPP $CPPFLAGS'
4782 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4789 if test -n "$ac_tool_prefix"; then
4790 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4791 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4797 if test -n "$GNATBIND"; then
4798 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir
=.
4805 for ac_exec_ext
in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 GNATBIND
=$ac_cv_prog_GNATBIND
4818 if test -n "$GNATBIND"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4820 $as_echo "$GNATBIND" >&6; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4828 if test -z "$ac_cv_prog_GNATBIND"; then
4829 ac_ct_GNATBIND
=$GNATBIND
4830 # Extract the first word of "gnatbind", so it can be a program name with args.
4831 set dummy gnatbind
; ac_word
=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4837 if test -n "$ac_ct_GNATBIND"; then
4838 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir
=.
4845 for ac_exec_ext
in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4858 if test -n "$ac_ct_GNATBIND"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4860 $as_echo "$ac_ct_GNATBIND" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4866 if test "x$ac_ct_GNATBIND" = x
; then
4869 case $cross_compiling:$ac_tool_warned in
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned
=yes ;;
4875 GNATBIND
=$ac_ct_GNATBIND
4878 GNATBIND
="$ac_cv_prog_GNATBIND"
4881 if test -n "$ac_tool_prefix"; then
4882 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4883 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4889 if test -n "$GNATMAKE"; then
4890 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir
=.
4897 for ac_exec_ext
in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 GNATMAKE
=$ac_cv_prog_GNATMAKE
4910 if test -n "$GNATMAKE"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4912 $as_echo "$GNATMAKE" >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4920 if test -z "$ac_cv_prog_GNATMAKE"; then
4921 ac_ct_GNATMAKE
=$GNATMAKE
4922 # Extract the first word of "gnatmake", so it can be a program name with args.
4923 set dummy gnatmake
; ac_word
=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4929 if test -n "$ac_ct_GNATMAKE"; then
4930 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir
=.
4937 for ac_exec_ext
in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4950 if test -n "$ac_ct_GNATMAKE"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4952 $as_echo "$ac_ct_GNATMAKE" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4958 if test "x$ac_ct_GNATMAKE" = x
; then
4961 case $cross_compiling:$ac_tool_warned in
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned
=yes ;;
4967 GNATMAKE
=$ac_ct_GNATMAKE
4970 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4974 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4975 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4978 cat >conftest.adb
<<EOF
4979 procedure conftest is begin null; end conftest;
4981 acx_cv_cc_gcc_supports_ada
=no
4982 # There is a bug in old released versions of GCC which causes the
4983 # driver to exit successfully when the appropriate language module
4984 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4985 # Therefore we must check for the error message as well as an
4986 # unsuccessful exit.
4987 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4988 # given a .adb file, but produce no object file. So we must check
4989 # if an object file was really produced to guard against this.
4990 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4991 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4992 acx_cv_cc_gcc_supports_ada
=yes
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4997 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4999 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5006 # Do configure tests with the C++ compiler, since that's what we build with.
5008 ac_cpp
='$CXXCPP $CPPFLAGS'
5009 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5014 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5015 # optimizations to be activated explicitly by the toplevel.
5017 */prev-gcc
/xgcc
*) ;;
5018 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5019 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5024 # Determine PICFLAG for target gnatlib.
5030 # PIC is the default on some targets or must not be used.
5032 # For darwin, common symbols are not allowed in MH_DYLIB files
5034 # If we are using a compiler supporting mdynamic-no-pic
5035 # and the option has been tested as safe to add, then cancel
5036 # it here, since the code generated is incompatible with shared
5038 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5039 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5043 # PIC is the default.
5046 # PIC is the default for 64-bit PA HP-UX.
5048 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5050 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5052 i
[34567]86-*-interix[3-9]*)
5053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5054 # Instead, we relocate shared libraries at runtime.
5056 i
[34567]86-*-nto-qnx*)
5057 # QNX uses GNU C++, but need to define -shared option too, otherwise
5059 PICFLAG_FOR_TARGET
='-fPIC -shared'
5061 i
[34567]86-pc-msdosdjgpp*)
5062 # DJGPP does not support shared libraries at all.
5065 # On IA64 HP-UX, PIC is the default but the pic flag
5066 # sets the default TLS model and affects inlining.
5067 PICFLAG_FOR_TARGET
=-fPIC
5070 # PIC is the default.
5072 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5073 # All AIX code is PIC.
5076 # Some targets support both -fPIC and -fpic, but prefer the latter.
5078 i
[34567]86-*-* | x86_64-
*-*)
5079 PICFLAG_FOR_TARGET
=-fpic
5081 # FIXME: Override -fPIC default in libgcc only?
5082 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5083 PICFLAG_FOR_TARGET
=-fpic
5085 # FIXME: Simplify to sh*-*-netbsd*?
5086 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5087 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5088 PICFLAG_FOR_TARGET
=-fpic
5090 # Default to -fPIC unless specified otherwise.
5092 PICFLAG_FOR_TARGET
=-fPIC
5096 # If the user explicitly uses -fpic/-fPIC, keep that.
5097 case "${CFLAGS_FOR_TARGET}" in
5099 PICFLAG_FOR_TARGET
=-fpic
5102 PICFLAG_FOR_TARGET
=-fPIC
5108 # -------------------------
5109 # Check C compiler features
5110 # -------------------------
5114 ac_cpp
='$CXXCPP $CPPFLAGS'
5115 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5119 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5120 if test -z "$CXXCPP"; then
5121 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5124 # Double quotes because CXXCPP needs to be expanded
5125 for CXXCPP
in "$CXX -E" "/lib/cpp"
5128 for ac_cxx_preproc_warn_flag
in '' yes
5130 # Use a header file that comes with gcc, so configuring glibc
5131 # with a fresh cross-compiler works.
5132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 # <limits.h> exists even on freestanding compilers.
5134 # On the NeXT, cc -E runs the code through the compiler's parser,
5135 # not just through cpp. "Syntax error" is here to catch this case.
5136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5139 # include <limits.h>
5141 # include <assert.h>
5145 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5148 # Broken: fails on valid input.
5151 rm -f conftest.err conftest.
$ac_ext
5153 # OK, works on sane cases. Now check whether nonexistent headers
5154 # can be detected and how.
5155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #include <ac_nonexistent.h>
5159 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5160 # Broken: success on invalid input.
5163 # Passes both tests.
5167 rm -f conftest.err conftest.
$ac_ext
5170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5171 rm -f conftest.err conftest.
$ac_ext
5172 if $ac_preproc_ok; then :
5177 ac_cv_prog_CXXCPP
=$CXXCPP
5180 CXXCPP
=$ac_cv_prog_CXXCPP
5182 ac_cv_prog_CXXCPP
=$CXXCPP
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5185 $as_echo "$CXXCPP" >&6; }
5187 for ac_cxx_preproc_warn_flag
in '' yes
5189 # Use a header file that comes with gcc, so configuring glibc
5190 # with a fresh cross-compiler works.
5191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5192 # <limits.h> exists even on freestanding compilers.
5193 # On the NeXT, cc -E runs the code through the compiler's parser,
5194 # not just through cpp. "Syntax error" is here to catch this case.
5195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5198 # include <limits.h>
5200 # include <assert.h>
5204 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5207 # Broken: fails on valid input.
5210 rm -f conftest.err conftest.
$ac_ext
5212 # OK, works on sane cases. Now check whether nonexistent headers
5213 # can be detected and how.
5214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 #include <ac_nonexistent.h>
5218 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5219 # Broken: success on invalid input.
5222 # Passes both tests.
5226 rm -f conftest.err conftest.
$ac_ext
5229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5230 rm -f conftest.err conftest.
$ac_ext
5231 if $ac_preproc_ok; then :
5234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5236 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5237 See \`config.log' for more details." "$LINENO" 5; }
5241 ac_cpp
='$CXXCPP $CPPFLAGS'
5242 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5249 if test "${ac_cv_path_GREP+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5252 if test -z "$GREP"; then
5253 ac_path_GREP_found
=false
5254 # Loop through the user's path and test for each of PROGNAME-LIST
5255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5259 test -z "$as_dir" && as_dir
=.
5260 for ac_prog
in grep ggrep
; do
5261 for ac_exec_ext
in '' $ac_executable_extensions; do
5262 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5263 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5264 # Check for GNU ac_path_GREP and select it if it is found.
5265 # Check for GNU $ac_path_GREP
5266 case `"$ac_path_GREP" --version 2>&1` in
5268 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5271 $as_echo_n 0123456789 >"conftest.in"
5274 cat "conftest.in" "conftest.in" >"conftest.tmp"
5275 mv "conftest.tmp" "conftest.in"
5276 cp "conftest.in" "conftest.nl"
5277 $as_echo 'GREP' >> "conftest.nl"
5278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5279 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5280 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5282 # Best one so far, save it but keep looking for a better one
5283 ac_cv_path_GREP
="$ac_path_GREP"
5284 ac_path_GREP_max
=$ac_count
5286 # 10*(2^10) chars as input seems more than enough
5287 test $ac_count -gt 10 && break
5289 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5292 $ac_path_GREP_found && break 3
5297 if test -z "$ac_cv_path_GREP"; then
5298 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5301 ac_cv_path_GREP
=$GREP
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5306 $as_echo "$ac_cv_path_GREP" >&6; }
5307 GREP
="$ac_cv_path_GREP"
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5311 $as_echo_n "checking for egrep... " >&6; }
5312 if test "${ac_cv_path_EGREP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5315 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5316 then ac_cv_path_EGREP
="$GREP -E"
5318 if test -z "$EGREP"; then
5319 ac_path_EGREP_found
=false
5320 # Loop through the user's path and test for each of PROGNAME-LIST
5321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5322 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5325 test -z "$as_dir" && as_dir
=.
5326 for ac_prog
in egrep; do
5327 for ac_exec_ext
in '' $ac_executable_extensions; do
5328 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5329 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5330 # Check for GNU ac_path_EGREP and select it if it is found.
5331 # Check for GNU $ac_path_EGREP
5332 case `"$ac_path_EGREP" --version 2>&1` in
5334 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5337 $as_echo_n 0123456789 >"conftest.in"
5340 cat "conftest.in" "conftest.in" >"conftest.tmp"
5341 mv "conftest.tmp" "conftest.in"
5342 cp "conftest.in" "conftest.nl"
5343 $as_echo 'EGREP' >> "conftest.nl"
5344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5345 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5346 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5348 # Best one so far, save it but keep looking for a better one
5349 ac_cv_path_EGREP
="$ac_path_EGREP"
5350 ac_path_EGREP_max
=$ac_count
5352 # 10*(2^10) chars as input seems more than enough
5353 test $ac_count -gt 10 && break
5355 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5358 $ac_path_EGREP_found && break 3
5363 if test -z "$ac_cv_path_EGREP"; then
5364 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 ac_cv_path_EGREP
=$EGREP
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5373 $as_echo "$ac_cv_path_EGREP" >&6; }
5374 EGREP
="$ac_cv_path_EGREP"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5378 $as_echo_n "checking for ANSI C header files... " >&6; }
5379 if test "${ac_cv_header_stdc+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5397 if ac_fn_cxx_try_compile
"$LINENO"; then :
5398 ac_cv_header_stdc
=yes
5400 ac_cv_header_stdc
=no
5402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5404 if test $ac_cv_header_stdc = yes; then
5405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 $EGREP "memchr" >/dev
/null
2>&1; then :
5415 ac_cv_header_stdc
=no
5421 if test $ac_cv_header_stdc = yes; then
5422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5429 $EGREP "free" >/dev
/null
2>&1; then :
5432 ac_cv_header_stdc
=no
5438 if test $ac_cv_header_stdc = yes; then
5439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5440 if test "$cross_compiling" = yes; then :
5443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5447 #if ((' ' & 0x0FF) == 0x020)
5448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5451 # define ISLOWER(c) \
5452 (('a' <= (c) && (c) <= 'i') \
5453 || ('j' <= (c) && (c) <= 'r') \
5454 || ('s' <= (c) && (c) <= 'z'))
5455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5463 for (i = 0; i < 256; i++)
5464 if (XOR (islower (i), ISLOWER (i))
5465 || toupper (i) != TOUPPER (i))
5470 if ac_fn_cxx_try_run
"$LINENO"; then :
5473 ac_cv_header_stdc
=no
5475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5476 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5482 $as_echo "$ac_cv_header_stdc" >&6; }
5483 if test $ac_cv_header_stdc = yes; then
5485 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5490 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5491 inttypes.h stdint.h unistd.h
5493 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5494 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5496 eval as_val
=\$
$as_ac_Header
5497 if test "x$as_val" = x
""yes; then :
5498 cat >>confdefs.h
<<_ACEOF
5499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5508 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5509 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5516 if test "$MINIX" = yes; then
5518 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5521 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5524 $as_echo "#define _MINIX 1" >>confdefs.h
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5530 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5531 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5537 # define __EXTENSIONS__ 1
5538 $ac_includes_default
5547 if ac_fn_cxx_try_compile
"$LINENO"; then :
5548 ac_cv_safe_to_define___extensions__
=yes
5550 ac_cv_safe_to_define___extensions__
=no
5552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5555 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5556 test $ac_cv_safe_to_define___extensions__ = yes &&
5557 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5559 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5561 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5563 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5565 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5569 ac_cpp
='$CPP $CPPFLAGS'
5570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5574 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5575 # On Suns, sometimes $CPP names a directory.
5576 if test -n "$CPP" && test -d "$CPP"; then
5579 if test -z "$CPP"; then
5580 if test "${ac_cv_prog_CPP+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5583 # Double quotes because CPP needs to be expanded
5584 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5587 for ac_c_preproc_warn_flag
in '' yes
5589 # Use a header file that comes with gcc, so configuring glibc
5590 # with a fresh cross-compiler works.
5591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 # <limits.h> exists even on freestanding compilers.
5593 # On the NeXT, cc -E runs the code through the compiler's parser,
5594 # not just through cpp. "Syntax error" is here to catch this case.
5595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5598 # include <limits.h>
5600 # include <assert.h>
5604 if ac_fn_c_try_cpp
"$LINENO"; then :
5607 # Broken: fails on valid input.
5610 rm -f conftest.err conftest.
$ac_ext
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
5614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <ac_nonexistent.h>
5618 if ac_fn_c_try_cpp
"$LINENO"; then :
5619 # Broken: success on invalid input.
5622 # Passes both tests.
5626 rm -f conftest.err conftest.
$ac_ext
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.err conftest.
$ac_ext
5631 if $ac_preproc_ok; then :
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5644 $as_echo "$CPP" >&6; }
5646 for ac_c_preproc_warn_flag
in '' yes
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5657 # include <limits.h>
5659 # include <assert.h>
5663 if ac_fn_c_try_cpp
"$LINENO"; then :
5666 # Broken: fails on valid input.
5669 rm -f conftest.err conftest.
$ac_ext
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5677 if ac_fn_c_try_cpp
"$LINENO"; then :
5678 # Broken: success on invalid input.
5681 # Passes both tests.
5685 rm -f conftest.err conftest.
$ac_ext
5688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5689 rm -f conftest.err conftest.
$ac_ext
5690 if $ac_preproc_ok; then :
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5696 See \`config.log' for more details." "$LINENO" 5; }
5700 ac_cpp
='$CXXCPP $CPPFLAGS'
5701 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5706 $as_echo_n "checking for inline... " >&6; }
5707 if test "${ac_cv_c_inline+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5711 for ac_kw
in inline __inline__ __inline
; do
5712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5716 static $ac_kw foo_t static_foo () {return 0; }
5717 $ac_kw foo_t foo () {return 0; }
5721 if ac_fn_cxx_try_compile
"$LINENO"; then :
5722 ac_cv_c_inline
=$ac_kw
5724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5725 test "$ac_cv_c_inline" != no
&& break
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5730 $as_echo "$ac_cv_c_inline" >&6; }
5732 case $ac_cv_c_inline in
5735 case $ac_cv_c_inline in
5737 *) ac_val
=$ac_cv_c_inline;;
5739 cat >>confdefs.h
<<_ACEOF
5741 #define inline $ac_val
5748 # Check whether --enable-largefile was given.
5749 if test "${enable_largefile+set}" = set; then :
5750 enableval
=$enable_largefile;
5753 if test "$enable_largefile" != no
; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5756 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5757 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5760 ac_cv_sys_largefile_CC
=no
5761 if test "$GCC" != yes; then
5764 # IRIX 6.2 and later do not support large files by default,
5765 # so use the C compiler's -n32 option if that helps.
5766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #include <sys/types.h>
5769 /* Check that off_t can represent 2**63 - 1 correctly.
5770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771 since some C++ compilers masquerading as C compilers
5772 incorrectly reject 9223372036854775807. */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775 && LARGE_OFF_T % 2147483647 == 1)
5785 if ac_fn_cxx_try_compile
"$LINENO"; then :
5788 rm -f core conftest.err conftest.
$ac_objext
5790 if ac_fn_cxx_try_compile
"$LINENO"; then :
5791 ac_cv_sys_largefile_CC
=' -n32'; break
5793 rm -f core conftest.err conftest.
$ac_objext
5797 rm -f conftest.
$ac_ext
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5801 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5802 if test "$ac_cv_sys_largefile_CC" != no
; then
5803 CC
=$CC$ac_cv_sys_largefile_CC
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5807 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5808 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #include <sys/types.h>
5815 /* Check that off_t can represent 2**63 - 1 correctly.
5816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5817 since some C++ compilers masquerading as C compilers
5818 incorrectly reject 9223372036854775807. */
5819 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5821 && LARGE_OFF_T % 2147483647 == 1)
5831 if ac_fn_cxx_try_compile
"$LINENO"; then :
5832 ac_cv_sys_file_offset_bits
=no
; break
5834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #define _FILE_OFFSET_BITS 64
5838 #include <sys/types.h>
5839 /* Check that off_t can represent 2**63 - 1 correctly.
5840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5841 since some C++ compilers masquerading as C compilers
5842 incorrectly reject 9223372036854775807. */
5843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5845 && LARGE_OFF_T % 2147483647 == 1)
5855 if ac_fn_cxx_try_compile
"$LINENO"; then :
5856 ac_cv_sys_file_offset_bits
=64; break
5858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5859 ac_cv_sys_file_offset_bits
=unknown
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5864 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5865 case $ac_cv_sys_file_offset_bits in #(
5868 cat >>confdefs.h
<<_ACEOF
5869 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5874 if test $ac_cv_sys_file_offset_bits = unknown
; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5876 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5877 if test "${ac_cv_sys_large_files+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #include <sys/types.h>
5884 /* Check that off_t can represent 2**63 - 1 correctly.
5885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5886 since some C++ compilers masquerading as C compilers
5887 incorrectly reject 9223372036854775807. */
5888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5890 && LARGE_OFF_T % 2147483647 == 1)
5900 if ac_fn_cxx_try_compile
"$LINENO"; then :
5901 ac_cv_sys_large_files
=no
; break
5903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 #define _LARGE_FILES 1
5907 #include <sys/types.h>
5908 /* Check that off_t can represent 2**63 - 1 correctly.
5909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5910 since some C++ compilers masquerading as C compilers
5911 incorrectly reject 9223372036854775807. */
5912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5914 && LARGE_OFF_T % 2147483647 == 1)
5924 if ac_fn_cxx_try_compile
"$LINENO"; then :
5925 ac_cv_sys_large_files
=1; break
5927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5928 ac_cv_sys_large_files
=unknown
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5933 $as_echo "$ac_cv_sys_large_files" >&6; }
5934 case $ac_cv_sys_large_files in #(
5937 cat >>confdefs.h
<<_ACEOF
5938 #define _LARGE_FILES $ac_cv_sys_large_files
5947 # sizeof(char) is 1 by definition.
5948 # The cast to long int works around a bug in the HP C Compiler
5949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5951 # This bug is HP SR number 8606223364.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5953 $as_echo_n "checking size of void *... " >&6; }
5954 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5957 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5960 if test "$ac_cv_type_void_p" = yes; then
5961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5963 { as_fn_set_status
77
5964 as_fn_error
"cannot compute sizeof (void *)
5965 See \`config.log' for more details." "$LINENO" 5; }; }
5967 ac_cv_sizeof_void_p
=0
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5973 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5977 cat >>confdefs.h
<<_ACEOF
5978 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5982 # The cast to long int works around a bug in the HP C Compiler
5983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5985 # This bug is HP SR number 8606223364.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5987 $as_echo_n "checking size of short... " >&6; }
5988 if test "${ac_cv_sizeof_short+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5991 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5994 if test "$ac_cv_type_short" = yes; then
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 { as_fn_set_status
77
5998 as_fn_error
"cannot compute sizeof (short)
5999 See \`config.log' for more details." "$LINENO" 5; }; }
6001 ac_cv_sizeof_short
=0
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6007 $as_echo "$ac_cv_sizeof_short" >&6; }
6011 cat >>confdefs.h
<<_ACEOF
6012 #define SIZEOF_SHORT $ac_cv_sizeof_short
6016 # The cast to long int works around a bug in the HP C Compiler
6017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6019 # This bug is HP SR number 8606223364.
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6021 $as_echo_n "checking size of int... " >&6; }
6022 if test "${ac_cv_sizeof_int+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6025 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6028 if test "$ac_cv_type_int" = yes; then
6029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6031 { as_fn_set_status
77
6032 as_fn_error
"cannot compute sizeof (int)
6033 See \`config.log' for more details." "$LINENO" 5; }; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6041 $as_echo "$ac_cv_sizeof_int" >&6; }
6045 cat >>confdefs.h
<<_ACEOF
6046 #define SIZEOF_INT $ac_cv_sizeof_int
6050 # The cast to long int works around a bug in the HP C Compiler
6051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6053 # This bug is HP SR number 8606223364.
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6055 $as_echo_n "checking size of long... " >&6; }
6056 if test "${ac_cv_sizeof_long+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6059 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6062 if test "$ac_cv_type_long" = yes; then
6063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6065 { as_fn_set_status
77
6066 as_fn_error
"cannot compute sizeof (long)
6067 See \`config.log' for more details." "$LINENO" 5; }; }
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6075 $as_echo "$ac_cv_sizeof_long" >&6; }
6079 cat >>confdefs.h
<<_ACEOF
6080 #define SIZEOF_LONG $ac_cv_sizeof_long
6084 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6085 if test "x$ac_cv_type_long_long" = x
""yes; then :
6087 cat >>confdefs.h
<<_ACEOF
6088 #define HAVE_LONG_LONG 1
6091 # The cast to long int works around a bug in the HP C Compiler
6092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6094 # This bug is HP SR number 8606223364.
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6096 $as_echo_n "checking size of long long... " >&6; }
6097 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6100 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6103 if test "$ac_cv_type_long_long" = yes; then
6104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6106 { as_fn_set_status
77
6107 as_fn_error
"cannot compute sizeof (long long)
6108 See \`config.log' for more details." "$LINENO" 5; }; }
6110 ac_cv_sizeof_long_long
=0
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6116 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6120 cat >>confdefs.h
<<_ACEOF
6121 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6127 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6128 case $ac_cv_c_int8_t in #(
6132 cat >>confdefs.h
<<_ACEOF
6133 #define int8_t $ac_cv_c_int8_t
6138 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6139 case $ac_cv_c_int16_t in #(
6143 cat >>confdefs.h
<<_ACEOF
6144 #define int16_t $ac_cv_c_int16_t
6149 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6150 case $ac_cv_c_int32_t in #(
6154 cat >>confdefs.h
<<_ACEOF
6155 #define int32_t $ac_cv_c_int32_t
6160 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6161 case $ac_cv_c_int64_t in #(
6165 cat >>confdefs.h
<<_ACEOF
6166 #define int64_t $ac_cv_c_int64_t
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6173 $as_echo_n "checking for long long int... " >&6; }
6174 if test "${ac_cv_type_long_long_int+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6180 /* For now, do not test the preprocessor; as of 2007 there are too many
6181 implementations with broken preprocessors. Perhaps this can
6182 be revisited in 2012. In the meantime, code should not expect
6183 #if to work with literals wider than 32 bits. */
6184 /* Test literals. */
6185 long long int ll = 9223372036854775807ll;
6186 long long int nll = -9223372036854775807LL;
6187 unsigned long long int ull = 18446744073709551615ULL;
6188 /* Test constant expressions. */
6189 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6191 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6197 /* Test availability of runtime routines for shift and division. */
6198 long long int llmax = 9223372036854775807ll;
6199 unsigned long long int ullmax = 18446744073709551615ull;
6200 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6201 | (llmax / ll) | (llmax % ll)
6202 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6203 | (ullmax / ull) | (ullmax % ull));
6209 if ac_fn_cxx_try_link
"$LINENO"; then :
6210 if test "$cross_compiling" = yes; then :
6211 ac_cv_type_long_long_int
=yes
6213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6218 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6219 # define LLONG_MAX (HALF - 1 + HALF)
6224 long long int n = 1;
6228 long long int m = n << i;
6231 if (LLONG_MAX / 2 < m)
6239 if ac_fn_cxx_try_run
"$LINENO"; then :
6240 ac_cv_type_long_long_int
=yes
6242 ac_cv_type_long_long_int
=no
6244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6249 ac_cv_type_long_long_int
=no
6251 rm -f core conftest.err conftest.
$ac_objext \
6252 conftest
$ac_exeext conftest.
$ac_ext
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6255 $as_echo "$ac_cv_type_long_long_int" >&6; }
6256 if test $ac_cv_type_long_long_int = yes; then
6258 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6264 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6265 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6267 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6270 test $ac_cv_type_long_long_int = yes \
6271 && ac_type
='long long int' \
6272 || ac_type
='long int'
6274 cat >>confdefs.h
<<_ACEOF
6275 #define intmax_t $ac_type
6282 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6283 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6285 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6288 for ac_type
in 'int' 'long int' 'long long int'; do
6289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 $ac_includes_default
6295 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6302 if ac_fn_cxx_try_compile
"$LINENO"; then :
6304 cat >>confdefs.h
<<_ACEOF
6305 #define intptr_t $ac_type
6310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6311 test -z "$ac_type" && break
6316 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6317 case $ac_cv_c_uint8_t in #(
6321 $as_echo "#define _UINT8_T 1" >>confdefs.h
6324 cat >>confdefs.h
<<_ACEOF
6325 #define uint8_t $ac_cv_c_uint8_t
6330 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6331 case $ac_cv_c_uint16_t in #(
6336 cat >>confdefs.h
<<_ACEOF
6337 #define uint16_t $ac_cv_c_uint16_t
6342 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6343 case $ac_cv_c_uint32_t in #(
6347 $as_echo "#define _UINT32_T 1" >>confdefs.h
6350 cat >>confdefs.h
<<_ACEOF
6351 #define uint32_t $ac_cv_c_uint32_t
6356 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6357 case $ac_cv_c_uint64_t in #(
6361 $as_echo "#define _UINT64_T 1" >>confdefs.h
6364 cat >>confdefs.h
<<_ACEOF
6365 #define uint64_t $ac_cv_c_uint64_t
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6372 $as_echo_n "checking for unsigned long long int... " >&6; }
6373 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6379 /* For now, do not test the preprocessor; as of 2007 there are too many
6380 implementations with broken preprocessors. Perhaps this can
6381 be revisited in 2012. In the meantime, code should not expect
6382 #if to work with literals wider than 32 bits. */
6383 /* Test literals. */
6384 long long int ll = 9223372036854775807ll;
6385 long long int nll = -9223372036854775807LL;
6386 unsigned long long int ull = 18446744073709551615ULL;
6387 /* Test constant expressions. */
6388 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6390 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6396 /* Test availability of runtime routines for shift and division. */
6397 long long int llmax = 9223372036854775807ll;
6398 unsigned long long int ullmax = 18446744073709551615ull;
6399 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6400 | (llmax / ll) | (llmax % ll)
6401 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6402 | (ullmax / ull) | (ullmax % ull));
6408 if ac_fn_cxx_try_link
"$LINENO"; then :
6409 ac_cv_type_unsigned_long_long_int
=yes
6411 ac_cv_type_unsigned_long_long_int
=no
6413 rm -f core conftest.err conftest.
$ac_objext \
6414 conftest
$ac_exeext conftest.
$ac_ext
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6417 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6418 if test $ac_cv_type_unsigned_long_long_int = yes; then
6420 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6426 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6427 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6429 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6432 test $ac_cv_type_unsigned_long_long_int = yes \
6433 && ac_type
='unsigned long long int' \
6434 || ac_type
='unsigned long int'
6436 cat >>confdefs.h
<<_ACEOF
6437 #define uintmax_t $ac_type
6444 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6445 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6447 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6450 for ac_type
in 'unsigned int' 'unsigned long int' \
6451 'unsigned long long int'; do
6452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 $ac_includes_default
6458 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6465 if ac_fn_cxx_try_compile
"$LINENO"; then :
6467 cat >>confdefs.h
<<_ACEOF
6468 #define uintptr_t $ac_type
6473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6474 test -z "$ac_type" && break
6491 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6492 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6495 # check what underlying integer type int64_t uses
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6497 $as_echo_n "checking for int64_t underlying type... " >&6; }
6498 if test "${ac_cv_int64_t_type+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6505 #ifdef HAVE_STDINT_H
6508 template <typename T> struct X { };
6510 struct X<long> { typedef long t; };
6520 if ac_fn_cxx_try_compile
"$LINENO"; then :
6521 ac_cv_int64_t_type
=long
6523 ac_cv_int64_t_type
="long long"
6525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6528 $as_echo "$ac_cv_int64_t_type" >&6; }
6529 if test "$ac_cv_int64_t_type" = "long"; then
6531 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6537 #ifdef HAVE_STDINT_H
6540 template <typename T> struct X { };
6542 struct X<long long> { typedef long long t; };
6552 if ac_fn_cxx_try_compile
"$LINENO"; then :
6555 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6561 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6562 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6574 int a, b; std::swap(a,b);
6579 if ac_fn_cxx_try_compile
"$LINENO"; then :
6580 ac_cv_std_swap_in_utility
=yes
6582 ac_cv_std_swap_in_utility
=no
6584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6587 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6588 if test $ac_cv_std_swap_in_utility = yes; then
6590 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6594 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6595 # If the host compiler is affected by the bug, and we build with optimization
6596 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6597 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6598 # Since there is no reliable feature check for the presence of this bug,
6599 # we simply use a GCC version number check. (This should never trigger for
6600 # stages 2 or 3 of a native bootstrap.)
6602 if test "$GCC" = yes; then
6603 saved_CXXFLAGS
="$CXXFLAGS"
6605 # The following test compilation will succeed if and only if $CXX accepts
6606 # -fno-strict-aliasing *and* is older than GCC 4.3.
6607 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6609 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6613 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6614 #error compiler not affected by placement new aliasing bug
6618 if ac_fn_cxx_try_compile
"$LINENO"; then :
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6620 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6627 CXXFLAGS
="$saved_CXXFLAGS"
6633 # ---------------------
6634 # Warnings and checking
6635 # ---------------------
6637 # Check $CC warning features (if it's GCC).
6638 # We want to use -pedantic, but we don't want warnings about
6641 # * overlong strings
6642 # * C++11 narrowing conversions in { }
6643 # So, we only use -pedantic if we can disable those warnings.
6645 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6646 # Check whether --enable-build-format-warnings was given.
6647 if test "${enable_build_format_warnings+set}" = set; then :
6648 enableval
=$enable_build_format_warnings;
6650 enable_build_format_warnings
=yes
6653 if test $enable_build_format_warnings = no
; then :
6659 ac_cpp
='$CXXCPP $CPPFLAGS'
6660 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6665 save_CXXFLAGS
="$CXXFLAGS"
6666 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6667 # Do the check with the no- prefix removed since gcc silently
6668 # accepts any -Wno-* option on purpose
6669 case $real_option in
6670 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6671 *) option
=$real_option ;;
6673 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6676 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6677 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6678 $as_echo_n "(cached) " >&6
6681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6692 if ac_fn_cxx_try_compile
"$LINENO"; then :
6693 eval "$as_acx_Woption=yes"
6695 eval "$as_acx_Woption=no"
6697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6700 eval ac_res
=\$
$as_acx_Woption
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6702 $as_echo "$ac_res" >&6; }
6703 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6704 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6707 CXXFLAGS
="$save_CXXFLAGS"
6709 ac_cpp
='$CXXCPP $CPPFLAGS'
6710 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6717 ac_cpp
='$CPP $CPPFLAGS'
6718 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6723 save_CFLAGS
="$CFLAGS"
6724 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6725 # Do the check with the no- prefix removed since gcc silently
6726 # accepts any -Wno-* option on purpose
6727 case $real_option in
6728 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6729 *) option
=$real_option ;;
6731 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6734 $as_echo_n "checking whether $CC supports $option... " >&6; }
6735 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6736 $as_echo_n "(cached) " >&6
6739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6750 if ac_fn_c_try_compile
"$LINENO"; then :
6751 eval "$as_acx_Woption=yes"
6753 eval "$as_acx_Woption=no"
6755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6758 eval ac_res
=\$
$as_acx_Woption
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6760 $as_echo "$ac_res" >&6; }
6761 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6762 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6765 CFLAGS
="$save_CFLAGS"
6767 ac_cpp
='$CXXCPP $CPPFLAGS'
6768 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6774 ac_cpp
='$CXXCPP $CPPFLAGS'
6775 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6780 save_CXXFLAGS
="$CXXFLAGS"
6781 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6782 # Do the check with the no- prefix removed since gcc silently
6783 # accepts any -Wno-* option on purpose
6784 case $real_option in
6785 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6786 *) option
=$real_option ;;
6788 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6791 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6792 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6793 $as_echo_n "(cached) " >&6
6796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6807 if ac_fn_cxx_try_compile
"$LINENO"; then :
6808 eval "$as_acx_Woption=yes"
6810 eval "$as_acx_Woption=no"
6812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6815 eval ac_res
=\$
$as_acx_Woption
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6817 $as_echo "$ac_res" >&6; }
6818 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6819 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6822 CXXFLAGS
="$save_CXXFLAGS"
6824 ac_cpp
='$CXXCPP $CPPFLAGS'
6825 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6831 ac_cpp
='$CPP $CPPFLAGS'
6832 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6837 save_CFLAGS
="$CFLAGS"
6838 for real_option
in -Wold-style-definition -Wc++-compat; do
6839 # Do the check with the no- prefix removed since gcc silently
6840 # accepts any -Wno-* option on purpose
6841 case $real_option in
6842 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6843 *) option
=$real_option ;;
6845 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6848 $as_echo_n "checking whether $CC supports $option... " >&6; }
6849 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6850 $as_echo_n "(cached) " >&6
6853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6864 if ac_fn_c_try_compile
"$LINENO"; then :
6865 eval "$as_acx_Woption=yes"
6867 eval "$as_acx_Woption=no"
6869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6872 eval ac_res
=\$
$as_acx_Woption
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6874 $as_echo "$ac_res" >&6; }
6875 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6876 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6879 CFLAGS
="$save_CFLAGS"
6881 ac_cpp
='$CXXCPP $CPPFLAGS'
6882 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6888 ac_cpp
='$CXXCPP $CPPFLAGS'
6889 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6893 # Do the check with the no- prefix removed from the warning options
6894 # since gcc silently accepts any -Wno-* option on purpose
6895 if test "$GXX" = yes; then :
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6897 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6898 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
6901 save_CXXFLAGS
="$CXXFLAGS"
6902 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6914 if ac_fn_cxx_try_compile
"$LINENO"; then :
6915 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6917 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6920 CXXFLAGS
="$save_CXXFLAGS"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6923 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6924 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6925 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6930 ac_cpp
='$CXXCPP $CPPFLAGS'
6931 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6937 ac_cpp
='$CXXCPP $CPPFLAGS'
6938 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6942 # Check whether --enable-werror-always was given.
6943 if test "${enable_werror_always+set}" = set; then :
6944 enableval
=$enable_werror_always;
6946 enable_werror_always
=no
6949 if test $enable_werror_always = yes; then :
6950 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6954 ac_cpp
='$CXXCPP $CPPFLAGS'
6955 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6961 # The above macros do nothing if the compiler is not GCC. However, the
6962 # Makefile has more goo to add other flags, so these variables are used
6963 # to enable warnings only for GCC.
6966 if test "x$GCC" = "xyes"; then
6967 warn_cflags
='$(GCC_WARN_CFLAGS)'
6968 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6973 # Disable exceptions and RTTI if building with g++
6975 ac_cpp
='$CPP $CPPFLAGS'
6976 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6981 save_CFLAGS
="$CFLAGS"
6982 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6983 # Do the check with the no- prefix removed since gcc silently
6984 # accepts any -Wno-* option on purpose
6985 case $real_option in
6986 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6987 *) option
=$real_option ;;
6989 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6992 $as_echo_n "checking whether $CC supports $option... " >&6; }
6993 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6994 $as_echo_n "(cached) " >&6
6997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7008 if ac_fn_c_try_compile
"$LINENO"; then :
7009 eval "$as_acx_Woption=yes"
7011 eval "$as_acx_Woption=no"
7013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7016 eval ac_res
=\$
$as_acx_Woption
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7018 $as_echo "$ac_res" >&6; }
7019 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7020 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7023 CFLAGS
="$save_CFLAGS"
7025 ac_cpp
='$CXXCPP $CPPFLAGS'
7026 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7032 # Enable expensive internal checks
7034 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7038 # Check whether --enable-checking was given.
7039 if test "${enable_checking+set}" = set; then :
7040 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7043 # Determine the default checks.
7044 if test x
$is_release = x
; then
7045 ac_checking_flags
=yes,extra
7047 ac_checking_flags
=release
7051 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7052 for check
in release
$ac_checking_flags
7055 # these set all the flags to specific states
7056 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7057 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7058 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7059 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7060 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7061 ac_types_checking
=1 ;;
7062 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7063 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7064 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7065 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7066 ac_tree_checking
= ; ac_valgrind_checking
= ;
7067 ac_types_checking
= ;;
7068 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7069 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7070 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7071 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7072 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7073 ac_types_checking
=1 ;;
7074 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7075 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7076 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7077 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7078 ac_tree_checking
= ; ac_valgrind_checking
= ;
7079 ac_types_checking
= ;;
7080 # these enable particular checks
7081 assert
) ac_assert_checking
=1 ;;
7082 df
) ac_df_checking
=1 ;;
7083 extra
) ac_extra_checking
=1 ;;
7084 fold) ac_fold_checking
=1 ;;
7085 gc
) ac_gc_checking
=1 ;;
7086 gcac
) ac_gc_always_collect
=1 ;;
7087 gimple
) ac_gimple_checking
=1 ;;
7088 misc
) ac_checking
=1 ;;
7089 rtl
) ac_rtl_checking
=1 ;;
7090 rtlflag
) ac_rtlflag_checking
=1 ;;
7091 runtime
) ac_runtime_checking
=1 ;;
7092 tree
) ac_tree_checking
=1 ;;
7093 types
) ac_types_checking
=1 ;;
7094 valgrind
) ac_valgrind_checking
=1 ;;
7095 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7101 if test x
$ac_checking != x
; then
7103 $as_echo "#define CHECKING_P 1" >>confdefs.h
7105 nocommon_flag
=-fno-common
7107 $as_echo "#define CHECKING_P 0" >>confdefs.h
7111 if test x
$ac_extra_checking != x
; then
7113 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7116 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7119 if test x
$ac_df_checking != x
; then
7121 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7124 if test x
$ac_assert_checking != x
; then
7126 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7129 if test x
$ac_gimple_checking != x
; then
7131 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7135 if test x
$ac_runtime_checking != x
; then
7137 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7140 if test x
$ac_tree_checking != x
; then
7142 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7146 if test x
$ac_types_checking != x
; then
7148 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7152 if test x
$ac_rtl_checking != x
; then
7154 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7157 if test x
$ac_rtlflag_checking != x
; then
7159 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7162 if test x
$ac_gc_checking != x
; then
7164 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7167 if test x
$ac_gc_always_collect != x
; then
7169 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7172 if test x
$ac_fold_checking != x
; then
7174 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7177 valgrind_path_defines
=
7180 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7181 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7189 # It is certainly possible that there's valgrind but no valgrind.h.
7190 # GCC relies on making annotations so we must have both.
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <valgrind/memcheck.h>
7196 #ifndef VALGRIND_DISCARD
7197 #error VALGRIND_DISCARD not defined
7200 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7201 gcc_cv_header_valgrind_memcheck_h
=yes
7203 gcc_cv_header_valgrind_memcheck_h
=no
7205 rm -f conftest.err conftest.
$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7207 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7209 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <memcheck.h>
7213 #ifndef VALGRIND_DISCARD
7214 #error VALGRIND_DISCARD not defined
7217 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7218 gcc_cv_header_memcheck_h
=yes
7220 gcc_cv_header_memcheck_h
=no
7222 rm -f conftest.err conftest.
$ac_ext
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7224 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7225 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7227 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7230 if test $gcc_cv_header_memcheck_h = yes; then
7232 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7236 if test x
$ac_valgrind_checking != x
; then
7238 # Prepare PATH_SEPARATOR.
7239 # The user is always right.
7240 if test "${PATH_SEPARATOR+set}" != set; then
7241 echo "#! /bin/sh" >conf$$.sh
7242 echo "exit 0" >>conf$$.sh
7244 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7252 # Find out how to test for executable files. Don't use a zero-byte file,
7253 # as systems may use methods other than mode bits to determine executability.
7254 cat >conf$$.
file <<_ASEOF
7258 chmod +x conf$$.
file
7259 if test -x conf$$.
file >/dev
/null
2>&1; then
7260 ac_executable_p
="test -x"
7262 ac_executable_p
="test -f"
7266 # Extract the first word of "valgrind", so it can be a program name with args.
7267 set dummy valgrind
; ac_word
=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7273 case "$valgrind_path" in
7275 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7278 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7279 for ac_dir
in $PATH; do
7281 test -z "$ac_dir" && ac_dir
=.
7282 for ac_exec_ext
in '' $ac_executable_extensions; do
7283 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7284 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7285 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7295 valgrind_path
="$ac_cv_path_valgrind_path"
7296 if test -n "$valgrind_path"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7298 $as_echo "$valgrind_path" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7304 if test "x$valgrind_path" = "x" \
7305 ||
(test $have_valgrind_h = no \
7306 && test $gcc_cv_header_memcheck_h = no \
7307 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7308 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7310 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7311 valgrind_command
="$valgrind_path -q"
7313 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7319 # Enable code coverage collection
7320 # Check whether --enable-coverage was given.
7321 if test "${enable_coverage+set}" = set; then :
7322 enableval
=$enable_coverage; case "${enableval}" in
7324 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7327 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7330 # a.k.a. --disable-coverage
7334 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7343 # Check whether --enable-gather-detailed-mem-stats was given.
7344 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7345 enableval
=$enable_gather_detailed_mem_stats;
7347 enable_gather_detailed_mem_stats
=no
7350 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7352 cat >>confdefs.h
<<_ACEOF
7353 #define GATHER_STATISTICS $gather_stats
7357 # Check whether --enable-valgrind-annotations was given.
7358 if test "${enable_valgrind_annotations+set}" = set; then :
7359 enableval
=$enable_valgrind_annotations;
7361 enable_valgrind_annotations
=no
7364 if test x
$enable_valgrind_annotations != xno \
7365 ||
test x
$ac_valgrind_checking != x
; then
7366 if (test $have_valgrind_h = no \
7367 && test $gcc_cv_header_memcheck_h = no \
7368 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7369 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7372 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7376 # -------------------------------
7377 # Miscenalleous configure options
7378 # -------------------------------
7382 # Check whether --with-stabs was given.
7383 if test "${with_stabs+set}" = set; then :
7384 withval
=$with_stabs; stabs
="$with_stabs"
7390 # Determine whether or not multilibs are enabled.
7391 # Check whether --enable-multilib was given.
7392 if test "${enable_multilib+set}" = set; then :
7393 enableval
=$enable_multilib;
7400 # Determine whether or not multiarch is enabled.
7401 # Check whether --enable-multiarch was given.
7402 if test "${enable_multiarch+set}" = set; then :
7403 enableval
=$enable_multiarch; case "${enableval}" in
7404 yes|no|auto
) enable_multiarch
=$enableval;;
7405 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7408 enable_multiarch
=auto
7411 if test x
${enable_multiarch} = xauto
; then
7412 if test x
${with_native_system_header_dir} != x
; then
7413 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7416 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7417 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7422 $as_echo_n "checking for multiarch configuration... " >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7425 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7427 # needed for setting the multiarch name for soft-float/hard-float ABIs
7431 # Enable __cxa_atexit for C++.
7432 # Check whether --enable-__cxa_atexit was given.
7433 if test "${enable___cxa_atexit+set}" = set; then :
7434 enableval
=$enable___cxa_atexit;
7438 # Enable C extension for decimal float if target supports it.
7440 # Check whether --enable-decimal-float was given.
7441 if test "${enable_decimal_float+set}" = set; then :
7442 enableval
=$enable_decimal_float;
7443 case $enable_decimal_float in
7444 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7445 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7446 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7452 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7453 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7454 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7455 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7456 enable_decimal_float
=yes
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7460 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7461 enable_decimal_float
=no
7468 # x86's use BID format instead of DPD
7469 case x
$enable_decimal_float in
7472 i?
86*-*-* | x86_64
*-*-*)
7473 enable_decimal_float
=bid
7476 enable_decimal_float
=dpd
7479 default_decimal_float
=$enable_decimal_float
7482 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7483 # dependency on libdecnumber.
7484 default_decimal_float
=dpd
7491 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7493 cat >>confdefs.h
<<_ACEOF
7494 #define ENABLE_DECIMAL_FLOAT $dfp
7498 # Use default_decimal_float for dependency.
7499 enable_decimal_float
=$default_decimal_float
7501 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7503 cat >>confdefs.h
<<_ACEOF
7504 #define ENABLE_DECIMAL_BID_FORMAT $bid
7508 # Enable C extension for fixed-point arithmetic.
7509 # Check whether --enable-fixed-point was given.
7510 if test "${enable_fixed_point+set}" = set; then :
7511 enableval
=$enable_fixed_point;
7516 enable_fixed_point
=yes
7520 enable_fixed_point
=yes
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7524 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7525 enable_fixed_point
=no
7533 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7535 cat >>confdefs.h
<<_ACEOF
7536 #define ENABLE_FIXED_POINT $fixedpoint
7541 # Pass with no value to take the default
7542 # Pass with a value to specify a thread package
7543 # Check whether --enable-threads was given.
7544 if test "${enable_threads+set}" = set; then :
7545 enableval
=$enable_threads;
7551 # Check whether --enable-tls was given.
7552 if test "${enable_tls+set}" = set; then :
7553 enableval
=$enable_tls;
7556 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7557 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7565 # Check whether --enable-vtable-verify was given.
7566 if test "${enable_vtable_verify+set}" = set; then :
7567 enableval
=$enable_vtable_verify;
7569 enable_vtable_verify
=no
7572 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7574 cat >>confdefs.h
<<_ACEOF
7575 #define ENABLE_VTABLE_VERIFY $vtable_verify
7579 # Check whether --enable-objc-gc was given.
7580 if test "${enable_objc_gc+set}" = set; then :
7581 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7592 # Check whether --with-dwarf2 was given.
7593 if test "${with_dwarf2+set}" = set; then :
7594 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7600 # Check whether --enable-shared was given.
7601 if test "${enable_shared+set}" = set; then :
7602 enableval
=$enable_shared;
7603 case $enable_shared in
7607 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7608 for pkg
in $enableval; do
7609 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7624 # Check whether --with-specs was given.
7625 if test "${with_specs+set}" = set; then :
7626 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7636 # Check whether --with-pkgversion was given.
7637 if test "${with_pkgversion+set}" = set; then :
7638 withval
=$with_pkgversion; case "$withval" in
7639 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7641 *) PKGVERSION
="($withval) " ;;
7652 # Check whether --with-bugurl was given.
7653 if test "${with_bugurl+set}" = set; then :
7654 withval
=$with_bugurl; case "$withval" in
7655 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7658 *) BUGURL
="$withval"
7662 BUGURL
="https://gcc.gnu.org/bugs/"
7672 REPORT_BUGS_TO
="<$BUGURL>"
7673 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7680 # Sanity check enable_languages in case someone does not run the toplevel
7681 # configure # script.
7682 # Check whether --enable-languages was given.
7683 if test "${enable_languages+set}" = set; then :
7684 enableval
=$enable_languages; case ,${enable_languages}, in
7686 # go safe -- we cannot be much sure without the toplevel
7688 # analysis of which target libs are present and usable
7692 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7697 enable_languages
=c
,${enable_languages}
7705 if test x
"$enable_as_accelerator_for" != x
; then
7707 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7709 enable_as_accelerator
=yes
7712 # In this case we expect offload compiler to be built as native, so we
7713 # need to rename the driver to avoid clashes with host's drivers.
7714 program_transform_name
="s&^&${target}-&" ;;
7716 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7717 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7718 accel_dir_suffix
=/accel
/${target_noncanonical}
7719 real_target_noncanonical
=${enable_as_accelerator_for}
7725 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7726 tgt
=`echo $tgt | sed 's/=.*//'`
7728 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7734 if test x
"$offload_targets" = x
; then
7735 offload_targets
=$tgt
7737 offload_targets
="$offload_targets,$tgt"
7741 cat >>confdefs.h
<<_ACEOF
7742 #define OFFLOAD_TARGETS "$offload_targets"
7745 if test x
"$enable_offloading" != x
; then
7747 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7751 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7755 if test x
"$enable_hsa" = x1
; then
7757 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7762 # Check whether --with-multilib-list was given.
7763 if test "${with_multilib_list+set}" = set; then :
7764 withval
=$with_multilib_list; :
7766 with_multilib_list
=default
7770 # -------------------------
7771 # Checks for other programs
7772 # -------------------------
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7775 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7777 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7778 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7779 $as_echo_n "(cached) " >&6
7781 cat >conftest.
make <<\_ACEOF
7784 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7787 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7789 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7791 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7795 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7797 $as_echo "yes" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 SET_MAKE
="MAKE=${MAKE-make}"
7806 # Find some useful tools
7807 for ac_prog
in gawk mawk nawk
awk
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy
$ac_prog; ac_word
=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_AWK+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$AWK"; then
7817 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir
=.
7824 for ac_exec_ext
in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_AWK
="$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 if test -n "$AWK"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7839 $as_echo "$AWK" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7846 test -n "$AWK" && break
7849 # We need awk to create options.c and options.h.
7850 # Bail out if it's missing.
7852 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7856 $as_echo_n "checking whether ln -s works... " >&6; }
7857 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7860 rm -f conftestdata_t
7861 echo >conftestdata_f
7862 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7864 gcc_cv_prog_LN_S
="ln -s"
7866 if ln conftestdata_f conftestdata_t
2>/dev
/null
7870 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7872 gcc_cv_prog_LN_S
="cp -p"
7878 rm -f conftestdata_f conftestdata_t
7881 LN_S
="$gcc_cv_prog_LN_S"
7882 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884 $as_echo "yes" >&6; }
7886 if test "$gcc_cv_prog_LN_S" = "ln"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7888 $as_echo "no, using ln" >&6; }
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7891 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7896 $as_echo_n "checking whether ln works... " >&6; }
7897 if test "${acx_cv_prog_LN+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7900 rm -f conftestdata_t
7901 echo >conftestdata_f
7902 if ln conftestdata_f conftestdata_t
2>/dev
/null
7908 rm -f conftestdata_f conftestdata_t
7911 if test $acx_cv_prog_LN = no
; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7914 $as_echo "no, using $LN" >&6; }
7916 LN
="$acx_cv_prog_LN"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7918 $as_echo "yes" >&6; }
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7923 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7929 if test -n "$RANLIB"; then
7930 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7936 test -z "$as_dir" && as_dir
=.
7937 for ac_exec_ext
in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 RANLIB
=$ac_cv_prog_RANLIB
7950 if test -n "$RANLIB"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7952 $as_echo "$RANLIB" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7960 if test -z "$ac_cv_prog_RANLIB"; then
7961 ac_ct_RANLIB
=$RANLIB
7962 # Extract the first word of "ranlib", so it can be a program name with args.
7963 set dummy ranlib
; ac_word
=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7969 if test -n "$ac_ct_RANLIB"; then
7970 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7976 test -z "$as_dir" && as_dir
=.
7977 for ac_exec_ext
in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7990 if test -n "$ac_ct_RANLIB"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7992 $as_echo "$ac_ct_RANLIB" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7998 if test "x$ac_ct_RANLIB" = x
; then
8001 case $cross_compiling:$ac_tool_warned in
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned
=yes ;;
8007 RANLIB
=$ac_ct_RANLIB
8010 RANLIB
="$ac_cv_prog_RANLIB"
8016 # Find a good install program. We prefer a C program (faster),
8017 # so one script is as good as another. But avoid the broken or
8018 # incompatible versions:
8019 # SysV /etc/install, /usr/sbin/install
8020 # SunOS /usr/etc/install
8021 # IRIX /sbin/install
8023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8025 # ./install, which can be erroneously created by make from ./install.sh.
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8027 $as_echo_n "checking for a BSD compatible install... " >&6; }
8028 if test -z "$INSTALL"; then
8029 if test "${ac_cv_path_install+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8032 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8033 for ac_dir
in $PATH; do
8034 # Account for people who put trailing slashes in PATH elements.
8036 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8038 # OSF1 and SCO ODT 3.0 have their own names for install.
8039 for ac_prog
in ginstall scoinst
install; do
8040 if test -f $ac_dir/$ac_prog; then
8041 if test $ac_prog = install &&
8042 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8043 # AIX install. It has an incompatible calling convention.
8044 # OSF/1 installbsd also uses dspmsg, but is usable.
8047 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8058 if test "${ac_cv_path_install+set}" = set; then
8059 INSTALL
="$ac_cv_path_install"
8061 # As a last resort, use the slow shell script. We don't cache a
8062 # path for INSTALL within a source directory, because that will
8063 # break other packages using the cache if that directory is
8064 # removed, or if the path is relative.
8065 INSTALL
="$ac_install_sh"
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8069 $as_echo "$INSTALL" >&6; }
8071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8072 # It thinks the first close brace ends the variable substitution.
8073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8075 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8078 # See if cmp has --ignore-initial.
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8080 $as_echo_n "checking for cmp's capabilities... " >&6; }
8081 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8086 gcc_cv_prog_cmp_skip
=slowcompare
8087 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8088 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8091 gcc_cv_prog_cmp_skip
=gnucompare
8094 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8095 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8096 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8099 gcc_cv_prog_cmp_skip
=fastcompare
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8107 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8108 make_compare_target
=$gcc_cv_prog_cmp_skip
8112 # See if we have the mktemp command.
8113 # Extract the first word of "mktemp", so it can be a program name with args.
8114 set dummy mktemp
; ac_word
=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8120 if test -n "$have_mktemp_command"; then
8121 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8127 test -z "$as_dir" && as_dir
=.
8128 for ac_exec_ext
in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8130 ac_cv_prog_have_mktemp_command
="yes"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8141 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8142 if test -n "$have_mktemp_command"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8144 $as_echo "$have_mktemp_command" >&6; }
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8152 # See if makeinfo has been installed and is modern enough
8153 # that we can use it.
8155 # Extract the first word of "makeinfo", so it can be a program name with args.
8156 set dummy makeinfo
; ac_word
=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8162 if test -n "$MAKEINFO"; then
8163 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8169 test -z "$as_dir" && as_dir
=.
8170 for ac_exec_ext
in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_prog_MAKEINFO
="makeinfo"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 MAKEINFO
=$ac_cv_prog_MAKEINFO
8183 if test -n "$MAKEINFO"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8185 $as_echo "$MAKEINFO" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8192 if test -n "$MAKEINFO"; then
8193 # Found it, now check the version.
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8195 $as_echo_n "checking for modern makeinfo... " >&6; }
8196 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8199 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8200 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8202 case $ac_prog_version in
8203 '') gcc_cv_prog_makeinfo_modern
=no
;;
8204 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8205 *) gcc_cv_prog_makeinfo_modern
=no
;;
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8210 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8212 gcc_cv_prog_makeinfo_modern
=no
8214 if test $gcc_cv_prog_makeinfo_modern = no
; then
8215 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8218 if test $gcc_cv_prog_makeinfo_modern = no
; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8220 *** Makeinfo is missing or too old.
8221 *** Info documentation will not be built." >&5
8222 $as_echo "$as_me: WARNING:
8223 *** Makeinfo is missing or too old.
8224 *** Info documentation will not be built." >&2;}
8231 # Is pod2man recent enough to regenerate manpages?
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8233 $as_echo_n "checking for recent Pod::Man... " >&6; }
8234 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8236 $as_echo "yes" >&6; }
8237 GENERATED_MANPAGES
=generated-manpages
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8245 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8250 # Extract the first word of "$ac_prog", so it can be a program name with args.
8251 set dummy
$ac_prog; ac_word
=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if test "${ac_cv_prog_FLEX+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8257 if test -n "$FLEX"; then
8258 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8264 test -z "$as_dir" && as_dir
=.
8265 for ac_exec_ext
in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_FLEX
="$ac_prog"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 FLEX
=$ac_cv_prog_FLEX
8278 if test -n "$FLEX"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8280 $as_echo "$FLEX" >&6; }
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8287 test -n "$FLEX" && break
8289 test -n "$FLEX" || FLEX
="$MISSING flex"
8293 for ac_prog
in bison
8295 # Extract the first word of "$ac_prog", so it can be a program name with args.
8296 set dummy
$ac_prog; ac_word
=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if test "${ac_cv_prog_BISON+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8302 if test -n "$BISON"; then
8303 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8309 test -z "$as_dir" && as_dir
=.
8310 for ac_exec_ext
in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_prog_BISON
="$ac_prog"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 BISON
=$ac_cv_prog_BISON
8323 if test -n "$BISON"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8325 $as_echo "$BISON" >&6; }
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8332 test -n "$BISON" && break
8334 test -n "$BISON" || BISON
="$MISSING bison"
8337 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8338 # check for build == host before using them.
8341 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8342 && test -d ..
/binutils
; then
8343 NM
='${objdir}/../binutils/nm-new'
8345 # Extract the first word of "nm", so it can be a program name with args.
8346 set dummy nm
; ac_word
=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if test "${ac_cv_prog_NM+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8352 if test -n "$NM"; then
8353 ac_cv_prog_NM
="$NM" # Let the user override the test.
8355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8359 test -z "$as_dir" && as_dir
=.
8360 for ac_exec_ext
in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8374 if test -n "$NM"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8376 $as_echo "$NM" >&6; }
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8386 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8387 && test -d ..
/binutils
; then
8388 AR
='${objdir}/../binutils/ar'
8390 # Extract the first word of "ar", so it can be a program name with args.
8391 set dummy
ar; ac_word
=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if test "${ac_cv_prog_AR+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8397 if test -n "$AR"; then
8398 ac_cv_prog_AR
="$AR" # Let the user override the test.
8400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8404 test -z "$as_dir" && as_dir
=.
8405 for ac_exec_ext
in '' $ac_executable_extensions; do
8406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8419 if test -n "$AR"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8421 $as_echo "$AR" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8430 # The jit documentation looks better if built with sphinx, but can be
8431 # built with texinfo if sphinx is not available.
8432 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8433 # Extract the first word of "sphinx-build", so it can be a program name with args.
8434 set dummy sphinx-build
; ac_word
=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8440 if test -n "$doc_build_sys"; then
8441 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8447 test -z "$as_dir" && as_dir
=.
8448 for ac_exec_ext
in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_prog_doc_build_sys
="sphinx"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8461 doc_build_sys
=$ac_cv_prog_doc_build_sys
8462 if test -n "$doc_build_sys"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8464 $as_echo "$doc_build_sys" >&6; }
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8472 # --------------------
8473 # Checks for C headers
8474 # --------------------
8476 # Need to reject headers which give warnings, so that the -Werror bootstrap
8477 # works later. *sigh* This needs to come before all header checks.
8479 ac_c_preproc_warn_flag
=yes
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8482 $as_echo_n "checking for ANSI C header files... " >&6; }
8483 if test "${ac_cv_header_stdc+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8501 if ac_fn_cxx_try_compile
"$LINENO"; then :
8502 ac_cv_header_stdc
=yes
8504 ac_cv_header_stdc
=no
8506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8508 if test $ac_cv_header_stdc = yes; then
8509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8516 $EGREP "memchr" >/dev
/null
2>&1; then :
8519 ac_cv_header_stdc
=no
8525 if test $ac_cv_header_stdc = yes; then
8526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8533 $EGREP "free" >/dev
/null
2>&1; then :
8536 ac_cv_header_stdc
=no
8542 if test $ac_cv_header_stdc = yes; then
8543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8544 if test "$cross_compiling" = yes; then :
8547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8551 #if ((' ' & 0x0FF) == 0x020)
8552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8555 # define ISLOWER(c) \
8556 (('a' <= (c) && (c) <= 'i') \
8557 || ('j' <= (c) && (c) <= 'r') \
8558 || ('s' <= (c) && (c) <= 'z'))
8559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8567 for (i = 0; i < 256; i++)
8568 if (XOR (islower (i), ISLOWER (i))
8569 || toupper (i) != TOUPPER (i))
8574 if ac_fn_cxx_try_run
"$LINENO"; then :
8577 ac_cv_header_stdc
=no
8579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8586 $as_echo "$ac_cv_header_stdc" >&6; }
8587 if test $ac_cv_header_stdc = yes; then
8589 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8594 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8595 if test "${ac_cv_header_time+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #include <sys/types.h>
8601 #include <sys/time.h>
8607 if ((struct tm *) 0)
8613 if ac_fn_cxx_try_compile
"$LINENO"; then :
8614 ac_cv_header_time
=yes
8616 ac_cv_header_time
=no
8618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8621 $as_echo "$ac_cv_header_time" >&6; }
8622 if test $ac_cv_header_time = yes; then
8624 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8629 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8630 if test "${gcc_cv_header_string+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8636 #include <strings.h>
8645 if ac_fn_cxx_try_compile
"$LINENO"; then :
8646 gcc_cv_header_string
=yes
8648 gcc_cv_header_string
=no
8650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8653 $as_echo "$gcc_cv_header_string" >&6; }
8654 if test $gcc_cv_header_string = yes; then
8656 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8661 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8662 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <sys/types.h>
8668 #include <sys/wait.h>
8670 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8673 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8681 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8686 if ac_fn_cxx_try_compile
"$LINENO"; then :
8687 ac_cv_header_sys_wait_h
=yes
8689 ac_cv_header_sys_wait_h
=no
8691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8694 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8695 if test $ac_cv_header_sys_wait_h = yes; then
8697 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8702 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8703 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <sys/types.h>
8709 #include <termios.h>
8715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8716 $EGREP "yes" >/dev
/null
2>&1; then :
8717 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8719 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8725 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8727 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8729 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8730 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <sys/types.h>
8736 #include <sys/ioctl.h>
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 $EGREP "yes" >/dev
/null
2>&1; then :
8744 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8746 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8752 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8754 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8756 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8761 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8762 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8763 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8764 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8766 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8767 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8768 eval as_val
=\$
$as_ac_Header
8769 if test "x$as_val" = x
""yes; then :
8770 cat >>confdefs.h
<<_ACEOF
8771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778 # Check for thread headers.
8779 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8780 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8786 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8787 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8794 # These tests can't be done till we know if we have limits.h.
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8796 $as_echo_n "checking for CHAR_BIT... " >&6; }
8797 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 #ifdef HAVE_LIMITS_H
8809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810 $EGREP "found" >/dev
/null
2>&1; then :
8811 gcc_cv_decl_char_bit
=yes
8813 gcc_cv_decl_char_bit
=no
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8820 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8821 if test $gcc_cv_decl_char_bit = no
; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8823 $as_echo_n "checking number of bits in a byte... " >&6; }
8824 if test "${gcc_cv_c_nbby+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8829 while test $i -lt 65; do
8830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8837 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8838 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8844 if ac_fn_cxx_try_compile
"$LINENO"; then :
8845 gcc_cv_c_nbby
=$i; break
8847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8854 $as_echo "$gcc_cv_c_nbby" >&6; }
8855 if test $gcc_cv_c_nbby = failed
; then
8856 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8859 cat >>confdefs.h
<<_ACEOF
8860 #define CHAR_BIT $gcc_cv_c_nbby
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8866 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8867 if test "${ac_cv_c_bigendian+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8870 ac_cv_c_bigendian
=unknown
8871 # See if we're dealing with a universal compiler.
8872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 #ifndef __APPLE_CC__
8875 not a universal capable compiler
8880 if ac_fn_cxx_try_compile
"$LINENO"; then :
8882 # Check for potential -arch flags. It is not universal unless
8883 # there are at least two -arch flags with different values.
8886 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8887 if test -n "$ac_prev"; then
8889 i?
86 | x86_64 | ppc | ppc64
)
8890 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8893 ac_cv_c_bigendian
=universal
8899 elif test "x$ac_word" = "x-arch"; then
8904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8905 if test $ac_cv_c_bigendian = unknown
; then
8906 # See if sys/param.h defines the BYTE_ORDER macro.
8907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 #include <sys/types.h>
8910 #include <sys/param.h>
8915 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8916 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8925 if ac_fn_cxx_try_compile
"$LINENO"; then :
8926 # It does; now see whether it defined to BIG_ENDIAN or not.
8927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #include <sys/types.h>
8930 #include <sys/param.h>
8935 #if BYTE_ORDER != BIG_ENDIAN
8943 if ac_fn_cxx_try_compile
"$LINENO"; then :
8944 ac_cv_c_bigendian
=yes
8946 ac_cv_c_bigendian
=no
8948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8952 if test $ac_cv_c_bigendian = unknown
; then
8953 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8961 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8969 if ac_fn_cxx_try_compile
"$LINENO"; then :
8970 # It does; now see whether it defined to _BIG_ENDIAN or not.
8971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8986 if ac_fn_cxx_try_compile
"$LINENO"; then :
8987 ac_cv_c_bigendian
=yes
8989 ac_cv_c_bigendian
=no
8991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8995 if test $ac_cv_c_bigendian = unknown
; then
8996 # Compile a test program.
8997 if test "$cross_compiling" = yes; then :
8998 # Try to guess by grepping values from an object file.
8999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9001 short int ascii_mm[] =
9002 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9003 short int ascii_ii[] =
9004 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9005 int use_ascii (int i) {
9006 return ascii_mm[i] + ascii_ii[i];
9008 short int ebcdic_ii[] =
9009 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9010 short int ebcdic_mm[] =
9011 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9012 int use_ebcdic (int i) {
9013 return ebcdic_mm[i] + ebcdic_ii[i];
9020 return use_ascii (foo) == use_ebcdic (foo);
9025 if ac_fn_cxx_try_compile
"$LINENO"; then :
9026 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9027 ac_cv_c_bigendian
=yes
9029 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9030 if test "$ac_cv_c_bigendian" = unknown
; then
9031 ac_cv_c_bigendian
=no
9033 # finding both strings is unlikely to happen, but who knows?
9034 ac_cv_c_bigendian
=unknown
9038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 $ac_includes_default
9047 /* Are we little or big endian? From Harbison&Steele. */
9051 char c[sizeof (long int)];
9054 return u.c[sizeof (long int) - 1] == 1;
9060 if ac_fn_cxx_try_run
"$LINENO"; then :
9061 ac_cv_c_bigendian
=no
9063 ac_cv_c_bigendian
=yes
9065 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9066 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9072 $as_echo "$ac_cv_c_bigendian" >&6; }
9073 case $ac_cv_c_bigendian in #(
9075 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9081 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9085 as_fn_error
"unknown endianness
9086 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9090 # ----------------------
9091 # Checks for C++ headers
9092 # ----------------------
9095 ac_cpp
='$CXXCPP $CPPFLAGS'
9096 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9097 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9098 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9100 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9101 if test -z "$CXXCPP"; then
9102 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9105 # Double quotes because CXXCPP needs to be expanded
9106 for CXXCPP
in "$CXX -E" "/lib/cpp"
9109 for ac_cxx_preproc_warn_flag
in '' yes
9111 # Use a header file that comes with gcc, so configuring glibc
9112 # with a fresh cross-compiler works.
9113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9114 # <limits.h> exists even on freestanding compilers.
9115 # On the NeXT, cc -E runs the code through the compiler's parser,
9116 # not just through cpp. "Syntax error" is here to catch this case.
9117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9120 # include <limits.h>
9122 # include <assert.h>
9126 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9129 # Broken: fails on valid input.
9132 rm -f conftest.err conftest.
$ac_ext
9134 # OK, works on sane cases. Now check whether nonexistent headers
9135 # can be detected and how.
9136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9138 #include <ac_nonexistent.h>
9140 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9141 # Broken: success on invalid input.
9144 # Passes both tests.
9148 rm -f conftest.err conftest.
$ac_ext
9151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9152 rm -f conftest.err conftest.
$ac_ext
9153 if $ac_preproc_ok; then :
9158 ac_cv_prog_CXXCPP
=$CXXCPP
9161 CXXCPP
=$ac_cv_prog_CXXCPP
9163 ac_cv_prog_CXXCPP
=$CXXCPP
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9166 $as_echo "$CXXCPP" >&6; }
9168 for ac_cxx_preproc_warn_flag
in '' yes
9170 # Use a header file that comes with gcc, so configuring glibc
9171 # with a fresh cross-compiler works.
9172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173 # <limits.h> exists even on freestanding compilers.
9174 # On the NeXT, cc -E runs the code through the compiler's parser,
9175 # not just through cpp. "Syntax error" is here to catch this case.
9176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9179 # include <limits.h>
9181 # include <assert.h>
9185 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9188 # Broken: fails on valid input.
9191 rm -f conftest.err conftest.
$ac_ext
9193 # OK, works on sane cases. Now check whether nonexistent headers
9194 # can be detected and how.
9195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <ac_nonexistent.h>
9199 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9200 # Broken: success on invalid input.
9203 # Passes both tests.
9207 rm -f conftest.err conftest.
$ac_ext
9210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9211 rm -f conftest.err conftest.
$ac_ext
9212 if $ac_preproc_ok; then :
9215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9218 See \`config.log' for more details." >&5
9219 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9220 See \`config.log' for more details." >&2;}; }
9224 ac_cpp
='$CXXCPP $CPPFLAGS'
9225 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9226 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9227 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9230 for ac_header
in unordered_map
9232 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9233 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9234 cat >>confdefs.h
<<_ACEOF
9235 #define HAVE_UNORDERED_MAP 1
9241 for ac_header
in tr1/unordered_map
9243 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9244 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9245 cat >>confdefs.h
<<_ACEOF
9246 #define HAVE_TR1_UNORDERED_MAP 1
9252 for ac_header
in ext
/hash_map
9254 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9255 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9256 cat >>confdefs.h
<<_ACEOF
9257 #define HAVE_EXT_HASH_MAP 1
9265 # Dependency checking.
9268 rm -rf .tst
2>/dev
/null
9269 mkdir .tst
2>/dev
/null
9270 if test -d .tst
; then
9275 rmdir .tst
2>/dev
/null
9277 DEPDIR
="${am__leading_dot}deps"
9279 ac_config_commands
="$ac_config_commands depdir"
9282 ac_config_commands
="$ac_config_commands gccdepdir"
9285 depcc
="$CXX" am_compiler_list
=
9287 am_depcomp
=$ac_aux_dir/depcomp
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9289 $as_echo_n "checking dependency style of $depcc... " >&6; }
9290 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9293 if test -f "$am_depcomp"; then
9294 # We make a subdir and do the tests there. Otherwise we can end up
9295 # making bogus files that we don't know about and never remove. For
9296 # instance it was reported that on HP-UX the gcc test will end up
9297 # making a dummy file named `D' -- because `-MD' means `put the output
9300 # Copy depcomp to subdir because otherwise we won't find it if we're
9301 # using a relative directory.
9302 cp "$am_depcomp" conftest.dir
9304 # We will build objects and dependencies in a subdirectory because
9305 # it helps to detect inapplicable dependency modes. For instance
9306 # both Tru64's cc and ICC support -MD to output dependencies as a
9307 # side effect of compilation, but ICC will put the dependencies in
9308 # the current directory while Tru64 will put them in the object
9312 am_cv_CXX_dependencies_compiler_type
=none
9313 if test "$am_compiler_list" = ""; then
9314 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9316 for depmode
in $am_compiler_list; do
9317 if test $depmode = none
; then break; fi
9319 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9320 # Setup a source with many dependencies, because some compilers
9321 # like to wrap large dependency lists on column 80 (with \), and
9322 # we should not choose a depcomp mode which is confused by this.
9324 # We need to recreate these files for each test, as the compiler may
9325 # overwrite some of them when testing with obscure command lines.
9326 # This happens at least with the AIX C compiler.
9328 for i
in 1 2 3 4 5 6; do
9329 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9330 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9331 # Solaris 8's {/usr,}/bin/sh.
9332 touch sub
/conftst
$i.h
9334 echo "include sub/conftest.Po" > confmf
9336 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9337 # mode. It turns out that the SunPro C++ compiler does not properly
9338 # handle `-M -o', and we need to detect this.
9339 depcmd
="depmode=$depmode \
9340 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9342 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9343 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9344 if env
$depcmd > conftest.err
2>&1 &&
9345 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9346 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9347 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9348 # icc doesn't choke on unknown options, it will just issue warnings
9349 # or remarks (even with -Werror). So we grep stderr for any message
9350 # that says an option was ignored or not supported.
9351 # When given -MP, icc 7.0 and 7.1 complain thusly:
9352 # icc: Command line warning: ignoring option '-M'; no argument required
9353 # The diagnosis changed in icc 8.0:
9354 # icc: Command line remark: option '-MP' not supported
9355 if (grep 'ignoring option' conftest.err ||
9356 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9357 am_cv_CXX_dependencies_compiler_type
=$depmode
9358 $as_echo "$as_me:$LINENO: success" >&5
9362 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9363 sed -e 's/^/| /' < conftest.err
>&5
9369 am_cv_CXX_dependencies_compiler_type
=none
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9374 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9375 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9376 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9377 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9387 # These libraries may be used by collect2.
9388 # We may need a special search path to get them linked.
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9390 $as_echo_n "checking for collect2 libraries... " >&6; }
9391 if test "${gcc_cv_collect2_libs+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9395 for libs
in '' -lld -lmld \
9396 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9397 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9403 /* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9418 if ac_fn_cxx_try_link
"$LINENO"; then :
9419 gcc_cv_collect2_libs
="$libs"; break
9421 rm -f core conftest.err conftest.
$ac_objext \
9422 conftest
$ac_exeext conftest.
$ac_ext
9425 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9428 $as_echo "$gcc_cv_collect2_libs" >&6; }
9429 case $gcc_cv_collect2_libs in
9431 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9435 # When building Ada code on Alpha, we need exc_resume which is usually in
9436 # -lexc. So test for it.
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9440 $as_echo_n "checking for library containing exc_resume... " >&6; }
9441 if test "${ac_cv_search_exc_resume+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9444 ac_func_search_save_LIBS
=$LIBS
9445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9458 return exc_resume ();
9463 for ac_lib
in '' exc
; do
9464 if test -z "$ac_lib"; then
9465 ac_res
="none required"
9468 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9470 if ac_fn_cxx_try_link
"$LINENO"; then :
9471 ac_cv_search_exc_resume
=$ac_res
9473 rm -f core conftest.err conftest.
$ac_objext \
9475 if test "${ac_cv_search_exc_resume+set}" = set; then :
9479 if test "${ac_cv_search_exc_resume+set}" = set; then :
9482 ac_cv_search_exc_resume
=no
9485 LIBS
=$ac_func_search_save_LIBS
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9488 $as_echo "$ac_cv_search_exc_resume" >&6; }
9489 ac_res
=$ac_cv_search_exc_resume
9490 if test "$ac_res" != no
; then :
9491 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9499 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9503 $as_echo_n "checking for library containing kstat_open... " >&6; }
9504 if test "${ac_cv_search_kstat_open+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9507 ac_func_search_save_LIBS
=$LIBS
9508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9521 return kstat_open ();
9526 for ac_lib
in '' kstat
; do
9527 if test -z "$ac_lib"; then
9528 ac_res
="none required"
9531 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9533 if ac_fn_cxx_try_link
"$LINENO"; then :
9534 ac_cv_search_kstat_open
=$ac_res
9536 rm -f core conftest.err conftest.
$ac_objext \
9538 if test "${ac_cv_search_kstat_open+set}" = set; then :
9542 if test "${ac_cv_search_kstat_open+set}" = set; then :
9545 ac_cv_search_kstat_open
=no
9548 LIBS
=$ac_func_search_save_LIBS
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9551 $as_echo "$ac_cv_search_kstat_open" >&6; }
9552 ac_res
=$ac_cv_search_kstat_open
9553 if test "$ac_res" != no
; then :
9554 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9558 EXTRA_GCC_LIBS
="$LIBS"
9562 # Some systems put ldexp and frexp in libm instead of libc; assume
9563 # they're both in the same place. jcf-dump needs them.
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9567 $as_echo_n "checking for library containing ldexp... " >&6; }
9568 if test "${ac_cv_search_ldexp+set}" = set; then :
9569 $as_echo_n "(cached) " >&6
9571 ac_func_search_save_LIBS
=$LIBS
9572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9590 for ac_lib
in '' m
; do
9591 if test -z "$ac_lib"; then
9592 ac_res
="none required"
9595 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9597 if ac_fn_cxx_try_link
"$LINENO"; then :
9598 ac_cv_search_ldexp
=$ac_res
9600 rm -f core conftest.err conftest.
$ac_objext \
9602 if test "${ac_cv_search_ldexp+set}" = set; then :
9606 if test "${ac_cv_search_ldexp+set}" = set; then :
9609 ac_cv_search_ldexp
=no
9612 LIBS
=$ac_func_search_save_LIBS
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9615 $as_echo "$ac_cv_search_ldexp" >&6; }
9616 ac_res
=$ac_cv_search_ldexp
9617 if test "$ac_res" != no
; then :
9618 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9626 # Use <inttypes.h> only if it exists,
9627 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9630 $as_echo_n "checking for inttypes.h... " >&6; }
9631 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 #define __STDC_FORMAT_MACROS
9637 #include <sys/types.h>
9638 #include <inttypes.h>
9650 if ac_fn_cxx_try_compile
"$LINENO"; then :
9651 gcc_cv_header_inttypes_h
=yes
9653 gcc_cv_header_inttypes_h
=no
9655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9659 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9660 if test $gcc_cv_header_inttypes_h = yes; then
9662 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9668 for ac_func
in times clock kill getrlimit setrlimit atoq \
9669 popen sysconf strsignal getrusage nl_langinfo \
9670 gettimeofday mbstowcs wcswidth mmap setlocale \
9671 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
9673 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9674 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9675 eval as_val
=\$
$as_ac_var
9676 if test "x$as_val" = x
""yes; then :
9677 cat >>confdefs.h
<<_ACEOF
9678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9685 if test x
$ac_cv_func_mbstowcs = xyes
; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9687 $as_echo_n "checking whether mbstowcs works... " >&6; }
9688 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9691 if test "$cross_compiling" = yes; then :
9692 gcc_cv_func_mbstowcs_works
=yes
9694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9703 if ac_fn_cxx_try_run
"$LINENO"; then :
9704 gcc_cv_func_mbstowcs_works
=yes
9706 gcc_cv_func_mbstowcs_works
=no
9708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9709 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9714 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9715 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9717 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9722 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9723 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9727 cat >>confdefs.h
<<_ACEOF
9733 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9734 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9738 cat >>confdefs.h
<<_ACEOF
9739 #define caddr_t char *
9746 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9747 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9748 gcc_header_sys_mman_h
=yes
9750 gcc_header_sys_mman_h
=no
9753 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9754 if test "x$ac_cv_func_mmap" = x
""yes; then :
9760 if test "$gcc_header_sys_mman_h" != yes \
9761 ||
test "$gcc_func_mmap" != yes; then
9762 gcc_cv_func_mmap_file
=no
9763 gcc_cv_func_mmap_dev_zero
=no
9764 gcc_cv_func_mmap_anon
=no
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9767 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9768 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9771 # Add a system to this blacklist if
9772 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9773 # memory area containing the same data that you'd get if you applied
9774 # read() to the same fd. The only system known to have a problem here
9775 # is VMS, where text files have record structure.
9778 gcc_cv_func_mmap_file
=no
;;
9780 gcc_cv_func_mmap_file
=yes;;
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9784 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9786 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9787 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9790 # Add a system to this blacklist if it has mmap() but /dev/zero
9791 # does not exist, or if mmapping /dev/zero does not give anonymous
9792 # zeroed pages with both the following properties:
9793 # 1. If you map N consecutive pages in with one call, and then
9794 # unmap any subset of those pages, the pages that were not
9795 # explicitly unmapped remain accessible.
9796 # 2. If you map two adjacent blocks of memory and then unmap them
9797 # both at once, they must both go away.
9798 # Systems known to be in this category are Windows (all variants),
9801 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9802 gcc_cv_func_mmap_dev_zero
=no
;;
9804 gcc_cv_func_mmap_dev_zero
=yes;;
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9808 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9810 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9812 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9813 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 #include <sys/types.h>
9819 #include <sys/mman.h>
9822 #ifndef MAP_ANONYMOUS
9823 #define MAP_ANONYMOUS MAP_ANON
9829 int n = MAP_ANONYMOUS;
9834 if ac_fn_cxx_try_compile
"$LINENO"; then :
9835 gcc_cv_decl_map_anon
=yes
9837 gcc_cv_decl_map_anon
=no
9839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9842 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9844 if test $gcc_cv_decl_map_anon = no
; then
9845 gcc_cv_func_mmap_anon
=no
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9848 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9849 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9852 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9853 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9854 # doesn't give anonymous zeroed pages with the same properties listed
9855 # above for use of /dev/zero.
9856 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9858 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9859 gcc_cv_func_mmap_anon
=no
;;
9861 gcc_cv_func_mmap_anon
=yes;;
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9865 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9869 if test $gcc_cv_func_mmap_file = yes; then
9871 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9874 if test $gcc_cv_func_mmap_dev_zero = yes; then
9876 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9879 if test $gcc_cv_func_mmap_anon = yes; then
9881 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9888 # Under VMS, vfork works very differently than on Unix. The standard test
9889 # won't work, and it isn't easily adaptable. It makes more sense to
9891 ac_cv_func_vfork_works
=yes
9894 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9895 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9899 cat >>confdefs.h
<<_ACEOF
9905 for ac_header
in vfork.h
9907 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9908 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9909 cat >>confdefs.h
<<_ACEOF
9910 #define HAVE_VFORK_H 1
9916 for ac_func
in fork vfork
9918 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9919 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9920 eval as_val
=\$
$as_ac_var
9921 if test "x$as_val" = x
""yes; then :
9922 cat >>confdefs.h
<<_ACEOF
9923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9929 if test "x$ac_cv_func_fork" = xyes
; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9931 $as_echo_n "checking for working fork... " >&6; }
9932 if test "${ac_cv_func_fork_works+set}" = set; then :
9933 $as_echo_n "(cached) " >&6
9935 if test "$cross_compiling" = yes; then :
9936 ac_cv_func_fork_works
=cross
9938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 $ac_includes_default
9945 /* By Ruediger Kuhlmann. */
9952 if ac_fn_cxx_try_run
"$LINENO"; then :
9953 ac_cv_func_fork_works
=yes
9955 ac_cv_func_fork_works
=no
9957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9958 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9963 $as_echo "$ac_cv_func_fork_works" >&6; }
9966 ac_cv_func_fork_works
=$ac_cv_func_fork
9968 if test "x$ac_cv_func_fork_works" = xcross
; then
9970 *-*-amigaos* |
*-*-msdosdjgpp*)
9971 # Override, as these systems have only a dummy fork() stub
9972 ac_cv_func_fork_works
=no
9975 ac_cv_func_fork_works
=yes
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9979 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9981 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9982 if test "x$ac_cv_func_vfork" = xyes
; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9984 $as_echo_n "checking for working vfork... " >&6; }
9985 if test "${ac_cv_func_vfork_works+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9988 if test "$cross_compiling" = yes; then :
9989 ac_cv_func_vfork_works
=cross
9991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 /* Thanks to Paul Eggert for this test. */
9994 $ac_includes_default
9995 #include <sys/wait.h>
9999 /* On some sparc systems, changes by the child to local and incoming
10000 argument registers are propagated back to the parent. The compiler
10001 is told about this with #include <vfork.h>, but some compilers
10002 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10003 static variable whose address is put into a register that is
10004 clobbered by the vfork. */
10007 sparc_address_test (int arg)
10009 sparc_address_test (arg) int arg;
10012 static pid_t child;
10030 pid_t parent = getpid ();
10033 sparc_address_test (0);
10038 /* Here is another test for sparc vfork register problems. This
10039 test uses lots of local variables, at least as many local
10040 variables as main has allocated so far including compiler
10041 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10042 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10043 reuse the register of parent for one of the local variables,
10044 since it will think that parent can't possibly be used any more
10045 in this routine. Assigning to the local variable will thus
10046 munge parent in the parent process. */
10048 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10049 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10050 /* Convince the compiler that p..p7 are live; otherwise, it might
10051 use the same hardware register for all 8 local variables. */
10052 if (p != p1 || p != p2 || p != p3 || p != p4
10053 || p != p5 || p != p6 || p != p7)
10056 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10057 from child file descriptors. If the child closes a descriptor
10058 before it execs or exits, this munges the parent's descriptor
10059 as well. Test for this by closing stdout in the child. */
10060 _exit(close(fileno(stdout)) != 0);
10065 while (wait(&status) != child)
10068 /* Was there some problem with vforking? */
10071 /* Did the child fail? (This shouldn't happen.) */
10074 /* Did the vfork/compiler bug occur? */
10075 || parent != getpid()
10077 /* Did the file descriptor bug occur? */
10078 || fstat(fileno(stdout), &st) != 0
10083 if ac_fn_cxx_try_run
"$LINENO"; then :
10084 ac_cv_func_vfork_works
=yes
10086 ac_cv_func_vfork_works
=no
10088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10094 $as_echo "$ac_cv_func_vfork_works" >&6; }
10097 if test "x$ac_cv_func_fork_works" = xcross
; then
10098 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10100 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10103 if test "x$ac_cv_func_vfork_works" = xyes
; then
10105 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10109 $as_echo "#define vfork fork" >>confdefs.h
10112 if test "x$ac_cv_func_fork_works" = xyes
; then
10114 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10120 if test "X$prefix" = "XNONE"; then
10121 acl_final_prefix
="$ac_default_prefix"
10123 acl_final_prefix
="$prefix"
10125 if test "X$exec_prefix" = "XNONE"; then
10126 acl_final_exec_prefix
='${prefix}'
10128 acl_final_exec_prefix
="$exec_prefix"
10130 acl_save_prefix
="$prefix"
10131 prefix
="$acl_final_prefix"
10132 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10133 prefix
="$acl_save_prefix"
10136 # Check whether --with-gnu-ld was given.
10137 if test "${with_gnu_ld+set}" = set; then :
10138 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10143 # Prepare PATH_SEPARATOR.
10144 # The user is always right.
10145 if test "${PATH_SEPARATOR+set}" != set; then
10146 echo "#! /bin/sh" >conf$$.sh
10147 echo "exit 0" >>conf$$.sh
10149 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10157 if test "$GCC" = yes; then
10158 # Check if gcc -print-prog-name=ld gives a path.
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10160 $as_echo_n "checking for ld used by GCC... " >&6; }
10163 # gcc leaves a trailing carriage return which upsets mingw
10164 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10166 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10169 # Accept absolute paths.
10170 [\\/]* |
[A-Za-z
]:[\\/]*)
10171 re_direlt
='/[^/][^/]*/\.\./'
10172 # Canonicalize the path of ld
10173 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10174 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10175 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10177 test -z "$LD" && LD
="$ac_prog"
10180 # If it fails, then pretend we aren't using GCC.
10184 # If it is relative, then search for the first ld in PATH.
10185 with_gnu_ld
=unknown
10188 elif test "$with_gnu_ld" = yes; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10190 $as_echo_n "checking for GNU ld... " >&6; }
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10193 $as_echo_n "checking for non-GNU ld... " >&6; }
10195 if test "${acl_cv_path_LD+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
10198 if test -z "$LD"; then
10199 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10200 for ac_dir
in $PATH; do
10201 test -z "$ac_dir" && ac_dir
=.
10202 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10203 acl_cv_path_LD
="$ac_dir/$ac_prog"
10204 # Check to see if the program is GNU ld. I'd rather use --version,
10205 # but apparently some GNU ld's only accept -v.
10206 # Break only if it was the GNU/non-GNU ld that we prefer.
10207 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10208 test "$with_gnu_ld" != no
&& break
10210 test "$with_gnu_ld" != yes && break
10216 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10220 LD
="$acl_cv_path_LD"
10221 if test -n "$LD"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10223 $as_echo "$LD" >&6; }
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10228 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10231 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10234 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10235 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10236 acl_cv_prog_gnu_ld
=yes
10238 acl_cv_prog_gnu_ld
=no
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10242 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10243 with_gnu_ld
=$acl_cv_prog_gnu_ld
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10248 $as_echo_n "checking for shared library run path origin... " >&6; }
10249 if test "${acl_cv_rpath+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10253 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10254 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10256 rm -f .
/conftest.sh
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10261 $as_echo "$acl_cv_rpath" >&6; }
10263 libext
="$acl_cv_libext"
10264 shlibext
="$acl_cv_shlibext"
10265 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10266 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10267 hardcode_direct
="$acl_cv_hardcode_direct"
10268 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10269 # Check whether --enable-rpath was given.
10270 if test "${enable_rpath+set}" = set; then :
10271 enableval
=$enable_rpath; :
10285 acl_save_prefix
="$prefix"
10286 prefix
="$acl_final_prefix"
10287 acl_save_exec_prefix
="$exec_prefix"
10288 exec_prefix
="$acl_final_exec_prefix"
10290 eval additional_includedir
=\"$includedir\"
10291 eval additional_libdir
=\"$libdir\"
10293 exec_prefix
="$acl_save_exec_prefix"
10294 prefix
="$acl_save_prefix"
10297 # Check whether --with-libiconv-prefix was given.
10298 if test "${with_libiconv_prefix+set}" = set; then :
10299 withval
=$with_libiconv_prefix;
10300 if test "X$withval" = "Xno"; then
10303 if test "X$withval" = "X"; then
10305 acl_save_prefix
="$prefix"
10306 prefix
="$acl_final_prefix"
10307 acl_save_exec_prefix
="$exec_prefix"
10308 exec_prefix
="$acl_final_exec_prefix"
10310 eval additional_includedir
=\"$includedir\"
10311 eval additional_libdir
=\"$libdir\"
10313 exec_prefix
="$acl_save_exec_prefix"
10314 prefix
="$acl_save_prefix"
10317 additional_includedir
="$withval/include"
10318 additional_libdir
="$withval/lib"
10329 names_already_handled
=
10330 names_next_round
='iconv '
10331 while test -n "$names_next_round"; do
10332 names_this_round
="$names_next_round"
10334 for name
in $names_this_round; do
10336 for n
in $names_already_handled; do
10337 if test "$n" = "$name"; then
10338 already_handled
=yes
10342 if test -z "$already_handled"; then
10343 names_already_handled
="$names_already_handled $name"
10344 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10345 eval value
=\"\
$HAVE_LIB$uppername\"
10346 if test -n "$value"; then
10347 if test "$value" = yes; then
10348 eval value
=\"\
$LIB$uppername\"
10349 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10350 eval value
=\"\
$LTLIB$uppername\"
10351 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10360 if test $use_additional = yes; then
10361 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10362 found_dir
="$additional_libdir"
10363 found_so
="$additional_libdir/lib$name.$shlibext"
10364 if test -f "$additional_libdir/lib$name.la"; then
10365 found_la
="$additional_libdir/lib$name.la"
10368 if test -f "$additional_libdir/lib$name.$libext"; then
10369 found_dir
="$additional_libdir"
10370 found_a
="$additional_libdir/lib$name.$libext"
10371 if test -f "$additional_libdir/lib$name.la"; then
10372 found_la
="$additional_libdir/lib$name.la"
10377 if test "X$found_dir" = "X"; then
10378 for x
in $LDFLAGS $LTLIBICONV; do
10380 acl_save_prefix
="$prefix"
10381 prefix
="$acl_final_prefix"
10382 acl_save_exec_prefix
="$exec_prefix"
10383 exec_prefix
="$acl_final_exec_prefix"
10385 exec_prefix
="$acl_save_exec_prefix"
10386 prefix
="$acl_save_prefix"
10390 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10391 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10393 found_so
="$dir/lib$name.$shlibext"
10394 if test -f "$dir/lib$name.la"; then
10395 found_la
="$dir/lib$name.la"
10398 if test -f "$dir/lib$name.$libext"; then
10400 found_a
="$dir/lib$name.$libext"
10401 if test -f "$dir/lib$name.la"; then
10402 found_la
="$dir/lib$name.la"
10408 if test "X$found_dir" != "X"; then
10413 if test "X$found_dir" != "X"; then
10414 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10415 if test "X$found_so" != "X"; then
10416 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10417 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10420 for x
in $ltrpathdirs; do
10421 if test "X$x" = "X$found_dir"; then
10426 if test -z "$haveit"; then
10427 ltrpathdirs
="$ltrpathdirs $found_dir"
10429 if test "$hardcode_direct" = yes; then
10430 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10432 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10433 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10435 for x
in $rpathdirs; do
10436 if test "X$x" = "X$found_dir"; then
10441 if test -z "$haveit"; then
10442 rpathdirs
="$rpathdirs $found_dir"
10446 for x
in $LDFLAGS $LIBICONV; do
10448 acl_save_prefix
="$prefix"
10449 prefix
="$acl_final_prefix"
10450 acl_save_exec_prefix
="$exec_prefix"
10451 exec_prefix
="$acl_final_exec_prefix"
10453 exec_prefix
="$acl_save_exec_prefix"
10454 prefix
="$acl_save_prefix"
10456 if test "X$x" = "X-L$found_dir"; then
10461 if test -z "$haveit"; then
10462 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10464 if test "$hardcode_minus_L" != no
; then
10465 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10467 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10473 if test "X$found_a" != "X"; then
10474 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10476 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10479 additional_includedir
=
10480 case "$found_dir" in
10482 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10483 additional_includedir
="$basedir/include"
10486 if test "X$additional_includedir" != "X"; then
10487 if test "X$additional_includedir" != "X/usr/include"; then
10489 if test "X$additional_includedir" = "X/usr/local/include"; then
10490 if test -n "$GCC"; then
10492 linux
*) haveit
=yes;;
10496 if test -z "$haveit"; then
10497 for x
in $CPPFLAGS $INCICONV; do
10499 acl_save_prefix
="$prefix"
10500 prefix
="$acl_final_prefix"
10501 acl_save_exec_prefix
="$exec_prefix"
10502 exec_prefix
="$acl_final_exec_prefix"
10504 exec_prefix
="$acl_save_exec_prefix"
10505 prefix
="$acl_save_prefix"
10507 if test "X$x" = "X-I$additional_includedir"; then
10512 if test -z "$haveit"; then
10513 if test -d "$additional_includedir"; then
10514 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10520 if test -n "$found_la"; then
10521 save_libdir
="$libdir"
10522 case "$found_la" in
10523 */* |
*\\*) .
"$found_la" ;;
10524 *) .
"./$found_la" ;;
10526 libdir
="$save_libdir"
10527 for dep
in $dependency_libs; do
10530 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10531 if test "X$additional_libdir" != "X/usr/lib"; then
10533 if test "X$additional_libdir" = "X/usr/local/lib"; then
10534 if test -n "$GCC"; then
10536 linux
*) haveit
=yes;;
10540 if test -z "$haveit"; then
10542 for x
in $LDFLAGS $LIBICONV; do
10544 acl_save_prefix
="$prefix"
10545 prefix
="$acl_final_prefix"
10546 acl_save_exec_prefix
="$exec_prefix"
10547 exec_prefix
="$acl_final_exec_prefix"
10549 exec_prefix
="$acl_save_exec_prefix"
10550 prefix
="$acl_save_prefix"
10552 if test "X$x" = "X-L$additional_libdir"; then
10557 if test -z "$haveit"; then
10558 if test -d "$additional_libdir"; then
10559 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10563 for x
in $LDFLAGS $LTLIBICONV; do
10565 acl_save_prefix
="$prefix"
10566 prefix
="$acl_final_prefix"
10567 acl_save_exec_prefix
="$exec_prefix"
10568 exec_prefix
="$acl_final_exec_prefix"
10570 exec_prefix
="$acl_save_exec_prefix"
10571 prefix
="$acl_save_prefix"
10573 if test "X$x" = "X-L$additional_libdir"; then
10578 if test -z "$haveit"; then
10579 if test -d "$additional_libdir"; then
10580 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10587 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10588 if test "$enable_rpath" != no
; then
10590 for x
in $rpathdirs; do
10591 if test "X$x" = "X$dir"; then
10596 if test -z "$haveit"; then
10597 rpathdirs
="$rpathdirs $dir"
10600 for x
in $ltrpathdirs; do
10601 if test "X$x" = "X$dir"; then
10606 if test -z "$haveit"; then
10607 ltrpathdirs
="$ltrpathdirs $dir"
10612 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10615 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10618 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10619 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10625 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10626 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10632 if test "X$rpathdirs" != "X"; then
10633 if test -n "$hardcode_libdir_separator"; then
10635 for found_dir
in $rpathdirs; do
10636 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10638 acl_save_libdir
="$libdir"
10640 eval flag
=\"$hardcode_libdir_flag_spec\"
10641 libdir
="$acl_save_libdir"
10642 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10644 for found_dir
in $rpathdirs; do
10645 acl_save_libdir
="$libdir"
10646 libdir
="$found_dir"
10647 eval flag
=\"$hardcode_libdir_flag_spec\"
10648 libdir
="$acl_save_libdir"
10649 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10653 if test "X$ltrpathdirs" != "X"; then
10654 for found_dir
in $ltrpathdirs; do
10655 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10666 $as_echo_n "checking for iconv... " >&6; }
10667 if test "${am_cv_func_iconv+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10671 am_cv_func_iconv
="no, consider installing GNU libiconv"
10673 am_save_CPPFLAGS
="$CPPFLAGS"
10674 CPPFLAGS
="$CPPFLAGS $INCICONV"
10675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #include <stdlib.h>
10682 iconv_t cd = iconv_open("","");
10683 iconv(cd,NULL,NULL,NULL,NULL);
10689 if ac_fn_cxx_try_link
"$LINENO"; then :
10690 am_cv_func_iconv
=yes
10692 rm -f core conftest.err conftest.
$ac_objext \
10693 conftest
$ac_exeext conftest.
$ac_ext
10694 CPPFLAGS
="$am_save_CPPFLAGS"
10696 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10697 for _libs
in .libs _libs
; do
10698 am_save_CPPFLAGS
="$CPPFLAGS"
10699 am_save_LIBS
="$LIBS"
10700 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10701 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 #include <stdlib.h>
10709 iconv_t cd = iconv_open("","");
10710 iconv(cd,NULL,NULL,NULL,NULL);
10716 if ac_fn_cxx_try_link
"$LINENO"; then :
10717 INCICONV
="-I../libiconv/include"
10718 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10719 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10720 am_cv_lib_iconv
=yes
10721 am_cv_func_iconv
=yes
10723 rm -f core conftest.err conftest.
$ac_objext \
10724 conftest
$ac_exeext conftest.
$ac_ext
10725 CPPFLAGS
="$am_save_CPPFLAGS"
10726 LIBS
="$am_save_LIBS"
10727 if test "$am_cv_func_iconv" = "yes"; then
10733 if test "$am_cv_func_iconv" != yes; then
10734 am_save_CPPFLAGS
="$CPPFLAGS"
10735 am_save_LIBS
="$LIBS"
10736 CPPFLAGS
="$LIBS $INCICONV"
10737 LIBS
="$LIBS $LIBICONV"
10738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <stdlib.h>
10745 iconv_t cd = iconv_open("","");
10746 iconv(cd,NULL,NULL,NULL,NULL);
10752 if ac_fn_cxx_try_link
"$LINENO"; then :
10753 am_cv_lib_iconv
=yes
10754 am_cv_func_iconv
=yes
10756 rm -f core conftest.err conftest.
$ac_objext \
10757 conftest
$ac_exeext conftest.
$ac_ext
10758 CPPFLAGS
="$am_save_CPPFLAGS"
10759 LIBS
="$am_save_LIBS"
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10764 $as_echo "$am_cv_func_iconv" >&6; }
10765 if test "$am_cv_func_iconv" = yes; then
10767 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10770 if test "$am_cv_lib_iconv" = yes; then
10772 for element
in $INCICONV; do
10774 for x
in $CPPFLAGS; do
10776 acl_save_prefix
="$prefix"
10777 prefix
="$acl_final_prefix"
10778 acl_save_exec_prefix
="$exec_prefix"
10779 exec_prefix
="$acl_final_exec_prefix"
10781 exec_prefix
="$acl_save_exec_prefix"
10782 prefix
="$acl_save_prefix"
10784 if test "X$x" = "X$element"; then
10789 if test -z "$haveit"; then
10790 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10795 $as_echo_n "checking how to link with libiconv... " >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10797 $as_echo "$LIBICONV" >&6; }
10805 if test "$am_cv_func_iconv" = yes; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10807 $as_echo_n "checking for iconv declaration... " >&6; }
10808 if test "${am_cv_proto_iconv+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10815 #include <stdlib.h>
10821 #if defined(__STDC__) || defined(__cplusplus)
10822 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10835 if ac_fn_cxx_try_compile
"$LINENO"; then :
10836 am_cv_proto_iconv_arg1
=""
10838 am_cv_proto_iconv_arg1
="const"
10840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10841 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);"
10844 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10846 }$am_cv_proto_iconv" >&5
10848 }$am_cv_proto_iconv" >&6; }
10850 cat >>confdefs.h
<<_ACEOF
10851 #define ICONV_CONST $am_cv_proto_iconv_arg1
10857 # Until we have in-tree GNU iconv:
10859 if test -f "$LTLIBICONV"; then
10860 LIBICONV_DEP
=$LTLIBICONV
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10866 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10867 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872 #include <locale.h>
10881 if ac_fn_cxx_try_link
"$LINENO"; then :
10882 am_cv_val_LC_MESSAGES
=yes
10884 am_cv_val_LC_MESSAGES
=no
10886 rm -f core conftest.err conftest.
$ac_objext \
10887 conftest
$ac_exeext conftest.
$ac_ext
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10890 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10891 if test $am_cv_val_LC_MESSAGES = yes; then
10893 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10900 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10901 if test "${am_cv_langinfo_codeset+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
10904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 #include <langinfo.h>
10910 char* cs = nl_langinfo(CODESET);
10915 if ac_fn_cxx_try_link
"$LINENO"; then :
10916 am_cv_langinfo_codeset
=yes
10918 am_cv_langinfo_codeset
=no
10920 rm -f core conftest.err conftest.
$ac_objext \
10921 conftest
$ac_exeext conftest.
$ac_ext
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10925 $as_echo "$am_cv_langinfo_codeset" >&6; }
10926 if test $am_cv_langinfo_codeset = yes; then
10928 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10933 # We will need to find libiberty.h and ansidecl.h
10934 saved_CFLAGS
="$CFLAGS"
10935 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10936 saved_CXXFLAGS
="$CXXFLAGS"
10937 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10939 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10940 # normal autoconf function for these. But force definition of
10941 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10942 # basename handling in libiberty.h.
10943 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10944 #undef HAVE_DECL_BASENAME
10945 #define HAVE_DECL_BASENAME 1
10946 #include \"ansidecl.h\"
10947 #include \"system.h\"
10949 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10955 cat >>confdefs.h
<<_ACEOF
10956 #define HAVE_DECL_BASENAME $ac_have_decl
10958 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10959 #undef HAVE_DECL_BASENAME
10960 #define HAVE_DECL_BASENAME 1
10961 #include \"ansidecl.h\"
10962 #include \"system.h\"
10964 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10970 cat >>confdefs.h
<<_ACEOF
10971 #define HAVE_DECL_STRSTR $ac_have_decl
10975 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10976 madvise stpcpy strnlen strsignal strverscmp \
10977 strtol strtoul strtoll strtoull setenv unsetenv \
10978 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10979 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
10981 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10983 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10984 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10985 $as_echo_n "(cached) " >&6
10987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10990 #define $ac_tr_decl 1
10992 #include "ansidecl.h"
10993 #include "system.h"
10999 char *(*pfn) = (char *(*)) $ac_func ;
11005 if ac_fn_cxx_try_compile
"$LINENO"; then :
11006 eval "gcc_cv_have_decl_$ac_func=yes"
11008 eval "gcc_cv_have_decl_$ac_func=no"
11010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11013 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11016 #define $ac_tr_decl 1
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11022 #define $ac_tr_decl 0
11030 for ac_func
in getrlimit setrlimit getrusage
11032 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11034 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11035 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11036 $as_echo_n "(cached) " >&6
11038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11041 #define $ac_tr_decl 1
11043 #include "ansidecl.h"
11044 #include "system.h"
11045 #ifdef HAVE_SYS_RESOURCE_H
11046 #include <sys/resource.h>
11054 char *(*pfn) = (char *(*)) $ac_func ;
11060 if ac_fn_cxx_try_compile
"$LINENO"; then :
11061 eval "gcc_cv_have_decl_$ac_func=yes"
11063 eval "gcc_cv_have_decl_$ac_func=no"
11065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11068 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11070 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11071 #define $ac_tr_decl 1
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11077 #define $ac_tr_decl 0
11085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11088 #include "ansidecl.h"
11089 #include "system.h"
11090 #ifdef HAVE_SYS_RESOURCE_H
11091 #include <sys/resource.h>
11102 if ac_fn_cxx_try_compile
"$LINENO"; then :
11106 $as_echo "#define rlim_t long" >>confdefs.h
11109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11111 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11112 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11113 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11114 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11115 for ac_func
in ldgetname
11117 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11119 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11120 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11121 $as_echo_n "(cached) " >&6
11123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11126 #define $ac_tr_decl 1
11128 #include "ansidecl.h"
11129 #include "system.h"
11130 #ifdef HAVE_LDFCN_H
11141 char *(*pfn) = (char *(*)) $ac_func ;
11147 if ac_fn_cxx_try_compile
"$LINENO"; then :
11148 eval "gcc_cv_have_decl_$ac_func=yes"
11150 eval "gcc_cv_have_decl_$ac_func=no"
11152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11155 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11157 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11158 #define $ac_tr_decl 1
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11164 #define $ac_tr_decl 0
11172 for ac_func
in times
11174 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11176 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11177 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11178 $as_echo_n "(cached) " >&6
11180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11183 #define $ac_tr_decl 1
11185 #include "ansidecl.h"
11186 #include "system.h"
11187 #ifdef HAVE_SYS_TIMES_H
11188 #include <sys/times.h>
11196 char *(*pfn) = (char *(*)) $ac_func ;
11202 if ac_fn_cxx_try_compile
"$LINENO"; then :
11203 eval "gcc_cv_have_decl_$ac_func=yes"
11205 eval "gcc_cv_have_decl_$ac_func=no"
11207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11210 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11213 #define $ac_tr_decl 1
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11219 #define $ac_tr_decl 0
11227 for ac_func
in sigaltstack
11229 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11231 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11232 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11233 $as_echo_n "(cached) " >&6
11235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11238 #define $ac_tr_decl 1
11240 #include "ansidecl.h"
11241 #include "system.h"
11242 #include <signal.h>
11249 char *(*pfn) = (char *(*)) $ac_func ;
11255 if ac_fn_cxx_try_compile
"$LINENO"; then :
11256 eval "gcc_cv_have_decl_$ac_func=yes"
11258 eval "gcc_cv_have_decl_$ac_func=no"
11260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11263 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11265 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11266 #define $ac_tr_decl 1
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11272 #define $ac_tr_decl 0
11280 # More time-related stuff.
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11282 $as_echo_n "checking for struct tms... " >&6; }
11283 if test "${ac_cv_struct_tms+set}" = set; then :
11284 $as_echo_n "(cached) " >&6
11287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 #include "ansidecl.h"
11291 #include "system.h"
11292 #ifdef HAVE_SYS_TIMES_H
11293 #include <sys/times.h>
11304 if ac_fn_cxx_try_compile
"$LINENO"; then :
11305 ac_cv_struct_tms
=yes
11307 ac_cv_struct_tms
=no
11309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11312 $as_echo "$ac_cv_struct_tms" >&6; }
11313 if test $ac_cv_struct_tms = yes; then
11315 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11319 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11320 # revisit after autoconf 2.50.
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11322 $as_echo_n "checking for clock_t... " >&6; }
11323 if test "${gcc_cv_type_clock_t+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11330 #include "ansidecl.h"
11331 #include "system.h"
11341 if ac_fn_cxx_try_compile
"$LINENO"; then :
11342 gcc_cv_type_clock_t
=yes
11344 gcc_cv_type_clock_t
=no
11346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11349 $as_echo "$gcc_cv_type_clock_t" >&6; }
11350 if test $gcc_cv_type_clock_t = yes; then
11352 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11356 # Check if F_SETLKW is supported by fcntl.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11358 $as_echo_n "checking for F_SETLKW... " >&6; }
11359 if test "${ac_cv_f_setlkw+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11376 return fcntl (1, F_SETLKW, &fl);
11381 if ac_fn_cxx_try_compile
"$LINENO"; then :
11386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11389 $as_echo "$ac_cv_f_setlkw" >&6; }
11390 if test $ac_cv_f_setlkw = yes; then
11392 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11396 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11397 CFLAGS
="$saved_CFLAGS"
11398 CXXFLAGS
="$saved_CXXFLAGS"
11400 # mkdir takes a single argument on some systems.
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11402 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11403 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11409 #include <sys/types.h>
11410 #ifdef HAVE_SYS_STAT_H
11411 # include <sys/stat.h>
11413 #ifdef HAVE_UNISTD_H
11414 # include <unistd.h>
11416 #ifdef HAVE_DIRECT_H
11417 # include <direct.h>
11427 if ac_fn_cxx_try_compile
"$LINENO"; then :
11428 gcc_cv_mkdir_takes_one_arg
=no
11430 gcc_cv_mkdir_takes_one_arg
=yes
11432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11435 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11436 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11438 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11449 # With Setjmp/Longjmp based exception handling.
11450 # Check whether --enable-sjlj-exceptions was given.
11451 if test "${enable_sjlj_exceptions+set}" = set; then :
11452 enableval
=$enable_sjlj_exceptions; case $target in
11454 if test $enableval != yes; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11456 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11461 force_sjlj_exceptions
=yes
11465 force_sjlj_exceptions
=yes
11469 force_sjlj_exceptions
=yes
11473 force_sjlj_exceptions
=no
11478 if test $force_sjlj_exceptions = yes; then
11479 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11481 cat >>confdefs.h
<<_ACEOF
11482 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11487 # --------------------------------------------------------
11488 # Build, host, and target specific configuration fragments
11489 # --------------------------------------------------------
11491 # Collect build-machine-specific information.
11492 .
${srcdir}/config.build ||
exit 1
11494 # Collect host-machine-specific information.
11495 .
${srcdir}/config.
host ||
exit 1
11499 # Collect target-machine-specific information.
11500 .
${srcdir}/config.gcc ||
exit 1
11502 extra_objs
="${host_extra_objs} ${extra_objs}"
11503 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11505 # Default the target-machine variables that were not explicitly set.
11506 if test x
"$tm_file" = x
11507 then tm_file
=$cpu_type/$cpu_type.h
; fi
11509 if test x
"$extra_headers" = x
11510 then extra_headers
=; fi
11512 if test x
$md_file = x
11513 then md_file
=$cpu_type/$cpu_type.md
; fi
11515 if test x
$out_file = x
11516 then out_file
=$cpu_type/$cpu_type.c
; fi
11518 if test x
"$tmake_file" = x
11519 then tmake_file
=$cpu_type/t-
$cpu_type
11522 # Support --enable-initfini-array.
11523 if test x
$enable_initfini_array != xno
; then
11524 tm_file
="${tm_file} initfini-array.h"
11527 if test x
"$dwarf2" = xyes
11528 then tm_file
="$tm_file tm-dwarf2.h"
11531 # Say what files are being used for the output code and MD file.
11532 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11533 echo "Using \`$srcdir/config/$md_file' as machine description file."
11535 # If any of the xm_file variables contain nonexistent files, warn
11536 # about them and drop them.
11539 for x
in $build_xm_file; do
11540 if test -f $srcdir/config
/$x
11542 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11543 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11546 build_xm_file
="$bx"
11549 for x
in $host_xm_file; do
11550 if test -f $srcdir/config
/$x
11552 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11553 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11559 for x
in $xm_file; do
11560 if test -f $srcdir/config
/$x
11562 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11563 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11569 for f
in $tm_file; do
11572 if test $count = ax
; then
11573 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11575 echo "Using the following target machine macro files:"
11576 for f
in $tm_file; do
11577 echo " $srcdir/config/$f"
11581 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11583 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11587 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11589 cat >>confdefs.h
<<_ACEOF
11590 #define HAVE_GNU_LD $gnu_ld_bool
11594 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11596 cat >>confdefs.h
<<_ACEOF
11597 #define HAVE_GNU_AS $gnu_as_bool
11602 for f
in $host_xm_file; do
11605 if test $count = a
; then
11607 elif test $count = ax
; then
11608 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11610 echo "Using the following host machine macro files:"
11611 for f
in $host_xm_file; do
11612 echo " $srcdir/config/$f"
11615 echo "Using ${out_host_hook_obj} for host machine hooks."
11617 if test "$host_xm_file" != "$build_xm_file"; then
11619 for f
in $build_xm_file; do
11622 if test $count = a
; then
11624 elif test $count = ax
; then
11625 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11627 echo "Using the following build machine macro files:"
11628 for f
in $build_xm_file; do
11629 echo " $srcdir/config/$f"
11634 if test -n "$configured_native_system_header_dir"; then
11635 native_system_header_dir
=$configured_native_system_header_dir
11637 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11641 powerpc
*-*-darwin*)
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11643 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11644 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11650 #include <sys/cdefs.h>
11651 #include <sys/signal.h>
11652 #include <ucontext.h>
11653 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11656 if ac_fn_cxx_try_compile
"$LINENO"; then :
11657 gcc_cv_mcontext_underscores
=no
11659 gcc_cv_mcontext_underscores
=yes
11661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11664 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11665 if test $gcc_cv_mcontext_underscores = yes; then
11667 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11677 # Check if a valid thread package
11678 case ${enable_threads} in
11681 target_thread_file
='single'
11685 target_thread_file
='single'
11687 aix | dce | lynx | mipssde | posix | rtems | \
11688 single | tpf | vxworks | win32
)
11689 target_thread_file
=${enable_threads}
11692 echo "${enable_threads} is an unknown thread package" 1>&2
11697 if test x
${thread_file} = x
; then
11698 # No thread file set by target-specific clauses in config.gcc,
11699 # so use file chosen by default logic above
11700 thread_file
=${target_thread_file}
11708 if test x
$enable___cxa_atexit = xyes || \
11709 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11710 if test x
$host = x
$target; then
11712 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11713 # keyed to flag_use_cxa_atexit
11721 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11722 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11725 echo "__cxa_atexit can't be enabled on this target"
11731 # We can't check for __cxa_atexit when building a cross, so assume
11735 if test x
$use_cxa_atexit = xyes
; then
11737 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11742 # Look for a file containing extra machine modes.
11743 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11744 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11747 cat >>confdefs.h
<<_ACEOF
11748 #define EXTRA_MODES_FILE "config/$extra_modes"
11753 # Convert extra_options into a form suitable for Makefile use.
11756 for f
in $extra_options; do
11757 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11758 all_opt_files
="$all_opt_files $srcdir/config/$f"
11762 # auto-host.h is the file containing items generated by autoconf and is
11763 # the first file included by config.h.
11764 # If host=build, it is correct to have bconfig include auto-host.h
11765 # as well. If host!=build, we are in error and need to do more
11766 # work to find out the build config parameters.
11767 if test x
$host = x
$build
11769 build_auto
=auto-host.h
11771 # We create a subdir, then run autoconf in the subdir.
11772 # To prevent recursion we set host and build for the new
11773 # invocation of configure to the build for this invocation
11780 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11781 *) realsrcdir
=..
/${srcdir};;
11783 # Clearing GMPINC is necessary to prevent host headers being
11784 # used by the build compiler. Defining GENERATOR_FILE stops
11785 # system.h from including gmp.h.
11786 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11787 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11788 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11789 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11790 ${realsrcdir}/configure \
11791 --enable-languages=${enable_languages-all} \
11792 --target=$target_alias --host=$build_alias --build=$build_alias
11794 # We just finished tests for the build machine, so rename
11795 # the file auto-build.h in the gcc directory.
11796 mv auto-host.h ..
/auto-build.h
11799 build_auto
=auto-build.h
11803 tm_file
="${tm_file} defaults.h"
11804 tm_p_file
="${tm_p_file} tm-preds.h"
11805 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11806 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11807 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11808 # put this back in temporarily.
11809 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11815 # Compile in configure arguments.
11816 if test -f configargs.h
; then
11817 # Being re-configured.
11818 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11819 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11821 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11824 # Double all backslashes and backslash all quotes to turn
11825 # gcc_config_arguments into a C string.
11826 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11827 $gcc_config_arguments
11829 gcc_config_arguments_str
=`cat conftest.out`
11832 cat > configargs.h
<<EOF
11833 /* Generated automatically. */
11834 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11835 static const char thread_model[] = "$thread_file";
11837 static const struct {
11838 const char *name, *value;
11839 } configure_default_options[] = $configure_default_options;
11842 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11843 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11844 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11845 if test -f $srcdir/REVISION
; then
11846 gcc_REVISION
=`cat $srcdir/REVISION`
11850 cat > plugin-version.h
<<EOF
11851 #include "configargs.h"
11853 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11854 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11855 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11856 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11858 static char basever[] = "$gcc_BASEVER";
11859 static char datestamp[] = "$gcc_DATESTAMP";
11860 static char devphase[] = "$gcc_DEVPHASE";
11861 static char revision[] = "$gcc_REVISION";
11863 /* FIXME plugins: We should make the version information more precise.
11864 One way to do is to add a checksum. */
11866 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11867 devphase, revision,
11868 configuration_arguments};
11871 # Determine what GCC version number to use in filesystem paths.
11873 get_gcc_base_ver
="cat"
11875 # Check whether --with-gcc-major-version-only was given.
11876 if test "${with_gcc_major_version_only+set}" = set; then :
11877 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
11878 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11886 # Internationalization
11887 # If we haven't got the data from the intl directory,
11888 # assume NLS is disabled.
11897 if test -f ..
/intl
/config.intl
; then
11898 . ..
/intl
/config.intl
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11901 $as_echo_n "checking whether NLS is requested... " >&6; }
11902 if test x
"$USE_NLS" != xyes
; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11907 $as_echo "yes" >&6; }
11909 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11913 $as_echo_n "checking for catalogs to be installed... " >&6; }
11914 # Look for .po and .gmo files in the source directory.
11917 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11918 # If there aren't any .gmo files the shell will give us the
11919 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11921 case "$cat" in *\
**)
11924 # The quadruple backslash is collapsed to a double backslash
11925 # by the backticks, then collapsed again by the double quotes,
11926 # leaving us with one backslash in the sed expression (right
11927 # before the dot that mustn't act as a wildcard).
11928 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11929 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11930 # The user is allowed to set LINGUAS to a list of languages to
11931 # install catalogs for. If it's empty that means "all of them."
11932 if test "x$LINGUAS" = x
; then
11933 CATALOGS
="$CATALOGS $cat"
11934 XLINGUAS
="$XLINGUAS $lang"
11936 case "$LINGUAS" in *$lang*)
11937 CATALOGS
="$CATALOGS $cat"
11938 XLINGUAS
="$XLINGUAS $lang"
11943 LINGUAS
="$XLINGUAS"
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11945 $as_echo "$LINGUAS" >&6; }
11958 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11959 # -liconv on the link line twice.
11960 case "$LIBINTL" in *$LIBICONV*)
11964 # Check whether --enable-secureplt was given.
11965 if test "${enable_secureplt+set}" = set; then :
11966 enableval
=$enable_secureplt;
11970 # Check whether --enable-mingw-wildcard was given.
11971 if test "${enable_mingw_wildcard+set}" = set; then :
11972 enableval
=$enable_mingw_wildcard;
11974 enable_mingw_wildcard
=platform
11977 if test x
"$enable_mingw_wildcard" != xplatform
; then :
11979 cat >>confdefs.h
<<_ACEOF
11980 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
11985 # Check whether --enable-leading-mingw64-underscores was given.
11986 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11987 enableval
=$enable_leading_mingw64_underscores;
11990 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11992 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11996 # Check whether --enable-cld was given.
11997 if test "${enable_cld+set}" = set; then :
11998 enableval
=$enable_cld;
12004 # Check whether --enable-frame-pointer was given.
12005 if test "${enable_frame_pointer+set}" = set; then :
12006 enableval
=$enable_frame_pointer;
12010 linux
* | darwin
[8912]*)
12011 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12013 enable_frame_pointer
=no
12016 enable_frame_pointer
=yes
12023 # Windows32 Registry support for specifying GCC installation paths.
12024 # Check whether --enable-win32-registry was given.
12025 if test "${enable_win32_registry+set}" = set; then :
12026 enableval
=$enable_win32_registry;
12031 win32 | pe | cygwin
* | mingw32
*)
12032 if test "x$enable_win32_registry" != xno
; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12034 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12035 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12036 $as_echo_n "(cached) " >&6
12038 ac_func_search_save_LIBS
=$LIBS
12039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12042 /* Override any GCC internal prototype to avoid an error.
12043 Use char because int might match the return type of a GCC
12044 builtin and then its argument prototype would still apply. */
12048 char RegOpenKeyExA ();
12052 return RegOpenKeyExA ();
12057 for ac_lib
in '' advapi32
; do
12058 if test -z "$ac_lib"; then
12059 ac_res
="none required"
12062 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12064 if ac_fn_cxx_try_link
"$LINENO"; then :
12065 ac_cv_search_RegOpenKeyExA
=$ac_res
12067 rm -f core conftest.err conftest.
$ac_objext \
12069 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12073 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12076 ac_cv_search_RegOpenKeyExA
=no
12078 rm conftest.
$ac_ext
12079 LIBS
=$ac_func_search_save_LIBS
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12082 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12083 ac_res
=$ac_cv_search_RegOpenKeyExA
12084 if test "$ac_res" != no
; then :
12085 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12088 enable_win32_registry
=no
12093 if test "x$enable_win32_registry" != xno
; then
12095 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12098 if test "x$enable_win32_registry" != xyes \
12099 && test "x$enable_win32_registry" != x
; then
12101 cat >>confdefs.h
<<_ACEOF
12102 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12110 # Get an absolute path to the GCC top-level source directory
12111 holddir
=`${PWDCMD-pwd}`
12113 topdir
=`${PWDCMD-pwd}`
12116 # Conditionalize the makefile for this host machine.
12118 for f
in ${host_xmake_file}
12120 if test -f ${srcdir}/config
/$f
12122 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12126 # Conditionalize the makefile for this target machine.
12128 for f
in ${tmake_file}
12130 if test -f ${srcdir}/config
/$f
12132 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12135 tmake_file
="${tmake_file_}"
12137 out_object_file
=`basename $out_file .c`.o
12138 common_out_object_file
=`basename $common_out_file .c`.o
12140 tm_file_list
="options.h"
12141 tm_include_list
="options.h insn-constants.h"
12142 for f
in $tm_file; do
12145 f
=`echo $f | sed 's/^..//'`
12146 tm_file_list
="${tm_file_list} $f"
12147 tm_include_list
="${tm_include_list} $f"
12150 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12151 tm_include_list
="${tm_include_list} $f"
12154 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12155 tm_include_list
="${tm_include_list} config/$f"
12162 for f
in $tm_p_file; do
12165 tm_p_file_list
="${tm_p_file_list} $f"
12166 tm_p_include_list
="${tm_p_include_list} $f"
12169 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12170 tm_p_include_list
="${tm_p_include_list} config/$f"
12176 for f
in $xm_file; do
12179 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12180 xm_include_list
="${xm_include_list} $f"
12183 xm_file_list
="${xm_file_list} $f"
12184 xm_include_list
="${xm_include_list} $f"
12187 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12188 xm_include_list
="${xm_include_list} config/$f"
12194 host_xm_include_list
=
12195 for f
in $host_xm_file; do
12198 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12199 host_xm_include_list
="${host_xm_include_list} $f"
12202 host_xm_file_list
="${host_xm_file_list} $f"
12203 host_xm_include_list
="${host_xm_include_list} $f"
12206 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12207 host_xm_include_list
="${host_xm_include_list} config/$f"
12212 build_xm_file_list
=
12213 for f
in $build_xm_file; do
12216 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12217 build_xm_include_list
="${build_xm_include_list} $f"
12219 auto-build.h | auto-host.h
)
12220 build_xm_file_list
="${build_xm_file_list} $f"
12221 build_xm_include_list
="${build_xm_include_list} $f"
12224 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12225 build_xm_include_list
="${build_xm_include_list} config/$f"
12230 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12231 # cross-compiler which does not use the native headers and libraries.
12232 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12235 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12236 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12238 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12239 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12240 if test "x$with_build_sysroot" != x
; then
12241 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12243 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12246 if test x
$host != x
$target
12248 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12250 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12251 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12252 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12255 if test "x$with_build_sysroot" != "x"; then
12256 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12257 elif test "x$with_sysroot" = x
; then
12258 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12259 elif test "x$with_sysroot" = xyes
; then
12260 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12262 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12265 target_header_dir
=${native_system_header_dir}
12268 # If this is a cross-compiler that does not
12269 # have its own set of headers then define
12272 # If this is using newlib, without having the headers available now,
12273 # then define inhibit_libc in LIBGCC2_CFLAGS.
12274 # This prevents libgcc2 from containing any code which requires libc
12276 : ${inhibit_libc=false}
12277 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12278 test x
$with_newlib = xyes
; } &&
12279 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12284 # When building gcc with a cross-compiler, we need to adjust things so
12285 # that the generator programs are still built with the native compiler.
12286 # Also, we cannot run fixincludes.
12288 # These are the normal (build=host) settings:
12289 CC_FOR_BUILD
='$(CC)'
12290 CXX_FOR_BUILD
='$(CXX)'
12291 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12292 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12293 BUILD_LDFLAGS
='$(LDFLAGS)'
12294 STMP_FIXINC
=stmp-fixinc
12296 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12297 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12299 # And these apply if build != host, or we are generating coverage data
12300 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12302 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12303 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12304 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12306 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12307 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12308 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12309 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12314 # Expand extra_headers to include complete path.
12315 # This substitutes for lots of t-* files.
12316 extra_headers_list
=
12317 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12318 for file in ${extra_headers} ; do
12319 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12322 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12323 if test x
"$use_gcc_tgmath" = xyes
12324 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12327 # Define collect2 in Makefile.
12328 case $host_can_use_collect2 in
12330 *) collect2
='collect2$(exeext)' ;;
12334 # Add a definition of USE_COLLECT2 if system wants one.
12335 case $use_collect2 in
12336 no
) use_collect2
= ;;
12339 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12340 xm_defines
="${xm_defines} USE_COLLECT2"
12341 case $host_can_use_collect2 in
12343 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12350 cat >>confdefs.h
<<_ACEOF
12351 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12355 # ---------------------------
12356 # Assembler & linker features
12357 # ---------------------------
12359 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12360 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12361 # However when ld-new is first executed from the build tree, libtool will
12362 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12363 # to the build tree. While doing this we need to use the previous-stage
12364 # linker, or we have an infinite loop. The presence of a shell script as
12365 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12366 # the gcc/collect-ld script. So we need to know how libtool works, or
12367 # exec-tool will fail.
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12373 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12378 macro_version
='2.2.7a'
12379 macro_revision
='1.3134'
12393 ltmain
="$ac_aux_dir/ltmain.sh"
12395 # Backslashify metacharacters that are still active within
12396 # double-quoted strings.
12397 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12399 # Same as above, but do not quote variable references.
12400 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12402 # Sed substitution to delay expansion of an escaped shell variable in a
12403 # double_quote_subst'ed string.
12404 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12406 # Sed substitution to delay expansion of an escaped single quote.
12407 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12409 # Sed substitution to avoid accidental globbing in evaled expressions
12410 no_glob_subst
='s/\*/\\\*/g'
12412 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12413 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12414 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12417 $as_echo_n "checking how to print strings... " >&6; }
12418 # Test print first, because it will be a builtin if present.
12419 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12420 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12422 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12425 # Use this function as a fallback that always works.
12426 func_fallback_echo ()
12428 eval 'cat <<_LTECHO_EOF
12432 ECHO='func_fallback_echo
'
12435 # func_echo_all arg...
12436 # Invoke $ECHO with all args, space-separated.
12443 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12444 $as_echo "printf" >&6; } ;;
12445 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12446 $as_echo "print -r" >&6; } ;;
12447 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12448 $as_echo "cat" >&6; } ;;
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12465 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12466 if test "${ac_cv_path_SED+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12469 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12470 for ac_i in 1 2 3 4 5 6 7; do
12471 ac_script="$ac_script$as_nl$ac_script"
12473 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12474 { ac_script=; unset ac_script;}
12475 if test -z "$SED"; then
12476 ac_path_SED_found=false
12477 # Loop through the user's path and
test for each of PROGNAME-LIST
12478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12479 for as_dir
in $PATH
12482 test -z "$as_dir" && as_dir
=.
12483 for ac_prog
in sed gsed
; do
12484 for ac_exec_ext
in '' $ac_executable_extensions; do
12485 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12486 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12487 # Check for GNU ac_path_SED and select it if it is found.
12488 # Check for GNU $ac_path_SED
12489 case `"$ac_path_SED" --version 2>&1` in
12491 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12494 $as_echo_n 0123456789 >"conftest.in"
12497 cat "conftest.in" "conftest.in" >"conftest.tmp"
12498 mv "conftest.tmp" "conftest.in"
12499 cp "conftest.in" "conftest.nl"
12500 $as_echo '' >> "conftest.nl"
12501 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12502 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12503 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12504 if test $ac_count -gt ${ac_path_SED_max-0}; then
12505 # Best one so far, save it but keep looking for a better one
12506 ac_cv_path_SED
="$ac_path_SED"
12507 ac_path_SED_max
=$ac_count
12509 # 10*(2^10) chars as input seems more than enough
12510 test $ac_count -gt 10 && break
12512 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12515 $ac_path_SED_found && break 3
12520 if test -z "$ac_cv_path_SED"; then
12521 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12524 ac_cv_path_SED
=$SED
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12529 $as_echo "$ac_cv_path_SED" >&6; }
12530 SED
="$ac_cv_path_SED"
12533 test -z "$SED" && SED
=sed
12534 Xsed
="$SED -e 1s/^X//"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12547 $as_echo_n "checking for fgrep... " >&6; }
12548 if test "${ac_cv_path_FGREP+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12551 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12552 then ac_cv_path_FGREP
="$GREP -F"
12554 if test -z "$FGREP"; then
12555 ac_path_FGREP_found
=false
12556 # Loop through the user's path and test for each of PROGNAME-LIST
12557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12558 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12561 test -z "$as_dir" && as_dir
=.
12562 for ac_prog
in fgrep
; do
12563 for ac_exec_ext
in '' $ac_executable_extensions; do
12564 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12565 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12566 # Check for GNU ac_path_FGREP and select it if it is found.
12567 # Check for GNU $ac_path_FGREP
12568 case `"$ac_path_FGREP" --version 2>&1` in
12570 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12573 $as_echo_n 0123456789 >"conftest.in"
12576 cat "conftest.in" "conftest.in" >"conftest.tmp"
12577 mv "conftest.tmp" "conftest.in"
12578 cp "conftest.in" "conftest.nl"
12579 $as_echo 'FGREP' >> "conftest.nl"
12580 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12582 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12583 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12584 # Best one so far, save it but keep looking for a better one
12585 ac_cv_path_FGREP
="$ac_path_FGREP"
12586 ac_path_FGREP_max
=$ac_count
12588 # 10*(2^10) chars as input seems more than enough
12589 test $ac_count -gt 10 && break
12591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12594 $ac_path_FGREP_found && break 3
12599 if test -z "$ac_cv_path_FGREP"; then
12600 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12603 ac_cv_path_FGREP
=$FGREP
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12609 $as_echo "$ac_cv_path_FGREP" >&6; }
12610 FGREP
="$ac_cv_path_FGREP"
12613 test -z "$GREP" && GREP
=grep
12633 # Check whether --with-gnu-ld was given.
12634 if test "${with_gnu_ld+set}" = set; then :
12635 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12641 if test "$GCC" = yes; then
12642 # Check if gcc -print-prog-name=ld gives a path.
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12644 $as_echo_n "checking for ld used by $CC... " >&6; }
12647 # gcc leaves a trailing carriage return which upsets mingw
12648 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12650 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12653 # Accept absolute paths.
12655 re_direlt
='/[^/][^/]*/\.\./'
12656 # Canonicalize the pathname of ld
12657 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12658 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12659 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12661 test -z "$LD" && LD
="$ac_prog"
12664 # If it fails, then pretend we aren't using GCC.
12668 # If it is relative, then search for the first ld in PATH.
12669 with_gnu_ld
=unknown
12672 elif test "$with_gnu_ld" = yes; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12674 $as_echo_n "checking for GNU ld... " >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12677 $as_echo_n "checking for non-GNU ld... " >&6; }
12679 if test "${lt_cv_path_LD+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12682 if test -z "$LD"; then
12683 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12684 for ac_dir
in $PATH; do
12686 test -z "$ac_dir" && ac_dir
=.
12687 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12688 lt_cv_path_LD
="$ac_dir/$ac_prog"
12689 # Check to see if the program is GNU ld. I'd rather use --version,
12690 # but apparently some variants of GNU ld only accept -v.
12691 # Break only if it was the GNU/non-GNU ld that we prefer.
12692 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12693 *GNU
* |
*'with BFD'*)
12694 test "$with_gnu_ld" != no
&& break
12697 test "$with_gnu_ld" != yes && break
12704 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12708 LD
="$lt_cv_path_LD"
12709 if test -n "$LD"; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12711 $as_echo "$LD" >&6; }
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12716 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12718 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12719 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12722 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12723 case `$LD -v 2>&1 </dev/null` in
12724 *GNU
* |
*'with BFD'*)
12725 lt_cv_prog_gnu_ld
=yes
12728 lt_cv_prog_gnu_ld
=no
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12733 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12734 with_gnu_ld
=$lt_cv_prog_gnu_ld
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12745 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12746 if test "${lt_cv_path_NM+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12749 if test -n "$NM"; then
12750 # Let the user override the test.
12751 lt_cv_path_NM
="$NM"
12753 lt_nm_to_check
="${ac_tool_prefix}nm"
12754 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12755 lt_nm_to_check
="$lt_nm_to_check nm"
12757 for lt_tmp_nm
in $lt_nm_to_check; do
12758 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12759 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12761 test -z "$ac_dir" && ac_dir
=.
12762 tmp_nm
="$ac_dir/$lt_tmp_nm"
12763 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12764 # Check to see if the nm accepts a BSD-compat flag.
12765 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12766 # nm: unknown option "B" ignored
12767 # Tru64's nm complains that /dev/null is an invalid object file
12768 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12769 */dev
/null
* |
*'Invalid file or object type'*)
12770 lt_cv_path_NM
="$tmp_nm -B"
12774 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12776 lt_cv_path_NM
="$tmp_nm -p"
12780 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12781 continue # so that we can try to find one that supports BSD flags
12790 : ${lt_cv_path_NM=no}
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12794 $as_echo "$lt_cv_path_NM" >&6; }
12795 if test "$lt_cv_path_NM" != "no"; then
12796 NM
="$lt_cv_path_NM"
12798 # Didn't find any BSD compatible name lister, look for dumpbin.
12799 if test -n "$DUMPBIN"; then :
12800 # Let the user override the test.
12802 if test -n "$ac_tool_prefix"; then
12803 for ac_prog
in dumpbin
"link -dump"
12805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12806 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12812 if test -n "$DUMPBIN"; then
12813 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12816 for as_dir
in $PATH
12819 test -z "$as_dir" && as_dir
=.
12820 for ac_exec_ext
in '' $ac_executable_extensions; do
12821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12822 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 DUMPBIN
=$ac_cv_prog_DUMPBIN
12833 if test -n "$DUMPBIN"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12835 $as_echo "$DUMPBIN" >&6; }
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12842 test -n "$DUMPBIN" && break
12845 if test -z "$DUMPBIN"; then
12846 ac_ct_DUMPBIN
=$DUMPBIN
12847 for ac_prog
in dumpbin
"link -dump"
12849 # Extract the first word of "$ac_prog", so it can be a program name with args.
12850 set dummy
$ac_prog; ac_word
=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12856 if test -n "$ac_ct_DUMPBIN"; then
12857 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12860 for as_dir
in $PATH
12863 test -z "$as_dir" && as_dir
=.
12864 for ac_exec_ext
in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12877 if test -n "$ac_ct_DUMPBIN"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12879 $as_echo "$ac_ct_DUMPBIN" >&6; }
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12886 test -n "$ac_ct_DUMPBIN" && break
12889 if test "x$ac_ct_DUMPBIN" = x
; then
12892 case $cross_compiling:$ac_tool_warned in
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12896 ac_tool_warned
=yes ;;
12898 DUMPBIN
=$ac_ct_DUMPBIN
12902 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12904 DUMPBIN
="$DUMPBIN -symbols"
12912 if test "$DUMPBIN" != ":"; then
12916 test -z "$NM" && NM
=nm
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12924 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12925 if test "${lt_cv_nm_interface+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
12928 lt_cv_nm_interface
="BSD nm"
12929 echo "int some_variable = 0;" > conftest.
$ac_ext
12930 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12931 (eval "$ac_compile" 2>conftest.err
)
12932 cat conftest.err
>&5
12933 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12934 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12935 cat conftest.err
>&5
12936 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12937 cat conftest.out
>&5
12938 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12939 lt_cv_nm_interface
="MS dumpbin"
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12944 $as_echo "$lt_cv_nm_interface" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12947 $as_echo_n "checking whether ln -s works... " >&6; }
12949 if test "$LN_S" = "ln -s"; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12951 $as_echo "yes" >&6; }
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12954 $as_echo "no, using $LN_S" >&6; }
12957 # find the maximum length of command line arguments
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12959 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12960 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12968 # On DJGPP, this test can blow up pretty badly due to problems in libc
12969 # (any single argument exceeding 2000 bytes causes a buffer overrun
12970 # during glob expansion). Even if it were fixed, the result of this
12971 # check would be larger than it should be.
12972 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12976 # Under GNU Hurd, this test is not required because there is
12977 # no limit to the length of command line arguments.
12978 # Libtool will interpret -1 as no limit whatsoever
12979 lt_cv_sys_max_cmd_len
=-1;
12982 cygwin
* | mingw
* | cegcc
*)
12983 # On Win9x/ME, this test blows up -- it succeeds, but takes
12984 # about 5 minutes as the teststring grows exponentially.
12985 # Worse, since 9x/ME are not pre-emptively multitasking,
12986 # you end up with a "frozen" computer, even though with patience
12987 # the test eventually succeeds (with a max line length of 256k).
12988 # Instead, let's just punt: use the minimum linelength reported by
12989 # all of the supported platforms: 8192 (on NT/2K/XP).
12990 lt_cv_sys_max_cmd_len
=8192;
12994 # On MiNT this can take a long time and run out of memory.
12995 lt_cv_sys_max_cmd_len
=8192;
12999 # On AmigaOS with pdksh, this test takes hours, literally.
13000 # So we just punt and use a minimum line length of 8192.
13001 lt_cv_sys_max_cmd_len
=8192;
13004 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13005 # This has been around since 386BSD, at least. Likely further.
13006 if test -x /sbin
/sysctl
; then
13007 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13008 elif test -x /usr
/sbin
/sysctl
; then
13009 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13011 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13013 # And add a safety zone
13014 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13015 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13019 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13020 lt_cv_sys_max_cmd_len
=196608
13024 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13025 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13026 # nice to cause kernel panics so lets avoid the loop below.
13027 # First set a reasonable default.
13028 lt_cv_sys_max_cmd_len
=16384
13030 if test -x /sbin
/sysconfig
; then
13031 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13032 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13037 lt_cv_sys_max_cmd_len
=102400
13039 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13040 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13041 if test -n "$kargmax"; then
13042 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13044 lt_cv_sys_max_cmd_len
=32768
13048 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13049 if test -n "$lt_cv_sys_max_cmd_len"; then
13050 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13051 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13053 # Make teststring a little bigger before we do anything with it.
13054 # a 1K string should be a reasonable start.
13055 for i
in 1 2 3 4 5 6 7 8 ; do
13056 teststring
=$teststring$teststring
13058 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13059 # If test is not a shell built-in, we'll probably end up computing a
13060 # maximum length that is only half of the actual maximum length, but
13062 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13063 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13064 test $i != 17 # 1/2 MB should be enough
13067 teststring
=$teststring$teststring
13069 # Only check the string length outside the loop.
13070 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13072 # Add a significant safety factor because C++ compilers can tack on
13073 # massive amounts of additional arguments before passing them to the
13074 # linker. It appears as though 1/2 is a usable value.
13075 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13082 if test -n $lt_cv_sys_max_cmd_len ; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13084 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13087 $as_echo "none" >&6; }
13089 max_cmd_len
=$lt_cv_sys_max_cmd_len
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13101 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13102 # Try some XSI features
13104 ( _lt_dummy
="a/b/c"
13105 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13107 && eval 'test $(( 1 + 1 )) -eq 2 \
13108 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13111 $as_echo "$xsi_shell" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13115 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13117 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13119 && lt_shell_append=yes
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13121 $as_echo "$lt_shell_append" >&6; }
13124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13134 # test EBCDIC or ASCII
13135 case `echo X|tr X '\101'` in
13136 A) # ASCII based system
13137 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13138 lt_SP2NL='tr \040 \012'
13139 lt_NL2SP='tr \015\012 \040\040'
13141 *) # EBCDIC based system
13142 lt_SP2NL='tr \100 \n'
13143 lt_NL2SP='tr \r\n \100\100'
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13156 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13157 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13158 $as_echo_n "(cached
) " >&6
13160 lt_cv_ld_reload_flag='-r'
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13163 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13164 reload_flag=$lt_cv_ld_reload_flag
13165 case $reload_flag in
13167 *) reload_flag=" $reload_flag" ;;
13169 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13172 if test "$GCC" = yes; then
13173 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13188 if test -n "$ac_tool_prefix"; then
13189 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13190 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13192 $as_echo_n "checking
for $ac_word...
" >&6; }
13193 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13194 $as_echo_n "(cached
) " >&6
13196 if test -n "$OBJDUMP"; then
13197 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13216 OBJDUMP=$ac_cv_prog_OBJDUMP
13217 if test -n "$OBJDUMP"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13219 $as_echo "$OBJDUMP" >&6; }
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13222 $as_echo "no
" >&6; }
13227 if test -z "$ac_cv_prog_OBJDUMP"; then
13228 ac_ct_OBJDUMP=$OBJDUMP
13229 # Extract the first word of "objdump
", so it can be a program name with args.
13230 set dummy objdump; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13232 $as_echo_n "checking
for $ac_word...
" >&6; }
13233 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13234 $as_echo_n "(cached
) " >&6
13236 if test -n "$ac_ct_OBJDUMP"; then
13237 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13246 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13247 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13256 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13257 if test -n "$ac_ct_OBJDUMP"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13259 $as_echo "$ac_ct_OBJDUMP" >&6; }
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13262 $as_echo "no
" >&6; }
13265 if test "x
$ac_ct_OBJDUMP" = x; then
13268 case $cross_compiling:$ac_tool_warned in
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13271 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13272 ac_tool_warned=yes ;;
13274 OBJDUMP=$ac_ct_OBJDUMP
13277 OBJDUMP="$ac_cv_prog_OBJDUMP"
13280 test -z "$OBJDUMP" && OBJDUMP=objdump
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13291 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13292 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13293 $as_echo_n "(cached
) " >&6
13295 lt_cv_file_magic_cmd='$MAGIC_CMD'
13296 lt_cv_file_magic_test_file=
13297 lt_cv_deplibs_check_method='unknown'
13298 # Need to set the preceding variable on all platforms that support
13299 # interlibrary dependencies.
13300 # 'none' -- dependencies not supported.
13301 # `unknown' -- same as none, but documents that we really don't know.
13302 # 'pass_all' -- all dependencies passed with no checks.
13303 # 'test_compile' -- check by making test program.
13304 # 'file_magic [[regex]]' -- check by looking for files in library path
13305 # which responds to the $file_magic_cmd with a given extended regex.
13306 # If you have `file' or equivalent on your system and you're not sure
13307 # whether `pass_all' will *always* work, you probably want this one.
13311 lt_cv_deplibs_check_method=pass_all
13315 lt_cv_deplibs_check_method=pass_all
13319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13320 lt_cv_file_magic_cmd='/usr/bin/file -L'
13321 lt_cv_file_magic_test_file=/shlib/libc.so
13325 # func_win32_libid is a shell function defined in ltmain.sh
13326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13327 lt_cv_file_magic_cmd='func_win32_libid'
13331 # Base MSYS/MinGW do not provide the 'file' command needed by
13332 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13333 # unless we find 'file', for example because we are cross-compiling.
13334 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13335 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13336 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13337 lt_cv_file_magic_cmd='func_win32_libid'
13339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13340 lt_cv_file_magic_cmd='$OBJDUMP -f'
13345 # use the weaker test based on 'objdump'. See mingw*.
13346 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13347 lt_cv_file_magic_cmd='$OBJDUMP -f'
13350 darwin* | rhapsody*)
13351 lt_cv_deplibs_check_method=pass_all
13354 freebsd* | dragonfly*)
13355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13358 # Not sure whether the presence of OpenBSD here was a mistake.
13359 # Let's accept both of them until this is cleared up.
13360 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13361 lt_cv_file_magic_cmd=/usr/bin/file
13362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13366 lt_cv_deplibs_check_method=pass_all
13371 lt_cv_deplibs_check_method=pass_all
13375 lt_cv_deplibs_check_method=pass_all
13378 hpux10.20* | hpux11*)
13379 lt_cv_file_magic_cmd=/usr/bin/file
13382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13386 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]'
13387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13401 irix5* | irix6* | nonstopux*)
13403 *-32|*"-32 ") libmagic=32-bit;;
13404 *-n32|*"-n32 ") libmagic=N32;;
13405 *-64|*"-64 ") libmagic=64-bit;;
13406 *) libmagic=never-match;;
13408 lt_cv_deplibs_check_method=pass_all
13411 # This must be Linux ELF.
13412 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13413 lt_cv_deplibs_check_method=pass_all
13417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13426 lt_cv_file_magic_cmd=/usr/bin/file
13427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13431 lt_cv_deplibs_check_method=pass_all
13435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13442 osf3* | osf4* | osf5*)
13443 lt_cv_deplibs_check_method=pass_all
13447 lt_cv_deplibs_check_method=pass_all
13451 lt_cv_deplibs_check_method=pass_all
13454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13455 lt_cv_deplibs_check_method=pass_all
13459 case $host_vendor in
13461 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]'
13462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13465 lt_cv_deplibs_check_method=pass_all
13468 lt_cv_file_magic_cmd='/bin/file'
13469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13472 lt_cv_file_magic_cmd='/bin/file'
13473 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13474 lt_cv_file_magic_test_file=/lib/libc.so
13477 lt_cv_deplibs_check_method=pass_all
13480 lt_cv_deplibs_check_method=pass_all
13486 lt_cv_deplibs_check_method=pass_all
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13492 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13493 file_magic_cmd=$lt_cv_file_magic_cmd
13494 deplibs_check_method=$lt_cv_deplibs_check_method
13495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13508 if test -n "$ac_tool_prefix"; then
13509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13510 set dummy ${ac_tool_prefix}ar; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13512 $as_echo_n "checking
for $ac_word...
" >&6; }
13513 if test "${ac_cv_prog_AR+set}" = set; then :
13514 $as_echo_n "(cached
) " >&6
13516 if test -n "$AR"; then
13517 ac_cv_prog_AR="$AR" # Let the user override the test.
13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520 for as_dir in $PATH
13523 test -z "$as_dir" && as_dir=.
13524 for ac_exec_ext in '' $ac_executable_extensions; do
13525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13526 ac_cv_prog_AR="${ac_tool_prefix}ar"
13527 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13537 if test -n "$AR"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13539 $as_echo "$AR" >&6; }
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13542 $as_echo "no
" >&6; }
13547 if test -z "$ac_cv_prog_AR"; then
13549 # Extract the first word of "ar", so it can be a program name with args.
13550 set dummy ar; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13552 $as_echo_n "checking
for $ac_word...
" >&6; }
13553 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13554 $as_echo_n "(cached
) " >&6
13556 if test -n "$ac_ct_AR"; then
13557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13566 ac_cv_prog_ac_ct_AR="ar"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13576 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13577 if test -n "$ac_ct_AR"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13579 $as_echo "$ac_ct_AR" >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13582 $as_echo "no
" >&6; }
13585 if test "x
$ac_ct_AR" = x; then
13588 case $cross_compiling:$ac_tool_warned in
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13591 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13592 ac_tool_warned=yes ;;
13597 AR="$ac_cv_prog_AR"
13600 test -z "$AR" && AR=ar
13601 test -z "$AR_FLAGS" && AR_FLAGS=cru
13613 if test -n "$ac_tool_prefix"; then
13614 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13615 set dummy ${ac_tool_prefix}strip; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13617 $as_echo_n "checking
for $ac_word...
" >&6; }
13618 if test "${ac_cv_prog_STRIP+set}" = set; then :
13619 $as_echo_n "(cached
) " >&6
13621 if test -n "$STRIP"; then
13622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13641 STRIP=$ac_cv_prog_STRIP
13642 if test -n "$STRIP"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13644 $as_echo "$STRIP" >&6; }
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13647 $as_echo "no
" >&6; }
13652 if test -z "$ac_cv_prog_STRIP"; then
13654 # Extract the first word of "strip
", so it can be a program name with args.
13655 set dummy strip; ac_word=$2
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13657 $as_echo_n "checking
for $ac_word...
" >&6; }
13658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13659 $as_echo_n "(cached
) " >&6
13661 if test -n "$ac_ct_STRIP"; then
13662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665 for as_dir in $PATH
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13671 ac_cv_prog_ac_ct_STRIP="strip
"
13672 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13682 if test -n "$ac_ct_STRIP"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13684 $as_echo "$ac_ct_STRIP" >&6; }
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13687 $as_echo "no
" >&6; }
13690 if test "x
$ac_ct_STRIP" = x; then
13693 case $cross_compiling:$ac_tool_warned in
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13696 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13697 ac_tool_warned=yes ;;
13702 STRIP="$ac_cv_prog_STRIP"
13705 test -z "$STRIP" && STRIP=:
13712 if test -n "$ac_tool_prefix"; then
13713 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13716 $as_echo_n "checking
for $ac_word...
" >&6; }
13717 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13718 $as_echo_n "(cached
) " >&6
13720 if test -n "$RANLIB"; then
13721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13727 test -z "$as_dir" && as_dir=.
13728 for ac_exec_ext in '' $ac_executable_extensions; do
13729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13731 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13740 RANLIB=$ac_cv_prog_RANLIB
13741 if test -n "$RANLIB"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13743 $as_echo "$RANLIB" >&6; }
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13746 $as_echo "no
" >&6; }
13751 if test -z "$ac_cv_prog_RANLIB"; then
13752 ac_ct_RANLIB=$RANLIB
13753 # Extract the first word of "ranlib
", so it can be a program name with args.
13754 set dummy ranlib; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13756 $as_echo_n "checking
for $ac_word...
" >&6; }
13757 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13758 $as_echo_n "(cached
) " >&6
13760 if test -n "$ac_ct_RANLIB"; then
13761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13770 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13781 if test -n "$ac_ct_RANLIB"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13783 $as_echo "$ac_ct_RANLIB" >&6; }
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13786 $as_echo "no
" >&6; }
13789 if test "x
$ac_ct_RANLIB" = x; then
13792 case $cross_compiling:$ac_tool_warned in
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13795 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13796 ac_tool_warned=yes ;;
13798 RANLIB=$ac_ct_RANLIB
13801 RANLIB="$ac_cv_prog_RANLIB"
13804 test -z "$RANLIB" && RANLIB=:
13811 # Determine commands to create old-style static archives.
13812 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13813 old_postinstall_cmds='chmod 644 $oldlib'
13814 old_postuninstall_cmds=
13816 if test -n "$RANLIB"; then
13819 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13822 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13825 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13830 lock_old_archive_extraction=yes ;;
13832 lock_old_archive_extraction=no ;;
13873 # If no C compiler was specified, use CC.
13876 # If no C compiler flags were specified, use CFLAGS.
13877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13879 # Allow CC to be a program name with arguments.
13883 # Check for command to grab the raw symbol name followed by C symbol from nm.
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13885 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13887 $as_echo_n "(cached
) " >&6
13890 # These are sane defaults that work on at least a few old systems.
13891 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13893 # Character class describing NM global symbol codes.
13894 symcode='[BCDEGRST]'
13896 # Regexp to match symbols that can be accessed directly from C.
13897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13899 # Define system-specific variables.
13904 cygwin* | mingw* | pw32* | cegcc*)
13905 symcode='[ABCDGISTW]'
13908 if test "$host_cpu" = ia64; then
13909 symcode='[ABCDEGRST]'
13912 irix* | nonstopux*)
13913 symcode='[BCDEGRST]'
13916 symcode='[BCDEGQRST]'
13927 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13935 # If we're using GNU nm, then use its standard symbol codes.
13936 case `$NM -V 2>&1` in
13937 *GNU* | *'with BFD'*)
13938 symcode='[ABCDGIRSTW]' ;;
13941 # Transform an extracted symbol line into a proper C declaration.
13942 # Some systems (esp. on ia64) link data and code symbols differently,
13943 # so use this general approach.
13944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13946 # Transform an extracted symbol line into symbol name and symbol address
13947 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13948 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'"
13950 # Handle CRLF in mingw tool chain
13954 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13958 # Try without a prefix underscore, then with it.
13959 for ac_symprfx in "" "_
"; do
13961 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13962 symxfrm="\\1 $ac_symprfx\\2 \\2"
13964 # Write the raw and C identifiers.
13965 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13966 # Fake it for dumpbin and say T for any non-static function
13967 # and D for any global variable.
13968 # Also find C++ and __fastcall symbols from MSVC++,
13969 # which start with @ or ?.
13970 lt_cv_sys_global_symbol_pipe="$AWK '"\
13971 " {last_section=section; section=\$ 3};"\
13972 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13973 " \$ 0!~/External *\|/{next};"\
13974 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13975 " {if(hide[section]) next};"\
13976 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13977 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13978 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13979 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13980 " ' prfx
=^
$ac_symprfx"
13982 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13985 # Check to see that the pipe works correctly.
13989 cat > conftest.$ac_ext <<_LT_EOF
13994 void nm_test_func(void);
13995 void nm_test_func(void){}
13999 int main(){nm_test_var='a';nm_test_func();return(0);}
14002 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14003 (eval $ac_compile) 2>&5
14005 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14006 test $ac_status = 0; }; then
14007 # Now try to grab the symbols.
14009 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14010 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14012 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14013 test $ac_status = 0; } && test -s "$nlist"; then
14014 # Try sorting and uniquifying the output.
14015 if sort "$nlist" | uniq > "$nlist"T; then
14016 mv -f "$nlist"T "$nlist"
14021 # Make sure that we snagged all the symbols we need.
14022 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14023 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14024 cat <<_LT_EOF > conftest.$ac_ext
14030 # Now generate the symbol file.
14031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14033 cat <<_LT_EOF >> conftest.$ac_ext
14035 /* The mapping between symbol names and symbols. */
14040 lt__PROGRAM__LTX_preloaded_symbols[] =
14042 { "@PROGRAM@
", (void *) 0 },
14044 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14045 cat <<\_LT_EOF >> conftest.$ac_ext
14049 /* This works around a problem in FreeBSD linker */
14050 #ifdef FREEBSD_WORKAROUND
14051 static const void *lt_preloaded_setup() {
14052 return lt__PROGRAM__LTX_preloaded_symbols;
14060 # Now try linking the two files.
14061 mv conftest.$ac_objext conftstm.$ac_objext
14062 lt_save_LIBS="$LIBS"
14063 lt_save_CFLAGS="$CFLAGS"
14064 LIBS="conftstm.
$ac_objext"
14065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14066 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14067 (eval $ac_link) 2>&5
14069 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14070 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14073 LIBS="$lt_save_LIBS"
14074 CFLAGS="$lt_save_CFLAGS"
14076 echo "cannot
find nm_test_func
in $nlist" >&5
14079 echo "cannot
find nm_test_var
in $nlist" >&5
14082 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14085 echo "$progname: failed program was
:" >&5
14086 cat conftest.$ac_ext >&5
14088 rm -rf conftest* conftst*
14090 # Do not use the global_symbol_pipe unless it works.
14091 if test "$pipe_works" = yes; then
14094 lt_cv_sys_global_symbol_pipe=
14100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14101 lt_cv_sys_global_symbol_to_cdecl=
14103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14105 $as_echo "failed
" >&6; }
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14108 $as_echo "ok
" >&6; }
14132 # Check whether --enable-libtool-lock was given.
14133 if test "${enable_libtool_lock+set}" = set; then :
14134 enableval=$enable_libtool_lock;
14137 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14139 # Some flags need to be propagated to the compiler or linker for good
14143 # Find out which ABI we are using.
14144 echo 'int i;' > conftest.$ac_ext
14145 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14146 (eval $ac_compile) 2>&5
14148 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14149 test $ac_status = 0; }; then
14150 case `/usr/bin/file conftest.$ac_objext` in
14152 HPUX_IA64_MODE="32"
14155 HPUX_IA64_MODE="64"
14162 # Find out which ABI we are using.
14163 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14164 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14165 (eval $ac_compile) 2>&5
14167 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14168 test $ac_status = 0; }; then
14169 if test "$lt_cv_prog_gnu_ld" = yes; then
14170 case `/usr/bin/file conftest.$ac_objext` in
14172 LD="${LD-ld} -melf32bsmip"
14175 LD="${LD-ld} -melf32bmipn32"
14178 LD="${LD-ld} -melf64bmip"
14182 case `/usr/bin/file conftest.$ac_objext` in
14198 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14199 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14200 # Find out which ABI we are using.
14201 echo 'int i;' > conftest.$ac_ext
14202 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14203 (eval $ac_compile) 2>&5
14205 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14206 test $ac_status = 0; }; then
14207 case `/usr/bin/file conftest.o` in
14210 x86_64-*kfreebsd*-gnu)
14211 LD="${LD-ld} -m elf_i386_fbsd
"
14214 case `/usr/bin/file conftest.o` in
14216 LD="${LD-ld} -m elf32_x86_64
"
14219 LD="${LD-ld} -m elf_i386
"
14223 powerpc64le-*linux*)
14224 LD="${LD-ld} -m elf32lppclinux
"
14227 LD="${LD-ld} -m elf32ppclinux
"
14230 LD="${LD-ld} -m elf_s390
"
14233 LD="${LD-ld} -m elf32_sparc
"
14239 x86_64-*kfreebsd*-gnu)
14240 LD="${LD-ld} -m elf_x86_64_fbsd
"
14243 LD="${LD-ld} -m elf_x86_64
"
14246 LD="${LD-ld} -m elf64lppc
"
14249 LD="${LD-ld} -m elf64ppc
"
14251 s390*-*linux*|s390*-*tpf*)
14252 LD="${LD-ld} -m elf64_s390
"
14255 LD="${LD-ld} -m elf64_sparc
"
14265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14266 SAVE_CFLAGS="$CFLAGS"
14267 CFLAGS="$CFLAGS -belf"
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14269 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14270 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14271 $as_echo_n "(cached
) " >&6
14274 ac_cpp='$CPP $CPPFLAGS'
14275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14290 if ac_fn_c_try_link "$LINENO"; then :
14291 lt_cv_cc_needs_belf=yes
14293 lt_cv_cc_needs_belf=no
14295 rm -f core conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14298 ac_cpp='$CPP $CPPFLAGS'
14299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14305 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14306 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14307 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14308 CFLAGS="$SAVE_CFLAGS"
14312 # Find out which ABI we are using.
14313 echo 'int i;' > conftest.$ac_ext
14314 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14315 (eval $ac_compile) 2>&5
14317 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14318 test $ac_status = 0; }; then
14319 case `/usr/bin/file conftest.o` in
14321 case $lt_cv_prog_gnu_ld in
14322 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14324 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14336 need_locks="$enable_libtool_lock"
14340 rhapsody* | darwin*)
14341 if test -n "$ac_tool_prefix"; then
14342 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14343 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14345 $as_echo_n "checking
for $ac_word...
" >&6; }
14346 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14347 $as_echo_n "(cached
) " >&6
14349 if test -n "$DSYMUTIL"; then
14350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14353 for as_dir in $PATH
14356 test -z "$as_dir" && as_dir=.
14357 for ac_exec_ext in '' $ac_executable_extensions; do
14358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14359 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14360 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14369 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14370 if test -n "$DSYMUTIL"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14372 $as_echo "$DSYMUTIL" >&6; }
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14375 $as_echo "no
" >&6; }
14380 if test -z "$ac_cv_prog_DSYMUTIL"; then
14381 ac_ct_DSYMUTIL=$DSYMUTIL
14382 # Extract the first word of "dsymutil
", so it can be a program name with args.
14383 set dummy dsymutil; ac_word=$2
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14385 $as_echo_n "checking
for $ac_word...
" >&6; }
14386 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14387 $as_echo_n "(cached
) " >&6
14389 if test -n "$ac_ct_DSYMUTIL"; then
14390 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393 for as_dir in $PATH
14396 test -z "$as_dir" && as_dir=.
14397 for ac_exec_ext in '' $ac_executable_extensions; do
14398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14399 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14400 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14409 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14410 if test -n "$ac_ct_DSYMUTIL"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14412 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14415 $as_echo "no
" >&6; }
14418 if test "x
$ac_ct_DSYMUTIL" = x; then
14421 case $cross_compiling:$ac_tool_warned in
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14424 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14425 ac_tool_warned=yes ;;
14427 DSYMUTIL=$ac_ct_DSYMUTIL
14430 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14433 if test -n "$ac_tool_prefix"; then
14434 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14435 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14437 $as_echo_n "checking
for $ac_word...
" >&6; }
14438 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14439 $as_echo_n "(cached
) " >&6
14441 if test -n "$NMEDIT"; then
14442 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14451 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14452 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14461 NMEDIT=$ac_cv_prog_NMEDIT
14462 if test -n "$NMEDIT"; then
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14464 $as_echo "$NMEDIT" >&6; }
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14467 $as_echo "no
" >&6; }
14472 if test -z "$ac_cv_prog_NMEDIT"; then
14473 ac_ct_NMEDIT=$NMEDIT
14474 # Extract the first word of "nmedit
", so it can be a program name with args.
14475 set dummy nmedit; ac_word=$2
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14477 $as_echo_n "checking
for $ac_word...
" >&6; }
14478 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14479 $as_echo_n "(cached
) " >&6
14481 if test -n "$ac_ct_NMEDIT"; then
14482 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $PATH
14488 test -z "$as_dir" && as_dir=.
14489 for ac_exec_ext in '' $ac_executable_extensions; do
14490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14491 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14492 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14501 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14502 if test -n "$ac_ct_NMEDIT"; then
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14504 $as_echo "$ac_ct_NMEDIT" >&6; }
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14507 $as_echo "no
" >&6; }
14510 if test "x
$ac_ct_NMEDIT" = x; then
14513 case $cross_compiling:$ac_tool_warned in
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14516 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14517 ac_tool_warned=yes ;;
14519 NMEDIT=$ac_ct_NMEDIT
14522 NMEDIT="$ac_cv_prog_NMEDIT"
14525 if test -n "$ac_tool_prefix"; then
14526 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14527 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14529 $as_echo_n "checking
for $ac_word...
" >&6; }
14530 if test "${ac_cv_prog_LIPO+set}" = set; then :
14531 $as_echo_n "(cached
) " >&6
14533 if test -n "$LIPO"; then
14534 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537 for as_dir in $PATH
14540 test -z "$as_dir" && as_dir=.
14541 for ac_exec_ext in '' $ac_executable_extensions; do
14542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14543 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14544 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14553 LIPO=$ac_cv_prog_LIPO
14554 if test -n "$LIPO"; then
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14556 $as_echo "$LIPO" >&6; }
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14559 $as_echo "no
" >&6; }
14564 if test -z "$ac_cv_prog_LIPO"; then
14566 # Extract the first word of "lipo
", so it can be a program name with args.
14567 set dummy lipo; ac_word=$2
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14569 $as_echo_n "checking
for $ac_word...
" >&6; }
14570 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14571 $as_echo_n "(cached
) " >&6
14573 if test -n "$ac_ct_LIPO"; then
14574 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577 for as_dir in $PATH
14580 test -z "$as_dir" && as_dir=.
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14583 ac_cv_prog_ac_ct_LIPO="lipo
"
14584 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14593 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14594 if test -n "$ac_ct_LIPO"; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14596 $as_echo "$ac_ct_LIPO" >&6; }
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14599 $as_echo "no
" >&6; }
14602 if test "x
$ac_ct_LIPO" = x; then
14605 case $cross_compiling:$ac_tool_warned in
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14608 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14609 ac_tool_warned=yes ;;
14614 LIPO="$ac_cv_prog_LIPO"
14617 if test -n "$ac_tool_prefix"; then
14618 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14619 set dummy ${ac_tool_prefix}otool; ac_word=$2
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14621 $as_echo_n "checking
for $ac_word...
" >&6; }
14622 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14623 $as_echo_n "(cached
) " >&6
14625 if test -n "$OTOOL"; then
14626 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14629 for as_dir in $PATH
14632 test -z "$as_dir" && as_dir=.
14633 for ac_exec_ext in '' $ac_executable_extensions; do
14634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14635 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14636 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14645 OTOOL=$ac_cv_prog_OTOOL
14646 if test -n "$OTOOL"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14648 $as_echo "$OTOOL" >&6; }
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14651 $as_echo "no
" >&6; }
14656 if test -z "$ac_cv_prog_OTOOL"; then
14658 # Extract the first word of "otool
", so it can be a program name with args.
14659 set dummy otool; ac_word=$2
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14661 $as_echo_n "checking
for $ac_word...
" >&6; }
14662 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14663 $as_echo_n "(cached
) " >&6
14665 if test -n "$ac_ct_OTOOL"; then
14666 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669 for as_dir in $PATH
14672 test -z "$as_dir" && as_dir=.
14673 for ac_exec_ext in '' $ac_executable_extensions; do
14674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14675 ac_cv_prog_ac_ct_OTOOL="otool
"
14676 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14685 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14686 if test -n "$ac_ct_OTOOL"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14688 $as_echo "$ac_ct_OTOOL" >&6; }
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14691 $as_echo "no
" >&6; }
14694 if test "x
$ac_ct_OTOOL" = x; then
14697 case $cross_compiling:$ac_tool_warned in
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14700 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14701 ac_tool_warned=yes ;;
14706 OTOOL="$ac_cv_prog_OTOOL"
14709 if test -n "$ac_tool_prefix"; then
14710 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14711 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14713 $as_echo_n "checking
for $ac_word...
" >&6; }
14714 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14715 $as_echo_n "(cached
) " >&6
14717 if test -n "$OTOOL64"; then
14718 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721 for as_dir in $PATH
14724 test -z "$as_dir" && as_dir=.
14725 for ac_exec_ext in '' $ac_executable_extensions; do
14726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14727 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14728 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14737 OTOOL64=$ac_cv_prog_OTOOL64
14738 if test -n "$OTOOL64"; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14740 $as_echo "$OTOOL64" >&6; }
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14743 $as_echo "no
" >&6; }
14748 if test -z "$ac_cv_prog_OTOOL64"; then
14749 ac_ct_OTOOL64=$OTOOL64
14750 # Extract the first word of "otool64
", so it can be a program name with args.
14751 set dummy otool64; ac_word=$2
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14753 $as_echo_n "checking
for $ac_word...
" >&6; }
14754 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14755 $as_echo_n "(cached
) " >&6
14757 if test -n "$ac_ct_OTOOL64"; then
14758 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14761 for as_dir in $PATH
14764 test -z "$as_dir" && as_dir=.
14765 for ac_exec_ext in '' $ac_executable_extensions; do
14766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14767 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14768 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14777 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14778 if test -n "$ac_ct_OTOOL64"; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14780 $as_echo "$ac_ct_OTOOL64" >&6; }
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14783 $as_echo "no
" >&6; }
14786 if test "x
$ac_ct_OTOOL64" = x; then
14789 case $cross_compiling:$ac_tool_warned in
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14792 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14793 ac_tool_warned=yes ;;
14795 OTOOL64=$ac_ct_OTOOL64
14798 OTOOL64="$ac_cv_prog_OTOOL64"
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14828 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14829 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14830 $as_echo_n "(cached
) " >&6
14832 lt_cv_apple_cc_single_mod=no
14833 if test -z "${LT_MULTI_MODULE}"; then
14834 # By default we will add the -single_module flag. You can override
14835 # by either setting the environment variable LT_MULTI_MODULE
14836 # non-empty at configure time, or by adding -multi_module to the
14838 rm -rf libconftest.dylib*
14839 echo "int foo
(void
){return 1;}" > conftest.c
14840 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14841 -dynamiclib -Wl,-single_module conftest.c
" >&5
14842 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14843 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14845 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14846 lt_cv_apple_cc_single_mod=yes
14848 cat conftest.err >&5
14850 rm -rf libconftest.dylib*
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14855 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14857 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14858 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14859 $as_echo_n "(cached
) " >&6
14861 lt_cv_ld_exported_symbols_list=no
14862 save_LDFLAGS=$LDFLAGS
14863 echo "_main
" > conftest.sym
14864 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14876 if ac_fn_c_try_link "$LINENO"; then :
14877 lt_cv_ld_exported_symbols_list=yes
14879 lt_cv_ld_exported_symbols_list=no
14881 rm -f core conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LDFLAGS="$save_LDFLAGS"
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14887 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14889 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14890 if test "${lt_cv_ld_force_load+set}" = set; then :
14891 $as_echo_n "(cached
) " >&6
14893 lt_cv_ld_force_load=no
14894 cat > conftest.c << _LT_EOF
14895 int forced_loaded() { return 2;}
14897 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14898 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14899 echo "$AR cru libconftest.a conftest.o
" >&5
14900 $AR cru libconftest.a conftest.o 2>&5
14901 cat > conftest.c << _LT_EOF
14902 int main() { return 0;}
14904 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14905 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14907 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14908 lt_cv_ld_force_load=yes
14910 cat conftest.err >&5
14912 rm -f conftest.err libconftest.a conftest conftest.c
14913 rm -rf conftest.dSYM
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14917 $as_echo "$lt_cv_ld_force_load" >&6; }
14919 rhapsody* | darwin1.[012])
14920 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14922 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14923 darwin*) # darwin 5.x on
14924 # if running on 10.5 or later, the deployment target defaults
14925 # to the OS version, if on x86, and 10.4, the deployment
14926 # target defaults to 10.4. Don't you love it?
14927 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14928 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14929 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14931 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14933 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14937 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14938 _lt_dar_single_mod='$single_module'
14940 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14941 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14943 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14945 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14946 _lt_dsymutil='~$DSYMUTIL $lib || :'
14954 for ac_header in dlfcn.h
14956 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14957 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14958 cat >>confdefs.h <<_ACEOF
14959 #define HAVE_DLFCN_H 1
14976 enable_win32_dll=no
14979 # Check whether --enable-shared was given.
14980 if test "${enable_shared+set}" = set; then :
14981 enableval=$enable_shared; p=${PACKAGE-default}
14983 yes) enable_shared=yes ;;
14984 no) enable_shared=no ;;
14987 # Look at the argument we got. We use all the common list separators.
14988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989 for pkg in $enableval; do
14991 if test "X
$pkg" = "X
$p"; then
15010 # Check whether --enable-static was given.
15011 if test "${enable_static+set}" = set; then :
15012 enableval=$enable_static; p=${PACKAGE-default}
15014 yes) enable_static=yes ;;
15015 no) enable_static=no ;;
15018 # Look at the argument we got. We use all the common list separators.
15019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15020 for pkg in $enableval; do
15022 if test "X
$pkg" = "X
$p"; then
15042 # Check whether --with-pic was given.
15043 if test "${with_pic+set}" = set; then :
15044 withval=$with_pic; pic_mode="$withval"
15050 test -z "$pic_mode" && pic_mode=default
15058 # Check whether --enable-fast-install was given.
15059 if test "${enable_fast_install+set}" = set; then :
15060 enableval=$enable_fast_install; p=${PACKAGE-default}
15062 yes) enable_fast_install=yes ;;
15063 no) enable_fast_install=no ;;
15065 enable_fast_install=no
15066 # Look at the argument we got. We use all the common list separators.
15067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15068 for pkg in $enableval; do
15070 if test "X
$pkg" = "X
$p"; then
15071 enable_fast_install=yes
15078 enable_fast_install=yes
15091 # This can be used to rebuild libtool when needed
15092 LIBTOOL_DEPS="$ltmain"
15094 # Always use our own libtool.
15095 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15122 test -z "$LN_S" && LN_S="ln -s"
15137 if test -n "${ZSH_VERSION+set}" ; then
15138 setopt NO_GLOB_SUBST
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15142 $as_echo_n "checking
for objdir...
" >&6; }
15143 if test "${lt_cv_objdir+set}" = set; then :
15144 $as_echo_n "(cached
) " >&6
15146 rm -f .libs 2>/dev/null
15147 mkdir .libs 2>/dev/null
15148 if test -d .libs; then
15151 # MS-DOS does not allow filenames that begin with a dot.
15154 rmdir .libs 2>/dev/null
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15157 $as_echo "$lt_cv_objdir" >&6; }
15158 objdir=$lt_cv_objdir
15164 cat >>confdefs.h <<_ACEOF
15165 #define LT_OBJDIR "$lt_cv_objdir/"
15173 # AIX sometimes has problems with the GCC collect2 program. For some
15174 # reason, if we set the COLLECT_NAMES environment variable, the problems
15175 # vanish in a puff of smoke.
15176 if test "X
${COLLECT_NAMES+set}" != Xset; then
15178 export COLLECT_NAMES
15183 # Global variables:
15185 can_build_shared=yes
15187 # All known linkers require a `.a' archive for static linking (except MSVC,
15188 # which needs '.lib').
15191 with_gnu_ld="$lt_cv_prog_gnu_ld"
15194 old_CFLAGS="$CFLAGS"
15196 # Set sane defaults for various variables
15197 test -z "$CC" && CC=cc
15198 test -z "$LTCC" && LTCC=$CC
15199 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15200 test -z "$LD" && LD=ld
15201 test -z "$ac_objext" && ac_objext=o
15203 for cc_temp in $compiler""; do
15205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15211 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15214 # Only perform the check for file, if the check method requires it
15215 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15216 case $deplibs_check_method in
15218 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15220 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15221 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15222 $as_echo_n "(cached
) " >&6
15226 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15229 lt_save_MAGIC_CMD="$MAGIC_CMD"
15230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15231 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15232 for ac_dir in $ac_dummy; do
15234 test -z "$ac_dir" && ac_dir=.
15235 if test -f $ac_dir/${ac_tool_prefix}file; then
15236 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15237 if test -n "$file_magic_test_file"; then
15238 case $deplibs_check_method in
15240 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15242 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15243 $EGREP "$file_magic_regex" > /dev/null; then
15248 *** Warning: the command libtool uses to detect shared libraries,
15249 *** $file_magic_cmd, produces output that libtool cannot recognize.
15250 *** The result is that libtool may fail to recognize shared libraries
15251 *** as such. This will affect the creation of libtool libraries that
15252 *** depend on shared libraries, but programs linked with such libtool
15253 *** libraries will work regardless of this problem. Nevertheless, you
15254 *** may want to report the problem to your system manager and/or to
15255 *** bug-libtool@gnu.org
15265 MAGIC_CMD="$lt_save_MAGIC_CMD"
15270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15271 if test -n "$MAGIC_CMD"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15273 $as_echo "$MAGIC_CMD" >&6; }
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15276 $as_echo "no
" >&6; }
15283 if test -z "$lt_cv_path_MAGIC_CMD"; then
15284 if test -n "$ac_tool_prefix"; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15286 $as_echo_n "checking
for file...
" >&6; }
15287 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15288 $as_echo_n "(cached
) " >&6
15292 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15295 lt_save_MAGIC_CMD="$MAGIC_CMD"
15296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15297 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15298 for ac_dir in $ac_dummy; do
15300 test -z "$ac_dir" && ac_dir=.
15301 if test -f $ac_dir/file; then
15302 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15303 if test -n "$file_magic_test_file"; then
15304 case $deplibs_check_method in
15306 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15307 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15309 $EGREP "$file_magic_regex" > /dev/null; then
15314 *** Warning: the command libtool uses to detect shared libraries,
15315 *** $file_magic_cmd, produces output that libtool cannot recognize.
15316 *** The result is that libtool may fail to recognize shared libraries
15317 *** as such. This will affect the creation of libtool libraries that
15318 *** depend on shared libraries, but programs linked with such libtool
15319 *** libraries will work regardless of this problem. Nevertheless, you
15320 *** may want to report the problem to your system manager and/or to
15321 *** bug-libtool@gnu.org
15331 MAGIC_CMD="$lt_save_MAGIC_CMD"
15336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15337 if test -n "$MAGIC_CMD"; then
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15339 $as_echo "$MAGIC_CMD" >&6; }
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15342 $as_echo "no
" >&6; }
15355 # Use C for the default configuration in the libtool script
15359 ac_cpp='$CPP $CPPFLAGS'
15360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15365 # Source file extension for C test sources.
15368 # Object file extension for compiled C test sources.
15372 # Code to be used in simple compile tests
15373 lt_simple_compile_test_code="int some_variable
= 0;"
15375 # Code to be used in simple link tests
15376 lt_simple_link_test_code='int main(){return(0);}'
15384 # If no C compiler was specified, use CC.
15387 # If no C compiler flags were specified, use CFLAGS.
15388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15390 # Allow CC to be a program name with arguments.
15393 # Save the default compiler, since it gets overwritten when the other
15394 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15395 compiler_DEFAULT=$CC
15397 # save warnings/boilerplate of simple test code
15398 ac_outfile=conftest.$ac_objext
15399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15401 _lt_compiler_boilerplate=`cat conftest.err`
15404 ac_outfile=conftest.$ac_objext
15405 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15407 _lt_linker_boilerplate=`cat conftest.err`
15412 ## There is no encapsulation within the following macros, do not change
15413 ## the running order or otherwise move them around unless you know exactly
15414 ## what you are doing...
15415 if test -n "$compiler"; then
15417 lt_prog_compiler_no_builtin_flag=
15419 if test "$GCC" = yes; then
15420 case $cc_basename in
15422 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15424 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15428 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15429 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15430 $as_echo_n "(cached
) " >&6
15432 lt_cv_prog_compiler_rtti_exceptions=no
15433 ac_outfile=conftest.$ac_objext
15434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15435 lt_compiler_flag="-fno-rtti -fno-exceptions"
15436 # Insert the option either (1) after the last *FLAGS variable, or
15437 # (2) before a word containing "conftest.
", or (3) at the end.
15438 # Note that $ac_compile itself does not contain backslashes and begins
15439 # with a dollar sign (not a hyphen), so the echo should work correctly.
15440 # The option is referenced via a variable to avoid confusing sed.
15441 lt_compile=`echo "$ac_compile" | $SED \
15442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444 -e 's:$: $lt_compiler_flag:'`
15445 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15446 (eval "$lt_compile" 2>conftest.err)
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15450 if (exit $ac_status) && test -s "$ac_outfile"; then
15451 # The compiler can only warn and ignore the option if not recognized
15452 # So say no if there are warnings other than the usual output.
15453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15456 lt_cv_prog_compiler_rtti_exceptions=yes
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15463 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15465 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15466 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15478 lt_prog_compiler_wl=
15479 lt_prog_compiler_pic=
15480 lt_prog_compiler_static=
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15483 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15485 if test "$GCC" = yes; then
15486 lt_prog_compiler_wl='-Wl,'
15487 lt_prog_compiler_static='-static'
15491 # All AIX code is PIC.
15492 if test "$host_cpu" = ia64; then
15493 # AIX 5 now supports IA64 processor
15494 lt_prog_compiler_static='-Bstatic'
15496 lt_prog_compiler_pic='-fPIC'
15502 # see comment about AmigaOS4 .so support
15503 lt_prog_compiler_pic='-fPIC'
15506 # FIXME: we need at least 68020 code to build shared libraries, but
15507 # adding the `-m68020' flag to GCC prevents building anything better,
15509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15515 # PIC is the default for these OSes.
15518 mingw* | cygwin* | pw32* | os2* | cegcc*)
15519 # This hack is so that the source file can tell whether it is being
15520 # built for inclusion in a dll (and should export symbols for example).
15521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15522 # (--disable-auto-import) libraries
15523 lt_prog_compiler_pic='-DDLL_EXPORT'
15526 darwin* | rhapsody*)
15527 # PIC is the default on this platform
15528 # Common symbols not allowed in MH_DYLIB files
15529 lt_prog_compiler_pic='-fno-common'
15533 # PIC is the default for Haiku.
15534 # The "-static" flag exists, but is broken.
15535 lt_prog_compiler_static=
15539 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15540 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15541 # sets the default TLS model and affects inlining.
15547 lt_prog_compiler_pic='-fPIC'
15553 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15554 # Instead, we relocate shared libraries at runtime.
15558 # Just because we use GCC doesn't mean we suddenly get shared libraries
15559 # on systems that don't support them.
15560 lt_prog_compiler_can_build_shared=no
15565 # QNX uses GNU C++, but need to define -shared option too, otherwise
15566 # it will coredump.
15567 lt_prog_compiler_pic='-fPIC -shared'
15571 if test -d /usr/nec; then
15572 lt_prog_compiler_pic=-Kconform_pic
15577 lt_prog_compiler_pic='-fPIC'
15581 case $cc_basename in
15582 nvcc*) # Cuda Compiler Driver 2.2
15583 lt_prog_compiler_wl='-Xlinker '
15584 lt_prog_compiler_pic='-Xcompiler -fPIC'
15588 # PORTME Check for flag to pass linker flags through the system compiler.
15591 lt_prog_compiler_wl='-Wl,'
15592 if test "$host_cpu" = ia64; then
15593 # AIX 5 now supports IA64 processor
15594 lt_prog_compiler_static='-Bstatic'
15596 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15600 mingw* | cygwin* | pw32* | os2* | cegcc*)
15601 # This hack is so that the source file can tell whether it is being
15602 # built for inclusion in a dll (and should export symbols for example).
15603 lt_prog_compiler_pic='-DDLL_EXPORT'
15606 hpux9* | hpux10* | hpux11*)
15607 lt_prog_compiler_wl='-Wl,'
15608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15609 # not for PA HP-UX.
15615 lt_prog_compiler_pic='+Z'
15618 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15619 lt_prog_compiler_static='${wl}-a ${wl}archive'
15622 irix5* | irix6* | nonstopux*)
15623 lt_prog_compiler_wl='-Wl,'
15624 # PIC (with -KPIC) is the default.
15625 lt_prog_compiler_static='-non_shared'
15628 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15629 case $cc_basename in
15630 # old Intel for x86_64 which still supported -KPIC.
15632 lt_prog_compiler_wl='-Wl,'
15633 lt_prog_compiler_pic='-KPIC'
15634 lt_prog_compiler_static='-static'
15636 # icc used to be incompatible with GCC.
15637 # ICC 10 doesn't accept -KPIC any more.
15639 lt_prog_compiler_wl='-Wl,'
15640 lt_prog_compiler_pic='-fPIC'
15641 lt_prog_compiler_static='-static'
15643 # Lahey Fortran 8.1.
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='--shared'
15647 lt_prog_compiler_static='--static'
15649 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15650 # Portland Group compilers (*not* the Pentium gcc compiler,
15651 # which looks to be a dead project)
15652 lt_prog_compiler_wl='-Wl,'
15653 lt_prog_compiler_pic='-fpic'
15654 lt_prog_compiler_static='-Bstatic'
15657 lt_prog_compiler_wl='-Wl,'
15658 # All Alpha code is PIC.
15659 lt_prog_compiler_static='-non_shared'
15661 xl* | bgxl* | bgf* | mpixl*)
15662 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15663 lt_prog_compiler_wl='-Wl,'
15664 lt_prog_compiler_pic='-qpic'
15665 lt_prog_compiler_static='-qstaticlink'
15668 case `$CC -V 2>&1 | sed 5q` in
15669 *Sun\ F* | *Sun*Fortran*)
15670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15671 lt_prog_compiler_pic='-KPIC'
15672 lt_prog_compiler_static='-Bstatic'
15673 lt_prog_compiler_wl=''
15677 lt_prog_compiler_pic='-KPIC'
15678 lt_prog_compiler_static='-Bstatic'
15679 lt_prog_compiler_wl='-Wl,'
15687 lt_prog_compiler_pic='-KPIC'
15688 lt_prog_compiler_static='-Bstatic'
15692 # QNX uses GNU C++, but need to define -shared option too, otherwise
15693 # it will coredump.
15694 lt_prog_compiler_pic='-fPIC -shared'
15697 osf3* | osf4* | osf5*)
15698 lt_prog_compiler_wl='-Wl,'
15699 # All OSF/1 code is PIC.
15700 lt_prog_compiler_static='-non_shared'
15704 lt_prog_compiler_static='-non_shared'
15708 lt_prog_compiler_pic='-KPIC'
15709 lt_prog_compiler_static='-Bstatic'
15710 case $cc_basename in
15711 f77* | f90* | f95*)
15712 lt_prog_compiler_wl='-Qoption ld ';;
15714 lt_prog_compiler_wl='-Wl,';;
15719 lt_prog_compiler_wl='-Qoption ld '
15720 lt_prog_compiler_pic='-PIC'
15721 lt_prog_compiler_static='-Bstatic'
15724 sysv4 | sysv4.2uw2* | sysv4.3*)
15725 lt_prog_compiler_wl='-Wl,'
15726 lt_prog_compiler_pic='-KPIC'
15727 lt_prog_compiler_static='-Bstatic'
15731 if test -d /usr/nec ;then
15732 lt_prog_compiler_pic='-Kconform_pic'
15733 lt_prog_compiler_static='-Bstatic'
15737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15738 lt_prog_compiler_wl='-Wl,'
15739 lt_prog_compiler_pic='-KPIC'
15740 lt_prog_compiler_static='-Bstatic'
15744 lt_prog_compiler_wl='-Wl,'
15745 lt_prog_compiler_can_build_shared=no
15749 lt_prog_compiler_pic='-pic'
15750 lt_prog_compiler_static='-Bstatic'
15754 lt_prog_compiler_can_build_shared=no
15760 # For platforms which do not support PIC, -DPIC is meaningless:
15762 lt_prog_compiler_pic=
15765 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15769 $as_echo "$lt_prog_compiler_pic" >&6; }
15777 # Check to make sure the PIC flag actually works.
15779 if test -n "$lt_prog_compiler_pic"; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15781 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15782 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15783 $as_echo_n "(cached
) " >&6
15785 lt_cv_prog_compiler_pic_works=no
15786 ac_outfile=conftest.$ac_objext
15787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15788 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15789 # Insert the option either (1) after the last *FLAGS variable, or
15790 # (2) before a word containing "conftest.
", or (3) at the end.
15791 # Note that $ac_compile itself does not contain backslashes and begins
15792 # with a dollar sign (not a hyphen), so the echo should work correctly.
15793 # The option is referenced via a variable to avoid confusing sed.
15794 lt_compile=`echo "$ac_compile" | $SED \
15795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797 -e 's:$: $lt_compiler_flag:'`
15798 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15799 (eval "$lt_compile" 2>conftest.err)
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15803 if (exit $ac_status) && test -s "$ac_outfile"; then
15804 # The compiler can only warn and ignore the option if not recognized
15805 # So say no if there are warnings other than the usual output.
15806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15809 lt_cv_prog_compiler_pic_works=yes
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15816 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15818 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15819 case $lt_prog_compiler_pic in
15821 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15824 lt_prog_compiler_pic=
15825 lt_prog_compiler_can_build_shared=no
15836 # Check to make sure the static flag actually works.
15838 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15840 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15841 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15842 $as_echo_n "(cached
) " >&6
15844 lt_cv_prog_compiler_static_works=no
15845 save_LDFLAGS="$LDFLAGS"
15846 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15847 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15849 # The linker can only warn and ignore the option if not recognized
15850 # So say no if there are warnings
15851 if test -s conftest.err; then
15852 # Append any errors to the config.log.
15853 cat conftest.err 1>&5
15854 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15856 if diff conftest.exp conftest.er2 >/dev/null; then
15857 lt_cv_prog_compiler_static_works=yes
15860 lt_cv_prog_compiler_static_works=yes
15864 LDFLAGS="$save_LDFLAGS"
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15868 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15870 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15873 lt_prog_compiler_static=
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15883 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15885 $as_echo_n "(cached
) " >&6
15887 lt_cv_prog_compiler_c_o=no
15888 $RM -r conftest 2>/dev/null
15892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15894 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15895 # Insert the option either (1) after the last *FLAGS variable, or
15896 # (2) before a word containing "conftest.
", or (3) at the end.
15897 # Note that $ac_compile itself does not contain backslashes and begins
15898 # with a dollar sign (not a hyphen), so the echo should work correctly.
15899 lt_compile=`echo "$ac_compile" | $SED \
15900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15902 -e 's:$: $lt_compiler_flag:'`
15903 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15904 (eval "$lt_compile" 2>out/conftest.err)
15906 cat out/conftest.err >&5
15907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15910 # The compiler can only warn and ignore the option if not recognized
15911 # So say no if there are warnings
15912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15915 lt_cv_prog_compiler_c_o=yes
15920 # SGI C++ compiler will create directory out/ii_files/ for
15921 # template instantiation
15922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15923 $RM out/* && rmdir out
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15930 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15938 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15939 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15940 $as_echo_n "(cached
) " >&6
15942 lt_cv_prog_compiler_c_o=no
15943 $RM -r conftest 2>/dev/null
15947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15949 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15950 # Insert the option either (1) after the last *FLAGS variable, or
15951 # (2) before a word containing "conftest.
", or (3) at the end.
15952 # Note that $ac_compile itself does not contain backslashes and begins
15953 # with a dollar sign (not a hyphen), so the echo should work correctly.
15954 lt_compile=`echo "$ac_compile" | $SED \
15955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957 -e 's:$: $lt_compiler_flag:'`
15958 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15959 (eval "$lt_compile" 2>out/conftest.err)
15961 cat out/conftest.err >&5
15962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15965 # The compiler can only warn and ignore the option if not recognized
15966 # So say no if there are warnings
15967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15970 lt_cv_prog_compiler_c_o=yes
15975 # SGI C++ compiler will create directory out/ii_files/ for
15976 # template instantiation
15977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15978 $RM out/* && rmdir out
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15990 hard_links="nottested
"
15991 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15992 # do not overwrite the value of need_locks provided by the user
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15994 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15999 ln conftest.a conftest.b 2>&5 || hard_links=no
16000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16002 $as_echo "$hard_links" >&6; }
16003 if test "$hard_links" = no; then
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16005 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16018 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16021 allow_undefined_flag=
16022 always_export_symbols=no
16024 archive_expsym_cmds=
16025 compiler_needs_object=no
16026 enable_shared_with_static_runtimes=no
16027 export_dynamic_flag_spec=
16028 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16029 hardcode_automatic=no
16031 hardcode_direct_absolute=no
16032 hardcode_libdir_flag_spec=
16033 hardcode_libdir_flag_spec_ld=
16034 hardcode_libdir_separator=
16035 hardcode_minus_L=no
16036 hardcode_shlibpath_var=unsupported
16038 link_all_deplibs=unknown
16040 module_expsym_cmds=
16041 old_archive_from_new_cmds=
16042 old_archive_from_expsyms_cmds=
16043 thread_safe_flag_spec=
16044 whole_archive_flag_spec=
16045 # include_expsyms should be a list of space-separated symbols to be *always*
16046 # included in the symbol list
16048 # exclude_expsyms can be an extended regexp of symbols to exclude
16049 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16050 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16051 # as well as any symbol that contains `d'.
16052 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16053 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16054 # platforms (ab)use it in PIC code, but their linkers get confused if
16055 # the symbol is explicitly referenced. Since portable code cannot
16056 # rely on this symbol name, it's probably fine to never include it in
16057 # preloaded symbol tables.
16058 # Exclude shared library initialization/finalization symbols.
16059 extract_expsyms_cmds=
16062 cygwin* | mingw* | pw32* | cegcc*)
16063 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16064 # When not using gcc, we currently assume that we are using
16065 # Microsoft Visual C++.
16066 if test "$GCC" != yes; then
16071 # we just hope/assume this is gcc and not c89 (= MSVC++)
16081 # On some targets, GNU ld is compatible enough with the native linker
16082 # that we're better off using the native interface for both.
16083 lt_use_gnu_ld_interface=no
16084 if test "$with_gnu_ld" = yes; then
16087 # The AIX port of GNU ld has always aspired to compatibility
16088 # with the native linker. However, as the warning in the GNU ld
16089 # block says, versions before 2.19.5* couldn't really create working
16090 # shared libraries, regardless of the interface used.
16091 case `$LD -v 2>&1` in
16092 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16093 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16094 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16096 lt_use_gnu_ld_interface=yes
16101 lt_use_gnu_ld_interface=yes
16106 if test "$lt_use_gnu_ld_interface" = yes; then
16107 # If archive_cmds runs LD, not CC, wlarc should be empty
16110 # Set some defaults for GNU ld with shared library support. These
16111 # are reset later if shared libraries are not supported. Putting them
16112 # here allows them to be overridden if necessary.
16113 runpath_var=LD_RUN_PATH
16114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16115 export_dynamic_flag_spec='${wl}--export-dynamic'
16116 # ancient GNU ld didn't support --whole-archive et. al.
16117 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16118 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16120 whole_archive_flag_spec=
16122 supports_anon_versioning=no
16123 case `$LD -v 2>&1` in
16124 *GNU\ gold*) supports_anon_versioning=yes ;;
16125 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16126 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16127 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16128 *\ 2.11.*) ;; # other 2.11 versions
16129 *) supports_anon_versioning=yes ;;
16132 # See if GNU ld supports shared libraries.
16135 # On AIX/PPC, the GNU linker is very broken
16136 if test "$host_cpu" != ia64; then
16140 *** Warning: the GNU linker, at least up to release 2.19, is reported
16141 *** to be unable to reliably create shared libraries on AIX.
16142 *** Therefore, libtool is disabling shared libraries support. If you
16143 *** really care for shared libraries, you may want to install binutils
16144 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16145 *** You will then need to restart the configuration process.
16154 # see comment about AmigaOS4 .so support
16155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156 archive_expsym_cmds=''
16159 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)'
16160 hardcode_libdir_flag_spec
='-L$libdir'
16161 hardcode_minus_L
=yes
16167 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16168 allow_undefined_flag
=unsupported
16169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16170 # support --undefined. This deserves some investigation. FIXME
16171 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16177 cygwin
* | mingw
* | pw32
* | cegcc
*)
16178 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16179 # as there is no search path for DLLs.
16180 hardcode_libdir_flag_spec
='-L$libdir'
16181 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16182 allow_undefined_flag
=unsupported
16183 always_export_symbols
=no
16184 enable_shared_with_static_runtimes
=yes
16185 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16187 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16188 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16189 # If the export-symbols file already is a .def file (1st line
16190 # is EXPORTS), use it as is; otherwise, prepend...
16191 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16192 cp $export_symbols $output_objdir/$soname.def;
16194 echo EXPORTS > $output_objdir/$soname.def;
16195 cat $export_symbols >> $output_objdir/$soname.def;
16197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16204 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205 link_all_deplibs
=yes
16210 hardcode_shlibpath_var
=no
16211 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16212 export_dynamic_flag_spec
='${wl}-E'
16213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16214 # Instead, shared libraries are loaded at an image base (0x10000000 by
16215 # default) and relocated if they conflict, which is a slow very memory
16216 # consuming and fragmenting process. To avoid this, we pick a random,
16217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16219 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16220 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'
16223 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16225 if test "$host_os" = linux-dietlibc
; then
16226 case $cc_basename in
16227 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16230 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16231 && test "$tmp_diet" = no
16233 tmp_addflag
=' $pic_flag'
16234 tmp_sharedflag
='-shared'
16235 case $cc_basename,$host_cpu in
16236 pgcc
*) # Portland Group C compiler
16237 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'
16238 tmp_addflag
=' $pic_flag'
16240 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16241 # Portland Group f77 and f90 compilers
16242 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'
16243 tmp_addflag
=' $pic_flag -Mnomain' ;;
16244 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16245 tmp_addflag
=' -i_dynamic' ;;
16246 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16247 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16248 ifc
* | ifort
*) # Intel Fortran compiler
16249 tmp_addflag
=' -nofor_main' ;;
16250 lf95
*) # Lahey Fortran 8.1
16251 whole_archive_flag_spec
=
16252 tmp_sharedflag
='--shared' ;;
16253 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16254 tmp_sharedflag
='-qmkshrobj'
16256 nvcc
*) # Cuda Compiler Driver 2.2
16257 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'
16258 compiler_needs_object
=yes
16261 case `$CC -V 2>&1 | sed 5q` in
16262 *Sun\ C
*) # Sun C 5.9
16263 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'
16264 compiler_needs_object
=yes
16265 tmp_sharedflag
='-G' ;;
16266 *Sun\ F
*) # Sun Fortran 8.3
16267 tmp_sharedflag
='-G' ;;
16269 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16271 if test "x$supports_anon_versioning" = xyes
; then
16272 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16274 echo "local: *; };" >> $output_objdir/$libname.ver~
16275 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16278 case $cc_basename in
16279 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16280 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16281 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16282 hardcode_libdir_flag_spec
=
16283 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16284 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16285 if test "x$supports_anon_versioning" = xyes
; then
16286 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16288 echo "local: *; };" >> $output_objdir/$libname.ver~
16289 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16299 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16300 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16303 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16304 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16309 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16313 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16314 *** create shared libraries on Solaris systems. Therefore, libtool
16315 *** is disabling shared libraries support. We urge you to upgrade GNU
16316 *** binutils to release 2.9.1 or newer. Another option is to modify
16317 *** your PATH or compiler configuration so that the native linker is
16318 *** used, and then restart.
16321 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16322 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16323 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16329 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16330 case `$LD -v 2>&1` in
16331 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16335 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16336 *** reliably create shared libraries on SCO systems. Therefore, libtool
16337 *** is disabling shared libraries support. We urge you to upgrade GNU
16338 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16339 *** your PATH or compiler configuration so that the native linker is
16340 *** used, and then restart.
16345 # For security reasons, it is highly recommended that you always
16346 # use absolute paths for naming shared libraries, and exclude the
16347 # DT_RUNPATH tag from executables and libraries. But doing so
16348 # requires that you compile everything twice, which is a pain.
16349 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16350 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16351 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16352 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16361 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16363 hardcode_direct
=yes
16364 hardcode_shlibpath_var
=no
16368 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16369 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16370 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16377 if test "$ld_shlibs" = no
; then
16379 hardcode_libdir_flag_spec
=
16380 export_dynamic_flag_spec
=
16381 whole_archive_flag_spec
=
16384 # PORTME fill in a description of your system's linker (not GNU ld)
16387 allow_undefined_flag
=unsupported
16388 always_export_symbols
=yes
16389 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'
16390 # Note: this linker hardcodes the directories in LIBPATH if there
16391 # are no directories specified by -L.
16392 hardcode_minus_L
=yes
16393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16394 # Neither direct hardcoding nor static linking is supported with a
16396 hardcode_direct
=unsupported
16401 if test "$host_cpu" = ia64
; then
16402 # On IA64, the linker does run time linking by default, so we don't
16403 # have to do anything special.
16404 aix_use_runtimelinking
=no
16405 exp_sym_flag
='-Bexport'
16408 # If we're using GNU nm, then we don't want the "-C" option.
16409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16410 # Also, AIX nm treats weak defined symbols like other global
16411 # defined symbols, whereas GNU nm marks them as "W".
16412 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16413 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'
16415 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'
16417 aix_use_runtimelinking
=no
16419 # Test if we are trying to use run time linking or normal
16420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16421 # need to do runtime linking.
16422 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16423 for ld_flag
in $LDFLAGS; do
16424 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16425 aix_use_runtimelinking
=yes
16432 exp_sym_flag
='-bexport'
16433 no_entry_flag
='-bnoentry'
16436 # When large executables or shared objects are built, AIX ld can
16437 # have problems creating the table of contents. If linking a library
16438 # or program results in "error TOC overflow" add -mminimal-toc to
16439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16443 hardcode_direct
=yes
16444 hardcode_direct_absolute
=yes
16445 hardcode_libdir_separator
=':'
16446 link_all_deplibs
=yes
16447 file_list_spec
='${wl}-f,'
16449 if test "$GCC" = yes; then
16450 case $host_os in aix4.
[012]|aix4.
[012].
*)
16451 # We only want to do this on AIX 4.2 and lower, the check
16452 # below for broken collect2 doesn't work under 4.3+
16453 collect2name
=`${CC} -print-prog-name=collect2`
16454 if test -f "$collect2name" &&
16455 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16457 # We have reworked collect2
16460 # We have old collect2
16461 hardcode_direct
=unsupported
16462 # It fails to find uninstalled libraries when the uninstalled
16463 # path is not listed in the libpath. Setting hardcode_minus_L
16464 # to unsupported forces relinking
16465 hardcode_minus_L
=yes
16466 hardcode_libdir_flag_spec
='-L$libdir'
16467 hardcode_libdir_separator
=
16471 shared_flag
='-shared'
16472 if test "$aix_use_runtimelinking" = yes; then
16473 shared_flag
="$shared_flag "'${wl}-G'
16477 if test "$host_cpu" = ia64
; then
16478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16479 # chokes on -Wl,-G. The following line is correct:
16482 if test "$aix_use_runtimelinking" = yes; then
16483 shared_flag
='${wl}-G'
16485 shared_flag
='${wl}-bM:SRE'
16490 export_dynamic_flag_spec
='${wl}-bexpall'
16491 # It seems that -bexpall does not export symbols beginning with
16492 # underscore (_), so it is better to generate a list of symbols to export.
16493 always_export_symbols
=yes
16494 if test "$aix_use_runtimelinking" = yes; then
16495 # Warning - without using the other runtime loading flags (-brtl),
16496 # -berok will link without error, but may produce a broken library.
16497 allow_undefined_flag
='-berok'
16498 # Determine the default libpath from the value encoded in an
16499 # empty executable.
16500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16511 if ac_fn_c_try_link
"$LINENO"; then :
16513 lt_aix_libpath_sed
='
16514 /Import File Strings/,/^$/ {
16520 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16521 # Check for a 64-bit object if we didn't find anything.
16522 if test -z "$aix_libpath"; then
16523 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16526 rm -f core conftest.err conftest.
$ac_objext \
16527 conftest
$ac_exeext conftest.
$ac_ext
16528 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16530 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16531 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"
16533 if test "$host_cpu" = ia64
; then
16534 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16535 allow_undefined_flag
="-z nodefs"
16536 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"
16538 # Determine the default libpath from the value encoded in an
16539 # empty executable.
16540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16551 if ac_fn_c_try_link
"$LINENO"; then :
16553 lt_aix_libpath_sed
='
16554 /Import File Strings/,/^$/ {
16560 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16561 # Check for a 64-bit object if we didn't find anything.
16562 if test -z "$aix_libpath"; then
16563 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16566 rm -f core conftest.err conftest.
$ac_objext \
16567 conftest
$ac_exeext conftest.
$ac_ext
16568 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16570 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16571 # Warning - without using the other run time loading flags,
16572 # -berok will link without error, but may produce a broken library.
16573 no_undefined_flag
=' ${wl}-bernotok'
16574 allow_undefined_flag
=' ${wl}-berok'
16575 if test "$with_gnu_ld" = yes; then
16576 # We only use this code for GNU lds that support --whole-archive.
16577 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16579 # Exported symbols can be pulled into shared objects from archives
16580 whole_archive_flag_spec
='$convenience'
16582 archive_cmds_need_lc
=yes
16583 # This is similar to how AIX traditionally builds its shared libraries.
16584 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'
16592 # see comment about AmigaOS4 .so support
16593 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16594 archive_expsym_cmds
=''
16597 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)'
16598 hardcode_libdir_flag_spec
='-L$libdir'
16599 hardcode_minus_L
=yes
16605 export_dynamic_flag_spec
=-rdynamic
16608 cygwin
* | mingw
* | pw32
* | cegcc
*)
16609 # When not using gcc, we currently assume that we are using
16610 # Microsoft Visual C++.
16611 # hardcode_libdir_flag_spec is actually meaningless, as there is
16612 # no search path for DLLs.
16613 hardcode_libdir_flag_spec
=' '
16614 allow_undefined_flag
=unsupported
16615 # Tell ltmain to make .lib files, not .a files.
16617 # Tell ltmain to make .dll files, not .so files.
16619 # FIXME: Setting linknames here is a bad hack.
16620 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16621 # The linker will automatically build a .lib file if we build a DLL.
16622 old_archive_from_new_cmds
='true'
16623 # FIXME: Should let the user specify the lib program.
16624 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16625 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16626 enable_shared_with_static_runtimes
=yes
16629 darwin
* | rhapsody
*)
16632 archive_cmds_need_lc
=no
16634 hardcode_automatic
=yes
16635 hardcode_shlibpath_var
=unsupported
16636 if test "$lt_cv_ld_force_load" = "yes"; then
16637 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\"`'
16639 whole_archive_flag_spec
=''
16641 link_all_deplibs
=yes
16642 allow_undefined_flag
="$_lt_dar_allow_undefined"
16643 case $cc_basename in
16644 ifort
*) _lt_dar_can_shared
=yes ;;
16645 *) _lt_dar_can_shared
=$GCC ;;
16647 if test "$_lt_dar_can_shared" = "yes"; then
16648 output_verbose_link_cmd
=func_echo_all
16649 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16650 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16651 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}"
16652 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}"
16661 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_libdir_flag_spec
='-L$libdir'
16663 hardcode_shlibpath_var
=no
16666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16667 # support. Future versions do this automatically, but an explicit c++rt0.o
16668 # does not break anything, and helps significantly (at the cost of a little
16671 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16672 hardcode_libdir_flag_spec
='-R$libdir'
16673 hardcode_direct
=yes
16674 hardcode_shlibpath_var
=no
16677 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16679 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16680 hardcode_direct
=yes
16681 hardcode_minus_L
=yes
16682 hardcode_shlibpath_var
=no
16685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16686 freebsd
* | dragonfly
*)
16687 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16688 hardcode_libdir_flag_spec
='-R$libdir'
16689 hardcode_direct
=yes
16690 hardcode_shlibpath_var
=no
16694 if test "$GCC" = yes; then
16695 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'
16697 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'
16699 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16700 hardcode_libdir_separator
=:
16701 hardcode_direct
=yes
16703 # hardcode_minus_L: Not really in the search PATH,
16704 # but as the default location of the library.
16705 hardcode_minus_L
=yes
16706 export_dynamic_flag_spec
='${wl}-E'
16710 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16711 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16713 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16715 if test "$with_gnu_ld" = no
; then
16716 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16717 hardcode_libdir_flag_spec_ld
='+b $libdir'
16718 hardcode_libdir_separator
=:
16719 hardcode_direct
=yes
16720 hardcode_direct_absolute
=yes
16721 export_dynamic_flag_spec
='${wl}-E'
16722 # hardcode_minus_L: Not really in the search PATH,
16723 # but as the default location of the library.
16724 hardcode_minus_L
=yes
16729 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16732 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16735 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16751 # Older versions of the 11.00 compiler do not understand -b yet
16752 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16754 $as_echo_n "checking if $CC understands -b... " >&6; }
16755 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16756 $as_echo_n "(cached) " >&6
16758 lt_cv_prog_compiler__b
=no
16759 save_LDFLAGS
="$LDFLAGS"
16760 LDFLAGS
="$LDFLAGS -b"
16761 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16762 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16763 # The linker can only warn and ignore the option if not recognized
16764 # So say no if there are warnings
16765 if test -s conftest.err
; then
16766 # Append any errors to the config.log.
16767 cat conftest.err
1>&5
16768 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16769 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16770 if diff conftest.exp conftest.er2
>/dev
/null
; then
16771 lt_cv_prog_compiler__b
=yes
16774 lt_cv_prog_compiler__b
=yes
16778 LDFLAGS
="$save_LDFLAGS"
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16782 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16784 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16785 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16787 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16793 if test "$with_gnu_ld" = no
; then
16794 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16795 hardcode_libdir_separator
=:
16800 hardcode_shlibpath_var
=no
16803 hardcode_direct
=yes
16804 hardcode_direct_absolute
=yes
16805 export_dynamic_flag_spec
='${wl}-E'
16807 # hardcode_minus_L: Not really in the search PATH,
16808 # but as the default location of the library.
16809 hardcode_minus_L
=yes
16815 irix5
* | irix6
* | nonstopux
*)
16816 if test "$GCC" = yes; then
16817 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'
16818 # Try to use the -exported_symbol ld option, if it does not
16819 # work, assume that -exports_file does not work either and
16820 # implicitly export all symbols.
16821 save_LDFLAGS
="$LDFLAGS"
16822 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16827 if ac_fn_c_try_link
"$LINENO"; then :
16828 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'
16831 rm -f core conftest.err conftest.
$ac_objext \
16832 conftest
$ac_exeext conftest.
$ac_ext
16833 LDFLAGS
="$save_LDFLAGS"
16835 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'
16836 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'
16838 archive_cmds_need_lc
='no'
16839 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16840 hardcode_libdir_separator
=:
16842 link_all_deplibs
=yes
16846 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16847 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16849 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16851 hardcode_libdir_flag_spec
='-R$libdir'
16852 hardcode_direct
=yes
16853 hardcode_shlibpath_var
=no
16857 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16858 hardcode_direct
=yes
16859 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16860 hardcode_libdir_separator
=:
16861 hardcode_shlibpath_var
=no
16868 if test -f /usr
/libexec
/ld.so
; then
16869 hardcode_direct
=yes
16870 hardcode_shlibpath_var
=no
16871 hardcode_direct_absolute
=yes
16872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16873 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16874 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16875 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16876 export_dynamic_flag_spec
='${wl}-E'
16879 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16880 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16881 hardcode_libdir_flag_spec
='-R$libdir'
16884 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16885 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16895 hardcode_libdir_flag_spec
='-L$libdir'
16896 hardcode_minus_L
=yes
16897 allow_undefined_flag
=unsupported
16898 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'
16899 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16903 if test "$GCC" = yes; then
16904 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16905 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'
16907 allow_undefined_flag
=' -expect_unresolved \*'
16908 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'
16910 archive_cmds_need_lc
='no'
16911 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16912 hardcode_libdir_separator
=:
16915 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16916 if test "$GCC" = yes; then
16917 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16918 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'
16919 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16921 allow_undefined_flag
=' -expect_unresolved \*'
16922 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'
16923 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~
16924 $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'
16926 # Both c and cxx compiler support -rpath directly
16927 hardcode_libdir_flag_spec
='-rpath $libdir'
16929 archive_cmds_need_lc
='no'
16930 hardcode_libdir_separator
=:
16934 no_undefined_flag
=' -z defs'
16935 if test "$GCC" = yes; then
16937 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16938 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16939 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16941 case `$CC -V 2>&1` in
16944 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16945 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16950 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16951 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16952 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16956 hardcode_libdir_flag_spec
='-R$libdir'
16957 hardcode_shlibpath_var
=no
16959 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16961 # The compiler driver will combine and reorder linker options,
16962 # but understands `-z linker_flag'. GCC discards it without `$wl',
16963 # but is careful enough not to reorder.
16964 # Supported since Solaris 2.6 (maybe 2.5.1?)
16965 if test "$GCC" = yes; then
16966 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16968 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16972 link_all_deplibs
=yes
16976 if test "x$host_vendor" = xsequent
; then
16977 # Use $CC to link under sequent, because it throws in some extra .o
16978 # files that make .init and .fini sections work.
16979 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16981 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16983 hardcode_libdir_flag_spec
='-L$libdir'
16984 hardcode_direct
=yes
16985 hardcode_minus_L
=yes
16986 hardcode_shlibpath_var
=no
16990 case $host_vendor in
16992 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16993 hardcode_direct
=yes # is this really true???
16996 ## LD is ld it makes a PLAMLIB
16997 ## CC just makes a GrossModule.
16998 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16999 reload_cmds
='$CC -r -o $output$reload_objs'
17003 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17004 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17007 runpath_var
='LD_RUN_PATH'
17008 hardcode_shlibpath_var
=no
17012 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_shlibpath_var
=no
17014 export_dynamic_flag_spec
='-Bexport'
17018 if test -d /usr
/nec
; then
17019 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020 hardcode_shlibpath_var
=no
17021 runpath_var
=LD_RUN_PATH
17022 hardcode_runpath_var
=yes
17027 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17028 no_undefined_flag
='${wl}-z,text'
17029 archive_cmds_need_lc
=no
17030 hardcode_shlibpath_var
=no
17031 runpath_var
='LD_RUN_PATH'
17033 if test "$GCC" = yes; then
17034 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17035 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17038 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17042 sysv5
* | sco3.2v5
* | sco5v6
*)
17043 # Note: We can NOT use -z defs as we might desire, because we do not
17044 # link with -lc, and that would cause any symbols used from libc to
17045 # always be unresolved, which means just about no library would
17046 # ever link correctly. If we're not using GNU ld we use -z text
17047 # though, which does catch some bad symbols but isn't as heavy-handed
17049 no_undefined_flag
='${wl}-z,text'
17050 allow_undefined_flag
='${wl}-z,nodefs'
17051 archive_cmds_need_lc
=no
17052 hardcode_shlibpath_var
=no
17053 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17054 hardcode_libdir_separator
=':'
17055 link_all_deplibs
=yes
17056 export_dynamic_flag_spec
='${wl}-Bexport'
17057 runpath_var
='LD_RUN_PATH'
17059 if test "$GCC" = yes; then
17060 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17061 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17063 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17064 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17069 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070 hardcode_libdir_flag_spec
='-L$libdir'
17071 hardcode_shlibpath_var
=no
17079 if test x
$host_vendor = xsni
; then
17081 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17082 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17089 $as_echo "$ld_shlibs" >&6; }
17090 test "$ld_shlibs" = no
&& can_build_shared
=no
17092 with_gnu_ld
=$with_gnu_ld
17109 # Do we need to explicitly link libc?
17111 case "x$archive_cmds_need_lc" in
17113 # Assume -lc should be added
17114 archive_cmds_need_lc
=yes
17116 if test "$enable_shared" = yes && test "$GCC" = yes; then
17117 case $archive_cmds in
17119 # FIXME: we may have to deal with multi-command sequences.
17122 # Test whether the compiler implicitly links with -lc since on some
17123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17124 # to ld, don't add -lc before -lgcc.
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17127 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17128 $as_echo_n "(cached) " >&6
17131 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17134 (eval $ac_compile) 2>&5
17136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17137 test $ac_status = 0; } 2>conftest.err
; then
17140 libobjs
=conftest.
$ac_objext
17142 wl
=$lt_prog_compiler_wl
17143 pic_flag
=$lt_prog_compiler_pic
17149 lt_save_allow_undefined_flag
=$allow_undefined_flag
17150 allow_undefined_flag
=
17151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17152 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17155 test $ac_status = 0; }
17157 lt_cv_archive_cmds_need_lc
=no
17159 lt_cv_archive_cmds_need_lc
=yes
17161 allow_undefined_flag
=$lt_save_allow_undefined_flag
17163 cat conftest.err
1>&5
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17169 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17170 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17334 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17336 if test "$GCC" = yes; then
17338 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17339 *) lt_awk_arg
="/^libraries:/" ;;
17342 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17343 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17345 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17346 case $lt_search_path_spec in
17348 # if the path contains ";" then we assume it to be the separator
17349 # otherwise default to the standard path separator (i.e. ":") - it is
17350 # assumed that no part of a normal pathname contains ";" but that should
17351 # okay in the real world where ";" in dirpaths is itself problematic.
17352 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17355 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17358 # Ok, now we have the path, separated by spaces, we can step through it
17359 # and add multilib dir if necessary.
17360 lt_tmp_lt_search_path_spec
=
17361 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17362 for lt_sys_path
in $lt_search_path_spec; do
17363 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17364 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17366 test -d "$lt_sys_path" && \
17367 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17370 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17371 BEGIN {RS=" "; FS="/|\n";} {
17374 for (lt_i = NF; lt_i > 0; lt_i--) {
17375 if ($lt_i != "" && $lt_i != ".") {
17376 if ($lt_i == "..") {
17379 if (lt_count == 0) {
17380 lt_foo="/" $lt_i lt_foo;
17387 if (lt_foo != "") { lt_freq[lt_foo]++; }
17388 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17390 # AWK program above erroneously prepends '/' to C:/dos/paths
17393 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17394 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17396 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17398 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17400 library_names_spec
=
17401 libname_spec
='lib$name'
17405 postuninstall_cmds
=
17409 shlibpath_overrides_runpath
=unknown
17411 dynamic_linker
="$host_os ld.so"
17412 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17413 need_lib_prefix
=unknown
17414 hardcode_into_libs
=no
17416 # when you set need_version to no, make sure it does not cause -set_version
17417 # flags to be left without arguments
17418 need_version
=unknown
17423 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17424 shlibpath_var
=LIBPATH
17426 # AIX 3 has no versioning support, so we append a major version to the name.
17427 soname_spec
='${libname}${release}${shared_ext}$major'
17434 hardcode_into_libs
=yes
17435 if test "$host_cpu" = ia64
; then
17436 # AIX 5 supports IA64
17437 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17438 shlibpath_var
=LD_LIBRARY_PATH
17440 # With GCC up to 2.95.x, collect2 would create an import file
17441 # for dependence libraries. The import file would start with
17442 # the line `#! .'. This would cause the generated library to
17443 # depend on `.', always an invalid library. This was fixed in
17444 # development snapshots of GCC prior to 3.0.
17446 aix4 | aix4.
[01] | aix4.
[01].
*)
17447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17449 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17452 can_build_shared
=no
17456 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17457 # soname into executable. Probably we can add versioning support to
17458 # collect2, so additional links can be useful in future.
17459 if test "$aix_use_runtimelinking" = yes; then
17460 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17461 # instead of lib<name>.a to let people know that these are not
17462 # typical AIX shared libraries.
17463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 # We preserve .a as extension for shared libraries through AIX4.2
17466 # and later when we are not doing run time linking.
17467 library_names_spec
='${libname}${release}.a $libname.a'
17468 soname_spec
='${libname}${release}${shared_ext}$major'
17470 shlibpath_var
=LIBPATH
17477 # Since July 2007 AmigaOS4 officially supports .so libraries.
17478 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17479 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482 library_names_spec
='$libname.ixlibrary $libname.a'
17483 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17484 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'
17490 library_names_spec
='${libname}${shared_ext}'
17491 dynamic_linker
="$host_os ld.so"
17492 shlibpath_var
=LIBRARY_PATH
17498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 soname_spec
='${libname}${release}${shared_ext}$major'
17500 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17501 shlibpath_var
=LD_LIBRARY_PATH
17502 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17503 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17504 # the default ld.so.conf also contains /usr/contrib/lib and
17505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17506 # libtool to hard-code these into programs
17509 cygwin
* | mingw
* | pw32
* | cegcc
*)
17510 version_type
=windows
17515 case $GCC,$host_os in
17516 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17517 library_names_spec
='$libname.dll.a'
17518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17519 postinstall_cmds
='base_file=`basename \${file}`~
17520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17521 dldir=$destdir/`dirname \$dlpath`~
17522 test -d \$dldir || mkdir -p \$dldir~
17523 $install_prog $dir/$dlname \$dldir/$dlname~
17524 chmod a+x \$dldir/$dlname~
17525 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17526 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17528 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17529 dlpath=$dir/\$dldll~
17531 shlibpath_overrides_runpath
=yes
17535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17536 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17538 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17541 # MinGW DLLs use traditional 'lib' prefix
17542 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17545 # pw32 DLLs use 'pw' prefix rather than 'lib'
17546 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17552 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17555 dynamic_linker
='Win32 ld.exe'
17556 # FIXME: first we should search . and the directory the executable is in
17560 darwin
* | rhapsody
*)
17561 dynamic_linker
="$host_os dyld"
17562 version_type
=darwin
17565 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17566 soname_spec
='${libname}${release}${major}$shared_ext'
17567 shlibpath_overrides_runpath
=yes
17568 shlibpath_var
=DYLD_LIBRARY_PATH
17569 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17571 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17572 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17580 soname_spec
='${libname}${release}${shared_ext}$major'
17581 shlibpath_var
=LD_LIBRARY_PATH
17584 freebsd
* | dragonfly
*)
17585 # DragonFly does not have aout. When/if they implement a new
17586 # versioning mechanism, adjust this.
17587 if test -x /usr
/bin
/objformat
; then
17588 objformat
=`/usr/bin/objformat`
17591 freebsd
[23].
*) objformat
=aout
;;
17592 *) objformat
=elf
;;
17595 version_type
=freebsd-
$objformat
17596 case $version_type in
17598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17603 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17607 shlibpath_var
=LD_LIBRARY_PATH
17610 shlibpath_overrides_runpath
=yes
17612 freebsd3.
[01]* | freebsdelf3.
[01]*)
17613 shlibpath_overrides_runpath
=yes
17614 hardcode_into_libs
=yes
17616 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17617 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17618 shlibpath_overrides_runpath
=no
17619 hardcode_into_libs
=yes
17621 *) # from 4.6 on, and DragonFly
17622 shlibpath_overrides_runpath
=yes
17623 hardcode_into_libs
=yes
17632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17633 soname_spec
='${libname}${release}${shared_ext}$major'
17634 shlibpath_var
=LD_LIBRARY_PATH
17635 hardcode_into_libs
=yes
17642 dynamic_linker
="$host_os runtime_loader"
17643 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17644 soname_spec
='${libname}${release}${shared_ext}$major'
17645 shlibpath_var
=LIBRARY_PATH
17646 shlibpath_overrides_runpath
=yes
17647 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17648 hardcode_into_libs
=yes
17651 hpux9
* | hpux10
* | hpux11
*)
17652 # Give a soname corresponding to the major version so that dld.sl refuses to
17653 # link against other versions.
17660 hardcode_into_libs
=yes
17661 dynamic_linker
="$host_os dld.so"
17662 shlibpath_var
=LD_LIBRARY_PATH
17663 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665 soname_spec
='${libname}${release}${shared_ext}$major'
17666 if test "X$HPUX_IA64_MODE" = X32
; then
17667 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17669 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17671 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17675 hardcode_into_libs
=yes
17676 dynamic_linker
="$host_os dld.sl"
17677 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17678 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 soname_spec
='${libname}${release}${shared_ext}$major'
17681 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17682 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17686 dynamic_linker
="$host_os dld.sl"
17687 shlibpath_var
=SHLIB_PATH
17688 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 soname_spec
='${libname}${release}${shared_ext}$major'
17693 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17694 postinstall_cmds
='chmod 555 $lib'
17695 # or fails outright, so override atomically:
17696 install_override_mode
=555
17703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17704 soname_spec
='${libname}${release}${shared_ext}$major'
17705 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17706 shlibpath_var
=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath
=no
17708 hardcode_into_libs
=yes
17711 irix5
* | irix6
* | nonstopux
*)
17713 nonstopux
*) version_type
=nonstopux
;;
17715 if test "$lt_cv_prog_gnu_ld" = yes; then
17723 soname_spec
='${libname}${release}${shared_ext}$major'
17724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17726 irix5
* | nonstopux
*)
17727 libsuff
= shlibsuff
=
17730 case $LD in # libtool.m4 will add one of these switches to LD
17731 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17732 libsuff
= shlibsuff
= libmagic
=32-bit;;
17733 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17734 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17735 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17736 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17737 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17741 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17742 shlibpath_overrides_runpath
=no
17743 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17744 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17745 hardcode_into_libs
=yes
17748 # No shared lib support for Linux oldld, aout, or coff.
17749 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17753 # This must be Linux ELF.
17754 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17759 soname_spec
='${libname}${release}${shared_ext}$major'
17760 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17761 shlibpath_var
=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath
=no
17764 # Some binutils ld are patched to set DT_RUNPATH
17765 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17766 $as_echo_n "(cached) " >&6
17768 lt_cv_shlibpath_overrides_runpath
=no
17769 save_LDFLAGS
=$LDFLAGS
17770 save_libdir
=$libdir
17771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17784 if ac_fn_c_try_link
"$LINENO"; then :
17785 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17786 lt_cv_shlibpath_overrides_runpath
=yes
17789 rm -f core conftest.err conftest.
$ac_objext \
17790 conftest
$ac_exeext conftest.
$ac_ext
17791 LDFLAGS
=$save_LDFLAGS
17792 libdir
=$save_libdir
17796 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17798 # This implies no fast_install, which is unacceptable.
17799 # Some rework will be needed to allow for fast_install
17800 # before this can be enabled.
17801 hardcode_into_libs
=yes
17803 # Append ld.so.conf contents to the search path
17804 if test -f /etc
/ld.so.conf
; then
17805 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' ' '`
17806 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17809 # We used to test for /lib/ld.so.1 and disable shared libraries on
17810 # powerpc, because MkLinux only supported shared libraries with the
17811 # GNU dynamic linker. Since this was broken with cross compilers,
17812 # most powerpc-linux boxes support dynamic linking these days and
17813 # people can always --disable-shared, the test was removed, and we
17814 # assume the GNU/Linux dynamic linker is in use.
17815 dynamic_linker
='GNU/Linux ld.so'
17822 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17824 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17825 dynamic_linker
='NetBSD (a.out) ld.so'
17827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17828 soname_spec
='${libname}${release}${shared_ext}$major'
17829 dynamic_linker
='NetBSD ld.elf_so'
17831 shlibpath_var
=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath
=yes
17833 hardcode_into_libs
=yes
17838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 shlibpath_var
=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath
=yes
17847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 soname_spec
='${libname}${release}${shared_ext}$major'
17849 shlibpath_var
=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath
=no
17851 hardcode_into_libs
=yes
17852 dynamic_linker
='ldqnx.so'
17857 sys_lib_dlsearch_path_spec
="/usr/lib"
17859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17861 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17862 *) need_version
=no
;;
17864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17865 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17866 shlibpath_var
=LD_LIBRARY_PATH
17867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17869 openbsd2.
[89] | openbsd2.
[89].
*)
17870 shlibpath_overrides_runpath
=no
17873 shlibpath_overrides_runpath
=yes
17877 shlibpath_overrides_runpath
=yes
17882 libname_spec
='$name'
17885 library_names_spec
='$libname${shared_ext} $libname.a'
17886 dynamic_linker
='OS/2 ld.exe'
17887 shlibpath_var
=LIBPATH
17890 osf3
* | osf4
* | osf5
*)
17894 soname_spec
='${libname}${release}${shared_ext}$major'
17895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 shlibpath_var
=LD_LIBRARY_PATH
17897 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17898 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17909 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17910 soname_spec
='${libname}${release}${shared_ext}$major'
17911 shlibpath_var
=LD_LIBRARY_PATH
17912 shlibpath_overrides_runpath
=yes
17913 hardcode_into_libs
=yes
17914 # ldd complains unless libraries are executable
17915 postinstall_cmds
='chmod +x $lib'
17920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17921 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17922 shlibpath_var
=LD_LIBRARY_PATH
17923 shlibpath_overrides_runpath
=yes
17924 if test "$with_gnu_ld" = yes; then
17932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17933 soname_spec
='${libname}${release}${shared_ext}$major'
17934 shlibpath_var
=LD_LIBRARY_PATH
17935 case $host_vendor in
17937 shlibpath_overrides_runpath
=no
17939 runpath_var
=LD_RUN_PATH
17947 shlibpath_overrides_runpath
=no
17948 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17954 if test -d /usr
/nec
;then
17956 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17957 soname_spec
='$libname${shared_ext}.$major'
17958 shlibpath_var
=LD_LIBRARY_PATH
17962 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17963 version_type
=freebsd-elf
17966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17967 soname_spec
='${libname}${release}${shared_ext}$major'
17968 shlibpath_var
=LD_LIBRARY_PATH
17969 shlibpath_overrides_runpath
=yes
17970 hardcode_into_libs
=yes
17971 if test "$with_gnu_ld" = yes; then
17972 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17974 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17977 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17981 sys_lib_dlsearch_path_spec
='/usr/lib'
17985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990 shlibpath_var
=LD_LIBRARY_PATH
17991 shlibpath_overrides_runpath
=no
17992 hardcode_into_libs
=yes
17997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998 soname_spec
='${libname}${release}${shared_ext}$major'
17999 shlibpath_var
=LD_LIBRARY_PATH
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18007 $as_echo "$dynamic_linker" >&6; }
18008 test "$dynamic_linker" = no
&& can_build_shared
=no
18010 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18011 if test "$GCC" = yes; then
18012 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18015 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18016 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18018 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18019 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18114 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18116 if test -n "$hardcode_libdir_flag_spec" ||
18117 test -n "$runpath_var" ||
18118 test "X$hardcode_automatic" = "Xyes" ; then
18120 # We can hardcode non-existent directories.
18121 if test "$hardcode_direct" != no
&&
18122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18123 # have to relink, otherwise we might link with an installed library
18124 # when we should be linking with a yet-to-be-installed one
18125 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18126 test "$hardcode_minus_L" != no
; then
18127 # Linking always hardcodes the temporary library directory.
18128 hardcode_action
=relink
18130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18131 hardcode_action
=immediate
18134 # We cannot hardcode anything, or else we can only hardcode existing
18136 hardcode_action
=unsupported
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18139 $as_echo "$hardcode_action" >&6; }
18141 if test "$hardcode_action" = relink ||
18142 test "$inherit_rpath" = yes; then
18143 # Fast installation is not supported
18144 enable_fast_install
=no
18145 elif test "$shlibpath_overrides_runpath" = yes ||
18146 test "$enable_shared" = no
; then
18147 # Fast installation is not necessary
18148 enable_fast_install
=needless
18156 if test "x$enable_dlopen" != xyes
; then
18157 enable_dlopen
=unknown
18158 enable_dlopen_self
=unknown
18159 enable_dlopen_self_static
=unknown
18166 lt_cv_dlopen
="load_add_on"
18168 lt_cv_dlopen_self
=yes
18171 mingw
* | pw32
* | cegcc
*)
18172 lt_cv_dlopen
="LoadLibrary"
18177 lt_cv_dlopen
="dlopen"
18182 # if libdl is installed we need to link against it
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18186 $as_echo_n "(cached) " >&6
18188 ac_check_lib_save_LIBS
=$LIBS
18190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18208 if ac_fn_c_try_link
"$LINENO"; then :
18209 ac_cv_lib_dl_dlopen
=yes
18211 ac_cv_lib_dl_dlopen
=no
18213 rm -f core conftest.err conftest.
$ac_objext \
18214 conftest
$ac_exeext conftest.
$ac_ext
18215 LIBS
=$ac_check_lib_save_LIBS
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18219 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18220 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18223 lt_cv_dlopen
="dyld"
18225 lt_cv_dlopen_self
=yes
18232 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18233 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18234 lt_cv_dlopen
="shl_load"
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18237 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18238 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18239 $as_echo_n "(cached) " >&6
18241 ac_check_lib_save_LIBS
=$LIBS
18243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h. */
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18256 return shl_load ();
18261 if ac_fn_c_try_link
"$LINENO"; then :
18262 ac_cv_lib_dld_shl_load
=yes
18264 ac_cv_lib_dld_shl_load
=no
18266 rm -f core conftest.err conftest.
$ac_objext \
18267 conftest
$ac_exeext conftest.
$ac_ext
18268 LIBS
=$ac_check_lib_save_LIBS
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18271 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18272 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18273 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18275 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18276 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18277 lt_cv_dlopen
="dlopen"
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18282 $as_echo_n "(cached) " >&6
18284 ac_check_lib_save_LIBS
=$LIBS
18286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18304 if ac_fn_c_try_link
"$LINENO"; then :
18305 ac_cv_lib_dl_dlopen
=yes
18307 ac_cv_lib_dl_dlopen
=no
18309 rm -f core conftest.err conftest.
$ac_objext \
18310 conftest
$ac_exeext conftest.
$ac_ext
18311 LIBS
=$ac_check_lib_save_LIBS
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18315 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18316 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18319 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18320 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18321 $as_echo_n "(cached) " >&6
18323 ac_check_lib_save_LIBS
=$LIBS
18324 LIBS
="-lsvld $LIBS"
18325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18343 if ac_fn_c_try_link
"$LINENO"; then :
18344 ac_cv_lib_svld_dlopen
=yes
18346 ac_cv_lib_svld_dlopen
=no
18348 rm -f core conftest.err conftest.
$ac_objext \
18349 conftest
$ac_exeext conftest.
$ac_ext
18350 LIBS
=$ac_check_lib_save_LIBS
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18353 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18354 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18355 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18358 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18359 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18362 ac_check_lib_save_LIBS
=$LIBS
18364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18377 return dld_link ();
18382 if ac_fn_c_try_link
"$LINENO"; then :
18383 ac_cv_lib_dld_dld_link
=yes
18385 ac_cv_lib_dld_dld_link
=no
18387 rm -f core conftest.err conftest.
$ac_objext \
18388 conftest
$ac_exeext conftest.
$ac_ext
18389 LIBS
=$ac_check_lib_save_LIBS
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18392 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18393 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18394 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18415 if test "x$lt_cv_dlopen" != xno
; then
18421 case $lt_cv_dlopen in
18423 save_CPPFLAGS
="$CPPFLAGS"
18424 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18426 save_LDFLAGS
="$LDFLAGS"
18427 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18430 LIBS
="$lt_cv_dlopen_libs $LIBS"
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18433 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18434 if test "${lt_cv_dlopen_self+set}" = set; then :
18435 $as_echo_n "(cached) " >&6
18437 if test "$cross_compiling" = yes; then :
18438 lt_cv_dlopen_self
=cross
18440 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18441 lt_status
=$lt_dlunknown
18442 cat > conftest.
$ac_ext <<_LT_EOF
18443 #line 18443 "configure"
18444 #include "confdefs.h"
18453 # define LT_DLGLOBAL RTLD_GLOBAL
18456 # define LT_DLGLOBAL DL_GLOBAL
18458 # define LT_DLGLOBAL 0
18462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18463 find out it does not work in some platform. */
18464 #ifndef LT_DLLAZY_OR_NOW
18466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18469 # define LT_DLLAZY_OR_NOW DL_LAZY
18472 # define LT_DLLAZY_OR_NOW RTLD_NOW
18475 # define LT_DLLAZY_OR_NOW DL_NOW
18477 # define LT_DLLAZY_OR_NOW 0
18484 /* When -fvisbility=hidden is used, assume the code has been annotated
18485 correspondingly for the symbols needed. */
18486 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18487 void fnord () __attribute__((visibility("default")));
18490 void fnord () { int i=42; }
18493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18494 int status = $lt_dlunknown;
18498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18502 else puts (dlerror ());
18504 /* dlclose (self); */
18512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18513 (eval $ac_link) 2>&5
18515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18516 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18517 (.
/conftest
; exit; ) >&5 2>/dev
/null
18519 case x
$lt_status in
18520 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18521 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18522 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18525 # compilation failed
18526 lt_cv_dlopen_self
=no
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18534 $as_echo "$lt_cv_dlopen_self" >&6; }
18536 if test "x$lt_cv_dlopen_self" = xyes
; then
18537 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18539 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18540 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18541 $as_echo_n "(cached) " >&6
18543 if test "$cross_compiling" = yes; then :
18544 lt_cv_dlopen_self_static
=cross
18546 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18547 lt_status
=$lt_dlunknown
18548 cat > conftest.
$ac_ext <<_LT_EOF
18549 #line 18549 "configure"
18550 #include "confdefs.h"
18559 # define LT_DLGLOBAL RTLD_GLOBAL
18562 # define LT_DLGLOBAL DL_GLOBAL
18564 # define LT_DLGLOBAL 0
18568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18569 find out it does not work in some platform. */
18570 #ifndef LT_DLLAZY_OR_NOW
18572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18575 # define LT_DLLAZY_OR_NOW DL_LAZY
18578 # define LT_DLLAZY_OR_NOW RTLD_NOW
18581 # define LT_DLLAZY_OR_NOW DL_NOW
18583 # define LT_DLLAZY_OR_NOW 0
18590 /* When -fvisbility=hidden is used, assume the code has been annotated
18591 correspondingly for the symbols needed. */
18592 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18593 void fnord () __attribute__((visibility("default")));
18596 void fnord () { int i=42; }
18599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18600 int status = $lt_dlunknown;
18604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18607 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18608 else puts (dlerror ());
18610 /* dlclose (self); */
18618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18619 (eval $ac_link) 2>&5
18621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18622 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18623 (.
/conftest
; exit; ) >&5 2>/dev
/null
18625 case x
$lt_status in
18626 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18627 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18628 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18631 # compilation failed
18632 lt_cv_dlopen_self_static
=no
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18640 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18643 CPPFLAGS
="$save_CPPFLAGS"
18644 LDFLAGS
="$save_LDFLAGS"
18649 case $lt_cv_dlopen_self in
18650 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18651 *) enable_dlopen_self
=unknown
;;
18654 case $lt_cv_dlopen_self_static in
18655 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18656 *) enable_dlopen_self_static
=unknown
;;
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18679 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18680 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18681 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18682 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18684 $as_echo "yes" >&6; }
18686 # FIXME - insert some real tests, host_os isn't really good enough
18689 if test -n "$STRIP" ; then
18690 striplib
="$STRIP -x"
18691 old_striplib
="$STRIP -S"
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18693 $as_echo "yes" >&6; }
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18701 $as_echo "no" >&6; }
18717 # Report which library types will actually be built
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18719 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18721 $as_echo "$can_build_shared" >&6; }
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18724 $as_echo_n "checking whether to build shared libraries... " >&6; }
18725 test "$can_build_shared" = "no" && enable_shared
=no
18727 # On AIX, shared libraries and static libraries use the same namespace, and
18728 # are all built from PIC.
18731 test "$enable_shared" = yes && enable_static
=no
18732 if test -n "$RANLIB"; then
18733 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18734 postinstall_cmds
='$RANLIB $lib'
18739 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18740 test "$enable_shared" = yes && enable_static
=no
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18745 $as_echo "$enable_shared" >&6; }
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18748 $as_echo_n "checking whether to build static libraries... " >&6; }
18749 # Make sure either enable_shared or enable_static is yes.
18750 test "$enable_shared" = yes || enable_static
=yes
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18752 $as_echo "$enable_static" >&6; }
18759 ac_cpp
='$CXXCPP $CPPFLAGS'
18760 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18761 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18762 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18766 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18767 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18768 (test "X$CXX" != "Xg++"))) ; then
18770 ac_cpp
='$CXXCPP $CPPFLAGS'
18771 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18772 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18773 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18775 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18776 if test -z "$CXXCPP"; then
18777 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18778 $as_echo_n "(cached) " >&6
18780 # Double quotes because CXXCPP needs to be expanded
18781 for CXXCPP
in "$CXX -E" "/lib/cpp"
18783 ac_preproc_ok
=false
18784 for ac_cxx_preproc_warn_flag
in '' yes
18786 # Use a header file that comes with gcc, so configuring glibc
18787 # with a fresh cross-compiler works.
18788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18789 # <limits.h> exists even on freestanding compilers.
18790 # On the NeXT, cc -E runs the code through the compiler's parser,
18791 # not just through cpp. "Syntax error" is here to catch this case.
18792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18793 /* end confdefs.h. */
18795 # include <limits.h>
18797 # include <assert.h>
18801 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18804 # Broken: fails on valid input.
18807 rm -f conftest.err conftest.
$ac_ext
18809 # OK, works on sane cases. Now check whether nonexistent headers
18810 # can be detected and how.
18811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18812 /* end confdefs.h. */
18813 #include <ac_nonexistent.h>
18815 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18816 # Broken: success on invalid input.
18819 # Passes both tests.
18823 rm -f conftest.err conftest.
$ac_ext
18826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18827 rm -f conftest.err conftest.
$ac_ext
18828 if $ac_preproc_ok; then :
18833 ac_cv_prog_CXXCPP
=$CXXCPP
18836 CXXCPP
=$ac_cv_prog_CXXCPP
18838 ac_cv_prog_CXXCPP
=$CXXCPP
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18841 $as_echo "$CXXCPP" >&6; }
18842 ac_preproc_ok
=false
18843 for ac_cxx_preproc_warn_flag
in '' yes
18845 # Use a header file that comes with gcc, so configuring glibc
18846 # with a fresh cross-compiler works.
18847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18848 # <limits.h> exists even on freestanding compilers.
18849 # On the NeXT, cc -E runs the code through the compiler's parser,
18850 # not just through cpp. "Syntax error" is here to catch this case.
18851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18852 /* end confdefs.h. */
18854 # include <limits.h>
18856 # include <assert.h>
18860 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18863 # Broken: fails on valid input.
18866 rm -f conftest.err conftest.
$ac_ext
18868 # OK, works on sane cases. Now check whether nonexistent headers
18869 # can be detected and how.
18870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872 #include <ac_nonexistent.h>
18874 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18875 # Broken: success on invalid input.
18878 # Passes both tests.
18882 rm -f conftest.err conftest.
$ac_ext
18885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18886 rm -f conftest.err conftest.
$ac_ext
18887 if $ac_preproc_ok; then :
18890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18892 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18893 See \`config.log' for more details." "$LINENO" 5; }
18897 ac_cpp
='$CXXCPP $CPPFLAGS'
18898 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18903 _lt_caught_CXX_error
=yes
18907 ac_cpp
='$CXXCPP $CPPFLAGS'
18908 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18909 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18910 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18912 archive_cmds_need_lc_CXX
=no
18913 allow_undefined_flag_CXX
=
18914 always_export_symbols_CXX
=no
18915 archive_expsym_cmds_CXX
=
18916 compiler_needs_object_CXX
=no
18917 export_dynamic_flag_spec_CXX
=
18918 hardcode_direct_CXX
=no
18919 hardcode_direct_absolute_CXX
=no
18920 hardcode_libdir_flag_spec_CXX
=
18921 hardcode_libdir_flag_spec_ld_CXX
=
18922 hardcode_libdir_separator_CXX
=
18923 hardcode_minus_L_CXX
=no
18924 hardcode_shlibpath_var_CXX
=unsupported
18925 hardcode_automatic_CXX
=no
18926 inherit_rpath_CXX
=no
18928 module_expsym_cmds_CXX
=
18929 link_all_deplibs_CXX
=unknown
18930 old_archive_cmds_CXX
=$old_archive_cmds
18931 reload_flag_CXX
=$reload_flag
18932 reload_cmds_CXX
=$reload_cmds
18933 no_undefined_flag_CXX
=
18934 whole_archive_flag_spec_CXX
=
18935 enable_shared_with_static_runtimes_CXX
=no
18937 # Source file extension for C++ test sources.
18940 # Object file extension for compiled C++ test sources.
18944 # No sense in running all these tests if we already determined that
18945 # the CXX compiler isn't working. Some variables (like enable_shared)
18946 # are currently assumed to apply to all compilers on this platform,
18947 # and will be corrupted by setting them based on a non-working compiler.
18948 if test "$_lt_caught_CXX_error" != yes; then
18949 # Code to be used in simple compile tests
18950 lt_simple_compile_test_code
="int some_variable = 0;"
18952 # Code to be used in simple link tests
18953 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18955 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18962 # If no C compiler was specified, use CC.
18965 # If no C compiler flags were specified, use CFLAGS.
18966 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18968 # Allow CC to be a program name with arguments.
18972 # save warnings/boilerplate of simple test code
18973 ac_outfile
=conftest.
$ac_objext
18974 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18975 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18976 _lt_compiler_boilerplate
=`cat conftest.err`
18979 ac_outfile
=conftest.
$ac_objext
18980 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18981 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18982 _lt_linker_boilerplate
=`cat conftest.err`
18986 # Allow CC to be a program name with arguments.
18991 lt_save_with_gnu_ld
=$with_gnu_ld
18992 lt_save_path_LD
=$lt_cv_path_LD
18993 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18994 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18996 $as_unset lt_cv_prog_gnu_ld
18998 if test -n "${lt_cv_path_LDCXX+set}"; then
18999 lt_cv_path_LD
=$lt_cv_path_LDCXX
19001 $as_unset lt_cv_path_LD
19003 test -z "${LDCXX+set}" || LD
=$LDCXX
19007 for cc_temp
in $compiler""; do
19009 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19010 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19015 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19018 if test -n "$compiler"; then
19019 # We don't want -fno-exception when compiling C++ code, so set the
19020 # no_builtin_flag separately
19021 if test "$GXX" = yes; then
19022 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19024 lt_prog_compiler_no_builtin_flag_CXX
=
19027 if test "$GXX" = yes; then
19028 # Set up default GNU C++ configuration
19032 # Check whether --with-gnu-ld was given.
19033 if test "${with_gnu_ld+set}" = set; then :
19034 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19040 if test "$GCC" = yes; then
19041 # Check if gcc -print-prog-name=ld gives a path.
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19043 $as_echo_n "checking for ld used by $CC... " >&6; }
19046 # gcc leaves a trailing carriage return which upsets mingw
19047 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19049 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19052 # Accept absolute paths.
19054 re_direlt
='/[^/][^/]*/\.\./'
19055 # Canonicalize the pathname of ld
19056 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19057 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19058 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19060 test -z "$LD" && LD
="$ac_prog"
19063 # If it fails, then pretend we aren't using GCC.
19067 # If it is relative, then search for the first ld in PATH.
19068 with_gnu_ld
=unknown
19071 elif test "$with_gnu_ld" = yes; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19073 $as_echo_n "checking for GNU ld... " >&6; }
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19076 $as_echo_n "checking for non-GNU ld... " >&6; }
19078 if test "${lt_cv_path_LD+set}" = set; then :
19079 $as_echo_n "(cached) " >&6
19081 if test -z "$LD"; then
19082 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19083 for ac_dir
in $PATH; do
19085 test -z "$ac_dir" && ac_dir
=.
19086 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19087 lt_cv_path_LD
="$ac_dir/$ac_prog"
19088 # Check to see if the program is GNU ld. I'd rather use --version,
19089 # but apparently some variants of GNU ld only accept -v.
19090 # Break only if it was the GNU/non-GNU ld that we prefer.
19091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19092 *GNU
* |
*'with BFD'*)
19093 test "$with_gnu_ld" != no
&& break
19096 test "$with_gnu_ld" != yes && break
19103 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19107 LD
="$lt_cv_path_LD"
19108 if test -n "$LD"; then
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19110 $as_echo "$LD" >&6; }
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19113 $as_echo "no" >&6; }
19115 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19117 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19118 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19119 $as_echo_n "(cached) " >&6
19121 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19122 case `$LD -v 2>&1 </dev/null` in
19123 *GNU
* |
*'with BFD'*)
19124 lt_cv_prog_gnu_ld
=yes
19127 lt_cv_prog_gnu_ld
=no
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19132 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19133 with_gnu_ld
=$lt_cv_prog_gnu_ld
19141 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19142 # archiving commands below assume that GNU ld is being used.
19143 if test "$with_gnu_ld" = yes; then
19144 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19145 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'
19147 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19148 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19150 # If archive_cmds runs LD, not CC, wlarc should be empty
19151 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19152 # investigate it a little bit more. (MM)
19155 # ancient GNU ld didn't support --whole-archive et. al.
19156 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19157 $GREP 'no-whole-archive' > /dev
/null
; then
19158 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19160 whole_archive_flag_spec_CXX
=
19166 # A generic and very simple default shared library creation
19167 # command for GNU C++ for the case where it uses the native
19168 # linker, instead of GNU ld. If possible, this setting should
19169 # overridden to take advantage of the native linker features on
19170 # the platform it is being used on.
19171 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19174 # Commands to make compiler produce verbose output that lists
19175 # what "hidden" libraries, object files and flags are used when
19176 # linking a shared library.
19177 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19185 # PORTME: fill in a description of your system's C++ link characteristics
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19187 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19191 # FIXME: insert proper C++ library support
19195 if test "$host_cpu" = ia64
; then
19196 # On IA64, the linker does run time linking by default, so we don't
19197 # have to do anything special.
19198 aix_use_runtimelinking
=no
19199 exp_sym_flag
='-Bexport'
19202 aix_use_runtimelinking
=no
19204 # Test if we are trying to use run time linking or normal
19205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19206 # need to do runtime linking.
19207 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19208 for ld_flag
in $LDFLAGS; do
19211 aix_use_runtimelinking
=yes
19219 exp_sym_flag
='-bexport'
19220 no_entry_flag
='-bnoentry'
19223 # When large executables or shared objects are built, AIX ld can
19224 # have problems creating the table of contents. If linking a library
19225 # or program results in "error TOC overflow" add -mminimal-toc to
19226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19229 archive_cmds_CXX
=''
19230 hardcode_direct_CXX
=yes
19231 hardcode_direct_absolute_CXX
=yes
19232 hardcode_libdir_separator_CXX
=':'
19233 link_all_deplibs_CXX
=yes
19234 file_list_spec_CXX
='${wl}-f,'
19236 if test "$GXX" = yes; then
19237 case $host_os in aix4.
[012]|aix4.
[012].
*)
19238 # We only want to do this on AIX 4.2 and lower, the check
19239 # below for broken collect2 doesn't work under 4.3+
19240 collect2name
=`${CC} -print-prog-name=collect2`
19241 if test -f "$collect2name" &&
19242 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19244 # We have reworked collect2
19247 # We have old collect2
19248 hardcode_direct_CXX
=unsupported
19249 # It fails to find uninstalled libraries when the uninstalled
19250 # path is not listed in the libpath. Setting hardcode_minus_L
19251 # to unsupported forces relinking
19252 hardcode_minus_L_CXX
=yes
19253 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19254 hardcode_libdir_separator_CXX
=
19257 shared_flag
='-shared'
19258 if test "$aix_use_runtimelinking" = yes; then
19259 shared_flag
="$shared_flag "'${wl}-G'
19263 if test "$host_cpu" = ia64
; then
19264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19265 # chokes on -Wl,-G. The following line is correct:
19268 if test "$aix_use_runtimelinking" = yes; then
19269 shared_flag
='${wl}-G'
19271 shared_flag
='${wl}-bM:SRE'
19276 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19277 # It seems that -bexpall does not export symbols beginning with
19278 # underscore (_), so it is better to generate a list of symbols to
19280 always_export_symbols_CXX
=yes
19281 if test "$aix_use_runtimelinking" = yes; then
19282 # Warning - without using the other runtime loading flags (-brtl),
19283 # -berok will link without error, but may produce a broken library.
19284 allow_undefined_flag_CXX
='-berok'
19285 # Determine the default libpath from the value encoded in an empty
19287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h. */
19298 if ac_fn_cxx_try_link
"$LINENO"; then :
19300 lt_aix_libpath_sed
='
19301 /Import File Strings/,/^$/ {
19307 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19308 # Check for a 64-bit object if we didn't find anything.
19309 if test -z "$aix_libpath"; then
19310 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19313 rm -f core conftest.err conftest.
$ac_objext \
19314 conftest
$ac_exeext conftest.
$ac_ext
19315 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19317 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19319 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"
19321 if test "$host_cpu" = ia64
; then
19322 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19323 allow_undefined_flag_CXX
="-z nodefs"
19324 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"
19326 # Determine the default libpath from the value encoded in an
19327 # empty executable.
19328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19339 if ac_fn_cxx_try_link
"$LINENO"; then :
19341 lt_aix_libpath_sed
='
19342 /Import File Strings/,/^$/ {
19348 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19349 # Check for a 64-bit object if we didn't find anything.
19350 if test -z "$aix_libpath"; then
19351 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19354 rm -f core conftest.err conftest.
$ac_objext \
19355 conftest
$ac_exeext conftest.
$ac_ext
19356 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19358 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19359 # Warning - without using the other run time loading flags,
19360 # -berok will link without error, but may produce a broken library.
19361 no_undefined_flag_CXX
=' ${wl}-bernotok'
19362 allow_undefined_flag_CXX
=' ${wl}-berok'
19363 if test "$with_gnu_ld" = yes; then
19364 # We only use this code for GNU lds that support --whole-archive.
19365 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19367 # Exported symbols can be pulled into shared objects from archives
19368 whole_archive_flag_spec_CXX
='$convenience'
19370 archive_cmds_need_lc_CXX
=yes
19371 # This is similar to how AIX traditionally builds its shared
19373 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'
19379 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19380 allow_undefined_flag_CXX
=unsupported
19381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19382 # support --undefined. This deserves some investigation. FIXME
19383 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19390 case $cc_basename in
19392 # FIXME: insert proper C++ library support
19398 cygwin
* | mingw
* | pw32
* | cegcc
*)
19399 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19400 # as there is no search path for DLLs.
19401 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19402 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19403 allow_undefined_flag_CXX
=unsupported
19404 always_export_symbols_CXX
=no
19405 enable_shared_with_static_runtimes_CXX
=yes
19407 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19408 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'
19409 # If the export-symbols file already is a .def file (1st line
19410 # is EXPORTS), use it as is; otherwise, prepend...
19411 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19412 cp $export_symbols $output_objdir/$soname.def;
19414 echo EXPORTS > $output_objdir/$soname.def;
19415 cat $export_symbols >> $output_objdir/$soname.def;
19417 $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'
19422 darwin
* | rhapsody
*)
19425 archive_cmds_need_lc_CXX
=no
19426 hardcode_direct_CXX
=no
19427 hardcode_automatic_CXX
=yes
19428 hardcode_shlibpath_var_CXX
=unsupported
19429 if test "$lt_cv_ld_force_load" = "yes"; then
19430 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\"`'
19432 whole_archive_flag_spec_CXX
=''
19434 link_all_deplibs_CXX
=yes
19435 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19436 case $cc_basename in
19437 ifort
*) _lt_dar_can_shared
=yes ;;
19438 *) _lt_dar_can_shared
=$GCC ;;
19440 if test "$_lt_dar_can_shared" = "yes"; then
19441 output_verbose_link_cmd
=func_echo_all
19442 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}"
19443 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19444 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}"
19445 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}"
19446 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19447 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}"
19448 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}"
19458 case $cc_basename in
19460 # FIXME: insert proper C++ library support
19464 # Green Hills C++ Compiler
19465 # FIXME: insert proper C++ library support
19469 # FIXME: insert proper C++ library support
19476 # C++ shared libraries reported to be fairly broken before
19482 archive_cmds_need_lc_CXX
=no
19485 freebsd
* | dragonfly
*)
19486 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19495 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19496 link_all_deplibs_CXX
=yes
19500 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19501 hardcode_libdir_separator_CXX
=:
19502 export_dynamic_flag_spec_CXX
='${wl}-E'
19503 hardcode_direct_CXX
=yes
19504 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19505 # but as the default
19506 # location of the library.
19508 case $cc_basename in
19510 # FIXME: insert proper C++ library support
19514 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'
19515 # Commands to make compiler produce verbose output that lists
19516 # what "hidden" libraries, object files and flags are used when
19517 # linking a shared library.
19519 # There doesn't appear to be a way to prevent this compiler from
19520 # explicitly linking system object files so we need to strip them
19521 # from the output so that they don't get included in the library
19523 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"'
19526 if test "$GXX" = yes; then
19527 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'
19529 # FIXME: insert proper C++ library support
19537 if test $with_gnu_ld = no
; then
19538 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19539 hardcode_libdir_separator_CXX
=:
19545 export_dynamic_flag_spec_CXX
='${wl}-E'
19551 hardcode_direct_CXX
=no
19552 hardcode_shlibpath_var_CXX
=no
19555 hardcode_direct_CXX
=yes
19556 hardcode_direct_absolute_CXX
=yes
19557 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19558 # but as the default
19559 # location of the library.
19563 case $cc_basename in
19565 # FIXME: insert proper C++ library support
19571 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19574 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19577 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19580 # Commands to make compiler produce verbose output that lists
19581 # what "hidden" libraries, object files and flags are used when
19582 # linking a shared library.
19584 # There doesn't appear to be a way to prevent this compiler from
19585 # explicitly linking system object files so we need to strip them
19586 # from the output so that they don't get included in the library
19588 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"'
19591 if test "$GXX" = yes; then
19592 if test $with_gnu_ld = no
; then
19595 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19598 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19601 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'
19606 # FIXME: insert proper C++ library support
19614 hardcode_direct_CXX
=no
19615 hardcode_shlibpath_var_CXX
=no
19616 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19617 export_dynamic_flag_spec_CXX
='${wl}-E'
19618 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19619 # Instead, shared libraries are loaded at an image base (0x10000000 by
19620 # default) and relocated if they conflict, which is a slow very memory
19621 # consuming and fragmenting process. To avoid this, we pick a random,
19622 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19623 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19624 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'
19625 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'
19628 case $cc_basename in
19631 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'
19633 # Archives containing C++ object files must be created using
19634 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19635 # necessary to make sure instantiated templates are included
19637 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19640 if test "$GXX" = yes; then
19641 if test "$with_gnu_ld" = no
; then
19642 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'
19644 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'
19647 link_all_deplibs_CXX
=yes
19650 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_CXX
=:
19652 inherit_rpath_CXX
=yes
19655 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19656 case $cc_basename in
19658 # Kuck and Associates, Inc. (KAI) C++ Compiler
19660 # KCC will only create a shared library if the output file
19661 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19662 # to its proper name (with version) after linking.
19663 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'
19664 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'
19665 # Commands to make compiler produce verbose output that lists
19666 # what "hidden" libraries, object files and flags are used when
19667 # linking a shared library.
19669 # There doesn't appear to be a way to prevent this compiler from
19670 # explicitly linking system object files so we need to strip them
19671 # from the output so that they don't get included in the library
19673 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"'
19675 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19676 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19678 # Archives containing C++ object files must be created using
19679 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19680 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19685 # version 8.0 and above of icpc choke on multiply defined symbols
19686 # if we add $predep_objects and $postdep_objects, however 7.1 and
19687 # earlier do not add the objects themselves.
19688 case `$CC -V 2>&1` in
19690 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19691 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'
19693 *) # Version 8.0 or newer
19696 ia64
*) tmp_idyn
=' -i_dynamic';;
19698 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19699 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'
19702 archive_cmds_need_lc_CXX
=no
19703 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19704 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19705 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19708 # Portland Group C++ compiler
19710 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19711 prelink_cmds_CXX
='tpldir=Template.dir~
19713 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19714 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19715 old_archive_cmds_CXX
='tpldir=Template.dir~
19717 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19718 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19720 archive_cmds_CXX
='tpldir=Template.dir~
19722 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19723 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19724 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19726 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19727 $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'
19729 *) # Version 6 and above use weak symbols
19730 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19731 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'
19735 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19736 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19737 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'
19741 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19742 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'
19744 runpath_var
=LD_RUN_PATH
19745 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19746 hardcode_libdir_separator_CXX
=:
19748 # Commands to make compiler produce verbose output that lists
19749 # what "hidden" libraries, object files and flags are used when
19750 # linking a shared library.
19752 # There doesn't appear to be a way to prevent this compiler from
19753 # explicitly linking system object files so we need to strip them
19754 # from the output so that they don't get included in the library
19756 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'
19758 xl
* | mpixl
* | bgxl
*)
19759 # IBM XL 8.0 on PPC, with GNU ld
19760 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19761 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19762 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19763 if test "x$supports_anon_versioning" = xyes
; then
19764 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19766 echo "local: *; };" >> $output_objdir/$libname.ver~
19767 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19771 case `$CC -V 2>&1 | sed 5q` in
19774 no_undefined_flag_CXX
=' -zdefs'
19775 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19776 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'
19777 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19778 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'
19779 compiler_needs_object_CXX
=yes
19781 # Not sure whether something based on
19782 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19784 output_verbose_link_cmd
='func_echo_all'
19786 # Archives containing C++ object files must be created using
19787 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19788 # necessary to make sure instantiated templates are included
19790 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19798 # FIXME: insert proper C++ library support
19803 # FIXME: insert proper C++ library support
19808 case $cc_basename in
19810 # FIXME: insert proper C++ library support
19814 # FIXME: insert proper C++ library support
19821 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19822 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19824 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19825 hardcode_direct_CXX
=yes
19826 hardcode_shlibpath_var_CXX
=no
19828 # Workaround some broken pre-1.5 toolchains
19829 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19837 # C++ shared libraries are fairly broken
19842 if test -f /usr
/libexec
/ld.so
; then
19843 hardcode_direct_CXX
=yes
19844 hardcode_shlibpath_var_CXX
=no
19845 hardcode_direct_absolute_CXX
=yes
19846 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19847 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19849 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19850 export_dynamic_flag_spec_CXX
='${wl}-E'
19851 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19853 output_verbose_link_cmd
=func_echo_all
19859 osf3
* | osf4
* | osf5
*)
19860 case $cc_basename in
19862 # Kuck and Associates, Inc. (KAI) C++ Compiler
19864 # KCC will only create a shared library if the output file
19865 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19866 # to its proper name (with version) after linking.
19867 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'
19869 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19870 hardcode_libdir_separator_CXX
=:
19872 # Archives containing C++ object files must be created using
19873 # the KAI C++ compiler.
19875 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19876 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19880 # Rational C++ 2.4.1
19881 # FIXME: insert proper C++ library support
19887 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19888 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'
19889 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19892 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19893 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'
19894 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19895 echo "-hidden">> $lib.exp~
19896 $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~
19898 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19902 hardcode_libdir_separator_CXX
=:
19904 # Commands to make compiler produce verbose output that lists
19905 # what "hidden" libraries, object files and flags are used when
19906 # linking a shared library.
19908 # There doesn't appear to be a way to prevent this compiler from
19909 # explicitly linking system object files so we need to strip them
19910 # from the output so that they don't get included in the library
19912 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"'
19915 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19916 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19919 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'
19922 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'
19926 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19927 hardcode_libdir_separator_CXX
=:
19929 # Commands to make compiler produce verbose output that lists
19930 # what "hidden" libraries, object files and flags are used when
19931 # linking a shared library.
19932 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19935 # FIXME: insert proper C++ library support
19943 # FIXME: insert proper C++ library support
19948 case $cc_basename in
19951 # FIXME: insert proper C++ library support
19956 # FIXME: insert proper C++ library support
19960 # FIXME: insert proper C++ library support
19967 case $cc_basename in
19969 # Sun C++ 4.2, 5.x and Centerline C++
19970 archive_cmds_need_lc_CXX
=yes
19971 no_undefined_flag_CXX
=' -zdefs'
19972 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19973 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19974 $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'
19976 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19977 hardcode_shlibpath_var_CXX
=no
19979 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19981 # The compiler driver will combine and reorder linker options,
19982 # but understands `-z linker_flag'.
19983 # Supported since Solaris 2.6 (maybe 2.5.1?)
19984 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19987 link_all_deplibs_CXX
=yes
19989 output_verbose_link_cmd
='func_echo_all'
19991 # Archives containing C++ object files must be created using
19992 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19993 # necessary to make sure instantiated templates are included
19995 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19998 # Green Hills C++ Compiler
19999 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20001 # The C++ compiler must be used to create the archive.
20002 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20005 # GNU C++ compiler with Solaris linker
20006 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20007 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20008 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20009 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20010 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20011 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20013 # Commands to make compiler produce verbose output that lists
20014 # what "hidden" libraries, object files and flags are used when
20015 # linking a shared library.
20016 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20018 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20020 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20021 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20022 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20024 # Commands to make compiler produce verbose output that lists
20025 # what "hidden" libraries, object files and flags are used when
20026 # linking a shared library.
20027 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20030 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20032 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20034 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20042 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20043 no_undefined_flag_CXX
='${wl}-z,text'
20044 archive_cmds_need_lc_CXX
=no
20045 hardcode_shlibpath_var_CXX
=no
20046 runpath_var
='LD_RUN_PATH'
20048 case $cc_basename in
20050 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20051 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20054 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20055 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20060 sysv5
* | sco3.2v5
* | sco5v6
*)
20061 # Note: We can NOT use -z defs as we might desire, because we do not
20062 # link with -lc, and that would cause any symbols used from libc to
20063 # always be unresolved, which means just about no library would
20064 # ever link correctly. If we're not using GNU ld we use -z text
20065 # though, which does catch some bad symbols but isn't as heavy-handed
20067 no_undefined_flag_CXX
='${wl}-z,text'
20068 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20069 archive_cmds_need_lc_CXX
=no
20070 hardcode_shlibpath_var_CXX
=no
20071 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20072 hardcode_libdir_separator_CXX
=':'
20073 link_all_deplibs_CXX
=yes
20074 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20075 runpath_var
='LD_RUN_PATH'
20077 case $cc_basename in
20079 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20080 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20081 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20082 '"$old_archive_cmds_CXX"
20083 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20084 '"$reload_cmds_CXX"
20087 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20088 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20094 case $cc_basename in
20096 # NonStop-UX NCC 3.20
20097 # FIXME: insert proper C++ library support
20101 # FIXME: insert proper C++ library support
20108 # FIXME: insert proper C++ library support
20113 # FIXME: insert proper C++ library support
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20119 $as_echo "$ld_shlibs_CXX" >&6; }
20120 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20126 ## There is no encapsulation within the following macros, do not change
20127 ## the running order or otherwise move them around unless you know exactly
20128 ## what you are doing...
20129 # Dependencies to place before and after the object being linked:
20130 predep_objects_CXX
=
20131 postdep_objects_CXX
=
20134 compiler_lib_search_path_CXX
=
20136 cat > conftest.
$ac_ext <<_LT_EOF
20140 Foo (void) { a = 0; }
20146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20147 (eval $ac_compile) 2>&5
20149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20150 test $ac_status = 0; }; then
20151 # Parse the compiler output and extract the necessary
20152 # objects, libraries and library flags.
20154 # Sentinel used to keep track of whether or not we are before
20155 # the conftest object file.
20156 pre_test_object_deps_done
=no
20158 for p
in `eval "$output_verbose_link_cmd"`; do
20162 # Some compilers place space between "-{L,R}" and the path.
20163 # Remove the space.
20164 if test $p = "-L" ||
20165 test $p = "-R"; then
20172 if test "$pre_test_object_deps_done" = no
; then
20175 # Internal compiler library paths should come after those
20176 # provided the user. The postdeps already come after the
20177 # user supplied libs so there is no need to process them.
20178 if test -z "$compiler_lib_search_path_CXX"; then
20179 compiler_lib_search_path_CXX
="${prev}${p}"
20181 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20184 # The "-l" case would never come before the object being
20185 # linked, so don't bother handling this case.
20188 if test -z "$postdeps_CXX"; then
20189 postdeps_CXX
="${prev}${p}"
20191 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20197 # This assumes that the test object file only shows up
20198 # once in the compiler output.
20199 if test "$p" = "conftest.$objext"; then
20200 pre_test_object_deps_done
=yes
20204 if test "$pre_test_object_deps_done" = no
; then
20205 if test -z "$predep_objects_CXX"; then
20206 predep_objects_CXX
="$p"
20208 predep_objects_CXX
="$predep_objects_CXX $p"
20211 if test -z "$postdep_objects_CXX"; then
20212 postdep_objects_CXX
="$p"
20214 postdep_objects_CXX
="$postdep_objects_CXX $p"
20219 *) ;; # Ignore the rest.
20227 echo "libtool.m4: error: problem compiling CXX test program"
20230 $RM -f confest.
$objext
20232 # PORTME: override above test on systems where it is broken
20235 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20236 # hack all around it, let's just trust "g++" to DTRT.
20237 predep_objects_CXX
=
20238 postdep_objects_CXX
=
20243 case `$CC -V 2>&1 | sed 5q` in
20247 # The more standards-conforming stlport4 library is
20248 # incompatible with the Cstd library. Avoid specifying
20249 # it if it's in CXXFLAGS. Ignore libCrun as
20250 # -library=stlport4 depends on it.
20251 case " $CXX $CXXFLAGS " in
20252 *" -library=stlport4 "*)
20253 solaris_use_stlport4
=yes
20257 if test "$solaris_use_stlport4" != yes; then
20258 postdeps_CXX
='-library=Cstd -library=Crun'
20265 case $cc_basename in
20267 # The more standards-conforming stlport4 library is
20268 # incompatible with the Cstd library. Avoid specifying
20269 # it if it's in CXXFLAGS. Ignore libCrun as
20270 # -library=stlport4 depends on it.
20271 case " $CXX $CXXFLAGS " in
20272 *" -library=stlport4 "*)
20273 solaris_use_stlport4
=yes
20277 # Adding this requires a known-good setup of shared libraries for
20278 # Sun compiler versions before 5.6, else PIC objects from an old
20279 # archive will be linked into the output, leading to subtle bugs.
20280 if test "$solaris_use_stlport4" != yes; then
20281 postdeps_CXX
='-library=Cstd -library=Crun'
20289 case " $postdeps_CXX " in
20290 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20292 compiler_lib_search_dirs_CXX
=
20293 if test -n "${compiler_lib_search_path_CXX}"; then
20294 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20327 lt_prog_compiler_wl_CXX
=
20328 lt_prog_compiler_pic_CXX
=
20329 lt_prog_compiler_static_CXX
=
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20332 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20334 # C++ specific cases for pic, static, wl, etc.
20335 if test "$GXX" = yes; then
20336 lt_prog_compiler_wl_CXX
='-Wl,'
20337 lt_prog_compiler_static_CXX
='-static'
20341 # All AIX code is PIC.
20342 if test "$host_cpu" = ia64
; then
20343 # AIX 5 now supports IA64 processor
20344 lt_prog_compiler_static_CXX
='-Bstatic'
20346 lt_prog_compiler_pic_CXX
='-fPIC'
20352 # see comment about AmigaOS4 .so support
20353 lt_prog_compiler_pic_CXX
='-fPIC'
20356 # FIXME: we need at least 68020 code to build shared libraries, but
20357 # adding the `-m68020' flag to GCC prevents building anything better,
20359 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20364 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20365 # PIC is the default for these OSes.
20367 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20368 # This hack is so that the source file can tell whether it is being
20369 # built for inclusion in a dll (and should export symbols for example).
20370 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20371 # (--disable-auto-import) libraries
20372 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20374 darwin
* | rhapsody
*)
20375 # PIC is the default on this platform
20376 # Common symbols not allowed in MH_DYLIB files
20377 lt_prog_compiler_pic_CXX
='-fno-common'
20380 # DJGPP does not support shared libraries at all
20381 lt_prog_compiler_pic_CXX
=
20384 # PIC is the default for Haiku.
20385 # The "-static" flag exists, but is broken.
20386 lt_prog_compiler_static_CXX
=
20389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20390 # Instead, we relocate shared libraries at runtime.
20393 if test -d /usr
/nec
; then
20394 lt_prog_compiler_pic_CXX
=-Kconform_pic
20398 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20399 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20400 # sets the default TLS model and affects inlining.
20405 lt_prog_compiler_pic_CXX
='-fPIC'
20410 # QNX uses GNU C++, but need to define -shared option too, otherwise
20411 # it will coredump.
20412 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20415 lt_prog_compiler_pic_CXX
='-fPIC'
20421 # All AIX code is PIC.
20422 if test "$host_cpu" = ia64
; then
20423 # AIX 5 now supports IA64 processor
20424 lt_prog_compiler_static_CXX
='-Bstatic'
20426 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20430 case $cc_basename in
20432 # Green Hills C++ Compiler
20433 # _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"
20438 case $cc_basename in
20440 lt_prog_compiler_pic_CXX
='-KPIC'
20443 # Green Hills C++ Compiler
20444 lt_prog_compiler_pic_CXX
='-pic'
20450 freebsd
* | dragonfly
*)
20451 # FreeBSD uses GNU C++
20453 hpux9
* | hpux10
* | hpux11
*)
20454 case $cc_basename in
20456 lt_prog_compiler_wl_CXX
='-Wl,'
20457 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20458 if test "$host_cpu" != ia64
; then
20459 lt_prog_compiler_pic_CXX
='+Z'
20463 lt_prog_compiler_wl_CXX
='-Wl,'
20464 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20470 lt_prog_compiler_pic_CXX
='+Z'
20479 # This is c89, which is MS Visual C++ (no shared libs)
20480 # Anyone wants to do a port?
20482 irix5
* | irix6
* | nonstopux
*)
20483 case $cc_basename in
20485 lt_prog_compiler_wl_CXX
='-Wl,'
20486 lt_prog_compiler_static_CXX
='-non_shared'
20487 # CC pic flag -KPIC is the default.
20493 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20494 case $cc_basename in
20497 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20498 lt_prog_compiler_pic_CXX
='-fPIC'
20501 # old Intel C++ for x86_64 which still supported -KPIC.
20502 lt_prog_compiler_wl_CXX
='-Wl,'
20503 lt_prog_compiler_pic_CXX
='-KPIC'
20504 lt_prog_compiler_static_CXX
='-static'
20507 # Intel C++, used to be incompatible with GCC.
20508 # ICC 10 doesn't accept -KPIC any more.
20509 lt_prog_compiler_wl_CXX
='-Wl,'
20510 lt_prog_compiler_pic_CXX
='-fPIC'
20511 lt_prog_compiler_static_CXX
='-static'
20514 # Portland Group C++ compiler
20515 lt_prog_compiler_wl_CXX
='-Wl,'
20516 lt_prog_compiler_pic_CXX
='-fpic'
20517 lt_prog_compiler_static_CXX
='-Bstatic'
20521 # Make sure the PIC flag is empty. It appears that all Alpha
20522 # Linux and Compaq Tru64 Unix objects are PIC.
20523 lt_prog_compiler_pic_CXX
=
20524 lt_prog_compiler_static_CXX
='-non_shared'
20526 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20527 # IBM XL 8.0, 9.0 on PPC and BlueGene
20528 lt_prog_compiler_wl_CXX
='-Wl,'
20529 lt_prog_compiler_pic_CXX
='-qpic'
20530 lt_prog_compiler_static_CXX
='-qstaticlink'
20533 case `$CC -V 2>&1 | sed 5q` in
20536 lt_prog_compiler_pic_CXX
='-KPIC'
20537 lt_prog_compiler_static_CXX
='-Bstatic'
20538 lt_prog_compiler_wl_CXX
='-Qoption ld '
20549 case $cc_basename in
20551 lt_prog_compiler_pic_CXX
='-W c,exportall'
20560 # QNX uses GNU C++, but need to define -shared option too, otherwise
20561 # it will coredump.
20562 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20564 osf3
* | osf4
* | osf5
*)
20565 case $cc_basename in
20567 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20570 # Rational C++ 2.4.1
20571 lt_prog_compiler_pic_CXX
='-pic'
20574 # Digital/Compaq C++
20575 lt_prog_compiler_wl_CXX
='-Wl,'
20576 # Make sure the PIC flag is empty. It appears that all Alpha
20577 # Linux and Compaq Tru64 Unix objects are PIC.
20578 lt_prog_compiler_pic_CXX
=
20579 lt_prog_compiler_static_CXX
='-non_shared'
20588 case $cc_basename in
20590 # Sun C++ 4.2, 5.x and Centerline C++
20591 lt_prog_compiler_pic_CXX
='-KPIC'
20592 lt_prog_compiler_static_CXX
='-Bstatic'
20593 lt_prog_compiler_wl_CXX
='-Qoption ld '
20596 # Green Hills C++ Compiler
20597 lt_prog_compiler_pic_CXX
='-PIC'
20604 case $cc_basename in
20607 lt_prog_compiler_pic_CXX
='-pic'
20608 lt_prog_compiler_static_CXX
='-Bstatic'
20612 lt_prog_compiler_pic_CXX
='-pic'
20618 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20619 case $cc_basename in
20621 lt_prog_compiler_wl_CXX
='-Wl,'
20622 lt_prog_compiler_pic_CXX
='-KPIC'
20623 lt_prog_compiler_static_CXX
='-Bstatic'
20628 case $cc_basename in
20630 # NonStop-UX NCC 3.20
20631 lt_prog_compiler_pic_CXX
='-KPIC'
20640 lt_prog_compiler_can_build_shared_CXX
=no
20646 # For platforms which do not support PIC, -DPIC is meaningless:
20648 lt_prog_compiler_pic_CXX
=
20651 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20655 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20660 # Check to make sure the PIC flag actually works.
20662 if test -n "$lt_prog_compiler_pic_CXX"; then
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20664 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20665 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20666 $as_echo_n "(cached) " >&6
20668 lt_cv_prog_compiler_pic_works_CXX
=no
20669 ac_outfile
=conftest.
$ac_objext
20670 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20671 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20672 # Insert the option either (1) after the last *FLAGS variable, or
20673 # (2) before a word containing "conftest.", or (3) at the end.
20674 # Note that $ac_compile itself does not contain backslashes and begins
20675 # with a dollar sign (not a hyphen), so the echo should work correctly.
20676 # The option is referenced via a variable to avoid confusing sed.
20677 lt_compile
=`echo "$ac_compile" | $SED \
20678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20680 -e 's:$: $lt_compiler_flag:'`
20681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20682 (eval "$lt_compile" 2>conftest.err
)
20684 cat conftest.err
>&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 if (exit $ac_status) && test -s "$ac_outfile"; then
20687 # The compiler can only warn and ignore the option if not recognized
20688 # So say no if there are warnings other than the usual output.
20689 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20690 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20691 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20692 lt_cv_prog_compiler_pic_works_CXX
=yes
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20699 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20701 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20702 case $lt_prog_compiler_pic_CXX in
20704 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20707 lt_prog_compiler_pic_CXX
=
20708 lt_prog_compiler_can_build_shared_CXX
=no
20716 # Check to make sure the static flag actually works.
20718 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20720 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20721 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20722 $as_echo_n "(cached) " >&6
20724 lt_cv_prog_compiler_static_works_CXX
=no
20725 save_LDFLAGS
="$LDFLAGS"
20726 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20727 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20728 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20729 # The linker can only warn and ignore the option if not recognized
20730 # So say no if there are warnings
20731 if test -s conftest.err
; then
20732 # Append any errors to the config.log.
20733 cat conftest.err
1>&5
20734 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20735 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20736 if diff conftest.exp conftest.er2
>/dev
/null
; then
20737 lt_cv_prog_compiler_static_works_CXX
=yes
20740 lt_cv_prog_compiler_static_works_CXX
=yes
20744 LDFLAGS
="$save_LDFLAGS"
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20748 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20750 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20753 lt_prog_compiler_static_CXX
=
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20760 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20761 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20762 $as_echo_n "(cached) " >&6
20764 lt_cv_prog_compiler_c_o_CXX
=no
20765 $RM -r conftest
2>/dev
/null
20769 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20771 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20772 # Insert the option either (1) after the last *FLAGS variable, or
20773 # (2) before a word containing "conftest.", or (3) at the end.
20774 # Note that $ac_compile itself does not contain backslashes and begins
20775 # with a dollar sign (not a hyphen), so the echo should work correctly.
20776 lt_compile
=`echo "$ac_compile" | $SED \
20777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20779 -e 's:$: $lt_compiler_flag:'`
20780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20781 (eval "$lt_compile" 2>out
/conftest.err
)
20783 cat out
/conftest.err
>&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20787 # The compiler can only warn and ignore the option if not recognized
20788 # So say no if there are warnings
20789 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20790 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20791 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20792 lt_cv_prog_compiler_c_o_CXX
=yes
20797 # SGI C++ compiler will create directory out/ii_files/ for
20798 # template instantiation
20799 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20800 $RM out
/* && rmdir out
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20807 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20813 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20814 $as_echo_n "(cached) " >&6
20816 lt_cv_prog_compiler_c_o_CXX
=no
20817 $RM -r conftest
2>/dev
/null
20821 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20823 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20824 # Insert the option either (1) after the last *FLAGS variable, or
20825 # (2) before a word containing "conftest.", or (3) at the end.
20826 # Note that $ac_compile itself does not contain backslashes and begins
20827 # with a dollar sign (not a hyphen), so the echo should work correctly.
20828 lt_compile
=`echo "$ac_compile" | $SED \
20829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20831 -e 's:$: $lt_compiler_flag:'`
20832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20833 (eval "$lt_compile" 2>out
/conftest.err
)
20835 cat out
/conftest.err
>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20839 # The compiler can only warn and ignore the option if not recognized
20840 # So say no if there are warnings
20841 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20842 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20843 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20844 lt_cv_prog_compiler_c_o_CXX
=yes
20849 # SGI C++ compiler will create directory out/ii_files/ for
20850 # template instantiation
20851 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20852 $RM out
/* && rmdir out
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20859 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20864 hard_links
="nottested"
20865 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20866 # do not overwrite the value of need_locks provided by the user
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20868 $as_echo_n "checking if we can lock with hard links... " >&6; }
20871 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20873 ln conftest.a conftest.b
2>&5 || hard_links
=no
20874 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20876 $as_echo "$hard_links" >&6; }
20877 if test "$hard_links" = no
; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20879 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20889 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20891 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20894 # If we're using GNU nm, then we don't want the "-C" option.
20895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20896 # Also, AIX nm treats weak defined symbols like other global defined
20897 # symbols, whereas GNU nm marks them as "W".
20898 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20899 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'
20901 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'
20905 export_symbols_cmds_CXX
="$ltdll_cmds"
20907 cygwin
* | mingw
* | cegcc
*)
20908 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'
20911 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20914 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20917 $as_echo "$ld_shlibs_CXX" >&6; }
20918 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20920 with_gnu_ld_CXX
=$with_gnu_ld
20928 # Do we need to explicitly link libc?
20930 case "x$archive_cmds_need_lc_CXX" in
20932 # Assume -lc should be added
20933 archive_cmds_need_lc_CXX
=yes
20935 if test "$enable_shared" = yes && test "$GCC" = yes; then
20936 case $archive_cmds_CXX in
20938 # FIXME: we may have to deal with multi-command sequences.
20941 # Test whether the compiler implicitly links with -lc since on some
20942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20943 # to ld, don't add -lc before -lgcc.
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20945 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20946 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20947 $as_echo_n "(cached) " >&6
20950 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20953 (eval $ac_compile) 2>&5
20955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20956 test $ac_status = 0; } 2>conftest.err
; then
20959 libobjs
=conftest.
$ac_objext
20961 wl
=$lt_prog_compiler_wl_CXX
20962 pic_flag
=$lt_prog_compiler_pic_CXX
20968 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20969 allow_undefined_flag_CXX
=
20970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20971 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20974 test $ac_status = 0; }
20976 lt_cv_archive_cmds_need_lc_CXX
=no
20978 lt_cv_archive_cmds_need_lc_CXX
=yes
20980 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20982 cat conftest.err
1>&5
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20988 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20989 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21060 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21062 library_names_spec
=
21063 libname_spec
='lib$name'
21067 postuninstall_cmds
=
21071 shlibpath_overrides_runpath
=unknown
21073 dynamic_linker
="$host_os ld.so"
21074 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21075 need_lib_prefix
=unknown
21076 hardcode_into_libs
=no
21078 # when you set need_version to no, make sure it does not cause -set_version
21079 # flags to be left without arguments
21080 need_version
=unknown
21085 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21086 shlibpath_var
=LIBPATH
21088 # AIX 3 has no versioning support, so we append a major version to the name.
21089 soname_spec
='${libname}${release}${shared_ext}$major'
21096 hardcode_into_libs
=yes
21097 if test "$host_cpu" = ia64
; then
21098 # AIX 5 supports IA64
21099 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21100 shlibpath_var
=LD_LIBRARY_PATH
21102 # With GCC up to 2.95.x, collect2 would create an import file
21103 # for dependence libraries. The import file would start with
21104 # the line `#! .'. This would cause the generated library to
21105 # depend on `.', always an invalid library. This was fixed in
21106 # development snapshots of GCC prior to 3.0.
21108 aix4 | aix4.
[01] | aix4.
[01].
*)
21109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21111 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21114 can_build_shared
=no
21118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21119 # soname into executable. Probably we can add versioning support to
21120 # collect2, so additional links can be useful in future.
21121 if test "$aix_use_runtimelinking" = yes; then
21122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21123 # instead of lib<name>.a to let people know that these are not
21124 # typical AIX shared libraries.
21125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21127 # We preserve .a as extension for shared libraries through AIX4.2
21128 # and later when we are not doing run time linking.
21129 library_names_spec
='${libname}${release}.a $libname.a'
21130 soname_spec
='${libname}${release}${shared_ext}$major'
21132 shlibpath_var
=LIBPATH
21139 # Since July 2007 AmigaOS4 officially supports .so libraries.
21140 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21144 library_names_spec
='$libname.ixlibrary $libname.a'
21145 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21146 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'
21152 library_names_spec
='${libname}${shared_ext}'
21153 dynamic_linker
="$host_os ld.so"
21154 shlibpath_var
=LIBRARY_PATH
21160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161 soname_spec
='${libname}${release}${shared_ext}$major'
21162 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21163 shlibpath_var
=LD_LIBRARY_PATH
21164 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21165 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21166 # the default ld.so.conf also contains /usr/contrib/lib and
21167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21168 # libtool to hard-code these into programs
21171 cygwin
* | mingw
* | pw32
* | cegcc
*)
21172 version_type
=windows
21177 case $GCC,$host_os in
21178 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21179 library_names_spec
='$libname.dll.a'
21180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21181 postinstall_cmds
='base_file=`basename \${file}`~
21182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21183 dldir=$destdir/`dirname \$dlpath`~
21184 test -d \$dldir || mkdir -p \$dldir~
21185 $install_prog $dir/$dlname \$dldir/$dlname~
21186 chmod a+x \$dldir/$dlname~
21187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21190 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21191 dlpath=$dir/\$dldll~
21193 shlibpath_overrides_runpath
=yes
21197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21198 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21202 # MinGW DLLs use traditional 'lib' prefix
21203 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21206 # pw32 DLLs use 'pw' prefix rather than 'lib'
21207 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21213 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21216 dynamic_linker
='Win32 ld.exe'
21217 # FIXME: first we should search . and the directory the executable is in
21221 darwin
* | rhapsody
*)
21222 dynamic_linker
="$host_os dyld"
21223 version_type
=darwin
21226 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21227 soname_spec
='${libname}${release}${major}$shared_ext'
21228 shlibpath_overrides_runpath
=yes
21229 shlibpath_var
=DYLD_LIBRARY_PATH
21230 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21232 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21240 soname_spec
='${libname}${release}${shared_ext}$major'
21241 shlibpath_var
=LD_LIBRARY_PATH
21244 freebsd
* | dragonfly
*)
21245 # DragonFly does not have aout. When/if they implement a new
21246 # versioning mechanism, adjust this.
21247 if test -x /usr
/bin
/objformat
; then
21248 objformat
=`/usr/bin/objformat`
21251 freebsd
[23].
*) objformat
=aout
;;
21252 *) objformat
=elf
;;
21255 version_type
=freebsd-
$objformat
21256 case $version_type in
21258 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21263 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21267 shlibpath_var
=LD_LIBRARY_PATH
21270 shlibpath_overrides_runpath
=yes
21272 freebsd3.
[01]* | freebsdelf3.
[01]*)
21273 shlibpath_overrides_runpath
=yes
21274 hardcode_into_libs
=yes
21276 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21277 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21278 shlibpath_overrides_runpath
=no
21279 hardcode_into_libs
=yes
21281 *) # from 4.6 on, and DragonFly
21282 shlibpath_overrides_runpath
=yes
21283 hardcode_into_libs
=yes
21292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21293 soname_spec
='${libname}${release}${shared_ext}$major'
21294 shlibpath_var
=LD_LIBRARY_PATH
21295 hardcode_into_libs
=yes
21302 dynamic_linker
="$host_os runtime_loader"
21303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21304 soname_spec
='${libname}${release}${shared_ext}$major'
21305 shlibpath_var
=LIBRARY_PATH
21306 shlibpath_overrides_runpath
=yes
21307 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21308 hardcode_into_libs
=yes
21311 hpux9
* | hpux10
* | hpux11
*)
21312 # Give a soname corresponding to the major version so that dld.sl refuses to
21313 # link against other versions.
21320 hardcode_into_libs
=yes
21321 dynamic_linker
="$host_os dld.so"
21322 shlibpath_var
=LD_LIBRARY_PATH
21323 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21325 soname_spec
='${libname}${release}${shared_ext}$major'
21326 if test "X$HPUX_IA64_MODE" = X32
; then
21327 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21329 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21331 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21335 hardcode_into_libs
=yes
21336 dynamic_linker
="$host_os dld.sl"
21337 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21338 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21340 soname_spec
='${libname}${release}${shared_ext}$major'
21341 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21342 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21346 dynamic_linker
="$host_os dld.sl"
21347 shlibpath_var
=SHLIB_PATH
21348 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21350 soname_spec
='${libname}${release}${shared_ext}$major'
21353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21354 postinstall_cmds
='chmod 555 $lib'
21355 # or fails outright, so override atomically:
21356 install_override_mode
=555
21363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21364 soname_spec
='${libname}${release}${shared_ext}$major'
21365 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21366 shlibpath_var
=LD_LIBRARY_PATH
21367 shlibpath_overrides_runpath
=no
21368 hardcode_into_libs
=yes
21371 irix5
* | irix6
* | nonstopux
*)
21373 nonstopux
*) version_type
=nonstopux
;;
21375 if test "$lt_cv_prog_gnu_ld" = yes; then
21383 soname_spec
='${libname}${release}${shared_ext}$major'
21384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21386 irix5
* | nonstopux
*)
21387 libsuff
= shlibsuff
=
21390 case $LD in # libtool.m4 will add one of these switches to LD
21391 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21392 libsuff
= shlibsuff
= libmagic
=32-bit;;
21393 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21394 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21395 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21396 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21397 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21401 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21402 shlibpath_overrides_runpath
=no
21403 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21404 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21405 hardcode_into_libs
=yes
21408 # No shared lib support for Linux oldld, aout, or coff.
21409 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21413 # This must be Linux ELF.
21414 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21419 soname_spec
='${libname}${release}${shared_ext}$major'
21420 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21421 shlibpath_var
=LD_LIBRARY_PATH
21422 shlibpath_overrides_runpath
=no
21424 # Some binutils ld are patched to set DT_RUNPATH
21425 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21426 $as_echo_n "(cached) " >&6
21428 lt_cv_shlibpath_overrides_runpath
=no
21429 save_LDFLAGS
=$LDFLAGS
21430 save_libdir
=$libdir
21431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h. */
21444 if ac_fn_cxx_try_link
"$LINENO"; then :
21445 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21446 lt_cv_shlibpath_overrides_runpath
=yes
21449 rm -f core conftest.err conftest.
$ac_objext \
21450 conftest
$ac_exeext conftest.
$ac_ext
21451 LDFLAGS
=$save_LDFLAGS
21452 libdir
=$save_libdir
21456 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21458 # This implies no fast_install, which is unacceptable.
21459 # Some rework will be needed to allow for fast_install
21460 # before this can be enabled.
21461 hardcode_into_libs
=yes
21463 # Append ld.so.conf contents to the search path
21464 if test -f /etc
/ld.so.conf
; then
21465 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' ' '`
21466 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21469 # We used to test for /lib/ld.so.1 and disable shared libraries on
21470 # powerpc, because MkLinux only supported shared libraries with the
21471 # GNU dynamic linker. Since this was broken with cross compilers,
21472 # most powerpc-linux boxes support dynamic linking these days and
21473 # people can always --disable-shared, the test was removed, and we
21474 # assume the GNU/Linux dynamic linker is in use.
21475 dynamic_linker
='GNU/Linux ld.so'
21482 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21484 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21485 dynamic_linker
='NetBSD (a.out) ld.so'
21487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21488 soname_spec
='${libname}${release}${shared_ext}$major'
21489 dynamic_linker
='NetBSD ld.elf_so'
21491 shlibpath_var
=LD_LIBRARY_PATH
21492 shlibpath_overrides_runpath
=yes
21493 hardcode_into_libs
=yes
21498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21499 shlibpath_var
=LD_LIBRARY_PATH
21500 shlibpath_overrides_runpath
=yes
21507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21508 soname_spec
='${libname}${release}${shared_ext}$major'
21509 shlibpath_var
=LD_LIBRARY_PATH
21510 shlibpath_overrides_runpath
=no
21511 hardcode_into_libs
=yes
21512 dynamic_linker
='ldqnx.so'
21517 sys_lib_dlsearch_path_spec
="/usr/lib"
21519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21521 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21522 *) need_version
=no
;;
21524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21525 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21526 shlibpath_var
=LD_LIBRARY_PATH
21527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21529 openbsd2.
[89] | openbsd2.
[89].
*)
21530 shlibpath_overrides_runpath
=no
21533 shlibpath_overrides_runpath
=yes
21537 shlibpath_overrides_runpath
=yes
21542 libname_spec
='$name'
21545 library_names_spec
='$libname${shared_ext} $libname.a'
21546 dynamic_linker
='OS/2 ld.exe'
21547 shlibpath_var
=LIBPATH
21550 osf3
* | osf4
* | osf5
*)
21554 soname_spec
='${libname}${release}${shared_ext}$major'
21555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21556 shlibpath_var
=LD_LIBRARY_PATH
21557 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21558 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21570 soname_spec
='${libname}${release}${shared_ext}$major'
21571 shlibpath_var
=LD_LIBRARY_PATH
21572 shlibpath_overrides_runpath
=yes
21573 hardcode_into_libs
=yes
21574 # ldd complains unless libraries are executable
21575 postinstall_cmds
='chmod +x $lib'
21580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21581 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21582 shlibpath_var
=LD_LIBRARY_PATH
21583 shlibpath_overrides_runpath
=yes
21584 if test "$with_gnu_ld" = yes; then
21592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21593 soname_spec
='${libname}${release}${shared_ext}$major'
21594 shlibpath_var
=LD_LIBRARY_PATH
21595 case $host_vendor in
21597 shlibpath_overrides_runpath
=no
21599 runpath_var
=LD_RUN_PATH
21607 shlibpath_overrides_runpath
=no
21608 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21614 if test -d /usr
/nec
;then
21616 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21617 soname_spec
='$libname${shared_ext}.$major'
21618 shlibpath_var
=LD_LIBRARY_PATH
21622 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21623 version_type
=freebsd-elf
21626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21627 soname_spec
='${libname}${release}${shared_ext}$major'
21628 shlibpath_var
=LD_LIBRARY_PATH
21629 shlibpath_overrides_runpath
=yes
21630 hardcode_into_libs
=yes
21631 if test "$with_gnu_ld" = yes; then
21632 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21634 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21637 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21641 sys_lib_dlsearch_path_spec
='/usr/lib'
21645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21650 shlibpath_var
=LD_LIBRARY_PATH
21651 shlibpath_overrides_runpath
=no
21652 hardcode_into_libs
=yes
21657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21658 soname_spec
='${libname}${release}${shared_ext}$major'
21659 shlibpath_var
=LD_LIBRARY_PATH
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21667 $as_echo "$dynamic_linker" >&6; }
21668 test "$dynamic_linker" = no
&& can_build_shared
=no
21670 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21671 if test "$GCC" = yes; then
21672 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21676 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21679 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21720 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21721 hardcode_action_CXX
=
21722 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21723 test -n "$runpath_var_CXX" ||
21724 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21726 # We can hardcode non-existent directories.
21727 if test "$hardcode_direct_CXX" != no
&&
21728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21729 # have to relink, otherwise we might link with an installed library
21730 # when we should be linking with a yet-to-be-installed one
21731 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21732 test "$hardcode_minus_L_CXX" != no
; then
21733 # Linking always hardcodes the temporary library directory.
21734 hardcode_action_CXX
=relink
21736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21737 hardcode_action_CXX
=immediate
21740 # We cannot hardcode anything, or else we can only hardcode existing
21742 hardcode_action_CXX
=unsupported
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21745 $as_echo "$hardcode_action_CXX" >&6; }
21747 if test "$hardcode_action_CXX" = relink ||
21748 test "$inherit_rpath_CXX" = yes; then
21749 # Fast installation is not supported
21750 enable_fast_install
=no
21751 elif test "$shlibpath_overrides_runpath" = yes ||
21752 test "$enable_shared" = no
; then
21753 # Fast installation is not necessary
21754 enable_fast_install
=needless
21763 fi # test -n "$compiler"
21769 with_gnu_ld
=$lt_save_with_gnu_ld
21770 lt_cv_path_LDCXX
=$lt_cv_path_LD
21771 lt_cv_path_LD
=$lt_save_path_LD
21772 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21773 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21774 fi # test "$_lt_caught_CXX_error" != yes
21777 ac_cpp
='$CXXCPP $CPPFLAGS'
21778 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21797 # Only expand once:
21803 # Identify the assembler which will work hand-in-glove with the newly
21804 # built GCC, so that we can examine its features. This is the assembler
21805 # which will be driven by the driver program.
21807 # If build != host, and we aren't building gas in-tree, we identify a
21808 # build->target assembler and hope that it will have the same features
21809 # as the host->target assembler we'll be using.
21810 gcc_cv_gas_major_version
=
21811 gcc_cv_gas_minor_version
=
21812 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21814 if test "${gcc_cv_as+set}" = set; then :
21818 if test -x "$DEFAULT_ASSEMBLER"; then
21819 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21820 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21821 && test -f ..
/gas
/Makefile \
21822 && test x
$build = x
$host; then
21823 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21824 elif test -x as
$build_exeext; then
21825 # Build using assembler in the current directory.
21826 gcc_cv_as
=.
/as
$build_exeext
21827 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21828 gcc_cv_as
="$AS_FOR_TARGET"
21830 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21831 set dummy
$AS_FOR_TARGET; ac_word
=$2
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21833 $as_echo_n "checking for $ac_word... " >&6; }
21834 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21835 $as_echo_n "(cached) " >&6
21839 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21843 for as_dir
in $PATH
21846 test -z "$as_dir" && as_dir
=.
21847 for ac_exec_ext
in '' $ac_executable_extensions; do
21848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21849 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21860 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21861 if test -n "$gcc_cv_as"; then
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21863 $as_echo "$gcc_cv_as" >&6; }
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21866 $as_echo "no" >&6; }
21873 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21875 case "$ORIGINAL_AS_FOR_TARGET" in
21876 .
/as | .
/as
$build_exeext) ;;
21877 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21882 $as_echo_n "checking what assembler to use... " >&6; }
21883 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21884 # Single tree build which includes gas. We want to prefer it
21885 # over whatever linker top-level may have detected, since
21886 # we'll use what we're building after installation anyway.
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21888 $as_echo "newly built gas" >&6; }
21890 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21891 for f
in $gcc_cv_as_bfd_srcdir/configure \
21892 $gcc_cv_as_gas_srcdir/configure \
21893 $gcc_cv_as_gas_srcdir/configure.ac \
21894 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21895 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21896 if test x
$gcc_cv_gas_version != x
; then
21900 case $gcc_cv_gas_version in
21902 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21904 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21905 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21906 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21907 case $gcc_cv_gas_patch_version in
21908 "") gcc_cv_gas_patch_version
="0" ;;
21910 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21911 + $gcc_cv_gas_minor_version \) \* 1000 \
21912 + $gcc_cv_gas_patch_version`
21914 in_tree_gas_is_elf
=no
21915 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21916 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21917 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21919 in_tree_gas_is_elf
=yes
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21923 $as_echo "$gcc_cv_as" >&6; }
21928 # Check whether --enable-ld was given.
21929 if test "${enable_ld+set}" = set; then :
21930 enableval
=$enable_ld; case "${enableval}" in
21938 install_gold_as_default
=no
21939 # Check whether --enable-gold was given.
21940 if test "${enable_gold+set}" = set; then :
21941 enableval
=$enable_gold; case "${enableval}" in
21943 install_gold_as_default
=yes
21946 if test x
${default_ld} != x
; then
21947 install_gold_as_default
=yes
21953 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21959 # Identify the linker which will work hand-in-glove with the newly
21960 # built GCC, so that we can examine its features. This is the linker
21961 # which will be driven by the driver program.
21963 # If build != host, and we aren't building gas in-tree, we identify a
21964 # build->target linker and hope that it will have the same features
21965 # as the host->target linker we'll be using.
21966 gcc_cv_gld_major_version
=
21967 gcc_cv_gld_minor_version
=
21968 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21969 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21970 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21972 if test "${gcc_cv_ld+set}" = set; then :
21976 if test -x "$DEFAULT_LINKER"; then
21977 gcc_cv_ld
="$DEFAULT_LINKER"
21978 elif test $install_gold_as_default = yes \
21979 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21980 && test -f ..
/gold
/Makefile \
21981 && test x
$build = x
$host; then
21982 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21983 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21984 && test -f ..
/ld
/Makefile \
21985 && test x
$build = x
$host; then
21986 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21987 elif test -x collect-ld
$build_exeext; then
21988 # Build using linker in the current directory.
21989 gcc_cv_ld
=.
/collect-ld
$build_exeext
21990 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21991 gcc_cv_ld
="$LD_FOR_TARGET"
21993 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21994 set dummy
$LD_FOR_TARGET; ac_word
=$2
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21996 $as_echo_n "checking for $ac_word... " >&6; }
21997 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21998 $as_echo_n "(cached) " >&6
22002 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22006 for as_dir
in $PATH
22009 test -z "$as_dir" && as_dir
=.
22010 for ac_exec_ext
in '' $ac_executable_extensions; do
22011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22012 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22023 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22024 if test -n "$gcc_cv_ld"; then
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22026 $as_echo "$gcc_cv_ld" >&6; }
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22029 $as_echo "no" >&6; }
22036 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22037 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22038 # if the PLUGIN_LD is set ld-new, just have it as ld
22039 # as that is the installed named.
22040 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22041 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22042 PLUGIN_LD_SUFFIX
=ld
22045 # Check whether --with-plugin-ld was given.
22046 if test "${with_plugin_ld+set}" = set; then :
22047 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22048 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22049 PLUGIN_LD_SUFFIX
="$withval"
22055 cat >>confdefs.h
<<_ACEOF
22056 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22060 # Check to see if we are using gold instead of ld
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22062 $as_echo_n "checking whether we are using gold... " >&6; }
22064 if test x
$gcc_cv_ld != x
; then
22065 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22066 |
grep "GNU gold" > /dev
/null
; then
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22071 $as_echo "$ld_is_gold" >&6; }
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22074 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22075 # Check to see if default ld is not gold, but gold is
22076 # available and has support for split stack. If gcc was configured
22077 # with gold then no checking is done.
22079 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22081 # For platforms other than powerpc64*, enable as appropriate.
22083 gold_non_default
=no
22084 ld_gold
=`which ${gcc_cv_ld}.gold`
22085 # Make sure this gold has minimal split stack support
22086 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22087 ld_vers
=`$ld_gold --version | sed 1q`
22088 gold_vers
=`echo $ld_vers | sed -n \
22089 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22091 # check that the gold version contains the complete split stack support
22092 # on powerpc64 big and little endian
22094 case "$gold_vers" in
22095 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22097 *) gold_non_default
=no
22103 if test $gold_non_default = yes; then
22105 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22110 $as_echo "$gold_non_default" >&6; }
22112 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22114 case "$ORIGINAL_LD_FOR_TARGET" in
22115 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22116 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22121 $as_echo_n "checking what linker to use... " >&6; }
22122 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22123 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22124 # Single tree build which includes ld. We want to prefer it
22125 # over whatever linker top-level may have detected, since
22126 # we'll use what we're building after installation anyway.
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22128 $as_echo "newly built ld" >&6; }
22130 in_tree_ld_is_elf
=no
22131 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22132 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22133 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22134 in_tree_ld_is_elf
=yes
22135 elif test "$ld_is_gold" = yes; then
22136 in_tree_ld_is_elf
=yes
22138 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
22140 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22141 if test x
$gcc_cv_gld_version != x
; then
22145 case $gcc_cv_gld_version in
22147 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22149 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22150 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22151 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22152 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22155 $as_echo "$gcc_cv_ld" >&6; }
22157 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22158 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22159 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22165 # Figure out what nm we will be using.
22166 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22167 if test "${gcc_cv_nm+set}" = set; then :
22171 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22172 && test -f ..
/binutils
/Makefile \
22173 && test x
$build = x
$host; then
22174 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22175 elif test -x nm
$build_exeext; then
22176 gcc_cv_nm
=.
/nm
$build_exeext
22177 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22178 gcc_cv_nm
="$NM_FOR_TARGET"
22180 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22181 set dummy
$NM_FOR_TARGET; ac_word
=$2
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22183 $as_echo_n "checking for $ac_word... " >&6; }
22184 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22185 $as_echo_n "(cached) " >&6
22189 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22193 for as_dir
in $PATH
22196 test -z "$as_dir" && as_dir
=.
22197 for ac_exec_ext
in '' $ac_executable_extensions; do
22198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22199 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22210 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22211 if test -n "$gcc_cv_nm"; then
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22213 $as_echo "$gcc_cv_nm" >&6; }
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22216 $as_echo "no" >&6; }
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22224 $as_echo_n "checking what nm to use... " >&6; }
22225 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22226 # Single tree build which includes binutils.
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22228 $as_echo "newly built nm" >&6; }
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22232 $as_echo "$gcc_cv_nm" >&6; }
22236 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22238 case "$ORIGINAL_NM_FOR_TARGET" in
22239 .
/nm | .
/nm
$build_exeext) ;;
22240 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22245 # Figure out what objdump we will be using.
22246 if test "${gcc_cv_objdump+set}" = set; then :
22250 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22251 && test -f ..
/binutils
/Makefile \
22252 && test x
$build = x
$host; then
22253 # Single tree build which includes binutils.
22254 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22255 elif test -x objdump
$build_exeext; then
22256 gcc_cv_objdump
=.
/objdump
$build_exeext
22257 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22258 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22260 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22261 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22263 $as_echo_n "checking for $ac_word... " >&6; }
22264 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22265 $as_echo_n "(cached) " >&6
22267 case $gcc_cv_objdump in
22269 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22273 for as_dir
in $PATH
22276 test -z "$as_dir" && as_dir
=.
22277 for ac_exec_ext
in '' $ac_executable_extensions; do
22278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22279 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22290 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22291 if test -n "$gcc_cv_objdump"; then
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22293 $as_echo "$gcc_cv_objdump" >&6; }
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22296 $as_echo "no" >&6; }
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22304 $as_echo_n "checking what objdump to use... " >&6; }
22305 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22306 # Single tree build which includes binutils.
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22308 $as_echo "newly built objdump" >&6; }
22309 elif test x
$gcc_cv_objdump = x
; then
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22311 $as_echo "not found" >&6; }
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22314 $as_echo "$gcc_cv_objdump" >&6; }
22317 # Figure out what readelf we will be using.
22318 if test "${gcc_cv_readelf+set}" = set; then :
22322 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22323 && test -f ..
/binutils
/Makefile \
22324 && test x
$build = x
$host; then
22325 # Single tree build which includes binutils.
22326 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22327 elif test -x readelf
$build_exeext; then
22328 gcc_cv_readelf
=.
/readelf
$build_exeext
22329 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22330 gcc_cv_readelf
="$READELF_FOR_TARGET"
22332 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22333 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22335 $as_echo_n "checking for $ac_word... " >&6; }
22336 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22337 $as_echo_n "(cached) " >&6
22339 case $gcc_cv_readelf in
22341 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22345 for as_dir
in $PATH
22348 test -z "$as_dir" && as_dir
=.
22349 for ac_exec_ext
in '' $ac_executable_extensions; do
22350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22351 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22362 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22363 if test -n "$gcc_cv_readelf"; then
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22365 $as_echo "$gcc_cv_readelf" >&6; }
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22368 $as_echo "no" >&6; }
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22376 $as_echo_n "checking what readelf to use... " >&6; }
22377 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22378 # Single tree build which includes binutils.
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22380 $as_echo "newly built readelf" >&6; }
22381 elif test x
$gcc_cv_readelf = x
; then
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22383 $as_echo "not found" >&6; }
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22386 $as_echo "$gcc_cv_readelf" >&6; }
22389 # Figure out what assembler alignment features are present.
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22391 $as_echo_n "checking assembler flags... " >&6; }
22392 if test "${gcc_cv_as_flags+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22396 i
[34567]86-*-linux*)
22397 gcc_cv_as_flags
=--32
22399 x86_64-
*-linux-gnux32)
22400 gcc_cv_as_flags
=--x32
22403 gcc_cv_as_flags
=--64
22405 powerpc
*-*-darwin*)
22406 gcc_cv_as_flags
="-arch ppc"
22409 gcc_cv_as_flags
=" "
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22414 $as_echo "$gcc_cv_as_flags" >&6; }
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22417 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22418 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22421 gcc_cv_as_balign_and_p2align
=no
22422 if test $in_tree_gas = yes; then
22423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22424 then gcc_cv_as_balign_and_p2align
=yes
22426 elif test x
$gcc_cv_as != x
; then
22427 $as_echo '.balign 4
22428 .p2align 2' > conftest.s
22429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22431 (eval $ac_try) 2>&5
22433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22434 test $ac_status = 0; }; }
22436 gcc_cv_as_balign_and_p2align
=yes
22438 echo "configure: failed program was" >&5
22441 rm -f conftest.o conftest.s
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22445 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22446 if test $gcc_cv_as_balign_and_p2align = yes; then
22448 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22454 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22455 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22458 gcc_cv_as_max_skip_p2align
=no
22459 if test $in_tree_gas = yes; then
22460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22461 then gcc_cv_as_max_skip_p2align
=yes
22463 elif test x
$gcc_cv_as != x
; then
22464 $as_echo '.p2align 4,,7' > conftest.s
22465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22467 (eval $ac_try) 2>&5
22469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22470 test $ac_status = 0; }; }
22472 gcc_cv_as_max_skip_p2align
=yes
22474 echo "configure: failed program was" >&5
22477 rm -f conftest.o conftest.s
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22481 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22482 if test $gcc_cv_as_max_skip_p2align = yes; then
22484 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22490 $as_echo_n "checking assembler for .literal16... " >&6; }
22491 if test "${gcc_cv_as_literal16+set}" = set; then :
22492 $as_echo_n "(cached) " >&6
22494 gcc_cv_as_literal16
=no
22495 if test $in_tree_gas = yes; then
22496 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22497 then gcc_cv_as_literal16
=yes
22499 elif test x
$gcc_cv_as != x
; then
22500 $as_echo '.literal16' > conftest.s
22501 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22503 (eval $ac_try) 2>&5
22505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22506 test $ac_status = 0; }; }
22508 gcc_cv_as_literal16
=yes
22510 echo "configure: failed program was" >&5
22513 rm -f conftest.o conftest.s
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22517 $as_echo "$gcc_cv_as_literal16" >&6; }
22518 if test $gcc_cv_as_literal16 = yes; then
22520 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22526 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22527 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22530 gcc_cv_as_subsection_m1
=no
22531 if test $in_tree_gas = yes; then
22532 if test $in_tree_gas_is_elf = yes \
22533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22534 then gcc_cv_as_subsection_m1
=yes
22536 elif test x
$gcc_cv_as != x
; then
22537 $as_echo 'conftest_label1: .word 0
22539 conftest_label2: .word 0
22540 .previous' > conftest.s
22541 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22543 (eval $ac_try) 2>&5
22545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22546 test $ac_status = 0; }; }
22548 if test x
$gcc_cv_nm != x
; then
22549 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22550 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22551 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22553 else gcc_cv_as_subsection_m1
=yes
22555 rm -f conftest.nm1 conftest.nm2
22558 echo "configure: failed program was" >&5
22561 rm -f conftest.o conftest.s
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22565 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22566 if test $gcc_cv_as_subsection_m1 = yes; then
22568 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22574 $as_echo_n "checking assembler for .weak... " >&6; }
22575 if test "${gcc_cv_as_weak+set}" = set; then :
22576 $as_echo_n "(cached) " >&6
22579 if test $in_tree_gas = yes; then
22580 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22581 then gcc_cv_as_weak
=yes
22583 elif test x
$gcc_cv_as != x
; then
22584 $as_echo ' .weak foobar' > conftest.s
22585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22587 (eval $ac_try) 2>&5
22589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22590 test $ac_status = 0; }; }
22594 echo "configure: failed program was" >&5
22597 rm -f conftest.o conftest.s
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22601 $as_echo "$gcc_cv_as_weak" >&6; }
22602 if test $gcc_cv_as_weak = yes; then
22604 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22610 $as_echo_n "checking assembler for .weakref... " >&6; }
22611 if test "${gcc_cv_as_weakref+set}" = set; then :
22612 $as_echo_n "(cached) " >&6
22614 gcc_cv_as_weakref
=no
22615 if test $in_tree_gas = yes; then
22616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22617 then gcc_cv_as_weakref
=yes
22619 elif test x
$gcc_cv_as != x
; then
22620 $as_echo ' .weakref foobar, barfnot' > conftest.s
22621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; }
22628 gcc_cv_as_weakref
=yes
22630 echo "configure: failed program was" >&5
22633 rm -f conftest.o conftest.s
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22637 $as_echo "$gcc_cv_as_weakref" >&6; }
22638 if test $gcc_cv_as_weakref = yes; then
22640 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22646 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22647 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22648 $as_echo_n "(cached) " >&6
22650 gcc_cv_as_nsubspa_comdat
=no
22651 if test $in_tree_gas = yes; then
22652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22653 then gcc_cv_as_nsubspa_comdat
=yes
22655 elif test x
$gcc_cv_as != x
; then
22656 $as_echo ' .SPACE $TEXT$
22657 .NSUBSPA $CODE$,COMDAT' > conftest.s
22658 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22660 (eval $ac_try) 2>&5
22662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22663 test $ac_status = 0; }; }
22665 gcc_cv_as_nsubspa_comdat
=yes
22667 echo "configure: failed program was" >&5
22670 rm -f conftest.o conftest.s
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22674 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22675 if test $gcc_cv_as_nsubspa_comdat = yes; then
22677 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22682 # .hidden needs to be supported in both the assembler and the linker,
22683 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22684 # This is irritatingly difficult to feature test for; we have to check the
22685 # date string after the version number. If we've got an in-tree
22686 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22688 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22689 case "${target}" in
22691 conftest_s
=' .globl foobar,hidden'
22694 conftest_s
=' .hidden foobar
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22699 $as_echo_n "checking assembler for .hidden... " >&6; }
22700 if test "${gcc_cv_as_hidden+set}" = set; then :
22701 $as_echo_n "(cached) " >&6
22703 gcc_cv_as_hidden
=no
22704 if test $in_tree_gas = yes; then
22705 if test $in_tree_gas_is_elf = yes \
22706 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22707 then gcc_cv_as_hidden
=yes
22709 elif test x
$gcc_cv_as != x
; then
22710 $as_echo "$conftest_s" > conftest.s
22711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22713 (eval $ac_try) 2>&5
22715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22716 test $ac_status = 0; }; }
22718 gcc_cv_as_hidden
=yes
22720 echo "configure: failed program was" >&5
22723 rm -f conftest.o conftest.s
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22727 $as_echo "$gcc_cv_as_hidden" >&6; }
22730 case "${target}" in
22732 # Darwin as has some visibility support, though with a different syntax.
22733 gcc_cv_as_hidden
=yes
22737 # gnu_indirect_function type is an extension proposed at
22738 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22739 # selection of function implementation
22740 # Check whether --enable-gnu-indirect-function was given.
22741 if test "${enable_gnu_indirect_function+set}" = set; then :
22742 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22744 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22745 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22748 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22752 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22754 cat >>confdefs.h
<<_ACEOF
22755 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22760 if test $in_tree_ld != yes ; then
22761 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22762 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22763 if test x
"$ld_is_gold" = xyes
; then
22764 # GNU gold --version looks like this:
22766 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22768 # We extract the binutils version which is more familiar and specific
22769 # than the gold version.
22770 ld_vers
=`echo $ld_ver | sed -n \
22771 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22773 # GNU ld --version looks like this:
22775 # GNU ld (GNU Binutils) 2.21.51.20110225
22776 ld_vers
=`echo $ld_ver | sed -n \
22777 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22779 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'`
22780 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22781 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22782 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22784 case "${target}" in
22786 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22789 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22790 # /usr/ccs/bin/ld has been configured.
22791 ld_ver
=`$gcc_cv_ld -V 2>&1`
22792 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22793 ld_vers
=`echo $ld_ver | sed -n \
22794 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22795 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22796 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22804 $as_echo_n "checking linker for .hidden support... " >&6; }
22805 if test "${gcc_cv_ld_hidden+set}" = set; then :
22806 $as_echo_n "(cached) " >&6
22808 if test $in_tree_ld = yes ; then
22809 gcc_cv_ld_hidden
=no
22810 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 \
22811 && test $in_tree_ld_is_elf = yes; then
22812 gcc_cv_ld_hidden
=yes
22815 gcc_cv_ld_hidden
=yes
22816 if test x
"$ld_is_gold" = xyes
; then
22818 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22819 case "${target}" in
22820 mmix-knuth-mmixware
)
22821 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22822 gcc_cv_ld_hidden
=no
22825 if test 0"$ld_date" -lt 20020404; then
22826 if test -n "$ld_date"; then
22827 # If there was date string, but was earlier than 2002-04-04, fail
22828 gcc_cv_ld_hidden
=no
22829 elif test -z "$ld_vers"; then
22830 # If there was no date string nor ld version number, something is wrong
22831 gcc_cv_ld_hidden
=no
22833 test -z "$ld_vers_patch" && ld_vers_patch
=0
22834 if test "$ld_vers_major" -lt 2; then
22835 gcc_cv_ld_hidden
=no
22836 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22837 gcc_cv_ld_hidden
="no"
22838 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22839 gcc_cv_ld_hidden
=no
22844 case "${target}" in
22846 gcc_cv_ld_hidden
=yes
22849 # Darwin ld has some visibility support.
22850 gcc_cv_ld_hidden
=yes
22852 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22853 gcc_cv_ld_hidden
=yes
22855 *-*-solaris2.1
[0-9]*)
22856 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22857 # .symbolic was only added in Solaris 9 12/02.
22858 gcc_cv_ld_hidden
=yes
22861 gcc_cv_ld_hidden
=no
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22868 $as_echo "$gcc_cv_ld_hidden" >&6; }
22869 libgcc_visibility
=no
22872 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22873 libgcc_visibility
=yes
22875 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22880 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22881 gcc_cv_ld_ro_rw_mix
=unknown
22882 if test $in_tree_ld = yes ; then
22883 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 \
22884 && test $in_tree_ld_is_elf = yes; then
22885 gcc_cv_ld_ro_rw_mix
=read-write
22887 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22888 echo '.section myfoosect, "a"' > conftest1.s
22889 echo '.section myfoosect, "aw"' > conftest2.s
22890 echo '.byte 1' >> conftest2.s
22891 echo '.section myfoosect, "a"' > conftest3.s
22892 echo '.byte 0' >> conftest3.s
22893 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22894 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22895 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22896 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22897 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22898 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22899 | sed -e '/myfoosect/!d' -e N`
22900 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22901 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22902 gcc_cv_ld_ro_rw_mix
=read-only
22904 gcc_cv_ld_ro_rw_mix
=read-write
22908 rm -f conftest.
* conftest
[123].
*
22910 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22912 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22916 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22918 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22919 case "${target}" in
22922 # Solaris 2 ld -V output looks like this for a regular version:
22924 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22926 # but test versions add stuff at the end:
22928 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22930 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22931 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22932 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22933 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22934 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22935 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22941 # Check whether --enable-initfini-array was given.
22942 if test "${enable_initfini_array+set}" = set; then :
22943 enableval
=$enable_initfini_array;
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22947 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22948 if test "${gcc_cv_initfini_array+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22951 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22952 case "${target}" in
22954 if test "$cross_compiling" = yes; then :
22955 gcc_cv_initfini_array
=no
22957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22961 #error Not an ELF OS
22963 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22964 if it can be used. */
22966 int main (void) { return x; }
22967 int foo (void) { x = 0; }
22968 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22971 if ac_fn_cxx_try_run
"$LINENO"; then :
22972 gcc_cv_initfini_array
=yes
22974 gcc_cv_initfini_array
=no
22976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22981 gcc_cv_initfini_array
=no
22982 if test $in_tree_ld = yes ; then
22983 if test "$gcc_cv_gld_major_version" -eq 2 \
22984 -a "$gcc_cv_gld_minor_version" -ge 22 \
22985 -o "$gcc_cv_gld_major_version" -gt 2 \
22986 && test $in_tree_ld_is_elf = yes; then
22987 gcc_cv_initfini_array
=yes
22989 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22990 case $target:$gas in
22993 sh_type
='%progbits'
22995 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
22997 sh_type
='@progbits'
22999 sparc
*-*-solaris2*:no
)
23001 sh_type
='#progbits'
23005 case "$target:$gnu_ld" in
23007 cat > conftest.s
<<EOF
23008 .section .dtors,$sh_flags,$sh_type
23010 .byte 'A', 'A', 'A', 'A'
23011 .section .ctors,$sh_flags,$sh_type
23013 .byte 'B', 'B', 'B', 'B'
23014 .section .fini_array.65530,$sh_flags,$sh_type
23016 .byte 'C', 'C', 'C', 'C'
23017 .section .init_array.65530,$sh_flags,$sh_type
23019 .byte 'D', 'D', 'D', 'D'
23020 .section .dtors.64528,$sh_flags,$sh_type
23022 .byte 'E', 'E', 'E', 'E'
23023 .section .ctors.64528,$sh_flags,$sh_type
23025 .byte 'F', 'F', 'F', 'F'
23026 .section .fini_array.01005,$sh_flags,$sh_type
23028 .byte 'G', 'G', 'G', 'G'
23029 .section .init_array.01005,$sh_flags,$sh_type
23031 .byte 'H', 'H', 'H', 'H'
23036 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23037 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23038 && $gcc_cv_objdump -s -j .init_array conftest \
23039 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23040 && $gcc_cv_objdump -s -j .fini_array conftest \
23041 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23042 gcc_cv_initfini_array
=yes
23046 # When Solaris ld added constructor priority support, it was
23047 # decided to only handle .init_array.N/.fini_array.N since
23048 # there was no need for backwards compatibility with
23049 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23050 # sections with correct execution order resp. to
23051 # .init_array/.fini_array, while gld merges them into
23052 # .init_array/.fini_array.
23053 cat > conftest.s
<<EOF
23054 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23056 .byte 'C', 'C', 'C', 'C'
23057 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23059 .byte 'D', 'D', 'D', 'D'
23060 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23062 .byte 'G', 'G', 'G', 'G'
23063 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23065 .byte 'H', 'H', 'H', 'H'
23070 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23071 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23072 && $gcc_cv_objdump -s -j .init_array conftest \
23073 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23074 && $gcc_cv_objdump -s -j .fini_array conftest \
23075 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23076 gcc_cv_initfini_array
=yes
23080 rm -f conftest conftest.
*
23082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23086 # error Not an ELF OS
23088 #include <stdlib.h>
23089 #if defined __GLIBC_PREREQ
23090 # if __GLIBC_PREREQ (2, 4)
23092 # error GLIBC 2.4 required
23095 # if defined __sun__ && defined __svr4__
23096 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23098 # error The C library not known to support .init_array/.fini_array
23103 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23106 gcc_cv_initfini_array
=no
23108 rm -f conftest.err conftest.
$ac_ext;;
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23112 $as_echo_n "checking cross compile... guessing... " >&6; }
23113 gcc_cv_initfini_array
=no
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23117 $as_echo "$gcc_cv_initfini_array" >&6; }
23118 enable_initfini_array
=$gcc_cv_initfini_array
23123 cat >>confdefs.h
<<_ACEOF
23124 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23129 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23131 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23132 if test "${gcc_cv_as_leb128+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23135 gcc_cv_as_leb128
=no
23136 if test $in_tree_gas = yes; then
23137 if test $in_tree_gas_is_elf = yes \
23138 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23139 then gcc_cv_as_leb128
=yes
23141 elif test x
$gcc_cv_as != x
; then
23148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23155 # GAS versions before 2.11 do not support uleb128,
23156 # despite appearing to.
23157 # ??? There exists an elf-specific test that will crash
23158 # the assembler. Perhaps it's better to figure out whether
23159 # arbitrary sections are supported and try the test.
23160 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23161 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23162 as_vers
=`echo $as_ver | sed -n \
23163 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23164 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23165 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23166 if test $as_major -eq 2 && test $as_minor -lt 11
23168 else gcc_cv_as_leb128
=yes
23172 echo "configure: failed program was" >&5
23175 rm -f conftest.o conftest.s
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23179 $as_echo "$gcc_cv_as_leb128" >&6; }
23180 if test $gcc_cv_as_leb128 = yes; then
23182 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23185 if test $gcc_cv_as_leb128 != yes; then
23187 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23191 # Check if we have assembler support for unwind directives.
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23193 $as_echo_n "checking assembler for cfi directives... " >&6; }
23194 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23195 $as_echo_n "(cached) " >&6
23197 gcc_cv_as_cfi_directive
=no
23198 if test x
$gcc_cv_as != x
; then
23204 .cfi_escape 1, 2, 3, 4, 5
23205 .cfi_endproc' > conftest.s
23206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23208 (eval $ac_try) 2>&5
23210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23211 test $ac_status = 0; }; }
23215 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23216 # read-only and read-write sections, we need to make sure that the
23217 # assembler used emits read-write .eh_frame sections.
23218 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23219 if test "x$gcc_cv_objdump" != x
; then
23220 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23221 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23222 gcc_cv_as_cfi_directive
=no
23225 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23226 # On Solaris/x86, make sure that GCC and assembler agree on using
23227 # read-only .eh_frame sections for 64-bit.
23228 if test x
$gas = xyes
; then
23229 as_ix86_64_opt
="--64"
23231 as_ix86_64_opt
="-xarch=amd64"
23233 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23234 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23235 sed -e /.eh_frame
/!d
-e N | \
23236 grep READONLY
> /dev
/null
; then
23237 gcc_cv_as_cfi_directive
=yes
23239 gcc_cv_as_cfi_directive
=no
23243 gcc_cv_as_cfi_directive
=yes
23248 # no objdump, err on the side of caution
23249 gcc_cv_as_cfi_directive
=no
23252 gcc_cv_as_cfi_directive
=yes
23256 gcc_cv_as_cfi_directive
=yes
23260 echo "configure: failed program was" >&5
23263 rm -f conftest.o conftest.s
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23267 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23270 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23272 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23273 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23274 $as_echo_n "(cached) " >&6
23276 gcc_cv_as_cfi_advance_working
=no
23277 if test x
$gcc_cv_as != x
; then
23280 .cfi_adjust_cfa_offset 64
23282 .cfi_adjust_cfa_offset 128
23283 .cfi_endproc' > conftest.s
23284 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23286 (eval $ac_try) 2>&5
23288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23289 test $ac_status = 0; }; }
23292 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23293 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23294 gcc_cv_as_cfi_advance_working
=yes
23298 echo "configure: failed program was" >&5
23301 rm -f conftest.o conftest.s
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23305 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23309 # no objdump, err on the side of caution
23310 gcc_cv_as_cfi_advance_working
=no
23314 cat >>confdefs.h
<<_ACEOF
23315 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23316 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23322 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23323 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23324 $as_echo_n "(cached) " >&6
23326 gcc_cv_as_cfi_personality_directive
=no
23327 if test x
$gcc_cv_as != x
; then
23330 .cfi_personality 0, symbol
23331 .cfi_endproc' > conftest.s
23332 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23334 (eval $ac_try) 2>&5
23336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23337 test $ac_status = 0; }; }
23339 gcc_cv_as_cfi_personality_directive
=yes
23341 echo "configure: failed program was" >&5
23344 rm -f conftest.o conftest.s
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23348 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23352 cat >>confdefs.h
<<_ACEOF
23353 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23354 then echo 1; else echo 0; fi`
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23359 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23360 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23361 $as_echo_n "(cached) " >&6
23363 gcc_cv_as_cfi_sections_directive
=no
23364 if test x
$gcc_cv_as != x
; then
23366 .cfi_sections .debug_frame, .eh_frame
23368 .cfi_endproc' > conftest.s
23369 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23371 (eval $ac_try) 2>&5
23373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23374 test $ac_status = 0; }; }
23377 win32 | pe | cygwin
* | mingw32
*)
23378 # Need to check that we generated the correct relocation for the
23379 # .debug_frame section. This was fixed for binutils 2.21.
23380 gcc_cv_as_cfi_sections_directive
=no
23381 if test "x$gcc_cv_objdump" != x
; then
23382 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23383 grep secrel
> /dev
/null
; then
23384 gcc_cv_as_cfi_sections_directive
=yes
23389 gcc_cv_as_cfi_sections_directive
=yes
23393 echo "configure: failed program was" >&5
23396 rm -f conftest.o conftest.s
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23400 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23405 cat >>confdefs.h
<<_ACEOF
23406 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23407 then echo 1; else echo 0; fi`
23411 # GAS versions up to and including 2.11.0 may mis-optimize
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23414 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23415 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23416 $as_echo_n "(cached) " >&6
23418 gcc_cv_as_eh_frame
=no
23419 if test $in_tree_gas = yes; then
23420 if test $in_tree_gas_is_elf = yes \
23421 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23422 then gcc_cv_as_eh_frame
=yes
23424 elif test x
$gcc_cv_as != x
; then
23431 .section .eh_frame,"aw",@progbits
23433 .4byte .LECIE1-.LSCIE1
23447 .4byte .LEFDE1-.LASFDE1
23449 .4byte .LASFDE1-__FRAME_BEGIN__
23456 .LEFDE1:' > conftest.s
23457 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23459 (eval $ac_try) 2>&5
23461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23462 test $ac_status = 0; }; }
23464 cat > conftest.lit
<<EOF
23465 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23466 0010 01000000 12000000 18000000 00000000 ................
23467 0020 08000000 04080000 0044 .........D
23469 cat > conftest.big
<<EOF
23470 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23471 0010 00000001 00000012 00000018 00000000 ................
23472 0020 00000008 04000000 0844 .........D
23474 # If the assembler didn't choke, and we can objdump,
23475 # and we got the correct data, then succeed.
23476 # The text in the here-document typically retains its unix-style line
23477 # endings, while the output of objdump will use host line endings.
23478 # Therefore, use diff -b for the comparisons.
23479 if test x
$gcc_cv_objdump != x \
23480 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23481 |
tail -3 > conftest.got \
23482 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23483 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23485 gcc_cv_as_eh_frame
=yes
23486 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23488 (eval $ac_try) 2>&5
23490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23491 test $ac_status = 0; }; }; then
23492 gcc_cv_as_eh_frame
=buggy
23494 # Uh oh, what do we do now?
23495 gcc_cv_as_eh_frame
=no
23498 echo "configure: failed program was" >&5
23501 rm -f conftest.o conftest.s
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23505 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23509 if test $gcc_cv_as_eh_frame = buggy
; then
23511 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23516 $as_echo_n "checking assembler for section merging support... " >&6; }
23517 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23518 $as_echo_n "(cached) " >&6
23520 gcc_cv_as_shf_merge
=no
23521 if test $in_tree_gas = yes; then
23522 if test $in_tree_gas_is_elf = yes \
23523 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23524 then gcc_cv_as_shf_merge
=yes
23526 elif test x
$gcc_cv_as != x
; then
23527 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23528 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23530 (eval $ac_try) 2>&5
23532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23533 test $ac_status = 0; }; }
23535 gcc_cv_as_shf_merge
=yes
23537 echo "configure: failed program was" >&5
23540 rm -f conftest.o conftest.s
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23544 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23547 if test $gcc_cv_as_shf_merge = no
; then
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23549 $as_echo_n "checking assembler for section merging support... " >&6; }
23550 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23551 $as_echo_n "(cached) " >&6
23553 gcc_cv_as_shf_merge
=no
23554 if test $in_tree_gas = yes; then
23555 if test $in_tree_gas_is_elf = yes \
23556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23557 then gcc_cv_as_shf_merge
=yes
23559 elif test x
$gcc_cv_as != x
; then
23560 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23561 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23563 (eval $ac_try) 2>&5
23565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23566 test $ac_status = 0; }; }
23568 gcc_cv_as_shf_merge
=yes
23570 echo "configure: failed program was" >&5
23573 rm -f conftest.o conftest.s
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23577 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23582 cat >>confdefs.h
<<_ACEOF
23583 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23588 $as_echo_n "checking assembler for stabs directive... " >&6; }
23589 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23590 $as_echo_n "(cached) " >&6
23592 gcc_cv_as_stabs_directive
=no
23593 if test x
$gcc_cv_as != x
; then
23594 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23597 (eval $ac_try) 2>&5
23599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23600 test $ac_status = 0; }; }
23602 gcc_cv_as_stabs_directive
=yes
23604 echo "configure: failed program was" >&5
23607 rm -f conftest.o conftest.s
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23611 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23612 if test $gcc_cv_as_stabs_directive = yes; then
23614 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23620 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23621 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23622 $as_echo_n "(cached) " >&6
23624 gcc_cv_as_comdat_group
=no
23625 if test $in_tree_gas = yes; then
23626 if test $in_tree_gas_is_elf = yes \
23627 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23628 then gcc_cv_as_comdat_group
=yes
23630 elif test x
$gcc_cv_as != x
; then
23631 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23632 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23634 (eval $ac_try) 2>&5
23636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23637 test $ac_status = 0; }; }
23639 gcc_cv_as_comdat_group
=yes
23641 echo "configure: failed program was" >&5
23644 rm -f conftest.o conftest.s
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23648 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23651 if test $gcc_cv_as_comdat_group = yes; then
23652 gcc_cv_as_comdat_group_percent
=no
23653 gcc_cv_as_comdat_group_group
=no
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23656 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23657 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23658 $as_echo_n "(cached) " >&6
23660 gcc_cv_as_comdat_group_percent
=no
23661 if test $in_tree_gas = yes; then
23662 if test $in_tree_gas_is_elf = yes \
23663 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23664 then gcc_cv_as_comdat_group_percent
=yes
23666 elif test x
$gcc_cv_as != x
; then
23667 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23668 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23670 (eval $ac_try) 2>&5
23672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23673 test $ac_status = 0; }; }
23675 gcc_cv_as_comdat_group_percent
=yes
23677 echo "configure: failed program was" >&5
23680 rm -f conftest.o conftest.s
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23684 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23687 if test $gcc_cv_as_comdat_group_percent = yes; then
23688 gcc_cv_as_comdat_group_group
=no
23690 case "${target}" in
23691 # Sun as uses a completely different syntax.
23693 case "${target}" in
23694 sparc
*-*-solaris2*)
23696 .group foo,".text%foo",#comdat
23697 .section ".text%foo", #alloc,#execinstr,#progbits
23702 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23704 .group foo,.text%foo,#comdat
23705 .section .text%foo, "ax", @progbits
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23712 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23713 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23714 $as_echo_n "(cached) " >&6
23716 gcc_cv_as_comdat_group_group
=no
23717 if test x
$gcc_cv_as != x
; then
23718 $as_echo "$conftest_s" > conftest.s
23719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23721 (eval $ac_try) 2>&5
23723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23724 test $ac_status = 0; }; }
23726 gcc_cv_as_comdat_group_group
=yes
23728 echo "configure: failed program was" >&5
23731 rm -f conftest.o conftest.s
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23735 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23740 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23741 gcc_cv_as_comdat_group_group
=no
23745 if test x
"$ld_is_gold" = xyes
; then
23747 elif test $in_tree_ld = yes ; then
23749 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 \
23750 && test $in_tree_ld_is_elf = yes; then
23753 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23755 if test 0"$ld_date" -lt 20050308; then
23756 if test -n "$ld_date"; then
23757 # If there was date string, but was earlier than 2005-03-08, fail
23759 elif test "$ld_vers_major" -lt 2; then
23761 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23766 case "${target}" in
23767 *-*-solaris2.1
[1-9]*)
23769 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23770 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23773 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23774 # least ld version 1.2267.
23775 if test "$ld_vers_major" -gt 1; then
23777 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23779 elif test "$ld_vers_minor" -ge 2267; then
23784 # Assume linkers other than GNU ld don't support COMDAT group.
23789 # Allow overriding the automatic COMDAT group tests above.
23790 # Check whether --enable-comdat was given.
23791 if test "${enable_comdat+set}" = set; then :
23792 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23795 if test $comdat_group = no
; then
23796 gcc_cv_as_comdat_group
=no
23797 gcc_cv_as_comdat_group_percent
=no
23798 gcc_cv_as_comdat_group_group
=no
23801 cat >>confdefs.h
<<_ACEOF
23802 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23803 || test $gcc_cv_as_comdat_group_percent = yes \
23804 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23809 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23810 if test "${gcc_cv_as_discriminator+set}" = set; then :
23811 $as_echo_n "(cached) " >&6
23813 gcc_cv_as_discriminator
=no
23814 if test $in_tree_gas = yes; then
23815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23816 then gcc_cv_as_discriminator
=yes
23818 elif test x
$gcc_cv_as != x
; then
23821 .loc 1 1 0 discriminator 1' > conftest.s
23822 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23824 (eval $ac_try) 2>&5
23826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23827 test $ac_status = 0; }; }
23829 gcc_cv_as_discriminator
=yes
23831 echo "configure: failed program was" >&5
23834 rm -f conftest.o conftest.s
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23838 $as_echo "$gcc_cv_as_discriminator" >&6; }
23839 if test $gcc_cv_as_discriminator = yes; then
23841 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23846 # Thread-local storage - the check is heavily parameterized.
23854 .section ".tdata","awT",@progbits
23857 ldq $27,__tls_get_addr($29) !literal!1
23858 lda $16,foo($29) !tlsgd!1
23859 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23860 ldq $27,__tls_get_addr($29) !literal!2
23861 lda $16,foo($29) !tlsldm!2
23862 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23863 ldq $1,foo($29) !gotdtprel
23864 ldah $2,foo($29) !dtprelhi
23865 lda $3,foo($2) !dtprello
23866 lda $4,foo($29) !dtprel
23867 ldq $1,foo($29) !gottprel
23868 ldah $2,foo($29) !tprelhi
23869 lda $3,foo($2) !tprello
23870 lda $4,foo($29) !tprel'
23873 tls_as_opt
=--fatal-warnings
23877 add_s r0,r0, @foo@tpoff'
23881 cris-
*-*|crisv32-
*-*)
23883 .section ".tdata","awT",@progbits
23890 tls_as_opt
=--fatal-warnings
23894 .section ".tdata","awT",@progbits
23897 call #gettlsoff(x)'
23906 .section ".tdata","awT",@progbits
23910 addil LT%foo-$tls_gdidx$,gp
23911 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23914 addil LT%foo-$tls_ldidx$,gp
23916 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23917 addil LR%foo-$tls_dtpoff$,%ret0
23918 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23920 addil LT%foo-$tls_ieoff$,gp
23921 ldw RT%foo-$tls_ieoff$(%r1),%t2
23924 addil LR%foo-$tls_leoff$,%t1
23925 ldo RR%foo-$tls_leoff$(%r1),%t2'
23928 tls_as_opt
=--fatal-warnings
23932 .section ".tdata","awT",%progbits
23935 .word foo(gottpoff)
23943 i
[34567]86-*-* | x86_64-
*-*)
23945 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23952 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23954 .section .tdata,"awt",@progbits'
23959 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23963 .section ".tdata","awT",@progbits'
23967 tls_as_opt
="--fatal-warnings"
23971 conftest_s
="$conftest_s
23975 leal foo@tlsgd(,%ebx,1), %eax
23976 leal foo@tlsldm(%ebx), %eax
23977 leal foo@dtpoff(%eax), %edx
23978 movl foo@gottpoff(%ebx), %eax
23979 subl foo@gottpoff(%ebx), %eax
23980 addl foo@gotntpoff(%ebx), %eax
23981 movl foo@indntpoff, %eax
23982 movl \$foo@tpoff, %eax
23983 subl \$foo@tpoff, %eax
23984 leal foo@ntpoff(%ecx), %eax"
23987 if test x
$on_solaris = xyes
; then
23989 yes) tls_as_opt
="$tls_as_opt --64" ;;
23990 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23993 conftest_s
="$conftest_s
23997 leaq foo@tlsgd(%rip), %rdi
23998 leaq foo@tlsld(%rip), %rdi
23999 leaq foo@dtpoff(%rax), %rdx
24000 movq foo@gottpoff(%rip), %rax
24001 movq \$foo@tpoff, %rax"
24007 .section ".tdata","awT",@progbits
24010 addl r16 = @ltoff(@dtpmod(foo#)), gp
24011 addl r17 = @ltoff(@dtprel(foo#)), gp
24012 addl r18 = @ltoff(@tprel(foo#)), gp
24013 addl r19 = @dtprel(foo#), gp
24014 adds r21 = @dtprel(foo#), r13
24015 movl r23 = @dtprel(foo#)
24016 addl r20 = @tprel(foo#), gp
24017 adds r22 = @tprel(foo#), r13
24018 movl r24 = @tprel(foo#)'
24021 tls_as_opt
=--fatal-warnings
24025 .section .tdata,"awT",@progbits
24029 addik r5,r20,x@TLSGD
24030 addik r5,r20,x@TLSLDM'
24033 tls_as_opt
='--fatal-warnings'
24037 .section .tdata,"awT",@progbits
24041 addiu $4, $28, %tlsgd(x)
24042 addiu $4, $28, %tlsldm(x)
24043 lui $4, %dtprel_hi(x)
24044 addiu $4, $4, %dtprel_lo(x)
24045 lw $4, %gottprel(x)($28)
24046 lui $4, %tprel_hi(x)
24047 addiu $4, $4, %tprel_lo(x)'
24050 tls_as_opt
='-32 --fatal-warnings'
24054 .section .tdata,"awT",@progbits
24059 move.l x@TLSGD(%a5),%a0
24060 move.l x@TLSLDM(%a5),%a0
24061 move.l x@TLSLDO(%a5),%a0
24062 move.l x@TLSIE(%a5),%a0
24063 move.l x@TLSLE(%a5),%a0'
24066 tls_as_opt
='--fatal-warnings'
24070 .section ".tdata","awT",@progbits'
24073 tls_as_opt
="--fatal-warnings"
24077 .section ".tdata","awT",%progbits
24081 add x0, x0, #:tlsgd_lo12:x
24086 tls_as_opt
='--fatal-warnings'
24090 .extern __get_tpointer
24108 .section ".tdata","awT",@progbits
24116 addi 3,2,ld0@got@tlsgd
24122 addi 3,2,x1@got@tlsld
24128 addis 9,3,x2@dtprel@ha
24129 addi 9,9,x2@dtprel@l
24132 ld 9,x3@got@dtprel(2)
24138 tls_as_opt
="-a64 --fatal-warnings"
24142 .section ".tdata","awT",@progbits
24150 addi 3,31,ld0@got@tlsgd
24152 addi 3,31,x1@got@tlsld
24155 addis 9,3,x2@dtprel@ha
24156 addi 9,9,x2@dtprel@l
24157 lwz 9,x3@got@tprel(31)
24160 addis 9,2,x2@tprel@ha
24161 addi 9,9,x2@tprel@l'
24164 tls_as_opt
="-a32 --fatal-warnings"
24168 .section .tdata,"awT",@progbits
24172 call __tls_get_addr'
24175 tls_as_opt
='--fatal-warnings'
24179 .section ".tdata","awT",@progbits
24186 .long foo@GOTNTPOFF
24187 .long foo@INDNTPOFF
24188 l %r1,foo@GOTNTPOFF(%r12)
24189 l %r1,0(%r1):tls_load:foo
24190 bas %r14,0(%r1,%r13):tls_gdcall:foo
24191 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24194 tls_as_opt
="-m31 --fatal-warnings"
24198 .section ".tdata","awT",@progbits
24205 .quad foo@GOTNTPOFF
24206 lg %r1,foo@GOTNTPOFF(%r12)
24207 larl %r1,foo@INDNTPOFF
24208 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24209 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24212 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24214 sh-
*-* | sh
[123456789lbe
]*-*-*)
24216 .section ".tdata","awT",@progbits
24226 tls_as_opt
=--fatal-warnings
24230 sparc
*-sun-solaris2.
*)
24237 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24239 .section ".tdata",#alloc,#write,#tls'
24244 .section ".tdata","awT",@progbits'
24247 tls_as_opt
="-32 --fatal-warnings"
24249 conftest_s
="$conftest_s
24252 sethi %tgd_hi22(foo), %o0
24253 add %o0, %tgd_lo10(foo), %o1
24254 add %l7, %o1, %o0, %tgd_add(foo)
24255 call __tls_get_addr, %tgd_call(foo)
24256 sethi %tldm_hi22(foo), %l1
24257 add %l1, %tldm_lo10(foo), %l2
24258 add %l7, %l2, %o0, %tldm_add(foo)
24259 call __tls_get_addr, %tldm_call(foo)
24260 sethi %tldo_hix22(foo), %l3
24261 xor %l3, %tldo_lox10(foo), %l4
24262 add %o0, %l4, %l5, %tldo_add(foo)
24263 sethi %tie_hi22(foo), %o3
24264 add %o3, %tie_lo10(foo), %o3
24265 ld [%l7 + %o3], %o2, %tie_ld(foo)
24266 add %g7, %o2, %o4, %tie_add(foo)
24267 sethi %tle_hix22(foo), %l1
24268 xor %l1, %tle_lox10(foo), %o5
24269 ld [%g7 + %o5], %o1"
24273 .section ".tdata","awT",@progbits
24276 addli r0, zero, tls_gd(foo)
24277 auli r0, zero, tls_gd_ha16(foo)
24278 addli r0, r0, tls_gd_lo16(foo)
24280 addli r0, zero, tls_ie(foo)
24281 auli r0, r0, tls_ie_ha16(foo)
24282 addli r0, r0, tls_ie_lo16(foo)'
24285 tls_as_opt
="--fatal-warnings"
24289 .section ".tdata","awT",@progbits
24292 shl16insli r0, zero, hw0_last_tls_gd(foo)
24293 shl16insli r0, zero, hw1_last_tls_gd(foo)
24294 shl16insli r0, r0, hw0_tls_gd(foo)
24296 shl16insli r0, zero, hw1_last_tls_ie(foo)
24297 shl16insli r0, r0, hw0_tls_ie(foo)'
24300 tls_as_opt
="--fatal-warnings"
24304 .section ".tdata","awT",@progbits
24307 movi a8, foo@TLSFUNC
24308 movi a10, foo@TLSARG
24309 callx8.tls a8, foo@TLSCALL'
24315 if test "x$enable_tls" = xno
; then
24316 : # TLS explicitly disabled.
24317 elif test "x$enable_tls" = xyes
; then
24318 set_have_as_tls
=yes # TLS explicitly enabled.
24319 elif test -z "$tls_first_major"; then
24320 : # If we don't have a check, assume no support.
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24323 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24324 if test "${gcc_cv_as_tls+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24328 if test $in_tree_gas = yes; then
24329 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24330 then gcc_cv_as_tls
=yes
24332 elif test x
$gcc_cv_as != x
; then
24333 $as_echo "$conftest_s" > conftest.s
24334 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }
24343 echo "configure: failed program was" >&5
24346 rm -f conftest.o conftest.s
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24350 $as_echo "$gcc_cv_as_tls" >&6; }
24351 if test $gcc_cv_as_tls = yes; then
24352 set_have_as_tls
=yes
24356 if test $set_have_as_tls = yes ; then
24358 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24362 # Target-specific assembler checks.
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24365 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24366 gcc_cv_ld_static_dynamic
=no
24367 gcc_cv_ld_static_option
='-Bstatic'
24368 gcc_cv_ld_dynamic_option
='-Bdynamic'
24369 if test $in_tree_ld = yes ; then
24370 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
24371 gcc_cv_ld_static_dynamic
=yes
24373 elif test x
$gcc_cv_ld != x
; then
24374 # Check if linker supports -Bstatic/-Bdynamic option
24375 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
24376 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
24377 gcc_cv_ld_static_dynamic
=yes
24380 # AIX ld uses -b flags
24381 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24382 gcc_cv_ld_static_dynamic
=yes
24383 gcc_cv_ld_static_option
="-bstatic"
24384 gcc_cv_ld_dynamic_option
="-bdynamic"
24386 # HP-UX ld uses -a flags to select between shared and archive.
24388 if test x
"$gnu_ld" = xno
; then
24389 gcc_cv_ld_static_dynamic
=yes
24390 gcc_cv_ld_static_option
="-aarchive_shared"
24391 gcc_cv_ld_dynamic_option
="-adefault"
24394 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24396 gcc_cv_ld_static_dynamic
=yes
24401 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24403 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24406 cat >>confdefs.h
<<_ACEOF
24407 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24411 cat >>confdefs.h
<<_ACEOF
24412 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24417 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24419 if test x
"$demangler_in_ld" = xyes
; then
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24421 $as_echo_n "checking linker --demangle support... " >&6; }
24422 gcc_cv_ld_demangle
=no
24423 if test $in_tree_ld = yes; then
24424 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 \
24425 gcc_cv_ld_demangle
=yes
24427 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24428 # Check if the GNU linker supports --demangle option
24429 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
24430 gcc_cv_ld_demangle
=yes
24433 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24435 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24439 $as_echo "$gcc_cv_ld_demangle" >&6; }
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24443 $as_echo_n "checking linker plugin support... " >&6; }
24444 gcc_cv_lto_plugin
=0
24445 if test -f liblto_plugin.la
; then
24446 save_ld_ver
="$ld_ver"
24447 save_ld_vers_major
="$ld_vers_major"
24448 save_ld_vers_minor
="$ld_vers_minor"
24449 save_ld_is_gold
="$ld_is_gold"
24453 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24455 # FIXME: ld_is_gold?
24456 ld_vers_major
="$gcc_cv_gld_major_version"
24457 ld_vers_minor
="$gcc_cv_gld_minor_version"
24459 # Determine plugin linker version.
24460 # FIXME: Partial duplicate from above, generalize.
24461 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24462 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24463 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24465 ld_vers
=`echo $ld_ver | sed -n \
24466 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24468 ld_vers
=`echo $ld_ver | sed -n \
24469 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24471 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24472 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24476 # Determine plugin support.
24477 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24478 # Require GNU ld or gold 2.21+ for plugin support by default.
24479 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24480 gcc_cv_lto_plugin
=2
24481 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24482 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24483 gcc_cv_lto_plugin
=1
24487 ld_ver
="$save_ld_ver"
24488 ld_vers_major
="$save_ld_vers_major"
24489 ld_vers_minor
="$save_ld_vers_minor"
24490 ld_is_gold
="$save_ld_is_gold"
24493 cat >>confdefs.h
<<_ACEOF
24494 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24498 $as_echo "$gcc_cv_lto_plugin" >&6; }
24500 # Target OS-specific assembler checks.
24502 case "$target_os" in
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24505 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24506 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24507 $as_echo_n "(cached) " >&6
24509 gcc_cv_as_mmacosx_version_min
=no
24510 if test x
$gcc_cv_as != x
; then
24511 $as_echo '.text' > conftest.s
24512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24519 gcc_cv_as_mmacosx_version_min
=yes
24521 echo "configure: failed program was" >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24528 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24529 if test $gcc_cv_as_mmacosx_version_min = yes; then
24531 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24538 # Target CPU-specific assembler checks.
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24543 $as_echo_n "checking assembler for -mabi option... " >&6; }
24544 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24545 $as_echo_n "(cached) " >&6
24547 gcc_cv_as_aarch64_mabi
=no
24548 if test x
$gcc_cv_as != x
; then
24549 $as_echo '.text' > conftest.s
24550 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24552 (eval $ac_try) 2>&5
24554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24555 test $ac_status = 0; }; }
24557 gcc_cv_as_aarch64_mabi
=yes
24559 echo "configure: failed program was" >&5
24562 rm -f conftest.o conftest.s
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24566 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24569 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24571 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24574 if test x
$with_abi = xilp32
; then
24575 as_fn_error
"Assembler does not support -mabi=ilp32.\
24576 Upgrade the Assembler." "$LINENO" 5
24578 if test x
"$with_multilib_list" = xdefault
; then
24579 TM_MULTILIB_CONFIG
=lp64
24581 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24582 for aarch64_multilib
in ${aarch64_multilibs}; do
24583 case ${aarch64_multilib} in
24585 as_fn_error
"Assembler does not support -mabi=ilp32.\
24586 Upgrade the Assembler." "$LINENO" 5
24594 # Check if we have binutils support for relocations types needed by -fpic
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24596 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24597 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24598 $as_echo_n "(cached) " >&6
24600 gcc_cv_as_aarch64_picreloc
=no
24601 if test x
$gcc_cv_as != x
; then
24604 ldr x0, [x2, #:gotpage_lo15:globalsym]
24606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608 (eval $ac_try) 2>&5
24610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611 test $ac_status = 0; }; }
24613 gcc_cv_as_aarch64_picreloc
=yes
24615 echo "configure: failed program was" >&5
24618 rm -f conftest.o conftest.s
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24622 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24623 if test $gcc_cv_as_aarch64_picreloc = yes; then
24625 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24629 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24630 # Check whether --enable-fix-cortex-a53-835769 was given.
24631 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24632 enableval
=$enable_fix_cortex_a53_835769;
24635 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24640 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24641 Valid choices are 'yes' and 'no'." "$LINENO" 5
24648 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24649 # Check whether --enable-fix-cortex-a53-843419 was given.
24650 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24651 enableval
=$enable_fix_cortex_a53_843419;
24654 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24659 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24660 Valid choices are 'yes' and 'no'." "$LINENO" 5
24669 # All TARGET_ABI_OSF targets.
24670 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24672 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24673 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24676 gcc_cv_as_alpha_explicit_relocs
=no
24677 if test $in_tree_gas = yes; then
24678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24679 then gcc_cv_as_alpha_explicit_relocs
=yes
24681 elif test x
$gcc_cv_as != x
; then
24682 $as_echo ' .set nomacro
24684 extbl $3, $2, $3 !lituse_bytoff!1
24685 ldq $2, a($29) !literal!1
24686 ldq $4, b($29) !literal!2
24687 ldq_u $3, 0($2) !lituse_base!1
24688 ldq $27, f($29) !literal!5
24689 jsr $26, ($27), f !lituse_jsr!5
24690 ldah $29, 0($26) !gpdisp!3
24691 lda $0, c($29) !gprel
24692 ldah $1, d($29) !gprelhigh
24693 lda $1, d($1) !gprellow
24694 lda $29, 0($29) !gpdisp!3' > conftest.s
24695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24702 gcc_cv_as_alpha_explicit_relocs
=yes
24704 echo "configure: failed program was" >&5
24707 rm -f conftest.o conftest.s
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24711 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24712 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24714 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24719 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24720 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24723 gcc_cv_as_alpha_jsrdirect_relocs
=no
24724 if test $in_tree_gas = yes; then
24725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24726 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24728 elif test x
$gcc_cv_as != x
; then
24729 $as_echo ' .set nomacro
24731 ldq $27, a($29) !literal!1
24732 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735 (eval $ac_try) 2>&5
24737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; }
24740 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24742 echo "configure: failed program was" >&5
24745 rm -f conftest.o conftest.s
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24749 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24750 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24752 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24760 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24761 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24762 $as_echo_n "(cached) " >&6
24764 gcc_cv_as_avr_mlink_relax
=no
24765 if test x
$gcc_cv_as != x
; then
24766 $as_echo '.text' > conftest.s
24767 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24769 (eval $ac_try) 2>&5
24771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24772 test $ac_status = 0; }; }
24774 gcc_cv_as_avr_mlink_relax
=yes
24776 echo "configure: failed program was" >&5
24779 rm -f conftest.o conftest.s
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24783 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24784 if test $gcc_cv_as_avr_mlink_relax = yes; then
24786 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24792 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24793 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24796 gcc_cv_as_avr_mrmw
=no
24797 if test x
$gcc_cv_as != x
; then
24798 $as_echo '.text' > conftest.s
24799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24801 (eval $ac_try) 2>&5
24803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24804 test $ac_status = 0; }; }
24806 gcc_cv_as_avr_mrmw
=yes
24808 echo "configure: failed program was" >&5
24811 rm -f conftest.o conftest.s
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24815 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24816 if test $gcc_cv_as_avr_mrmw = yes; then
24818 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
24824 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
24825 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
24826 $as_echo_n "(cached) " >&6
24828 gcc_cv_as_avr_mgccisr
=no
24829 if test x
$gcc_cv_as != x
; then
24835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
24836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24837 (eval $ac_try) 2>&5
24839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24840 test $ac_status = 0; }; }
24842 gcc_cv_as_avr_mgccisr
=yes
24844 echo "configure: failed program was" >&5
24847 rm -f conftest.o conftest.s
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
24851 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
24852 if test $gcc_cv_as_avr_mgccisr = yes; then
24854 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
24859 # Check how default linker description file implements .rodata for
24860 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
24861 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
24863 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
24864 cat > conftest.s
<<EOF
24865 .section .rodata,"a",@progbits
24867 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
24872 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
24873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24874 (eval $ac_try) 2>&5
24876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24877 test $ac_status = 0; }; }
24878 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
24879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24880 (eval $ac_try) 2>&5
24882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24883 test $ac_status = 0; }; }
24884 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24890 if test -s conftest.nm
24892 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24894 $as_echo "yes" >&6; }
24896 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
24900 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
24901 echo "$as_me: nm output was" >&5
24902 cat conftest.nm
>&5
24903 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
24905 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
24909 $as_echo "test failed" >&6; }
24910 echo "$as_me: failed program was" >&5
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
24913 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
24915 rm -f conftest.s conftest.o conftest.elf conftest.nm
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24920 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24921 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24922 $as_echo_n "(cached) " >&6
24924 gcc_cv_as_cris_no_mul_bug
=no
24925 if test $in_tree_gas = yes; then
24926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24927 then gcc_cv_as_cris_no_mul_bug
=yes
24929 elif test x
$gcc_cv_as != x
; then
24930 $as_echo '.text' > conftest.s
24931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24933 (eval $ac_try) 2>&5
24935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24936 test $ac_status = 0; }; }
24938 gcc_cv_as_cris_no_mul_bug
=yes
24940 echo "configure: failed program was" >&5
24943 rm -f conftest.o conftest.s
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24947 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24948 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24950 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24958 $as_echo_n "checking assembler for .register... " >&6; }
24959 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24960 $as_echo_n "(cached) " >&6
24962 gcc_cv_as_sparc_register_op
=no
24963 if test x
$gcc_cv_as != x
; then
24964 $as_echo '.register %g2, #scratch' > conftest.s
24965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24967 (eval $ac_try) 2>&5
24969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24970 test $ac_status = 0; }; }
24972 gcc_cv_as_sparc_register_op
=yes
24974 echo "configure: failed program was" >&5
24977 rm -f conftest.o conftest.s
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24981 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24982 if test $gcc_cv_as_sparc_register_op = yes; then
24984 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24990 $as_echo_n "checking assembler for -relax option... " >&6; }
24991 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24992 $as_echo_n "(cached) " >&6
24994 gcc_cv_as_sparc_relax
=no
24995 if test x
$gcc_cv_as != x
; then
24996 $as_echo '.text' > conftest.s
24997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }
25004 gcc_cv_as_sparc_relax
=yes
25006 echo "configure: failed program was" >&5
25009 rm -f conftest.o conftest.s
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25013 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25014 if test $gcc_cv_as_sparc_relax = yes; then
25016 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25022 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25023 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25024 $as_echo_n "(cached) " >&6
25026 gcc_cv_as_sparc_gotdata_op
=no
25027 if test x
$gcc_cv_as != x
; then
25033 sethi %gdop_hix22(foo), %g1
25034 xor %g1, %gdop_lox10(foo), %g1
25035 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25038 (eval $ac_try) 2>&5
25040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25041 test $ac_status = 0; }; }
25043 if test x
$gcc_cv_ld != x \
25044 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25045 if test x
$gcc_cv_objdump != x
; then
25046 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25047 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25048 gcc_cv_as_sparc_gotdata_op
=no
25050 gcc_cv_as_sparc_gotdata_op
=yes
25056 echo "configure: failed program was" >&5
25059 rm -f conftest.o conftest.s
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25063 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25064 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25066 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25072 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25073 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25074 $as_echo_n "(cached) " >&6
25076 gcc_cv_as_sparc_ua_pcrel
=no
25077 if test x
$gcc_cv_as != x
; then
25084 .uaword %r_disp32(foo)' > conftest.s
25085 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25087 (eval $ac_try) 2>&5
25089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25090 test $ac_status = 0; }; }
25092 if test x
$gcc_cv_ld != x \
25093 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25094 gcc_cv_as_sparc_ua_pcrel
=yes
25098 echo "configure: failed program was" >&5
25101 rm -f conftest.o conftest.s
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25105 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25106 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25108 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25112 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25113 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25114 $as_echo_n "(cached) " >&6
25116 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25117 if test x
$gcc_cv_as != x
; then
25121 .uaword %r_disp32(foo)
25122 .byte 0x32, 0x33, 0x34
25126 .skip 4' > conftest.s
25127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25134 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25135 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25136 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25137 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25138 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25139 |
grep 'DISP32' > /dev
/null
2>&1; then
25142 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25147 echo "configure: failed program was" >&5
25150 rm -f conftest.o conftest.s
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25154 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25155 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25157 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25163 # unaligned pcrel relocs
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25166 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25167 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25170 gcc_cv_as_sparc_offsetable_lo10
=no
25171 if test x
$gcc_cv_as != x
; then
25173 or %g1, %lo(ab) + 12, %g1
25174 or %g1, %lo(ab + 12), %g1' > conftest.s
25175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25177 (eval $ac_try) 2>&5
25179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25180 test $ac_status = 0; }; }
25182 if test x
$gcc_cv_objdump != x \
25183 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25184 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25185 gcc_cv_as_sparc_offsetable_lo10
=yes
25188 echo "configure: failed program was" >&5
25191 rm -f conftest.o conftest.s
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25195 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25196 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25198 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25204 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25205 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25206 $as_echo_n "(cached) " >&6
25208 gcc_cv_as_sparc_fmaf
=no
25209 if test x
$gcc_cv_as != x
; then
25211 .register %g2, #scratch
25212 .register %g3, #scratch
25214 fmaddd %f0, %f2, %f4, %f6
25215 addxccc %g1, %g2, %g3
25216 fsrl32 %f2, %f4, %f8
25217 fnaddd %f10, %f12, %f14' > conftest.s
25218 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25220 (eval $ac_try) 2>&5
25222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25223 test $ac_status = 0; }; }
25225 gcc_cv_as_sparc_fmaf
=yes
25227 echo "configure: failed program was" >&5
25230 rm -f conftest.o conftest.s
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25234 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25235 if test $gcc_cv_as_sparc_fmaf = yes; then
25237 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25243 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25244 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25247 gcc_cv_as_sparc_sparc4
=no
25248 if test x
$gcc_cv_as != x
; then
25250 .register %g2, #scratch
25251 .register %g3, #scratch
25254 1: cwbneg %g2, %g3, 1f
25257 aes_kexpand0 %f4, %f6, %f8
25258 des_round %f38, %f40, %f42, %f44
25259 camellia_f %f54, %f56, %f58, %f60
25260 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25263 (eval $ac_try) 2>&5
25265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25266 test $ac_status = 0; }; }
25268 gcc_cv_as_sparc_sparc4
=yes
25270 echo "configure: failed program was" >&5
25273 rm -f conftest.o conftest.s
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25277 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25278 if test $gcc_cv_as_sparc_sparc4 = yes; then
25280 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25286 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25287 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25290 gcc_cv_as_sparc_sparc5
=no
25291 if test x
$gcc_cv_as != x
; then
25293 .register %g2, #scratch
25294 .register %g3, #scratch
25296 subxc %g1, %g2, %g3
25297 fpadd8 %f0, %f2, %f4' > conftest.s
25298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25305 gcc_cv_as_sparc_sparc5
=yes
25307 echo "configure: failed program was" >&5
25310 rm -f conftest.o conftest.s
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25314 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25315 if test $gcc_cv_as_sparc_sparc5 = yes; then
25317 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25323 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25324 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25325 $as_echo_n "(cached) " >&6
25327 gcc_cv_as_sparc_sparc6
=no
25328 if test x
$gcc_cv_as != x
; then
25330 .register %g2, #scratch
25331 .register %g3, #scratch
25334 fpsll64x %f0, %f2, %f4' > conftest.s
25335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25337 (eval $ac_try) 2>&5
25339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25340 test $ac_status = 0; }; }
25342 gcc_cv_as_sparc_sparc6
=yes
25344 echo "configure: failed program was" >&5
25347 rm -f conftest.o conftest.s
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25351 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25352 if test $gcc_cv_as_sparc_sparc6 = yes; then
25354 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25360 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25361 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25362 $as_echo_n "(cached) " >&6
25364 gcc_cv_as_sparc_leon
=no
25365 if test x
$gcc_cv_as != x
; then
25367 .register %g2, #scratch
25368 .register %g3, #scratch
25372 casa [%g2] 0xb, %g3, %g1' > conftest.s
25373 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25375 (eval $ac_try) 2>&5
25377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25378 test $ac_status = 0; }; }
25380 gcc_cv_as_sparc_leon
=yes
25382 echo "configure: failed program was" >&5
25385 rm -f conftest.o conftest.s
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25389 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25390 if test $gcc_cv_as_sparc_leon = yes; then
25392 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25398 i
[34567]86-*-* | x86_64-
*-*)
25401 # Full C++ conformance when using a shared libstdc++-v3 requires some
25402 # support from the Cygwin DLL, which in more recent versions exports
25403 # wrappers to aid in interposing and redirecting operators new, delete,
25404 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25405 # are configuring for a version of Cygwin that exports the wrappers.
25406 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25407 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25408 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25409 gcc_ac_cygwin_dll_wrappers
=yes
25411 gcc_ac_cygwin_dll_wrappers
=no
25415 # Can't check presence of libc functions during cross-compile, so
25416 # we just have to assume we're building for an up-to-date target.
25417 gcc_ac_cygwin_dll_wrappers
=yes
25420 cat >>confdefs.h
<<_ACEOF
25421 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25426 cygwin
* | pe | mingw32
*)
25427 # Recent binutils allows the three-operand form of ".comm" on PE. This
25428 # definition is used unconditionally to initialise the default state of
25429 # the target option variable that governs usage of the feature.
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25431 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25432 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25433 $as_echo_n "(cached) " >&6
25435 gcc_cv_as_comm_has_align
=no
25436 if test $in_tree_gas = yes; then
25437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25438 then gcc_cv_as_comm_has_align
=yes
25440 elif test x
$gcc_cv_as != x
; then
25441 $as_echo '.comm foo,1,32' > conftest.s
25442 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25444 (eval $ac_try) 2>&5
25446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25447 test $ac_status = 0; }; }
25449 gcc_cv_as_comm_has_align
=yes
25451 echo "configure: failed program was" >&5
25454 rm -f conftest.o conftest.s
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25458 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25462 cat >>confdefs.h
<<_ACEOF
25463 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25466 # Used for DWARF 2 in PE
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25468 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25469 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25472 gcc_cv_as_ix86_pe_secrel32
=no
25473 if test $in_tree_gas = yes; then
25474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25475 then gcc_cv_as_ix86_pe_secrel32
=yes
25477 elif test x
$gcc_cv_as != x
; then
25481 .secrel32 foo' > conftest.s
25482 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25484 (eval $ac_try) 2>&5
25486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25487 test $ac_status = 0; }; }
25489 if test x
$gcc_cv_ld != x \
25490 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25491 gcc_cv_as_ix86_pe_secrel32
=yes
25495 echo "configure: failed program was" >&5
25498 rm -f conftest.o conftest.s
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25502 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25503 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25505 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25509 # Test if the assembler supports the extended form of the .section
25510 # directive that specifies section alignment. LTO support uses this,
25511 # but normally only after installation, so we warn but don't fail the
25512 # configure if LTO is enabled but the assembler does not support it.
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25514 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25515 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25516 $as_echo_n "(cached) " >&6
25518 gcc_cv_as_section_has_align
=no
25519 if test $in_tree_gas = yes; then
25520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25521 then gcc_cv_as_section_has_align
=yes
25523 elif test x
$gcc_cv_as != x
; then
25524 $as_echo '.section lto_test,"dr0"' > conftest.s
25525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25527 (eval $ac_try) 2>&5
25529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25530 test $ac_status = 0; }; }
25532 gcc_cv_as_section_has_align
=yes
25534 echo "configure: failed program was" >&5
25537 rm -f conftest.o conftest.s
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25541 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25544 if test x
$gcc_cv_as_section_has_align != xyes
; then
25545 case ",$enable_languages," in
25547 { $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
25548 $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;}
25555 # Test if the assembler supports the section flag 'e' for specifying
25556 # an excluded section.
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25558 $as_echo_n "checking assembler for .section with e... " >&6; }
25559 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25560 $as_echo_n "(cached) " >&6
25562 gcc_cv_as_section_has_e
=no
25563 if test $in_tree_gas = yes; then
25564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25565 then gcc_cv_as_section_has_e
=yes
25567 elif test x
$gcc_cv_as != x
; then
25568 $as_echo '.section foo1,"e"
25569 .byte 0,0,0,0' > conftest.s
25570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25577 gcc_cv_as_section_has_e
=yes
25579 echo "configure: failed program was" >&5
25582 rm -f conftest.o conftest.s
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25586 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25590 cat >>confdefs.h
<<_ACEOF
25591 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25596 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25597 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25598 $as_echo_n "(cached) " >&6
25600 gcc_cv_as_ix86_filds
=no
25601 if test x
$gcc_cv_as != x
; then
25602 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25603 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25605 (eval $ac_try) 2>&5
25607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25608 test $ac_status = 0; }; }
25610 gcc_cv_as_ix86_filds
=yes
25612 echo "configure: failed program was" >&5
25615 rm -f conftest.o conftest.s
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25619 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25620 if test $gcc_cv_as_ix86_filds = yes; then
25622 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25628 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25629 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25630 $as_echo_n "(cached) " >&6
25632 gcc_cv_as_ix86_fildq
=no
25633 if test x
$gcc_cv_as != x
; then
25634 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25635 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25637 (eval $ac_try) 2>&5
25639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25640 test $ac_status = 0; }; }
25642 gcc_cv_as_ix86_fildq
=yes
25644 echo "configure: failed program was" >&5
25647 rm -f conftest.o conftest.s
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25651 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25652 if test $gcc_cv_as_ix86_fildq = yes; then
25654 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25660 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25661 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25662 $as_echo_n "(cached) " >&6
25664 gcc_cv_as_ix86_cmov_sun_syntax
=no
25665 if test x
$gcc_cv_as != x
; then
25666 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25674 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25676 echo "configure: failed program was" >&5
25679 rm -f conftest.o conftest.s
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25683 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25684 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25686 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25692 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25693 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25696 gcc_cv_as_ix86_ffreep
=no
25697 if test x
$gcc_cv_as != x
; then
25698 $as_echo 'ffreep %st(1)' > conftest.s
25699 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25701 (eval $ac_try) 2>&5
25703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25704 test $ac_status = 0; }; }
25706 gcc_cv_as_ix86_ffreep
=yes
25708 echo "configure: failed program was" >&5
25711 rm -f conftest.o conftest.s
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25715 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25716 if test $gcc_cv_as_ix86_ffreep = yes; then
25718 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25724 $as_echo_n "checking assembler for .quad directive... " >&6; }
25725 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25726 $as_echo_n "(cached) " >&6
25728 gcc_cv_as_ix86_quad
=no
25729 if test x
$gcc_cv_as != x
; then
25730 $as_echo '.quad 0' > conftest.s
25731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25733 (eval $ac_try) 2>&5
25735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25736 test $ac_status = 0; }; }
25738 gcc_cv_as_ix86_quad
=yes
25740 echo "configure: failed program was" >&5
25743 rm -f conftest.o conftest.s
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25747 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25748 if test $gcc_cv_as_ix86_quad = yes; then
25750 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25756 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25757 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25758 $as_echo_n "(cached) " >&6
25760 gcc_cv_as_ix86_sahf
=no
25761 if test x
$gcc_cv_as != x
; then
25764 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25766 (eval $ac_try) 2>&5
25768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25769 test $ac_status = 0; }; }
25771 gcc_cv_as_ix86_sahf
=yes
25773 echo "configure: failed program was" >&5
25776 rm -f conftest.o conftest.s
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25780 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25781 if test $gcc_cv_as_ix86_sahf = yes; then
25783 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25789 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25790 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25791 $as_echo_n "(cached) " >&6
25793 gcc_cv_as_ix86_interunit_movq
=no
25794 if test x
$gcc_cv_as != x
; then
25797 movq %rax, %xmm0' > conftest.s
25798 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25800 (eval $ac_try) 2>&5
25802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25803 test $ac_status = 0; }; }
25805 gcc_cv_as_ix86_interunit_movq
=yes
25807 echo "configure: failed program was" >&5
25810 rm -f conftest.o conftest.s
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25814 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25818 cat >>confdefs.h
<<_ACEOF
25819 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25824 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25825 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25828 gcc_cv_as_ix86_hle
=no
25829 if test x
$gcc_cv_as != x
; then
25830 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25833 (eval $ac_try) 2>&5
25835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; }
25838 gcc_cv_as_ix86_hle
=yes
25840 echo "configure: failed program was" >&5
25843 rm -f conftest.o conftest.s
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25847 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25848 if test $gcc_cv_as_ix86_hle = yes; then
25850 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25856 $as_echo_n "checking assembler for swap suffix... " >&6; }
25857 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25858 $as_echo_n "(cached) " >&6
25860 gcc_cv_as_ix86_swap
=no
25861 if test x
$gcc_cv_as != x
; then
25862 $as_echo 'movl.s %esp, %ebp' > conftest.s
25863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25870 gcc_cv_as_ix86_swap
=yes
25872 echo "configure: failed program was" >&5
25875 rm -f conftest.o conftest.s
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25879 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25880 if test $gcc_cv_as_ix86_swap = yes; then
25882 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25888 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25889 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25890 $as_echo_n "(cached) " >&6
25892 gcc_cv_as_ix86_diff_sect_delta
=no
25893 if test x
$gcc_cv_as != x
; then
25894 $as_echo '.section .rodata
25900 .L2: nop' > conftest.s
25901 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25903 (eval $ac_try) 2>&5
25905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25906 test $ac_status = 0; }; }
25908 gcc_cv_as_ix86_diff_sect_delta
=yes
25910 echo "configure: failed program was" >&5
25913 rm -f conftest.o conftest.s
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25917 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25918 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25920 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25926 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25927 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25928 $as_echo_n "(cached) " >&6
25930 gcc_cv_as_ix86_rep_lock_prefix
=no
25931 if test x
$gcc_cv_as != x
; then
25932 $as_echo 'rep movsl
25937 lock addl %edi, (%eax,%esi)
25938 lock orl $0, (%esp)' > conftest.s
25939 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25941 (eval $ac_try) 2>&5
25943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25944 test $ac_status = 0; }; }
25946 gcc_cv_as_ix86_rep_lock_prefix
=yes
25948 echo "configure: failed program was" >&5
25951 rm -f conftest.o conftest.s
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25955 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25956 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25958 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25964 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25965 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25966 $as_echo_n "(cached) " >&6
25968 gcc_cv_as_ix86_ud2
=no
25969 if test x
$gcc_cv_as != x
; then
25970 $as_echo 'ud2' > conftest.s
25971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25973 (eval $ac_try) 2>&5
25975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25976 test $ac_status = 0; }; }
25978 gcc_cv_as_ix86_ud2
=yes
25980 echo "configure: failed program was" >&5
25983 rm -f conftest.o conftest.s
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25987 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25988 if test $gcc_cv_as_ix86_ud2 = yes; then
25990 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25995 # Enforce 32-bit output with gas and gld.
25996 if test x
$gas = xyes
; then
25997 as_ix86_gas_32_opt
="--32"
25999 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26000 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26001 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26003 ld_ix86_gld_32_opt
="-melf_i386"
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26008 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26009 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26010 $as_echo_n "(cached) " >&6
26012 gcc_cv_as_ix86_tlsgdplt
=no
26013 if test x
$gcc_cv_as != x
; then
26014 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017 (eval $ac_try) 2>&5
26019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020 test $ac_status = 0; }; }
26022 if test x
$gcc_cv_ld != x \
26023 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26024 gcc_cv_as_ix86_tlsgdplt
=yes
26028 echo "configure: failed program was" >&5
26031 rm -f conftest.o conftest.s
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26035 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26036 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26038 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26044 .section .tdata,"aw'$tls_section_flag'",@progbits
26046 .section .text,"ax",@progbits
26047 call tls_ld@tlsldmplt'
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26050 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26051 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26054 gcc_cv_as_ix86_tlsldmplt
=no
26055 if test x
$gcc_cv_as != x
; then
26056 $as_echo "$conftest_s" > conftest.s
26057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26059 (eval $ac_try) 2>&5
26061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26062 test $ac_status = 0; }; }
26064 if test x
$gcc_cv_ld != x \
26065 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26066 gcc_cv_as_ix86_tlsldmplt
=yes
26070 echo "configure: failed program was" >&5
26073 rm -f conftest.o conftest.s
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26077 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26081 cat >>confdefs.h
<<_ACEOF
26082 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26087 .section .text,"ax",@progbits
26089 .type _start, @function
26091 leal value@tlsldm(%ebx), %eax
26092 call ___tls_get_addr@plt
26094 .section .tdata,"aw'$tls_section_flag'",@progbits
26095 .type value, @object
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26098 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26099 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26100 $as_echo_n "(cached) " >&6
26102 gcc_cv_as_ix86_tlsldm
=no
26103 if test x
$gcc_cv_as != x
; then
26104 $as_echo "$conftest_s" > conftest.s
26105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26107 (eval $ac_try) 2>&5
26109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26110 test $ac_status = 0; }; }
26112 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26113 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26114 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26115 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26116 gcc_cv_as_ix86_tlsldm
=yes
26121 echo "configure: failed program was" >&5
26124 rm -f conftest.o conftest.s
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26128 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26132 cat >>confdefs.h
<<_ACEOF
26133 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26147 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26148 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26149 $as_echo_n "(cached) " >&6
26151 gcc_cv_as_ix86_got32x
=no
26152 if test x
$gcc_cv_as != x
; then
26153 $as_echo "$conftest_s" > conftest.s
26154 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26156 (eval $ac_try) 2>&5
26158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26159 test $ac_status = 0; }; }
26161 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26162 && test x
$gcc_cv_readelf != x \
26163 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26164 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26165 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26166 if $gcc_cv_objdump -dw conftest
2>&1 \
26167 |
grep 0xffffff > /dev
/null
2>&1; then
26168 gcc_cv_as_ix86_got32x
=no
26170 gcc_cv_as_ix86_got32x
=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_ix86_got32x" >&5
26182 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26186 cat >>confdefs.h
<<_ACEOF
26187 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26192 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26193 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26194 $as_echo_n "(cached) " >&6
26196 gcc_cv_as_ix86_gotoff_in_data
=no
26197 if test $in_tree_gas = yes; then
26198 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26199 then gcc_cv_as_ix86_gotoff_in_data
=yes
26201 elif test x
$gcc_cv_as != x
; then
26206 .long .L0@GOTOFF' > conftest.s
26207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26214 gcc_cv_as_ix86_gotoff_in_data
=yes
26216 echo "configure: failed program was" >&5
26219 rm -f conftest.o conftest.s
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26223 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26227 cat >>confdefs.h
<<_ACEOF
26228 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26233 .section .text,"ax",@progbits
26235 .type _start, @function
26237 leal ld@tlsldm(%ecx), %eax
26238 call *___tls_get_addr@GOT(%ecx)
26239 leal gd@tlsgd(%ecx), %eax
26240 call *___tls_get_addr@GOT(%ecx)
26242 .section .tdata,"aw'$tls_section_flag'",@progbits
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26251 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26252 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26253 $as_echo_n "(cached) " >&6
26255 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26256 if test x
$gcc_cv_as != x
; then
26257 $as_echo "$conftest_s" > conftest.s
26258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26260 (eval $ac_try) 2>&5
26262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26263 test $ac_status = 0; }; }
26265 if test x
$gcc_cv_ld != x \
26266 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26267 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26271 echo "configure: failed program was" >&5
26274 rm -f conftest.o conftest.s
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26278 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26282 cat >>confdefs.h
<<_ACEOF
26283 #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`
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26290 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26291 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26294 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26295 if test $in_tree_gas = yes; then
26296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26297 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26299 elif test x
$gcc_cv_as != x
; then
26301 addl r15 = @ltoffx(x#), gp
26303 ld8.mov r16 = [r15], x#' > conftest.s
26304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26306 (eval $ac_try) 2>&5
26308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26309 test $ac_status = 0; }; }
26311 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26313 echo "configure: failed program was" >&5
26316 rm -f conftest.o conftest.s
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26320 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26321 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26323 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26335 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26336 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26337 $as_echo_n "(cached) " >&6
26339 gcc_cv_as_machine_directive
=no
26340 if test x
$gcc_cv_as != x
; then
26341 $as_echo ' .machine ppc7400' > conftest.s
26342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; }
26349 gcc_cv_as_machine_directive
=yes
26351 echo "configure: failed program was" >&5
26354 rm -f conftest.o conftest.s
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26358 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26361 if test x
$gcc_cv_as_machine_directive != xyes
; then
26362 echo "*** This target requires an assembler supporting \".machine\"" >&2
26363 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26364 test x
$build = x
$target && exit 1
26370 *-*-aix*) conftest_s
=' .machine "pwr5"
26373 *-*-darwin*) conftest_s
=' .text
26375 *) conftest_s
=' .machine power4
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26381 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26382 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26383 $as_echo_n "(cached) " >&6
26385 gcc_cv_as_powerpc_mfcrf
=no
26386 if test $in_tree_gas = yes; then
26387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26388 then gcc_cv_as_powerpc_mfcrf
=yes
26390 elif test x
$gcc_cv_as != x
; then
26391 $as_echo "$conftest_s" > conftest.s
26392 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26394 (eval $ac_try) 2>&5
26396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26397 test $ac_status = 0; }; }
26399 gcc_cv_as_powerpc_mfcrf
=yes
26401 echo "configure: failed program was" >&5
26404 rm -f conftest.o conftest.s
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26408 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26409 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26411 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26417 *-*-aix*) conftest_s
=' .machine "pwr5"
26420 *) conftest_s
=' .machine power5
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26426 $as_echo_n "checking assembler for popcntb support... " >&6; }
26427 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26428 $as_echo_n "(cached) " >&6
26430 gcc_cv_as_powerpc_popcntb
=no
26431 if test $in_tree_gas = yes; then
26432 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26433 then gcc_cv_as_powerpc_popcntb
=yes
26435 elif test x
$gcc_cv_as != x
; then
26436 $as_echo "$conftest_s" > conftest.s
26437 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26439 (eval $ac_try) 2>&5
26441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26442 test $ac_status = 0; }; }
26444 gcc_cv_as_powerpc_popcntb
=yes
26446 echo "configure: failed program was" >&5
26449 rm -f conftest.o conftest.s
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26453 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26454 if test $gcc_cv_as_powerpc_popcntb = yes; then
26456 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26462 *-*-aix*) conftest_s
=' .machine "pwr5x"
26465 *) conftest_s
=' .machine power5
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26471 $as_echo_n "checking assembler for fp round support... " >&6; }
26472 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26473 $as_echo_n "(cached) " >&6
26475 gcc_cv_as_powerpc_fprnd
=no
26476 if test $in_tree_gas = yes; then
26477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26478 then gcc_cv_as_powerpc_fprnd
=yes
26480 elif test x
$gcc_cv_as != x
; then
26481 $as_echo "$conftest_s" > conftest.s
26482 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26484 (eval $ac_try) 2>&5
26486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26487 test $ac_status = 0; }; }
26489 gcc_cv_as_powerpc_fprnd
=yes
26491 echo "configure: failed program was" >&5
26494 rm -f conftest.o conftest.s
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26498 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26499 if test $gcc_cv_as_powerpc_fprnd = yes; then
26501 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26507 *-*-aix*) conftest_s
=' .machine "pwr6"
26510 *) conftest_s
=' .machine power6
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26516 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26517 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26518 $as_echo_n "(cached) " >&6
26520 gcc_cv_as_powerpc_mfpgpr
=no
26521 if test $in_tree_gas = yes; then
26522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26523 then gcc_cv_as_powerpc_mfpgpr
=yes
26525 elif test x
$gcc_cv_as != x
; then
26526 $as_echo "$conftest_s" > conftest.s
26527 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26529 (eval $ac_try) 2>&5
26531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26532 test $ac_status = 0; }; }
26534 gcc_cv_as_powerpc_mfpgpr
=yes
26536 echo "configure: failed program was" >&5
26539 rm -f conftest.o conftest.s
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26543 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26544 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26546 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26552 *-*-aix*) conftest_s
=' .csect .text[PR]
26554 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26558 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26559 *) conftest_s
=' .text
26561 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26565 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26566 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26567 $as_echo_n "(cached) " >&6
26569 gcc_cv_as_powerpc_rel16
=no
26570 if test $in_tree_gas = yes; then
26571 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26572 then gcc_cv_as_powerpc_rel16
=yes
26574 elif test x
$gcc_cv_as != x
; then
26575 $as_echo "$conftest_s" > conftest.s
26576 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26578 (eval $ac_try) 2>&5
26580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26581 test $ac_status = 0; }; }
26583 gcc_cv_as_powerpc_rel16
=yes
26585 echo "configure: failed program was" >&5
26588 rm -f conftest.o conftest.s
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26592 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26593 if test $gcc_cv_as_powerpc_rel16 = yes; then
26595 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26601 *-*-aix*) conftest_s
=' .machine "pwr6"
26604 *) conftest_s
=' .machine power6
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26610 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26611 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26612 $as_echo_n "(cached) " >&6
26614 gcc_cv_as_powerpc_cmpb
=no
26615 if test $in_tree_gas = yes; then
26616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26617 then gcc_cv_as_powerpc_cmpb
=yes
26619 elif test x
$gcc_cv_as != x
; then
26620 $as_echo "$conftest_s" > conftest.s
26621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26623 (eval $ac_try) 2>&5
26625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26626 test $ac_status = 0; }; }
26628 gcc_cv_as_powerpc_cmpb
=yes
26630 echo "configure: failed program was" >&5
26633 rm -f conftest.o conftest.s
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26637 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26638 if test $gcc_cv_as_powerpc_cmpb = yes; then
26640 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26646 *-*-aix*) conftest_s
=' .machine "pwr6"
26649 *) conftest_s
=' .machine power6
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26655 $as_echo_n "checking assembler for decimal float support... " >&6; }
26656 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26657 $as_echo_n "(cached) " >&6
26659 gcc_cv_as_powerpc_dfp
=no
26660 if test $in_tree_gas = yes; then
26661 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26662 then gcc_cv_as_powerpc_dfp
=yes
26664 elif test x
$gcc_cv_as != x
; then
26665 $as_echo "$conftest_s" > conftest.s
26666 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26668 (eval $ac_try) 2>&5
26670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26671 test $ac_status = 0; }; }
26673 gcc_cv_as_powerpc_dfp
=yes
26675 echo "configure: failed program was" >&5
26678 rm -f conftest.o conftest.s
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26682 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26683 if test $gcc_cv_as_powerpc_dfp = yes; then
26685 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26691 *-*-aix*) conftest_s
=' .machine "pwr7"
26694 *) conftest_s
=' .machine power7
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26700 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26701 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26702 $as_echo_n "(cached) " >&6
26704 gcc_cv_as_powerpc_vsx
=no
26705 if test $in_tree_gas = yes; then
26706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26707 then gcc_cv_as_powerpc_vsx
=yes
26709 elif test x
$gcc_cv_as != x
; then
26710 $as_echo "$conftest_s" > conftest.s
26711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26718 gcc_cv_as_powerpc_vsx
=yes
26720 echo "configure: failed program was" >&5
26723 rm -f conftest.o conftest.s
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26727 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26728 if test $gcc_cv_as_powerpc_vsx = yes; then
26730 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26736 *-*-aix*) conftest_s
=' .machine "pwr7"
26739 *) conftest_s
=' .machine power7
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26745 $as_echo_n "checking assembler for popcntd support... " >&6; }
26746 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26747 $as_echo_n "(cached) " >&6
26749 gcc_cv_as_powerpc_popcntd
=no
26750 if test $in_tree_gas = yes; then
26751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26752 then gcc_cv_as_powerpc_popcntd
=yes
26754 elif test x
$gcc_cv_as != x
; then
26755 $as_echo "$conftest_s" > conftest.s
26756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26758 (eval $ac_try) 2>&5
26760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26761 test $ac_status = 0; }; }
26763 gcc_cv_as_powerpc_popcntd
=yes
26765 echo "configure: failed program was" >&5
26768 rm -f conftest.o conftest.s
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26772 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26773 if test $gcc_cv_as_powerpc_popcntd = yes; then
26775 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26781 *-*-aix*) conftest_s
=' .machine "pwr8"
26782 .csect .text[PR]';;
26783 *) conftest_s
=' .machine power8
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26788 $as_echo_n "checking assembler for power8 support... " >&6; }
26789 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26790 $as_echo_n "(cached) " >&6
26792 gcc_cv_as_powerpc_power8
=no
26793 if test $in_tree_gas = yes; then
26794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26795 then gcc_cv_as_powerpc_power8
=yes
26797 elif test x
$gcc_cv_as != x
; then
26798 $as_echo "$conftest_s" > conftest.s
26799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26801 (eval $ac_try) 2>&5
26803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26804 test $ac_status = 0; }; }
26806 gcc_cv_as_powerpc_power8
=yes
26808 echo "configure: failed program was" >&5
26811 rm -f conftest.o conftest.s
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26815 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26816 if test $gcc_cv_as_powerpc_power8 = yes; then
26818 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26824 *-*-aix*) conftest_s
=' .machine "pwr9"
26825 .csect .text[PR]';;
26826 *) conftest_s
=' .machine power9
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26831 $as_echo_n "checking assembler for power9 support... " >&6; }
26832 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26833 $as_echo_n "(cached) " >&6
26835 gcc_cv_as_powerpc_power9
=no
26836 if test $in_tree_gas = yes; then
26837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26838 then gcc_cv_as_powerpc_power9
=yes
26840 elif test x
$gcc_cv_as != x
; then
26841 $as_echo "$conftest_s" > conftest.s
26842 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26844 (eval $ac_try) 2>&5
26846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26847 test $ac_status = 0; }; }
26849 gcc_cv_as_powerpc_power9
=yes
26851 echo "configure: failed program was" >&5
26854 rm -f conftest.o conftest.s
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26858 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26859 if test $gcc_cv_as_powerpc_power9 = yes; then
26861 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26867 *-*-aix*) conftest_s
=' .csect .text[PR]
26869 *) conftest_s
=' .text
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26874 $as_echo_n "checking assembler for lwsync support... " >&6; }
26875 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26876 $as_echo_n "(cached) " >&6
26878 gcc_cv_as_powerpc_lwsync
=no
26879 if test $in_tree_gas = yes; then
26880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26881 then gcc_cv_as_powerpc_lwsync
=yes
26883 elif test x
$gcc_cv_as != x
; then
26884 $as_echo "$conftest_s" > conftest.s
26885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26887 (eval $ac_try) 2>&5
26889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26890 test $ac_status = 0; }; }
26892 gcc_cv_as_powerpc_lwsync
=yes
26894 echo "configure: failed program was" >&5
26897 rm -f conftest.o conftest.s
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26901 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26902 if test $gcc_cv_as_powerpc_lwsync = yes; then
26904 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26910 *-*-aix*) conftest_s
=' .machine "476"
26913 *) conftest_s
=' .machine "476"
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26919 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26920 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26921 $as_echo_n "(cached) " >&6
26923 gcc_cv_as_powerpc_dci
=no
26924 if test $in_tree_gas = yes; then
26925 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26926 then gcc_cv_as_powerpc_dci
=yes
26928 elif test x
$gcc_cv_as != x
; then
26929 $as_echo "$conftest_s" > conftest.s
26930 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26932 (eval $ac_try) 2>&5
26934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26935 test $ac_status = 0; }; }
26937 gcc_cv_as_powerpc_dci
=yes
26939 echo "configure: failed program was" >&5
26942 rm -f conftest.o conftest.s
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26946 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26947 if test $gcc_cv_as_powerpc_dci = yes; then
26949 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26955 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26956 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26957 $as_echo_n "(cached) " >&6
26959 gcc_cv_as_powerpc_gnu_attribute
=no
26960 if test $in_tree_gas = yes; then
26961 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26962 then gcc_cv_as_powerpc_gnu_attribute
=yes
26964 elif test x
$gcc_cv_as != x
; then
26965 $as_echo '.gnu_attribute 4,1' > conftest.s
26966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26968 (eval $ac_try) 2>&5
26970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26971 test $ac_status = 0; }; }
26973 gcc_cv_as_powerpc_gnu_attribute
=yes
26975 echo "configure: failed program was" >&5
26978 rm -f conftest.o conftest.s
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26982 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26983 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26985 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26991 $as_echo_n "checking assembler for tls marker support... " >&6; }
26992 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26993 $as_echo_n "(cached) " >&6
26995 gcc_cv_as_powerpc_tls_markers
=no
26996 if test $in_tree_gas = yes; then
26997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26998 then gcc_cv_as_powerpc_tls_markers
=yes
27000 elif test x
$gcc_cv_as != x
; then
27001 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27004 (eval $ac_try) 2>&5
27006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27007 test $ac_status = 0; }; }
27009 gcc_cv_as_powerpc_tls_markers
=yes
27011 echo "configure: failed program was" >&5
27014 rm -f conftest.o conftest.s
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27018 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27019 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27021 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27027 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27028 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27029 $as_echo_n "(cached) " >&6
27031 gcc_cv_as_powerpc_entry_markers
=no
27032 if test $in_tree_gas = yes; then
27033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27034 then gcc_cv_as_powerpc_entry_markers
=yes
27036 elif test x
$gcc_cv_as != x
; then
27037 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27040 (eval $ac_try) 2>&5
27042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27043 test $ac_status = 0; }; }
27045 gcc_cv_as_powerpc_entry_markers
=yes
27047 echo "configure: failed program was" >&5
27050 rm -f conftest.o conftest.s
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27054 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27055 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27057 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27065 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27066 if test "${gcc_cv_as_aix_ref+set}" = set; then :
27067 $as_echo_n "(cached) " >&6
27069 gcc_cv_as_aix_ref
=no
27070 if test $in_tree_gas = yes; then
27071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27072 then gcc_cv_as_aix_ref
=yes
27074 elif test x
$gcc_cv_as != x
; then
27075 $as_echo ' .csect stuff[rw]
27081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27083 (eval $ac_try) 2>&5
27085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27086 test $ac_status = 0; }; }
27088 gcc_cv_as_aix_ref
=yes
27090 echo "configure: failed program was" >&5
27093 rm -f conftest.o conftest.s
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27097 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27098 if test $gcc_cv_as_aix_ref = yes; then
27100 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27106 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27107 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27108 $as_echo_n "(cached) " >&6
27110 gcc_cv_as_aix_dwloc
=no
27111 if test $in_tree_gas = yes; then
27112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27113 then gcc_cv_as_aix_dwloc
=yes
27115 elif test x
$gcc_cv_as != x
; then
27116 $as_echo ' .dwsect 0xA0000
27120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27122 (eval $ac_try) 2>&5
27124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27125 test $ac_status = 0; }; }
27127 gcc_cv_as_aix_dwloc
=yes
27129 echo "configure: failed program was" >&5
27132 rm -f conftest.o conftest.s
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27136 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27137 if test $gcc_cv_as_aix_dwloc = yes; then
27139 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27149 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27150 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27151 $as_echo_n "(cached) " >&6
27153 gcc_cv_as_mips_explicit_relocs
=no
27154 if test $in_tree_gas = yes; then
27155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27156 then gcc_cv_as_mips_explicit_relocs
=yes
27158 elif test x
$gcc_cv_as != x
; then
27159 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27160 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27162 (eval $ac_try) 2>&5
27164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27165 test $ac_status = 0; }; }
27167 gcc_cv_as_mips_explicit_relocs
=yes
27169 echo "configure: failed program was" >&5
27172 rm -f conftest.o conftest.s
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27176 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27177 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27178 if test x
$target_cpu_default = x
27179 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27180 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27186 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27187 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27188 $as_echo_n "(cached) " >&6
27190 gcc_cv_as_mips_no_shared
=no
27191 if test $in_tree_gas = yes; then
27192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27193 then gcc_cv_as_mips_no_shared
=yes
27195 elif test x
$gcc_cv_as != x
; then
27196 $as_echo 'nop' > conftest.s
27197 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27199 (eval $ac_try) 2>&5
27201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27202 test $ac_status = 0; }; }
27204 gcc_cv_as_mips_no_shared
=yes
27206 echo "configure: failed program was" >&5
27209 rm -f conftest.o conftest.s
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27213 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27214 if test $gcc_cv_as_mips_no_shared = yes; then
27216 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27222 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27223 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27224 $as_echo_n "(cached) " >&6
27226 gcc_cv_as_mips_gnu_attribute
=no
27227 if test $in_tree_gas = yes; then
27228 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27229 then gcc_cv_as_mips_gnu_attribute
=yes
27231 elif test x
$gcc_cv_as != x
; then
27232 $as_echo '.gnu_attribute 4,1' > conftest.s
27233 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27235 (eval $ac_try) 2>&5
27237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27238 test $ac_status = 0; }; }
27240 gcc_cv_as_mips_gnu_attribute
=yes
27242 echo "configure: failed program was" >&5
27245 rm -f conftest.o conftest.s
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27249 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27250 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27252 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27258 $as_echo_n "checking assembler for .module support... " >&6; }
27259 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27260 $as_echo_n "(cached) " >&6
27262 gcc_cv_as_mips_dot_module
=no
27263 if test x
$gcc_cv_as != x
; then
27264 $as_echo '.module mips2
27265 .module fp=xx' > conftest.s
27266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27268 (eval $ac_try) 2>&5
27270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27271 test $ac_status = 0; }; }
27273 gcc_cv_as_mips_dot_module
=yes
27275 echo "configure: failed program was" >&5
27278 rm -f conftest.o conftest.s
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27282 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27283 if test $gcc_cv_as_mips_dot_module = yes; then
27285 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27289 if test x
$gcc_cv_as_mips_dot_module = xno \
27290 && test x
$with_fp_32 != x
; then
27291 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27295 $as_echo_n "checking assembler for .micromips support... " >&6; }
27296 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27297 $as_echo_n "(cached) " >&6
27299 gcc_cv_as_micromips_support
=no
27300 if test x
$gcc_cv_as != x
; then
27301 $as_echo '.set micromips' > conftest.s
27302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27304 (eval $ac_try) 2>&5
27306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27307 test $ac_status = 0; }; }
27309 gcc_cv_as_micromips_support
=yes
27311 echo "configure: failed program was" >&5
27314 rm -f conftest.o conftest.s
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27318 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27319 if test $gcc_cv_as_micromips_support = yes; then
27321 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27327 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27328 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27329 $as_echo_n "(cached) " >&6
27331 gcc_cv_as_mips_dtprelword
=no
27332 if test $in_tree_gas = yes; then
27333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27334 then gcc_cv_as_mips_dtprelword
=yes
27336 elif test x
$gcc_cv_as != x
; then
27337 $as_echo '.section .tdata,"awT",@progbits
27341 .dtprelword x+0x8000' > conftest.s
27342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27344 (eval $ac_try) 2>&5
27346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27347 test $ac_status = 0; }; }
27349 gcc_cv_as_mips_dtprelword
=yes
27351 echo "configure: failed program was" >&5
27354 rm -f conftest.o conftest.s
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27358 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27359 if test $gcc_cv_as_mips_dtprelword = yes; then
27361 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27367 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27368 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27369 $as_echo_n "(cached) " >&6
27371 gcc_cv_as_mips_dspr1_mult
=no
27372 if test x
$gcc_cv_as != x
; then
27373 $as_echo ' .set mips32r2
27381 multu $ac3,$4,$5' > conftest.s
27382 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27384 (eval $ac_try) 2>&5
27386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27387 test $ac_status = 0; }; }
27389 gcc_cv_as_mips_dspr1_mult
=yes
27391 echo "configure: failed program was" >&5
27394 rm -f conftest.o conftest.s
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27398 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27399 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27401 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27407 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27408 gcc_cv_as_ld_jalr_reloc
=no
27409 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27410 if test $in_tree_ld = yes ; then
27411 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 \
27412 && test $in_tree_ld_is_elf = yes; then
27413 gcc_cv_as_ld_jalr_reloc
=yes
27415 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27416 echo ' .ent x' > conftest.s
27417 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27418 echo ' lw $25,%call16(y)($28)' >> conftest.s
27419 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27420 echo '1: jalr $25' >> conftest.s
27421 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27422 echo '1: jalr $25' >> conftest.s
27423 echo ' .end x' >> conftest.s
27424 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27425 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27426 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27427 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27428 gcc_cv_as_ld_jalr_reloc
=yes
27434 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27435 if test x
$target_cpu_default = x
; then
27436 target_cpu_default
=MASK_RELAX_PIC_CALLS
27438 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27442 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27445 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27446 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27447 $as_echo_n "(cached) " >&6
27449 gcc_cv_ld_mips_personality_relaxation
=no
27450 if test $in_tree_ld = yes ; then
27451 if test "$gcc_cv_gld_major_version" -eq 2 \
27452 -a "$gcc_cv_gld_minor_version" -ge 21 \
27453 -o "$gcc_cv_gld_major_version" -gt 2; then
27454 gcc_cv_ld_mips_personality_relaxation
=yes
27456 elif test x
$gcc_cv_as != x \
27457 -a x
$gcc_cv_ld != x \
27458 -a x
$gcc_cv_readelf != x
; then
27459 cat > conftest.s
<<EOF
27461 .cfi_personality 0x80,indirect_ptr
27468 .section .data,"aw",@progbits
27472 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27473 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27474 if $gcc_cv_readelf -d conftest
2>&1 \
27475 |
grep TEXTREL
> /dev
/null
2>&1; then
27477 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27478 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27481 gcc_cv_ld_mips_personality_relaxation
=yes
27485 rm -f conftest.s conftest.o conftest
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27488 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27489 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27491 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27496 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27497 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27498 $as_echo_n "(cached) " >&6
27500 gcc_cv_as_mips_nan
=no
27501 if test x
$gcc_cv_as != x
; then
27502 $as_echo '' > conftest.s
27503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27505 (eval $ac_try) 2>&5
27507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27508 test $ac_status = 0; }; }
27510 gcc_cv_as_mips_nan
=yes
27512 echo "configure: failed program was" >&5
27515 rm -f conftest.o conftest.s
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27519 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27520 if test $gcc_cv_as_mips_nan = yes; then
27522 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27526 if test x
$gcc_cv_as_mips_nan = xno \
27527 && test x
$with_nan != x
; then
27528 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27533 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27534 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27535 $as_echo_n "(cached) " >&6
27537 gcc_cv_as_s390_gnu_attribute
=no
27538 if test $in_tree_gas = yes; then
27539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27540 then gcc_cv_as_s390_gnu_attribute
=yes
27542 elif test x
$gcc_cv_as != x
; then
27543 $as_echo '.gnu_attribute 8,1' > conftest.s
27544 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27546 (eval $ac_try) 2>&5
27548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27549 test $ac_status = 0; }; }
27551 gcc_cv_as_s390_gnu_attribute
=yes
27553 echo "configure: failed program was" >&5
27556 rm -f conftest.o conftest.s
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27560 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27561 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27563 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27568 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27569 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27570 $as_echo_n "(cached) " >&6
27572 gcc_cv_as_s390_machine_machinemode
=no
27573 if test $in_tree_gas = yes; then
27574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27575 then gcc_cv_as_s390_machine_machinemode
=yes
27577 elif test x
$gcc_cv_as != x
; then
27578 $as_echo ' .machinemode push
27581 .machine pop' > conftest.s
27582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27584 (eval $ac_try) 2>&5
27586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27587 test $ac_status = 0; }; }
27589 gcc_cv_as_s390_machine_machinemode
=yes
27591 echo "configure: failed program was" >&5
27594 rm -f conftest.o conftest.s
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27598 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27599 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27601 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27606 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27607 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27608 $as_echo_n "(cached) " >&6
27610 gcc_cv_as_s390_architecture_modifiers
=no
27611 if test $in_tree_gas = yes; then
27612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27613 then gcc_cv_as_s390_architecture_modifiers
=yes
27615 elif test x
$gcc_cv_as != x
; then
27616 $as_echo ' .machine z13+vx ' > conftest.s
27617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27619 (eval $ac_try) 2>&5
27621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27622 test $ac_status = 0; }; }
27624 gcc_cv_as_s390_architecture_modifiers
=yes
27626 echo "configure: failed program was" >&5
27629 rm -f conftest.o conftest.s
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27633 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27634 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27636 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27643 # Mips and HP-UX need the GNU assembler.
27644 # Linux on IA64 might be able to use the Intel assembler.
27647 mips
*-*-* |
*-*-hpux* )
27648 if test x
$gas_flag = xyes \
27649 ||
test x
"$host" != x
"$build" \
27650 ||
test ! -x "$gcc_cv_as" \
27651 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27654 echo "*** This configuration requires the GNU assembler" >&2
27660 # ??? Not all targets support dwarf2 debug_line, even within a version
27661 # of gas. Moreover, we need to emit a valid instruction to trigger any
27662 # info to the output file. So, as supported targets are added to gas 2.11,
27663 # add some instruction here to (also) show we expect this might work.
27664 # ??? Once 2.11 is released, probably need to add first known working
27665 # version to the per-target configury.
27666 case "$cpu_type" in
27667 aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
27668 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27669 | tilegx | tilepro | visium | xstormy16 | xtensa
)
27679 if test x
"$insn" != x
; then
27681 .file 1 \"conftest.s\"
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27685 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27686 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27687 $as_echo_n "(cached) " >&6
27689 gcc_cv_as_dwarf2_debug_line
=no
27690 if test $in_tree_gas = yes; then
27691 if test $in_tree_gas_is_elf = yes \
27692 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27693 then gcc_cv_as_dwarf2_debug_line
=yes
27695 elif test x
$gcc_cv_as != x
; then
27696 $as_echo "$conftest_s" > conftest.s
27697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27699 (eval $ac_try) 2>&5
27701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27702 test $ac_status = 0; }; }
27704 if test x
$gcc_cv_objdump != x \
27705 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27706 |
grep debug_line
> /dev
/null
2>&1; then
27707 gcc_cv_as_dwarf2_debug_line
=yes
27710 echo "configure: failed program was" >&5
27713 rm -f conftest.o conftest.s
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27717 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27721 # The .debug_line file table must be in the exact order that
27722 # we specified the files, since these indices are also used
27723 # by DW_AT_decl_file. Approximate this test by testing if
27724 # the assembler bitches if the same index is assigned twice.
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27726 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27727 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27728 $as_echo_n "(cached) " >&6
27730 gcc_cv_as_dwarf2_file_buggy
=no
27731 if test x
$gcc_cv_as != x
; then
27732 $as_echo ' .file 1 "foo.s"
27733 .file 1 "bar.s"' > conftest.s
27734 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27736 (eval $ac_try) 2>&5
27738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27739 test $ac_status = 0; }; }
27741 gcc_cv_as_dwarf2_file_buggy
=yes
27743 echo "configure: failed program was" >&5
27746 rm -f conftest.o conftest.s
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27750 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27754 if test $gcc_cv_as_dwarf2_debug_line = yes \
27755 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27757 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27762 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27763 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27764 $as_echo_n "(cached) " >&6
27766 gcc_cv_as_gdwarf2_flag
=no
27767 if test $in_tree_gas = yes; then
27768 if test $in_tree_gas_is_elf = yes \
27769 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27770 then gcc_cv_as_gdwarf2_flag
=yes
27772 elif test x
$gcc_cv_as != x
; then
27773 $as_echo "$insn" > conftest.s
27774 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27776 (eval $ac_try) 2>&5
27778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27779 test $ac_status = 0; }; }
27781 gcc_cv_as_gdwarf2_flag
=yes
27783 echo "configure: failed program was" >&5
27786 rm -f conftest.o conftest.s
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27790 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27791 if test $gcc_cv_as_gdwarf2_flag = yes; then
27793 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27799 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27800 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27801 $as_echo_n "(cached) " >&6
27803 gcc_cv_as_gstabs_flag
=no
27804 if test $in_tree_gas = yes; then
27805 if test $in_tree_gas_is_elf = yes \
27806 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27807 then gcc_cv_as_gstabs_flag
=yes
27809 elif test x
$gcc_cv_as != x
; then
27810 $as_echo "$insn" > conftest.s
27811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27813 (eval $ac_try) 2>&5
27815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27816 test $ac_status = 0; }; }
27818 gcc_cv_as_gstabs_flag
=yes
27820 echo "configure: failed program was" >&5
27823 rm -f conftest.o conftest.s
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27827 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27828 if test $gcc_cv_as_gstabs_flag = yes; then
27830 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27836 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27837 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27838 $as_echo_n "(cached) " >&6
27840 gcc_cv_as_debug_prefix_map_flag
=no
27841 if test $in_tree_gas = yes; then
27842 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27843 then gcc_cv_as_debug_prefix_map_flag
=yes
27845 elif test x
$gcc_cv_as != x
; then
27846 $as_echo "$insn" > conftest.s
27847 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27849 (eval $ac_try) 2>&5
27851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27852 test $ac_status = 0; }; }
27854 gcc_cv_as_debug_prefix_map_flag
=yes
27856 echo "configure: failed program was" >&5
27859 rm -f conftest.o conftest.s
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27863 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27864 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27866 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27873 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27874 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27875 $as_echo_n "(cached) " >&6
27877 gcc_cv_as_compress_debug
=no
27878 if test x
$gcc_cv_as != x
; then
27879 $as_echo '' > conftest.s
27880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27882 (eval $ac_try) 2>&5
27884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27885 test $ac_status = 0; }; }
27887 # gas compiled without zlib cannot compress debug sections and warns
27888 # about it, but still exits successfully. So check for this, too.
27889 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27891 gcc_cv_as_compress_debug
=0
27892 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27893 # defaulting to the ELF gABI format.
27894 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27896 gcc_cv_as_compress_debug
=2
27897 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27898 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27899 # Before binutils 2.26, gas only supported --compress-debug-options and
27900 # emitted the traditional GNU format.
27901 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27903 gcc_cv_as_compress_debug
=1
27904 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27905 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27907 gcc_cv_as_compress_debug
=0
27910 echo "configure: failed program was" >&5
27913 rm -f conftest.o conftest.s
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27917 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27921 cat >>confdefs.h
<<_ACEOF
27922 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27926 cat >>confdefs.h
<<_ACEOF
27927 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27931 cat >>confdefs.h
<<_ACEOF
27932 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27937 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27938 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27939 $as_echo_n "(cached) " >&6
27941 gcc_cv_as_lcomm_with_alignment
=no
27942 if test x
$gcc_cv_as != x
; then
27943 $as_echo '.lcomm bar,4,16' > conftest.s
27944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27946 (eval $ac_try) 2>&5
27948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27949 test $ac_status = 0; }; }
27951 gcc_cv_as_lcomm_with_alignment
=yes
27953 echo "configure: failed program was" >&5
27956 rm -f conftest.o conftest.s
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27960 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27961 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27963 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27968 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27969 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27970 && test "$prefix" != "NONE"; then
27972 cat >>confdefs.h
<<_ACEOF
27973 #define PREFIX_INCLUDE_DIR "$prefix/include"
27978 # Determine the version of glibc, if any, used on the target.
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27980 $as_echo_n "checking for target glibc version... " >&6; }
27982 # Check whether --with-glibc-version was given.
27983 if test "${with_glibc_version+set}" = set; then :
27984 withval
=$with_glibc_version;
27985 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27986 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27987 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27989 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27993 glibc_version_major
=0
27994 glibc_version_minor
=0
27995 if test -f $target_header_dir/features.h \
27996 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27997 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27998 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27999 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28004 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28006 cat >>confdefs.h
<<_ACEOF
28007 #define TARGET_GLIBC_MAJOR $glibc_version_major
28011 cat >>confdefs.h
<<_ACEOF
28012 #define TARGET_GLIBC_MINOR $glibc_version_minor
28016 # Check whether --enable-gnu-unique-object was given.
28017 if test "${enable_gnu_unique_object+set}" = set; then :
28018 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28020 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28021 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28025 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28026 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28027 $as_echo_n "(cached) " >&6
28029 gcc_cv_as_gnu_unique_object
=no
28030 if test $in_tree_gas = yes; then
28031 if test $in_tree_gas_is_elf = yes \
28032 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28033 then gcc_cv_as_gnu_unique_object
=yes
28035 elif test x
$gcc_cv_as != x
; then
28036 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28039 (eval $ac_try) 2>&5
28041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28042 test $ac_status = 0; }; }
28044 gcc_cv_as_gnu_unique_object
=yes
28046 echo "configure: failed program was" >&5
28049 rm -f conftest.o conftest.s
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28053 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28054 if test $gcc_cv_as_gnu_unique_object = yes; then
28055 # We need to unquote above to to use the definition from config.gcc.
28056 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28058 if test $glibc_version_major -gt 2 \
28059 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28060 enable_gnu_unique_object
=yes
28067 if test x
$enable_gnu_unique_object = xyes
; then
28069 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28074 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28075 if test "${gcc_cv_as_line_zero+set}" = set; then :
28076 $as_echo_n "(cached) " >&6
28078 gcc_cv_as_line_zero
=no
28079 if test $in_tree_gas = yes; then
28080 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28081 then gcc_cv_as_line_zero
=yes
28083 elif test "x$gcc_cv_as" != x
; then
28084 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28085 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28087 (eval $ac_try) 2>&5
28089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28090 test $ac_status = 0; }; } &&
28091 test "x`cat conftest.out`" = x
28093 gcc_cv_as_line_zero
=yes
28095 echo "configure: failed program was" >&5
28097 echo "configure: error output was" >&5
28098 cat conftest.out
>&5
28100 rm -f conftest.o conftest.s conftest.out
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28104 $as_echo "$gcc_cv_as_line_zero" >&6; }
28105 if test "x$gcc_cv_as_line_zero" = xyes
; then
28107 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28112 $as_echo_n "checking support for thin archives... " >&6; }
28113 thin_archive_support
=no
28114 echo 'int main (void) { return 0; }' > conftest.c
28115 if ($AR --version |
sed 1q |
grep "GNU ar" \
28116 && $CC $CFLAGS -c conftest.c \
28117 && $AR rcT conftest.a conftest.o \
28118 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28119 thin_archive_support
=yes
28121 rm -f conftest.c conftest.o conftest.a conftest
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28123 $as_echo "$thin_archive_support" >&6; }
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28127 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28128 gcc_cv_ld_eh_frame_hdr
=no
28129 if test $in_tree_ld = yes ; then
28130 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 \
28131 && test $in_tree_ld_is_elf = yes; then
28132 gcc_cv_ld_eh_frame_hdr
=yes
28134 elif test x
$gcc_cv_ld != x
; then
28135 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28136 # Check if linker supports --eh-frame-hdr option
28137 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28138 gcc_cv_ld_eh_frame_hdr
=yes
28143 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28144 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28145 gcc_cv_ld_eh_frame_hdr
=yes
28152 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28154 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28158 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28161 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28162 gcc_cv_ld_eh_frame_ciev3
=no
28163 if test $in_tree_ld = yes ; then
28164 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 \
28165 && test $in_tree_ld_is_elf = yes; then
28166 gcc_cv_ld_eh_frame_ciev3
=yes
28168 elif test x
$gcc_cv_ld != x
; then
28169 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28170 gcc_cv_ld_eh_frame_ciev3
=yes
28171 if test 0"$ld_date" -lt 20040513; then
28172 if test -n "$ld_date"; then
28173 # If there was date string, but was earlier than 2004-05-13, fail
28174 gcc_cv_ld_eh_frame_ciev3
=no
28175 elif test "$ld_vers_major" -lt 2; then
28176 gcc_cv_ld_eh_frame_ciev3
=no
28177 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28178 gcc_cv_ld_eh_frame_ciev3
=no
28184 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28185 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28186 gcc_cv_ld_eh_frame_ciev3
=yes
28193 cat >>confdefs.h
<<_ACEOF
28194 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28198 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28201 $as_echo_n "checking linker position independent executable support... " >&6; }
28203 if test $in_tree_ld = yes ; then
28205 # Full PIE support on Solaris was only introduced in gld 2.26.
28206 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28207 *) gcc_gld_pie_min_version
=15 ;;
28209 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 \
28210 && test $in_tree_ld_is_elf = yes; then
28213 elif test x
$gcc_cv_ld != x
; then
28214 # Check if linker supports -pie option
28215 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28219 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28220 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28227 *-*-solaris2.1
[1-9]*)
28228 # Solaris 11.x and Solaris 12 added PIE support.
28229 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28236 if test x
"$gcc_cv_ld_pie" = xyes
; then
28238 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28242 $as_echo "$gcc_cv_ld_pie" >&6; }
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28245 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28246 gcc_cv_ld_pie_copyreloc
=no
28247 if test $gcc_cv_ld_pie = yes ; then
28248 if test $in_tree_ld = yes ; then
28249 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
28250 gcc_cv_ld_pie_copyreloc
=yes
28252 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28253 # Check if linker supports -pie option with copy reloc
28255 i?
86-*-linux* | x86_64-
*-linux*)
28256 cat > conftest1.s
<<EOF
28259 .type a_glob, @object
28264 cat > conftest2.s
<<EOF
28267 .type main, @function
28269 movl %eax, a_glob(%rip)
28272 .section .data.rel,"aw",@progbits
28277 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28278 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28279 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28280 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28281 gcc_cv_ld_pie_copyreloc
=yes
28283 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28289 cat >>confdefs.h
<<_ACEOF
28290 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28294 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28297 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28298 gcc_cv_ld_eh_gc_sections
=no
28299 if test $in_tree_ld = yes ; then
28300 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 \
28301 && test $in_tree_ld_is_elf = yes; then
28302 gcc_cv_ld_eh_gc_sections
=yes
28304 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28305 cat > conftest.s
<<EOF
28308 .type _start, @function
28311 .size _start, .-_start
28312 .section .text.foo,"ax",@progbits
28313 .type foo, @function
28317 .section .gcc_except_table.foo,"a",@progbits
28320 .section .eh_frame,"a",@progbits
28323 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28324 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28325 |
grep "gc-sections option ignored" > /dev
/null
; then
28326 gcc_cv_ld_eh_gc_sections
=no
28327 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28328 |
grep gcc_except_table
> /dev
/null
; then
28329 gcc_cv_ld_eh_gc_sections
=yes
28330 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28331 if test x
$gcc_cv_as_comdat_group != xyes
; then
28332 gcc_cv_ld_eh_gc_sections
=no
28333 cat > conftest.s
<<EOF
28336 .type _start, @function
28339 .size _start, .-_start
28340 .section .gnu.linkonce.t.foo,"ax",@progbits
28341 .type foo, @function
28345 .section .gcc_except_table.foo,"a",@progbits
28348 .section .eh_frame,"a",@progbits
28351 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28352 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28353 |
grep "gc-sections option ignored" > /dev
/null
; then
28354 gcc_cv_ld_eh_gc_sections
=no
28355 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28356 |
grep gcc_except_table
> /dev
/null
; then
28357 gcc_cv_ld_eh_gc_sections
=yes
28363 rm -f conftest.s conftest.o conftest
28367 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28368 gcc_cv_ld_eh_gc_sections
=no
28371 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28373 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28377 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28380 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28381 gcc_cv_ld_eh_gc_sections_bug
=no
28382 if test $in_tree_ld = yes ; then
28383 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 \
28384 && test $in_tree_ld_is_elf = yes; then
28385 gcc_cv_ld_eh_gc_sections_bug
=yes
28387 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
28388 gcc_cv_ld_eh_gc_sections_bug
=yes
28389 cat > conftest.s
<<EOF
28392 .type _start, @function
28395 .size _start, .-_start
28396 .section .text.startup.foo,"ax",@progbits
28397 .type foo, @function
28401 .section .gcc_except_table.foo,"a",@progbits
28404 .section .eh_frame,"a",@progbits
28407 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28408 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28409 |
grep "gc-sections option ignored" > /dev
/null
; then
28411 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28412 |
grep gcc_except_table
> /dev
/null
; then
28413 gcc_cv_ld_eh_gc_sections_bug
=no
28416 rm -f conftest.s conftest.o conftest
28418 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28420 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28424 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28427 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28428 # gold/gld support compressed debug sections since binutils 2.19/2.21
28429 # In binutils 2.26, gld gained support for the ELF gABI format.
28430 if test $in_tree_ld = yes ; then
28431 gcc_cv_ld_compress_debug
=0
28432 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 \
28433 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28434 gcc_cv_ld_compress_debug
=2
28435 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28436 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 \
28437 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28438 gcc_cv_ld_compress_debug
=3
28439 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28440 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 \
28441 && test $in_tree_ld_is_elf = yes; then
28442 gcc_cv_ld_compress_debug
=1
28444 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28445 if test "$ld_vers_major" -lt 2 \
28446 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28447 gcc_cv_ld_compress_debug
=0
28448 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28449 gcc_cv_ld_compress_debug
=1
28451 gcc_cv_ld_compress_debug
=3
28452 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28454 if test $ld_is_gold = yes; then
28455 gcc_cv_ld_compress_debug
=2
28456 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28459 case "${target}" in
28461 # Introduced in Solaris 11.2.
28462 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28463 gcc_cv_ld_compress_debug
=3
28464 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28466 gcc_cv_ld_compress_debug
=0
28470 # Assume linkers other than GNU ld don't support compessed debug
28472 gcc_cv_ld_compress_debug
=0
28477 cat >>confdefs.h
<<_ACEOF
28478 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28482 cat >>confdefs.h
<<_ACEOF
28483 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28487 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28489 if test x
"$ld64_flag" = x
"yes"; then
28491 # Set defaults for possibly untestable items.
28492 gcc_cv_ld64_export_dynamic
=0
28494 if test "$build" = "$host"; then
28500 # On Darwin, because of FAT library support, it is often possible to execute
28501 # exes from compatible archs even when the host differs from the build system.
28502 case "$build","$host" in
28503 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28504 darwin_try_test
=1;;
28508 # If the configurer specified a minimum ld64 version to be supported, then use
28509 # that to determine feature support.
28510 if test x
"${gcc_cv_ld64_version}" != x
; then
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28512 $as_echo_n "checking ld64 specified version... " >&6; }
28513 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28515 $as_echo "$gcc_cv_ld64_major" >&6; }
28516 if test "$gcc_cv_ld64_major" -ge 236; then
28517 gcc_cv_ld64_export_dynamic
=1
28519 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28520 # If the version was not specified, try to find it.
28521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28522 $as_echo_n "checking linker version... " >&6; }
28523 if test x
"${gcc_cv_ld64_version}" = x
; then
28524 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28527 $as_echo "$gcc_cv_ld64_version" >&6; }
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28530 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28531 gcc_cv_ld64_export_dynamic
=1
28532 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28533 gcc_cv_ld64_export_dynamic
=0
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28536 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28539 if test x
"${gcc_cv_ld64_version}" != x
; then
28541 cat >>confdefs.h
<<_ACEOF
28542 #define LD64_VERSION "${gcc_cv_ld64_version}"
28548 cat >>confdefs.h
<<_ACEOF
28549 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28559 $as_echo_n "checking linker --as-needed support... " >&6; }
28560 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28561 $as_echo_n "(cached) " >&6
28563 gcc_cv_ld_as_needed
=no
28564 gcc_cv_ld_as_needed_option
='--as-needed'
28565 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28566 if test $in_tree_ld = yes ; then
28567 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 \
28568 && test $in_tree_ld_is_elf = yes; then
28569 gcc_cv_ld_as_needed
=yes
28571 elif test x
$gcc_cv_ld != x
; then
28572 # Check if linker supports --as-needed and --no-as-needed options
28573 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
28574 gcc_cv_ld_as_needed
=yes
28576 case "$target:$gnu_ld" in
28578 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28580 gcc_cv_ld_as_needed
=yes
28581 gcc_cv_ld_as_needed_option
="-z ignore"
28582 gcc_cv_ld_no_as_needed_option
="-z record"
28586 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28587 # dl_iterate_phdr, i.e. since Solaris 11.
28589 *-*-solaris2.1
[1-9]*)
28591 i?
86-*-* | x86_64-
*-*)
28592 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28593 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28594 gcc_cv_ld_as_needed
=no
28600 gcc_cv_ld_as_needed
=no
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28606 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28607 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28609 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28612 cat >>confdefs.h
<<_ACEOF
28613 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28617 cat >>confdefs.h
<<_ACEOF
28618 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28624 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28625 saved_LDFLAGS
="$LDFLAGS"
28626 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28627 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28629 /* end confdefs.h. */
28630 int main(void) {return 0;}
28632 if ac_fn_cxx_try_link
"$LINENO"; then :
28633 gcc_cv_ld_clearcap
=yes; break
28635 gcc_cv_ld_clearcap
=no
28637 rm -f core conftest.err conftest.
$ac_objext \
28638 conftest
$ac_exeext conftest.
$ac_ext
28640 LDFLAGS
="$saved_LDFLAGS"
28641 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28643 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28645 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28649 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28655 emul_name
="-melf32lppc"
28658 emul_name
="-melf32ppc"
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28662 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28663 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28664 $as_echo_n "(cached) " >&6
28666 gcc_cv_ld_ppc_attr
=no
28667 if test x
"$ld_is_gold" = xyes
; then
28668 gcc_cv_ld_ppc_attr
=yes
28669 elif test $in_tree_ld = yes ; then
28670 if test "$gcc_cv_gld_major_version" -eq 2 \
28671 -a "$gcc_cv_gld_minor_version" -ge 28 \
28672 -o "$gcc_cv_gld_major_version" -gt 2; then
28673 gcc_cv_ld_ppc_attr
=yes
28675 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28676 # check that merging the long double .gnu_attribute doesn't warn
28677 cat > conftest1.s
<<EOF
28680 cat > conftest2.s
<<EOF
28683 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28684 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28685 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28686 && test ! -s conftest.err
; then
28687 gcc_cv_ld_ppc_attr
=yes
28689 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28694 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28695 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28697 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28703 case "$target:$tm_file" in
28704 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28707 emul_name
="-melf64lppc"
28710 emul_name
="-melf64ppc"
28713 emul_name
="-melf64ppc_fbsd"
28716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28717 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28718 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28719 $as_echo_n "(cached) " >&6
28721 gcc_cv_ld_no_dot_syms
=no
28722 if test x
"$ld_is_gold" = xyes
; then
28723 gcc_cv_ld_no_dot_syms
=yes
28724 elif test $in_tree_ld = yes ; then
28725 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
28726 gcc_cv_ld_no_dot_syms
=yes
28728 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28729 cat > conftest1.s
<<EOF
28733 cat > conftest2.s
<<EOF
28734 .section ".opd","aw"
28737 .type foo,@function
28739 .quad .LEfoo,.TOC.@tocbase,0
28745 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28746 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28747 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28748 gcc_cv_ld_no_dot_syms
=yes
28750 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28755 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28756 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28758 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28763 $as_echo_n "checking linker large toc support... " >&6; }
28764 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28765 $as_echo_n "(cached) " >&6
28767 gcc_cv_ld_large_toc
=no
28768 if test x
"$ld_is_gold" = xyes
; then
28769 gcc_cv_ld_large_toc
=yes
28770 elif test $in_tree_ld = yes ; then
28771 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
28772 gcc_cv_ld_large_toc
=yes
28774 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28775 cat > conftest.s
<<EOF
28776 .section ".tbss","awT",@nobits
28782 addis 9,13,ie0@got@tprel@ha
28783 ld 9,ie0@got@tprel@l(9)
28785 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28786 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28787 gcc_cv_ld_large_toc
=yes
28789 rm -f conftest conftest.o conftest.s
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28794 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28795 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28797 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28802 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28803 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28804 $as_echo_n "(cached) " >&6
28806 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28807 cat > conftest.s
<<EOF
28812 .section .data.rel.ro,"aw",@progbits
28817 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28818 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28819 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)) }'`
28821 rm -f conftest conftest.o conftest.s
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28826 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28827 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28829 cat >>confdefs.h
<<_ACEOF
28830 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28840 $as_echo_n "checking linker large toc support... " >&6; }
28841 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28842 $as_echo_n "(cached) " >&6
28844 gcc_cv_ld_large_toc
=no
28845 if test x
$gcc_cv_as != x
; then
28846 cat > conftest.s
<<EOF
28856 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28857 gcc_cv_ld_large_toc
=yes
28859 rm -f conftest conftest.o conftest.s
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28864 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28865 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28867 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28874 $as_echo_n "checking linker --build-id support... " >&6; }
28875 if test "${gcc_cv_ld_buildid+set}" = set; then :
28876 $as_echo_n "(cached) " >&6
28878 gcc_cv_ld_buildid
=no
28879 if test $in_tree_ld = yes ; then
28880 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28881 "$gcc_cv_gld_minor_version" -ge 18 -o \
28882 "$gcc_cv_gld_major_version" -gt 2 \
28883 && test $in_tree_ld_is_elf = yes; then
28884 gcc_cv_ld_buildid
=yes
28886 elif test x
$gcc_cv_ld != x
; then
28887 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
28888 gcc_cv_ld_buildid
=yes
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28893 $as_echo "$gcc_cv_ld_buildid" >&6; }
28894 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28896 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28900 # Check whether --enable-linker-build-id was given.
28901 if test "${enable_linker_build_id+set}" = set; then :
28902 enableval
=$enable_linker_build_id;
28904 enable_linker_build_id
=no
28908 if test x
"$enable_linker_build_id" = xyes
; then
28909 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28911 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28915 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28919 # In binutils 2.21, GNU ld gained support for new emulations fully
28920 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28922 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28923 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28924 $as_echo_n "(cached) " >&6
28926 gcc_cv_ld_sol2_emulation
=no
28927 if test $in_tree_ld = yes ; then
28928 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28929 "$gcc_cv_gld_minor_version" -ge 21 -o \
28930 "$gcc_cv_gld_major_version" -gt 2 \
28931 && test $in_tree_ld_is_elf = yes; then
28932 gcc_cv_ld_sol2_emulation
=yes
28934 elif test x
$gcc_cv_ld != x
; then
28935 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28936 grep _sol2
> /dev
/null
; then
28937 gcc_cv_ld_sol2_emulation
=yes
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28942 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28943 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28945 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28950 $as_echo_n "checking linker --sysroot support... " >&6; }
28951 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28952 $as_echo_n "(cached) " >&6
28954 gcc_cv_ld_sysroot
=no
28955 if test $in_tree_ld = yes ; then
28956 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
28957 gcc_cv_ld_sysroot
=yes
28959 elif test x
$gcc_cv_ld != x
; then
28960 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
28961 gcc_cv_ld_sysroot
=yes
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28966 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28967 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28969 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28975 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28977 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28978 if test "${gcc_cv_solaris_crts+set}" = set; then :
28979 $as_echo_n "(cached) " >&6
28981 gcc_cv_solaris_crts
=no
28982 if test x
$host != x
$target; then
28983 if test "x$with_sysroot" = xyes
; then
28984 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28986 target_sysroot
="${with_sysroot}"
28989 target_libdir
="$target_sysroot/usr/lib"
28990 # At the time they were added, gcrt1.o became a symlink for backwards
28991 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28993 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28994 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28996 sparc
*-*-solaris2*)
28997 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29002 $as_echo "$gcc_cv_solaris_crts" >&6; }
29005 if test x
$gcc_cv_solaris_crts = xyes
; then
29007 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29011 # Test for stack protector support in target C library.
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29013 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29014 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29015 $as_echo_n "(cached) " >&6
29017 gcc_cv_libc_provides_ssp
=no
29020 # All versions of musl provide stack protector
29021 gcc_cv_libc_provides_ssp
=yes;;
29022 *-*-linux* |
*-*-kfreebsd*-gnu)
29023 # glibc 2.4 and later provides __stack_chk_fail and
29024 # either __stack_chk_guard, or TLS access to stack guard canary.
29026 if test $glibc_version_major -gt 2 \
29027 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29028 gcc_cv_libc_provides_ssp
=yes
29031 if test -f $target_header_dir/features.h \
29032 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29033 $target_header_dir/features.h
> /dev
/null
; then
29034 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29035 $target_header_dir/features.h
> /dev
/null
&& \
29036 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29037 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29038 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29039 gcc_cv_libc_provides_ssp
=yes
29041 # all versions of Bionic support stack protector
29042 elif test -f $target_header_dir/sys
/cdefs.h \
29043 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29044 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29045 gcc_cv_libc_provides_ssp
=yes
29050 # Avoid complicated tests (see
29051 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29052 # simply assert that glibc does provide this, which is true for all
29053 # realistically usable GNU/Hurd configurations.
29054 # All supported versions of musl provide it as well
29055 gcc_cv_libc_provides_ssp
=yes;;
29056 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29057 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29058 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
29059 gcc_cv_libc_provides_ssp
=yes
29061 echo "no __stack_chk_fail on this target"
29065 *) gcc_cv_libc_provides_ssp
=no
;;
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29069 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29071 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29073 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29077 # Check whether --enable-default-ssp was given.
29078 # Check whether --enable-default-ssp was given.
29079 if test "${enable_default_ssp+set}" = set; then :
29080 enableval
=$enable_default_ssp;
29081 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29083 ia64
*-*-*) enable_default_ssp
=no
;;
29084 *) enable_default_ssp
=$enableval ;;
29087 enable_default_ssp
=no
29090 enable_default_ssp
=no
29093 if test x
$enable_default_ssp = xyes
; then
29095 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29100 # Test for <sys/sdt.h> on the target.
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29103 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29105 if test -f $target_header_dir/sys
/sdt.h
; then
29108 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29112 $as_echo "$have_sys_sdt_h" >&6; }
29114 # Check if TFmode long double should be used by default or not.
29115 # Some glibc targets used DFmode long double, but with glibc 2.4
29116 # and later they can use TFmode.
29118 powerpc
*-*-linux* | \
29119 sparc
*-*-linux* | \
29123 # Check whether --with-long-double-128 was given.
29124 if test "${with_long_double_128+set}" = set; then :
29125 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29128 if test $glibc_version_major -gt 2 \
29129 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29130 gcc_cv_target_ldbl128
=yes
29133 gcc_cv_target_ldbl128
=no
29134 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29135 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29136 && gcc_cv_target_ldbl128
=yes
29143 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29145 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29149 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29150 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29151 gcc_cv_libc_provides_hwcap_in_tcb
=no
29155 if test $glibc_version_major -gt 2 \
29156 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29157 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29161 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29163 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29168 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29169 gcc_cv_target_dl_iterate_phdr
=unknown
29171 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29172 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29173 # libdl there, both complicating its use and breaking compatibility
29174 # between Solaris 10 updates.
29175 *-*-solaris2.1
[1-9]*)
29176 # <link.h> needs both a dl_iterate_phdr declaration and support for
29177 # compilation with largefile support.
29178 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29179 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29180 gcc_cv_target_dl_iterate_phdr
=yes
29182 gcc_cv_target_dl_iterate_phdr
=no
29185 *-*-dragonfly* |
*-*-freebsd*)
29186 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29187 gcc_cv_target_dl_iterate_phdr
=yes
29189 gcc_cv_target_dl_iterate_phdr
=no
29193 gcc_cv_target_dl_iterate_phdr
=yes
29197 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29199 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29203 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29205 # We no longer support different GC mechanisms. Emit an error if
29206 # the user configures with --with-gc.
29208 # Check whether --with-gc was given.
29209 if test "${with_gc+set}" = set; then :
29210 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29214 # Libraries to use on the host. This will normally be set by the top
29215 # level Makefile. Here we simply capture the value for our Makefile.
29216 if test -z "${HOST_LIBS+set}"; then
29221 # Use the system's zlib library.
29223 # Use the system's zlib library.
29224 zlibdir
="-L\$(top_builddir)/../zlib"
29225 zlibinc
="-I\$(top_srcdir)/../zlib"
29227 # Check whether --with-system-zlib was given.
29228 if test "${with_system_zlib+set}" = set; then :
29229 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29242 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29243 # Check whether --enable-maintainer-mode was given.
29244 if test "${enable_maintainer_mode+set}" = set; then :
29245 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29252 $as_echo "$maintainer_mode" >&6; }
29254 if test "$maintainer_mode" = "yes"; then
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29262 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29263 # Check whether --enable-link-mutex was given.
29264 if test "${enable_link_mutex+set}" = set; then :
29265 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29271 $as_echo "$do_link_mutex" >&6; }
29273 if test "$do_link_mutex" = "yes"; then
29276 DO_LINK_MUTEX
=false
29284 # Make empty files to contain the specs and options for each language.
29285 # Then add #include lines to for a compiler that has specs and/or options.
29291 # These (without "all_") are set in each config-lang.in.
29292 # `language' must be a single word so is spelled singularly.
29295 all_outputs
='Makefile'
29296 # List of language makefile fragments.
29297 all_lang_makefrags
=
29298 # Additional files for gengtype
29299 all_gtfiles
="$target_gtfiles"
29301 # These are the languages that are set in --enable-languages,
29302 # and are available in the GCC tree.
29303 all_selected_languages
=
29305 # Add the language fragments.
29306 # Languages are added via two mechanisms. Some information must be
29307 # recorded in makefile variables, these are defined in config-lang.in.
29308 # We accumulate them and plug them into the main Makefile.
29309 # The other mechanism is a set of hooks for each of the main targets
29310 # like `clean', `install', etc.
29312 language_hooks
="Make-hooks"
29314 for lang
in ${srcdir}/*/config-lang.
in
29316 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29318 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29319 if test "x$lang_alias" = x
29321 echo "$lang doesn't set \$language." 1>&2
29324 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29325 subdirs
="$subdirs $subdir"
29327 # $gcc_subdir is where the gcc integration files are to be found
29328 # for a language, both for internal compiler purposes (compiler
29329 # sources implementing front-end to GCC tree converters), and for
29330 # build infrastructure purposes (Make-lang.in, etc.)
29332 # This will be <subdir> (relative to $srcdir) if a line like
29333 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29334 # is found in <langdir>/config-lang.in, and will remain <langdir>
29337 # Except for the language alias (fetched above), the regular
29338 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29339 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29340 # only this and the language alias.
29342 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29343 if [ "$gcc_subdir" = "" ]; then
29344 gcc_subdir
="$subdir"
29347 case ",$enable_languages," in
29349 all_selected_languages
="$all_selected_languages $lang_alias"
29350 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29351 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29362 .
${srcdir}/$gcc_subdir/config-lang.
in
29363 if test "x$language" = x
29365 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29370 case ",$enable_languages," in
29371 *,$lang_alias,*) ;;
29373 for i
in $subdir_requires; do
29374 test -f "${srcdir}/$i/config-lang.in" && continue
29382 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29383 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29384 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29385 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29387 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29388 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29390 all_languages
="$all_languages $language"
29391 all_compilers
="$all_compilers $compilers"
29392 all_outputs
="$all_outputs $outputs"
29393 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29394 case ",$enable_languages," in
29397 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29407 for language
in $all_selected_languages
29409 check_languages
="$check_languages check-$language"
29412 # We link each language in with a set of hooks, reached indirectly via
29413 # lang.${target}. Only do so for selected languages.
29417 target_list
="all.cross start.encap rest.encap tags \
29418 install-common install-man install-info install-pdf install-html dvi \
29419 pdf html uninstall info man srcextra srcman srcinfo \
29420 mostlyclean clean distclean maintainer-clean install-plugin"
29422 for t
in $target_list
29425 for lang
in $all_selected_languages
29429 echo "lang.$t: $x" >> Make-hooks
29433 # Option include files
29436 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29437 option_includes
="option-includes.mk"
29446 echo "dir ." > .gdbinit
29447 echo "dir ${srcdir}" >> .gdbinit
29448 if test x
$gdb_needs_out_file_path = xyes
29450 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29452 if test "x$subdirs" != x
; then
29455 echo "dir ${srcdir}/$s" >> .gdbinit
29458 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29459 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29461 # Put a breakpoint on __asan_report_error to help with debugging buffer
29464 *-fsanitize=address
*)
29465 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29469 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29473 # Find a directory in which to install a shared libgcc.
29475 # Check whether --enable-version-specific-runtime-libs was given.
29476 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29477 enableval
=$enable_version_specific_runtime_libs;
29481 # Substitute configuration variables
29545 if test x
${build} = x
${host} ; then
29546 if test x
${host} = x
${target} ; then
29547 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29549 echo "Links are now set up to build a cross-compiler" 1>&2
29550 echo " from ${host} to ${target}." 1>&2
29553 if test x
${host} = x
${target} ; then
29554 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29555 echo " for ${target}." 1>&2
29557 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29558 echo " from ${host} to ${target}." 1>&2
29567 if test "x${ISLLIBS}" != "x" ; then
29569 $as_echo "#define HAVE_isl 1" >>confdefs.h
29573 # Check for plugin support
29574 # Check whether --enable-plugin was given.
29575 if test "${enable_plugin+set}" = set; then :
29576 enableval
=$enable_plugin; enable_plugin
=$enableval
29578 enable_plugin
=yes; default_plugin
=yes
29586 if test x
$build = x
$host; then
29587 export_sym_check
="nm${exeext} -g"
29588 elif test x
$host = x
$target; then
29589 export_sym_check
="$gcc_cv_nm -g"
29595 if test x
$build = x
$host; then
29596 export_sym_check
="objdump${exeext} -T"
29597 elif test x
$host = x
$target; then
29598 export_sym_check
="$gcc_cv_objdump -T"
29605 if test x
"$enable_plugin" = x
"yes"; then
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29608 $as_echo_n "checking for exported symbols... " >&6; }
29609 if test "x$export_sym_check" != x
; then
29610 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29611 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29612 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29613 : # No need to use a flag
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29615 $as_echo "yes" >&6; }
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29618 $as_echo "yes" >&6; }
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29620 $as_echo_n "checking for -rdynamic... " >&6; }
29621 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29622 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29623 plugin_rdynamic
=yes
29624 pluginlibs
="-rdynamic"
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29630 $as_echo "$plugin_rdynamic" >&6; }
29633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29634 $as_echo "unable to check" >&6; }
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29640 $as_echo_n "checking for library containing dlopen... " >&6; }
29641 if test "${ac_cv_search_dlopen+set}" = set; then :
29642 $as_echo_n "(cached) " >&6
29644 ac_func_search_save_LIBS
=$LIBS
29645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29646 /* end confdefs.h. */
29648 /* Override any GCC internal prototype to avoid an error.
29649 Use char because int might match the return type of a GCC
29650 builtin and then its argument prototype would still apply. */
29663 for ac_lib
in '' dl
; do
29664 if test -z "$ac_lib"; then
29665 ac_res
="none required"
29668 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29670 if ac_fn_cxx_try_link
"$LINENO"; then :
29671 ac_cv_search_dlopen
=$ac_res
29673 rm -f core conftest.err conftest.
$ac_objext \
29675 if test "${ac_cv_search_dlopen+set}" = set; then :
29679 if test "${ac_cv_search_dlopen+set}" = set; then :
29682 ac_cv_search_dlopen
=no
29684 rm conftest.
$ac_ext
29685 LIBS
=$ac_func_search_save_LIBS
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29688 $as_echo "$ac_cv_search_dlopen" >&6; }
29689 ac_res
=$ac_cv_search_dlopen
29690 if test "$ac_res" != no
; then :
29691 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29695 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29696 pluginlibs
="$pluginlibs -ldl"
29700 # Check that we can build shared objects with -fPIC -shared
29701 saved_LDFLAGS
="$LDFLAGS"
29702 saved_CFLAGS
="$CFLAGS"
29705 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29706 CFLAGS
="$CFLAGS -fPIC"
29707 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29710 CFLAGS
="$CFLAGS -fPIC"
29711 LDFLAGS
="$LDFLAGS -fPIC -shared"
29714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29715 $as_echo_n "checking for -fPIC -shared... " >&6; }
29716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29717 /* end confdefs.h. */
29727 if ac_fn_cxx_try_link
"$LINENO"; then :
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29729 $as_echo "yes" >&6; }; have_pic_shared
=yes
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29732 $as_echo "no" >&6; }; have_pic_shared
=no
29734 rm -f core conftest.err conftest.
$ac_objext \
29735 conftest
$ac_exeext conftest.
$ac_ext
29736 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29740 LDFLAGS
="$saved_LDFLAGS"
29741 CFLAGS
="$saved_CFLAGS"
29743 # If plugin support had been requested but not available, fail.
29744 if test x
"$enable_plugin" = x
"no" ; then
29745 if test x
"$default_plugin" != x
"yes"; then
29747 Building GCC with plugin support requires a host that supports
29748 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29755 if test x
"$enable_plugin" = x
"yes"; then
29757 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29762 # Enable --enable-host-shared
29763 # Check whether --enable-host-shared was given.
29764 if test "${enable_host_shared+set}" = set; then :
29765 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29774 # Check whether --enable-libquadmath-support was given.
29775 if test "${enable_libquadmath_support+set}" = set; then :
29776 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29778 ENABLE_LIBQUADMATH_SUPPORT
=yes
29781 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29783 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29788 # Specify what hash style to use by default.
29790 # Check whether --with-linker-hash-style was given.
29791 if test "${with_linker_hash_style+set}" = set; then :
29792 withval
=$with_linker_hash_style; case x
"$withval" in
29794 LINKER_HASH_STYLE
=sysv
29797 LINKER_HASH_STYLE
=gnu
29800 LINKER_HASH_STYLE
=both
29803 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29807 LINKER_HASH_STYLE
=''
29810 if test x
"${LINKER_HASH_STYLE}" != x
; then
29812 cat >>confdefs.h
<<_ACEOF
29813 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29818 # Specify what should be the default of -fdiagnostics-color option.
29820 # Check whether --with-diagnostics-color was given.
29821 if test "${with_diagnostics_color+set}" = set; then :
29822 withval
=$with_diagnostics_color; case x
"$withval" in
29824 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29827 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29830 DIAGNOSTICS_COLOR_DEFAULT
=-1
29833 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29836 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29840 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29844 cat >>confdefs.h
<<_ACEOF
29845 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29849 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29850 # of jit/jit-playback.c.
29851 cat > gcc-driver-name.h
<<EOF
29852 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29855 # Check whether --enable-default-pie was given.
29856 # Check whether --enable-default-pie was given.
29857 if test "${enable_default_pie+set}" = set; then :
29858 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29860 enable_default_pie
=no
29863 if test x
$enable_default_pie = xyes
; then
29865 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29870 # Check if -fno-PIE works.
29871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29872 $as_echo_n "checking for -fno-PIE option... " >&6; }
29873 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29874 $as_echo_n "(cached) " >&6
29876 saved_CXXFLAGS
="$CXXFLAGS"
29877 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29879 /* end confdefs.h. */
29880 int main(void) {return 0;}
29882 if ac_fn_cxx_try_compile
"$LINENO"; then :
29883 gcc_cv_c_no_fpie
=yes
29885 gcc_cv_c_no_fpie
=no
29887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29888 CXXFLAGS
="$saved_CXXFLAGS"
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29891 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29892 if test "$gcc_cv_c_no_fpie" = "yes"; then
29893 NO_PIE_CFLAGS
="-fno-PIE"
29897 # Check if -no-pie works.
29898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29899 $as_echo_n "checking for -no-pie option... " >&6; }
29900 if test "${gcc_cv_no_pie+set}" = set; then :
29901 $as_echo_n "(cached) " >&6
29903 saved_LDFLAGS
="$LDFLAGS"
29904 LDFLAGS
="$LDFLAGS -no-pie"
29905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29906 /* end confdefs.h. */
29907 int main(void) {return 0;}
29909 if ac_fn_cxx_try_link
"$LINENO"; then :
29914 rm -f core conftest.err conftest.
$ac_objext \
29915 conftest
$ac_exeext conftest.
$ac_ext
29916 LDFLAGS
="$saved_LDFLAGS"
29918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29919 $as_echo "$gcc_cv_no_pie" >&6; }
29920 if test "$gcc_cv_no_pie" = "yes"; then
29921 NO_PIE_FLAG
="-no-pie"
29925 # Check linker supports '-z bndplt'
29926 ld_bndplt_support
=no
29927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29928 $as_echo_n "checking linker -z bndplt option... " >&6; }
29929 if test x
"$ld_is_gold" = xno
; then
29930 if test $in_tree_ld = yes ; then
29931 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
29932 ld_bndplt_support
=yes
29934 elif test x
$gcc_cv_ld != x
; then
29935 # Check if linker supports -a bndplt option
29936 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
29937 ld_bndplt_support
=yes
29941 if test x
"$ld_bndplt_support" = xyes
; then
29943 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29947 $as_echo "$ld_bndplt_support" >&6; }
29949 # Check linker supports '--push-state'/'--pop-state'
29950 ld_pushpopstate_support
=no
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29952 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29953 if test x
"$ld_is_gold" = xno
; then
29954 if test $in_tree_ld = yes ; then
29955 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
29956 ld_pushpopstate_support
=yes
29958 elif test x
$gcc_cv_ld != x
; then
29959 # Check if linker supports --push-state/--pop-state options
29960 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
29961 ld_pushpopstate_support
=yes
29965 if test x
"$ld_pushpopstate_support" = xyes
; then
29967 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29971 $as_echo "$ld_pushpopstate_support" >&6; }
29973 # Configure the subdirectories
29974 # AC_CONFIG_SUBDIRS($subdirs)
29976 # Create the Makefile
29977 # and configure language subdirectories
29978 ac_config_files
="$ac_config_files $all_outputs"
29981 ac_config_commands
="$ac_config_commands default"
29983 cat >confcache
<<\_ACEOF
29984 # This file is a shell script that caches the results of configure
29985 # tests run on this system so they can be shared between configure
29986 # scripts and configure runs, see configure's option --config-cache.
29987 # It is not useful on other systems. If it contains results you don't
29988 # want to keep, you may remove or edit it.
29990 # config.status only pays attention to the cache file if you give it
29991 # the --recheck option to rerun configure.
29993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29995 # following values.
29999 # The following way of writing the cache mishandles newlines in values,
30000 # but we know of no workaround that is simple, portable, and efficient.
30001 # So, we kill variables containing newlines.
30002 # Ultrix sh set writes to stderr and can't be redirected directly,
30003 # and sets the high bit in the cache file unless we assign to the vars.
30005 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30006 eval ac_val
=\$
$ac_var
30010 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30014 _ | IFS | as_nl
) ;; #(
30015 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30016 *) { eval $ac_var=; unset $ac_var;} ;;
30022 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30023 *${as_nl}ac_space
=\
*)
30024 # `set' does not quote correctly, so add quotes: double-quote
30025 # substitution turns \\\\ into \\, and sed turns \\ into \.
30028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30031 # `set' quotes correctly as required by POSIX, so do not add quotes.
30032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30043 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30045 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30046 if test -w "$cache_file"; then
30047 test "x$cache_file" != "x/dev/null" &&
30048 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30049 $as_echo "$as_me: updating cache $cache_file" >&6;}
30050 cat confcache
>$cache_file
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30053 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30058 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30059 # Let make expand exec_prefix.
30060 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30062 DEFS
=-DHAVE_CONFIG_H
30066 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30067 # 1. Remove the extension, and $U if already installed.
30068 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30069 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30070 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30071 # will be set to the directory where LIBOBJS objects are built.
30072 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30073 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30075 LIBOBJS
=$ac_libobjs
30077 LTLIBOBJS
=$ac_ltlibobjs
30082 : ${CONFIG_STATUS=./config.status}
30084 ac_clean_files_save
=$ac_clean_files
30085 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30087 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30089 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30091 # Generated by $as_me.
30092 # Run this file to recreate the current configuration.
30093 # Compiler output produced by configure, useful for debugging
30094 # configure, is in config.log if it exists.
30097 ac_cs_recheck=false
30100 SHELL=\${CONFIG_SHELL-$SHELL}
30103 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30104 ## -------------------- ##
30105 ## M4sh Initialization. ##
30106 ## -------------------- ##
30108 # Be more Bourne compatible
30109 DUALCASE
=1; export DUALCASE
# for MKS sh
30110 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30113 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30114 # is contrary to our usage. Disable this feature.
30115 alias -g '${1+"$@"}'='"$@"'
30116 setopt NO_GLOB_SUBST
30118 case `(set -o) 2>/dev/null` in #(
30130 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30131 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30134 # Prefer a ksh shell builtin over an external printf program on Solaris,
30135 # but without wasting forks for bash or zsh.
30136 if test -z "$BASH_VERSION$ZSH_VERSION" \
30137 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30138 as_echo='print
-r --'
30139 as_echo_n='print
-rn --'
30140 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30141 as_echo='printf %s
\n'
30142 as_echo_n='printf %s
'
30144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30145 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30146 as_echo_n='/usr
/ucb
/echo -n'
30148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30149 as_echo_n_body='eval
30153 expr "X$arg" : "X\\(.*\\)$as_nl";
30154 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30156 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30158 export as_echo_n_body
30159 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30161 export as_echo_body
30162 as_echo='sh
-c $as_echo_body as_echo
'
30165 # The user is always right.
30166 if test "${PATH_SEPARATOR+set}" != set; then
30168 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30169 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30176 # We need space, tab and new line, in precisely that order. Quoting is
30177 # there to prevent editors from complaining about space-tab.
30178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30179 # splitting by setting IFS to empty value.)
30182 # Find who we are. Look in the path if we contain no directory separator.
30184 *[\\/]* ) as_myself=$0 ;;
30185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30186 for as_dir in $PATH
30189 test -z "$as_dir" && as_dir=.
30190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30196 # We did not find ourselves, most probably we were run as `sh COMMAND'
30197 # in which case we are not to be found in the path.
30198 if test "x$as_myself" = x
; then
30201 if test ! -f "$as_myself"; then
30202 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30206 # Unset variables that we do not need and which cause bugs (e.g. in
30207 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30208 # suppresses any "Segmentation fault" message there. '((' could
30209 # trigger a bug in pdksh 5.2.14.
30210 for as_var
in BASH_ENV ENV MAIL MAILPATH
30211 do eval test x\
${$as_var+set} = xset \
30212 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30225 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30228 # as_fn_error ERROR [LINENO LOG_FD]
30229 # ---------------------------------
30230 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30231 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30232 # script with status $?, using 1 if that was 0.
30235 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30237 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30238 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30240 $as_echo "$as_me: error: $1" >&2
30241 as_fn_exit
$as_status
30245 # as_fn_set_status STATUS
30246 # -----------------------
30247 # Set $? to STATUS, without forking.
30248 as_fn_set_status
()
30251 } # as_fn_set_status
30253 # as_fn_exit STATUS
30254 # -----------------
30255 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30259 as_fn_set_status
$1
30265 # Portably unset VAR.
30268 { eval $1=; unset $1;}
30270 as_unset
=as_fn_unset
30271 # as_fn_append VAR VALUE
30272 # ----------------------
30273 # Append the text in VALUE to the end of the definition contained in VAR. Take
30274 # advantage of any shell optimizations that allow amortized linear growth over
30275 # repeated appends, instead of the typical quadratic growth present in naive
30277 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30278 eval 'as_fn_append ()
30289 # as_fn_arith ARG...
30290 # ------------------
30291 # Perform arithmetic evaluation on the ARGs, and store the result in the
30292 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30293 # must be portable across $(()) and expr.
30294 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30295 eval 'as_fn_arith ()
30302 as_val
=`expr "$@" || test $? -eq 1`
30307 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30308 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30314 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30315 as_basename
=basename
30320 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30326 as_me
=`$as_basename -- "$0" ||
30327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30328 X"$0" : 'X\(//\)$' \| \
30329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30331 sed '/^.*\/\([^/][^/]*\)\/*$/{
30345 # Avoid depending upon Character Ranges.
30346 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30347 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30348 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30349 as_cr_digits
='0123456789'
30350 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30352 ECHO_C
= ECHO_N
= ECHO_T
=
30353 case `echo -n x` in #(((((
30355 case `echo 'xy\c'` in
30356 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30358 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30365 rm -f conf$$ conf$$.exe conf$$.
file
30366 if test -d conf$$.dir
; then
30367 rm -f conf$$.dir
/conf$$.
file
30370 mkdir conf$$.dir
2>/dev
/null
30372 if (echo >conf$$.
file) 2>/dev
/null
; then
30373 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30375 # ... but there are two gotchas:
30376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30378 # In both cases, we have to default to `cp -p'.
30379 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30381 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30389 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30390 rmdir conf$$.dir
2>/dev
/null
30395 # Create "$as_dir" as a directory, including parents if necessary.
30400 -*) as_dir
=.
/$as_dir;;
30402 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30406 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30407 *) as_qdir
=$as_dir;;
30409 as_dirs
="'$as_qdir' $as_dirs"
30410 as_dir
=`$as_dirname -- "$as_dir" ||
30411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30412 X"$as_dir" : 'X\(//\)[^/]' \| \
30413 X"$as_dir" : 'X\(//\)$' \| \
30414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30415 $as_echo X"$as_dir" |
30416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30420 /^X\(\/\/\)[^/].*/{
30433 test -d "$as_dir" && break
30435 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30436 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30440 if mkdir
-p .
2>/dev
/null
; then
30441 as_mkdir_p
='mkdir -p "$as_dir"'
30443 test -d .
/-p && rmdir .
/-p
30447 if test -x / >/dev
/null
2>&1; then
30448 as_test_x
='test -x'
30450 if ls -dL / >/dev
/null
2>&1; then
30457 if test -d "$1"; then
30463 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30464 ???[sx]*):;;*)false;;esac;fi
30468 as_executable_p
=$as_test_x
30470 # Sed expression to map a string onto a valid CPP name.
30471 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30473 # Sed expression to map a string onto a valid variable name.
30474 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30478 ## ----------------------------------- ##
30479 ## Main body of $CONFIG_STATUS script. ##
30480 ## ----------------------------------- ##
30482 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30485 # Save the log message, to keep $0 and so on meaningful, and to
30486 # report actual input values of CONFIG_FILES etc. instead of their
30487 # values after options handling.
30489 This file was extended by $as_me, which was
30490 generated by GNU Autoconf 2.64. Invocation command line was
30492 CONFIG_FILES = $CONFIG_FILES
30493 CONFIG_HEADERS = $CONFIG_HEADERS
30494 CONFIG_LINKS = $CONFIG_LINKS
30495 CONFIG_COMMANDS = $CONFIG_COMMANDS
30498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30503 case $ac_config_files in *"
30504 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30507 case $ac_config_headers in *"
30508 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30513 # Files that config.status was made for.
30514 config_files="$ac_config_files"
30515 config_headers="$ac_config_headers"
30516 config_links="$ac_config_links"
30517 config_commands="$ac_config_commands"
30521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30523 \`$as_me' instantiates files and other configuration actions
30524 from templates according to the current configuration. Unless the files
30525 and actions are specified as TAGs, all are instantiated by default.
30527 Usage: $0 [OPTION]... [TAG]...
30529 -h, --help print this help, then exit
30530 -V, --version print version number and configuration settings, then exit
30531 -q, --quiet, --silent
30532 do not print progress messages
30533 -d, --debug don't remove temporary files
30534 --recheck update $as_me by reconfiguring in the same conditions
30535 --file=FILE[:TEMPLATE]
30536 instantiate the configuration file FILE
30537 --header=FILE[:TEMPLATE]
30538 instantiate the configuration header FILE
30540 Configuration files:
30543 Configuration headers:
30546 Configuration links:
30549 Configuration commands:
30552 Report bugs to the package provider."
30555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30558 configured by $0, generated by GNU Autoconf 2.64,
30559 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30561 Copyright (C) 2009 Free Software Foundation, Inc.
30562 This config.status script is free software; the Free Software Foundation
30563 gives unlimited permission to copy, distribute and modify it."
30568 test -n "\$AWK" || AWK=awk
30571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30572 # The default lists apply if the user does not specify any file.
30578 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30579 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30590 # Handling of the options.
30591 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30593 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30594 $as_echo "$ac_cs_version"; exit ;;
30595 --debug |
--debu |
--deb |
--de |
--d |
-d )
30597 --file |
--fil |
--fi |
--f )
30600 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30602 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30603 ac_need_defaults
=false
;;
30604 --header |
--heade |
--head |
--hea )
30607 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30609 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30610 ac_need_defaults
=false
;;
30612 # Conflict between --help and --header
30613 as_fn_error
"ambiguous option: \`$1'
30614 Try \`$0 --help' for more information.";;
30615 --help |
--hel |
-h )
30616 $as_echo "$ac_cs_usage"; exit ;;
30617 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30618 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30621 # This is an error.
30622 -*) as_fn_error
"unrecognized option: \`$1'
30623 Try \`$0 --help' for more information." ;;
30625 *) as_fn_append ac_config_targets
" $1"
30626 ac_need_defaults
=false
;;
30632 ac_configure_extra_args
=
30634 if $ac_cs_silent; then
30636 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30641 if \$ac_cs_recheck; then
30642 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30644 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30645 CONFIG_SHELL='$SHELL'
30646 export CONFIG_SHELL
30651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30656 ## Running $as_me. ##
30662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30666 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30667 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30674 # Handling of arguments.
30675 for ac_config_target
in $ac_config_targets
30677 case $ac_config_target in
30678 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30679 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30680 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30681 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30682 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30683 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30684 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30685 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30686 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30688 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30693 # If the user did not use the arguments to specify the items to instantiate,
30694 # then the envvar interface is used. Set only those that are not.
30695 # We use the long form for the default assignment because of an extremely
30696 # bizarre bug on SunOS 4.1.3.
30697 if $ac_need_defaults; then
30698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30700 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30704 # Have a temporary directory for convenience. Make it in the build tree
30705 # simply because there is no reason against having it here, and in addition,
30706 # creating and moving files from /tmp can sometimes cause problems.
30707 # Hook for its removal unless debugging.
30708 # Note that there is a small window in which the directory will not be cleaned:
30709 # after its creation but before its name has been assigned to `$tmp'.
30713 trap 'exit_status=$?
30714 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30716 trap 'as_fn_exit 1' 1 2 13 15
30718 # Create a (secure) tmp directory for tmp files.
30721 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30722 test -n "$tmp" && test -d "$tmp"
30725 tmp
=.
/conf$$
-$RANDOM
30726 (umask 077 && mkdir
"$tmp")
30727 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30729 # Set up the scripts for CONFIG_FILES section.
30730 # No need to generate them if there are no CONFIG_FILES.
30731 # This happens for instance with `./config.status config.h'.
30732 if test -n "$CONFIG_FILES"; then
30734 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30735 ac_cs_awk_getline
=:
30736 ac_cs_awk_pipe_init
=
30737 ac_cs_awk_read_file
='
30738 while ((getline aline < (F[key])) > 0)
30741 ac_cs_awk_pipe_fini
=
30743 ac_cs_awk_getline
=false
30744 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30745 ac_cs_awk_read_file
='
30747 print "cat " F[key] " &&"
30748 '$ac_cs_awk_pipe_init
30749 # The final `:' finishes the AND list.
30750 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30752 ac_cr
=`echo X | tr X '\015'`
30753 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30754 # But we know of no other shell where ac_cr would be empty at this
30755 # point, so we can use a bashism as a fallback.
30756 if test "x$ac_cr" = x
; then
30757 eval ac_cr
=\$
\'\\r
\'
30759 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30760 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30763 ac_cs_awk_cr
=$ac_cr
30766 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30769 # Create commands to substitute file output variables.
30771 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30772 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30773 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30776 } >conf$
$files.sh
&&
30777 . .
/conf$
$files.sh ||
30778 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30779 rm -f conf$
$files.sh
30782 echo "cat >conf$$subs.awk <<_ACEOF" &&
30783 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30785 } >conf$$subs.sh ||
30786 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30787 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30789 for ac_last_try in false false false false false :; do
30790 . ./conf$$subs.sh ||
30791 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30793 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30794 if test $ac_delim_n = $ac_delim_num; then
30796 elif $ac_last_try; then
30797 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30799 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30802 rm -f conf$$subs.sh
30804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30805 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30809 s/^/S["/; s
/!.
*/"]=/
30819 s/\(.\{148\}\).*/\1/
30821 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30826 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30833 s/\(.\{148\}\).*/\1/
30835 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30839 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30844 ' <conf$$subs.awk | sed '
30849 ' >>$CONFIG_STATUS || ac_write_fail=1
30850 rm -f conf$$subs.awk
30851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30853 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30854 for (key in S) S_is_set[key] = 1
30856 \$ac_cs_awk_pipe_init
30860 nfields = split(line, field, "@
")
30862 len = length(field[1])
30863 for (i = 2; i < nfields; i++) {
30865 keylen = length(key)
30866 if (S_is_set[key]) {
30868 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30869 len += length(value) + length(field[++i])
30874 if (nfields == 3 && !substed) {
30876 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30877 \$ac_cs_awk_read_file
30883 \$ac_cs_awk_pipe_fini
30886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30887 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30888 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30891 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30892 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30895 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30896 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30897 # trailing colons and then remove the whole line if VPATH becomes empty
30898 # (actually we leave an empty line to preserve line numbers).
30899 if test "x
$srcdir" = x.; then
30900 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30901 s/:*\$(srcdir):*/:/
30902 s/:*\${srcdir}:*/:/
30904 s/^\([^=]*=[ ]*\):*/\1/
30910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30911 fi # test -n "$CONFIG_FILES"
30913 # Set up the scripts for CONFIG_HEADERS section.
30914 # No need to generate them if there are no CONFIG_HEADERS.
30915 # This happens for instance with `./config.status Makefile'.
30916 if test -n "$CONFIG_HEADERS"; then
30917 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30921 # Transform confdefs.h into an awk script `defines.awk', embedded as
30922 # here-document in config.status, that substitutes the proper values into
30923 # config.h.in to produce config.h.
30925 # Create a delimiter string that does not exist in confdefs.h, to ease
30926 # handling of long lines.
30928 for ac_last_try in false false :; do
30929 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30930 if test -z "$ac_t"; then
30932 elif $ac_last_try; then
30933 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30935 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30939 # For the awk script, D is an array of macro values keyed by name,
30940 # likewise P contains macro parameters if any. Preserve backslash
30941 # newline sequences.
30943 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30945 s/.\{148\}/&'"$ac_delim"'/g
30948 s/^[ ]*#[ ]*define[ ][ ]*/ /
30955 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30957 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30962 D["\
1"]=" \
3\\\\\\n
"\\/p
30964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30969 s/.\{148\}/&'"$ac_delim"'/g
30974 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30977 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30979 ' <confdefs.h | sed '
30980 s/'"$ac_delim"'/"\\\
30981 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30984 for (key in D) D_is_set[key] = 1
30987 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30989 split(line, arg, " ")
30990 if (arg[1] == "#") {
30994 defundef
= substr
(arg
[1], 2)
30997 split(mac1
, mac2
, "(") #)
30999 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31000 if (D_is_set
[macro
]) {
31001 # Preserve the white space surrounding the "#".
31002 print prefix
"define", macro P
[macro
] D
[macro
]
31005 # Replace #undef with comments. This is necessary, for example,
31006 # in the case of _POSIX_SOURCE, which is predefined and required
31007 # on some systems where configure will not decide to define it.
31008 if (defundef
== "undef") {
31009 print
"/*", prefix defundef
, macro
, "*/"
31017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31018 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
31019 fi # test -n "$CONFIG_HEADERS"
31022 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31027 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31029 case $ac_mode$ac_tag in
31031 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31032 :[FH
]-) ac_tag
=-:-;;
31033 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31050 -) ac_f
="$tmp/stdin";;
31051 *) # Look for the file first in the build tree, then in the source tree
31052 # (if the path is not absolute). The absolute path cannot be DOS-style,
31053 # because $ac_f cannot contain `:'.
31057 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31059 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
31061 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31062 as_fn_append ac_file_inputs
" '$ac_f'"
31065 # Let's still pretend it is `configure' which instantiates (i.e., don't
31066 # use $as_me), people would be surprised to read:
31067 # /* config.h. Generated by config.status. */
31068 configure_input
='Generated from '`
31069 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31071 if test x
"$ac_file" != x-
; then
31072 configure_input
="$ac_file. $configure_input"
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31074 $as_echo "$as_me: creating $ac_file" >&6;}
31076 # Neutralize special characters interpreted by sed in replacement strings.
31077 case $configure_input in #(
31078 *\
&* |
*\|
* |
*\\* )
31079 ac_sed_conf_input
=`$as_echo "$configure_input" |
31080 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31081 *) ac_sed_conf_input
=$configure_input;;
31085 *:-:* |
*:-) cat >"$tmp/stdin" \
31086 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
31091 ac_dir
=`$as_dirname -- "$ac_file" ||
31092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31093 X"$ac_file" : 'X\(//\)[^/]' \| \
31094 X"$ac_file" : 'X\(//\)$' \| \
31095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31096 $as_echo X"$ac_file" |
31097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31101 /^X\(\/\/\)[^/].*/{
31114 as_dir
="$ac_dir"; as_fn_mkdir_p
31118 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31120 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31121 # A ".." for each directory in $ac_dir_suffix.
31122 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31123 case $ac_top_builddir_sub in
31124 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31125 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31128 ac_abs_top_builddir
=$ac_pwd
31129 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31130 # for backward compatibility:
31131 ac_top_builddir
=$ac_top_build_prefix
31134 .
) # We are building in place.
31136 ac_top_srcdir
=$ac_top_builddir_sub
31137 ac_abs_top_srcdir
=$ac_pwd ;;
31138 [\\/]* | ?
:[\\/]* ) # Absolute name.
31139 ac_srcdir
=$srcdir$ac_dir_suffix;
31140 ac_top_srcdir
=$srcdir
31141 ac_abs_top_srcdir
=$srcdir ;;
31142 *) # Relative name.
31143 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31144 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31145 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31147 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31159 # If the template does not know about datarootdir, expand it.
31160 # FIXME: This hack should be removed a few years after 2.60.
31161 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31172 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31173 *datarootdir
*) ac_datarootdir_seen
=yes;;
31174 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31176 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31179 ac_datarootdir_hack='
31180 s&@datadir@&$datadir&g
31181 s&@docdir@&$docdir&g
31182 s&@infodir@&$infodir&g
31183 s&@localedir@&$localedir&g
31184 s&@mandir@&$mandir&g
31185 s&\\\${datarootdir}&$datarootdir&g' ;;
31189 # Neutralize VPATH when `$srcdir' = `.'.
31190 # Shell code in configure.ac might set extrasub.
31191 # FIXME: do we really want to maintain this feature?
31192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31193 ac_sed_extra="$ac_vpsub
31196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31198 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31199 s|@configure_input@|
$ac_sed_conf_input|
;t t
31200 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31201 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31202 s
&@srcdir@
&$ac_srcdir&;t t
31203 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31204 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31205 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31206 s
&@builddir@
&$ac_builddir&;t t
31207 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31208 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31209 $ac_datarootdir_hack
31211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31212 if $ac_cs_awk_getline; then
31213 $AWK -f "$tmp/subs.
awk"
31215 $AWK -f "$tmp/subs.
awk" | $SHELL
31217 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31220 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31223 which seems to be undefined. Please make sure it is defined." >&5
31224 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31225 which seems to be undefined. Please make sure it is defined." >&2;}
31229 -) cat "$tmp/out" && rm -f "$tmp/out";;
31230 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31232 || as_fn_error "could not create $ac_file" "$LINENO" 5
31238 if test x"$ac_file" != x-; then
31240 $as_echo "/* $configure_input */" \
31241 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31242 } >"$tmp/config.h" \
31243 || as_fn_error "could not create $ac_file" "$LINENO" 5
31244 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31245 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31246 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31249 mv "$tmp/config.h" "$ac_file" \
31250 || as_fn_error "could not create $ac_file" "$LINENO" 5
31253 $as_echo "/* $configure_input */" \
31254 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31255 || as_fn_error "could not create -" "$LINENO" 5
31263 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31266 # Prefer the file from the source tree if names are identical.
31267 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31268 ac_source=$srcdir/$ac_source
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31272 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31274 if test ! -r "$ac_source"; then
31275 as_fn_error "$ac_source: file not found" "$LINENO" 5
31279 # Try a relative symlink, then a hard link, then a copy.
31281 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31282 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31284 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31285 ln "$ac_source" "$ac_file" 2>/dev/null ||
31286 cp -p "$ac_source" "$ac_file" ||
31287 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31290 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31291 $as_echo "$as_me: executing $ac_file commands" >&6;}
31296 case $ac_file$ac_mode in
31297 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31299 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31300 for lang in $subdirs c-family common
31302 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31304 "as":F) chmod +x as ;;
31305 "collect-ld":F) chmod +x collect-ld ;;
31306 "nm":F) chmod +x nm ;;
31308 case ${CONFIG_HEADERS} in
31309 *auto-host.h:config.in*)
31312 # Make sure all the subdirs exist.
31313 for d in $subdirs doc build common c-family
31315 test -d $d || mkdir $d
31325 ac_clean_files=$ac_clean_files_save
31327 test $ac_write_fail = 0 ||
31328 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31331 # configure is writing to config.log, and then calls config.status.
31332 # config.status does its own redirection, appending to config.log.
31333 # Unfortunately, on DOS this fails, as config.log is still kept open
31334 # by configure, so config.status won't be able to
write to it
; its
31335 # output is simply discarded. So we exec the FD to /dev/null,
31336 # effectively closing config.log, so it can be properly (re)opened and
31337 # appended to by config.status. When coming back to configure, we
31338 # need to make the FD available again.
31339 if test "$no_create" != yes; then
31341 ac_config_status_args
=
31342 test "$silent" = yes &&
31343 ac_config_status_args
="$ac_config_status_args --quiet"
31345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31348 # would make configure fail if this is the last instruction.
31349 $ac_cs_success || as_fn_exit $?
31351 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31353 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}